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
@@ -16,13 +16,7 @@ var sizeStyle = function sizeStyle(props) {
16
16
  }
17
17
  return (0, _styledComponents.css)(["font-size:inherit;line-height:inherit;"]);
18
18
  };
19
- var StyledAnchor = exports.StyledAnchor = _styledComponents["default"].a.withConfig({
20
- // prevent custom props from bleeding into DOM
21
- // https://styled-components.com/docs/api#shouldforwardprop
22
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
23
- return !['as', 'colorProp', 'focus', 'hasIcon', 'hasLabel', 'reverse'].includes(prop) && defaultValidatorFn(prop);
24
- }
25
- }).withConfig({
19
+ var StyledAnchor = exports.StyledAnchor = _styledComponents["default"].a.withConfig(_utils.styledComponentsConfig).withConfig({
26
20
  displayName: "StyledAnchor",
27
21
  componentId: "sc-1rp7lwl-0"
28
22
  })(["box-sizing:border-box;", " color:", ";", " text-decoration:", ";cursor:pointer;", " ", " ", " ", " ", " ", ""], function (props) {
@@ -153,7 +153,7 @@ var gapStyle = function gapStyle(directionProp, gap, responsive, wrap, theme) {
153
153
  };
154
154
 
155
155
  // NOTE: basis must be after flex! Otherwise, flex overrides basis
156
- var StyledBox = exports.StyledBox = _styledComponents["default"].div.withConfig({
156
+ var StyledBox = exports.StyledBox = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).withConfig({
157
157
  displayName: "StyledBox",
158
158
  componentId: "sc-13pk1d4-0"
159
159
  })(["display:flex;box-sizing:border-box;", ";", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], function (props) {
@@ -258,7 +258,7 @@ var gapGapStyle = function gapGapStyle(directionProp, gap, responsive, border, t
258
258
  }
259
259
  return styles;
260
260
  };
261
- var StyledBoxGap = exports.StyledBoxGap = _styledComponents["default"].div.withConfig({
261
+ var StyledBoxGap = exports.StyledBoxGap = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).withConfig({
262
262
  displayName: "StyledBox__StyledBoxGap",
263
263
  componentId: "sc-13pk1d4-1"
264
264
  })(["flex:0 0 auto;align-self:stretch;", ";"], function (props) {
@@ -6,6 +6,7 @@ var _react = _interopRequireDefault(require("react"));
6
6
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
7
7
  var _Checkmark = require("grommet-icons/icons/Checkmark");
8
8
  var _Box = require("../Box");
9
+ var _styles = require("../../utils/styles");
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
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -40,7 +41,7 @@ var GrowCheckmark = exports.GrowCheckmark = (0, _styledComponents["default"])(_C
40
41
  displayName: "BusyAnimation__GrowCheckmark",
41
42
  componentId: "sc-feuivs-1"
42
43
  })(["position:absolute;align-self:center;animation:", " 0.9s ease-in-out;"], grow);
43
- var StyledBusyContents = exports.StyledBusyContents = _styledComponents["default"].div.withConfig({
44
+ var StyledBusyContents = exports.StyledBusyContents = _styledComponents["default"].div.withConfig(_styles.styledComponentsConfig).withConfig({
44
45
  displayName: "BusyAnimation__StyledBusyContents",
45
46
  componentId: "sc-feuivs-2"
46
47
  })(["opacity:", ";}"], function (props) {
@@ -5,6 +5,7 @@ exports.StyledButton = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
6
  var _utils = require("../../utils");
7
7
  var _defaultProps = require("../../default-props");
8
+ var _styles = require("../../utils/styles");
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 radiusStyle = function radiusStyle(props) {
@@ -74,7 +75,7 @@ var disabledButtonStyle = function disabledButtonStyle(props) {
74
75
  };
75
76
 
76
77
  // Deprecate props.theme.button.disabled.opacity in V3
77
- var StyledButton = exports.StyledButton = _styledComponents["default"].button.withConfig({
78
+ var StyledButton = exports.StyledButton = _styledComponents["default"].button.withConfig(_styles.styledComponentsConfig).withConfig({
78
79
  displayName: "StyledButton",
79
80
  componentId: "sc-323bzc-0"
80
81
  })(["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){", "}", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -3,8 +3,10 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledButtonKind = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var _isPropValid = _interopRequireDefault(require("@emotion/is-prop-valid"));
6
7
  var _utils = require("../../utils");
7
8
  var _defaultProps = require("../../default-props");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
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); }
9
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; }
10
12
  var radiusStyle = function radiusStyle(props) {
@@ -171,10 +173,8 @@ var plainStyle = function plainStyle(props) {
171
173
  return (0, _styledComponents.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;");
172
174
  };
173
175
  var StyledButtonKind = exports.StyledButtonKind = _styledComponents["default"].button.withConfig({
174
- // don't let kind attribute leak to DOM
175
- // https://styled-components.com/docs/api#shouldforwardprop
176
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
177
- return !['kind'].includes(prop) && defaultValidatorFn(prop);
176
+ shouldForwardProp: function shouldForwardProp(prop) {
177
+ return (0, _isPropValid["default"])(prop) && !['kind'].includes(prop);
178
178
  }
179
179
  }).withConfig({
180
180
  displayName: "StyledButtonKind",
@@ -14,7 +14,7 @@ var sizeStyle = function sizeStyle(props) {
14
14
  return p.fillContainer && 'height: 100%;';
15
15
  });
16
16
  };
17
- var StyledCalendar = exports.StyledCalendar = _styledComponents["default"].div.withConfig({
17
+ var StyledCalendar = exports.StyledCalendar = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
18
18
  displayName: "StyledCalendar",
19
19
  componentId: "sc-1y4xhmp-0"
20
20
  })(["", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -28,7 +28,7 @@ var weeksContainerSizeStyle = function weeksContainerSizeStyle(props) {
28
28
  var height = props.fillContainer ? '100%' : (0, _utils.parseMetricToNum)(props.theme.calendar[props.sizeProp].daySize) * 6 + "px";
29
29
  return "\n height: " + height + ";\n\n ";
30
30
  };
31
- var StyledWeeksContainer = exports.StyledWeeksContainer = _styledComponents["default"].div.withConfig({
31
+ var StyledWeeksContainer = exports.StyledWeeksContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
32
32
  displayName: "StyledCalendar__StyledWeeksContainer",
33
33
  componentId: "sc-1y4xhmp-1"
34
34
  })(["overflow:hidden;", " ", ";"], function (props) {
@@ -56,7 +56,7 @@ var slideStyle = function slideStyle(props) {
56
56
  var weeksSizeStyle = function weeksSizeStyle() {
57
57
  return (0, _styledComponents.css)(["display:flex;flex-direction:column;height:100%;"]);
58
58
  };
59
- var StyledWeeks = exports.StyledWeeks = _styledComponents["default"].div.withConfig({
59
+ var StyledWeeks = exports.StyledWeeks = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
60
60
  displayName: "StyledCalendar__StyledWeeks",
61
61
  componentId: "sc-1y4xhmp-2"
62
62
  })(["position:relative;", " ", ";"], function (props) {
@@ -66,7 +66,7 @@ var StyledWeeks = exports.StyledWeeks = _styledComponents["default"].div.withCon
66
66
  });
67
67
  StyledWeeks.defaultProps = {};
68
68
  Object.setPrototypeOf(StyledWeeks.defaultProps, _defaultProps.defaultProps);
69
- var StyledWeek = exports.StyledWeek = _styledComponents["default"].div.withConfig({
69
+ var StyledWeek = exports.StyledWeek = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
70
70
  displayName: "StyledCalendar__StyledWeek",
71
71
  componentId: "sc-1y4xhmp-3"
72
72
  })(["display:flex;justify-content:space-between;", ""], function (props) {
@@ -77,7 +77,7 @@ Object.setPrototypeOf(StyledWeek.defaultProps, _defaultProps.defaultProps);
77
77
 
78
78
  // The width of 14.3% is derived from dividing 100/7. We want the
79
79
  // widths of 7 days to equally fill 100% of the row.
80
- var StyledDayContainer = exports.StyledDayContainer = _styledComponents["default"].div.withConfig({
80
+ var StyledDayContainer = exports.StyledDayContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
81
81
  displayName: "StyledCalendar__StyledDayContainer",
82
82
  componentId: "sc-1y4xhmp-4"
83
83
  })(["flex:0 1 auto;", ""], function (props) {
@@ -89,7 +89,7 @@ var daySizeStyle = function daySizeStyle(props) {
89
89
  var data = props.theme.calendar[props.sizeProp];
90
90
  return (0, _styledComponents.css)(["width:", ";height:", ";"], props.fillContainer ? '100%' : data.daySize, props.fillContainer ? '100%' : data.daySize);
91
91
  };
92
- var StyledDay = exports.StyledDay = _styledComponents["default"].div.withConfig({
92
+ var StyledDay = exports.StyledDay = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
93
93
  displayName: "StyledCalendar__StyledDay",
94
94
  componentId: "sc-1y4xhmp-5"
95
95
  })(["display:flex;justify-content:center;align-items:center;", " ", " ", " ", " ", " ", ""], function (props) {
@@ -16,7 +16,7 @@ var animateStyle = function animateStyle(_ref) {
16
16
  animateBounds = ['stroke-dashoffset: 200%;', 'stroke-dashoffset: 0%;'];else if (typeProp === 'point') animateBounds = ['opacity: 0;', 'opacity: 1;'];else animateBounds = ['transform: scaleY(0);', 'transform: scaleY(1);'];
17
17
  return (0, _styledComponents.css)(["", " animation:", " ", " forwards;", ""], typeProp === 'line' && 'stroke-dasharray: 200%;', (0, _styledComponents.keyframes)(["from{", "}to{", "}"], animateBounds[0], animateBounds[1]), theme.global.animation.duration, (typeProp === 'bar' || typeProp === 'area') && 'transform-origin: center bottom 0;');
18
18
  };
19
- var StyledChart = exports.StyledChart = _styledComponents["default"].svg.withConfig({
19
+ var StyledChart = exports.StyledChart = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
20
20
  displayName: "StyledChart",
21
21
  componentId: "sc-1nae0gf-0"
22
22
  })(["display:block;max-width:100%;overflow:visible;", " ", " ", ";"], _utils.genericStyles, function (props) {
@@ -6,7 +6,6 @@ var _react = _interopRequireWildcard(require("react"));
6
6
  var _styledComponents = require("styled-components");
7
7
  var _object = require("../../utils/object");
8
8
  var _defaultProps = require("../../default-props");
9
- var _Box = require("../Box");
10
9
  var _FormContext = require("../Form/FormContext");
11
10
  var _propTypes = require("./propTypes");
12
11
  var _StyledCheckBox = require("./StyledCheckBox");
@@ -105,7 +104,6 @@ var CheckBox = exports.CheckBox = /*#__PURE__*/(0, _react.forwardRef)(function (
105
104
  borderColor = (0, _utils.normalizeColor)(theme.checkBox.color || 'control', theme);
106
105
  }
107
106
  var visual = toggle ? /*#__PURE__*/_react["default"].createElement(_StyledCheckBox.StyledCheckBoxToggle, themeableProps, /*#__PURE__*/_react["default"].createElement(_StyledCheckBox.StyledCheckBoxKnob, themeableProps)) : /*#__PURE__*/_react["default"].createElement(_StyledCheckBox.StyledCheckBoxBox, _extends({
108
- as: _Box.Box,
109
107
  align: "center",
110
108
  justify: "center",
111
109
  width: theme.checkBox.size,
@@ -138,7 +136,6 @@ var CheckBox = exports.CheckBox = /*#__PURE__*/(0, _react.forwardRef)(function (
138
136
  }))));
139
137
  var side = !reverse !== !theme.dir ? 'left' : 'right';
140
138
  var checkBoxNode = /*#__PURE__*/_react["default"].createElement(_StyledCheckBox.StyledCheckBox, _extends({
141
- as: _Box.Box,
142
139
  align: "center",
143
140
  justify: "center",
144
141
  margin: label && (_ref2 = {}, _ref2[side] = theme.checkBox.gap || 'small', _ref2)
@@ -5,6 +5,7 @@ exports.StyledCheckBoxToggle = exports.StyledCheckBoxKnob = exports.StyledCheckB
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
  // Note: since `fillStyle` is only used in one place, `justify-content` was
@@ -14,7 +15,7 @@ var fillStyle = function fillStyle() {
14
15
  return "\n width: auto;\n height: 100%;\n max-width: none;\n flex: 1 0 auto;\n justify-content: space-between;\n ";
15
16
  };
16
17
  var disabledStyle = "\n opacity: 0.5;\n cursor: default;\n";
17
- var hoverStyle = (0, _styledComponents.css)([":hover input:not([disabled]) + div,:hover input:not([disabled]) + span{border-color:", ";", "}:hover{background-color:", ";}"], function (props) {
18
+ var hoverStyle = (0, _styledComponents.css)(["&:hover input:not([disabled]) + div,&:hover input:not([disabled]) + span{border-color:", ";", "}&:hover{background-color:", ";}"], function (props) {
18
19
  var _props$theme$checkBox;
19
20
  return (0, _utils.normalizeColor)((_props$theme$checkBox = props.theme.checkBox.hover) == null || (_props$theme$checkBox = _props$theme$checkBox.border) == null ? void 0 : _props$theme$checkBox.color, props.theme);
20
21
  }, function (props) {
@@ -24,7 +25,7 @@ var hoverStyle = (0, _styledComponents.css)([":hover input:not([disabled]) + div
24
25
  var _props$theme$checkBox3;
25
26
  return (0, _utils.normalizeColor)(!props.disabled && ((_props$theme$checkBox3 = props.theme.checkBox.hover) == null || (_props$theme$checkBox3 = _props$theme$checkBox3.background) == null ? void 0 : _props$theme$checkBox3.color), props.theme);
26
27
  });
27
- var StyledCheckBoxIcon = exports.StyledCheckBoxIcon = _styledComponents["default"].svg.withConfig({
28
+ var StyledCheckBoxIcon = exports.StyledCheckBoxIcon = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
28
29
  displayName: "StyledCheckBox__StyledCheckBoxIcon",
29
30
  componentId: "sc-1dbk5ju-0"
30
31
  })(["box-sizing:border-box;stroke-width:", ";stroke:", ";width:", ";height:", ";", ";"], function (props) {
@@ -40,10 +41,10 @@ var StyledCheckBoxIcon = exports.StyledCheckBoxIcon = _styledComponents["default
40
41
  });
41
42
  StyledCheckBoxIcon.defaultProps = {};
42
43
  Object.setPrototypeOf(StyledCheckBoxIcon.defaultProps, _defaultProps.defaultProps);
43
- var StyledCheckBoxContainer = exports.StyledCheckBoxContainer = _styledComponents["default"].label.withConfig({
44
+ var StyledCheckBoxContainer = exports.StyledCheckBoxContainer = _styledComponents["default"].label.withConfig(_utils.styledComponentsConfig).withConfig({
44
45
  displayName: "StyledCheckBox__StyledCheckBoxContainer",
45
46
  componentId: "sc-1dbk5ju-1"
46
- })(["display:flex;flex-direction:row;align-items:", ";user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
47
+ })(["display:flex;flex-direction:row;align-items:", ";user-select:none;-webkit-user-select:none;", " ", " ", " ", " ", " ", " ", ""], function (props) {
47
48
  return typeof props.label === 'string' ? props.theme.checkBox.label.align : undefined;
48
49
  }, function (props) {
49
50
  return props.fillProp ? fillStyle() : 'width: fit-content;';
@@ -61,10 +62,10 @@ var StyledCheckBoxContainer = exports.StyledCheckBoxContainer = _styledComponent
61
62
  });
62
63
  StyledCheckBoxContainer.defaultProps = {};
63
64
  Object.setPrototypeOf(StyledCheckBoxContainer.defaultProps, _defaultProps.defaultProps);
64
- var StyledCheckBoxInput = exports.StyledCheckBoxInput = _styledComponents["default"].input.withConfig({
65
+ var StyledCheckBoxInput = exports.StyledCheckBoxInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
65
66
  displayName: "StyledCheckBox__StyledCheckBoxInput",
66
67
  componentId: "sc-1dbk5ju-2"
67
- })(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", ":checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
68
+ })(["opacity:0;-moz-appearance:none;width:0;height:0;margin:0;", " &:checked + span > span{", ":calc( ", " - ", " );background:", ";}"], function (props) {
68
69
  return !props.disabled && 'cursor: pointer;';
69
70
  }, function (props) {
70
71
  return !props.theme.dir ? 'left' : 'right';
@@ -77,7 +78,7 @@ var StyledCheckBoxInput = exports.StyledCheckBoxInput = _styledComponents["defau
77
78
  });
78
79
  StyledCheckBoxInput.defaultProps = {};
79
80
  Object.setPrototypeOf(StyledCheckBoxInput.defaultProps, _defaultProps.defaultProps);
80
- var StyledCheckBoxBox = exports.StyledCheckBoxBox = _styledComponents["default"].div.withConfig({
81
+ var StyledCheckBoxBox = exports.StyledCheckBoxBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
81
82
  displayName: "StyledCheckBox__StyledCheckBoxBox",
82
83
  componentId: "sc-1dbk5ju-3"
83
84
  })(["", ";", ";"], function (props) {
@@ -87,7 +88,7 @@ var StyledCheckBoxBox = exports.StyledCheckBoxBox = _styledComponents["default"]
87
88
  });
88
89
  StyledCheckBoxBox.defaultProps = {};
89
90
  Object.setPrototypeOf(StyledCheckBoxBox.defaultProps, _defaultProps.defaultProps);
90
- var StyledCheckBoxToggle = exports.StyledCheckBoxToggle = _styledComponents["default"].span.withConfig({
91
+ var StyledCheckBoxToggle = exports.StyledCheckBoxToggle = _styledComponents["default"].span.withConfig(_utils.styledComponentsConfig).withConfig({
91
92
  displayName: "StyledCheckBox__StyledCheckBoxToggle",
92
93
  componentId: "sc-1dbk5ju-4"
93
94
  })(["box-sizing:border-box;vertical-align:middle;display:inline-block;width:", ";height:", ";border:", " solid;border-color:", ";border-radius:", ";background-color:", ";", ";", ";"], function (props) {
@@ -109,7 +110,7 @@ var StyledCheckBoxToggle = exports.StyledCheckBoxToggle = _styledComponents["def
109
110
  });
110
111
  StyledCheckBoxToggle.defaultProps = {};
111
112
  Object.setPrototypeOf(StyledCheckBoxToggle.defaultProps, _defaultProps.defaultProps);
112
- var StyledCheckBoxKnob = exports.StyledCheckBoxKnob = _styledComponents["default"].span.withConfig({
113
+ var StyledCheckBoxKnob = exports.StyledCheckBoxKnob = _styledComponents["default"].span.withConfig(_utils.styledComponentsConfig).withConfig({
113
114
  displayName: "StyledCheckBox__StyledCheckBoxKnob",
114
115
  componentId: "sc-1dbk5ju-5"
115
116
  })(["box-sizing:border-box;position:relative;display:inherit;top:-", ";", ":-", ";transition:all 0.3s;width:", ";height:", ";background:", ";border-radius:", ";", ";"], function (props) {
@@ -131,7 +132,7 @@ var StyledCheckBoxKnob = exports.StyledCheckBoxKnob = _styledComponents["default
131
132
  });
132
133
  StyledCheckBoxKnob.defaultProps = {};
133
134
  Object.setPrototypeOf(StyledCheckBoxKnob.defaultProps, _defaultProps.defaultProps);
134
- var StyledCheckBox = exports.StyledCheckBox = _styledComponents["default"].div.withConfig({
135
+ var StyledCheckBox = exports.StyledCheckBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
135
136
  displayName: "StyledCheckBox",
136
137
  componentId: "sc-1dbk5ju-6"
137
138
  })(["flex-shrink:0;"]);
@@ -7,7 +7,7 @@ var _utils = require("../../utils");
7
7
  var _defaultProps = require("../../default-props");
8
8
  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
9
  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
- var StyledHour = exports.StyledHour = _styledComponents["default"].line.withConfig({
10
+ var StyledHour = exports.StyledHour = _styledComponents["default"].line.withConfig(_utils.styledComponentsConfig).withConfig({
11
11
  displayName: "StyledClock__StyledHour",
12
12
  componentId: "sc-y4xw8s-0"
13
13
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -17,7 +17,7 @@ var StyledHour = exports.StyledHour = _styledComponents["default"].line.withConf
17
17
  });
18
18
  StyledHour.defaultProps = {};
19
19
  Object.setPrototypeOf(StyledHour.defaultProps, _defaultProps.defaultProps);
20
- var StyledMinute = exports.StyledMinute = _styledComponents["default"].line.withConfig({
20
+ var StyledMinute = exports.StyledMinute = _styledComponents["default"].line.withConfig(_utils.styledComponentsConfig).withConfig({
21
21
  displayName: "StyledClock__StyledMinute",
22
22
  componentId: "sc-y4xw8s-1"
23
23
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -27,7 +27,7 @@ var StyledMinute = exports.StyledMinute = _styledComponents["default"].line.with
27
27
  });
28
28
  StyledMinute.defaultProps = {};
29
29
  Object.setPrototypeOf(StyledMinute.defaultProps, _defaultProps.defaultProps);
30
- var StyledSecond = exports.StyledSecond = _styledComponents["default"].line.withConfig({
30
+ var StyledSecond = exports.StyledSecond = _styledComponents["default"].line.withConfig(_utils.styledComponentsConfig).withConfig({
31
31
  displayName: "StyledClock__StyledSecond",
32
32
  componentId: "sc-y4xw8s-2"
33
33
  })(["stroke-width:", ";stroke:", ";transition:stroke 1s ease-out;"], function (props) {
@@ -37,7 +37,7 @@ var StyledSecond = exports.StyledSecond = _styledComponents["default"].line.with
37
37
  });
38
38
  StyledSecond.defaultProps = {};
39
39
  Object.setPrototypeOf(StyledSecond.defaultProps, _defaultProps.defaultProps);
40
- var StyledAnalog = exports.StyledAnalog = _styledComponents["default"].svg.withConfig({
40
+ var StyledAnalog = exports.StyledAnalog = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
41
41
  displayName: "StyledClock__StyledAnalog",
42
42
  componentId: "sc-y4xw8s-3"
43
43
  })(["width:", ";height:", ";", " ", ";"], function (props) {
@@ -55,7 +55,7 @@ var sizeStyle = function sizeStyle(props) {
55
55
  var data = props.theme.clock.digital.text[size] || {};
56
56
  return (0, _styledComponents.css)(["font-size:", ";line-height:", ";"], data.size || props.theme.clock.digital.text.medium.size, data.height || props.theme.clock.digital.text.medium.height);
57
57
  };
58
- var StyledDigitalDigit = exports.StyledDigitalDigit = _styledComponents["default"].div.withConfig({
58
+ var StyledDigitalDigit = exports.StyledDigitalDigit = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
59
59
  displayName: "StyledClock__StyledDigitalDigit",
60
60
  componentId: "sc-y4xw8s-4"
61
61
  })(["position:relative;width:0.8em;text-align:center;overflow:hidden;", ";"], function (props) {
@@ -65,7 +65,7 @@ StyledDigitalDigit.defaultProps = {};
65
65
  Object.setPrototypeOf(StyledDigitalDigit.defaultProps, _defaultProps.defaultProps);
66
66
  var previousUp = (0, _styledComponents.keyframes)(["0%{transform:translateY(0);}100%{transform:translateY(-100%);}"]);
67
67
  var previousDown = (0, _styledComponents.keyframes)(["0%{transform:translateY(0);}100%{transform:translateY(100%);}"]);
68
- var StyledDigitalPrevious = exports.StyledDigitalPrevious = _styledComponents["default"].div.withConfig({
68
+ var StyledDigitalPrevious = exports.StyledDigitalPrevious = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
69
69
  displayName: "StyledClock__StyledDigitalPrevious",
70
70
  componentId: "sc-y4xw8s-5"
71
71
  })(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
@@ -75,7 +75,7 @@ StyledDigitalPrevious.defaultProps = {};
75
75
  Object.setPrototypeOf(StyledDigitalPrevious.defaultProps, _defaultProps.defaultProps);
76
76
  var nextUp = (0, _styledComponents.keyframes)(["0%{transform:translateY(100%);}100%{transform:translateY(0);}"]);
77
77
  var nextDown = (0, _styledComponents.keyframes)(["0%{transform:translateY(-100%);}100%{transform:translateY(0);}"]);
78
- var StyledDigitalNext = exports.StyledDigitalNext = _styledComponents["default"].div.withConfig({
78
+ var StyledDigitalNext = exports.StyledDigitalNext = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
79
79
  displayName: "StyledClock__StyledDigitalNext",
80
80
  componentId: "sc-y4xw8s-6"
81
81
  })(["position:absolute;top:0;left:0;width:0.8em;text-align:center;animation:", " 0.5s forwards;"], function (props) {
@@ -100,7 +100,7 @@ var StyledDataTableCell = exports.StyledDataTableCell = (0, _styledComponents["d
100
100
  });
101
101
  StyledDataTableCell.defaultProps = {};
102
102
  Object.setPrototypeOf(StyledDataTableCell.defaultProps, _defaultProps.defaultProps);
103
- var StyledPlaceholder = exports.StyledPlaceholder = (0, _styledComponents["default"])('caption').withConfig({
103
+ var StyledPlaceholder = exports.StyledPlaceholder = (0, _styledComponents["default"])('caption').withConfig(_utils.styledComponentsConfig).withConfig({
104
104
  displayName: "StyledDataTable__StyledPlaceholder",
105
105
  componentId: "sc-xrlyjm-7"
106
106
  })(["position:absolute;", " ", " left:0;right:0;"], function (props) {
@@ -36,7 +36,7 @@ var customTheme = {
36
36
  var column = _ref.column,
37
37
  sort = _ref.sort,
38
38
  sortable = _ref.sortable;
39
- return "\n " + (sortable && sort && sort.property !== column && "\n :hover {\n svg {\n opacity: 100%;\n }\n }\n ") + "\n ";
39
+ return "\n " + (sortable && sort && sort.property !== column && "\n &:hover {\n svg {\n opacity: 100%;\n }\n }\n ") + "\n ";
40
40
  }
41
41
  },
42
42
  icons: {
@@ -5,6 +5,7 @@ exports.StyledDiagram = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
6
  var _defaultProps = require("../../default-props");
7
7
  var _animation = require("../../utils/animation");
8
+ var _styles = require("../../utils/styles");
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 animationItemStyle = function animationItemStyle(animationType, theme) {
@@ -43,7 +44,7 @@ var connectionStyle = function connectionStyle(connection, index, theme) {
43
44
  return (0, _styledComponents.css)(["path:nth-child(", "){stroke-dasharray:", ";stroke-dashoffset:", ";animation:", ";}"], index + 1, animationType === 'draw' || animationType === true ? 500 : 0, animationType === 'draw' || animationType === true ? 500 : 0, animationItemStyle(connection.props.animation, theme));
44
45
  };
45
46
  var availableAnimations = [true, 'draw', 'pulse'];
46
- var StyledDiagram = exports.StyledDiagram = _styledComponents["default"].svg.withConfig({
47
+ var StyledDiagram = exports.StyledDiagram = _styledComponents["default"].svg.withConfig(_styles.styledComponentsConfig).withConfig({
47
48
  displayName: "StyledDiagram",
48
49
  componentId: "sc-1vzeu9f-0"
49
50
  })(["max-width:100%;width:100%;height:100%;", " ", " ", ""], function (props) {
@@ -8,7 +8,6 @@ var _ContainerTargetContext = require("../../contexts/ContainerTargetContext");
8
8
  var _FocusedContainer = require("../FocusedContainer");
9
9
  var _utils = require("../../utils");
10
10
  var _defaultProps = require("../../default-props");
11
- var _Box = require("../Box");
12
11
  var _Keyboard = require("../Keyboard");
13
12
  var _StyledDrop = require("./StyledDrop");
14
13
  var _OptionsContext = require("../../contexts/OptionsContext");
@@ -275,7 +274,6 @@ var DropContainer = exports.DropContainer = /*#__PURE__*/(0, _react.forwardRef)(
275
274
  var content = /*#__PURE__*/_react["default"].createElement(_StyledDrop.StyledDrop, _extends({
276
275
  "aria-label": a11yTitle || ariaLabel,
277
276
  ref: dropRef,
278
- as: _Box.Box,
279
277
  background: background,
280
278
  plain: plain,
281
279
  elevation: !plain ? elevation || theme.global.drop.elevation || theme.global.drop.shadowSize ||
@@ -3,6 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.StyledDrop = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var _Box = require("../Box");
6
7
  var _styles = require("../../utils/styles");
7
8
  var _background = require("../../utils/background");
8
9
  var _defaultProps = require("../../default-props");
@@ -36,7 +37,7 @@ var marginStyle = function marginStyle(theme, align, data, responsive, marginPro
36
37
  }
37
38
  return (0, _styles.edgeStyle)('margin', adjustedMargin, responsive, theme.global.edgeSize.responsiveBreakpoint, theme);
38
39
  };
39
- var StyledDrop = exports.StyledDrop = _styledComponents["default"].div.withConfig({
40
+ var StyledDrop = exports.StyledDrop = (0, _styledComponents["default"])(_Box.Box).withConfig({
40
41
  displayName: "StyledDrop",
41
42
  componentId: "sc-16s5rx8-0"
42
43
  })(["", " ", " position:fixed;z-index:", ";outline:none;", " ", " opacity:0;transform-origin:", ";animation:", " 0.1s forwards;animation-delay:0.01s;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){display:flex;align-items:stretch;}", ""], _styles.baseStyle, function (props) {
@@ -6,7 +6,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
6
6
  var _utils = require("../../utils");
7
7
  var _defaultProps = require("../../default-props");
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- var StyledFileInput = exports.StyledFileInput = _styledComponents["default"].input.withConfig({
9
+ var StyledFileInput = exports.StyledFileInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
10
10
  displayName: "StyledFileInput",
11
11
  componentId: "sc-rl7ywv-0"
12
12
  })(["position:absolute;height:100%;width:100%;", " font-size:0;opacity:0;border:none;", " ", " &::-moz-focus-inner{border:none;outline:none;}&::-webkit-file-upload-button{cursor:pointer;}"], _utils.inputStyle, function (props) {
@@ -168,7 +168,7 @@ var areasStyle = function areasStyle(props) {
168
168
  return "\"" + r.join(' ') + "\"";
169
169
  }).join(' ') + ";";
170
170
  };
171
- var StyledGrid = exports.StyledGrid = _styledComponents["default"].div.attrs(function (props) {
171
+ var StyledGrid = exports.StyledGrid = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).attrs(function (props) {
172
172
  return {
173
173
  'aria-label': props.a11yTitleProp
174
174
  };
@@ -11,7 +11,7 @@ var fullStyle = function fullStyle(full) {
11
11
  if (full === 'min') return (0, _styledComponents.css)(["min-height:100vh;"]);
12
12
  return (0, _styledComponents.css)(["width:100vw;height:100vh;overflow:auto;"]);
13
13
  };
14
- var StyledGrommet = exports.StyledGrommet = _styledComponents["default"].div.withConfig({
14
+ var StyledGrommet = exports.StyledGrommet = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
15
15
  displayName: "StyledGrommet",
16
16
  componentId: "sc-19lkkz7-0"
17
17
  })(["", " ", " ", " ", " ", ""], function (props) {
@@ -41,7 +41,7 @@ var truncateStyle = "\n white-space: nowrap;\n overflow: hidden;\n text-overf
41
41
  var colorStyle = (0, _styledComponents.css)(["color:", ";"], function (props) {
42
42
  return (0, _utils.normalizeColor)(props.colorProp || props.theme.heading.color, props.theme);
43
43
  });
44
- var StyledHeading = exports.StyledHeading = _styledComponents["default"].h1.withConfig({
44
+ var StyledHeading = exports.StyledHeading = _styledComponents["default"].h1.withConfig(_utils.styledComponentsConfig).withConfig({
45
45
  displayName: "StyledHeading",
46
46
  componentId: "sc-1rdh4aw-0"
47
47
  })(["", " ", " ", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -14,7 +14,7 @@ var FIT_MAP = {
14
14
  var fitStyle = (0, _styledComponents.css)(["flex:1 1;overflow:hidden;object-fit:", ";"], function (props) {
15
15
  return FIT_MAP[props.fit];
16
16
  });
17
- var StyledImage = exports.StyledImage = _styledComponents["default"].img.withConfig({
17
+ var StyledImage = exports.StyledImage = _styledComponents["default"].img.withConfig(_utils.styledComponentsConfig).withConfig({
18
18
  displayName: "StyledImage",
19
19
  componentId: "sc-ey4zx9-0"
20
20
  })(["", " ", " ", " ", " ", ""], _utils.genericStyles, function (props) {
@@ -18,7 +18,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
18
18
  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; }
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
20
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
21
- var HiddenAnchor = _styledComponents["default"].a.withConfig({
21
+ var HiddenAnchor = _styledComponents["default"].a.withConfig(_utils.styledComponentsConfig).withConfig({
22
22
  displayName: "LayerContainer__HiddenAnchor",
23
23
  componentId: "sc-1srj14c-0"
24
24
  })(["width:0;height:0;overflow:hidden;position:absolute;"]);
@@ -3,14 +3,16 @@
3
3
  exports.__esModule = true;
4
4
  exports.animationDuration = exports.StyledOverlay = exports.StyledLayer = exports.StyledContainer = void 0;
5
5
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
6
+ var _isPropValid = _interopRequireDefault(require("@emotion/is-prop-valid"));
6
7
  var _utils = require("../../utils");
7
8
  var _defaultProps = require("../../default-props");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8
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); }
9
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; }
10
12
  var hiddenPositionStyle = (0, _styledComponents.css)(["left:-100%;right:100%;z-index:-1;position:fixed;"]);
11
13
  var desktopLayerStyle = "\n position: fixed;\n top: 0px;\n left: 0px;\n right: 0px;\n bottom: 0px;\n";
12
14
  var responsiveLayerStyle = "\n position: fixed;\n width: 100%;\n height: 100%;\n min-height: 100vh;\n";
13
- var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withConfig({
15
+ var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
14
16
  displayName: "StyledLayer",
15
17
  componentId: "sc-rmtehz-0"
16
18
  })(["", " background:transparent;position:relative;z-index:", ";pointer-events:none;outline:none;", " ", ";"], _utils.baseStyle, function (props) {
@@ -31,7 +33,7 @@ var StyledLayer = exports.StyledLayer = _styledComponents["default"].div.withCon
31
33
  });
32
34
  StyledLayer.defaultProps = {};
33
35
  Object.setPrototypeOf(StyledLayer.defaultProps, _defaultProps.defaultProps);
34
- var StyledOverlay = exports.StyledOverlay = _styledComponents["default"].div.withConfig({
36
+ var StyledOverlay = exports.StyledOverlay = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
35
37
  displayName: "StyledLayer__StyledOverlay",
36
38
  componentId: "sc-rmtehz-1"
37
39
  })(["position:absolute;", " top:0px;left:0px;right:0px;bottom:0px;", " ", " pointer-events:all;will-change:transform;"], function (props) {
@@ -447,10 +449,8 @@ var elevationStyle = (0, _styledComponents.css)(["box-shadow:", ";"], function (
447
449
  return props.theme.global.elevation[props.theme.dark ? 'dark' : 'light'][props.theme.layer.container.elevation];
448
450
  });
449
451
  var StyledContainer = exports.StyledContainer = _styledComponents["default"].div.withConfig({
450
- // don't let elevation leak to DOM
451
- // https://styled-components.com/docs/api#shouldforwardprop
452
- shouldForwardProp: function shouldForwardProp(prop, defaultValidatorFn) {
453
- return !['elevation'].includes(prop) && defaultValidatorFn(prop);
452
+ shouldForwardProp: function shouldForwardProp(prop) {
453
+ return (0, _isPropValid["default"])(prop) && !['elevation'].includes(prop);
454
454
  }
455
455
  }).withConfig({
456
456
  displayName: "StyledLayer__StyledContainer",
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
20
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
22
22
  var emptyData = [];
23
- var StyledList = _styledComponents["default"].ul.withConfig({
23
+ var StyledList = _styledComponents["default"].ul.withConfig(_utils.styledComponentsConfig).withConfig({
24
24
  displayName: "List__StyledList",
25
25
  componentId: "sc-130gdqg-0"
26
26
  })(["list-style:none;", " padding:0;", " &:focus{", "}", "}", "}"], function (props) {
@@ -5,9 +5,10 @@ exports["default"] = exports.ComponentOverrideMarkdown = void 0;
5
5
  var _react = _interopRequireDefault(require("react"));
6
6
  var _styledComponents = _interopRequireDefault(require("styled-components"));
7
7
  var _grommet = require("grommet");
8
+ var _styles = require("../../../utils/styles");
8
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
10
  var CONTENT = "\n # Out of Breath\n\n You know, sometimes in life it seems like there's no way out. Like\n a sheep trapped in a maze designed by wolves. See all the\n options [here](https://github.com/probablyup/markdown-to-jsx/)\n\n [reference](#)\n\n```\nimport { Grommet } from 'grommet';\n```\n\n > i carry your heart with me\n\n ![alt text](//v2.grommet.io/assets/IMG_4245.jpg \"Markdown Image\")\n\n Markdown | Less | Pretty\n --- | --- | ---\n *Still* | `renders` | **nicely**\n 1 | 2 | 3\n";
10
- var StyledPre = _styledComponents["default"].pre.withConfig({
11
+ var StyledPre = _styledComponents["default"].pre.withConfig(_styles.styledComponentsConfig).withConfig({
11
12
  displayName: "Override__StyledPre",
12
13
  componentId: "sc-13lo9xg-0"
13
14
  })(["background-color:#ffca58;"]);
@@ -6,7 +6,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
6
6
  var _utils = require("../../utils");
7
7
  var _styles = require("../../utils/styles");
8
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"].input.withConfig({
9
+ var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"].input.withConfig(_utils.styledComponentsConfig).withConfig({
10
10
  displayName: "StyledMaskedInput",
11
11
  componentId: "sc-99vkfa-0"
12
12
  })(["", " ", " ", " ", " ", " ", ";"], _utils.inputStyle, function (props) {
@@ -20,13 +20,13 @@ var StyledMaskedInput = exports.StyledMaskedInput = _styledComponents["default"]
20
20
  }, function (props) {
21
21
  return props.theme.maskedInput && props.theme.maskedInput.extend;
22
22
  });
23
- var StyledMaskedInputContainer = exports.StyledMaskedInputContainer = _styledComponents["default"].div.withConfig({
23
+ var StyledMaskedInputContainer = exports.StyledMaskedInputContainer = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
24
24
  displayName: "StyledMaskedInput__StyledMaskedInputContainer",
25
25
  componentId: "sc-99vkfa-1"
26
26
  })(["position:relative;width:100%;", ";"], function (props) {
27
27
  return props.theme.maskedInput && props.theme.maskedInput.container && props.theme.maskedInput.container.extend;
28
28
  });
29
- var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig({
29
+ var StyledIcon = exports.StyledIcon = _styledComponents["default"].div.withConfig(_utils.styledComponentsConfig).withConfig({
30
30
  displayName: "StyledMaskedInput__StyledIcon",
31
31
  componentId: "sc-99vkfa-2"
32
32
  })(["position:absolute;display:flex;justify:center;top:50%;transform:translateY(-50%);pointer-events:none;", ""], function (props) {
@@ -22,7 +22,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
22
22
  var ContainerBox = (0, _styledComponents["default"])(_Box.Box).withConfig({
23
23
  displayName: "Menu__ContainerBox",
24
24
  componentId: "sc-17fcys9-0"
25
- })(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}:focus{outline:none;}", ";"], function (props) {
25
+ })(["max-height:inherit;@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){width:100%;}&:focus{outline:none;}", ";"], function (props) {
26
26
  return props.theme.menu.extend;
27
27
  });
28
28
 
@@ -12,7 +12,7 @@ var roundStyle = (0, _styledComponents.css)(["border-radius:", ";"], function (p
12
12
  });
13
13
 
14
14
  // overflow: hidden is needed for ie11
15
- var StyledMeter = exports.StyledMeter = _styledComponents["default"].svg.withConfig({
15
+ var StyledMeter = exports.StyledMeter = _styledComponents["default"].svg.withConfig(_utils.styledComponentsConfig).withConfig({
16
16
  displayName: "StyledMeter",
17
17
  componentId: "sc-nsxarx-0"
18
18
  })(["max-width:100%;overflow:hidden;", " ", " ", " path{transition:stroke 0.3s,stroke-width 0.3s;}", ";"], function (props) {