@helpdice/ui 1.4.9 → 1.5.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 (92) hide show
  1. package/dist/CircularProgress/index.js +6 -6
  2. package/dist/Placeholder/index.js +41 -41
  3. package/dist/auto-complete/index.js +60 -60
  4. package/dist/avatar/index.js +28 -28
  5. package/dist/badge/index.js +27 -27
  6. package/dist/breadcrumbs/index.js +34 -34
  7. package/dist/button/button.compact.d.ts +2 -2
  8. package/dist/button/index.js +46 -45
  9. package/dist/button-dropdown/index.js +34 -34
  10. package/dist/button-group/index.js +25 -25
  11. package/dist/capacity/index.js +26 -26
  12. package/dist/card/index.js +44 -44
  13. package/dist/checkbox/index.js +30 -30
  14. package/dist/code/index.js +27 -27
  15. package/dist/col/index.js +8 -8
  16. package/dist/collapse/index.js +30 -30
  17. package/dist/css-baseline/index.js +6 -6
  18. package/dist/description/index.js +26 -26
  19. package/dist/display/index.js +26 -26
  20. package/dist/divider/index.js +26 -26
  21. package/dist/dot/index.js +25 -25
  22. package/dist/drawer/index.js +53 -53
  23. package/dist/fieldset/index.js +33 -33
  24. package/dist/form/FormWrapper.d.ts +7 -7
  25. package/dist/form/connect.d.ts +1 -0
  26. package/dist/grid/index.js +33 -33
  27. package/dist/html-renderer/index.d.ts +6 -0
  28. package/dist/image/index.js +37 -37
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1899 -547
  31. package/dist/input/index.js +40 -40
  32. package/dist/keyboard/index.js +28 -28
  33. package/dist/link/index.js +29 -29
  34. package/dist/loading/index.js +26 -26
  35. package/dist/modal/index.js +75 -75
  36. package/dist/note/index.js +27 -27
  37. package/dist/page/index.js +30 -30
  38. package/dist/pagination/index.js +27 -27
  39. package/dist/popover/index.js +57 -57
  40. package/dist/progress/index.js +29 -29
  41. package/dist/radio/index.js +30 -30
  42. package/dist/rating/index.js +29 -29
  43. package/dist/row/index.js +11 -11
  44. package/dist/search-bar/index.js +1826 -61
  45. package/dist/select/index.js +60 -60
  46. package/dist/slider/index.js +35 -35
  47. package/dist/snippet/index.js +30 -30
  48. package/dist/spacer/index.js +25 -25
  49. package/dist/spinner/index.js +24 -24
  50. package/dist/table/index.js +224 -211
  51. package/dist/tabs/index.js +39 -39
  52. package/dist/tag/index.js +26 -26
  53. package/dist/text/index.js +40 -40
  54. package/dist/textarea/index.js +29 -29
  55. package/dist/themes/index.js +2 -2
  56. package/dist/toggle/index.js +27 -27
  57. package/dist/tooltip/index.js +42 -42
  58. package/dist/tree/index.js +23 -23
  59. package/dist/ui-provider/index.js +48 -48
  60. package/dist/use-all-themes/index.js +2 -2
  61. package/dist/use-body-scroll/index.js +5 -5
  62. package/dist/use-clipboard/index.js +1 -1
  63. package/dist/use-current-state/index.js +1 -1
  64. package/dist/use-input/index.js +1 -1
  65. package/dist/use-keyboard/index.js +5 -5
  66. package/dist/use-media-query/index.js +5 -5
  67. package/dist/use-modal/index.js +1 -1
  68. package/dist/use-scale/index.js +19 -19
  69. package/dist/use-tabs/index.js +1 -1
  70. package/dist/use-theme/index.js +2 -2
  71. package/dist/use-toasts/index.js +3 -3
  72. package/dist/user/index.js +36 -36
  73. package/esm/button/button.compact.d.ts +2 -2
  74. package/esm/button/button.compact.js +4 -2
  75. package/esm/form/FastField.js +1 -1
  76. package/esm/form/FormWrapper.d.ts +7 -7
  77. package/esm/form/FormWrapper.js +2 -2
  78. package/esm/form/connect.d.ts +1 -0
  79. package/esm/form/connect.js +2 -1
  80. package/esm/html-renderer/index.d.ts +6 -0
  81. package/esm/html-renderer/index.js +12 -0
  82. package/esm/index.d.ts +1 -0
  83. package/esm/index.js +1 -0
  84. package/esm/link/link.js +2 -0
  85. package/esm/login-with/LoginSocialAmazon/index.js +162 -134
  86. package/esm/login-with/index.js +2 -0
  87. package/esm/search-bar/components/index.js +4 -7
  88. package/esm/table/data-table.js +6 -4
  89. package/esm/table/table.js +12 -1
  90. package/package.json +5 -3
  91. package/esm/formik-native/src/index.js +0 -12
  92. package/esm/formik-native/test/blah.test.js +0 -5
@@ -151,8 +151,8 @@ function _slicedToArray(r, e) {
151
151
  function _toPrimitive(t, r) {
152
152
  if ("object" != typeof t || !t) return t;
153
153
  var e = t[Symbol.toPrimitive];
154
- if (undefined !== e) {
155
- var i = e.call(t, r || "default");
154
+ if (void 0 !== e) {
155
+ var i = e.call(t, r);
156
156
  if ("object" != typeof i) return i;
157
157
  throw new TypeError("@@toPrimitive must return a primitive value.");
158
158
  }
@@ -175,7 +175,7 @@ function _unsupportedIterableToArray(r, a) {
175
175
  if (r) {
176
176
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
177
177
  var t = {}.toString.call(r).slice(8, -1);
178
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
178
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
179
179
  }
180
180
  }
181
181
 
@@ -209,7 +209,7 @@ function requireIndex () {
209
209
  }
210
210
  }
211
211
  function _createClass(Constructor, protoProps, staticProps) {
212
- _defineProperties(Constructor.prototype, protoProps);
212
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
213
213
  return Constructor;
214
214
  }
215
215
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -218,7 +218,7 @@ function requireIndex () {
218
218
  };
219
219
  var StyleSheet = /*#__PURE__*/ function() {
220
220
  function StyleSheet(param) {
221
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
221
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
222
222
  invariant$1(isString(name), "`name` must be a string");
223
223
  this._name = name;
224
224
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -476,7 +476,7 @@ function requireIndex () {
476
476
  }
477
477
 
478
478
  function mapRulesToStyle(cssRules, options) {
479
- if (options === undefined) options = {};
479
+ if (options === void 0) options = {};
480
480
  return cssRules.map(function(args) {
481
481
  var id = args[0];
482
482
  var css = args[1];
@@ -493,7 +493,7 @@ function requireIndex () {
493
493
  }
494
494
  var StyleSheetRegistry = /*#__PURE__*/ function() {
495
495
  function StyleSheetRegistry(param) {
496
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
496
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
497
497
  this._sheet = styleSheet || new StyleSheet({
498
498
  name: "styled-jsx",
499
499
  optimizeForSpeed: optimizeForSpeed
@@ -981,7 +981,7 @@ var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
981
981
  var InputIconComponent = function InputIconComponent(_ref) {
982
982
  var icon = _ref.icon,
983
983
  _ref$clickable = _ref.clickable,
984
- clickable = _ref$clickable === undefined ? false : _ref$clickable,
984
+ clickable = _ref$clickable === void 0 ? false : _ref$clickable,
985
985
  onClick = _ref.onClick;
986
986
  return /*#__PURE__*/React.createElement("span", {
987
987
  onClick: onClick,
@@ -1228,9 +1228,9 @@ var withScale = function withScale(Render) {
1228
1228
  margin = props.margin,
1229
1229
  padding = props.padding,
1230
1230
  _props$unit = props.unit,
1231
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1231
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1232
1232
  _props$scale = props.scale,
1233
- scale = _props$scale === undefined ? 1 : _props$scale;
1233
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1234
1234
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1235
1235
  return function (scale1x, defaultValue) {
1236
1236
  // 0 means disable scale and the default value is 0
@@ -1251,20 +1251,20 @@ var withScale = function withScale(Render) {
1251
1251
  var value = {
1252
1252
  unit: unit,
1253
1253
  SCALES: {
1254
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1255
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1256
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1257
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1258
- px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== undefined ? px : paddingLeft) !== null && _ref13 !== undefined ? _ref13 : paddingRight) !== null && _ref12 !== undefined ? _ref12 : pl) !== null && _ref11 !== undefined ? _ref11 : pr) !== null && _ref10 !== undefined ? _ref10 : padding),
1259
- py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== undefined ? py : paddingTop) !== null && _ref17 !== undefined ? _ref17 : paddingBottom) !== null && _ref16 !== undefined ? _ref16 : pt) !== null && _ref15 !== undefined ? _ref15 : pb) !== null && _ref14 !== undefined ? _ref14 : padding),
1260
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1261
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1262
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1263
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1264
- mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== undefined ? mx : marginLeft) !== null && _ref29 !== undefined ? _ref29 : marginRight) !== null && _ref28 !== undefined ? _ref28 : ml) !== null && _ref27 !== undefined ? _ref27 : mr) !== null && _ref26 !== undefined ? _ref26 : margin),
1265
- my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== undefined ? my : marginTop) !== null && _ref33 !== undefined ? _ref33 : marginBottom) !== null && _ref32 !== undefined ? _ref32 : mt) !== null && _ref31 !== undefined ? _ref31 : mb) !== null && _ref30 !== undefined ? _ref30 : margin),
1266
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1267
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1254
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1255
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1256
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1257
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1258
+ px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1259
+ py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1260
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1261
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1262
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1263
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1264
+ mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1265
+ my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1266
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1267
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1268
1268
  font: makeScaleHandler(font)
1269
1269
  },
1270
1270
  getScaleProps: generateGetScaleProps(props),
@@ -1291,35 +1291,35 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1291
1291
  var label = _ref.label,
1292
1292
  labelRight = _ref.labelRight,
1293
1293
  _ref$type = _ref.type,
1294
- type = _ref$type === undefined ? 'default' : _ref$type,
1294
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1295
1295
  error = _ref.error,
1296
1296
  _ref$htmlType = _ref.htmlType,
1297
- htmlType = _ref$htmlType === undefined ? 'text' : _ref$htmlType,
1297
+ htmlType = _ref$htmlType === void 0 ? 'text' : _ref$htmlType,
1298
1298
  icon = _ref.icon,
1299
1299
  iconRight = _ref.iconRight,
1300
1300
  _ref$iconClickable = _ref.iconClickable,
1301
- iconClickable = _ref$iconClickable === undefined ? false : _ref$iconClickable,
1301
+ iconClickable = _ref$iconClickable === void 0 ? false : _ref$iconClickable,
1302
1302
  onIconClick = _ref.onIconClick,
1303
1303
  _ref$initialValue = _ref.initialValue,
1304
- initialValue = _ref$initialValue === undefined ? '' : _ref$initialValue,
1304
+ initialValue = _ref$initialValue === void 0 ? '' : _ref$initialValue,
1305
1305
  onChange = _ref.onChange,
1306
1306
  _ref$readOnly = _ref.readOnly,
1307
- readOnly = _ref$readOnly === undefined ? false : _ref$readOnly,
1307
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
1308
1308
  value = _ref.value,
1309
1309
  onClearClick = _ref.onClearClick,
1310
1310
  _ref$clearable = _ref.clearable,
1311
- clearable = _ref$clearable === undefined ? false : _ref$clearable,
1311
+ clearable = _ref$clearable === void 0 ? false : _ref$clearable,
1312
1312
  _ref$className = _ref.className,
1313
- className = _ref$className === undefined ? '' : _ref$className,
1313
+ className = _ref$className === void 0 ? '' : _ref$className,
1314
1314
  onBlur = _ref.onBlur,
1315
1315
  onFocus = _ref.onFocus,
1316
1316
  _ref$autoComplete = _ref.autoComplete,
1317
- autoComplete = _ref$autoComplete === undefined ? 'off' : _ref$autoComplete,
1317
+ autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,
1318
1318
  _ref$placeholder = _ref.placeholder,
1319
- placeholder = _ref$placeholder === undefined ? '' : _ref$placeholder,
1319
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
1320
1320
  children = _ref.children,
1321
1321
  _ref$disabled = _ref.disabled,
1322
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
1322
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1323
1323
  props = _objectWithoutProperties(_ref, _excluded$2);
1324
1324
  var theme = useTheme();
1325
1325
  var _useScale = useScale(),
@@ -1466,22 +1466,22 @@ var _excluded$1 = ["type", "disabled", "readOnly", "onFocus", "onBlur", "classNa
1466
1466
  tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
1467
1467
  var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1468
1468
  var _ref$type = _ref.type,
1469
- type = _ref$type === undefined ? 'default' : _ref$type,
1469
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1470
1470
  _ref$disabled = _ref.disabled,
1471
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
1471
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1472
1472
  _ref$readOnly = _ref.readOnly,
1473
- readOnly = _ref$readOnly === undefined ? false : _ref$readOnly,
1473
+ readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
1474
1474
  onFocus = _ref.onFocus,
1475
1475
  onBlur = _ref.onBlur,
1476
1476
  _ref$className = _ref.className,
1477
- className = _ref$className === undefined ? '' : _ref$className,
1477
+ className = _ref$className === void 0 ? '' : _ref$className,
1478
1478
  _ref$initialValue = _ref.initialValue,
1479
- initialValue = _ref$initialValue === undefined ? '' : _ref$initialValue,
1479
+ initialValue = _ref$initialValue === void 0 ? '' : _ref$initialValue,
1480
1480
  onChange = _ref.onChange,
1481
1481
  value = _ref.value,
1482
1482
  placeholder = _ref.placeholder,
1483
1483
  _ref$resize = _ref.resize,
1484
- resize = _ref$resize === undefined ? 'none' : _ref$resize,
1484
+ resize = _ref$resize === void 0 ? 'none' : _ref$resize,
1485
1485
  props = _objectWithoutProperties(_ref, _excluded$1);
1486
1486
  var theme = useTheme();
1487
1487
  var _useScale = useScale(),
@@ -118,8 +118,8 @@ function _objectWithoutPropertiesLoose(r, e) {
118
118
  function _toPrimitive(t, r) {
119
119
  if ("object" != typeof t || !t) return t;
120
120
  var e = t[Symbol.toPrimitive];
121
- if (undefined !== e) {
122
- var i = e.call(t, r || "default");
121
+ if (void 0 !== e) {
122
+ var i = e.call(t, r);
123
123
  if ("object" != typeof i) return i;
124
124
  throw new TypeError("@@toPrimitive must return a primitive value.");
125
125
  }
@@ -142,7 +142,7 @@ function _unsupportedIterableToArray(r, a) {
142
142
  if (r) {
143
143
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
144
144
  var t = {}.toString.call(r).slice(8, -1);
145
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
145
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
146
146
  }
147
147
  }
148
148
 
@@ -176,7 +176,7 @@ function requireIndex () {
176
176
  }
177
177
  }
178
178
  function _createClass(Constructor, protoProps, staticProps) {
179
- _defineProperties(Constructor.prototype, protoProps);
179
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
180
180
  return Constructor;
181
181
  }
182
182
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -185,7 +185,7 @@ function requireIndex () {
185
185
  };
186
186
  var StyleSheet = /*#__PURE__*/ function() {
187
187
  function StyleSheet(param) {
188
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
188
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
189
189
  invariant$1(isString(name), "`name` must be a string");
190
190
  this._name = name;
191
191
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -443,7 +443,7 @@ function requireIndex () {
443
443
  }
444
444
 
445
445
  function mapRulesToStyle(cssRules, options) {
446
- if (options === undefined) options = {};
446
+ if (options === void 0) options = {};
447
447
  return cssRules.map(function(args) {
448
448
  var id = args[0];
449
449
  var css = args[1];
@@ -460,7 +460,7 @@ function requireIndex () {
460
460
  }
461
461
  var StyleSheetRegistry = /*#__PURE__*/ function() {
462
462
  function StyleSheetRegistry(param) {
463
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
463
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
464
464
  this._sheet = styleSheet || new StyleSheet({
465
465
  name: "styled-jsx",
466
466
  optimizeForSpeed: optimizeForSpeed
@@ -1049,9 +1049,9 @@ var withScale = function withScale(Render) {
1049
1049
  margin = props.margin,
1050
1050
  padding = props.padding,
1051
1051
  _props$unit = props.unit,
1052
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1052
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1053
1053
  _props$scale = props.scale,
1054
- scale = _props$scale === undefined ? 1 : _props$scale;
1054
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1055
1055
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1056
1056
  return function (scale1x, defaultValue) {
1057
1057
  // 0 means disable scale and the default value is 0
@@ -1072,20 +1072,20 @@ var withScale = function withScale(Render) {
1072
1072
  var value = {
1073
1073
  unit: unit,
1074
1074
  SCALES: {
1075
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1076
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1077
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1078
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1079
- px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== undefined ? px : paddingLeft) !== null && _ref13 !== undefined ? _ref13 : paddingRight) !== null && _ref12 !== undefined ? _ref12 : pl) !== null && _ref11 !== undefined ? _ref11 : pr) !== null && _ref10 !== undefined ? _ref10 : padding),
1080
- py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== undefined ? py : paddingTop) !== null && _ref17 !== undefined ? _ref17 : paddingBottom) !== null && _ref16 !== undefined ? _ref16 : pt) !== null && _ref15 !== undefined ? _ref15 : pb) !== null && _ref14 !== undefined ? _ref14 : padding),
1081
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1082
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1083
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1084
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1085
- mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== undefined ? mx : marginLeft) !== null && _ref29 !== undefined ? _ref29 : marginRight) !== null && _ref28 !== undefined ? _ref28 : ml) !== null && _ref27 !== undefined ? _ref27 : mr) !== null && _ref26 !== undefined ? _ref26 : margin),
1086
- my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== undefined ? my : marginTop) !== null && _ref33 !== undefined ? _ref33 : marginBottom) !== null && _ref32 !== undefined ? _ref32 : mt) !== null && _ref31 !== undefined ? _ref31 : mb) !== null && _ref30 !== undefined ? _ref30 : margin),
1087
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1088
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1075
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1076
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1077
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1078
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1079
+ px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1080
+ py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1081
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1082
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1083
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1084
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1085
+ mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1086
+ my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1087
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1088
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1089
1089
  font: makeScaleHandler(font)
1090
1090
  },
1091
1091
  getScaleProps: generateGetScaleProps(props),
@@ -1104,16 +1104,16 @@ var withScale = function withScale(Render) {
1104
1104
  var _excluded = ["command", "shift", "option", "ctrl", "children", "className"];
1105
1105
  var KeyboardComponent = function KeyboardComponent(_ref) {
1106
1106
  var _ref$command = _ref.command,
1107
- command = _ref$command === undefined ? false : _ref$command,
1107
+ command = _ref$command === void 0 ? false : _ref$command,
1108
1108
  _ref$shift = _ref.shift,
1109
- shift = _ref$shift === undefined ? false : _ref$shift,
1109
+ shift = _ref$shift === void 0 ? false : _ref$shift,
1110
1110
  _ref$option = _ref.option,
1111
- option = _ref$option === undefined ? false : _ref$option,
1111
+ option = _ref$option === void 0 ? false : _ref$option,
1112
1112
  _ref$ctrl = _ref.ctrl,
1113
- ctrl = _ref$ctrl === undefined ? false : _ref$ctrl,
1113
+ ctrl = _ref$ctrl === void 0 ? false : _ref$ctrl,
1114
1114
  children = _ref.children,
1115
1115
  _ref$className = _ref.className,
1116
- className = _ref$className === undefined ? '' : _ref$className,
1116
+ className = _ref$className === void 0 ? '' : _ref$className,
1117
1117
  props = _objectWithoutProperties(_ref, _excluded);
1118
1118
  var theme = useTheme();
1119
1119
  var _useScale = useScale(),
@@ -151,8 +151,8 @@ function _slicedToArray(r, e) {
151
151
  function _toPrimitive(t, r) {
152
152
  if ("object" != typeof t || !t) return t;
153
153
  var e = t[Symbol.toPrimitive];
154
- if (undefined !== e) {
155
- var i = e.call(t, r || "default");
154
+ if (void 0 !== e) {
155
+ var i = e.call(t, r);
156
156
  if ("object" != typeof i) return i;
157
157
  throw new TypeError("@@toPrimitive must return a primitive value.");
158
158
  }
@@ -175,7 +175,7 @@ function _unsupportedIterableToArray(r, a) {
175
175
  if (r) {
176
176
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
177
177
  var t = {}.toString.call(r).slice(8, -1);
178
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
178
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
179
179
  }
180
180
  }
181
181
 
@@ -209,7 +209,7 @@ function requireIndex () {
209
209
  }
210
210
  }
211
211
  function _createClass(Constructor, protoProps, staticProps) {
212
- _defineProperties(Constructor.prototype, protoProps);
212
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
213
213
  return Constructor;
214
214
  }
215
215
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -218,7 +218,7 @@ function requireIndex () {
218
218
  };
219
219
  var StyleSheet = /*#__PURE__*/ function() {
220
220
  function StyleSheet(param) {
221
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
221
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
222
222
  invariant$1(isString(name), "`name` must be a string");
223
223
  this._name = name;
224
224
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -476,7 +476,7 @@ function requireIndex () {
476
476
  }
477
477
 
478
478
  function mapRulesToStyle(cssRules, options) {
479
- if (options === undefined) options = {};
479
+ if (options === void 0) options = {};
480
480
  return cssRules.map(function(args) {
481
481
  var id = args[0];
482
482
  var css = args[1];
@@ -493,7 +493,7 @@ function requireIndex () {
493
493
  }
494
494
  var StyleSheetRegistry = /*#__PURE__*/ function() {
495
495
  function StyleSheetRegistry(param) {
496
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
496
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
497
497
  this._sheet = styleSheet || new StyleSheet({
498
498
  name: "styled-jsx",
499
499
  optimizeForSpeed: optimizeForSpeed
@@ -1145,9 +1145,9 @@ var withScale = function withScale(Render) {
1145
1145
  margin = props.margin,
1146
1146
  padding = props.padding,
1147
1147
  _props$unit = props.unit,
1148
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1148
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1149
1149
  _props$scale = props.scale,
1150
- scale = _props$scale === undefined ? 1 : _props$scale;
1150
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1151
1151
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1152
1152
  return function (scale1x, defaultValue) {
1153
1153
  // 0 means disable scale and the default value is 0
@@ -1168,20 +1168,20 @@ var withScale = function withScale(Render) {
1168
1168
  var value = {
1169
1169
  unit: unit,
1170
1170
  SCALES: {
1171
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1172
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1173
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1174
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1175
- px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== undefined ? px : paddingLeft) !== null && _ref13 !== undefined ? _ref13 : paddingRight) !== null && _ref12 !== undefined ? _ref12 : pl) !== null && _ref11 !== undefined ? _ref11 : pr) !== null && _ref10 !== undefined ? _ref10 : padding),
1176
- py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== undefined ? py : paddingTop) !== null && _ref17 !== undefined ? _ref17 : paddingBottom) !== null && _ref16 !== undefined ? _ref16 : pt) !== null && _ref15 !== undefined ? _ref15 : pb) !== null && _ref14 !== undefined ? _ref14 : padding),
1177
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1178
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1179
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1180
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1181
- mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== undefined ? mx : marginLeft) !== null && _ref29 !== undefined ? _ref29 : marginRight) !== null && _ref28 !== undefined ? _ref28 : ml) !== null && _ref27 !== undefined ? _ref27 : mr) !== null && _ref26 !== undefined ? _ref26 : margin),
1182
- my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== undefined ? my : marginTop) !== null && _ref33 !== undefined ? _ref33 : marginBottom) !== null && _ref32 !== undefined ? _ref32 : mt) !== null && _ref31 !== undefined ? _ref31 : mb) !== null && _ref30 !== undefined ? _ref30 : margin),
1183
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1184
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1171
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1172
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1173
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1174
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1175
+ px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1176
+ py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1177
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1178
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1179
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1180
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1181
+ mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1182
+ my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1183
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1184
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1185
1185
  font: makeScaleHandler(font)
1186
1186
  },
1187
1187
  getScaleProps: generateGetScaleProps(props),
@@ -1233,18 +1233,18 @@ var useClasses = function useClasses() {
1233
1233
  var _excluded = ["href", "showColor", "underline", "children", "className", "block", "icon"];
1234
1234
  var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1235
1235
  var _ref$href = _ref.href,
1236
- href = _ref$href === undefined ? '' : _ref$href,
1236
+ href = _ref$href === void 0 ? '' : _ref$href,
1237
1237
  _ref$showColor = _ref.showColor,
1238
- showColor = _ref$showColor === undefined ? false : _ref$showColor,
1238
+ showColor = _ref$showColor === void 0 ? false : _ref$showColor,
1239
1239
  _ref$underline = _ref.underline,
1240
- underline = _ref$underline === undefined ? false : _ref$underline,
1240
+ underline = _ref$underline === void 0 ? false : _ref$underline,
1241
1241
  children = _ref.children,
1242
1242
  _ref$className = _ref.className,
1243
- className = _ref$className === undefined ? '' : _ref$className,
1243
+ className = _ref$className === void 0 ? '' : _ref$className,
1244
1244
  _ref$block = _ref.block,
1245
- block = _ref$block === undefined ? false : _ref$block,
1245
+ block = _ref$block === void 0 ? false : _ref$block,
1246
1246
  _ref$icon = _ref.icon,
1247
- icon = _ref$icon === undefined ? false : _ref$icon,
1247
+ icon = _ref$icon === void 0 ? false : _ref$icon,
1248
1248
  props = _objectWithoutProperties(_ref, _excluded);
1249
1249
  var theme = useTheme();
1250
1250
  var _useScale = useScale(),
@@ -118,8 +118,8 @@ function _objectWithoutPropertiesLoose(r, e) {
118
118
  function _toPrimitive(t, r) {
119
119
  if ("object" != typeof t || !t) return t;
120
120
  var e = t[Symbol.toPrimitive];
121
- if (undefined !== e) {
122
- var i = e.call(t, r || "default");
121
+ if (void 0 !== e) {
122
+ var i = e.call(t, r);
123
123
  if ("object" != typeof i) return i;
124
124
  throw new TypeError("@@toPrimitive must return a primitive value.");
125
125
  }
@@ -142,7 +142,7 @@ function _unsupportedIterableToArray(r, a) {
142
142
  if (r) {
143
143
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
144
144
  var t = {}.toString.call(r).slice(8, -1);
145
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : undefined;
145
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
146
146
  }
147
147
  }
148
148
 
@@ -176,7 +176,7 @@ function requireIndex () {
176
176
  }
177
177
  }
178
178
  function _createClass(Constructor, protoProps, staticProps) {
179
- _defineProperties(Constructor.prototype, protoProps);
179
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
180
180
  return Constructor;
181
181
  }
182
182
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -185,7 +185,7 @@ function requireIndex () {
185
185
  };
186
186
  var StyleSheet = /*#__PURE__*/ function() {
187
187
  function StyleSheet(param) {
188
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
188
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
189
189
  invariant$1(isString(name), "`name` must be a string");
190
190
  this._name = name;
191
191
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -443,7 +443,7 @@ function requireIndex () {
443
443
  }
444
444
 
445
445
  function mapRulesToStyle(cssRules, options) {
446
- if (options === undefined) options = {};
446
+ if (options === void 0) options = {};
447
447
  return cssRules.map(function(args) {
448
448
  var id = args[0];
449
449
  var css = args[1];
@@ -460,7 +460,7 @@ function requireIndex () {
460
460
  }
461
461
  var StyleSheetRegistry = /*#__PURE__*/ function() {
462
462
  function StyleSheetRegistry(param) {
463
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
463
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
464
464
  this._sheet = styleSheet || new StyleSheet({
465
465
  name: "styled-jsx",
466
466
  optimizeForSpeed: optimizeForSpeed
@@ -1049,9 +1049,9 @@ var withScale = function withScale(Render) {
1049
1049
  margin = props.margin,
1050
1050
  padding = props.padding,
1051
1051
  _props$unit = props.unit,
1052
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1052
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1053
1053
  _props$scale = props.scale,
1054
- scale = _props$scale === undefined ? 1 : _props$scale;
1054
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1055
1055
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1056
1056
  return function (scale1x, defaultValue) {
1057
1057
  // 0 means disable scale and the default value is 0
@@ -1072,20 +1072,20 @@ var withScale = function withScale(Render) {
1072
1072
  var value = {
1073
1073
  unit: unit,
1074
1074
  SCALES: {
1075
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1076
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1077
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1078
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1079
- px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== undefined ? px : paddingLeft) !== null && _ref13 !== undefined ? _ref13 : paddingRight) !== null && _ref12 !== undefined ? _ref12 : pl) !== null && _ref11 !== undefined ? _ref11 : pr) !== null && _ref10 !== undefined ? _ref10 : padding),
1080
- py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== undefined ? py : paddingTop) !== null && _ref17 !== undefined ? _ref17 : paddingBottom) !== null && _ref16 !== undefined ? _ref16 : pt) !== null && _ref15 !== undefined ? _ref15 : pb) !== null && _ref14 !== undefined ? _ref14 : padding),
1081
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1082
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1083
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1084
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1085
- mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== undefined ? mx : marginLeft) !== null && _ref29 !== undefined ? _ref29 : marginRight) !== null && _ref28 !== undefined ? _ref28 : ml) !== null && _ref27 !== undefined ? _ref27 : mr) !== null && _ref26 !== undefined ? _ref26 : margin),
1086
- my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== undefined ? my : marginTop) !== null && _ref33 !== undefined ? _ref33 : marginBottom) !== null && _ref32 !== undefined ? _ref32 : mt) !== null && _ref31 !== undefined ? _ref31 : mb) !== null && _ref30 !== undefined ? _ref30 : margin),
1087
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1088
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1075
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1076
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1077
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1078
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1079
+ px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
1080
+ py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
1081
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1082
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1083
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1084
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1085
+ mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
1086
+ my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
1087
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1088
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1089
1089
  font: makeScaleHandler(font)
1090
1090
  },
1091
1091
  getScaleProps: generateGetScaleProps(props),
@@ -1148,12 +1148,12 @@ var getIconBgColor = function getIconBgColor(type, palette, color) {
1148
1148
  var LoadingComponent = function LoadingComponent(_ref) {
1149
1149
  var children = _ref.children,
1150
1150
  _ref$type = _ref.type,
1151
- type = _ref$type === undefined ? 'default' : _ref$type,
1151
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1152
1152
  color = _ref.color,
1153
1153
  _ref$className = _ref.className,
1154
- className = _ref$className === undefined ? '' : _ref$className,
1154
+ className = _ref$className === void 0 ? '' : _ref$className,
1155
1155
  _ref$spaceRatio = _ref.spaceRatio,
1156
- spaceRatio = _ref$spaceRatio === undefined ? 1 : _ref$spaceRatio,
1156
+ spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
1157
1157
  props = _objectWithoutProperties(_ref, _excluded);
1158
1158
  var theme = useTheme();
1159
1159
  var _useScale = useScale(),