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

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.
@@ -1,4 +1,4 @@
1
- import React__default, { createElement, useRef, useEffect, useCallback, useState, forwardRef, Fragment, Children, createContext, useContext, useLayoutEffect, useMemo } from 'react';
1
+ import React__default, { createElement, useRef, useEffect, useCallback, useState, forwardRef, Fragment, createContext, Children, useContext, useLayoutEffect, useMemo } from 'react';
2
2
  import classnames from 'classnames';
3
3
  import { toast as toast$1, ToastContainer as ToastContainer$1, Slide } from 'react-toastify';
4
4
  import ReactDOM from 'react-dom';
@@ -604,7 +604,7 @@ var TooltipOverlay = function TooltipOverlay(_ref) {
604
604
  })));
605
605
  };
606
606
 
607
- var Tooltip = function Tooltip(_ref, forwardedRef) {
607
+ var TooltipElement = function TooltipElement(_ref, forwardedRef) {
608
608
  var _containerRef$current;
609
609
  var _ref$theme = _ref.theme,
610
610
  theme = _ref$theme === void 0 ? TOOLTIP_THEME.BLACK : _ref$theme,
@@ -716,7 +716,7 @@ var Tooltip = function Tooltip(_ref, forwardedRef) {
716
716
  ref: containerRef
717
717
  }, children, React__default.createElement(Overlay, null));
718
718
  };
719
- var Tooltip$1 = forwardRef(Tooltip);
719
+ var Tooltip = forwardRef(TooltipElement);
720
720
 
721
721
  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"};
722
722
 
@@ -749,9 +749,27 @@ var BUTTON_TARGETS = {
749
749
  SELF: '_self'
750
750
  };
751
751
 
752
+ var ComponentIdentifierContext = createContext({
753
+ componentName: ''
754
+ });
755
+
756
+ var ComponentIdentifier = function ComponentIdentifier(_ref) {
757
+ var componentName = _ref.componentName,
758
+ children = _ref.children;
759
+ return React__default.createElement(ComponentIdentifierContext.Provider, {
760
+ value: {
761
+ componentName: componentName
762
+ }
763
+ }, children);
764
+ };
765
+
766
+ var COMPONENT_NAMES = {
767
+ BUTTON: 'BUTTON'
768
+ };
769
+
752
770
  var _excluded$4 = ["children", "type", "theme", "disabled", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "id", "loading", "title", "href", "target", "testId", "size"],
753
771
  _excluded2 = ["id", "onClick", "onMouseEnter", "onMouseLeave", "onBlur", "onFocus", "onKeyDown", "className", "type", "disabled", "href", "target", "children", "position", "dataProps"];
754
- var Button = function Button(_ref, ref) {
772
+ var ButtonComponent = function ButtonComponent(_ref, ref) {
755
773
  var _classnames;
756
774
  var children = _ref.children,
757
775
  _ref$type = _ref.type,
@@ -783,7 +801,7 @@ var Button = function Button(_ref, ref) {
783
801
  var contrastSpinner = [BUTTON_THEMES.PRIMARY, BUTTON_THEMES.DANGER, BUTTON_THEMES.UPSELL, BUTTON_THEMES.MARKETING, BUTTON_THEMES.LINK_CONTRAST];
784
802
  var childrenArr = Children.toArray(children);
785
803
  var isIconOnly = childrenArr.length === 1 && typeof childrenArr[0] != 'string';
786
- return React__default.createElement(Tooltip$1, {
804
+ return React__default.createElement(Tooltip, {
787
805
  overlay: title
788
806
  }, React__default.createElement(ButtonElement, {
789
807
  id: id,
@@ -842,19 +860,23 @@ var ButtonElement = forwardRef(function (_ref2, ref) {
842
860
  style: positionStyles
843
861
  }, dataProps);
844
862
  if (href) {
845
- return React__default.createElement("a", _extends({}, commonProps, rest, {
863
+ return React__default.createElement(ComponentIdentifier, {
864
+ componentName: COMPONENT_NAMES.BUTTON
865
+ }, React__default.createElement("a", _extends({}, commonProps, rest, {
846
866
  href: href,
847
867
  target: target,
848
868
  "aria-disabled": disabled,
849
869
  ref: ref
850
- }), children);
870
+ }), children));
851
871
  }
852
- return React__default.createElement("button", _extends({}, commonProps, rest, {
872
+ return React__default.createElement(ComponentIdentifier, {
873
+ componentName: COMPONENT_NAMES.BUTTON
874
+ }, React__default.createElement("button", _extends({}, commonProps, rest, {
853
875
  type: type,
854
876
  ref: ref
855
- }), children);
877
+ }), children));
856
878
  });
857
- var Button$1 = forwardRef(Button);
879
+ var Button = forwardRef(ButtonComponent);
858
880
 
859
881
  var ICON_SIZES = {
860
882
  small: '12px',
@@ -868,27 +890,42 @@ var getIconStyles = function getIconStyles(_ref) {
868
890
  size = _ref$size === void 0 ? 'default' : _ref$size,
869
891
  _ref$color = _ref.color,
870
892
  color = _ref$color === void 0 ? 'currentColor' : _ref$color,
871
- _ref$styles = _ref.styles,
872
- styles = _ref$styles === void 0 ? {} : _ref$styles;
893
+ _ref$style = _ref.style,
894
+ style = _ref$style === void 0 ? {} : _ref$style;
873
895
  return _extends({
874
896
  width: ICON_SIZES[size],
875
897
  height: ICON_SIZES[size],
876
898
  verticalAlign: 'middle',
877
899
  fill: color,
878
900
  color: getColor(color)
879
- }, styles);
901
+ }, style);
880
902
  };
881
903
 
882
- var _excluded$5 = ["testId"];
904
+ var useIsInsideComponent = function useIsInsideComponent(parentComponentName) {
905
+ var _useContext = useContext(ComponentIdentifierContext),
906
+ componentName = _useContext.componentName;
907
+ return componentName === parentComponentName;
908
+ };
909
+
910
+ var _excluded$5 = ["testId", "size", "color", "style"];
883
911
  var IconInfoCircle = forwardRef(function (_ref, ref) {
884
912
  var _ref$testId = _ref.testId,
885
913
  testId = _ref$testId === void 0 ? 'icon-info-circle' : _ref$testId,
914
+ size = _ref.size,
915
+ color = _ref.color,
916
+ style = _ref.style,
886
917
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
918
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
919
+ var styleProps = {
920
+ size: !size && isInsideButton ? 'medium' : size,
921
+ color: color,
922
+ style: style
923
+ };
887
924
  return React__default.createElement("svg", _extends({
888
925
  xmlns: "http://www.w3.org/2000/svg",
889
926
  fill: "none",
890
927
  viewBox: "0 0 20 20",
891
- style: getIconStyles(props),
928
+ style: getIconStyles(styleProps),
892
929
  "data-testid": testId,
893
930
  ref: ref
894
931
  }, props), React__default.createElement("path", {
@@ -900,16 +937,25 @@ var IconInfoCircle = forwardRef(function (_ref, ref) {
900
937
  });
901
938
  IconInfoCircle.displayName = 'IconInfoCircle';
902
939
 
903
- var _excluded$6 = ["testId"];
940
+ var _excluded$6 = ["testId", "size", "color", "style"];
904
941
  var IconAnalytics = forwardRef(function (_ref, ref) {
905
942
  var _ref$testId = _ref.testId,
906
943
  testId = _ref$testId === void 0 ? 'icon-analytics' : _ref$testId,
944
+ size = _ref.size,
945
+ color = _ref.color,
946
+ style = _ref.style,
907
947
  props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
948
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
949
+ var styleProps = {
950
+ size: !size && isInsideButton ? 'medium' : size,
951
+ color: color,
952
+ style: style
953
+ };
908
954
  return React__default.createElement("svg", _extends({
909
955
  xmlns: "http://www.w3.org/2000/svg",
910
956
  fill: "none",
911
957
  viewBox: "0 0 20 20",
912
- style: getIconStyles(props),
958
+ style: getIconStyles(styleProps),
913
959
  "data-testid": testId,
914
960
  ref: ref
915
961
  }, props), React__default.createElement("path", {
@@ -921,16 +967,25 @@ var IconAnalytics = forwardRef(function (_ref, ref) {
921
967
  });
922
968
  IconAnalytics.displayName = 'IconAnalytics';
923
969
 
924
- var _excluded$7 = ["testId"];
970
+ var _excluded$7 = ["testId", "size", "color", "style"];
925
971
  var IconArrowDownWideShort = forwardRef(function (_ref, ref) {
926
972
  var _ref$testId = _ref.testId,
927
973
  testId = _ref$testId === void 0 ? 'icon-arrow-down-wide-short' : _ref$testId,
974
+ size = _ref.size,
975
+ color = _ref.color,
976
+ style = _ref.style,
928
977
  props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
978
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
979
+ var styleProps = {
980
+ size: !size && isInsideButton ? 'medium' : size,
981
+ color: color,
982
+ style: style
983
+ };
929
984
  return React__default.createElement("svg", _extends({
930
985
  xmlns: "http://www.w3.org/2000/svg",
931
986
  fill: "none",
932
987
  viewBox: "0 0 20 20",
933
- style: getIconStyles(props),
988
+ style: getIconStyles(styleProps),
934
989
  "data-testid": testId,
935
990
  ref: ref
936
991
  }, props), React__default.createElement("path", {
@@ -940,16 +995,25 @@ var IconArrowDownWideShort = forwardRef(function (_ref, ref) {
940
995
  });
941
996
  IconArrowDownWideShort.displayName = 'IconArrowDownWideShort';
942
997
 
943
- var _excluded$8 = ["testId"];
998
+ var _excluded$8 = ["testId", "size", "color", "style"];
944
999
  var IconArrowDown = forwardRef(function (_ref, ref) {
945
1000
  var _ref$testId = _ref.testId,
946
1001
  testId = _ref$testId === void 0 ? 'icon-arrow-down' : _ref$testId,
1002
+ size = _ref.size,
1003
+ color = _ref.color,
1004
+ style = _ref.style,
947
1005
  props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
1006
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1007
+ var styleProps = {
1008
+ size: !size && isInsideButton ? 'medium' : size,
1009
+ color: color,
1010
+ style: style
1011
+ };
948
1012
  return React__default.createElement("svg", _extends({
949
1013
  xmlns: "http://www.w3.org/2000/svg",
950
1014
  fill: "none",
951
1015
  viewBox: "0 0 20 20",
952
- style: getIconStyles(props),
1016
+ style: getIconStyles(styleProps),
953
1017
  "data-testid": testId,
954
1018
  ref: ref
955
1019
  }, props), React__default.createElement("path", {
@@ -961,16 +1025,25 @@ var IconArrowDown = forwardRef(function (_ref, ref) {
961
1025
  });
962
1026
  IconArrowDown.displayName = 'IconArrowDown';
963
1027
 
964
- var _excluded$9 = ["testId"];
1028
+ var _excluded$9 = ["testId", "size", "color", "style"];
965
1029
  var IconArrowLeft = forwardRef(function (_ref, ref) {
966
1030
  var _ref$testId = _ref.testId,
967
1031
  testId = _ref$testId === void 0 ? 'icon-arrow-left' : _ref$testId,
1032
+ size = _ref.size,
1033
+ color = _ref.color,
1034
+ style = _ref.style,
968
1035
  props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
1036
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1037
+ var styleProps = {
1038
+ size: !size && isInsideButton ? 'medium' : size,
1039
+ color: color,
1040
+ style: style
1041
+ };
969
1042
  return React__default.createElement("svg", _extends({
970
1043
  xmlns: "http://www.w3.org/2000/svg",
971
1044
  fill: "none",
972
1045
  viewBox: "0 0 20 20",
973
- style: getIconStyles(props),
1046
+ style: getIconStyles(styleProps),
974
1047
  "data-testid": testId,
975
1048
  ref: ref
976
1049
  }, props), React__default.createElement("path", {
@@ -982,16 +1055,25 @@ var IconArrowLeft = forwardRef(function (_ref, ref) {
982
1055
  });
983
1056
  IconArrowLeft.displayName = 'IconArrowLeft';
984
1057
 
985
- var _excluded$a = ["testId"];
1058
+ var _excluded$a = ["testId", "size", "color", "style"];
986
1059
  var IconArrowRight = forwardRef(function (_ref, ref) {
987
1060
  var _ref$testId = _ref.testId,
988
1061
  testId = _ref$testId === void 0 ? 'icon-arrow-right' : _ref$testId,
1062
+ size = _ref.size,
1063
+ color = _ref.color,
1064
+ style = _ref.style,
989
1065
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1066
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1067
+ var styleProps = {
1068
+ size: !size && isInsideButton ? 'medium' : size,
1069
+ color: color,
1070
+ style: style
1071
+ };
990
1072
  return React__default.createElement("svg", _extends({
991
1073
  xmlns: "http://www.w3.org/2000/svg",
992
1074
  fill: "none",
993
1075
  viewBox: "0 0 20 20",
994
- style: getIconStyles(props),
1076
+ style: getIconStyles(styleProps),
995
1077
  "data-testid": testId,
996
1078
  ref: ref
997
1079
  }, props), React__default.createElement("path", {
@@ -1003,16 +1085,25 @@ var IconArrowRight = forwardRef(function (_ref, ref) {
1003
1085
  });
1004
1086
  IconArrowRight.displayName = 'IconArrowRight';
1005
1087
 
1006
- var _excluded$b = ["testId"];
1088
+ var _excluded$b = ["testId", "size", "color", "style"];
1007
1089
  var IconArrowToTop = forwardRef(function (_ref, ref) {
1008
1090
  var _ref$testId = _ref.testId,
1009
1091
  testId = _ref$testId === void 0 ? 'icon-arrow-to-top' : _ref$testId,
1092
+ size = _ref.size,
1093
+ color = _ref.color,
1094
+ style = _ref.style,
1010
1095
  props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
1096
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1097
+ var styleProps = {
1098
+ size: !size && isInsideButton ? 'medium' : size,
1099
+ color: color,
1100
+ style: style
1101
+ };
1011
1102
  return React__default.createElement("svg", _extends({
1012
1103
  xmlns: "http://www.w3.org/2000/svg",
1013
1104
  fill: "none",
1014
1105
  viewBox: "0 0 20 20",
1015
- style: getIconStyles(props),
1106
+ style: getIconStyles(styleProps),
1016
1107
  "data-testid": testId,
1017
1108
  ref: ref
1018
1109
  }, props), React__default.createElement("path", {
@@ -1022,16 +1113,25 @@ var IconArrowToTop = forwardRef(function (_ref, ref) {
1022
1113
  });
1023
1114
  IconArrowToTop.displayName = 'IconArrowToTop';
1024
1115
 
1025
- var _excluded$c = ["testId"];
1116
+ var _excluded$c = ["testId", "size", "color", "style"];
1026
1117
  var IconArrowTurnDownRight = forwardRef(function (_ref, ref) {
1027
1118
  var _ref$testId = _ref.testId,
1028
1119
  testId = _ref$testId === void 0 ? 'icon-arrow-turn-down-right' : _ref$testId,
1120
+ size = _ref.size,
1121
+ color = _ref.color,
1122
+ style = _ref.style,
1029
1123
  props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
1124
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1125
+ var styleProps = {
1126
+ size: !size && isInsideButton ? 'medium' : size,
1127
+ color: color,
1128
+ style: style
1129
+ };
1030
1130
  return React__default.createElement("svg", _extends({
1031
1131
  xmlns: "http://www.w3.org/2000/svg",
1032
1132
  fill: "none",
1033
1133
  viewBox: "0 0 20 20",
1034
- style: getIconStyles(props),
1134
+ style: getIconStyles(styleProps),
1035
1135
  "data-testid": testId,
1036
1136
  ref: ref
1037
1137
  }, props), React__default.createElement("g", {
@@ -1049,16 +1149,25 @@ var IconArrowTurnDownRight = forwardRef(function (_ref, ref) {
1049
1149
  });
1050
1150
  IconArrowTurnDownRight.displayName = 'IconArrowTurnDownRight';
1051
1151
 
1052
- var _excluded$d = ["testId"];
1152
+ var _excluded$d = ["testId", "size", "color", "style"];
1053
1153
  var IconArrowUp = forwardRef(function (_ref, ref) {
1054
1154
  var _ref$testId = _ref.testId,
1055
1155
  testId = _ref$testId === void 0 ? 'icon-arrow-up' : _ref$testId,
1156
+ size = _ref.size,
1157
+ color = _ref.color,
1158
+ style = _ref.style,
1056
1159
  props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
1160
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1161
+ var styleProps = {
1162
+ size: !size && isInsideButton ? 'medium' : size,
1163
+ color: color,
1164
+ style: style
1165
+ };
1057
1166
  return React__default.createElement("svg", _extends({
1058
1167
  xmlns: "http://www.w3.org/2000/svg",
1059
1168
  fill: "none",
1060
1169
  viewBox: "0 0 20 20",
1061
- style: getIconStyles(props),
1170
+ style: getIconStyles(styleProps),
1062
1171
  "data-testid": testId,
1063
1172
  ref: ref
1064
1173
  }, props), React__default.createElement("path", {
@@ -1070,16 +1179,25 @@ var IconArrowUp = forwardRef(function (_ref, ref) {
1070
1179
  });
1071
1180
  IconArrowUp.displayName = 'IconArrowUp';
1072
1181
 
1073
- var _excluded$e = ["testId"];
1182
+ var _excluded$e = ["testId", "size", "color", "style"];
1074
1183
  var IconAward = forwardRef(function (_ref, ref) {
1075
1184
  var _ref$testId = _ref.testId,
1076
1185
  testId = _ref$testId === void 0 ? 'icon-award' : _ref$testId,
1186
+ size = _ref.size,
1187
+ color = _ref.color,
1188
+ style = _ref.style,
1077
1189
  props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
1190
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1191
+ var styleProps = {
1192
+ size: !size && isInsideButton ? 'medium' : size,
1193
+ color: color,
1194
+ style: style
1195
+ };
1078
1196
  return React__default.createElement("svg", _extends({
1079
1197
  xmlns: "http://www.w3.org/2000/svg",
1080
1198
  fill: "none",
1081
1199
  viewBox: "0 0 20 20",
1082
- style: getIconStyles(props),
1200
+ style: getIconStyles(styleProps),
1083
1201
  "data-testid": testId,
1084
1202
  ref: ref
1085
1203
  }, props), React__default.createElement("path", {
@@ -1091,16 +1209,25 @@ var IconAward = forwardRef(function (_ref, ref) {
1091
1209
  });
1092
1210
  IconAward.displayName = 'IconAward';
1093
1211
 
1094
- var _excluded$f = ["testId"];
1212
+ var _excluded$f = ["testId", "size", "color", "style"];
1095
1213
  var IconAwfulMonochromatic = forwardRef(function (_ref, ref) {
1096
1214
  var _ref$testId = _ref.testId,
1097
1215
  testId = _ref$testId === void 0 ? 'icon-awful-monochromatic' : _ref$testId,
1216
+ size = _ref.size,
1217
+ color = _ref.color,
1218
+ style = _ref.style,
1098
1219
  props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
1220
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1221
+ var styleProps = {
1222
+ size: !size && isInsideButton ? 'medium' : size,
1223
+ color: color,
1224
+ style: style
1225
+ };
1099
1226
  return React__default.createElement("svg", _extends({
1100
1227
  xmlns: "http://www.w3.org/2000/svg",
1101
1228
  fill: "none",
1102
1229
  viewBox: "0 0 20 20",
1103
- style: getIconStyles(props),
1230
+ style: getIconStyles(styleProps),
1104
1231
  "data-testid": testId,
1105
1232
  ref: ref
1106
1233
  }, props), React__default.createElement("path", {
@@ -1142,16 +1269,25 @@ var IconAwfulMonochromatic = forwardRef(function (_ref, ref) {
1142
1269
  });
1143
1270
  IconAwfulMonochromatic.displayName = 'IconAwfulMonochromatic';
1144
1271
 
1145
- var _excluded$g = ["testId"];
1272
+ var _excluded$g = ["testId", "size", "color", "style"];
1146
1273
  var IconAwful = forwardRef(function (_ref, ref) {
1147
1274
  var _ref$testId = _ref.testId,
1148
1275
  testId = _ref$testId === void 0 ? 'icon-awful' : _ref$testId,
1276
+ size = _ref.size,
1277
+ color = _ref.color,
1278
+ style = _ref.style,
1149
1279
  props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
1280
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1281
+ var styleProps = {
1282
+ size: !size && isInsideButton ? 'medium' : size,
1283
+ color: color,
1284
+ style: style
1285
+ };
1150
1286
  return React__default.createElement("svg", _extends({
1151
1287
  xmlns: "http://www.w3.org/2000/svg",
1152
1288
  fill: "none",
1153
1289
  viewBox: "0 0 20 20",
1154
- style: getIconStyles(props),
1290
+ style: getIconStyles(styleProps),
1155
1291
  "data-testid": testId,
1156
1292
  ref: ref
1157
1293
  }, props), React__default.createElement("path", {
@@ -1181,16 +1317,25 @@ var IconAwful = forwardRef(function (_ref, ref) {
1181
1317
  });
1182
1318
  IconAwful.displayName = 'IconAwful';
1183
1319
 
1184
- var _excluded$h = ["testId"];
1320
+ var _excluded$h = ["testId", "size", "color", "style"];
1185
1321
  var IconBadMonochromatic = forwardRef(function (_ref, ref) {
1186
1322
  var _ref$testId = _ref.testId,
1187
1323
  testId = _ref$testId === void 0 ? 'icon-bad-monochromatic' : _ref$testId,
1324
+ size = _ref.size,
1325
+ color = _ref.color,
1326
+ style = _ref.style,
1188
1327
  props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
1328
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1329
+ var styleProps = {
1330
+ size: !size && isInsideButton ? 'medium' : size,
1331
+ color: color,
1332
+ style: style
1333
+ };
1189
1334
  return React__default.createElement("svg", _extends({
1190
1335
  xmlns: "http://www.w3.org/2000/svg",
1191
1336
  fill: "none",
1192
1337
  viewBox: "0 0 20 20",
1193
- style: getIconStyles(props),
1338
+ style: getIconStyles(styleProps),
1194
1339
  "data-testid": testId,
1195
1340
  ref: ref
1196
1341
  }, props), React__default.createElement("path", {
@@ -1218,16 +1363,25 @@ var IconBadMonochromatic = forwardRef(function (_ref, ref) {
1218
1363
  });
1219
1364
  IconBadMonochromatic.displayName = 'IconBadMonochromatic';
1220
1365
 
1221
- var _excluded$i = ["testId"];
1366
+ var _excluded$i = ["testId", "size", "color", "style"];
1222
1367
  var IconBad = forwardRef(function (_ref, ref) {
1223
1368
  var _ref$testId = _ref.testId,
1224
1369
  testId = _ref$testId === void 0 ? 'icon-bad' : _ref$testId,
1370
+ size = _ref.size,
1371
+ color = _ref.color,
1372
+ style = _ref.style,
1225
1373
  props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
1374
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1375
+ var styleProps = {
1376
+ size: !size && isInsideButton ? 'medium' : size,
1377
+ color: color,
1378
+ style: style
1379
+ };
1226
1380
  return React__default.createElement("svg", _extends({
1227
1381
  xmlns: "http://www.w3.org/2000/svg",
1228
1382
  fill: "none",
1229
1383
  viewBox: "0 0 20 20",
1230
- style: getIconStyles(props),
1384
+ style: getIconStyles(styleProps),
1231
1385
  "data-testid": testId,
1232
1386
  ref: ref
1233
1387
  }, props), React__default.createElement("path", {
@@ -1243,16 +1397,25 @@ var IconBad = forwardRef(function (_ref, ref) {
1243
1397
  });
1244
1398
  IconBad.displayName = 'IconBad';
1245
1399
 
1246
- var _excluded$j = ["testId"];
1400
+ var _excluded$j = ["testId", "size", "color", "style"];
1247
1401
  var IconBalanceScaleLeft = forwardRef(function (_ref, ref) {
1248
1402
  var _ref$testId = _ref.testId,
1249
1403
  testId = _ref$testId === void 0 ? 'icon-balance-scale-left' : _ref$testId,
1404
+ size = _ref.size,
1405
+ color = _ref.color,
1406
+ style = _ref.style,
1250
1407
  props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
1408
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1409
+ var styleProps = {
1410
+ size: !size && isInsideButton ? 'medium' : size,
1411
+ color: color,
1412
+ style: style
1413
+ };
1251
1414
  return React__default.createElement("svg", _extends({
1252
1415
  xmlns: "http://www.w3.org/2000/svg",
1253
1416
  fill: "none",
1254
1417
  viewBox: "0 0 20 20",
1255
- style: getIconStyles(props),
1418
+ style: getIconStyles(styleProps),
1256
1419
  "data-testid": testId,
1257
1420
  ref: ref
1258
1421
  }, props), React__default.createElement("g", {
@@ -1269,16 +1432,25 @@ var IconBalanceScaleLeft = forwardRef(function (_ref, ref) {
1269
1432
  });
1270
1433
  IconBalanceScaleLeft.displayName = 'IconBalanceScaleLeft';
1271
1434
 
1272
- var _excluded$k = ["testId"];
1435
+ var _excluded$k = ["testId", "size", "color", "style"];
1273
1436
  var IconBalanceScale = forwardRef(function (_ref, ref) {
1274
1437
  var _ref$testId = _ref.testId,
1275
1438
  testId = _ref$testId === void 0 ? 'icon-balance-scale' : _ref$testId,
1439
+ size = _ref.size,
1440
+ color = _ref.color,
1441
+ style = _ref.style,
1276
1442
  props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
1443
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1444
+ var styleProps = {
1445
+ size: !size && isInsideButton ? 'medium' : size,
1446
+ color: color,
1447
+ style: style
1448
+ };
1277
1449
  return React__default.createElement("svg", _extends({
1278
1450
  xmlns: "http://www.w3.org/2000/svg",
1279
1451
  fill: "none",
1280
1452
  viewBox: "0 0 20 20",
1281
- style: getIconStyles(props),
1453
+ style: getIconStyles(styleProps),
1282
1454
  "data-testid": testId,
1283
1455
  ref: ref
1284
1456
  }, props), React__default.createElement("g", {
@@ -1295,16 +1467,25 @@ var IconBalanceScale = forwardRef(function (_ref, ref) {
1295
1467
  });
1296
1468
  IconBalanceScale.displayName = 'IconBalanceScale';
1297
1469
 
1298
- var _excluded$l = ["testId"];
1470
+ var _excluded$l = ["testId", "size", "color", "style"];
1299
1471
  var IconBan = forwardRef(function (_ref, ref) {
1300
1472
  var _ref$testId = _ref.testId,
1301
1473
  testId = _ref$testId === void 0 ? 'icon-ban' : _ref$testId,
1474
+ size = _ref.size,
1475
+ color = _ref.color,
1476
+ style = _ref.style,
1302
1477
  props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
1478
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1479
+ var styleProps = {
1480
+ size: !size && isInsideButton ? 'medium' : size,
1481
+ color: color,
1482
+ style: style
1483
+ };
1303
1484
  return React__default.createElement("svg", _extends({
1304
1485
  xmlns: "http://www.w3.org/2000/svg",
1305
1486
  fill: "none",
1306
1487
  viewBox: "0 0 20 20",
1307
- style: getIconStyles(props),
1488
+ style: getIconStyles(styleProps),
1308
1489
  "data-testid": testId,
1309
1490
  ref: ref
1310
1491
  }, props), React__default.createElement("path", {
@@ -1314,16 +1495,25 @@ var IconBan = forwardRef(function (_ref, ref) {
1314
1495
  });
1315
1496
  IconBan.displayName = 'IconBan';
1316
1497
 
1317
- var _excluded$m = ["testId"];
1498
+ var _excluded$m = ["testId", "size", "color", "style"];
1318
1499
  var IconBarsH = forwardRef(function (_ref, ref) {
1319
1500
  var _ref$testId = _ref.testId,
1320
1501
  testId = _ref$testId === void 0 ? 'icon-bars-h' : _ref$testId,
1502
+ size = _ref.size,
1503
+ color = _ref.color,
1504
+ style = _ref.style,
1321
1505
  props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
1506
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1507
+ var styleProps = {
1508
+ size: !size && isInsideButton ? 'medium' : size,
1509
+ color: color,
1510
+ style: style
1511
+ };
1322
1512
  return React__default.createElement("svg", _extends({
1323
1513
  xmlns: "http://www.w3.org/2000/svg",
1324
1514
  fill: "none",
1325
1515
  viewBox: "0 0 20 20",
1326
- style: getIconStyles(props),
1516
+ style: getIconStyles(styleProps),
1327
1517
  "data-testid": testId,
1328
1518
  ref: ref
1329
1519
  }, props), React__default.createElement("path", {
@@ -1335,16 +1525,25 @@ var IconBarsH = forwardRef(function (_ref, ref) {
1335
1525
  });
1336
1526
  IconBarsH.displayName = 'IconBarsH';
1337
1527
 
1338
- var _excluded$n = ["testId"];
1528
+ var _excluded$n = ["testId", "size", "color", "style"];
1339
1529
  var IconBarsV = forwardRef(function (_ref, ref) {
1340
1530
  var _ref$testId = _ref.testId,
1341
1531
  testId = _ref$testId === void 0 ? 'icon-bars-v' : _ref$testId,
1532
+ size = _ref.size,
1533
+ color = _ref.color,
1534
+ style = _ref.style,
1342
1535
  props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
1536
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1537
+ var styleProps = {
1538
+ size: !size && isInsideButton ? 'medium' : size,
1539
+ color: color,
1540
+ style: style
1541
+ };
1343
1542
  return React__default.createElement("svg", _extends({
1344
1543
  xmlns: "http://www.w3.org/2000/svg",
1345
1544
  fill: "none",
1346
1545
  viewBox: "0 0 20 20",
1347
- style: getIconStyles(props),
1546
+ style: getIconStyles(styleProps),
1348
1547
  "data-testid": testId,
1349
1548
  ref: ref
1350
1549
  }, props), React__default.createElement("path", {
@@ -1354,16 +1553,25 @@ var IconBarsV = forwardRef(function (_ref, ref) {
1354
1553
  });
1355
1554
  IconBarsV.displayName = 'IconBarsV';
1356
1555
 
1357
- var _excluded$o = ["testId"];
1556
+ var _excluded$o = ["testId", "size", "color", "style"];
1358
1557
  var IconBell = forwardRef(function (_ref, ref) {
1359
1558
  var _ref$testId = _ref.testId,
1360
1559
  testId = _ref$testId === void 0 ? 'icon-bell' : _ref$testId,
1560
+ size = _ref.size,
1561
+ color = _ref.color,
1562
+ style = _ref.style,
1361
1563
  props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
1564
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1565
+ var styleProps = {
1566
+ size: !size && isInsideButton ? 'medium' : size,
1567
+ color: color,
1568
+ style: style
1569
+ };
1362
1570
  return React__default.createElement("svg", _extends({
1363
1571
  xmlns: "http://www.w3.org/2000/svg",
1364
1572
  fill: "none",
1365
1573
  viewBox: "0 0 20 20",
1366
- style: getIconStyles(props),
1574
+ style: getIconStyles(styleProps),
1367
1575
  "data-testid": testId,
1368
1576
  ref: ref
1369
1577
  }, props), React__default.createElement("path", {
@@ -1375,16 +1583,25 @@ var IconBell = forwardRef(function (_ref, ref) {
1375
1583
  });
1376
1584
  IconBell.displayName = 'IconBell';
1377
1585
 
1378
- var _excluded$p = ["testId"];
1586
+ var _excluded$p = ["testId", "size", "color", "style"];
1379
1587
  var IconBirthdayCake = forwardRef(function (_ref, ref) {
1380
1588
  var _ref$testId = _ref.testId,
1381
1589
  testId = _ref$testId === void 0 ? 'icon-birthday-cake' : _ref$testId,
1590
+ size = _ref.size,
1591
+ color = _ref.color,
1592
+ style = _ref.style,
1382
1593
  props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
1594
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1595
+ var styleProps = {
1596
+ size: !size && isInsideButton ? 'medium' : size,
1597
+ color: color,
1598
+ style: style
1599
+ };
1383
1600
  return React__default.createElement("svg", _extends({
1384
1601
  xmlns: "http://www.w3.org/2000/svg",
1385
1602
  fill: "none",
1386
1603
  viewBox: "0 0 20 20",
1387
- style: getIconStyles(props),
1604
+ style: getIconStyles(styleProps),
1388
1605
  "data-testid": testId,
1389
1606
  ref: ref
1390
1607
  }, props), React__default.createElement("path", {
@@ -1394,16 +1611,25 @@ var IconBirthdayCake = forwardRef(function (_ref, ref) {
1394
1611
  });
1395
1612
  IconBirthdayCake.displayName = 'IconBirthdayCake';
1396
1613
 
1397
- var _excluded$q = ["testId"];
1614
+ var _excluded$q = ["testId", "size", "color", "style"];
1398
1615
  var IconBold = forwardRef(function (_ref, ref) {
1399
1616
  var _ref$testId = _ref.testId,
1400
1617
  testId = _ref$testId === void 0 ? 'icon-bold' : _ref$testId,
1618
+ size = _ref.size,
1619
+ color = _ref.color,
1620
+ style = _ref.style,
1401
1621
  props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
1622
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1623
+ var styleProps = {
1624
+ size: !size && isInsideButton ? 'medium' : size,
1625
+ color: color,
1626
+ style: style
1627
+ };
1402
1628
  return React__default.createElement("svg", _extends({
1403
1629
  xmlns: "http://www.w3.org/2000/svg",
1404
1630
  fill: "none",
1405
1631
  viewBox: "0 0 20 20",
1406
- style: getIconStyles(props),
1632
+ style: getIconStyles(styleProps),
1407
1633
  "data-testid": testId,
1408
1634
  ref: ref
1409
1635
  }, props), React__default.createElement("path", {
@@ -1413,16 +1639,25 @@ var IconBold = forwardRef(function (_ref, ref) {
1413
1639
  });
1414
1640
  IconBold.displayName = 'IconBold';
1415
1641
 
1416
- var _excluded$r = ["testId"];
1642
+ var _excluded$r = ["testId", "size", "color", "style"];
1417
1643
  var IconBolt = forwardRef(function (_ref, ref) {
1418
1644
  var _ref$testId = _ref.testId,
1419
1645
  testId = _ref$testId === void 0 ? 'icon-bolt' : _ref$testId,
1646
+ size = _ref.size,
1647
+ color = _ref.color,
1648
+ style = _ref.style,
1420
1649
  props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
1650
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1651
+ var styleProps = {
1652
+ size: !size && isInsideButton ? 'medium' : size,
1653
+ color: color,
1654
+ style: style
1655
+ };
1421
1656
  return React__default.createElement("svg", _extends({
1422
1657
  xmlns: "http://www.w3.org/2000/svg",
1423
1658
  fill: "none",
1424
1659
  viewBox: "0 0 20 20",
1425
- style: getIconStyles(props),
1660
+ style: getIconStyles(styleProps),
1426
1661
  "data-testid": testId,
1427
1662
  ref: ref
1428
1663
  }, props), React__default.createElement("g", {
@@ -1439,16 +1674,25 @@ var IconBolt = forwardRef(function (_ref, ref) {
1439
1674
  });
1440
1675
  IconBolt.displayName = 'IconBolt';
1441
1676
 
1442
- var _excluded$s = ["testId"];
1677
+ var _excluded$s = ["testId", "size", "color", "style"];
1443
1678
  var IconBook = forwardRef(function (_ref, ref) {
1444
1679
  var _ref$testId = _ref.testId,
1445
1680
  testId = _ref$testId === void 0 ? 'icon-book' : _ref$testId,
1681
+ size = _ref.size,
1682
+ color = _ref.color,
1683
+ style = _ref.style,
1446
1684
  props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
1685
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1686
+ var styleProps = {
1687
+ size: !size && isInsideButton ? 'medium' : size,
1688
+ color: color,
1689
+ style: style
1690
+ };
1447
1691
  return React__default.createElement("svg", _extends({
1448
1692
  xmlns: "http://www.w3.org/2000/svg",
1449
1693
  fill: "none",
1450
1694
  viewBox: "0 0 20 20",
1451
- style: getIconStyles(props),
1695
+ style: getIconStyles(styleProps),
1452
1696
  "data-testid": testId,
1453
1697
  ref: ref
1454
1698
  }, props), React__default.createElement("path", {
@@ -1460,16 +1704,25 @@ var IconBook = forwardRef(function (_ref, ref) {
1460
1704
  });
1461
1705
  IconBook.displayName = 'IconBook';
1462
1706
 
1463
- var _excluded$t = ["testId"];
1707
+ var _excluded$t = ["testId", "size", "color", "style"];
1464
1708
  var IconBriefcase = forwardRef(function (_ref, ref) {
1465
1709
  var _ref$testId = _ref.testId,
1466
1710
  testId = _ref$testId === void 0 ? 'icon-briefcase' : _ref$testId,
1711
+ size = _ref.size,
1712
+ color = _ref.color,
1713
+ style = _ref.style,
1467
1714
  props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
1715
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1716
+ var styleProps = {
1717
+ size: !size && isInsideButton ? 'medium' : size,
1718
+ color: color,
1719
+ style: style
1720
+ };
1468
1721
  return React__default.createElement("svg", _extends({
1469
1722
  xmlns: "http://www.w3.org/2000/svg",
1470
1723
  fill: "none",
1471
1724
  viewBox: "0 0 20 20",
1472
- style: getIconStyles(props),
1725
+ style: getIconStyles(styleProps),
1473
1726
  "data-testid": testId,
1474
1727
  ref: ref
1475
1728
  }, props), React__default.createElement("path", {
@@ -1479,16 +1732,25 @@ var IconBriefcase = forwardRef(function (_ref, ref) {
1479
1732
  });
1480
1733
  IconBriefcase.displayName = 'IconBriefcase';
1481
1734
 
1482
- var _excluded$u = ["testId"];
1735
+ var _excluded$u = ["testId", "size", "color", "style"];
1483
1736
  var IconBullseyeArrow = forwardRef(function (_ref, ref) {
1484
1737
  var _ref$testId = _ref.testId,
1485
1738
  testId = _ref$testId === void 0 ? 'icon-bullseye-arrow' : _ref$testId,
1739
+ size = _ref.size,
1740
+ color = _ref.color,
1741
+ style = _ref.style,
1486
1742
  props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
1743
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1744
+ var styleProps = {
1745
+ size: !size && isInsideButton ? 'medium' : size,
1746
+ color: color,
1747
+ style: style
1748
+ };
1487
1749
  return React__default.createElement("svg", _extends({
1488
1750
  xmlns: "http://www.w3.org/2000/svg",
1489
1751
  fill: "none",
1490
1752
  viewBox: "0 0 20 20",
1491
- style: getIconStyles(props),
1753
+ style: getIconStyles(styleProps),
1492
1754
  "data-testid": testId,
1493
1755
  ref: ref
1494
1756
  }, props), React__default.createElement("path", {
@@ -1500,16 +1762,25 @@ var IconBullseyeArrow = forwardRef(function (_ref, ref) {
1500
1762
  });
1501
1763
  IconBullseyeArrow.displayName = 'IconBullseyeArrow';
1502
1764
 
1503
- var _excluded$v = ["testId"];
1765
+ var _excluded$v = ["testId", "size", "color", "style"];
1504
1766
  var IconCalculator = forwardRef(function (_ref, ref) {
1505
1767
  var _ref$testId = _ref.testId,
1506
1768
  testId = _ref$testId === void 0 ? 'icon-calculator' : _ref$testId,
1769
+ size = _ref.size,
1770
+ color = _ref.color,
1771
+ style = _ref.style,
1507
1772
  props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1773
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1774
+ var styleProps = {
1775
+ size: !size && isInsideButton ? 'medium' : size,
1776
+ color: color,
1777
+ style: style
1778
+ };
1508
1779
  return React__default.createElement("svg", _extends({
1509
1780
  xmlns: "http://www.w3.org/2000/svg",
1510
1781
  fill: "none",
1511
1782
  viewBox: "0 0 20 20",
1512
- style: getIconStyles(props),
1783
+ style: getIconStyles(styleProps),
1513
1784
  "data-testid": testId,
1514
1785
  ref: ref
1515
1786
  }, props), React__default.createElement("path", {
@@ -1521,16 +1792,25 @@ var IconCalculator = forwardRef(function (_ref, ref) {
1521
1792
  });
1522
1793
  IconCalculator.displayName = 'IconCalculator';
1523
1794
 
1524
- var _excluded$w = ["testId"];
1795
+ var _excluded$w = ["testId", "size", "color", "style"];
1525
1796
  var IconCalendarAlt = forwardRef(function (_ref, ref) {
1526
1797
  var _ref$testId = _ref.testId,
1527
1798
  testId = _ref$testId === void 0 ? 'icon-calendar-alt' : _ref$testId,
1799
+ size = _ref.size,
1800
+ color = _ref.color,
1801
+ style = _ref.style,
1528
1802
  props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
1803
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1804
+ var styleProps = {
1805
+ size: !size && isInsideButton ? 'medium' : size,
1806
+ color: color,
1807
+ style: style
1808
+ };
1529
1809
  return React__default.createElement("svg", _extends({
1530
1810
  xmlns: "http://www.w3.org/2000/svg",
1531
1811
  fill: "none",
1532
1812
  viewBox: "0 0 20 20",
1533
- style: getIconStyles(props),
1813
+ style: getIconStyles(styleProps),
1534
1814
  "data-testid": testId,
1535
1815
  ref: ref
1536
1816
  }, props), React__default.createElement("path", {
@@ -1542,16 +1822,25 @@ var IconCalendarAlt = forwardRef(function (_ref, ref) {
1542
1822
  });
1543
1823
  IconCalendarAlt.displayName = 'IconCalendarAlt';
1544
1824
 
1545
- var _excluded$x = ["testId"];
1825
+ var _excluded$x = ["testId", "size", "color", "style"];
1546
1826
  var IconCalendarCheck = forwardRef(function (_ref, ref) {
1547
1827
  var _ref$testId = _ref.testId,
1548
1828
  testId = _ref$testId === void 0 ? 'icon-calendar-check' : _ref$testId,
1829
+ size = _ref.size,
1830
+ color = _ref.color,
1831
+ style = _ref.style,
1549
1832
  props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
1833
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1834
+ var styleProps = {
1835
+ size: !size && isInsideButton ? 'medium' : size,
1836
+ color: color,
1837
+ style: style
1838
+ };
1550
1839
  return React__default.createElement("svg", _extends({
1551
1840
  xmlns: "http://www.w3.org/2000/svg",
1552
1841
  fill: "none",
1553
1842
  viewBox: "0 0 20 20",
1554
- style: getIconStyles(props),
1843
+ style: getIconStyles(styleProps),
1555
1844
  "data-testid": testId,
1556
1845
  ref: ref
1557
1846
  }, props), React__default.createElement("path", {
@@ -1563,16 +1852,25 @@ var IconCalendarCheck = forwardRef(function (_ref, ref) {
1563
1852
  });
1564
1853
  IconCalendarCheck.displayName = 'IconCalendarCheck';
1565
1854
 
1566
- var _excluded$y = ["testId"];
1855
+ var _excluded$y = ["testId", "size", "color", "style"];
1567
1856
  var IconCalendarDay = forwardRef(function (_ref, ref) {
1568
1857
  var _ref$testId = _ref.testId,
1569
1858
  testId = _ref$testId === void 0 ? 'icon-calendar-day' : _ref$testId,
1859
+ size = _ref.size,
1860
+ color = _ref.color,
1861
+ style = _ref.style,
1570
1862
  props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1863
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1864
+ var styleProps = {
1865
+ size: !size && isInsideButton ? 'medium' : size,
1866
+ color: color,
1867
+ style: style
1868
+ };
1571
1869
  return React__default.createElement("svg", _extends({
1572
1870
  xmlns: "http://www.w3.org/2000/svg",
1573
1871
  fill: "none",
1574
1872
  viewBox: "0 0 20 20",
1575
- style: getIconStyles(props),
1873
+ style: getIconStyles(styleProps),
1576
1874
  "data-testid": testId,
1577
1875
  ref: ref
1578
1876
  }, props), React__default.createElement("g", {
@@ -1589,16 +1887,25 @@ var IconCalendarDay = forwardRef(function (_ref, ref) {
1589
1887
  });
1590
1888
  IconCalendarDay.displayName = 'IconCalendarDay';
1591
1889
 
1592
- var _excluded$z = ["testId"];
1890
+ var _excluded$z = ["testId", "size", "color", "style"];
1593
1891
  var IconCalendarExclamation = forwardRef(function (_ref, ref) {
1594
1892
  var _ref$testId = _ref.testId,
1595
1893
  testId = _ref$testId === void 0 ? 'icon-calendar-exclamation' : _ref$testId,
1894
+ size = _ref.size,
1895
+ color = _ref.color,
1896
+ style = _ref.style,
1596
1897
  props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1898
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1899
+ var styleProps = {
1900
+ size: !size && isInsideButton ? 'medium' : size,
1901
+ color: color,
1902
+ style: style
1903
+ };
1597
1904
  return React__default.createElement("svg", _extends({
1598
1905
  xmlns: "http://www.w3.org/2000/svg",
1599
1906
  fill: "none",
1600
1907
  viewBox: "0 0 20 20",
1601
- style: getIconStyles(props),
1908
+ style: getIconStyles(styleProps),
1602
1909
  "data-testid": testId,
1603
1910
  ref: ref
1604
1911
  }, props), React__default.createElement("path", {
@@ -1608,16 +1915,25 @@ var IconCalendarExclamation = forwardRef(function (_ref, ref) {
1608
1915
  });
1609
1916
  IconCalendarExclamation.displayName = 'IconCalendarExclamation';
1610
1917
 
1611
- var _excluded$A = ["testId"];
1918
+ var _excluded$A = ["testId", "size", "color", "style"];
1612
1919
  var IconCalendarStar = forwardRef(function (_ref, ref) {
1613
1920
  var _ref$testId = _ref.testId,
1614
1921
  testId = _ref$testId === void 0 ? 'icon-calendar-star' : _ref$testId,
1922
+ size = _ref.size,
1923
+ color = _ref.color,
1924
+ style = _ref.style,
1615
1925
  props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1926
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1927
+ var styleProps = {
1928
+ size: !size && isInsideButton ? 'medium' : size,
1929
+ color: color,
1930
+ style: style
1931
+ };
1616
1932
  return React__default.createElement("svg", _extends({
1617
1933
  xmlns: "http://www.w3.org/2000/svg",
1618
1934
  fill: "none",
1619
1935
  viewBox: "0 0 20 20",
1620
- style: getIconStyles(props),
1936
+ style: getIconStyles(styleProps),
1621
1937
  "data-testid": testId,
1622
1938
  ref: ref
1623
1939
  }, props), React__default.createElement("path", {
@@ -1627,16 +1943,25 @@ var IconCalendarStar = forwardRef(function (_ref, ref) {
1627
1943
  });
1628
1944
  IconCalendarStar.displayName = 'IconCalendarStar';
1629
1945
 
1630
- var _excluded$B = ["testId"];
1946
+ var _excluded$B = ["testId", "size", "color", "style"];
1631
1947
  var IconCalendarTomorrow = forwardRef(function (_ref, ref) {
1632
1948
  var _ref$testId = _ref.testId,
1633
1949
  testId = _ref$testId === void 0 ? 'icon-calendar-tomorrow' : _ref$testId,
1950
+ size = _ref.size,
1951
+ color = _ref.color,
1952
+ style = _ref.style,
1634
1953
  props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1954
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1955
+ var styleProps = {
1956
+ size: !size && isInsideButton ? 'medium' : size,
1957
+ color: color,
1958
+ style: style
1959
+ };
1635
1960
  return React__default.createElement("svg", _extends({
1636
1961
  xmlns: "http://www.w3.org/2000/svg",
1637
1962
  fill: "none",
1638
1963
  viewBox: "0 0 20 20",
1639
- style: getIconStyles(props),
1964
+ style: getIconStyles(styleProps),
1640
1965
  "data-testid": testId,
1641
1966
  ref: ref
1642
1967
  }, props), React__default.createElement("g", {
@@ -1655,16 +1980,25 @@ var IconCalendarTomorrow = forwardRef(function (_ref, ref) {
1655
1980
  });
1656
1981
  IconCalendarTomorrow.displayName = 'IconCalendarTomorrow';
1657
1982
 
1658
- var _excluded$C = ["testId"];
1983
+ var _excluded$C = ["testId", "size", "color", "style"];
1659
1984
  var IconCalendar = forwardRef(function (_ref, ref) {
1660
1985
  var _ref$testId = _ref.testId,
1661
1986
  testId = _ref$testId === void 0 ? 'icon-calendar' : _ref$testId,
1987
+ size = _ref.size,
1988
+ color = _ref.color,
1989
+ style = _ref.style,
1662
1990
  props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1991
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
1992
+ var styleProps = {
1993
+ size: !size && isInsideButton ? 'medium' : size,
1994
+ color: color,
1995
+ style: style
1996
+ };
1663
1997
  return React__default.createElement("svg", _extends({
1664
1998
  xmlns: "http://www.w3.org/2000/svg",
1665
1999
  fill: "none",
1666
2000
  viewBox: "0 0 20 20",
1667
- style: getIconStyles(props),
2001
+ style: getIconStyles(styleProps),
1668
2002
  "data-testid": testId,
1669
2003
  ref: ref
1670
2004
  }, props), React__default.createElement("path", {
@@ -1676,16 +2010,25 @@ var IconCalendar = forwardRef(function (_ref, ref) {
1676
2010
  });
1677
2011
  IconCalendar.displayName = 'IconCalendar';
1678
2012
 
1679
- var _excluded$D = ["testId"];
2013
+ var _excluded$D = ["testId", "size", "color", "style"];
1680
2014
  var IconCameraSlash = forwardRef(function (_ref, ref) {
1681
2015
  var _ref$testId = _ref.testId,
1682
2016
  testId = _ref$testId === void 0 ? 'icon-camera-slash' : _ref$testId,
2017
+ size = _ref.size,
2018
+ color = _ref.color,
2019
+ style = _ref.style,
1683
2020
  props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
2021
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2022
+ var styleProps = {
2023
+ size: !size && isInsideButton ? 'medium' : size,
2024
+ color: color,
2025
+ style: style
2026
+ };
1684
2027
  return React__default.createElement("svg", _extends({
1685
2028
  xmlns: "http://www.w3.org/2000/svg",
1686
2029
  fill: "none",
1687
2030
  viewBox: "0 0 20 20",
1688
- style: getIconStyles(props),
2031
+ style: getIconStyles(styleProps),
1689
2032
  "data-testid": testId,
1690
2033
  ref: ref
1691
2034
  }, props), React__default.createElement("path", {
@@ -1698,16 +2041,25 @@ var IconCameraSlash = forwardRef(function (_ref, ref) {
1698
2041
  });
1699
2042
  IconCameraSlash.displayName = 'IconCameraSlash';
1700
2043
 
1701
- var _excluded$E = ["testId"];
2044
+ var _excluded$E = ["testId", "size", "color", "style"];
1702
2045
  var IconCamera = forwardRef(function (_ref, ref) {
1703
2046
  var _ref$testId = _ref.testId,
1704
2047
  testId = _ref$testId === void 0 ? 'icon-camera' : _ref$testId,
2048
+ size = _ref.size,
2049
+ color = _ref.color,
2050
+ style = _ref.style,
1705
2051
  props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
2052
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2053
+ var styleProps = {
2054
+ size: !size && isInsideButton ? 'medium' : size,
2055
+ color: color,
2056
+ style: style
2057
+ };
1706
2058
  return React__default.createElement("svg", _extends({
1707
2059
  xmlns: "http://www.w3.org/2000/svg",
1708
2060
  fill: "none",
1709
2061
  viewBox: "0 0 20 20",
1710
- style: getIconStyles(props),
2062
+ style: getIconStyles(styleProps),
1711
2063
  "data-testid": testId,
1712
2064
  ref: ref
1713
2065
  }, props), React__default.createElement("path", {
@@ -1717,16 +2069,25 @@ var IconCamera = forwardRef(function (_ref, ref) {
1717
2069
  });
1718
2070
  IconCamera.displayName = 'IconCamera';
1719
2071
 
1720
- var _excluded$F = ["testId"];
2072
+ var _excluded$F = ["testId", "size", "color", "style"];
1721
2073
  var IconCashRegister = forwardRef(function (_ref, ref) {
1722
2074
  var _ref$testId = _ref.testId,
1723
2075
  testId = _ref$testId === void 0 ? 'icon-cash-register' : _ref$testId,
2076
+ size = _ref.size,
2077
+ color = _ref.color,
2078
+ style = _ref.style,
1724
2079
  props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
2080
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2081
+ var styleProps = {
2082
+ size: !size && isInsideButton ? 'medium' : size,
2083
+ color: color,
2084
+ style: style
2085
+ };
1725
2086
  return React__default.createElement("svg", _extends({
1726
2087
  xmlns: "http://www.w3.org/2000/svg",
1727
2088
  fill: "none",
1728
2089
  viewBox: "0 0 20 20",
1729
- style: getIconStyles(props),
2090
+ style: getIconStyles(styleProps),
1730
2091
  "data-testid": testId,
1731
2092
  ref: ref
1732
2093
  }, props), React__default.createElement("path", {
@@ -1736,16 +2097,25 @@ var IconCashRegister = forwardRef(function (_ref, ref) {
1736
2097
  });
1737
2098
  IconCashRegister.displayName = 'IconCashRegister';
1738
2099
 
1739
- var _excluded$G = ["testId"];
2100
+ var _excluded$G = ["testId", "size", "color", "style"];
1740
2101
  var IconChartBar = forwardRef(function (_ref, ref) {
1741
2102
  var _ref$testId = _ref.testId,
1742
2103
  testId = _ref$testId === void 0 ? 'icon-chart-bar' : _ref$testId,
2104
+ size = _ref.size,
2105
+ color = _ref.color,
2106
+ style = _ref.style,
1743
2107
  props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
2108
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2109
+ var styleProps = {
2110
+ size: !size && isInsideButton ? 'medium' : size,
2111
+ color: color,
2112
+ style: style
2113
+ };
1744
2114
  return React__default.createElement("svg", _extends({
1745
2115
  xmlns: "http://www.w3.org/2000/svg",
1746
2116
  fill: "none",
1747
2117
  viewBox: "0 0 20 20",
1748
- style: getIconStyles(props),
2118
+ style: getIconStyles(styleProps),
1749
2119
  "data-testid": testId,
1750
2120
  ref: ref
1751
2121
  }, props), React__default.createElement("path", {
@@ -1757,16 +2127,25 @@ var IconChartBar = forwardRef(function (_ref, ref) {
1757
2127
  });
1758
2128
  IconChartBar.displayName = 'IconChartBar';
1759
2129
 
1760
- var _excluded$H = ["testId"];
2130
+ var _excluded$H = ["testId", "size", "color", "style"];
1761
2131
  var IconCheckCircleIncomplete = forwardRef(function (_ref, ref) {
1762
2132
  var _ref$testId = _ref.testId,
1763
2133
  testId = _ref$testId === void 0 ? 'icon-check-circle-incomplete' : _ref$testId,
2134
+ size = _ref.size,
2135
+ color = _ref.color,
2136
+ style = _ref.style,
1764
2137
  props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
2138
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2139
+ var styleProps = {
2140
+ size: !size && isInsideButton ? 'medium' : size,
2141
+ color: color,
2142
+ style: style
2143
+ };
1765
2144
  return React__default.createElement("svg", _extends({
1766
2145
  xmlns: "http://www.w3.org/2000/svg",
1767
2146
  fill: "none",
1768
2147
  viewBox: "0 0 20 20",
1769
- style: getIconStyles(props),
2148
+ style: getIconStyles(styleProps),
1770
2149
  "data-testid": testId,
1771
2150
  ref: ref
1772
2151
  }, props), React__default.createElement("path", {
@@ -1776,16 +2155,25 @@ var IconCheckCircleIncomplete = forwardRef(function (_ref, ref) {
1776
2155
  });
1777
2156
  IconCheckCircleIncomplete.displayName = 'IconCheckCircleIncomplete';
1778
2157
 
1779
- var _excluded$I = ["testId"];
2158
+ var _excluded$I = ["testId", "size", "color", "style"];
1780
2159
  var IconCheck = forwardRef(function (_ref, ref) {
1781
2160
  var _ref$testId = _ref.testId,
1782
2161
  testId = _ref$testId === void 0 ? 'icon-check' : _ref$testId,
2162
+ size = _ref.size,
2163
+ color = _ref.color,
2164
+ style = _ref.style,
1783
2165
  props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
2166
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2167
+ var styleProps = {
2168
+ size: !size && isInsideButton ? 'medium' : size,
2169
+ color: color,
2170
+ style: style
2171
+ };
1784
2172
  return React__default.createElement("svg", _extends({
1785
2173
  xmlns: "http://www.w3.org/2000/svg",
1786
2174
  fill: "none",
1787
2175
  viewBox: "0 0 20 20",
1788
- style: getIconStyles(props),
2176
+ style: getIconStyles(styleProps),
1789
2177
  "data-testid": testId,
1790
2178
  ref: ref
1791
2179
  }, props), React__default.createElement("path", {
@@ -1797,16 +2185,25 @@ var IconCheck = forwardRef(function (_ref, ref) {
1797
2185
  });
1798
2186
  IconCheck.displayName = 'IconCheck';
1799
2187
 
1800
- var _excluded$J = ["testId"];
2188
+ var _excluded$J = ["testId", "size", "color", "style"];
1801
2189
  var IconChevronDown = forwardRef(function (_ref, ref) {
1802
2190
  var _ref$testId = _ref.testId,
1803
2191
  testId = _ref$testId === void 0 ? 'icon-chevron-down' : _ref$testId,
2192
+ size = _ref.size,
2193
+ color = _ref.color,
2194
+ style = _ref.style,
1804
2195
  props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
2196
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2197
+ var styleProps = {
2198
+ size: !size && isInsideButton ? 'medium' : size,
2199
+ color: color,
2200
+ style: style
2201
+ };
1805
2202
  return React__default.createElement("svg", _extends({
1806
2203
  xmlns: "http://www.w3.org/2000/svg",
1807
2204
  fill: "none",
1808
2205
  viewBox: "0 0 20 20",
1809
- style: getIconStyles(props),
2206
+ style: getIconStyles(styleProps),
1810
2207
  "data-testid": testId,
1811
2208
  ref: ref
1812
2209
  }, props), React__default.createElement("path", {
@@ -1818,16 +2215,25 @@ var IconChevronDown = forwardRef(function (_ref, ref) {
1818
2215
  });
1819
2216
  IconChevronDown.displayName = 'IconChevronDown';
1820
2217
 
1821
- var _excluded$K = ["testId"];
2218
+ var _excluded$K = ["testId", "size", "color", "style"];
1822
2219
  var IconChevronLeft = forwardRef(function (_ref, ref) {
1823
2220
  var _ref$testId = _ref.testId,
1824
2221
  testId = _ref$testId === void 0 ? 'icon-chevron-left' : _ref$testId,
2222
+ size = _ref.size,
2223
+ color = _ref.color,
2224
+ style = _ref.style,
1825
2225
  props = _objectWithoutPropertiesLoose(_ref, _excluded$K);
2226
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2227
+ var styleProps = {
2228
+ size: !size && isInsideButton ? 'medium' : size,
2229
+ color: color,
2230
+ style: style
2231
+ };
1826
2232
  return React__default.createElement("svg", _extends({
1827
2233
  xmlns: "http://www.w3.org/2000/svg",
1828
2234
  fill: "none",
1829
2235
  viewBox: "0 0 20 20",
1830
- style: getIconStyles(props),
2236
+ style: getIconStyles(styleProps),
1831
2237
  "data-testid": testId,
1832
2238
  ref: ref
1833
2239
  }, props), React__default.createElement("path", {
@@ -1839,16 +2245,25 @@ var IconChevronLeft = forwardRef(function (_ref, ref) {
1839
2245
  });
1840
2246
  IconChevronLeft.displayName = 'IconChevronLeft';
1841
2247
 
1842
- var _excluded$L = ["testId"];
2248
+ var _excluded$L = ["testId", "size", "color", "style"];
1843
2249
  var IconChevronRight = forwardRef(function (_ref, ref) {
1844
2250
  var _ref$testId = _ref.testId,
1845
2251
  testId = _ref$testId === void 0 ? 'icon-chevron-right' : _ref$testId,
2252
+ size = _ref.size,
2253
+ color = _ref.color,
2254
+ style = _ref.style,
1846
2255
  props = _objectWithoutPropertiesLoose(_ref, _excluded$L);
2256
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2257
+ var styleProps = {
2258
+ size: !size && isInsideButton ? 'medium' : size,
2259
+ color: color,
2260
+ style: style
2261
+ };
1847
2262
  return React__default.createElement("svg", _extends({
1848
2263
  xmlns: "http://www.w3.org/2000/svg",
1849
2264
  fill: "none",
1850
2265
  viewBox: "0 0 20 20",
1851
- style: getIconStyles(props),
2266
+ style: getIconStyles(styleProps),
1852
2267
  "data-testid": testId,
1853
2268
  ref: ref
1854
2269
  }, props), React__default.createElement("path", {
@@ -1860,16 +2275,25 @@ var IconChevronRight = forwardRef(function (_ref, ref) {
1860
2275
  });
1861
2276
  IconChevronRight.displayName = 'IconChevronRight';
1862
2277
 
1863
- var _excluded$M = ["testId"];
2278
+ var _excluded$M = ["testId", "size", "color", "style"];
1864
2279
  var IconChevronUp = forwardRef(function (_ref, ref) {
1865
2280
  var _ref$testId = _ref.testId,
1866
2281
  testId = _ref$testId === void 0 ? 'icon-chevron-up' : _ref$testId,
2282
+ size = _ref.size,
2283
+ color = _ref.color,
2284
+ style = _ref.style,
1867
2285
  props = _objectWithoutPropertiesLoose(_ref, _excluded$M);
2286
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2287
+ var styleProps = {
2288
+ size: !size && isInsideButton ? 'medium' : size,
2289
+ color: color,
2290
+ style: style
2291
+ };
1868
2292
  return React__default.createElement("svg", _extends({
1869
2293
  xmlns: "http://www.w3.org/2000/svg",
1870
2294
  fill: "none",
1871
2295
  viewBox: "0 0 20 20",
1872
- style: getIconStyles(props),
2296
+ style: getIconStyles(styleProps),
1873
2297
  "data-testid": testId,
1874
2298
  ref: ref
1875
2299
  }, props), React__default.createElement("path", {
@@ -1881,16 +2305,25 @@ var IconChevronUp = forwardRef(function (_ref, ref) {
1881
2305
  });
1882
2306
  IconChevronUp.displayName = 'IconChevronUp';
1883
2307
 
1884
- var _excluded$N = ["testId"];
2308
+ var _excluded$N = ["testId", "size", "color", "style"];
1885
2309
  var IconClipboardList = forwardRef(function (_ref, ref) {
1886
2310
  var _ref$testId = _ref.testId,
1887
2311
  testId = _ref$testId === void 0 ? 'icon-clipboard-list' : _ref$testId,
2312
+ size = _ref.size,
2313
+ color = _ref.color,
2314
+ style = _ref.style,
1888
2315
  props = _objectWithoutPropertiesLoose(_ref, _excluded$N);
2316
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2317
+ var styleProps = {
2318
+ size: !size && isInsideButton ? 'medium' : size,
2319
+ color: color,
2320
+ style: style
2321
+ };
1889
2322
  return React__default.createElement("svg", _extends({
1890
2323
  xmlns: "http://www.w3.org/2000/svg",
1891
2324
  fill: "none",
1892
2325
  viewBox: "0 0 20 20",
1893
- style: getIconStyles(props),
2326
+ style: getIconStyles(styleProps),
1894
2327
  "data-testid": testId,
1895
2328
  ref: ref
1896
2329
  }, props), React__default.createElement("path", {
@@ -1902,16 +2335,25 @@ var IconClipboardList = forwardRef(function (_ref, ref) {
1902
2335
  });
1903
2336
  IconClipboardList.displayName = 'IconClipboardList';
1904
2337
 
1905
- var _excluded$O = ["testId"];
2338
+ var _excluded$O = ["testId", "size", "color", "style"];
1906
2339
  var IconClock = forwardRef(function (_ref, ref) {
1907
2340
  var _ref$testId = _ref.testId,
1908
2341
  testId = _ref$testId === void 0 ? 'icon-clock' : _ref$testId,
2342
+ size = _ref.size,
2343
+ color = _ref.color,
2344
+ style = _ref.style,
1909
2345
  props = _objectWithoutPropertiesLoose(_ref, _excluded$O);
2346
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2347
+ var styleProps = {
2348
+ size: !size && isInsideButton ? 'medium' : size,
2349
+ color: color,
2350
+ style: style
2351
+ };
1910
2352
  return React__default.createElement("svg", _extends({
1911
2353
  xmlns: "http://www.w3.org/2000/svg",
1912
2354
  fill: "none",
1913
2355
  viewBox: "0 0 20 20",
1914
- style: getIconStyles(props),
2356
+ style: getIconStyles(styleProps),
1915
2357
  "data-testid": testId,
1916
2358
  ref: ref
1917
2359
  }, props), React__default.createElement("path", {
@@ -1921,16 +2363,25 @@ var IconClock = forwardRef(function (_ref, ref) {
1921
2363
  });
1922
2364
  IconClock.displayName = 'IconClock';
1923
2365
 
1924
- var _excluded$P = ["testId"];
2366
+ var _excluded$P = ["testId", "size", "color", "style"];
1925
2367
  var IconCog = forwardRef(function (_ref, ref) {
1926
2368
  var _ref$testId = _ref.testId,
1927
2369
  testId = _ref$testId === void 0 ? 'icon-cog' : _ref$testId,
2370
+ size = _ref.size,
2371
+ color = _ref.color,
2372
+ style = _ref.style,
1928
2373
  props = _objectWithoutPropertiesLoose(_ref, _excluded$P);
2374
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2375
+ var styleProps = {
2376
+ size: !size && isInsideButton ? 'medium' : size,
2377
+ color: color,
2378
+ style: style
2379
+ };
1929
2380
  return React__default.createElement("svg", _extends({
1930
2381
  xmlns: "http://www.w3.org/2000/svg",
1931
2382
  fill: "none",
1932
2383
  viewBox: "0 0 20 20",
1933
- style: getIconStyles(props),
2384
+ style: getIconStyles(styleProps),
1934
2385
  "data-testid": testId,
1935
2386
  ref: ref
1936
2387
  }, props), React__default.createElement("path", {
@@ -1940,16 +2391,25 @@ var IconCog = forwardRef(function (_ref, ref) {
1940
2391
  });
1941
2392
  IconCog.displayName = 'IconCog';
1942
2393
 
1943
- var _excluded$Q = ["testId"];
2394
+ var _excluded$Q = ["testId", "size", "color", "style"];
1944
2395
  var IconCommentLines = forwardRef(function (_ref, ref) {
1945
2396
  var _ref$testId = _ref.testId,
1946
2397
  testId = _ref$testId === void 0 ? 'icon-comment-lines' : _ref$testId,
2398
+ size = _ref.size,
2399
+ color = _ref.color,
2400
+ style = _ref.style,
1947
2401
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
2402
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2403
+ var styleProps = {
2404
+ size: !size && isInsideButton ? 'medium' : size,
2405
+ color: color,
2406
+ style: style
2407
+ };
1948
2408
  return React__default.createElement("svg", _extends({
1949
2409
  xmlns: "http://www.w3.org/2000/svg",
1950
2410
  fill: "none",
1951
2411
  viewBox: "0 0 20 20",
1952
- style: getIconStyles(props),
2412
+ style: getIconStyles(styleProps),
1953
2413
  "data-testid": testId,
1954
2414
  ref: ref
1955
2415
  }, props), React__default.createElement("path", {
@@ -1964,16 +2424,25 @@ var IconCommentLines = forwardRef(function (_ref, ref) {
1964
2424
  });
1965
2425
  IconCommentLines.displayName = 'IconCommentLines';
1966
2426
 
1967
- var _excluded$R = ["testId"];
2427
+ var _excluded$R = ["testId", "size", "color", "style"];
1968
2428
  var IconComment = forwardRef(function (_ref, ref) {
1969
2429
  var _ref$testId = _ref.testId,
1970
2430
  testId = _ref$testId === void 0 ? 'icon-comment' : _ref$testId,
2431
+ size = _ref.size,
2432
+ color = _ref.color,
2433
+ style = _ref.style,
1971
2434
  props = _objectWithoutPropertiesLoose(_ref, _excluded$R);
2435
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2436
+ var styleProps = {
2437
+ size: !size && isInsideButton ? 'medium' : size,
2438
+ color: color,
2439
+ style: style
2440
+ };
1972
2441
  return React__default.createElement("svg", _extends({
1973
2442
  xmlns: "http://www.w3.org/2000/svg",
1974
2443
  fill: "none",
1975
2444
  viewBox: "0 0 20 20",
1976
- style: getIconStyles(props),
2445
+ style: getIconStyles(styleProps),
1977
2446
  "data-testid": testId,
1978
2447
  ref: ref
1979
2448
  }, props), React__default.createElement("path", {
@@ -1985,16 +2454,25 @@ var IconComment = forwardRef(function (_ref, ref) {
1985
2454
  });
1986
2455
  IconComment.displayName = 'IconComment';
1987
2456
 
1988
- var _excluded$S = ["testId"];
2457
+ var _excluded$S = ["testId", "size", "color", "style"];
1989
2458
  var IconCopy = forwardRef(function (_ref, ref) {
1990
2459
  var _ref$testId = _ref.testId,
1991
2460
  testId = _ref$testId === void 0 ? 'icon-copy' : _ref$testId,
2461
+ size = _ref.size,
2462
+ color = _ref.color,
2463
+ style = _ref.style,
1992
2464
  props = _objectWithoutPropertiesLoose(_ref, _excluded$S);
2465
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2466
+ var styleProps = {
2467
+ size: !size && isInsideButton ? 'medium' : size,
2468
+ color: color,
2469
+ style: style
2470
+ };
1993
2471
  return React__default.createElement("svg", _extends({
1994
2472
  xmlns: "http://www.w3.org/2000/svg",
1995
2473
  fill: "none",
1996
2474
  viewBox: "0 0 20 20",
1997
- style: getIconStyles(props),
2475
+ style: getIconStyles(styleProps),
1998
2476
  "data-testid": testId,
1999
2477
  ref: ref
2000
2478
  }, props), React__default.createElement("g", {
@@ -2011,16 +2489,25 @@ var IconCopy = forwardRef(function (_ref, ref) {
2011
2489
  });
2012
2490
  IconCopy.displayName = 'IconCopy';
2013
2491
 
2014
- var _excluded$T = ["testId"];
2492
+ var _excluded$T = ["testId", "size", "color", "style"];
2015
2493
  var IconCreditCardPlus = forwardRef(function (_ref, ref) {
2016
2494
  var _ref$testId = _ref.testId,
2017
2495
  testId = _ref$testId === void 0 ? 'icon-credit-card-plus' : _ref$testId,
2496
+ size = _ref.size,
2497
+ color = _ref.color,
2498
+ style = _ref.style,
2018
2499
  props = _objectWithoutPropertiesLoose(_ref, _excluded$T);
2500
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2501
+ var styleProps = {
2502
+ size: !size && isInsideButton ? 'medium' : size,
2503
+ color: color,
2504
+ style: style
2505
+ };
2019
2506
  return React__default.createElement("svg", _extends({
2020
2507
  xmlns: "http://www.w3.org/2000/svg",
2021
2508
  fill: "none",
2022
2509
  viewBox: "0 0 20 20",
2023
- style: getIconStyles(props),
2510
+ style: getIconStyles(styleProps),
2024
2511
  "data-testid": testId,
2025
2512
  ref: ref
2026
2513
  }, props), React__default.createElement("g", {
@@ -2039,16 +2526,25 @@ var IconCreditCardPlus = forwardRef(function (_ref, ref) {
2039
2526
  });
2040
2527
  IconCreditCardPlus.displayName = 'IconCreditCardPlus';
2041
2528
 
2042
- var _excluded$U = ["testId"];
2529
+ var _excluded$U = ["testId", "size", "color", "style"];
2043
2530
  var IconCreditCard = forwardRef(function (_ref, ref) {
2044
2531
  var _ref$testId = _ref.testId,
2045
2532
  testId = _ref$testId === void 0 ? 'icon-credit-card' : _ref$testId,
2533
+ size = _ref.size,
2534
+ color = _ref.color,
2535
+ style = _ref.style,
2046
2536
  props = _objectWithoutPropertiesLoose(_ref, _excluded$U);
2537
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2538
+ var styleProps = {
2539
+ size: !size && isInsideButton ? 'medium' : size,
2540
+ color: color,
2541
+ style: style
2542
+ };
2047
2543
  return React__default.createElement("svg", _extends({
2048
2544
  xmlns: "http://www.w3.org/2000/svg",
2049
2545
  fill: "none",
2050
2546
  viewBox: "0 0 20 20",
2051
- style: getIconStyles(props),
2547
+ style: getIconStyles(styleProps),
2052
2548
  "data-testid": testId,
2053
2549
  ref: ref
2054
2550
  }, props), React__default.createElement("g", {
@@ -2065,16 +2561,25 @@ var IconCreditCard = forwardRef(function (_ref, ref) {
2065
2561
  });
2066
2562
  IconCreditCard.displayName = 'IconCreditCard';
2067
2563
 
2068
- var _excluded$V = ["testId"];
2564
+ var _excluded$V = ["testId", "size", "color", "style"];
2069
2565
  var IconDecentMonochromatic = forwardRef(function (_ref, ref) {
2070
2566
  var _ref$testId = _ref.testId,
2071
2567
  testId = _ref$testId === void 0 ? 'icon-decent-monochromatic' : _ref$testId,
2568
+ size = _ref.size,
2569
+ color = _ref.color,
2570
+ style = _ref.style,
2072
2571
  props = _objectWithoutPropertiesLoose(_ref, _excluded$V);
2572
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2573
+ var styleProps = {
2574
+ size: !size && isInsideButton ? 'medium' : size,
2575
+ color: color,
2576
+ style: style
2577
+ };
2073
2578
  return React__default.createElement("svg", _extends({
2074
2579
  xmlns: "http://www.w3.org/2000/svg",
2075
2580
  fill: "none",
2076
2581
  viewBox: "0 0 20 20",
2077
- style: getIconStyles(props),
2582
+ style: getIconStyles(styleProps),
2078
2583
  "data-testid": testId,
2079
2584
  ref: ref
2080
2585
  }, props), React__default.createElement("path", {
@@ -2106,16 +2611,25 @@ var IconDecentMonochromatic = forwardRef(function (_ref, ref) {
2106
2611
  });
2107
2612
  IconDecentMonochromatic.displayName = 'IconDecentMonochromatic';
2108
2613
 
2109
- var _excluded$W = ["testId"];
2614
+ var _excluded$W = ["testId", "size", "color", "style"];
2110
2615
  var IconDecent = forwardRef(function (_ref, ref) {
2111
2616
  var _ref$testId = _ref.testId,
2112
2617
  testId = _ref$testId === void 0 ? 'icon-decent' : _ref$testId,
2618
+ size = _ref.size,
2619
+ color = _ref.color,
2620
+ style = _ref.style,
2113
2621
  props = _objectWithoutPropertiesLoose(_ref, _excluded$W);
2622
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2623
+ var styleProps = {
2624
+ size: !size && isInsideButton ? 'medium' : size,
2625
+ color: color,
2626
+ style: style
2627
+ };
2114
2628
  return React__default.createElement("svg", _extends({
2115
2629
  xmlns: "http://www.w3.org/2000/svg",
2116
2630
  fill: "none",
2117
2631
  viewBox: "0 0 20 20",
2118
- style: getIconStyles(props),
2632
+ style: getIconStyles(styleProps),
2119
2633
  "data-testid": testId,
2120
2634
  ref: ref
2121
2635
  }, props), React__default.createElement("path", {
@@ -2135,16 +2649,25 @@ var IconDecent = forwardRef(function (_ref, ref) {
2135
2649
  });
2136
2650
  IconDecent.displayName = 'IconDecent';
2137
2651
 
2138
- var _excluded$X = ["testId"];
2652
+ var _excluded$X = ["testId", "size", "color", "style"];
2139
2653
  var IconDownload = forwardRef(function (_ref, ref) {
2140
2654
  var _ref$testId = _ref.testId,
2141
2655
  testId = _ref$testId === void 0 ? 'icon-download' : _ref$testId,
2656
+ size = _ref.size,
2657
+ color = _ref.color,
2658
+ style = _ref.style,
2142
2659
  props = _objectWithoutPropertiesLoose(_ref, _excluded$X);
2660
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2661
+ var styleProps = {
2662
+ size: !size && isInsideButton ? 'medium' : size,
2663
+ color: color,
2664
+ style: style
2665
+ };
2143
2666
  return React__default.createElement("svg", _extends({
2144
2667
  xmlns: "http://www.w3.org/2000/svg",
2145
2668
  fill: "none",
2146
2669
  viewBox: "0 0 20 20",
2147
- style: getIconStyles(props),
2670
+ style: getIconStyles(styleProps),
2148
2671
  "data-testid": testId,
2149
2672
  ref: ref
2150
2673
  }, props), React__default.createElement("path", {
@@ -2156,16 +2679,25 @@ var IconDownload = forwardRef(function (_ref, ref) {
2156
2679
  });
2157
2680
  IconDownload.displayName = 'IconDownload';
2158
2681
 
2159
- var _excluded$Y = ["testId"];
2682
+ var _excluded$Y = ["testId", "size", "color", "style"];
2160
2683
  var IconEdit = forwardRef(function (_ref, ref) {
2161
2684
  var _ref$testId = _ref.testId,
2162
2685
  testId = _ref$testId === void 0 ? 'icon-edit' : _ref$testId,
2686
+ size = _ref.size,
2687
+ color = _ref.color,
2688
+ style = _ref.style,
2163
2689
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
2690
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2691
+ var styleProps = {
2692
+ size: !size && isInsideButton ? 'medium' : size,
2693
+ color: color,
2694
+ style: style
2695
+ };
2164
2696
  return React__default.createElement("svg", _extends({
2165
2697
  xmlns: "http://www.w3.org/2000/svg",
2166
2698
  fill: "none",
2167
2699
  viewBox: "0 0 20 20",
2168
- style: getIconStyles(props),
2700
+ style: getIconStyles(styleProps),
2169
2701
  "data-testid": testId,
2170
2702
  ref: ref
2171
2703
  }, props), React__default.createElement("path", {
@@ -2175,16 +2707,25 @@ var IconEdit = forwardRef(function (_ref, ref) {
2175
2707
  });
2176
2708
  IconEdit.displayName = 'IconEdit';
2177
2709
 
2178
- var _excluded$Z = ["testId"];
2710
+ var _excluded$Z = ["testId", "size", "color", "style"];
2179
2711
  var IconEllipsisV = forwardRef(function (_ref, ref) {
2180
2712
  var _ref$testId = _ref.testId,
2181
2713
  testId = _ref$testId === void 0 ? 'icon-ellipsis-v' : _ref$testId,
2714
+ size = _ref.size,
2715
+ color = _ref.color,
2716
+ style = _ref.style,
2182
2717
  props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
2718
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2719
+ var styleProps = {
2720
+ size: !size && isInsideButton ? 'medium' : size,
2721
+ color: color,
2722
+ style: style
2723
+ };
2183
2724
  return React__default.createElement("svg", _extends({
2184
2725
  xmlns: "http://www.w3.org/2000/svg",
2185
2726
  fill: "none",
2186
2727
  viewBox: "0 0 20 20",
2187
- style: getIconStyles(props),
2728
+ style: getIconStyles(styleProps),
2188
2729
  "data-testid": testId,
2189
2730
  ref: ref
2190
2731
  }, props), React__default.createElement("path", {
@@ -2196,16 +2737,25 @@ var IconEllipsisV = forwardRef(function (_ref, ref) {
2196
2737
  });
2197
2738
  IconEllipsisV.displayName = 'IconEllipsisV';
2198
2739
 
2199
- var _excluded$_ = ["testId"];
2740
+ var _excluded$_ = ["testId", "size", "color", "style"];
2200
2741
  var IconEnvelopeOpenDollar = forwardRef(function (_ref, ref) {
2201
2742
  var _ref$testId = _ref.testId,
2202
2743
  testId = _ref$testId === void 0 ? 'icon-envelope-open-dollar' : _ref$testId,
2744
+ size = _ref.size,
2745
+ color = _ref.color,
2746
+ style = _ref.style,
2203
2747
  props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
2748
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2749
+ var styleProps = {
2750
+ size: !size && isInsideButton ? 'medium' : size,
2751
+ color: color,
2752
+ style: style
2753
+ };
2204
2754
  return React__default.createElement("svg", _extends({
2205
2755
  xmlns: "http://www.w3.org/2000/svg",
2206
2756
  fill: "none",
2207
2757
  viewBox: "0 0 20 20",
2208
- style: getIconStyles(props),
2758
+ style: getIconStyles(styleProps),
2209
2759
  "data-testid": testId,
2210
2760
  ref: ref
2211
2761
  }, props), React__default.createElement("g", {
@@ -2222,16 +2772,25 @@ var IconEnvelopeOpenDollar = forwardRef(function (_ref, ref) {
2222
2772
  });
2223
2773
  IconEnvelopeOpenDollar.displayName = 'IconEnvelopeOpenDollar';
2224
2774
 
2225
- var _excluded$$ = ["testId"];
2775
+ var _excluded$$ = ["testId", "size", "color", "style"];
2226
2776
  var IconEnvelope = forwardRef(function (_ref, ref) {
2227
2777
  var _ref$testId = _ref.testId,
2228
2778
  testId = _ref$testId === void 0 ? 'icon-envelope' : _ref$testId,
2779
+ size = _ref.size,
2780
+ color = _ref.color,
2781
+ style = _ref.style,
2229
2782
  props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
2783
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2784
+ var styleProps = {
2785
+ size: !size && isInsideButton ? 'medium' : size,
2786
+ color: color,
2787
+ style: style
2788
+ };
2230
2789
  return React__default.createElement("svg", _extends({
2231
2790
  xmlns: "http://www.w3.org/2000/svg",
2232
2791
  fill: "none",
2233
2792
  viewBox: "0 0 20 20",
2234
- style: getIconStyles(props),
2793
+ style: getIconStyles(styleProps),
2235
2794
  "data-testid": testId,
2236
2795
  ref: ref
2237
2796
  }, props), React__default.createElement("path", {
@@ -2241,16 +2800,25 @@ var IconEnvelope = forwardRef(function (_ref, ref) {
2241
2800
  });
2242
2801
  IconEnvelope.displayName = 'IconEnvelope';
2243
2802
 
2244
- var _excluded$10 = ["testId"];
2803
+ var _excluded$10 = ["testId", "size", "color", "style"];
2245
2804
  var IconExclaimationTriangle = forwardRef(function (_ref, ref) {
2246
2805
  var _ref$testId = _ref.testId,
2247
2806
  testId = _ref$testId === void 0 ? 'icon-exclaimation-triangle' : _ref$testId,
2807
+ size = _ref.size,
2808
+ color = _ref.color,
2809
+ style = _ref.style,
2248
2810
  props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
2811
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2812
+ var styleProps = {
2813
+ size: !size && isInsideButton ? 'medium' : size,
2814
+ color: color,
2815
+ style: style
2816
+ };
2249
2817
  return React__default.createElement("svg", _extends({
2250
2818
  xmlns: "http://www.w3.org/2000/svg",
2251
2819
  fill: "none",
2252
2820
  viewBox: "0 0 20 20",
2253
- style: getIconStyles(props),
2821
+ style: getIconStyles(styleProps),
2254
2822
  "data-testid": testId,
2255
2823
  ref: ref
2256
2824
  }, props), React__default.createElement("path", {
@@ -2262,16 +2830,25 @@ var IconExclaimationTriangle = forwardRef(function (_ref, ref) {
2262
2830
  });
2263
2831
  IconExclaimationTriangle.displayName = 'IconExclaimationTriangle';
2264
2832
 
2265
- var _excluded$11 = ["testId"];
2833
+ var _excluded$11 = ["testId", "size", "color", "style"];
2266
2834
  var IconExclaimation = forwardRef(function (_ref, ref) {
2267
2835
  var _ref$testId = _ref.testId,
2268
2836
  testId = _ref$testId === void 0 ? 'icon-exclaimation' : _ref$testId,
2837
+ size = _ref.size,
2838
+ color = _ref.color,
2839
+ style = _ref.style,
2269
2840
  props = _objectWithoutPropertiesLoose(_ref, _excluded$11);
2841
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2842
+ var styleProps = {
2843
+ size: !size && isInsideButton ? 'medium' : size,
2844
+ color: color,
2845
+ style: style
2846
+ };
2270
2847
  return React__default.createElement("svg", _extends({
2271
2848
  xmlns: "http://www.w3.org/2000/svg",
2272
2849
  fill: "none",
2273
2850
  viewBox: "0 0 20 20",
2274
- style: getIconStyles(props),
2851
+ style: getIconStyles(styleProps),
2275
2852
  "data-testid": testId,
2276
2853
  ref: ref
2277
2854
  }, props), React__default.createElement("path", {
@@ -2281,16 +2858,25 @@ var IconExclaimation = forwardRef(function (_ref, ref) {
2281
2858
  });
2282
2859
  IconExclaimation.displayName = 'IconExclaimation';
2283
2860
 
2284
- var _excluded$12 = ["testId"];
2861
+ var _excluded$12 = ["testId", "size", "color", "style"];
2285
2862
  var IconExpand = forwardRef(function (_ref, ref) {
2286
2863
  var _ref$testId = _ref.testId,
2287
2864
  testId = _ref$testId === void 0 ? 'icon-expand' : _ref$testId,
2865
+ size = _ref.size,
2866
+ color = _ref.color,
2867
+ style = _ref.style,
2288
2868
  props = _objectWithoutPropertiesLoose(_ref, _excluded$12);
2869
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2870
+ var styleProps = {
2871
+ size: !size && isInsideButton ? 'medium' : size,
2872
+ color: color,
2873
+ style: style
2874
+ };
2289
2875
  return React__default.createElement("svg", _extends({
2290
2876
  xmlns: "http://www.w3.org/2000/svg",
2291
2877
  fill: "none",
2292
2878
  viewBox: "0 0 20 20",
2293
- style: getIconStyles(props),
2879
+ style: getIconStyles(styleProps),
2294
2880
  "data-testid": testId,
2295
2881
  ref: ref
2296
2882
  }, props), React__default.createElement("path", {
@@ -2300,16 +2886,25 @@ var IconExpand = forwardRef(function (_ref, ref) {
2300
2886
  });
2301
2887
  IconExpand.displayName = 'IconExpand';
2302
2888
 
2303
- var _excluded$13 = ["testId"];
2889
+ var _excluded$13 = ["testId", "size", "color", "style"];
2304
2890
  var IconExternalLink = forwardRef(function (_ref, ref) {
2305
2891
  var _ref$testId = _ref.testId,
2306
2892
  testId = _ref$testId === void 0 ? 'icon-external-link' : _ref$testId,
2893
+ size = _ref.size,
2894
+ color = _ref.color,
2895
+ style = _ref.style,
2307
2896
  props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
2897
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2898
+ var styleProps = {
2899
+ size: !size && isInsideButton ? 'medium' : size,
2900
+ color: color,
2901
+ style: style
2902
+ };
2308
2903
  return React__default.createElement("svg", _extends({
2309
2904
  xmlns: "http://www.w3.org/2000/svg",
2310
2905
  fill: "none",
2311
2906
  viewBox: "0 0 20 20",
2312
- style: getIconStyles(props),
2907
+ style: getIconStyles(styleProps),
2313
2908
  "data-testid": testId,
2314
2909
  ref: ref
2315
2910
  }, props), React__default.createElement("path", {
@@ -2321,16 +2916,25 @@ var IconExternalLink = forwardRef(function (_ref, ref) {
2321
2916
  });
2322
2917
  IconExternalLink.displayName = 'IconExternalLink';
2323
2918
 
2324
- var _excluded$14 = ["testId"];
2919
+ var _excluded$14 = ["testId", "size", "color", "style"];
2325
2920
  var IconEyeSlash = forwardRef(function (_ref, ref) {
2326
2921
  var _ref$testId = _ref.testId,
2327
2922
  testId = _ref$testId === void 0 ? 'icon-eye-slash' : _ref$testId,
2923
+ size = _ref.size,
2924
+ color = _ref.color,
2925
+ style = _ref.style,
2328
2926
  props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
2927
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2928
+ var styleProps = {
2929
+ size: !size && isInsideButton ? 'medium' : size,
2930
+ color: color,
2931
+ style: style
2932
+ };
2329
2933
  return React__default.createElement("svg", _extends({
2330
2934
  xmlns: "http://www.w3.org/2000/svg",
2331
2935
  fill: "none",
2332
2936
  viewBox: "0 0 20 20",
2333
- style: getIconStyles(props),
2937
+ style: getIconStyles(styleProps),
2334
2938
  "data-testid": testId,
2335
2939
  ref: ref
2336
2940
  }, props), React__default.createElement("g", {
@@ -2354,16 +2958,25 @@ var IconEyeSlash = forwardRef(function (_ref, ref) {
2354
2958
  });
2355
2959
  IconEyeSlash.displayName = 'IconEyeSlash';
2356
2960
 
2357
- var _excluded$15 = ["testId"];
2961
+ var _excluded$15 = ["testId", "size", "color", "style"];
2358
2962
  var IconEye = forwardRef(function (_ref, ref) {
2359
2963
  var _ref$testId = _ref.testId,
2360
2964
  testId = _ref$testId === void 0 ? 'icon-eye' : _ref$testId,
2965
+ size = _ref.size,
2966
+ color = _ref.color,
2967
+ style = _ref.style,
2361
2968
  props = _objectWithoutPropertiesLoose(_ref, _excluded$15);
2969
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
2970
+ var styleProps = {
2971
+ size: !size && isInsideButton ? 'medium' : size,
2972
+ color: color,
2973
+ style: style
2974
+ };
2362
2975
  return React__default.createElement("svg", _extends({
2363
2976
  xmlns: "http://www.w3.org/2000/svg",
2364
2977
  fill: "none",
2365
2978
  viewBox: "0 0 20 20",
2366
- style: getIconStyles(props),
2979
+ style: getIconStyles(styleProps),
2367
2980
  "data-testid": testId,
2368
2981
  ref: ref
2369
2982
  }, props), React__default.createElement("g", {
@@ -2380,16 +2993,25 @@ var IconEye = forwardRef(function (_ref, ref) {
2380
2993
  });
2381
2994
  IconEye.displayName = 'IconEye';
2382
2995
 
2383
- var _excluded$16 = ["testId"];
2996
+ var _excluded$16 = ["testId", "size", "color", "style"];
2384
2997
  var IconFilePdf = forwardRef(function (_ref, ref) {
2385
2998
  var _ref$testId = _ref.testId,
2386
2999
  testId = _ref$testId === void 0 ? 'icon-file-pdf' : _ref$testId,
3000
+ size = _ref.size,
3001
+ color = _ref.color,
3002
+ style = _ref.style,
2387
3003
  props = _objectWithoutPropertiesLoose(_ref, _excluded$16);
3004
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3005
+ var styleProps = {
3006
+ size: !size && isInsideButton ? 'medium' : size,
3007
+ color: color,
3008
+ style: style
3009
+ };
2388
3010
  return React__default.createElement("svg", _extends({
2389
3011
  xmlns: "http://www.w3.org/2000/svg",
2390
3012
  fill: "none",
2391
3013
  viewBox: "0 0 20 20",
2392
- style: getIconStyles(props),
3014
+ style: getIconStyles(styleProps),
2393
3015
  "data-testid": testId,
2394
3016
  ref: ref
2395
3017
  }, props), React__default.createElement("g", {
@@ -2406,16 +3028,25 @@ var IconFilePdf = forwardRef(function (_ref, ref) {
2406
3028
  });
2407
3029
  IconFilePdf.displayName = 'IconFilePdf';
2408
3030
 
2409
- var _excluded$17 = ["testId"];
3031
+ var _excluded$17 = ["testId", "size", "color", "style"];
2410
3032
  var IconFile = forwardRef(function (_ref, ref) {
2411
3033
  var _ref$testId = _ref.testId,
2412
3034
  testId = _ref$testId === void 0 ? 'icon-file' : _ref$testId,
3035
+ size = _ref.size,
3036
+ color = _ref.color,
3037
+ style = _ref.style,
2413
3038
  props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
3039
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3040
+ var styleProps = {
3041
+ size: !size && isInsideButton ? 'medium' : size,
3042
+ color: color,
3043
+ style: style
3044
+ };
2414
3045
  return React__default.createElement("svg", _extends({
2415
3046
  xmlns: "http://www.w3.org/2000/svg",
2416
3047
  fill: "none",
2417
3048
  viewBox: "0 0 20 20",
2418
- style: getIconStyles(props),
3049
+ style: getIconStyles(styleProps),
2419
3050
  "data-testid": testId,
2420
3051
  ref: ref
2421
3052
  }, props), React__default.createElement("g", {
@@ -2432,16 +3063,25 @@ var IconFile = forwardRef(function (_ref, ref) {
2432
3063
  });
2433
3064
  IconFile.displayName = 'IconFile';
2434
3065
 
2435
- var _excluded$18 = ["testId"];
3066
+ var _excluded$18 = ["testId", "size", "color", "style"];
2436
3067
  var IconFlag = forwardRef(function (_ref, ref) {
2437
3068
  var _ref$testId = _ref.testId,
2438
3069
  testId = _ref$testId === void 0 ? 'icon-flag' : _ref$testId,
3070
+ size = _ref.size,
3071
+ color = _ref.color,
3072
+ style = _ref.style,
2439
3073
  props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
3074
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3075
+ var styleProps = {
3076
+ size: !size && isInsideButton ? 'medium' : size,
3077
+ color: color,
3078
+ style: style
3079
+ };
2440
3080
  return React__default.createElement("svg", _extends({
2441
3081
  xmlns: "http://www.w3.org/2000/svg",
2442
3082
  fill: "none",
2443
3083
  viewBox: "0 0 20 20",
2444
- style: getIconStyles(props),
3084
+ style: getIconStyles(styleProps),
2445
3085
  "data-testid": testId,
2446
3086
  ref: ref
2447
3087
  }, props), React__default.createElement("g", {
@@ -2458,16 +3098,25 @@ var IconFlag = forwardRef(function (_ref, ref) {
2458
3098
  });
2459
3099
  IconFlag.displayName = 'IconFlag';
2460
3100
 
2461
- var _excluded$19 = ["testId"];
3101
+ var _excluded$19 = ["testId", "size", "color", "style"];
2462
3102
  var IconFourDotsCircle = forwardRef(function (_ref, ref) {
2463
3103
  var _ref$testId = _ref.testId,
2464
3104
  testId = _ref$testId === void 0 ? 'icon-four-dots-circle' : _ref$testId,
3105
+ size = _ref.size,
3106
+ color = _ref.color,
3107
+ style = _ref.style,
2465
3108
  props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
3109
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3110
+ var styleProps = {
3111
+ size: !size && isInsideButton ? 'medium' : size,
3112
+ color: color,
3113
+ style: style
3114
+ };
2466
3115
  return React__default.createElement("svg", _extends({
2467
3116
  xmlns: "http://www.w3.org/2000/svg",
2468
3117
  fill: "none",
2469
3118
  viewBox: "0 0 20 20",
2470
- style: getIconStyles(props),
3119
+ style: getIconStyles(styleProps),
2471
3120
  "data-testid": testId,
2472
3121
  ref: ref
2473
3122
  }, props), React__default.createElement("path", {
@@ -2479,16 +3128,25 @@ var IconFourDotsCircle = forwardRef(function (_ref, ref) {
2479
3128
  });
2480
3129
  IconFourDotsCircle.displayName = 'IconFourDotsCircle';
2481
3130
 
2482
- var _excluded$1a = ["testId"];
3131
+ var _excluded$1a = ["testId", "size", "color", "style"];
2483
3132
  var IconFourSquares = forwardRef(function (_ref, ref) {
2484
3133
  var _ref$testId = _ref.testId,
2485
3134
  testId = _ref$testId === void 0 ? 'icon-four-squares' : _ref$testId,
3135
+ size = _ref.size,
3136
+ color = _ref.color,
3137
+ style = _ref.style,
2486
3138
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
3139
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3140
+ var styleProps = {
3141
+ size: !size && isInsideButton ? 'medium' : size,
3142
+ color: color,
3143
+ style: style
3144
+ };
2487
3145
  return React__default.createElement("svg", _extends({
2488
3146
  xmlns: "http://www.w3.org/2000/svg",
2489
3147
  fill: "none",
2490
3148
  viewBox: "0 0 20 20",
2491
- style: getIconStyles(props),
3149
+ style: getIconStyles(styleProps),
2492
3150
  "data-testid": testId,
2493
3151
  ref: ref
2494
3152
  }, props), React__default.createElement("rect", {
@@ -2523,16 +3181,25 @@ var IconFourSquares = forwardRef(function (_ref, ref) {
2523
3181
  });
2524
3182
  IconFourSquares.displayName = 'IconFourSquares';
2525
3183
 
2526
- var _excluded$1b = ["testId"];
3184
+ var _excluded$1b = ["testId", "size", "color", "style"];
2527
3185
  var IconGavel = forwardRef(function (_ref, ref) {
2528
3186
  var _ref$testId = _ref.testId,
2529
3187
  testId = _ref$testId === void 0 ? 'icon-gavel' : _ref$testId,
3188
+ size = _ref.size,
3189
+ color = _ref.color,
3190
+ style = _ref.style,
2530
3191
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
3192
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3193
+ var styleProps = {
3194
+ size: !size && isInsideButton ? 'medium' : size,
3195
+ color: color,
3196
+ style: style
3197
+ };
2531
3198
  return React__default.createElement("svg", _extends({
2532
3199
  xmlns: "http://www.w3.org/2000/svg",
2533
3200
  fill: "none",
2534
3201
  viewBox: "0 0 60 60",
2535
- style: getIconStyles(props),
3202
+ style: getIconStyles(styleProps),
2536
3203
  "data-testid": testId,
2537
3204
  ref: ref
2538
3205
  }, props), React__default.createElement("path", {
@@ -2542,15 +3209,24 @@ var IconGavel = forwardRef(function (_ref, ref) {
2542
3209
  });
2543
3210
  IconGavel.displayName = 'IconGavel';
2544
3211
 
2545
- var _excluded$1c = ["testId"];
3212
+ var _excluded$1c = ["testId", "size", "color", "style"];
2546
3213
  var IconGif = forwardRef(function (_ref, ref) {
2547
3214
  var _ref$testId = _ref.testId,
2548
3215
  testId = _ref$testId === void 0 ? 'icon-gif' : _ref$testId,
3216
+ size = _ref.size,
3217
+ color = _ref.color,
3218
+ style = _ref.style,
2549
3219
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1c);
3220
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3221
+ var styleProps = {
3222
+ size: !size && isInsideButton ? 'medium' : size,
3223
+ color: color,
3224
+ style: style
3225
+ };
2550
3226
  return React__default.createElement("svg", _extends({
2551
3227
  xmlns: "http://www.w3.org/2000/svg",
2552
3228
  viewBox: "0 0 20 20",
2553
- style: getIconStyles(props),
3229
+ style: getIconStyles(styleProps),
2554
3230
  "data-testid": testId,
2555
3231
  ref: ref
2556
3232
  }, props), React__default.createElement("path", {
@@ -2565,16 +3241,25 @@ var IconGif = forwardRef(function (_ref, ref) {
2565
3241
  });
2566
3242
  IconGif.displayName = 'IconGif';
2567
3243
 
2568
- var _excluded$1d = ["testId"];
3244
+ var _excluded$1d = ["testId", "size", "color", "style"];
2569
3245
  var IconGift = forwardRef(function (_ref, ref) {
2570
3246
  var _ref$testId = _ref.testId,
2571
3247
  testId = _ref$testId === void 0 ? 'icon-gift' : _ref$testId,
3248
+ size = _ref.size,
3249
+ color = _ref.color,
3250
+ style = _ref.style,
2572
3251
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1d);
3252
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3253
+ var styleProps = {
3254
+ size: !size && isInsideButton ? 'medium' : size,
3255
+ color: color,
3256
+ style: style
3257
+ };
2573
3258
  return React__default.createElement("svg", _extends({
2574
3259
  xmlns: "http://www.w3.org/2000/svg",
2575
3260
  fill: "none",
2576
3261
  viewBox: "0 0 20 20",
2577
- style: getIconStyles(props),
3262
+ style: getIconStyles(styleProps),
2578
3263
  "data-testid": testId,
2579
3264
  ref: ref
2580
3265
  }, props), React__default.createElement("path", {
@@ -2584,16 +3269,25 @@ var IconGift = forwardRef(function (_ref, ref) {
2584
3269
  });
2585
3270
  IconGift.displayName = 'IconGift';
2586
3271
 
2587
- var _excluded$1e = ["testId"];
3272
+ var _excluded$1e = ["testId", "size", "color", "style"];
2588
3273
  var IconGoodMonochromatic = forwardRef(function (_ref, ref) {
2589
3274
  var _ref$testId = _ref.testId,
2590
3275
  testId = _ref$testId === void 0 ? 'icon-good-monochromatic' : _ref$testId,
3276
+ size = _ref.size,
3277
+ color = _ref.color,
3278
+ style = _ref.style,
2591
3279
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1e);
3280
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3281
+ var styleProps = {
3282
+ size: !size && isInsideButton ? 'medium' : size,
3283
+ color: color,
3284
+ style: style
3285
+ };
2592
3286
  return React__default.createElement("svg", _extends({
2593
3287
  xmlns: "http://www.w3.org/2000/svg",
2594
3288
  fill: "none",
2595
3289
  viewBox: "0 0 20 20",
2596
- style: getIconStyles(props),
3290
+ style: getIconStyles(styleProps),
2597
3291
  "data-testid": testId,
2598
3292
  ref: ref
2599
3293
  }, props), React__default.createElement("path", {
@@ -2621,16 +3315,25 @@ var IconGoodMonochromatic = forwardRef(function (_ref, ref) {
2621
3315
  });
2622
3316
  IconGoodMonochromatic.displayName = 'IconGoodMonochromatic';
2623
3317
 
2624
- var _excluded$1f = ["testId"];
3318
+ var _excluded$1f = ["testId", "size", "color", "style"];
2625
3319
  var IconGood = forwardRef(function (_ref, ref) {
2626
3320
  var _ref$testId = _ref.testId,
2627
3321
  testId = _ref$testId === void 0 ? 'icon-good' : _ref$testId,
3322
+ size = _ref.size,
3323
+ color = _ref.color,
3324
+ style = _ref.style,
2628
3325
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1f);
3326
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3327
+ var styleProps = {
3328
+ size: !size && isInsideButton ? 'medium' : size,
3329
+ color: color,
3330
+ style: style
3331
+ };
2629
3332
  return React__default.createElement("svg", _extends({
2630
3333
  xmlns: "http://www.w3.org/2000/svg",
2631
3334
  fill: "none",
2632
3335
  viewBox: "0 0 20 20",
2633
- style: getIconStyles(props),
3336
+ style: getIconStyles(styleProps),
2634
3337
  "data-testid": testId,
2635
3338
  ref: ref
2636
3339
  }, props), React__default.createElement("path", {
@@ -2646,16 +3349,25 @@ var IconGood = forwardRef(function (_ref, ref) {
2646
3349
  });
2647
3350
  IconGood.displayName = 'IconGood';
2648
3351
 
2649
- var _excluded$1g = ["testId"];
3352
+ var _excluded$1g = ["testId", "size", "color", "style"];
2650
3353
  var IconGreatMonochromatic = forwardRef(function (_ref, ref) {
2651
3354
  var _ref$testId = _ref.testId,
2652
3355
  testId = _ref$testId === void 0 ? 'icon-great-monochromatic' : _ref$testId,
3356
+ size = _ref.size,
3357
+ color = _ref.color,
3358
+ style = _ref.style,
2653
3359
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1g);
3360
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3361
+ var styleProps = {
3362
+ size: !size && isInsideButton ? 'medium' : size,
3363
+ color: color,
3364
+ style: style
3365
+ };
2654
3366
  return React__default.createElement("svg", _extends({
2655
3367
  xmlns: "http://www.w3.org/2000/svg",
2656
3368
  fill: "none",
2657
3369
  viewBox: "0 0 20 20",
2658
- style: getIconStyles(props),
3370
+ style: getIconStyles(styleProps),
2659
3371
  "data-testid": testId,
2660
3372
  ref: ref
2661
3373
  }, props), React__default.createElement("path", {
@@ -2685,16 +3397,25 @@ var IconGreatMonochromatic = forwardRef(function (_ref, ref) {
2685
3397
  });
2686
3398
  IconGreatMonochromatic.displayName = 'IconGreatMonochromatic';
2687
3399
 
2688
- var _excluded$1h = ["testId"];
3400
+ var _excluded$1h = ["testId", "size", "color", "style"];
2689
3401
  var IconGreat = forwardRef(function (_ref, ref) {
2690
3402
  var _ref$testId = _ref.testId,
2691
3403
  testId = _ref$testId === void 0 ? 'icon-great' : _ref$testId,
3404
+ size = _ref.size,
3405
+ color = _ref.color,
3406
+ style = _ref.style,
2692
3407
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1h);
3408
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3409
+ var styleProps = {
3410
+ size: !size && isInsideButton ? 'medium' : size,
3411
+ color: color,
3412
+ style: style
3413
+ };
2693
3414
  return React__default.createElement("svg", _extends({
2694
3415
  xmlns: "http://www.w3.org/2000/svg",
2695
3416
  fill: "none",
2696
3417
  viewBox: "0 0 20 20",
2697
- style: getIconStyles(props),
3418
+ style: getIconStyles(styleProps),
2698
3419
  "data-testid": testId,
2699
3420
  ref: ref
2700
3421
  }, props), React__default.createElement("path", {
@@ -2712,16 +3433,25 @@ var IconGreat = forwardRef(function (_ref, ref) {
2712
3433
  });
2713
3434
  IconGreat.displayName = 'IconGreat';
2714
3435
 
2715
- var _excluded$1i = ["testId"];
3436
+ var _excluded$1i = ["testId", "size", "color", "style"];
2716
3437
  var IconGrinBeam = forwardRef(function (_ref, ref) {
2717
3438
  var _ref$testId = _ref.testId,
2718
3439
  testId = _ref$testId === void 0 ? 'icon-grin-beam' : _ref$testId,
3440
+ size = _ref.size,
3441
+ color = _ref.color,
3442
+ style = _ref.style,
2719
3443
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1i);
3444
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3445
+ var styleProps = {
3446
+ size: !size && isInsideButton ? 'medium' : size,
3447
+ color: color,
3448
+ style: style
3449
+ };
2720
3450
  return React__default.createElement("svg", _extends({
2721
3451
  xmlns: "http://www.w3.org/2000/svg",
2722
3452
  fill: "none",
2723
3453
  viewBox: "0 0 20 20",
2724
- style: getIconStyles(props),
3454
+ style: getIconStyles(styleProps),
2725
3455
  "data-testid": testId,
2726
3456
  ref: ref
2727
3457
  }, props), React__default.createElement("path", {
@@ -2731,16 +3461,25 @@ var IconGrinBeam = forwardRef(function (_ref, ref) {
2731
3461
  });
2732
3462
  IconGrinBeam.displayName = 'IconGrinBeam';
2733
3463
 
2734
- var _excluded$1j = ["testId"];
3464
+ var _excluded$1j = ["testId", "size", "color", "style"];
2735
3465
  var IconGripVertical = forwardRef(function (_ref, ref) {
2736
3466
  var _ref$testId = _ref.testId,
2737
3467
  testId = _ref$testId === void 0 ? 'icon-grip-vertical' : _ref$testId,
3468
+ size = _ref.size,
3469
+ color = _ref.color,
3470
+ style = _ref.style,
2738
3471
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1j);
3472
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3473
+ var styleProps = {
3474
+ size: !size && isInsideButton ? 'medium' : size,
3475
+ color: color,
3476
+ style: style
3477
+ };
2739
3478
  return React__default.createElement("svg", _extends({
2740
3479
  xmlns: "http://www.w3.org/2000/svg",
2741
3480
  fill: "none",
2742
3481
  viewBox: "0 0 20 20",
2743
- style: getIconStyles(props),
3482
+ style: getIconStyles(styleProps),
2744
3483
  "data-testid": testId,
2745
3484
  ref: ref
2746
3485
  }, props), React__default.createElement("circle", {
@@ -2777,16 +3516,25 @@ var IconGripVertical = forwardRef(function (_ref, ref) {
2777
3516
  });
2778
3517
  IconGripVertical.displayName = 'IconGripVertical';
2779
3518
 
2780
- var _excluded$1k = ["testId"];
3519
+ var _excluded$1k = ["testId", "size", "color", "style"];
2781
3520
  var IconHandshake = forwardRef(function (_ref, ref) {
2782
3521
  var _ref$testId = _ref.testId,
2783
3522
  testId = _ref$testId === void 0 ? 'icon-handshake' : _ref$testId,
3523
+ size = _ref.size,
3524
+ color = _ref.color,
3525
+ style = _ref.style,
2784
3526
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1k);
3527
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3528
+ var styleProps = {
3529
+ size: !size && isInsideButton ? 'medium' : size,
3530
+ color: color,
3531
+ style: style
3532
+ };
2785
3533
  return React__default.createElement("svg", _extends({
2786
3534
  xmlns: "http://www.w3.org/2000/svg",
2787
3535
  fill: "none",
2788
3536
  viewBox: "0 0 20 20",
2789
- style: getIconStyles(props),
3537
+ style: getIconStyles(styleProps),
2790
3538
  "data-testid": testId,
2791
3539
  ref: ref
2792
3540
  }, props), React__default.createElement("g", {
@@ -2803,16 +3551,25 @@ var IconHandshake = forwardRef(function (_ref, ref) {
2803
3551
  });
2804
3552
  IconHandshake.displayName = 'IconHandshake';
2805
3553
 
2806
- var _excluded$1l = ["testId"];
3554
+ var _excluded$1l = ["testId", "size", "color", "style"];
2807
3555
  var IconImage = forwardRef(function (_ref, ref) {
2808
3556
  var _ref$testId = _ref.testId,
2809
3557
  testId = _ref$testId === void 0 ? 'icon-image' : _ref$testId,
3558
+ size = _ref.size,
3559
+ color = _ref.color,
3560
+ style = _ref.style,
2810
3561
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1l);
3562
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3563
+ var styleProps = {
3564
+ size: !size && isInsideButton ? 'medium' : size,
3565
+ color: color,
3566
+ style: style
3567
+ };
2811
3568
  return React__default.createElement("svg", _extends({
2812
3569
  xmlns: "http://www.w3.org/2000/svg",
2813
3570
  fill: "none",
2814
3571
  viewBox: "0 0 20 20",
2815
- style: getIconStyles(props),
3572
+ style: getIconStyles(styleProps),
2816
3573
  "data-testid": testId,
2817
3574
  ref: ref
2818
3575
  }, props), React__default.createElement("g", {
@@ -2829,16 +3586,25 @@ var IconImage = forwardRef(function (_ref, ref) {
2829
3586
  });
2830
3587
  IconImage.displayName = 'IconImage';
2831
3588
 
2832
- var _excluded$1m = ["testId"];
3589
+ var _excluded$1m = ["testId", "size", "color", "style"];
2833
3590
  var IconIslandTropical = forwardRef(function (_ref, ref) {
2834
3591
  var _ref$testId = _ref.testId,
2835
3592
  testId = _ref$testId === void 0 ? 'icon-island-tropical' : _ref$testId,
3593
+ size = _ref.size,
3594
+ color = _ref.color,
3595
+ style = _ref.style,
2836
3596
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1m);
3597
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3598
+ var styleProps = {
3599
+ size: !size && isInsideButton ? 'medium' : size,
3600
+ color: color,
3601
+ style: style
3602
+ };
2837
3603
  return React__default.createElement("svg", _extends({
2838
3604
  xmlns: "http://www.w3.org/2000/svg",
2839
3605
  fill: "none",
2840
3606
  viewBox: "0 0 20 20",
2841
- style: getIconStyles(props),
3607
+ style: getIconStyles(styleProps),
2842
3608
  "data-testid": testId,
2843
3609
  ref: ref
2844
3610
  }, props), React__default.createElement("path", {
@@ -2850,16 +3616,25 @@ var IconIslandTropical = forwardRef(function (_ref, ref) {
2850
3616
  });
2851
3617
  IconIslandTropical.displayName = 'IconIslandTropical';
2852
3618
 
2853
- var _excluded$1n = ["testId"];
3619
+ var _excluded$1n = ["testId", "size", "color", "style"];
2854
3620
  var IconItalic = forwardRef(function (_ref, ref) {
2855
3621
  var _ref$testId = _ref.testId,
2856
3622
  testId = _ref$testId === void 0 ? 'icon-italic' : _ref$testId,
3623
+ size = _ref.size,
3624
+ color = _ref.color,
3625
+ style = _ref.style,
2857
3626
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1n);
3627
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3628
+ var styleProps = {
3629
+ size: !size && isInsideButton ? 'medium' : size,
3630
+ color: color,
3631
+ style: style
3632
+ };
2858
3633
  return React__default.createElement("svg", _extends({
2859
3634
  xmlns: "http://www.w3.org/2000/svg",
2860
3635
  fill: "none",
2861
3636
  viewBox: "0 0 20 20",
2862
- style: getIconStyles(props),
3637
+ style: getIconStyles(styleProps),
2863
3638
  "data-testid": testId,
2864
3639
  ref: ref
2865
3640
  }, props), React__default.createElement("path", {
@@ -2869,16 +3644,25 @@ var IconItalic = forwardRef(function (_ref, ref) {
2869
3644
  });
2870
3645
  IconItalic.displayName = 'IconItalic';
2871
3646
 
2872
- var _excluded$1o = ["testId"];
3647
+ var _excluded$1o = ["testId", "size", "color", "style"];
2873
3648
  var IconLaptopSearch = forwardRef(function (_ref, ref) {
2874
3649
  var _ref$testId = _ref.testId,
2875
3650
  testId = _ref$testId === void 0 ? 'icon-laptop-search' : _ref$testId,
3651
+ size = _ref.size,
3652
+ color = _ref.color,
3653
+ style = _ref.style,
2876
3654
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1o);
3655
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3656
+ var styleProps = {
3657
+ size: !size && isInsideButton ? 'medium' : size,
3658
+ color: color,
3659
+ style: style
3660
+ };
2877
3661
  return React__default.createElement("svg", _extends({
2878
3662
  xmlns: "http://www.w3.org/2000/svg",
2879
3663
  fill: "none",
2880
3664
  viewBox: "0 0 20 20",
2881
- style: getIconStyles(props),
3665
+ style: getIconStyles(styleProps),
2882
3666
  "data-testid": testId,
2883
3667
  ref: ref
2884
3668
  }, props), React__default.createElement("g", {
@@ -2897,16 +3681,25 @@ var IconLaptopSearch = forwardRef(function (_ref, ref) {
2897
3681
  });
2898
3682
  IconLaptopSearch.displayName = 'IconLaptopSearch';
2899
3683
 
2900
- var _excluded$1p = ["testId"];
3684
+ var _excluded$1p = ["testId", "size", "color", "style"];
2901
3685
  var IconLink = forwardRef(function (_ref, ref) {
2902
3686
  var _ref$testId = _ref.testId,
2903
3687
  testId = _ref$testId === void 0 ? 'icon-link' : _ref$testId,
3688
+ size = _ref.size,
3689
+ color = _ref.color,
3690
+ style = _ref.style,
2904
3691
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1p);
3692
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3693
+ var styleProps = {
3694
+ size: !size && isInsideButton ? 'medium' : size,
3695
+ color: color,
3696
+ style: style
3697
+ };
2905
3698
  return React__default.createElement("svg", _extends({
2906
3699
  xmlns: "http://www.w3.org/2000/svg",
2907
3700
  fill: "none",
2908
3701
  viewBox: "0 0 20 20",
2909
- style: getIconStyles(props),
3702
+ style: getIconStyles(styleProps),
2910
3703
  "data-testid": testId,
2911
3704
  ref: ref
2912
3705
  }, props), React__default.createElement("g", {
@@ -2923,16 +3716,25 @@ var IconLink = forwardRef(function (_ref, ref) {
2923
3716
  });
2924
3717
  IconLink.displayName = 'IconLink';
2925
3718
 
2926
- var _excluded$1q = ["testId"];
3719
+ var _excluded$1q = ["testId", "size", "color", "style"];
2927
3720
  var IconListOI = forwardRef(function (_ref, ref) {
2928
3721
  var _ref$testId = _ref.testId,
2929
3722
  testId = _ref$testId === void 0 ? 'icon-list-o-i' : _ref$testId,
3723
+ size = _ref.size,
3724
+ color = _ref.color,
3725
+ style = _ref.style,
2930
3726
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
3727
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3728
+ var styleProps = {
3729
+ size: !size && isInsideButton ? 'medium' : size,
3730
+ color: color,
3731
+ style: style
3732
+ };
2931
3733
  return React__default.createElement("svg", _extends({
2932
3734
  xmlns: "http://www.w3.org/2000/svg",
2933
3735
  fill: "none",
2934
3736
  viewBox: "0 0 20 20",
2935
- style: getIconStyles(props),
3737
+ style: getIconStyles(styleProps),
2936
3738
  "data-testid": testId,
2937
3739
  ref: ref
2938
3740
  }, props), React__default.createElement("g", {
@@ -2949,16 +3751,25 @@ var IconListOI = forwardRef(function (_ref, ref) {
2949
3751
  });
2950
3752
  IconListOI.displayName = 'IconListOI';
2951
3753
 
2952
- var _excluded$1r = ["testId"];
3754
+ var _excluded$1r = ["testId", "size", "color", "style"];
2953
3755
  var IconList = forwardRef(function (_ref, ref) {
2954
3756
  var _ref$testId = _ref.testId,
2955
3757
  testId = _ref$testId === void 0 ? 'icon-list' : _ref$testId,
3758
+ size = _ref.size,
3759
+ color = _ref.color,
3760
+ style = _ref.style,
2956
3761
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1r);
3762
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3763
+ var styleProps = {
3764
+ size: !size && isInsideButton ? 'medium' : size,
3765
+ color: color,
3766
+ style: style
3767
+ };
2957
3768
  return React__default.createElement("svg", _extends({
2958
3769
  xmlns: "http://www.w3.org/2000/svg",
2959
3770
  fill: "none",
2960
3771
  viewBox: "0 0 20 20",
2961
- style: getIconStyles(props),
3772
+ style: getIconStyles(styleProps),
2962
3773
  "data-testid": testId,
2963
3774
  ref: ref
2964
3775
  }, props), React__default.createElement("path", {
@@ -2968,16 +3779,25 @@ var IconList = forwardRef(function (_ref, ref) {
2968
3779
  });
2969
3780
  IconList.displayName = 'IconList';
2970
3781
 
2971
- var _excluded$1s = ["testId"];
3782
+ var _excluded$1s = ["testId", "size", "color", "style"];
2972
3783
  var IconLock = forwardRef(function (_ref, ref) {
2973
3784
  var _ref$testId = _ref.testId,
2974
3785
  testId = _ref$testId === void 0 ? 'icon-lock' : _ref$testId,
3786
+ size = _ref.size,
3787
+ color = _ref.color,
3788
+ style = _ref.style,
2975
3789
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1s);
3790
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3791
+ var styleProps = {
3792
+ size: !size && isInsideButton ? 'medium' : size,
3793
+ color: color,
3794
+ style: style
3795
+ };
2976
3796
  return React__default.createElement("svg", _extends({
2977
3797
  xmlns: "http://www.w3.org/2000/svg",
2978
3798
  fill: "none",
2979
3799
  viewBox: "0 0 20 20",
2980
- style: getIconStyles(props),
3800
+ style: getIconStyles(styleProps),
2981
3801
  "data-testid": testId,
2982
3802
  ref: ref
2983
3803
  }, props), React__default.createElement("path", {
@@ -2987,16 +3807,25 @@ var IconLock = forwardRef(function (_ref, ref) {
2987
3807
  });
2988
3808
  IconLock.displayName = 'IconLock';
2989
3809
 
2990
- var _excluded$1t = ["testId"];
3810
+ var _excluded$1t = ["testId", "size", "color", "style"];
2991
3811
  var IconMagicSolid = forwardRef(function (_ref, ref) {
2992
3812
  var _ref$testId = _ref.testId,
2993
3813
  testId = _ref$testId === void 0 ? 'icon-magic-solid' : _ref$testId,
3814
+ size = _ref.size,
3815
+ color = _ref.color,
3816
+ style = _ref.style,
2994
3817
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1t);
3818
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3819
+ var styleProps = {
3820
+ size: !size && isInsideButton ? 'medium' : size,
3821
+ color: color,
3822
+ style: style
3823
+ };
2995
3824
  return React__default.createElement("svg", _extends({
2996
3825
  xmlns: "http://www.w3.org/2000/svg",
2997
3826
  fill: "none",
2998
3827
  viewBox: "0 0 20 20",
2999
- style: getIconStyles(props),
3828
+ style: getIconStyles(styleProps),
3000
3829
  "data-testid": testId,
3001
3830
  ref: ref
3002
3831
  }, props), React__default.createElement("path", {
@@ -3008,16 +3837,25 @@ var IconMagicSolid = forwardRef(function (_ref, ref) {
3008
3837
  });
3009
3838
  IconMagicSolid.displayName = 'IconMagicSolid';
3010
3839
 
3011
- var _excluded$1u = ["testId"];
3840
+ var _excluded$1u = ["testId", "size", "color", "style"];
3012
3841
  var IconMapMarker = forwardRef(function (_ref, ref) {
3013
3842
  var _ref$testId = _ref.testId,
3014
3843
  testId = _ref$testId === void 0 ? 'icon-map-marker' : _ref$testId,
3844
+ size = _ref.size,
3845
+ color = _ref.color,
3846
+ style = _ref.style,
3015
3847
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1u);
3848
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3849
+ var styleProps = {
3850
+ size: !size && isInsideButton ? 'medium' : size,
3851
+ color: color,
3852
+ style: style
3853
+ };
3016
3854
  return React__default.createElement("svg", _extends({
3017
3855
  xmlns: "http://www.w3.org/2000/svg",
3018
3856
  fill: "none",
3019
3857
  viewBox: "0 0 20 20",
3020
- style: getIconStyles(props),
3858
+ style: getIconStyles(styleProps),
3021
3859
  "data-testid": testId,
3022
3860
  ref: ref
3023
3861
  }, props), React__default.createElement("path", {
@@ -3029,16 +3867,25 @@ var IconMapMarker = forwardRef(function (_ref, ref) {
3029
3867
  });
3030
3868
  IconMapMarker.displayName = 'IconMapMarker';
3031
3869
 
3032
- var _excluded$1v = ["testId"];
3870
+ var _excluded$1v = ["testId", "size", "color", "style"];
3033
3871
  var IconMegaphone = forwardRef(function (_ref, ref) {
3034
3872
  var _ref$testId = _ref.testId,
3035
3873
  testId = _ref$testId === void 0 ? 'icon-megaphone' : _ref$testId,
3874
+ size = _ref.size,
3875
+ color = _ref.color,
3876
+ style = _ref.style,
3036
3877
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1v);
3878
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3879
+ var styleProps = {
3880
+ size: !size && isInsideButton ? 'medium' : size,
3881
+ color: color,
3882
+ style: style
3883
+ };
3037
3884
  return React__default.createElement("svg", _extends({
3038
3885
  xmlns: "http://www.w3.org/2000/svg",
3039
3886
  fill: "none",
3040
3887
  viewBox: "0 0 20 20",
3041
- style: getIconStyles(props),
3888
+ style: getIconStyles(styleProps),
3042
3889
  "data-testid": testId,
3043
3890
  ref: ref
3044
3891
  }, props), React__default.createElement("path", {
@@ -3050,16 +3897,25 @@ var IconMegaphone = forwardRef(function (_ref, ref) {
3050
3897
  });
3051
3898
  IconMegaphone.displayName = 'IconMegaphone';
3052
3899
 
3053
- var _excluded$1w = ["testId"];
3900
+ var _excluded$1w = ["testId", "size", "color", "style"];
3054
3901
  var IconMessages = forwardRef(function (_ref, ref) {
3055
3902
  var _ref$testId = _ref.testId,
3056
3903
  testId = _ref$testId === void 0 ? 'icon-messages' : _ref$testId,
3904
+ size = _ref.size,
3905
+ color = _ref.color,
3906
+ style = _ref.style,
3057
3907
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1w);
3908
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3909
+ var styleProps = {
3910
+ size: !size && isInsideButton ? 'medium' : size,
3911
+ color: color,
3912
+ style: style
3913
+ };
3058
3914
  return React__default.createElement("svg", _extends({
3059
3915
  xmlns: "http://www.w3.org/2000/svg",
3060
3916
  fill: "none",
3061
3917
  viewBox: "0 0 20 18",
3062
- style: getIconStyles(props),
3918
+ style: getIconStyles(styleProps),
3063
3919
  "data-testid": testId,
3064
3920
  ref: ref
3065
3921
  }, props), React__default.createElement("path", {
@@ -3069,16 +3925,25 @@ var IconMessages = forwardRef(function (_ref, ref) {
3069
3925
  });
3070
3926
  IconMessages.displayName = 'IconMessages';
3071
3927
 
3072
- var _excluded$1x = ["testId"];
3928
+ var _excluded$1x = ["testId", "size", "color", "style"];
3073
3929
  var IconMinusCircle = forwardRef(function (_ref, ref) {
3074
3930
  var _ref$testId = _ref.testId,
3075
3931
  testId = _ref$testId === void 0 ? 'icon-minus-circle' : _ref$testId,
3932
+ size = _ref.size,
3933
+ color = _ref.color,
3934
+ style = _ref.style,
3076
3935
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1x);
3936
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3937
+ var styleProps = {
3938
+ size: !size && isInsideButton ? 'medium' : size,
3939
+ color: color,
3940
+ style: style
3941
+ };
3077
3942
  return React__default.createElement("svg", _extends({
3078
3943
  xmlns: "http://www.w3.org/2000/svg",
3079
3944
  fill: "none",
3080
3945
  viewBox: "0 0 20 20",
3081
- style: getIconStyles(props),
3946
+ style: getIconStyles(styleProps),
3082
3947
  "data-testid": testId,
3083
3948
  ref: ref
3084
3949
  }, props), React__default.createElement("path", {
@@ -3088,16 +3953,25 @@ var IconMinusCircle = forwardRef(function (_ref, ref) {
3088
3953
  });
3089
3954
  IconMinusCircle.displayName = 'IconMinusCircle';
3090
3955
 
3091
- var _excluded$1y = ["testId"];
3956
+ var _excluded$1y = ["testId", "size", "color", "style"];
3092
3957
  var IconMinus = forwardRef(function (_ref, ref) {
3093
3958
  var _ref$testId = _ref.testId,
3094
3959
  testId = _ref$testId === void 0 ? 'icon-minus' : _ref$testId,
3960
+ size = _ref.size,
3961
+ color = _ref.color,
3962
+ style = _ref.style,
3095
3963
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1y);
3964
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3965
+ var styleProps = {
3966
+ size: !size && isInsideButton ? 'medium' : size,
3967
+ color: color,
3968
+ style: style
3969
+ };
3096
3970
  return React__default.createElement("svg", _extends({
3097
3971
  xmlns: "http://www.w3.org/2000/svg",
3098
3972
  fill: "none",
3099
3973
  viewBox: "0 0 20 20",
3100
- style: getIconStyles(props),
3974
+ style: getIconStyles(styleProps),
3101
3975
  "data-testid": testId,
3102
3976
  ref: ref
3103
3977
  }, props), React__default.createElement("path", {
@@ -3107,16 +3981,25 @@ var IconMinus = forwardRef(function (_ref, ref) {
3107
3981
  });
3108
3982
  IconMinus.displayName = 'IconMinus';
3109
3983
 
3110
- var _excluded$1z = ["testId"];
3984
+ var _excluded$1z = ["testId", "size", "color", "style"];
3111
3985
  var IconMoneyBill = forwardRef(function (_ref, ref) {
3112
3986
  var _ref$testId = _ref.testId,
3113
3987
  testId = _ref$testId === void 0 ? 'icon-money-bill' : _ref$testId,
3988
+ size = _ref.size,
3989
+ color = _ref.color,
3990
+ style = _ref.style,
3114
3991
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1z);
3992
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
3993
+ var styleProps = {
3994
+ size: !size && isInsideButton ? 'medium' : size,
3995
+ color: color,
3996
+ style: style
3997
+ };
3115
3998
  return React__default.createElement("svg", _extends({
3116
3999
  xmlns: "http://www.w3.org/2000/svg",
3117
4000
  fill: "none",
3118
4001
  viewBox: "0 0 20 20",
3119
- style: getIconStyles(props),
4002
+ style: getIconStyles(styleProps),
3120
4003
  "data-testid": testId,
3121
4004
  ref: ref
3122
4005
  }, props), React__default.createElement("path", {
@@ -3126,16 +4009,25 @@ var IconMoneyBill = forwardRef(function (_ref, ref) {
3126
4009
  });
3127
4010
  IconMoneyBill.displayName = 'IconMoneyBill';
3128
4011
 
3129
- var _excluded$1A = ["testId"];
4012
+ var _excluded$1A = ["testId", "size", "color", "style"];
3130
4013
  var IconMugSaucerSolid = forwardRef(function (_ref, ref) {
3131
4014
  var _ref$testId = _ref.testId,
3132
4015
  testId = _ref$testId === void 0 ? 'icon-mug-saucer-solid' : _ref$testId,
4016
+ size = _ref.size,
4017
+ color = _ref.color,
4018
+ style = _ref.style,
3133
4019
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1A);
4020
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4021
+ var styleProps = {
4022
+ size: !size && isInsideButton ? 'medium' : size,
4023
+ color: color,
4024
+ style: style
4025
+ };
3134
4026
  return React__default.createElement("svg", _extends({
3135
4027
  xmlns: "http://www.w3.org/2000/svg",
3136
4028
  fill: "none",
3137
4029
  viewBox: "0 0 21 20",
3138
- style: getIconStyles(props),
4030
+ style: getIconStyles(styleProps),
3139
4031
  "data-testid": testId,
3140
4032
  ref: ref
3141
4033
  }, props), React__default.createElement("path", {
@@ -3145,16 +4037,25 @@ var IconMugSaucerSolid = forwardRef(function (_ref, ref) {
3145
4037
  });
3146
4038
  IconMugSaucerSolid.displayName = 'IconMugSaucerSolid';
3147
4039
 
3148
- var _excluded$1B = ["testId"];
4040
+ var _excluded$1B = ["testId", "size", "color", "style"];
3149
4041
  var IconNotesMedical = forwardRef(function (_ref, ref) {
3150
4042
  var _ref$testId = _ref.testId,
3151
4043
  testId = _ref$testId === void 0 ? 'icon-notes-medical' : _ref$testId,
4044
+ size = _ref.size,
4045
+ color = _ref.color,
4046
+ style = _ref.style,
3152
4047
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1B);
4048
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4049
+ var styleProps = {
4050
+ size: !size && isInsideButton ? 'medium' : size,
4051
+ color: color,
4052
+ style: style
4053
+ };
3153
4054
  return React__default.createElement("svg", _extends({
3154
4055
  xmlns: "http://www.w3.org/2000/svg",
3155
4056
  fill: "none",
3156
4057
  viewBox: "0 0 20 20",
3157
- style: getIconStyles(props),
4058
+ style: getIconStyles(styleProps),
3158
4059
  "data-testid": testId,
3159
4060
  ref: ref
3160
4061
  }, props), React__default.createElement("path", {
@@ -3164,16 +4065,25 @@ var IconNotesMedical = forwardRef(function (_ref, ref) {
3164
4065
  });
3165
4066
  IconNotesMedical.displayName = 'IconNotesMedical';
3166
4067
 
3167
- var _excluded$1C = ["testId"];
4068
+ var _excluded$1C = ["testId", "size", "color", "style"];
3168
4069
  var IconOvertime = forwardRef(function (_ref, ref) {
3169
4070
  var _ref$testId = _ref.testId,
3170
4071
  testId = _ref$testId === void 0 ? 'icon-overtime' : _ref$testId,
4072
+ size = _ref.size,
4073
+ color = _ref.color,
4074
+ style = _ref.style,
3171
4075
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1C);
4076
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4077
+ var styleProps = {
4078
+ size: !size && isInsideButton ? 'medium' : size,
4079
+ color: color,
4080
+ style: style
4081
+ };
3172
4082
  return React__default.createElement("svg", _extends({
3173
4083
  xmlns: "http://www.w3.org/2000/svg",
3174
4084
  fill: "none",
3175
4085
  viewBox: "0 0 21 20",
3176
- style: getIconStyles(props),
4086
+ style: getIconStyles(styleProps),
3177
4087
  "data-testid": testId,
3178
4088
  ref: ref
3179
4089
  }, props), React__default.createElement("g", {
@@ -3190,16 +4100,25 @@ var IconOvertime = forwardRef(function (_ref, ref) {
3190
4100
  });
3191
4101
  IconOvertime.displayName = 'IconOvertime';
3192
4102
 
3193
- var _excluded$1D = ["testId"];
4103
+ var _excluded$1D = ["testId", "size", "color", "style"];
3194
4104
  var IconPaperPlaneClock = forwardRef(function (_ref, ref) {
3195
4105
  var _ref$testId = _ref.testId,
3196
4106
  testId = _ref$testId === void 0 ? 'icon-paper-plane-clock' : _ref$testId,
4107
+ size = _ref.size,
4108
+ color = _ref.color,
4109
+ style = _ref.style,
3197
4110
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1D);
4111
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4112
+ var styleProps = {
4113
+ size: !size && isInsideButton ? 'medium' : size,
4114
+ color: color,
4115
+ style: style
4116
+ };
3198
4117
  return React__default.createElement("svg", _extends({
3199
4118
  xmlns: "http://www.w3.org/2000/svg",
3200
4119
  fill: "none",
3201
4120
  viewBox: "0 0 20 20",
3202
- style: getIconStyles(props),
4121
+ style: getIconStyles(styleProps),
3203
4122
  "data-testid": testId,
3204
4123
  ref: ref
3205
4124
  }, props), React__default.createElement("g", {
@@ -3220,16 +4139,25 @@ var IconPaperPlaneClock = forwardRef(function (_ref, ref) {
3220
4139
  });
3221
4140
  IconPaperPlaneClock.displayName = 'IconPaperPlaneClock';
3222
4141
 
3223
- var _excluded$1E = ["testId"];
4142
+ var _excluded$1E = ["testId", "size", "color", "style"];
3224
4143
  var IconPaperPlane = forwardRef(function (_ref, ref) {
3225
4144
  var _ref$testId = _ref.testId,
3226
4145
  testId = _ref$testId === void 0 ? 'icon-paper-plane' : _ref$testId,
4146
+ size = _ref.size,
4147
+ color = _ref.color,
4148
+ style = _ref.style,
3227
4149
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1E);
4150
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4151
+ var styleProps = {
4152
+ size: !size && isInsideButton ? 'medium' : size,
4153
+ color: color,
4154
+ style: style
4155
+ };
3228
4156
  return React__default.createElement("svg", _extends({
3229
4157
  xmlns: "http://www.w3.org/2000/svg",
3230
4158
  fill: "none",
3231
4159
  viewBox: "0 0 19 20",
3232
- style: getIconStyles(props),
4160
+ style: getIconStyles(styleProps),
3233
4161
  "data-testid": testId,
3234
4162
  ref: ref
3235
4163
  }, props), React__default.createElement("path", {
@@ -3241,16 +4169,25 @@ var IconPaperPlane = forwardRef(function (_ref, ref) {
3241
4169
  });
3242
4170
  IconPaperPlane.displayName = 'IconPaperPlane';
3243
4171
 
3244
- var _excluded$1F = ["testId"];
4172
+ var _excluded$1F = ["testId", "size", "color", "style"];
3245
4173
  var IconPaperclip = forwardRef(function (_ref, ref) {
3246
4174
  var _ref$testId = _ref.testId,
3247
4175
  testId = _ref$testId === void 0 ? 'icon-paperclip' : _ref$testId,
4176
+ size = _ref.size,
4177
+ color = _ref.color,
4178
+ style = _ref.style,
3248
4179
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1F);
4180
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4181
+ var styleProps = {
4182
+ size: !size && isInsideButton ? 'medium' : size,
4183
+ color: color,
4184
+ style: style
4185
+ };
3249
4186
  return React__default.createElement("svg", _extends({
3250
4187
  xmlns: "http://www.w3.org/2000/svg",
3251
4188
  fill: "none",
3252
4189
  viewBox: "0 0 20 20",
3253
- style: getIconStyles(props),
4190
+ style: getIconStyles(styleProps),
3254
4191
  "data-testid": testId,
3255
4192
  ref: ref
3256
4193
  }, props), React__default.createElement("g", {
@@ -3267,16 +4204,25 @@ var IconPaperclip = forwardRef(function (_ref, ref) {
3267
4204
  });
3268
4205
  IconPaperclip.displayName = 'IconPaperclip';
3269
4206
 
3270
- var _excluded$1G = ["testId"];
4207
+ var _excluded$1G = ["testId", "size", "color", "style"];
3271
4208
  var IconPencil = forwardRef(function (_ref, ref) {
3272
4209
  var _ref$testId = _ref.testId,
3273
4210
  testId = _ref$testId === void 0 ? 'icon-pencil' : _ref$testId,
4211
+ size = _ref.size,
4212
+ color = _ref.color,
4213
+ style = _ref.style,
3274
4214
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1G);
4215
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4216
+ var styleProps = {
4217
+ size: !size && isInsideButton ? 'medium' : size,
4218
+ color: color,
4219
+ style: style
4220
+ };
3275
4221
  return React__default.createElement("svg", _extends({
3276
4222
  xmlns: "http://www.w3.org/2000/svg",
3277
4223
  fill: "none",
3278
4224
  viewBox: "0 0 20 20",
3279
- style: getIconStyles(props),
4225
+ style: getIconStyles(styleProps),
3280
4226
  "data-testid": testId,
3281
4227
  ref: ref
3282
4228
  }, props), React__default.createElement("path", {
@@ -3288,16 +4234,25 @@ var IconPencil = forwardRef(function (_ref, ref) {
3288
4234
  });
3289
4235
  IconPencil.displayName = 'IconPencil';
3290
4236
 
3291
- var _excluded$1H = ["testId"];
4237
+ var _excluded$1H = ["testId", "size", "color", "style"];
3292
4238
  var IconPercentage = forwardRef(function (_ref, ref) {
3293
4239
  var _ref$testId = _ref.testId,
3294
4240
  testId = _ref$testId === void 0 ? 'icon-percentage' : _ref$testId,
4241
+ size = _ref.size,
4242
+ color = _ref.color,
4243
+ style = _ref.style,
3295
4244
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1H);
4245
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4246
+ var styleProps = {
4247
+ size: !size && isInsideButton ? 'medium' : size,
4248
+ color: color,
4249
+ style: style
4250
+ };
3296
4251
  return React__default.createElement("svg", _extends({
3297
4252
  xmlns: "http://www.w3.org/2000/svg",
3298
4253
  fill: "none",
3299
4254
  viewBox: "0 0 20 20",
3300
- style: getIconStyles(props),
4255
+ style: getIconStyles(styleProps),
3301
4256
  "data-testid": testId,
3302
4257
  ref: ref
3303
4258
  }, props), React__default.createElement("path", {
@@ -3307,15 +4262,24 @@ var IconPercentage = forwardRef(function (_ref, ref) {
3307
4262
  });
3308
4263
  IconPercentage.displayName = 'IconPercentage';
3309
4264
 
3310
- var _excluded$1I = ["testId"];
4265
+ var _excluded$1I = ["testId", "size", "color", "style"];
3311
4266
  var IconPhone = forwardRef(function (_ref, ref) {
3312
4267
  var _ref$testId = _ref.testId,
3313
4268
  testId = _ref$testId === void 0 ? 'icon-phone' : _ref$testId,
4269
+ size = _ref.size,
4270
+ color = _ref.color,
4271
+ style = _ref.style,
3314
4272
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1I);
4273
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4274
+ var styleProps = {
4275
+ size: !size && isInsideButton ? 'medium' : size,
4276
+ color: color,
4277
+ style: style
4278
+ };
3315
4279
  return React__default.createElement("svg", _extends({
3316
4280
  xmlns: "http://www.w3.org/2000/svg",
3317
4281
  viewBox: "0 0 20 20",
3318
- style: getIconStyles(props),
4282
+ style: getIconStyles(styleProps),
3319
4283
  "data-testid": testId,
3320
4284
  ref: ref
3321
4285
  }, props), React__default.createElement("path", {
@@ -3326,16 +4290,25 @@ var IconPhone = forwardRef(function (_ref, ref) {
3326
4290
  });
3327
4291
  IconPhone.displayName = 'IconPhone';
3328
4292
 
3329
- var _excluded$1J = ["testId"];
4293
+ var _excluded$1J = ["testId", "size", "color", "style"];
3330
4294
  var IconPlug = forwardRef(function (_ref, ref) {
3331
4295
  var _ref$testId = _ref.testId,
3332
4296
  testId = _ref$testId === void 0 ? 'icon-plug' : _ref$testId,
4297
+ size = _ref.size,
4298
+ color = _ref.color,
4299
+ style = _ref.style,
3333
4300
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1J);
4301
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4302
+ var styleProps = {
4303
+ size: !size && isInsideButton ? 'medium' : size,
4304
+ color: color,
4305
+ style: style
4306
+ };
3334
4307
  return React__default.createElement("svg", _extends({
3335
4308
  xmlns: "http://www.w3.org/2000/svg",
3336
4309
  fill: "none",
3337
4310
  viewBox: "0 0 20 20",
3338
- style: getIconStyles(props),
4311
+ style: getIconStyles(styleProps),
3339
4312
  "data-testid": testId,
3340
4313
  ref: ref
3341
4314
  }, props), React__default.createElement("path", {
@@ -3347,16 +4320,25 @@ var IconPlug = forwardRef(function (_ref, ref) {
3347
4320
  });
3348
4321
  IconPlug.displayName = 'IconPlug';
3349
4322
 
3350
- var _excluded$1K = ["testId"];
4323
+ var _excluded$1K = ["testId", "size", "color", "style"];
3351
4324
  var IconPlus = forwardRef(function (_ref, ref) {
3352
4325
  var _ref$testId = _ref.testId,
3353
4326
  testId = _ref$testId === void 0 ? 'icon-plus' : _ref$testId,
4327
+ size = _ref.size,
4328
+ color = _ref.color,
4329
+ style = _ref.style,
3354
4330
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1K);
4331
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4332
+ var styleProps = {
4333
+ size: !size && isInsideButton ? 'medium' : size,
4334
+ color: color,
4335
+ style: style
4336
+ };
3355
4337
  return React__default.createElement("svg", _extends({
3356
4338
  xmlns: "http://www.w3.org/2000/svg",
3357
4339
  fill: "none",
3358
4340
  viewBox: "0 0 20 20",
3359
- style: getIconStyles(props),
4341
+ style: getIconStyles(styleProps),
3360
4342
  "data-testid": testId,
3361
4343
  ref: ref
3362
4344
  }, props), React__default.createElement("path", {
@@ -3368,16 +4350,25 @@ var IconPlus = forwardRef(function (_ref, ref) {
3368
4350
  });
3369
4351
  IconPlus.displayName = 'IconPlus';
3370
4352
 
3371
- var _excluded$1L = ["testId"];
4353
+ var _excluded$1L = ["testId", "size", "color", "style"];
3372
4354
  var IconPrint = forwardRef(function (_ref, ref) {
3373
4355
  var _ref$testId = _ref.testId,
3374
4356
  testId = _ref$testId === void 0 ? 'icon-print' : _ref$testId,
4357
+ size = _ref.size,
4358
+ color = _ref.color,
4359
+ style = _ref.style,
3375
4360
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1L);
4361
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4362
+ var styleProps = {
4363
+ size: !size && isInsideButton ? 'medium' : size,
4364
+ color: color,
4365
+ style: style
4366
+ };
3376
4367
  return React__default.createElement("svg", _extends({
3377
4368
  xmlns: "http://www.w3.org/2000/svg",
3378
4369
  fill: "none",
3379
4370
  viewBox: "0 0 20 20",
3380
- style: getIconStyles(props),
4371
+ style: getIconStyles(styleProps),
3381
4372
  "data-testid": testId,
3382
4373
  ref: ref
3383
4374
  }, props), React__default.createElement("path", {
@@ -3389,16 +4380,25 @@ var IconPrint = forwardRef(function (_ref, ref) {
3389
4380
  });
3390
4381
  IconPrint.displayName = 'IconPrint';
3391
4382
 
3392
- var _excluded$1M = ["testId"];
4383
+ var _excluded$1M = ["testId", "size", "color", "style"];
3393
4384
  var IconQuestionCircle = forwardRef(function (_ref, ref) {
3394
4385
  var _ref$testId = _ref.testId,
3395
4386
  testId = _ref$testId === void 0 ? 'icon-question-circle' : _ref$testId,
4387
+ size = _ref.size,
4388
+ color = _ref.color,
4389
+ style = _ref.style,
3396
4390
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1M);
4391
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4392
+ var styleProps = {
4393
+ size: !size && isInsideButton ? 'medium' : size,
4394
+ color: color,
4395
+ style: style
4396
+ };
3397
4397
  return React__default.createElement("svg", _extends({
3398
4398
  xmlns: "http://www.w3.org/2000/svg",
3399
4399
  fill: "none",
3400
4400
  viewBox: "0 0 20 20",
3401
- style: getIconStyles(props),
4401
+ style: getIconStyles(styleProps),
3402
4402
  "data-testid": testId,
3403
4403
  ref: ref
3404
4404
  }, props), React__default.createElement("path", {
@@ -3408,16 +4408,25 @@ var IconQuestionCircle = forwardRef(function (_ref, ref) {
3408
4408
  });
3409
4409
  IconQuestionCircle.displayName = 'IconQuestionCircle';
3410
4410
 
3411
- var _excluded$1N = ["testId"];
4411
+ var _excluded$1N = ["testId", "size", "color", "style"];
3412
4412
  var IconRepeat = forwardRef(function (_ref, ref) {
3413
4413
  var _ref$testId = _ref.testId,
3414
4414
  testId = _ref$testId === void 0 ? 'icon-repeat' : _ref$testId,
4415
+ size = _ref.size,
4416
+ color = _ref.color,
4417
+ style = _ref.style,
3415
4418
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1N);
4419
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4420
+ var styleProps = {
4421
+ size: !size && isInsideButton ? 'medium' : size,
4422
+ color: color,
4423
+ style: style
4424
+ };
3416
4425
  return React__default.createElement("svg", _extends({
3417
4426
  xmlns: "http://www.w3.org/2000/svg",
3418
4427
  fill: "none",
3419
4428
  viewBox: "0 0 20 20",
3420
- style: getIconStyles(props),
4429
+ style: getIconStyles(styleProps),
3421
4430
  "data-testid": testId,
3422
4431
  ref: ref
3423
4432
  }, props), React__default.createElement("path", {
@@ -3427,16 +4436,25 @@ var IconRepeat = forwardRef(function (_ref, ref) {
3427
4436
  });
3428
4437
  IconRepeat.displayName = 'IconRepeat';
3429
4438
 
3430
- var _excluded$1O = ["testId"];
4439
+ var _excluded$1O = ["testId", "size", "color", "style"];
3431
4440
  var IconReply = forwardRef(function (_ref, ref) {
3432
4441
  var _ref$testId = _ref.testId,
3433
4442
  testId = _ref$testId === void 0 ? 'icon-reply' : _ref$testId,
4443
+ size = _ref.size,
4444
+ color = _ref.color,
4445
+ style = _ref.style,
3434
4446
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1O);
4447
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4448
+ var styleProps = {
4449
+ size: !size && isInsideButton ? 'medium' : size,
4450
+ color: color,
4451
+ style: style
4452
+ };
3435
4453
  return React__default.createElement("svg", _extends({
3436
4454
  xmlns: "http://www.w3.org/2000/svg",
3437
4455
  fill: "none",
3438
4456
  viewBox: "0 0 20 20",
3439
- style: getIconStyles(props),
4457
+ style: getIconStyles(styleProps),
3440
4458
  "data-testid": testId,
3441
4459
  ref: ref
3442
4460
  }, props), React__default.createElement("path", {
@@ -3446,16 +4464,25 @@ var IconReply = forwardRef(function (_ref, ref) {
3446
4464
  });
3447
4465
  IconReply.displayName = 'IconReply';
3448
4466
 
3449
- var _excluded$1P = ["testId"];
4467
+ var _excluded$1P = ["testId", "size", "color", "style"];
3450
4468
  var IconRocket = forwardRef(function (_ref, ref) {
3451
4469
  var _ref$testId = _ref.testId,
3452
4470
  testId = _ref$testId === void 0 ? 'icon-rocket' : _ref$testId,
4471
+ size = _ref.size,
4472
+ color = _ref.color,
4473
+ style = _ref.style,
3453
4474
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1P);
4475
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4476
+ var styleProps = {
4477
+ size: !size && isInsideButton ? 'medium' : size,
4478
+ color: color,
4479
+ style: style
4480
+ };
3454
4481
  return React__default.createElement("svg", _extends({
3455
4482
  xmlns: "http://www.w3.org/2000/svg",
3456
4483
  fill: "none",
3457
4484
  viewBox: "0 0 20 20",
3458
- style: getIconStyles(props),
4485
+ style: getIconStyles(styleProps),
3459
4486
  "data-testid": testId,
3460
4487
  ref: ref
3461
4488
  }, props), React__default.createElement("path", {
@@ -3465,16 +4492,25 @@ var IconRocket = forwardRef(function (_ref, ref) {
3465
4492
  });
3466
4493
  IconRocket.displayName = 'IconRocket';
3467
4494
 
3468
- var _excluded$1Q = ["testId"];
4495
+ var _excluded$1Q = ["testId", "size", "color", "style"];
3469
4496
  var IconSearch = forwardRef(function (_ref, ref) {
3470
4497
  var _ref$testId = _ref.testId,
3471
4498
  testId = _ref$testId === void 0 ? 'icon-search' : _ref$testId,
4499
+ size = _ref.size,
4500
+ color = _ref.color,
4501
+ style = _ref.style,
3472
4502
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Q);
4503
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4504
+ var styleProps = {
4505
+ size: !size && isInsideButton ? 'medium' : size,
4506
+ color: color,
4507
+ style: style
4508
+ };
3473
4509
  return React__default.createElement("svg", _extends({
3474
4510
  xmlns: "http://www.w3.org/2000/svg",
3475
4511
  fill: "none",
3476
4512
  viewBox: "0 0 20 20",
3477
- style: getIconStyles(props),
4513
+ style: getIconStyles(styleProps),
3478
4514
  "data-testid": testId,
3479
4515
  ref: ref
3480
4516
  }, props), React__default.createElement("path", {
@@ -3486,16 +4522,25 @@ var IconSearch = forwardRef(function (_ref, ref) {
3486
4522
  });
3487
4523
  IconSearch.displayName = 'IconSearch';
3488
4524
 
3489
- var _excluded$1R = ["testId"];
4525
+ var _excluded$1R = ["testId", "size", "color", "style"];
3490
4526
  var IconSignOut = forwardRef(function (_ref, ref) {
3491
4527
  var _ref$testId = _ref.testId,
3492
4528
  testId = _ref$testId === void 0 ? 'icon-sign-out' : _ref$testId,
4529
+ size = _ref.size,
4530
+ color = _ref.color,
4531
+ style = _ref.style,
3493
4532
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1R);
4533
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4534
+ var styleProps = {
4535
+ size: !size && isInsideButton ? 'medium' : size,
4536
+ color: color,
4537
+ style: style
4538
+ };
3494
4539
  return React__default.createElement("svg", _extends({
3495
4540
  xmlns: "http://www.w3.org/2000/svg",
3496
4541
  fill: "none",
3497
4542
  viewBox: "0 0 20 20",
3498
- style: getIconStyles(props),
4543
+ style: getIconStyles(styleProps),
3499
4544
  "data-testid": testId,
3500
4545
  ref: ref
3501
4546
  }, props), React__default.createElement("path", {
@@ -3505,16 +4550,25 @@ var IconSignOut = forwardRef(function (_ref, ref) {
3505
4550
  });
3506
4551
  IconSignOut.displayName = 'IconSignOut';
3507
4552
 
3508
- var _excluded$1S = ["testId"];
4553
+ var _excluded$1S = ["testId", "size", "color", "style"];
3509
4554
  var IconSitemap = forwardRef(function (_ref, ref) {
3510
4555
  var _ref$testId = _ref.testId,
3511
4556
  testId = _ref$testId === void 0 ? 'icon-sitemap' : _ref$testId,
4557
+ size = _ref.size,
4558
+ color = _ref.color,
4559
+ style = _ref.style,
3512
4560
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1S);
4561
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4562
+ var styleProps = {
4563
+ size: !size && isInsideButton ? 'medium' : size,
4564
+ color: color,
4565
+ style: style
4566
+ };
3513
4567
  return React__default.createElement("svg", _extends({
3514
4568
  xmlns: "http://www.w3.org/2000/svg",
3515
4569
  fill: "none",
3516
4570
  viewBox: "0 0 20 20",
3517
- style: getIconStyles(props),
4571
+ style: getIconStyles(styleProps),
3518
4572
  "data-testid": testId,
3519
4573
  ref: ref
3520
4574
  }, props), React__default.createElement("path", {
@@ -3526,16 +4580,25 @@ var IconSitemap = forwardRef(function (_ref, ref) {
3526
4580
  });
3527
4581
  IconSitemap.displayName = 'IconSitemap';
3528
4582
 
3529
- var _excluded$1T = ["testId"];
4583
+ var _excluded$1T = ["testId", "size", "color", "style"];
3530
4584
  var IconSlidersH = forwardRef(function (_ref, ref) {
3531
4585
  var _ref$testId = _ref.testId,
3532
4586
  testId = _ref$testId === void 0 ? 'icon-sliders-h' : _ref$testId,
4587
+ size = _ref.size,
4588
+ color = _ref.color,
4589
+ style = _ref.style,
3533
4590
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1T);
4591
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4592
+ var styleProps = {
4593
+ size: !size && isInsideButton ? 'medium' : size,
4594
+ color: color,
4595
+ style: style
4596
+ };
3534
4597
  return React__default.createElement("svg", _extends({
3535
4598
  xmlns: "http://www.w3.org/2000/svg",
3536
4599
  fill: "none",
3537
4600
  viewBox: "0 0 20 20",
3538
- style: getIconStyles(props),
4601
+ style: getIconStyles(styleProps),
3539
4602
  "data-testid": testId,
3540
4603
  ref: ref
3541
4604
  }, props), React__default.createElement("g", {
@@ -3552,16 +4615,25 @@ var IconSlidersH = forwardRef(function (_ref, ref) {
3552
4615
  });
3553
4616
  IconSlidersH.displayName = 'IconSlidersH';
3554
4617
 
3555
- var _excluded$1U = ["testId"];
4618
+ var _excluded$1U = ["testId", "size", "color", "style"];
3556
4619
  var IconSort = forwardRef(function (_ref, ref) {
3557
4620
  var _ref$testId = _ref.testId,
3558
4621
  testId = _ref$testId === void 0 ? 'icon-sort' : _ref$testId,
4622
+ size = _ref.size,
4623
+ color = _ref.color,
4624
+ style = _ref.style,
3559
4625
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1U);
4626
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4627
+ var styleProps = {
4628
+ size: !size && isInsideButton ? 'medium' : size,
4629
+ color: color,
4630
+ style: style
4631
+ };
3560
4632
  return React__default.createElement("svg", _extends({
3561
4633
  xmlns: "http://www.w3.org/2000/svg",
3562
4634
  fill: "none",
3563
4635
  viewBox: "0 0 20 20",
3564
- style: getIconStyles(props),
4636
+ style: getIconStyles(styleProps),
3565
4637
  "data-testid": testId,
3566
4638
  ref: ref
3567
4639
  }, props), React__default.createElement("path", {
@@ -3571,16 +4643,25 @@ var IconSort = forwardRef(function (_ref, ref) {
3571
4643
  });
3572
4644
  IconSort.displayName = 'IconSort';
3573
4645
 
3574
- var _excluded$1V = ["testId"];
4646
+ var _excluded$1V = ["testId", "size", "color", "style"];
3575
4647
  var IconStarSolid = forwardRef(function (_ref, ref) {
3576
4648
  var _ref$testId = _ref.testId,
3577
4649
  testId = _ref$testId === void 0 ? 'icon-star-solid' : _ref$testId,
4650
+ size = _ref.size,
4651
+ color = _ref.color,
4652
+ style = _ref.style,
3578
4653
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1V);
4654
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4655
+ var styleProps = {
4656
+ size: !size && isInsideButton ? 'medium' : size,
4657
+ color: color,
4658
+ style: style
4659
+ };
3579
4660
  return React__default.createElement("svg", _extends({
3580
4661
  xmlns: "http://www.w3.org/2000/svg",
3581
4662
  fill: "none",
3582
4663
  viewBox: "0 0 20 20",
3583
- style: getIconStyles(props),
4664
+ style: getIconStyles(styleProps),
3584
4665
  "data-testid": testId,
3585
4666
  ref: ref
3586
4667
  }, props), React__default.createElement("path", {
@@ -3590,16 +4671,25 @@ var IconStarSolid = forwardRef(function (_ref, ref) {
3590
4671
  });
3591
4672
  IconStarSolid.displayName = 'IconStarSolid';
3592
4673
 
3593
- var _excluded$1W = ["testId"];
4674
+ var _excluded$1W = ["testId", "size", "color", "style"];
3594
4675
  var IconStar = forwardRef(function (_ref, ref) {
3595
4676
  var _ref$testId = _ref.testId,
3596
4677
  testId = _ref$testId === void 0 ? 'icon-star' : _ref$testId,
4678
+ size = _ref.size,
4679
+ color = _ref.color,
4680
+ style = _ref.style,
3597
4681
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1W);
4682
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4683
+ var styleProps = {
4684
+ size: !size && isInsideButton ? 'medium' : size,
4685
+ color: color,
4686
+ style: style
4687
+ };
3598
4688
  return React__default.createElement("svg", _extends({
3599
4689
  xmlns: "http://www.w3.org/2000/svg",
3600
4690
  fill: "none",
3601
4691
  viewBox: "0 0 20 20",
3602
- style: getIconStyles(props),
4692
+ style: getIconStyles(styleProps),
3603
4693
  "data-testid": testId,
3604
4694
  ref: ref
3605
4695
  }, props), React__default.createElement("path", {
@@ -3609,16 +4699,25 @@ var IconStar = forwardRef(function (_ref, ref) {
3609
4699
  });
3610
4700
  IconStar.displayName = 'IconStar';
3611
4701
 
3612
- var _excluded$1X = ["testId"];
4702
+ var _excluded$1X = ["testId", "size", "color", "style"];
3613
4703
  var IconStickyNoteLines = forwardRef(function (_ref, ref) {
3614
4704
  var _ref$testId = _ref.testId,
3615
4705
  testId = _ref$testId === void 0 ? 'icon-sticky-note-lines' : _ref$testId,
4706
+ size = _ref.size,
4707
+ color = _ref.color,
4708
+ style = _ref.style,
3616
4709
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1X);
4710
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4711
+ var styleProps = {
4712
+ size: !size && isInsideButton ? 'medium' : size,
4713
+ color: color,
4714
+ style: style
4715
+ };
3617
4716
  return React__default.createElement("svg", _extends({
3618
4717
  xmlns: "http://www.w3.org/2000/svg",
3619
4718
  fill: "none",
3620
4719
  viewBox: "0 0 20 20",
3621
- style: getIconStyles(props),
4720
+ style: getIconStyles(styleProps),
3622
4721
  "data-testid": testId,
3623
4722
  ref: ref
3624
4723
  }, props), React__default.createElement("path", {
@@ -3631,16 +4730,25 @@ var IconStickyNoteLines = forwardRef(function (_ref, ref) {
3631
4730
  });
3632
4731
  IconStickyNoteLines.displayName = 'IconStickyNoteLines';
3633
4732
 
3634
- var _excluded$1Y = ["testId"];
4733
+ var _excluded$1Y = ["testId", "size", "color", "style"];
3635
4734
  var IconStopwatch = forwardRef(function (_ref, ref) {
3636
4735
  var _ref$testId = _ref.testId,
3637
4736
  testId = _ref$testId === void 0 ? 'icon-stopwatch' : _ref$testId,
4737
+ size = _ref.size,
4738
+ color = _ref.color,
4739
+ style = _ref.style,
3638
4740
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Y);
4741
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4742
+ var styleProps = {
4743
+ size: !size && isInsideButton ? 'medium' : size,
4744
+ color: color,
4745
+ style: style
4746
+ };
3639
4747
  return React__default.createElement("svg", _extends({
3640
4748
  xmlns: "http://www.w3.org/2000/svg",
3641
4749
  fill: "none",
3642
4750
  viewBox: "0 0 20 20",
3643
- style: getIconStyles(props),
4751
+ style: getIconStyles(styleProps),
3644
4752
  "data-testid": testId,
3645
4753
  ref: ref
3646
4754
  }, props), React__default.createElement("path", {
@@ -3652,16 +4760,25 @@ var IconStopwatch = forwardRef(function (_ref, ref) {
3652
4760
  });
3653
4761
  IconStopwatch.displayName = 'IconStopwatch';
3654
4762
 
3655
- var _excluded$1Z = ["testId"];
4763
+ var _excluded$1Z = ["testId", "size", "color", "style"];
3656
4764
  var IconStrikethrough = forwardRef(function (_ref, ref) {
3657
4765
  var _ref$testId = _ref.testId,
3658
4766
  testId = _ref$testId === void 0 ? 'icon-strikethrough' : _ref$testId,
4767
+ size = _ref.size,
4768
+ color = _ref.color,
4769
+ style = _ref.style,
3659
4770
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1Z);
4771
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4772
+ var styleProps = {
4773
+ size: !size && isInsideButton ? 'medium' : size,
4774
+ color: color,
4775
+ style: style
4776
+ };
3660
4777
  return React__default.createElement("svg", _extends({
3661
4778
  xmlns: "http://www.w3.org/2000/svg",
3662
4779
  fill: "none",
3663
4780
  viewBox: "0 0 20 20",
3664
- style: getIconStyles(props),
4781
+ style: getIconStyles(styleProps),
3665
4782
  "data-testid": testId,
3666
4783
  ref: ref
3667
4784
  }, props), React__default.createElement("g", {
@@ -3678,15 +4795,24 @@ var IconStrikethrough = forwardRef(function (_ref, ref) {
3678
4795
  });
3679
4796
  IconStrikethrough.displayName = 'IconStrikethrough';
3680
4797
 
3681
- var _excluded$1_ = ["testId"];
4798
+ var _excluded$1_ = ["testId", "size", "color", "style"];
3682
4799
  var IconSyncExclaimation = forwardRef(function (_ref, ref) {
3683
4800
  var _ref$testId = _ref.testId,
3684
4801
  testId = _ref$testId === void 0 ? 'icon-sync-exclaimation' : _ref$testId,
4802
+ size = _ref.size,
4803
+ color = _ref.color,
4804
+ style = _ref.style,
3685
4805
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1_);
4806
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4807
+ var styleProps = {
4808
+ size: !size && isInsideButton ? 'medium' : size,
4809
+ color: color,
4810
+ style: style
4811
+ };
3686
4812
  return React__default.createElement("svg", _extends({
3687
4813
  xmlns: "http://www.w3.org/2000/svg",
3688
4814
  viewBox: "0 0 20 20",
3689
- style: getIconStyles(props),
4815
+ style: getIconStyles(styleProps),
3690
4816
  "data-testid": testId,
3691
4817
  ref: ref
3692
4818
  }, props), React__default.createElement("path", {
@@ -3697,15 +4823,24 @@ var IconSyncExclaimation = forwardRef(function (_ref, ref) {
3697
4823
  });
3698
4824
  IconSyncExclaimation.displayName = 'IconSyncExclaimation';
3699
4825
 
3700
- var _excluded$1$ = ["testId"];
4826
+ var _excluded$1$ = ["testId", "size", "color", "style"];
3701
4827
  var IconSync = forwardRef(function (_ref, ref) {
3702
4828
  var _ref$testId = _ref.testId,
3703
4829
  testId = _ref$testId === void 0 ? 'icon-sync' : _ref$testId,
4830
+ size = _ref.size,
4831
+ color = _ref.color,
4832
+ style = _ref.style,
3704
4833
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1$);
4834
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4835
+ var styleProps = {
4836
+ size: !size && isInsideButton ? 'medium' : size,
4837
+ color: color,
4838
+ style: style
4839
+ };
3705
4840
  return React__default.createElement("svg", _extends({
3706
4841
  xmlns: "http://www.w3.org/2000/svg",
3707
4842
  viewBox: "0 0 20 20",
3708
- style: getIconStyles(props),
4843
+ style: getIconStyles(styleProps),
3709
4844
  "data-testid": testId,
3710
4845
  ref: ref
3711
4846
  }, props), React__default.createElement("path", {
@@ -3716,16 +4851,25 @@ var IconSync = forwardRef(function (_ref, ref) {
3716
4851
  });
3717
4852
  IconSync.displayName = 'IconSync';
3718
4853
 
3719
- var _excluded$20 = ["testId"];
4854
+ var _excluded$20 = ["testId", "size", "color", "style"];
3720
4855
  var IconTable = forwardRef(function (_ref, ref) {
3721
4856
  var _ref$testId = _ref.testId,
3722
4857
  testId = _ref$testId === void 0 ? 'icon-table' : _ref$testId,
4858
+ size = _ref.size,
4859
+ color = _ref.color,
4860
+ style = _ref.style,
3723
4861
  props = _objectWithoutPropertiesLoose(_ref, _excluded$20);
4862
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4863
+ var styleProps = {
4864
+ size: !size && isInsideButton ? 'medium' : size,
4865
+ color: color,
4866
+ style: style
4867
+ };
3724
4868
  return React__default.createElement("svg", _extends({
3725
4869
  xmlns: "http://www.w3.org/2000/svg",
3726
4870
  fill: "none",
3727
4871
  viewBox: "0 0 20 20",
3728
- style: getIconStyles(props),
4872
+ style: getIconStyles(styleProps),
3729
4873
  "data-testid": testId,
3730
4874
  ref: ref
3731
4875
  }, props), React__default.createElement("g", {
@@ -3742,14 +4886,23 @@ var IconTable = forwardRef(function (_ref, ref) {
3742
4886
  });
3743
4887
  IconTable.displayName = 'IconTable';
3744
4888
 
3745
- var _excluded$21 = ["testId"];
4889
+ var _excluded$21 = ["testId", "size", "color", "style"];
3746
4890
  var IconTachometer = forwardRef(function (_ref, ref) {
3747
4891
  var _ref$testId = _ref.testId,
3748
4892
  testId = _ref$testId === void 0 ? 'icon-tachometer' : _ref$testId,
4893
+ size = _ref.size,
4894
+ color = _ref.color,
4895
+ style = _ref.style,
3749
4896
  props = _objectWithoutPropertiesLoose(_ref, _excluded$21);
4897
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4898
+ var styleProps = {
4899
+ size: !size && isInsideButton ? 'medium' : size,
4900
+ color: color,
4901
+ style: style
4902
+ };
3750
4903
  return React__default.createElement("svg", _extends({
3751
4904
  xmlns: "http://www.w3.org/2000/svg",
3752
- style: getIconStyles(props),
4905
+ style: getIconStyles(styleProps),
3753
4906
  "data-testid": testId,
3754
4907
  ref: ref
3755
4908
  }, props), React__default.createElement("path", {
@@ -3760,16 +4913,25 @@ var IconTachometer = forwardRef(function (_ref, ref) {
3760
4913
  });
3761
4914
  IconTachometer.displayName = 'IconTachometer';
3762
4915
 
3763
- var _excluded$22 = ["testId"];
4916
+ var _excluded$22 = ["testId", "size", "color", "style"];
3764
4917
  var IconTimesOctagon = forwardRef(function (_ref, ref) {
3765
4918
  var _ref$testId = _ref.testId,
3766
4919
  testId = _ref$testId === void 0 ? 'icon-times-octagon' : _ref$testId,
4920
+ size = _ref.size,
4921
+ color = _ref.color,
4922
+ style = _ref.style,
3767
4923
  props = _objectWithoutPropertiesLoose(_ref, _excluded$22);
4924
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4925
+ var styleProps = {
4926
+ size: !size && isInsideButton ? 'medium' : size,
4927
+ color: color,
4928
+ style: style
4929
+ };
3768
4930
  return React__default.createElement("svg", _extends({
3769
4931
  xmlns: "http://www.w3.org/2000/svg",
3770
4932
  fill: "none",
3771
4933
  viewBox: "0 0 20 20",
3772
- style: getIconStyles(props),
4934
+ style: getIconStyles(styleProps),
3773
4935
  "data-testid": testId,
3774
4936
  ref: ref
3775
4937
  }, props), React__default.createElement("path", {
@@ -3781,16 +4943,25 @@ var IconTimesOctagon = forwardRef(function (_ref, ref) {
3781
4943
  });
3782
4944
  IconTimesOctagon.displayName = 'IconTimesOctagon';
3783
4945
 
3784
- var _excluded$23 = ["testId"];
4946
+ var _excluded$23 = ["testId", "size", "color", "style"];
3785
4947
  var IconTimes = forwardRef(function (_ref, ref) {
3786
4948
  var _ref$testId = _ref.testId,
3787
4949
  testId = _ref$testId === void 0 ? 'icon-times' : _ref$testId,
4950
+ size = _ref.size,
4951
+ color = _ref.color,
4952
+ style = _ref.style,
3788
4953
  props = _objectWithoutPropertiesLoose(_ref, _excluded$23);
4954
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4955
+ var styleProps = {
4956
+ size: !size && isInsideButton ? 'medium' : size,
4957
+ color: color,
4958
+ style: style
4959
+ };
3789
4960
  return React__default.createElement("svg", _extends({
3790
4961
  xmlns: "http://www.w3.org/2000/svg",
3791
4962
  fill: "none",
3792
4963
  viewBox: "0 0 20 20",
3793
- style: getIconStyles(props),
4964
+ style: getIconStyles(styleProps),
3794
4965
  "data-testid": testId,
3795
4966
  ref: ref
3796
4967
  }, props), React__default.createElement("path", {
@@ -3802,16 +4973,25 @@ var IconTimes = forwardRef(function (_ref, ref) {
3802
4973
  });
3803
4974
  IconTimes.displayName = 'IconTimes';
3804
4975
 
3805
- var _excluded$24 = ["testId"];
4976
+ var _excluded$24 = ["testId", "size", "color", "style"];
3806
4977
  var IconTrash = forwardRef(function (_ref, ref) {
3807
4978
  var _ref$testId = _ref.testId,
3808
4979
  testId = _ref$testId === void 0 ? 'icon-trash' : _ref$testId,
4980
+ size = _ref.size,
4981
+ color = _ref.color,
4982
+ style = _ref.style,
3809
4983
  props = _objectWithoutPropertiesLoose(_ref, _excluded$24);
4984
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
4985
+ var styleProps = {
4986
+ size: !size && isInsideButton ? 'medium' : size,
4987
+ color: color,
4988
+ style: style
4989
+ };
3810
4990
  return React__default.createElement("svg", _extends({
3811
4991
  xmlns: "http://www.w3.org/2000/svg",
3812
4992
  fill: "none",
3813
4993
  viewBox: "0 0 20 20",
3814
- style: getIconStyles(props),
4994
+ style: getIconStyles(styleProps),
3815
4995
  "data-testid": testId,
3816
4996
  ref: ref
3817
4997
  }, props), React__default.createElement("path", {
@@ -3823,16 +5003,25 @@ var IconTrash = forwardRef(function (_ref, ref) {
3823
5003
  });
3824
5004
  IconTrash.displayName = 'IconTrash';
3825
5005
 
3826
- var _excluded$25 = ["testId"];
5006
+ var _excluded$25 = ["testId", "size", "color", "style"];
3827
5007
  var IconUnderline = forwardRef(function (_ref, ref) {
3828
5008
  var _ref$testId = _ref.testId,
3829
5009
  testId = _ref$testId === void 0 ? 'icon-underline' : _ref$testId,
5010
+ size = _ref.size,
5011
+ color = _ref.color,
5012
+ style = _ref.style,
3830
5013
  props = _objectWithoutPropertiesLoose(_ref, _excluded$25);
5014
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5015
+ var styleProps = {
5016
+ size: !size && isInsideButton ? 'medium' : size,
5017
+ color: color,
5018
+ style: style
5019
+ };
3831
5020
  return React__default.createElement("svg", _extends({
3832
5021
  xmlns: "http://www.w3.org/2000/svg",
3833
5022
  fill: "none",
3834
5023
  viewBox: "0 0 20 20",
3835
- style: getIconStyles(props),
5024
+ style: getIconStyles(styleProps),
3836
5025
  "data-testid": testId,
3837
5026
  ref: ref
3838
5027
  }, props), React__default.createElement("path", {
@@ -3842,16 +5031,25 @@ var IconUnderline = forwardRef(function (_ref, ref) {
3842
5031
  });
3843
5032
  IconUnderline.displayName = 'IconUnderline';
3844
5033
 
3845
- var _excluded$26 = ["testId"];
5034
+ var _excluded$26 = ["testId", "size", "color", "style"];
3846
5035
  var IconUndo = forwardRef(function (_ref, ref) {
3847
5036
  var _ref$testId = _ref.testId,
3848
5037
  testId = _ref$testId === void 0 ? 'icon-undo' : _ref$testId,
5038
+ size = _ref.size,
5039
+ color = _ref.color,
5040
+ style = _ref.style,
3849
5041
  props = _objectWithoutPropertiesLoose(_ref, _excluded$26);
5042
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5043
+ var styleProps = {
5044
+ size: !size && isInsideButton ? 'medium' : size,
5045
+ color: color,
5046
+ style: style
5047
+ };
3850
5048
  return React__default.createElement("svg", _extends({
3851
5049
  xmlns: "http://www.w3.org/2000/svg",
3852
5050
  fill: "none",
3853
5051
  viewBox: "0 0 20 20",
3854
- style: getIconStyles(props),
5052
+ style: getIconStyles(styleProps),
3855
5053
  "data-testid": testId,
3856
5054
  ref: ref
3857
5055
  }, props), React__default.createElement("path", {
@@ -3861,16 +5059,25 @@ var IconUndo = forwardRef(function (_ref, ref) {
3861
5059
  });
3862
5060
  IconUndo.displayName = 'IconUndo';
3863
5061
 
3864
- var _excluded$27 = ["testId"];
5062
+ var _excluded$27 = ["testId", "size", "color", "style"];
3865
5063
  var IconUniversity = forwardRef(function (_ref, ref) {
3866
5064
  var _ref$testId = _ref.testId,
3867
5065
  testId = _ref$testId === void 0 ? 'icon-university' : _ref$testId,
5066
+ size = _ref.size,
5067
+ color = _ref.color,
5068
+ style = _ref.style,
3868
5069
  props = _objectWithoutPropertiesLoose(_ref, _excluded$27);
5070
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5071
+ var styleProps = {
5072
+ size: !size && isInsideButton ? 'medium' : size,
5073
+ color: color,
5074
+ style: style
5075
+ };
3869
5076
  return React__default.createElement("svg", _extends({
3870
5077
  xmlns: "http://www.w3.org/2000/svg",
3871
5078
  fill: "none",
3872
5079
  viewBox: "0 0 20 20",
3873
- style: getIconStyles(props),
5080
+ style: getIconStyles(styleProps),
3874
5081
  "data-testid": testId,
3875
5082
  ref: ref
3876
5083
  }, props), React__default.createElement("g", {
@@ -3887,16 +5094,25 @@ var IconUniversity = forwardRef(function (_ref, ref) {
3887
5094
  });
3888
5095
  IconUniversity.displayName = 'IconUniversity';
3889
5096
 
3890
- var _excluded$28 = ["testId"];
5097
+ var _excluded$28 = ["testId", "size", "color", "style"];
3891
5098
  var IconUnlock = forwardRef(function (_ref, ref) {
3892
5099
  var _ref$testId = _ref.testId,
3893
5100
  testId = _ref$testId === void 0 ? 'icon-unlock' : _ref$testId,
5101
+ size = _ref.size,
5102
+ color = _ref.color,
5103
+ style = _ref.style,
3894
5104
  props = _objectWithoutPropertiesLoose(_ref, _excluded$28);
5105
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5106
+ var styleProps = {
5107
+ size: !size && isInsideButton ? 'medium' : size,
5108
+ color: color,
5109
+ style: style
5110
+ };
3895
5111
  return React__default.createElement("svg", _extends({
3896
5112
  xmlns: "http://www.w3.org/2000/svg",
3897
5113
  fill: "none",
3898
5114
  viewBox: "0 0 20 20",
3899
- style: getIconStyles(props),
5115
+ style: getIconStyles(styleProps),
3900
5116
  "data-testid": testId,
3901
5117
  ref: ref
3902
5118
  }, props), React__default.createElement("g", {
@@ -3913,16 +5129,25 @@ var IconUnlock = forwardRef(function (_ref, ref) {
3913
5129
  });
3914
5130
  IconUnlock.displayName = 'IconUnlock';
3915
5131
 
3916
- var _excluded$29 = ["testId"];
5132
+ var _excluded$29 = ["testId", "size", "color", "style"];
3917
5133
  var IconUserComputer = forwardRef(function (_ref, ref) {
3918
5134
  var _ref$testId = _ref.testId,
3919
5135
  testId = _ref$testId === void 0 ? 'icon-user-computer' : _ref$testId,
5136
+ size = _ref.size,
5137
+ color = _ref.color,
5138
+ style = _ref.style,
3920
5139
  props = _objectWithoutPropertiesLoose(_ref, _excluded$29);
5140
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5141
+ var styleProps = {
5142
+ size: !size && isInsideButton ? 'medium' : size,
5143
+ color: color,
5144
+ style: style
5145
+ };
3921
5146
  return React__default.createElement("svg", _extends({
3922
5147
  xmlns: "http://www.w3.org/2000/svg",
3923
5148
  fill: "none",
3924
5149
  viewBox: "0 0 20 20",
3925
- style: getIconStyles(props),
5150
+ style: getIconStyles(styleProps),
3926
5151
  "data-testid": testId,
3927
5152
  ref: ref
3928
5153
  }, props), React__default.createElement("path", {
@@ -3943,16 +5168,25 @@ var IconUserComputer = forwardRef(function (_ref, ref) {
3943
5168
  });
3944
5169
  IconUserComputer.displayName = 'IconUserComputer';
3945
5170
 
3946
- var _excluded$2a = ["testId"];
5171
+ var _excluded$2a = ["testId", "size", "color", "style"];
3947
5172
  var IconUserFriends = forwardRef(function (_ref, ref) {
3948
5173
  var _ref$testId = _ref.testId,
3949
5174
  testId = _ref$testId === void 0 ? 'icon-user-friends' : _ref$testId,
5175
+ size = _ref.size,
5176
+ color = _ref.color,
5177
+ style = _ref.style,
3950
5178
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2a);
5179
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5180
+ var styleProps = {
5181
+ size: !size && isInsideButton ? 'medium' : size,
5182
+ color: color,
5183
+ style: style
5184
+ };
3951
5185
  return React__default.createElement("svg", _extends({
3952
5186
  xmlns: "http://www.w3.org/2000/svg",
3953
5187
  fill: "none",
3954
5188
  viewBox: "0 0 20 20",
3955
- style: getIconStyles(props),
5189
+ style: getIconStyles(styleProps),
3956
5190
  "data-testid": testId,
3957
5191
  ref: ref
3958
5192
  }, props), React__default.createElement("path", {
@@ -3962,16 +5196,25 @@ var IconUserFriends = forwardRef(function (_ref, ref) {
3962
5196
  });
3963
5197
  IconUserFriends.displayName = 'IconUserFriends';
3964
5198
 
3965
- var _excluded$2b = ["testId"];
5199
+ var _excluded$2b = ["testId", "size", "color", "style"];
3966
5200
  var IconUserLight = forwardRef(function (_ref, ref) {
3967
5201
  var _ref$testId = _ref.testId,
3968
5202
  testId = _ref$testId === void 0 ? 'icon-user-light' : _ref$testId,
5203
+ size = _ref.size,
5204
+ color = _ref.color,
5205
+ style = _ref.style,
3969
5206
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2b);
5207
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5208
+ var styleProps = {
5209
+ size: !size && isInsideButton ? 'medium' : size,
5210
+ color: color,
5211
+ style: style
5212
+ };
3970
5213
  return React__default.createElement("svg", _extends({
3971
5214
  xmlns: "http://www.w3.org/2000/svg",
3972
5215
  fill: "none",
3973
5216
  viewBox: "0 0 20 20",
3974
- style: getIconStyles(props),
5217
+ style: getIconStyles(styleProps),
3975
5218
  "data-testid": testId,
3976
5219
  ref: ref
3977
5220
  }, props), React__default.createElement("path", {
@@ -3983,16 +5226,25 @@ var IconUserLight = forwardRef(function (_ref, ref) {
3983
5226
  });
3984
5227
  IconUserLight.displayName = 'IconUserLight';
3985
5228
 
3986
- var _excluded$2c = ["testId"];
5229
+ var _excluded$2c = ["testId", "size", "color", "style"];
3987
5230
  var IconUserPlus = forwardRef(function (_ref, ref) {
3988
5231
  var _ref$testId = _ref.testId,
3989
5232
  testId = _ref$testId === void 0 ? 'icon-user-plus' : _ref$testId,
5233
+ size = _ref.size,
5234
+ color = _ref.color,
5235
+ style = _ref.style,
3990
5236
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2c);
5237
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5238
+ var styleProps = {
5239
+ size: !size && isInsideButton ? 'medium' : size,
5240
+ color: color,
5241
+ style: style
5242
+ };
3991
5243
  return React__default.createElement("svg", _extends({
3992
5244
  xmlns: "http://www.w3.org/2000/svg",
3993
5245
  fill: "none",
3994
5246
  viewBox: "0 0 20 20",
3995
- style: getIconStyles(props),
5247
+ style: getIconStyles(styleProps),
3996
5248
  "data-testid": testId,
3997
5249
  ref: ref
3998
5250
  }, props), React__default.createElement("path", {
@@ -4002,16 +5254,25 @@ var IconUserPlus = forwardRef(function (_ref, ref) {
4002
5254
  });
4003
5255
  IconUserPlus.displayName = 'IconUserPlus';
4004
5256
 
4005
- var _excluded$2d = ["testId"];
5257
+ var _excluded$2d = ["testId", "size", "color", "style"];
4006
5258
  var IconUserSearch = forwardRef(function (_ref, ref) {
4007
5259
  var _ref$testId = _ref.testId,
4008
5260
  testId = _ref$testId === void 0 ? 'icon-user-search' : _ref$testId,
5261
+ size = _ref.size,
5262
+ color = _ref.color,
5263
+ style = _ref.style,
4009
5264
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2d);
5265
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5266
+ var styleProps = {
5267
+ size: !size && isInsideButton ? 'medium' : size,
5268
+ color: color,
5269
+ style: style
5270
+ };
4010
5271
  return React__default.createElement("svg", _extends({
4011
5272
  xmlns: "http://www.w3.org/2000/svg",
4012
5273
  fill: "none",
4013
5274
  viewBox: "0 0 20 20",
4014
- style: getIconStyles(props),
5275
+ style: getIconStyles(styleProps),
4015
5276
  "data-testid": testId,
4016
5277
  ref: ref
4017
5278
  }, props), React__default.createElement("g", {
@@ -4030,16 +5291,25 @@ var IconUserSearch = forwardRef(function (_ref, ref) {
4030
5291
  });
4031
5292
  IconUserSearch.displayName = 'IconUserSearch';
4032
5293
 
4033
- var _excluded$2e = ["testId"];
5294
+ var _excluded$2e = ["testId", "size", "color", "style"];
4034
5295
  var IconUserSlash = forwardRef(function (_ref, ref) {
4035
5296
  var _ref$testId = _ref.testId,
4036
5297
  testId = _ref$testId === void 0 ? 'icon-user-slash' : _ref$testId,
5298
+ size = _ref.size,
5299
+ color = _ref.color,
5300
+ style = _ref.style,
4037
5301
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2e);
5302
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5303
+ var styleProps = {
5304
+ size: !size && isInsideButton ? 'medium' : size,
5305
+ color: color,
5306
+ style: style
5307
+ };
4038
5308
  return React__default.createElement("svg", _extends({
4039
5309
  xmlns: "http://www.w3.org/2000/svg",
4040
5310
  fill: "none",
4041
5311
  viewBox: "0 0 20 20",
4042
- style: getIconStyles(props),
5312
+ style: getIconStyles(styleProps),
4043
5313
  "data-testid": testId,
4044
5314
  ref: ref
4045
5315
  }, props), React__default.createElement("g", {
@@ -4056,16 +5326,25 @@ var IconUserSlash = forwardRef(function (_ref, ref) {
4056
5326
  });
4057
5327
  IconUserSlash.displayName = 'IconUserSlash';
4058
5328
 
4059
- var _excluded$2f = ["testId"];
5329
+ var _excluded$2f = ["testId", "size", "color", "style"];
4060
5330
  var IconUserSolid = forwardRef(function (_ref, ref) {
4061
5331
  var _ref$testId = _ref.testId,
4062
5332
  testId = _ref$testId === void 0 ? 'icon-user-solid' : _ref$testId,
5333
+ size = _ref.size,
5334
+ color = _ref.color,
5335
+ style = _ref.style,
4063
5336
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2f);
5337
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5338
+ var styleProps = {
5339
+ size: !size && isInsideButton ? 'medium' : size,
5340
+ color: color,
5341
+ style: style
5342
+ };
4064
5343
  return React__default.createElement("svg", _extends({
4065
5344
  xmlns: "http://www.w3.org/2000/svg",
4066
5345
  fill: "none",
4067
5346
  viewBox: "0 0 20 20",
4068
- style: getIconStyles(props),
5347
+ style: getIconStyles(styleProps),
4069
5348
  "data-testid": testId,
4070
5349
  ref: ref
4071
5350
  }, props), React__default.createElement("path", {
@@ -4075,16 +5354,25 @@ var IconUserSolid = forwardRef(function (_ref, ref) {
4075
5354
  });
4076
5355
  IconUserSolid.displayName = 'IconUserSolid';
4077
5356
 
4078
- var _excluded$2g = ["testId"];
5357
+ var _excluded$2g = ["testId", "size", "color", "style"];
4079
5358
  var IconUserTag = forwardRef(function (_ref, ref) {
4080
5359
  var _ref$testId = _ref.testId,
4081
5360
  testId = _ref$testId === void 0 ? 'icon-user-tag' : _ref$testId,
5361
+ size = _ref.size,
5362
+ color = _ref.color,
5363
+ style = _ref.style,
4082
5364
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2g);
5365
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5366
+ var styleProps = {
5367
+ size: !size && isInsideButton ? 'medium' : size,
5368
+ color: color,
5369
+ style: style
5370
+ };
4083
5371
  return React__default.createElement("svg", _extends({
4084
5372
  xmlns: "http://www.w3.org/2000/svg",
4085
5373
  fill: "none",
4086
5374
  viewBox: "0 0 20 20",
4087
- style: getIconStyles(props),
5375
+ style: getIconStyles(styleProps),
4088
5376
  "data-testid": testId,
4089
5377
  ref: ref
4090
5378
  }, props), React__default.createElement("path", {
@@ -4096,16 +5384,25 @@ var IconUserTag = forwardRef(function (_ref, ref) {
4096
5384
  });
4097
5385
  IconUserTag.displayName = 'IconUserTag';
4098
5386
 
4099
- var _excluded$2h = ["testId"];
5387
+ var _excluded$2h = ["testId", "size", "color", "style"];
4100
5388
  var IconUserTie = forwardRef(function (_ref, ref) {
4101
5389
  var _ref$testId = _ref.testId,
4102
5390
  testId = _ref$testId === void 0 ? 'icon-user-tie' : _ref$testId,
5391
+ size = _ref.size,
5392
+ color = _ref.color,
5393
+ style = _ref.style,
4103
5394
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2h);
5395
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5396
+ var styleProps = {
5397
+ size: !size && isInsideButton ? 'medium' : size,
5398
+ color: color,
5399
+ style: style
5400
+ };
4104
5401
  return React__default.createElement("svg", _extends({
4105
5402
  xmlns: "http://www.w3.org/2000/svg",
4106
5403
  fill: "none",
4107
5404
  viewBox: "0 0 20 20",
4108
- style: getIconStyles(props),
5405
+ style: getIconStyles(styleProps),
4109
5406
  "data-testid": testId,
4110
5407
  ref: ref
4111
5408
  }, props), React__default.createElement("path", {
@@ -4115,16 +5412,25 @@ var IconUserTie = forwardRef(function (_ref, ref) {
4115
5412
  });
4116
5413
  IconUserTie.displayName = 'IconUserTie';
4117
5414
 
4118
- var _excluded$2i = ["testId"];
5415
+ var _excluded$2i = ["testId", "size", "color", "style"];
4119
5416
  var IconUsers = forwardRef(function (_ref, ref) {
4120
5417
  var _ref$testId = _ref.testId,
4121
5418
  testId = _ref$testId === void 0 ? 'icon-users' : _ref$testId,
5419
+ size = _ref.size,
5420
+ color = _ref.color,
5421
+ style = _ref.style,
4122
5422
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2i);
5423
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5424
+ var styleProps = {
5425
+ size: !size && isInsideButton ? 'medium' : size,
5426
+ color: color,
5427
+ style: style
5428
+ };
4123
5429
  return React__default.createElement("svg", _extends({
4124
5430
  xmlns: "http://www.w3.org/2000/svg",
4125
5431
  fill: "none",
4126
5432
  viewBox: "0 0 20 20",
4127
- style: getIconStyles(props),
5433
+ style: getIconStyles(styleProps),
4128
5434
  "data-testid": testId,
4129
5435
  ref: ref
4130
5436
  }, props), React__default.createElement("path", {
@@ -4134,16 +5440,25 @@ var IconUsers = forwardRef(function (_ref, ref) {
4134
5440
  });
4135
5441
  IconUsers.displayName = 'IconUsers';
4136
5442
 
4137
- var _excluded$2j = ["testId"];
5443
+ var _excluded$2j = ["testId", "size", "color", "style"];
4138
5444
  var IconVideo = forwardRef(function (_ref, ref) {
4139
5445
  var _ref$testId = _ref.testId,
4140
5446
  testId = _ref$testId === void 0 ? 'icon-video' : _ref$testId,
5447
+ size = _ref.size,
5448
+ color = _ref.color,
5449
+ style = _ref.style,
4141
5450
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2j);
5451
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5452
+ var styleProps = {
5453
+ size: !size && isInsideButton ? 'medium' : size,
5454
+ color: color,
5455
+ style: style
5456
+ };
4142
5457
  return React__default.createElement("svg", _extends({
4143
5458
  xmlns: "http://www.w3.org/2000/svg",
4144
5459
  fill: "none",
4145
5460
  viewBox: "0 0 20 20",
4146
- style: getIconStyles(props),
5461
+ style: getIconStyles(styleProps),
4147
5462
  "data-testid": testId,
4148
5463
  ref: ref
4149
5464
  }, props), React__default.createElement("path", {
@@ -4153,16 +5468,25 @@ var IconVideo = forwardRef(function (_ref, ref) {
4153
5468
  });
4154
5469
  IconVideo.displayName = 'IconVideo';
4155
5470
 
4156
- var _excluded$2k = ["testId"];
5471
+ var _excluded$2k = ["testId", "size", "color", "style"];
4157
5472
  var IconVolumeMute = forwardRef(function (_ref, ref) {
4158
5473
  var _ref$testId = _ref.testId,
4159
5474
  testId = _ref$testId === void 0 ? 'icon-volume-mute' : _ref$testId,
5475
+ size = _ref.size,
5476
+ color = _ref.color,
5477
+ style = _ref.style,
4160
5478
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2k);
5479
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5480
+ var styleProps = {
5481
+ size: !size && isInsideButton ? 'medium' : size,
5482
+ color: color,
5483
+ style: style
5484
+ };
4161
5485
  return React__default.createElement("svg", _extends({
4162
5486
  xmlns: "http://www.w3.org/2000/svg",
4163
5487
  fill: "none",
4164
5488
  viewBox: "0 0 20 20",
4165
- style: getIconStyles(props),
5489
+ style: getIconStyles(styleProps),
4166
5490
  "data-testid": testId,
4167
5491
  ref: ref
4168
5492
  }, props), React__default.createElement("path", {
@@ -4172,16 +5496,25 @@ var IconVolumeMute = forwardRef(function (_ref, ref) {
4172
5496
  });
4173
5497
  IconVolumeMute.displayName = 'IconVolumeMute';
4174
5498
 
4175
- var _excluded$2l = ["testId"];
5499
+ var _excluded$2l = ["testId", "size", "color", "style"];
4176
5500
  var IconVolume = forwardRef(function (_ref, ref) {
4177
5501
  var _ref$testId = _ref.testId,
4178
5502
  testId = _ref$testId === void 0 ? 'icon-volume' : _ref$testId,
5503
+ size = _ref.size,
5504
+ color = _ref.color,
5505
+ style = _ref.style,
4179
5506
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2l);
5507
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5508
+ var styleProps = {
5509
+ size: !size && isInsideButton ? 'medium' : size,
5510
+ color: color,
5511
+ style: style
5512
+ };
4180
5513
  return React__default.createElement("svg", _extends({
4181
5514
  xmlns: "http://www.w3.org/2000/svg",
4182
5515
  fill: "none",
4183
5516
  viewBox: "0 0 20 20",
4184
- style: getIconStyles(props),
5517
+ style: getIconStyles(styleProps),
4185
5518
  "data-testid": testId,
4186
5519
  ref: ref
4187
5520
  }, props), React__default.createElement("path", {
@@ -4191,16 +5524,25 @@ var IconVolume = forwardRef(function (_ref, ref) {
4191
5524
  });
4192
5525
  IconVolume.displayName = 'IconVolume';
4193
5526
 
4194
- var _excluded$2m = ["testId"];
5527
+ var _excluded$2m = ["testId", "size", "color", "style"];
4195
5528
  var IconWrench = forwardRef(function (_ref, ref) {
4196
5529
  var _ref$testId = _ref.testId,
4197
5530
  testId = _ref$testId === void 0 ? 'icon-wrench' : _ref$testId,
5531
+ size = _ref.size,
5532
+ color = _ref.color,
5533
+ style = _ref.style,
4198
5534
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2m);
5535
+ var isInsideButton = useIsInsideComponent(COMPONENT_NAMES.BUTTON);
5536
+ var styleProps = {
5537
+ size: !size && isInsideButton ? 'medium' : size,
5538
+ color: color,
5539
+ style: style
5540
+ };
4199
5541
  return React__default.createElement("svg", _extends({
4200
5542
  xmlns: "http://www.w3.org/2000/svg",
4201
5543
  fill: "none",
4202
5544
  viewBox: "0 0 20 20",
4203
- style: getIconStyles(props),
5545
+ style: getIconStyles(styleProps),
4204
5546
  "data-testid": testId,
4205
5547
  ref: ref
4206
5548
  }, props), React__default.createElement("path", {
@@ -4372,7 +5714,7 @@ var PaginationControls$1 = function PaginationControls(_ref) {
4372
5714
  return React__default.createElement("div", _extends({}, dataProps, {
4373
5715
  className: styles$6['pagination-controls'],
4374
5716
  "data-testid": testId
4375
- }), React__default.createElement(Button$1, {
5717
+ }), React__default.createElement(Button, {
4376
5718
  disabled: !hasPrevious,
4377
5719
  onClick: handlePreviousClick,
4378
5720
  title: React__default.createElement(React__default.Fragment, null, capitalizeFirstLetter(__('previousButton')), "\xA0\xA0", React__default.createElement(KeyboardKey, {
@@ -4380,7 +5722,7 @@ var PaginationControls$1 = function PaginationControls(_ref) {
4380
5722
  }, SHORTCUTS.PREVIOUS.toLocaleUpperCase()))
4381
5723
  }, React__default.createElement(IconArrowLeft, {
4382
5724
  size: "small"
4383
- })), React__default.createElement(Button$1, {
5725
+ })), React__default.createElement(Button, {
4384
5726
  disabled: !hasNext,
4385
5727
  onClick: handleNextClick,
4386
5728
  title: React__default.createElement(React__default.Fragment, null, capitalizeFirstLetter(__('nextButton')), "\xA0\xA0", React__default.createElement(KeyboardKey, {
@@ -4446,7 +5788,7 @@ var toast = function toast(text, theme, options) {
4446
5788
  };
4447
5789
  var CloseButton = function CloseButton(_ref) {
4448
5790
  var closeToast = _ref.closeToast;
4449
- return React__default.createElement(Button$1, {
5791
+ return React__default.createElement(Button, {
4450
5792
  theme: "link-contrast",
4451
5793
  onClick: closeToast
4452
5794
  }, React__default.createElement(IconTimes, null));
@@ -4682,7 +6024,7 @@ var ButtonCTA = function ButtonCTA(_ref) {
4682
6024
  bannerTheme = _ref.bannerTheme,
4683
6025
  _ref$primaryCTA = _ref.primaryCTA,
4684
6026
  primaryCTA = _ref$primaryCTA === void 0 ? false : _ref$primaryCTA;
4685
- if (button.type !== Button$1 || button.props.theme) {
6027
+ if (button.type !== Button || button.props.theme) {
4686
6028
  return button;
4687
6029
  }
4688
6030
  if (bannerTheme === BANNER_THEME.UPSELL && primaryCTA) {
@@ -4793,7 +6135,7 @@ var InlineBanner = function InlineBanner(_ref) {
4793
6135
  bannerTheme: theme
4794
6136
  })), dismissable && React__default.createElement("div", {
4795
6137
  className: styles$d['banner__close']
4796
- }, React__default.createElement(Button$1, {
6138
+ }, React__default.createElement(Button, {
4797
6139
  theme: "link-icon",
4798
6140
  type: "button",
4799
6141
  onClick: onClose
@@ -5016,7 +6358,7 @@ var Label = function Label(_ref) {
5016
6358
  className: classnames(styles$h['label'], (_classNames = {}, _classNames[styles$h['label--truncate']] = shouldTruncate, _classNames))
5017
6359
  }, children);
5018
6360
  if (showTooltip) {
5019
- return React__default.createElement(Tooltip$1, {
6361
+ return React__default.createElement(Tooltip, {
5020
6362
  overlay: children,
5021
6363
  placement: "top"
5022
6364
  }, LabelElement);
@@ -5451,7 +6793,7 @@ var Dropdown = function Dropdown(_ref) {
5451
6793
  }
5452
6794
  };
5453
6795
  var getRef = function getRef() {
5454
- if ((trigger.type === Button$1 || trigger.type === TimeFieldDropdownTrigger) && trigger.ref) {
6796
+ if ((trigger.type === Button || trigger.type === TimeFieldDropdownTrigger) && trigger.ref) {
5455
6797
  return trigger.ref;
5456
6798
  }
5457
6799
  return triggerRef;
@@ -5475,7 +6817,7 @@ var Dropdown = function Dropdown(_ref) {
5475
6817
  triggerRef: updatedRef,
5476
6818
  paneRef: paneRef
5477
6819
  }
5478
- }, trigger.type === Button$1 || trigger.type === 'button' || trigger.type === TimeFieldDropdownTrigger ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
6820
+ }, trigger.type === Button || trigger.type === 'button' || trigger.type === TimeFieldDropdownTrigger ? React__default.cloneElement(trigger, _extends({}, trigger.props, triggerProps)) : React__default.createElement("button", _extends({}, triggerProps, {
5479
6821
  className: styles$g['dropdown__trigger'],
5480
6822
  ref: updatedRef,
5481
6823
  onFocus: handleFocus
@@ -5830,7 +7172,7 @@ var DropdownList = function DropdownList(_ref) {
5830
7172
  var KebabMenu = function KebabMenu(_ref) {
5831
7173
  var actions = _ref.actions;
5832
7174
  return React__default.createElement(Dropdown, {
5833
- trigger: React__default.createElement(Button$1, {
7175
+ trigger: React__default.createElement(Button, {
5834
7176
  theme: "link-icon"
5835
7177
  }, React__default.createElement(IconEllipsisV, null)),
5836
7178
  alignment: "right"
@@ -5916,7 +7258,7 @@ var CalloutCard = function CalloutCard(_ref) {
5916
7258
  width: "354px"
5917
7259
  })), onClose && React__default.createElement("div", {
5918
7260
  className: styles$r['callout-card__close']
5919
- }, React__default.createElement(Button$1, {
7261
+ }, React__default.createElement(Button, {
5920
7262
  theme: "link-icon",
5921
7263
  onClick: onClose
5922
7264
  }, React__default.createElement(IconTimes, null)))));
@@ -6061,7 +7403,7 @@ var PersistentBanner = function PersistentBanner(_ref) {
6061
7403
  }, onDismiss ? React__default.createElement(Inline, {
6062
7404
  flex: [1],
6063
7405
  alignItems: "center"
6064
- }, React__default.createElement(BannerContent, null), React__default.createElement(Button$1, {
7406
+ }, React__default.createElement(BannerContent, null), React__default.createElement(Button, {
6065
7407
  theme: "link-contrast",
6066
7408
  onClick: onDismiss
6067
7409
  }, React__default.createElement(IconTimes, null))) : React__default.createElement(BannerContent, null));
@@ -6234,7 +7576,7 @@ var ModalHeader = function ModalHeader(_ref) {
6234
7576
  if (!header && !subHeader) {
6235
7577
  return onClose ? React__default.createElement("div", {
6236
7578
  className: styles$D['header__close-button']
6237
- }, React__default.createElement(Button$1, {
7579
+ }, React__default.createElement(Button, {
6238
7580
  theme: "link-icon",
6239
7581
  onClick: onClose,
6240
7582
  disabled: loading
@@ -6250,7 +7592,7 @@ var ModalHeader = function ModalHeader(_ref) {
6250
7592
  alignItems: "center"
6251
7593
  }, React__default.createElement("span", {
6252
7594
  className: styles$D['header']
6253
- }, header), onClose && React__default.createElement(Button$1, {
7595
+ }, header), onClose && React__default.createElement(Button, {
6254
7596
  theme: "link-icon",
6255
7597
  onClick: onClose,
6256
7598
  disabled: loading
@@ -6381,7 +7723,7 @@ var updateButtonProps = function updateButtonProps(button, newProps) {
6381
7723
  if (!button) {
6382
7724
  return null;
6383
7725
  }
6384
- if (button.type !== Button$1) {
7726
+ if (button.type !== Button) {
6385
7727
  return button;
6386
7728
  }
6387
7729
  return React__default.cloneElement(button, _extends({}, newProps));
@@ -6822,7 +8164,7 @@ var HintModal$1 = function HintModal(_ref) {
6822
8164
  overlayClassName: styles$I['hint-modal__overlay']
6823
8165
  }, React__default.createElement("div", {
6824
8166
  className: styles$I['hint-modal__close-button']
6825
- }, React__default.createElement(Button$1, {
8167
+ }, React__default.createElement(Button, {
6826
8168
  theme: "link-icon",
6827
8169
  onClick: handleOnClose
6828
8170
  }, React__default.createElement(IconTimes, null))), mediaUrl && React__default.createElement("img", {
@@ -6884,7 +8226,7 @@ var DataTableCellElement = function DataTableCellElement(_ref, ref) {
6884
8226
  }, React__default.createElement("div", {
6885
8227
  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))
6886
8228
  }, isRightAligned && icon, children, !isRightAligned && icon));
6887
- return React__default.createElement(Tooltip$1, {
8229
+ return React__default.createElement(Tooltip, {
6888
8230
  overlay: errorMessage,
6889
8231
  delayOnClose: delayOnCloseError,
6890
8232
  placement: "top",
@@ -6912,7 +8254,7 @@ var DataTableRowActions = function DataTableRowActions(_ref) {
6912
8254
  }, state === 'SKELETON_LOADING' && React__default.createElement(Skeleton, {
6913
8255
  width: 45
6914
8256
  }), sideActions.length > 0 && sideActions.map(function (action) {
6915
- return React__default.createElement(Button$1, _extends({
8257
+ return React__default.createElement(Button, _extends({
6916
8258
  key: action.action,
6917
8259
  onClick: action.onAction,
6918
8260
  theme: typeof action.label === 'string' ? 'default' : 'link-icon'
@@ -6994,7 +8336,7 @@ var DataTableEditableCellElement = function DataTableEditableCellElement(_ref, r
6994
8336
  e.target.blur();
6995
8337
  }
6996
8338
  }))));
6997
- return React__default.createElement(Tooltip$1, {
8339
+ return React__default.createElement(Tooltip, {
6998
8340
  overlay: errorMessage,
6999
8341
  placement: "top",
7000
8342
  theme: "white"
@@ -7117,6 +8459,9 @@ var styles$K = {"data-table-sticky-columns-container":"_3oL6K","data-table-stick
7117
8459
 
7118
8460
  var useDataTableScrollState = function useDataTableScrollState(stickyColumns) {
7119
8461
  var scrollContainerRef = useRef(null);
8462
+ var _useDataTableContext = useDataTableContext(),
8463
+ columns = _useDataTableContext.columns,
8464
+ numberOfRows = _useDataTableContext.numberOfRows;
7120
8465
  var _useState = useState(DATA_TABLE_SCROLL_STATES.NO_SCROLL),
7121
8466
  scrollState = _useState[0],
7122
8467
  setScrollState = _useState[1];
@@ -7134,7 +8479,7 @@ var useDataTableScrollState = function useDataTableScrollState(stickyColumns) {
7134
8479
  };
7135
8480
  useLayoutEffect(function () {
7136
8481
  onScroll();
7137
- }, []);
8482
+ }, [columns === null || columns === void 0 ? void 0 : columns.length, numberOfRows]);
7138
8483
  var hasScrollOnLeft = scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_LEFT || scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_BOTH_SIDES;
7139
8484
  var hasScrollOnRight = scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_RIGHT || scrollState === DATA_TABLE_SCROLL_STATES.SCROLLABLE_CONTENT_ON_BOTH_SIDES;
7140
8485
  var hasRightColumnSticky = stickyColumns === 'right' || stickyColumns === 'both';
@@ -7627,7 +8972,7 @@ function CustomMenu(_ref) {
7627
8972
  var CreatableButton = function CreatableButton() {
7628
8973
  var button = creatableButton;
7629
8974
  if (!button || typeof button === 'string') {
7630
- return React__default.createElement(Button$1, {
8975
+ return React__default.createElement(Button, {
7631
8976
  theme: "link-primary",
7632
8977
  onClick: function onClick() {
7633
8978
  if (props.selectProps.inputValue) {
@@ -7702,7 +9047,7 @@ function CustomMenu(_ref) {
7702
9047
  "data-testid": "select-create-option-input",
7703
9048
  autoFocus: true,
7704
9049
  defaultValue: inputDefaultValue
7705
- }), React__default.createElement(Button$1, {
9050
+ }), React__default.createElement(Button, {
7706
9051
  onClick: onCreateButton,
7707
9052
  onKeyDown: function onKeyDown(e) {
7708
9053
  e.stopPropagation();
@@ -8092,7 +9437,7 @@ var updateButtonProps$1 = function updateButtonProps(child, newProps) {
8092
9437
  if (!child) {
8093
9438
  return null;
8094
9439
  }
8095
- if (child.type !== Button$1) {
9440
+ if (child.type !== Button) {
8096
9441
  return child;
8097
9442
  }
8098
9443
  return React__default.cloneElement(child, _extends({
@@ -9407,7 +10752,7 @@ var FromDate = function FromDate(_ref) {
9407
10752
  }));
9408
10753
  };
9409
10754
 
9410
- var ToDate = function ToDate(_ref, ref) {
10755
+ var ToDateElement = function ToDateElement(_ref, ref) {
9411
10756
  var name = _ref.name,
9412
10757
  format = _ref.format,
9413
10758
  disabledDays = _ref.disabledDays,
@@ -9462,7 +10807,7 @@ var ToDate = function ToDate(_ref, ref) {
9462
10807
  mode: "end-date"
9463
10808
  }));
9464
10809
  };
9465
- var ToDate$1 = forwardRef(ToDate);
10810
+ var ToDate = forwardRef(ToDateElement);
9466
10811
 
9467
10812
  var DateRangeField = function DateRangeField(_ref) {
9468
10813
  var _classnames, _disabledDays$start, _disabledDays$end;
@@ -9537,7 +10882,7 @@ var DateRangeField = function DateRangeField(_ref) {
9537
10882
  }), React__default.createElement(IconArrowRight, {
9538
10883
  size: "medium",
9539
10884
  color: "grey-400"
9540
- }), React__default.createElement(ToDate$1, {
10885
+ }), React__default.createElement(ToDate, {
9541
10886
  name: name,
9542
10887
  format: format,
9543
10888
  start: start,
@@ -11104,7 +12449,7 @@ var PhoneField = function PhoneField(_ref) {
11104
12449
  var styles$17 = {"badge":"_1QLaK","badge--warning":"_qsFWw","badge--danger":"_359Cc","badge--success":"_2AOEK","badge--info":"_1mLjf"};
11105
12450
 
11106
12451
  var _excluded$2L = ["children", "theme", "title", "testId"];
11107
- var Badge = function Badge(_ref, forwardedRef) {
12452
+ var BadgeElement = function BadgeElement(_ref, forwardedRef) {
11108
12453
  var _classnames;
11109
12454
  var children = _ref.children,
11110
12455
  theme = _ref.theme,
@@ -11118,7 +12463,7 @@ var Badge = function Badge(_ref, forwardedRef) {
11118
12463
  ref.current.style.height = ref.current.offsetWidth + 'px';
11119
12464
  }
11120
12465
  });
11121
- return React__default.createElement(Tooltip$1, {
12466
+ return React__default.createElement(Tooltip, {
11122
12467
  overlay: title,
11123
12468
  ref: ref
11124
12469
  }, React__default.createElement("div", _extends({
@@ -11127,7 +12472,7 @@ var Badge = function Badge(_ref, forwardedRef) {
11127
12472
  "data-testid": testId
11128
12473
  }, otherProps), children));
11129
12474
  };
11130
- var Badge$1 = forwardRef(Badge);
12475
+ var Badge = forwardRef(BadgeElement);
11131
12476
 
11132
12477
  var styles$18 = {"avatar":"_1X7La","avatar--small":"_o5x6S","avatar__badge":"_NN8-D","avatar--medium":"_VxW5y","avatar--large":"_ec7jQ","avatar--extra-large":"_3VS00"};
11133
12478
 
@@ -11465,5 +12810,5 @@ var EmptyState = function EmptyState(_ref) {
11465
12810
  }, children);
11466
12811
  };
11467
12812
 
11468
- export { AsyncSelectField$1 as AsyncSelectField, Avatar, Badge$1 as Badge, Bold, BreadcrumbItem, Breadcrumbs, Button$1 as Button, COLORS, Calendar$1 as Calendar, CalloutCard, Card, CheckboxField, Chip, CircularProgress, CurrencyField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateFilter, DateRangeField, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HintModal$1 as HintModal, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircleIncomplete, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboardList, IconClock, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHandshake, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMegaphone, IconMessages, IconMinus, IconMinusCircle, IconMoneyBill, IconMugSaucerSolid, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTable, IconTachometer, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUserComputer, IconUserFriends, IconUserLight, IconUserPlus, IconUserSearch, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, InlineBanner, Italic, Link, Modal, ModalBody, ModalFooter, MultiSelectField, Page, PaginationControls$1 as PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, ProgressBar, RadioGroupBoxOption, RadioGroupField, RadioGroupOption, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SegmentedControl, SelectField$1 as SelectField, Skeleton, SousChefProvider, Spinner, Stack, Text, TextAreaField, TextField, TimeField, TimeRangeField, Toggle, ToolbarSelect, Tooltip$1 as Tooltip, Underline, WeekField, ZINDEX, toast, useDataTableContext };
12813
+ export { AsyncSelectField$1 as AsyncSelectField, Avatar, Badge, Bold, BreadcrumbItem, Breadcrumbs, Button, COLORS, Calendar$1 as Calendar, CalloutCard, Card, CheckboxField, Chip, CircularProgress, CurrencyField, DataTable, DataTableCell, DataTableEditableCell, DataTableRow, DateField, DateFilter, DateRangeField, Dropdown, DropdownList, DropdownListDivider, DropdownListItem, EmptyState, Form, FormFeedback, FormFooter, FormRow, FormSection, HintModal$1 as HintModal, IconAnalytics, IconArrowDown, IconArrowDownWideShort, IconArrowLeft, IconArrowRight, IconArrowToTop, IconArrowTurnDownRight, IconArrowUp, IconAward, IconAwful, IconAwfulMonochromatic, IconBad, IconBadMonochromatic, IconBalanceScale, IconBalanceScaleLeft, IconBan, IconBarsH, IconBarsV, IconBell, IconBirthdayCake, IconBold, IconBolt, IconBook, IconBriefcase, IconBullseyeArrow, IconCalculator, IconCalendar, IconCalendarAlt, IconCalendarCheck, IconCalendarDay, IconCalendarExclamation, IconCalendarStar, IconCalendarTomorrow, IconCamera, IconCameraSlash, IconCashRegister, IconChartBar, IconCheck, IconCheckCircleIncomplete, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconClipboardList, IconClock, IconCog, IconComment, IconCommentLines, IconCopy, IconCreditCard, IconCreditCardPlus, IconDecent, IconDecentMonochromatic, IconDownload, IconEdit, IconEllipsisV, IconEnvelope, IconEnvelopeOpenDollar, IconExclaimation, IconExclaimationTriangle, IconExpand, IconExternalLink, IconEye, IconEyeSlash, IconFile, IconFilePdf, IconFlag, IconFourDotsCircle, IconFourSquares, IconGavel, IconGif, IconGift, IconGood, IconGoodMonochromatic, IconGreat, IconGreatMonochromatic, IconGrinBeam, IconGripVertical, IconHandshake, IconImage, IconInfoCircle, IconIslandTropical, IconItalic, IconLaptopSearch, IconLink, IconList, IconListOI as IconListOi, IconLock, IconMagicSolid, IconMapMarker, IconMegaphone, IconMessages, IconMinus, IconMinusCircle, IconMoneyBill, IconMugSaucerSolid, IconNotesMedical, IconOvertime, IconPaperPlane, IconPaperPlaneClock, IconPaperclip, IconPencil, IconPercentage, IconPhone, IconPlug, IconPlus, IconPrint, IconQuestionCircle, IconRepeat, IconReply, IconRocket, IconSearch, IconSignOut, IconSitemap, IconSlidersH, IconSort, IconStar, IconStarSolid, IconStickyNoteLines, IconStopwatch, IconStrikethrough, IconSync, IconSyncExclaimation, IconTable, IconTachometer, IconTimes, IconTimesOctagon, IconTrash, IconUnderline, IconUndo, IconUniversity, IconUnlock, IconUserComputer, IconUserFriends, IconUserLight, IconUserPlus, IconUserSearch, IconUserSlash, IconUserSolid, IconUserTag, IconUserTie, IconUsers, IconVideo, IconVolume, IconVolumeMute, IconWrench, Inline, InlineBanner, Italic, Link, Modal, ModalBody, ModalFooter, MultiSelectField, Page, PaginationControls$1 as PaginationControls, PasswordField, Paywall, PercentageField, PersistentBanner, PhoneField, Pill, PillSelectField, ProgressBar, RadioGroupBoxOption, RadioGroupField, RadioGroupOption, SIZE_25_PERCENT, SIZE_33_PERCENT, SIZE_50_PERCENT, SIZE_66_PERCENT, SIZE_75_PERCENT, SegmentedControl, SelectField$1 as SelectField, Skeleton, SousChefProvider, Spinner, Stack, Text, TextAreaField, TextField, TimeField, TimeRangeField, Toggle, ToolbarSelect, Tooltip, Underline, WeekField, ZINDEX, toast, useDataTableContext };
11469
12814
  //# sourceMappingURL=index.modern.js.map