grommet 2.34.0 → 2.35.0-alpha.1

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.
Files changed (101) hide show
  1. package/components/Anchor/StyledAnchor.js +1 -7
  2. package/components/Box/StyledBox.js +2 -2
  3. package/components/Button/BusyAnimation.js +2 -1
  4. package/components/Button/StyledButton.js +2 -1
  5. package/components/Button/StyledButtonKind.js +4 -4
  6. package/components/Calendar/StyledCalendar.js +6 -6
  7. package/components/Chart/StyledChart.js +1 -1
  8. package/components/CheckBox/CheckBox.js +0 -3
  9. package/components/CheckBox/StyledCheckBox.js +11 -10
  10. package/components/Clock/StyledClock.js +7 -7
  11. package/components/DataTable/StyledDataTable.js +1 -1
  12. package/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  13. package/components/Diagram/StyledDiagram.js +2 -1
  14. package/components/Drop/DropContainer.js +0 -2
  15. package/components/Drop/StyledDrop.js +2 -1
  16. package/components/FileInput/StyledFileInput.js +1 -1
  17. package/components/Grid/StyledGrid.js +1 -1
  18. package/components/Grommet/StyledGrommet.js +1 -1
  19. package/components/Heading/StyledHeading.js +1 -1
  20. package/components/Image/StyledImage.js +1 -1
  21. package/components/Layer/LayerContainer.js +1 -1
  22. package/components/Layer/StyledLayer.js +6 -6
  23. package/components/List/List.js +1 -1
  24. package/components/Markdown/stories/Override.js +2 -1
  25. package/components/MaskedInput/StyledMaskedInput.js +3 -3
  26. package/components/Menu/Menu.js +1 -1
  27. package/components/Meter/StyledMeter.js +1 -1
  28. package/components/Pagination/StyledPageControl.js +2 -1
  29. package/components/Paragraph/StyledParagraph.js +1 -1
  30. package/components/RadioButton/RadioButton.js +0 -3
  31. package/components/RadioButton/StyledRadioButton.js +8 -7
  32. package/components/RangeInput/RangeInput.js +1 -1
  33. package/components/RangeInput/StyledRangeInput.js +1 -1
  34. package/components/Select/SelectContainer.js +0 -1
  35. package/components/Select/StyledSelect.js +4 -3
  36. package/components/SelectMultiple/SelectMultipleContainer.js +0 -1
  37. package/components/Skeleton/StyledSkeleton.js +1 -1
  38. package/components/Stack/StyledStack.js +2 -2
  39. package/components/Tab/StyledTab.js +2 -1
  40. package/components/Tab/Tab.js +0 -2
  41. package/components/Table/StyledTable.js +7 -7
  42. package/components/Tabs/StyledTabs.js +4 -3
  43. package/components/Tabs/Tabs.js +0 -2
  44. package/components/Text/StyledText.js +1 -5
  45. package/components/TextArea/StyledTextArea.js +1 -1
  46. package/components/TextInput/StyledTextInput.js +5 -5
  47. package/components/Video/StyledVideo.js +4 -4
  48. package/components/WorldMap/StyledWorldMap.js +1 -1
  49. package/es6/components/Anchor/StyledAnchor.js +2 -8
  50. package/es6/components/Box/StyledBox.js +3 -3
  51. package/es6/components/Button/BusyAnimation.js +2 -1
  52. package/es6/components/Button/StyledButton.js +2 -1
  53. package/es6/components/Button/StyledButtonKind.js +3 -4
  54. package/es6/components/Calendar/StyledCalendar.js +7 -7
  55. package/es6/components/Chart/StyledChart.js +2 -2
  56. package/es6/components/CheckBox/CheckBox.js +0 -3
  57. package/es6/components/CheckBox/StyledCheckBox.js +12 -11
  58. package/es6/components/Clock/StyledClock.js +8 -8
  59. package/es6/components/DataTable/StyledDataTable.js +2 -2
  60. package/es6/components/DataTable/stories/CustomThemed/Custom.js +1 -1
  61. package/es6/components/Diagram/StyledDiagram.js +2 -1
  62. package/es6/components/Drop/DropContainer.js +0 -2
  63. package/es6/components/Drop/StyledDrop.js +2 -1
  64. package/es6/components/FileInput/StyledFileInput.js +2 -2
  65. package/es6/components/Grid/StyledGrid.js +2 -2
  66. package/es6/components/Grommet/StyledGrommet.js +2 -2
  67. package/es6/components/Heading/StyledHeading.js +2 -2
  68. package/es6/components/Image/StyledImage.js +2 -2
  69. package/es6/components/Layer/LayerContainer.js +2 -2
  70. package/es6/components/Layer/StyledLayer.js +6 -7
  71. package/es6/components/List/List.js +2 -2
  72. package/es6/components/Markdown/stories/Override.js +2 -1
  73. package/es6/components/MaskedInput/StyledMaskedInput.js +4 -4
  74. package/es6/components/Menu/Menu.js +1 -1
  75. package/es6/components/Meter/StyledMeter.js +2 -2
  76. package/es6/components/Pagination/StyledPageControl.js +2 -1
  77. package/es6/components/Paragraph/StyledParagraph.js +2 -2
  78. package/es6/components/RadioButton/RadioButton.js +0 -3
  79. package/es6/components/RadioButton/StyledRadioButton.js +9 -8
  80. package/es6/components/RangeInput/RangeInput.js +1 -1
  81. package/es6/components/RangeInput/StyledRangeInput.js +2 -2
  82. package/es6/components/Select/SelectContainer.js +0 -1
  83. package/es6/components/Select/StyledSelect.js +5 -4
  84. package/es6/components/SelectMultiple/SelectMultipleContainer.js +0 -1
  85. package/es6/components/Skeleton/StyledSkeleton.js +2 -2
  86. package/es6/components/Stack/StyledStack.js +3 -3
  87. package/es6/components/Tab/StyledTab.js +2 -1
  88. package/es6/components/Tab/Tab.js +0 -2
  89. package/es6/components/Table/StyledTable.js +8 -8
  90. package/es6/components/Tabs/StyledTabs.js +5 -4
  91. package/es6/components/Tabs/Tabs.js +0 -2
  92. package/es6/components/Text/StyledText.js +2 -6
  93. package/es6/components/TextArea/StyledTextArea.js +2 -2
  94. package/es6/components/TextInput/StyledTextInput.js +6 -6
  95. package/es6/components/Video/StyledVideo.js +5 -5
  96. package/es6/components/WorldMap/StyledWorldMap.js +2 -2
  97. package/es6/utils/styles.js +6 -0
  98. package/grommet.min.js +1 -1
  99. package/grommet.min.js.map +1 -1
  100. package/package.json +8 -4
  101. package/utils/styles.js +7 -1
@@ -3,6 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledSeparator = exports.StyledPaginationButton = exports.StyledContainer = void 0;
5
5
  var _styledComponents = _interopRequireDefault(require("styled-components"));
6
+ var _styles = require("../../utils/styles");
6
7
  var _Button = require("../Button");
7
8
  var _Text = require("../Text");
8
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -27,7 +28,7 @@ var StyledPaginationButton = exports.StyledPaginationButton = (0, _styledCompone
27
28
  })(["> svg{margin:0 auto;}", ";"], function (props) {
28
29
  return sizeStyle(props).content;
29
30
  });
30
- var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig({
31
+ var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).withConfig({
31
32
  displayName: "StyledPageControl__StyledContainer",
32
33
  componentId: "sc-1vlfaez-1"
33
34
  })(["display:flex;align-items:center;justify-content:center;max-width:100%;", ";", ";"], function (props) {
@@ -21,7 +21,7 @@ var fontFamily = (0, _styledComponents.css)(["font-family:", ";"], function (pro
21
21
  var maxlinesStyle = function maxlinesStyle(props) {
22
22
  return props.maxLines && (0, _styledComponents.css)(["display:-webkit-box;-webkit-line-clamp:", ";-webkit-box-orient:vertical;overflow:hidden;"], props.maxLines);
23
23
  };
24
- var StyledParagraph = exports.StyledParagraph = _styledComponents["default"].p.withConfig({
24
+ var StyledParagraph = exports.StyledParagraph = _styledComponents["default"].p.withConfig(_utils.styledComponentsConfig).withConfig({
25
25
  displayName: "StyledParagraph",
26
26
  componentId: "sc-tbetod-0"
27
27
  })(["", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -4,7 +4,6 @@ exports.__esModule = true;
4
4
  exports.RadioButton = void 0;
5
5
  var _react = _interopRequireWildcard(require("react"));
6
6
  var _styledComponents = require("styled-components");
7
- var _Box = require("../Box");
8
7
  var _defaultProps = require("../../default-props");
9
8
  var _utils = require("../../utils");
10
9
  var _StyledRadioButton = require("./StyledRadioButton");
@@ -62,7 +61,6 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
62
61
  return setHover(false);
63
62
  }
64
63
  }), /*#__PURE__*/_react["default"].createElement(_StyledRadioButton.StyledRadioButton, {
65
- as: _Box.Box,
66
64
  flex: false,
67
65
  margin: label ? {
68
66
  right: theme.radioButton.gap || 'small'
@@ -84,7 +82,6 @@ var RadioButton = exports.RadioButton = /*#__PURE__*/(0, _react.forwardRef)(func
84
82
  hover: hover
85
83
  }) : /*#__PURE__*/_react["default"].createElement(_StyledRadioButton.StyledRadioButtonBox, {
86
84
  focus: focus && focusIndicator,
87
- as: _Box.Box,
88
85
  align: "center",
89
86
  justify: "center",
90
87
  width: theme.radioButton.size,
@@ -5,13 +5,14 @@ exports.StyledRadioButtonLabel = exports.StyledRadioButtonInput = exports.Styled
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
6
  var _utils = require("../../utils");
7
7
  var _defaultProps = require("../../default-props");
8
+ var _Box = require("../Box");
8
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
9
10
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
10
11
  var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
11
- var StyledRadioButtonContainer = exports.StyledRadioButtonContainer = _styledComponents["default"].label.withConfig({
12
+ var StyledRadioButtonContainer = exports.StyledRadioButtonContainer = _styledComponents["default"].label.withConfig(_utils.styledComponentsConfig).withConfig({
12
13
  displayName: "StyledRadioButton__StyledRadioButtonContainer",
13
14
  componentId: "sc-g1f6ld-0"
14
- })(["display:flex;flex-direction:row;align-items:center;user-select:none;width:fit-content;", " ", ":hover input:not([disabled]) + div,:hover input:not([disabled]) + span{border-color:", ";}:hover{background-color:", ";}", " ", ";"], function (props) {
15
+ })(["display:flex;flex-direction:row;align-items:center;user-select:none;width:fit-content;", " ", " &:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";}&:hover{background-color:", ";}", " ", ";"], function (props) {
15
16
  return props.disabled && disabledStyle;
16
17
  }, function (props) {
17
18
  return !props.disabled && 'cursor: pointer;';
@@ -26,7 +27,7 @@ var StyledRadioButtonContainer = exports.StyledRadioButtonContainer = _styledCom
26
27
  });
27
28
  StyledRadioButtonContainer.defaultProps = {};
28
29
  Object.setPrototypeOf(StyledRadioButtonContainer.defaultProps, _defaultProps.defaultProps);
29
- var StyledRadioButtonInput = exports.StyledRadioButtonInput = _styledComponents["default"].input.withConfig({
30
+ var StyledRadioButtonInput = exports.StyledRadioButtonInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
30
31
  displayName: "StyledRadioButton__StyledRadioButtonInput",
31
32
  componentId: "sc-g1f6ld-1"
32
33
  })(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", ";"], function (props) {
@@ -34,7 +35,7 @@ var StyledRadioButtonInput = exports.StyledRadioButtonInput = _styledComponents[
34
35
  });
35
36
  StyledRadioButtonInput.defaultProps = {};
36
37
  Object.setPrototypeOf(StyledRadioButtonInput.defaultProps, _defaultProps.defaultProps);
37
- var StyledRadioButtonLabel = exports.StyledRadioButtonLabel = _styledComponents["default"].span.withConfig({
38
+ var StyledRadioButtonLabel = exports.StyledRadioButtonLabel = _styledComponents["default"].span.withConfig(_utils.styledComponentsConfig).withConfig({
38
39
  displayName: "StyledRadioButton__StyledRadioButtonLabel",
39
40
  componentId: "sc-g1f6ld-2"
40
41
  })(["", ""], function (props) {
@@ -42,7 +43,7 @@ var StyledRadioButtonLabel = exports.StyledRadioButtonLabel = _styledComponents[
42
43
  });
43
44
  StyledRadioButtonLabel.defaultProps = {};
44
45
  Object.setPrototypeOf(StyledRadioButtonLabel.defaultProps, _defaultProps.defaultProps);
45
- var StyledRadioButtonIcon = exports.StyledRadioButtonIcon = _styledComponents["default"].svg.withConfig({
46
+ var StyledRadioButtonIcon = exports.StyledRadioButtonIcon = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
46
47
  displayName: "StyledRadioButton__StyledRadioButtonIcon",
47
48
  componentId: "sc-g1f6ld-3"
48
49
  })(["box-sizing:border-box;width:", ";height:", ";fill:", ";", ";"], function (props) {
@@ -56,7 +57,7 @@ var StyledRadioButtonIcon = exports.StyledRadioButtonIcon = _styledComponents["d
56
57
  });
57
58
  StyledRadioButtonIcon.defaultProps = {};
58
59
  Object.setPrototypeOf(StyledRadioButtonIcon.defaultProps, _defaultProps.defaultProps);
59
- var StyledRadioButtonBox = exports.StyledRadioButtonBox = _styledComponents["default"].div.withConfig({
60
+ var StyledRadioButtonBox = exports.StyledRadioButtonBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
60
61
  displayName: "StyledRadioButton__StyledRadioButtonBox",
61
62
  componentId: "sc-g1f6ld-4"
62
63
  })(["background-color:", ";", ";", ";"], function (props) {
@@ -68,7 +69,7 @@ var StyledRadioButtonBox = exports.StyledRadioButtonBox = _styledComponents["def
68
69
  });
69
70
  StyledRadioButtonBox.defaultProps = {};
70
71
  Object.setPrototypeOf(StyledRadioButtonBox.defaultProps, _defaultProps.defaultProps);
71
- var StyledRadioButton = exports.StyledRadioButton = _styledComponents["default"].div.withConfig({
72
+ var StyledRadioButton = exports.StyledRadioButton = (0, _styledComponents["default"])(_Box.Box).withConfig({
72
73
  displayName: "StyledRadioButton",
73
74
  componentId: "sc-g1f6ld-5"
74
75
  })(["", ";"], function (props) {
@@ -105,7 +105,7 @@ var RangeInput = exports.RangeInput = /*#__PURE__*/(0, _react.forwardRef)(functi
105
105
  name: name,
106
106
  focus: focus,
107
107
  focusIndicator: focusIndicator,
108
- value: value
108
+ value: value || ''
109
109
  }, rest, {
110
110
  color: color,
111
111
  onFocus: function onFocus(event) {
@@ -114,7 +114,7 @@ var firefoxMicrosoftThumbStyle = (0, _styledComponents.css)(["", " margin-top:0p
114
114
  });
115
115
 
116
116
  /* eslint-disable max-len */
117
- var StyledRangeInput = exports.StyledRangeInput = _styledComponents["default"].input.withConfig({
117
+ var StyledRangeInput = exports.StyledRangeInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
118
118
  displayName: "StyledRangeInput",
119
119
  componentId: "sc-15st9ck-0"
120
120
  })(["box-sizing:border-box;position:relative;-webkit-appearance:none;border-color:transparent;height:", ";width:100%;padding:0px;cursor:", ";background:transparent;margin:0px;", " &::-moz-focus-inner{border:none;}&::-moz-focus-outer{border:none;}&::-webkit-slider-runnable-track{", "}&::-webkit-slider-thumb{margin-top:-", "px;", " ", " ", "}&::-moz-range-track{", "}&::-moz-range-thumb{", "}&::-ms-thumb{", "}", " &::-ms-track{", " border-color:transparent;color:transparent;}&::-ms-fill-lower{", ";border-color:transparent;}&::-ms-fill-upper{", ";border-color:transparent;}&:focus::-webkit-slider-thumb{", "}&:focus-visible{outline:0;}&:focus{outline:none;}", ""], function (props) {
@@ -270,7 +270,6 @@ var SelectContainer = exports.SelectContainer = /*#__PURE__*/(0, _react.forwardR
270
270
  onKeyDown: onKeyDownOption
271
271
  }, /*#__PURE__*/_react["default"].createElement(_StyledSelect.StyledContainer, {
272
272
  ref: ref,
273
- as: _Box.Box,
274
273
  id: id ? id + "__select-drop" : undefined,
275
274
  dropHeight: dropHeight
276
275
  }, onSearch && /*#__PURE__*/_react["default"].createElement(_Box.Box, {
@@ -3,12 +3,13 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledSelectDropButton = exports.StyledContainer = exports.SelectTextInput = exports.SelectOption = exports.OptionsContainer = exports.HiddenInput = void 0;
5
5
  var _styledComponents = _interopRequireDefault(require("styled-components"));
6
+ var _Box = require("../Box");
6
7
  var _Button = require("../Button");
7
8
  var _DropButton = require("../DropButton");
8
9
  var _TextInput = require("../TextInput");
9
10
  var _utils = require("../../utils");
10
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig({
12
+ var StyledContainer = exports.StyledContainer = (0, _styledComponents["default"])(_Box.Box).withConfig({
12
13
  displayName: "StyledSelect__StyledContainer",
13
14
  componentId: "sc-znp66n-0"
14
15
  })(["@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}", ";", ";"], function (props) {
@@ -18,11 +19,11 @@ var StyledContainer = exports.StyledContainer = _styledComponents["default"].div
18
19
  });
19
20
 
20
21
  // position relative is so scroll can be managed correctly
21
- var OptionsContainer = exports.OptionsContainer = _styledComponents["default"].div.withConfig({
22
+ var OptionsContainer = exports.OptionsContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
22
23
  displayName: "StyledSelect__OptionsContainer",
23
24
  componentId: "sc-znp66n-1"
24
25
  })(["position:relative;scroll-behavior:smooth;overflow:auto;outline:none;"]);
25
- var HiddenInput = exports.HiddenInput = _styledComponents["default"].input.withConfig({
26
+ var HiddenInput = exports.HiddenInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
26
27
  displayName: "StyledSelect__HiddenInput",
27
28
  componentId: "sc-znp66n-2"
28
29
  })(["display:none;"]);
@@ -293,7 +293,6 @@ var SelectMultipleContainer = exports.SelectMultipleContainer = /*#__PURE__*/(0,
293
293
  onEsc: onClose
294
294
  }, /*#__PURE__*/_react["default"].createElement(_StyledSelect.StyledContainer, {
295
295
  ref: ref,
296
- as: _Box.Box,
297
296
  id: id ? id + "__select-drop" : undefined,
298
297
  dropHeight: dropHeight,
299
298
  a11yTitle: "Select dropdown"
@@ -8,7 +8,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
8
8
  // Styling a div directly rather than just using
9
9
  // a Box since Box itself will react to a SkeletonContext
10
10
  // and we don't want that here.
11
- var StyledSkeleton = exports.StyledSkeleton = _styledComponents["default"].div.withConfig({
11
+ var StyledSkeleton = exports.StyledSkeleton = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
12
12
  displayName: "StyledSkeleton",
13
13
  componentId: "sc-1omqm6u-0"
14
14
  })(["display:flex;box-sizing:border-box;", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -12,7 +12,7 @@ var fillStyle = (0, _styledComponents.css)(["", " ", " flex-grow:1;display:flex;
12
12
  }, function (props) {
13
13
  return props.fillContainer === true || props.fillContainer === 'vertical' ? 'height: 100%;' : '';
14
14
  });
15
- var StyledStack = exports.StyledStack = _styledComponents["default"].div.withConfig({
15
+ var StyledStack = exports.StyledStack = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
16
16
  displayName: "StyledStack",
17
17
  componentId: "sc-ajspsk-0"
18
18
  })(["position:relative;", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -34,7 +34,7 @@ var styleMap = {
34
34
  'top-right': "\n top: 0;\n right: 0;\n ",
35
35
  'bottom-right': "\n bottom: 0;\n right: 0;\n "
36
36
  };
37
- var StyledStackLayer = exports.StyledStackLayer = _styledComponents["default"].div.withConfig({
37
+ var StyledStackLayer = exports.StyledStackLayer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
38
38
  displayName: "StyledStack__StyledStackLayer",
39
39
  componentId: "sc-ajspsk-1"
40
40
  })(["position:", ";", " ", " ", " ", ""], function (props) {
@@ -3,6 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledTab = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var _Box = require("../Box");
6
7
  var _utils = require("../../utils");
7
8
  var _defaultProps = require("../../default-props");
8
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
@@ -14,7 +15,7 @@ var tabHoverStyle = (0, _styledComponents.css)(["&:hover{", " ", " ", ";}&:focus
14
15
  }, function (props) {
15
16
  return props.theme.tab.hover.extend;
16
17
  });
17
- var StyledTab = exports.StyledTab = _styledComponents["default"].div.withConfig({
18
+ var StyledTab = exports.StyledTab = (0, _styledComponents["default"])(_Box.Box).withConfig({
18
19
  displayName: "StyledTab",
19
20
  componentId: "sc-1nnwnsb-0"
20
21
  })(["white-space:nowrap;", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -5,7 +5,6 @@ exports.Tab = void 0;
5
5
  var _react = _interopRequireWildcard(require("react"));
6
6
  var _styledComponents = require("styled-components");
7
7
  var _defaultProps = require("../../default-props");
8
- var _Box = require("../Box");
9
8
  var _Button = require("../Button");
10
9
  var _Text = require("../Text");
11
10
  var _TabsContext = require("../Tabs/TabsContext");
@@ -178,7 +177,6 @@ var Tab = exports.Tab = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
178
177
  setFocusIndex(-1);
179
178
  }
180
179
  }), /*#__PURE__*/_react["default"].createElement(_StyledTab.StyledTab, _extends({
181
- as: _Box.Box,
182
180
  disabled: disabled,
183
181
  plain: plain
184
182
  }, withIconStyles, tabStyles), first, second));
@@ -27,7 +27,7 @@ var sizeStyle = (0, _styledComponents.css)(["width:", ";max-width:", ";overflow:
27
27
  }, function (props) {
28
28
  return props.size !== 'auto' ? SIZE_MAP[props.size] || props.theme.global.size[props.size] || props.size : undefined;
29
29
  });
30
- var StyledTableCell = exports.StyledTableCell = _styledComponents["default"].td.withConfig({
30
+ var StyledTableCell = exports.StyledTableCell = _styledComponents["default"].td.withConfig(_utils.styledComponentsConfig).withConfig({
31
31
  displayName: "StyledTable__StyledTableCell",
32
32
  componentId: "sc-1m3u5g-0"
33
33
  })(["margin:0;padding:0;font-weight:inherit;text-align:inherit;", " ", " ", " ", " ", " ", " ", ""], function (props) {
@@ -47,7 +47,7 @@ var StyledTableCell = exports.StyledTableCell = _styledComponents["default"].td.
47
47
  });
48
48
  StyledTableCell.defaultProps = {};
49
49
  Object.setPrototypeOf(StyledTableCell.defaultProps, _defaultProps.defaultProps);
50
- var StyledTableDataCaption = exports.StyledTableDataCaption = _styledComponents["default"].caption.withConfig({
50
+ var StyledTableDataCaption = exports.StyledTableDataCaption = _styledComponents["default"].caption.withConfig(_utils.styledComponentsConfig).withConfig({
51
51
  displayName: "StyledTable__StyledTableDataCaption",
52
52
  componentId: "sc-1m3u5g-1"
53
53
  })(["margin-bottom:", ";"], function (props) {
@@ -55,31 +55,31 @@ var StyledTableDataCaption = exports.StyledTableDataCaption = _styledComponents[
55
55
  });
56
56
  StyledTableDataCaption.defaultProps = {};
57
57
  Object.setPrototypeOf(StyledTableDataCaption.defaultProps, _defaultProps.defaultProps);
58
- var StyledTableRow = exports.StyledTableRow = _styledComponents["default"].tr.withConfig({
58
+ var StyledTableRow = exports.StyledTableRow = _styledComponents["default"].tr.withConfig(_utils.styledComponentsConfig).withConfig({
59
59
  displayName: "StyledTable__StyledTableRow",
60
60
  componentId: "sc-1m3u5g-2"
61
61
  })([""]);
62
62
  StyledTableRow.defaultProps = {};
63
63
  Object.setPrototypeOf(StyledTableRow.defaultProps, _defaultProps.defaultProps);
64
- var StyledTableBody = exports.StyledTableBody = _styledComponents["default"].tbody.withConfig({
64
+ var StyledTableBody = exports.StyledTableBody = _styledComponents["default"].tbody.withConfig(_utils.styledComponentsConfig).withConfig({
65
65
  displayName: "StyledTable__StyledTableBody",
66
66
  componentId: "sc-1m3u5g-3"
67
67
  })([""]);
68
68
  StyledTableBody.defaultProps = {};
69
69
  Object.setPrototypeOf(StyledTableBody.defaultProps, _defaultProps.defaultProps);
70
- var StyledTableHeader = exports.StyledTableHeader = _styledComponents["default"].thead.withConfig({
70
+ var StyledTableHeader = exports.StyledTableHeader = _styledComponents["default"].thead.withConfig(_utils.styledComponentsConfig).withConfig({
71
71
  displayName: "StyledTable__StyledTableHeader",
72
72
  componentId: "sc-1m3u5g-4"
73
73
  })([""]);
74
74
  StyledTableHeader.defaultProps = {};
75
75
  Object.setPrototypeOf(StyledTableHeader.defaultProps, _defaultProps.defaultProps);
76
- var StyledTableFooter = exports.StyledTableFooter = _styledComponents["default"].tfoot.withConfig({
76
+ var StyledTableFooter = exports.StyledTableFooter = _styledComponents["default"].tfoot.withConfig(_utils.styledComponentsConfig).withConfig({
77
77
  displayName: "StyledTable__StyledTableFooter",
78
78
  componentId: "sc-1m3u5g-5"
79
79
  })([""]);
80
80
  StyledTableFooter.defaultProps = {};
81
81
  Object.setPrototypeOf(StyledTableFooter.defaultProps, _defaultProps.defaultProps);
82
- var StyledTable = exports.StyledTable = _styledComponents["default"].table.withConfig({
82
+ var StyledTable = exports.StyledTable = _styledComponents["default"].table.withConfig(_utils.styledComponentsConfig).withConfig({
83
83
  displayName: "StyledTable",
84
84
  componentId: "sc-1m3u5g-6"
85
85
  })(["border-spacing:0;border-collapse:collapse;width:inherit;", " ", ";"], _utils.genericStyles, function (props) {
@@ -3,12 +3,13 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledTabsHeader = exports.StyledTabs = exports.StyledTabPanel = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var _Box = require("../Box");
6
7
  var _utils = require("../../utils");
7
8
  var _defaultProps = require("../../default-props");
8
9
  var _FLEX_MAP;
9
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
- var StyledTabsHeader = exports.StyledTabsHeader = _styledComponents["default"].div.withConfig({
12
+ var StyledTabsHeader = exports.StyledTabsHeader = (0, _styledComponents["default"])(_Box.Box).withConfig({
12
13
  displayName: "StyledTabs__StyledTabsHeader",
13
14
  componentId: "sc-a4fwxl-0"
14
15
  })(["", ";"], function (props) {
@@ -20,7 +21,7 @@ var FLEX_MAP = (_FLEX_MAP = {}, _FLEX_MAP[true] = '1 1', _FLEX_MAP[false] = '0 0
20
21
  var flexStyle = (0, _styledComponents.css)(["flex:", ";"], function (props) {
21
22
  return "" + FLEX_MAP[props.flex] + (props.flex !== true ? ' auto' : '');
22
23
  });
23
- var StyledTabPanel = exports.StyledTabPanel = _styledComponents["default"].div.withConfig({
24
+ var StyledTabPanel = exports.StyledTabPanel = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
24
25
  displayName: "StyledTabs__StyledTabPanel",
25
26
  componentId: "sc-a4fwxl-1"
26
27
  })(["min-height:0;", " ", ";"], function (props) {
@@ -30,7 +31,7 @@ var StyledTabPanel = exports.StyledTabPanel = _styledComponents["default"].div.w
30
31
  });
31
32
  StyledTabPanel.defaultProps = {};
32
33
  Object.setPrototypeOf(StyledTabPanel.defaultProps, _defaultProps.defaultProps);
33
- var StyledTabs = exports.StyledTabs = _styledComponents["default"].div.withConfig({
34
+ var StyledTabs = exports.StyledTabs = (0, _styledComponents["default"])(_Box.Box).withConfig({
34
35
  displayName: "StyledTabs",
35
36
  componentId: "sc-a4fwxl-2"
36
37
  })(["", " ", ";"], _utils.genericStyles, function (props) {
@@ -270,7 +270,6 @@ var Tabs = exports.Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
270
270
  });
271
271
  return /*#__PURE__*/_react["default"].createElement(_StyledTabs.StyledTabs, _extends({
272
272
  ref: ref,
273
- as: _Box.Box,
274
273
  flex: flex,
275
274
  responsive: responsive
276
275
  }, rest, {
@@ -298,7 +297,6 @@ var Tabs = exports.Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, re
298
297
  color: disableLeftArrow ? theme.button.disabled.color : theme.global.colors.text
299
298
  }))), /*#__PURE__*/_react["default"].createElement(_StyledTabs.StyledTabsHeader, {
300
299
  ref: headerRef,
301
- as: _Box.Box,
302
300
  direction: "row",
303
301
  justify: overflow ? 'start' : justify,
304
302
  flex: !!overflow,
@@ -28,11 +28,7 @@ var wordBreakStyle = (0, _styledComponents.css)(["word-break:", ";"], function (
28
28
  var fontFamily = (0, _styledComponents.css)(["font-family:", ";"], function (props) {
29
29
  return props.theme.text.font.family;
30
30
  });
31
- var StyledText = exports.StyledText = (0, _styledComponents["default"])('span').withConfig({
32
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
33
- return defaultValidatorFn(prop) && prop !== 'size';
34
- }
35
- }).withConfig({
31
+ var StyledText = exports.StyledText = (0, _styledComponents["default"])('span').withConfig(_utils.styledComponentsConfig).withConfig({
36
32
  displayName: "StyledText",
37
33
  componentId: "sc-1sadyjn-0"
38
34
  })(["", " ", " ", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -20,7 +20,7 @@ var resizeStyle = function resizeStyle(resize) {
20
20
  }
21
21
  return 'resize: none;';
22
22
  };
23
- var StyledTextArea = exports.StyledTextArea = _styledComponents["default"].textarea.withConfig({
23
+ var StyledTextArea = exports.StyledTextArea = _styledComponents["default"].textarea.withConfig(_utils.styledComponentsConfig).withConfig({
24
24
  displayName: "StyledTextArea",
25
25
  componentId: "sc-17i3mwp-0"
26
26
  })(["", " ", " ", " ", " ", " ", ";max-width:100%;"], _utils.inputStyle, function (props) {
@@ -14,7 +14,7 @@ var getPlainStyle = function getPlainStyle(plain) {
14
14
  }
15
15
  return plain && _utils.plainInputStyle;
16
16
  };
17
- var StyledTextInput = exports.StyledTextInput = _styledComponents["default"].input.withConfig({
17
+ var StyledTextInput = exports.StyledTextInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
18
18
  displayName: "StyledTextInput",
19
19
  componentId: "sc-1x30a0s-0"
20
20
  })(["", " ", " ", " ", " ", " ", " ", ";"], _utils.inputStyle, function (props) {
@@ -32,7 +32,7 @@ var StyledTextInput = exports.StyledTextInput = _styledComponents["default"].inp
32
32
  });
33
33
  StyledTextInput.defaultProps = {};
34
34
  Object.setPrototypeOf(StyledTextInput.defaultProps, _defaultProps.defaultProps);
35
- var StyledTextInputContainer = exports.StyledTextInputContainer = _styledComponents["default"].div.withConfig({
35
+ var StyledTextInputContainer = exports.StyledTextInputContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
36
36
  displayName: "StyledTextInput__StyledTextInputContainer",
37
37
  componentId: "sc-1x30a0s-1"
38
38
  })(["position:relative;width:100%;", ";"], function (props) {
@@ -40,7 +40,7 @@ var StyledTextInputContainer = exports.StyledTextInputContainer = _styledCompone
40
40
  });
41
41
  StyledTextInputContainer.defaultProps = {};
42
42
  Object.setPrototypeOf(StyledTextInputContainer.defaultProps, _defaultProps.defaultProps);
43
- var StyledPlaceholder = exports.StyledPlaceholder = _styledComponents["default"].div.withConfig({
43
+ var StyledPlaceholder = exports.StyledPlaceholder = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
44
44
  displayName: "StyledTextInput__StyledPlaceholder",
45
45
  componentId: "sc-1x30a0s-2"
46
46
  })(["position:absolute;left:", "px;top:50%;transform:translateY(-50%);display:flex;justify-content:center;pointer-events:none;", ";"], function (props) {
@@ -50,13 +50,13 @@ var StyledPlaceholder = exports.StyledPlaceholder = _styledComponents["default"]
50
50
  });
51
51
  StyledPlaceholder.defaultProps = {};
52
52
  Object.setPrototypeOf(StyledPlaceholder.defaultProps, _defaultProps.defaultProps);
53
- var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig({
53
+ var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
54
54
  displayName: "StyledTextInput__StyledIcon",
55
55
  componentId: "sc-1x30a0s-3"
56
56
  })(["position:absolute;display:flex;justify:center;top:50%;transform:translateY(-50%);pointer-events:none;", ""], function (props) {
57
57
  return props.reverse ? "right: " + (0, _utils.getInputPadBySide)(props, 'right') + ";" : "left: " + (0, _utils.getInputPadBySide)(props, 'left') + ";";
58
58
  });
59
- var StyledSuggestions = exports.StyledSuggestions = _styledComponents["default"].ol.withConfig({
59
+ var StyledSuggestions = exports.StyledSuggestions = _styledComponents["default"].ol.withConfig(_utils.styledComponentsConfig).withConfig({
60
60
  displayName: "StyledTextInput__StyledSuggestions",
61
61
  componentId: "sc-1x30a0s-4"
62
62
  })(["border-top-left-radius:0;border-top-right-radius:0;margin:0;padding:0;list-style-type:none;", ";"], function (props) {
@@ -16,7 +16,7 @@ var fitStyle = (0, _styledComponents.css)(["flex:1 1;min-height:0;object-fit:",
16
16
  });
17
17
 
18
18
  // z-index is for Safari so controls aren't hidden
19
- var StyledVideo = exports.StyledVideo = _styledComponents["default"].video.withConfig({
19
+ var StyledVideo = exports.StyledVideo = _styledComponents["default"].video.withConfig(_utils.styledComponentsConfig).withConfig({
20
20
  displayName: "StyledVideo",
21
21
  componentId: "sc-w4v8h9-0"
22
22
  })(["max-width:100%;z-index:1;", "::cue{background:", ";}", ";"], function (props) {
@@ -28,7 +28,7 @@ var StyledVideo = exports.StyledVideo = _styledComponents["default"].video.withC
28
28
  });
29
29
  StyledVideo.defaultProps = {};
30
30
  Object.setPrototypeOf(StyledVideo.defaultProps, _defaultProps.defaultProps);
31
- var StyledVideoContainer = exports.StyledVideoContainer = _styledComponents["default"].div.withConfig({
31
+ var StyledVideoContainer = exports.StyledVideoContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
32
32
  displayName: "StyledVideo__StyledVideoContainer",
33
33
  componentId: "sc-w4v8h9-1"
34
34
  })(["flex:1 1;display:flex;flex-direction:column;overflow:hidden;position:relative;", ";&:focus{", "}"], _utils.genericStyles, (0, _utils.focusStyle)());
@@ -37,7 +37,7 @@ Object.setPrototypeOf(StyledVideoContainer.defaultProps, _defaultProps.defaultPr
37
37
 
38
38
  // z-index is for Safari so controls aren't hidden
39
39
  var positionStyle = (0, _styledComponents.css)(["position:absolute;left:0;right:0;bottom:0;z-index:1;"]);
40
- var StyledVideoControls = exports.StyledVideoControls = _styledComponents["default"].div.withConfig({
40
+ var StyledVideoControls = exports.StyledVideoControls = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
41
41
  displayName: "StyledVideo__StyledVideoControls",
42
42
  componentId: "sc-w4v8h9-2"
43
43
  })(["flex:0 0;", " opacity:0;transition:opacity 0.3s;", ";"], function (props) {
@@ -54,7 +54,7 @@ var headStyle = (0, _styledComponents.css)(["::after{content:'';height:100%;widt
54
54
  }, function (props) {
55
55
  return props.value + "%";
56
56
  });
57
- var StyledVideoScrubber = exports.StyledVideoScrubber = _styledComponents["default"].div.withConfig({
57
+ var StyledVideoScrubber = exports.StyledVideoScrubber = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
58
58
  displayName: "StyledVideo__StyledVideoScrubber",
59
59
  componentId: "sc-w4v8h9-3"
60
60
  })(["cursor:pointer;width:100%;height:100%;", ";&:focus{", "}"], function (props) {
@@ -20,7 +20,7 @@ var fillStyle = function fillStyle(fillProp) {
20
20
  };
21
21
 
22
22
  // undefined fillProp has width for backwards compatibility
23
- var StyledWorldMap = exports.StyledWorldMap = _styledComponents["default"].svg.withConfig({
23
+ var StyledWorldMap = exports.StyledWorldMap = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
24
24
  displayName: "StyledWorldMap",
25
25
  componentId: "sc-had4c3-0"
26
26
  })(["", " ", " ", ";"], _utils.genericStyles, function (props) {
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { focusStyle, genericStyles, normalizeColor } from '../../utils';
2
+ import { focusStyle, genericStyles, normalizeColor, styledComponentsConfig } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
4
  var disabledStyle = "\n opacity: 0.3;\n cursor: default;\n text-decoration: none;\n";
5
5
  var sizeStyle = function sizeStyle(props) {
@@ -10,13 +10,7 @@ var sizeStyle = function sizeStyle(props) {
10
10
  }
11
11
  return css(["font-size:inherit;line-height:inherit;"]);
12
12
  };
13
- var StyledAnchor = styled.a.withConfig({
14
- // prevent custom props from bleeding into DOM
15
- // https://styled-components.com/docs/api#shouldforwardprop
16
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
17
- return !['as', 'colorProp', 'focus', 'hasIcon', 'hasLabel', 'reverse'].includes(prop) && defaultValidatorFn(prop);
18
- }
19
- }).withConfig({
13
+ var StyledAnchor = styled.a.withConfig(styledComponentsConfig).withConfig({
20
14
  displayName: "StyledAnchor",
21
15
  componentId: "sc-1rp7lwl-0"
22
16
  })(["box-sizing:border-box;", " color:", ";", " text-decoration:", ";cursor:pointer;", " ", " ", " ", " ", " ", ""], function (props) {
@@ -3,7 +3,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
3
3
  import styled, { css } from 'styled-components';
4
4
  import { defaultProps } from '../../default-props';
5
5
  import { alignContentStyle, alignStyle, backgroundStyle, borderStyle, breakpointStyle, edgeStyle, fillStyle, focusStyle, genericStyles, getBreakpointStyle, getHoverIndicatorStyle, heightStyle, overflowStyle, parseMetricToNum, responsiveBorderStyle, widthStyle } from '../../utils';
6
- import { roundStyle } from '../../utils/styles';
6
+ import { roundStyle, styledComponentsConfig } from '../../utils/styles';
7
7
  import { animationBounds, animationObjectStyle } from '../../utils/animation';
8
8
  var BASIS_MAP = {
9
9
  auto: 'auto',
@@ -147,7 +147,7 @@ var gapStyle = function gapStyle(directionProp, gap, responsive, wrap, theme) {
147
147
  };
148
148
 
149
149
  // NOTE: basis must be after flex! Otherwise, flex overrides basis
150
- var StyledBox = styled.div.withConfig({
150
+ var StyledBox = styled.div.withConfig(styledComponentsConfig).withConfig({
151
151
  displayName: "StyledBox",
152
152
  componentId: "sc-13pk1d4-0"
153
153
  })(["display:flex;box-sizing:border-box;", ";", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
@@ -252,7 +252,7 @@ var gapGapStyle = function gapGapStyle(directionProp, gap, responsive, border, t
252
252
  }
253
253
  return styles;
254
254
  };
255
- var StyledBoxGap = styled.div.withConfig({
255
+ var StyledBoxGap = styled.div.withConfig(styledComponentsConfig).withConfig({
256
256
  displayName: "StyledBox__StyledBoxGap",
257
257
  componentId: "sc-13pk1d4-1"
258
258
  })(["flex:0 0 auto;align-self:stretch;", ";"], function (props) {
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import styled, { css, keyframes } from 'styled-components';
3
3
  import { Checkmark } from 'grommet-icons/icons/Checkmark';
4
4
  import { Box } from '../Box';
5
+ import { styledComponentsConfig } from '../../utils/styles';
5
6
  var bounceDelay = keyframes(["0%,80%,100%{transform:scale(0.4);}40%{transform:scale(0.8);}"]);
6
7
  var bounceDelayRule = css(["animation:", " 1.4s infinite ease-in-out both;"], bounceDelay);
7
8
  var Dot = styled(Box).withConfig({
@@ -33,7 +34,7 @@ export var GrowCheckmark = styled(Checkmark).withConfig({
33
34
  displayName: "BusyAnimation__GrowCheckmark",
34
35
  componentId: "sc-feuivs-1"
35
36
  })(["position:absolute;align-self:center;animation:", " 0.9s ease-in-out;"], grow);
36
- export var StyledBusyContents = styled.div.withConfig({
37
+ export var StyledBusyContents = styled.div.withConfig(styledComponentsConfig).withConfig({
37
38
  displayName: "BusyAnimation__StyledBusyContents",
38
39
  componentId: "sc-feuivs-2"
39
40
  })(["opacity:", ";}"], function (props) {
@@ -1,6 +1,7 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import { activeStyle, backgroundStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, getHoverIndicatorStyle, normalizeColor } from '../../utils';
3
3
  import { defaultProps } from '../../default-props';
4
+ import { styledComponentsConfig } from '../../utils/styles';
4
5
  var radiusStyle = function radiusStyle(props) {
5
6
  // border.radius shouldn't impact an only-icon rendering.
6
7
  var isIconOnly = props.hasIcon && !props.hasLabel;
@@ -68,7 +69,7 @@ var disabledButtonStyle = function disabledButtonStyle(props) {
68
69
  };
69
70
 
70
71
  // Deprecate props.theme.button.disabled.opacity in V3
71
- var StyledButton = styled.button.withConfig({
72
+ var StyledButton = styled.button.withConfig(styledComponentsConfig).withConfig({
72
73
  displayName: "StyledButton",
73
74
  componentId: "sc-323bzc-0"
74
75
  })(["display:inline-block;box-sizing:border-box;cursor:pointer;font:inherit;text-decoration:none;margin:0;background:transparent;overflow:visible;text-transform:none;", " ", " ", " ", " ", " ", " ", " &:focus{", "}&:focus:not(:focus-visible){", "}", " ", " ", " ", " ", " ", " ", ""], genericStyles, function (props) {
@@ -1,4 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
+ import isPropValid from '@emotion/is-prop-valid';
2
3
  import { activeStyle, disabledStyle, edgeStyle, focusStyle, unfocusStyle, genericStyles, kindPartStyles, parseMetricToNum } from '../../utils';
3
4
  import { defaultProps } from '../../default-props';
4
5
  var radiusStyle = function radiusStyle(props) {
@@ -165,10 +166,8 @@ var plainStyle = function plainStyle(props) {
165
166
  return css(["outline:none;border:none;padding:0;text-align:inherit;color:inherit;", " ", ""], props.icon && "\n > svg {\n display: flex;\n align-self: center;\n vertical-align: middle;\n }\n ", props.hasIcon && !props.hasLabel && "line-height: 0;");
166
167
  };
167
168
  var StyledButtonKind = styled.button.withConfig({
168
- // don't let kind attribute leak to DOM
169
- // https://styled-components.com/docs/api#shouldforwardprop
170
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
171
- return !['kind'].includes(prop) && defaultValidatorFn(prop);
169
+ shouldForwardProp: function shouldForwardProp(prop) {
170
+ return isPropValid(prop) && !['kind'].includes(prop);
172
171
  }
173
172
  }).withConfig({
174
173
  displayName: "StyledButtonKind",