@helpdice/ui 1.5.0 → 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 (83) 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/index.js +42 -42
  8. package/dist/button-dropdown/index.js +34 -34
  9. package/dist/button-group/index.js +25 -25
  10. package/dist/capacity/index.js +26 -26
  11. package/dist/card/index.js +44 -44
  12. package/dist/checkbox/index.js +30 -30
  13. package/dist/code/index.js +27 -27
  14. package/dist/col/index.js +8 -8
  15. package/dist/collapse/index.js +30 -30
  16. package/dist/css-baseline/index.js +6 -6
  17. package/dist/description/index.js +26 -26
  18. package/dist/display/index.js +26 -26
  19. package/dist/divider/index.js +26 -26
  20. package/dist/dot/index.js +25 -25
  21. package/dist/drawer/index.js +53 -53
  22. package/dist/fieldset/index.js +33 -33
  23. package/dist/form/FormWrapper.d.ts +7 -7
  24. package/dist/form/connect.d.ts +1 -0
  25. package/dist/grid/index.js +33 -33
  26. package/dist/image/index.js +37 -37
  27. package/dist/index.js +551 -547
  28. package/dist/input/index.js +40 -40
  29. package/dist/keyboard/index.js +28 -28
  30. package/dist/link/index.js +29 -29
  31. package/dist/loading/index.js +26 -26
  32. package/dist/modal/index.js +75 -75
  33. package/dist/note/index.js +27 -27
  34. package/dist/page/index.js +30 -30
  35. package/dist/pagination/index.js +27 -27
  36. package/dist/popover/index.js +57 -57
  37. package/dist/progress/index.js +29 -29
  38. package/dist/radio/index.js +30 -30
  39. package/dist/rating/index.js +29 -29
  40. package/dist/row/index.js +11 -11
  41. package/dist/search-bar/index.js +1826 -61
  42. package/dist/select/index.js +60 -60
  43. package/dist/slider/index.js +35 -35
  44. package/dist/snippet/index.js +30 -30
  45. package/dist/spacer/index.js +25 -25
  46. package/dist/spinner/index.js +24 -24
  47. package/dist/table/index.js +224 -211
  48. package/dist/tabs/index.js +39 -39
  49. package/dist/tag/index.js +26 -26
  50. package/dist/text/index.js +40 -40
  51. package/dist/textarea/index.js +29 -29
  52. package/dist/themes/index.js +2 -2
  53. package/dist/toggle/index.js +27 -27
  54. package/dist/tooltip/index.js +42 -42
  55. package/dist/tree/index.js +23 -23
  56. package/dist/ui-provider/index.js +48 -48
  57. package/dist/use-all-themes/index.js +2 -2
  58. package/dist/use-body-scroll/index.js +5 -5
  59. package/dist/use-clipboard/index.js +1 -1
  60. package/dist/use-current-state/index.js +1 -1
  61. package/dist/use-input/index.js +1 -1
  62. package/dist/use-keyboard/index.js +5 -5
  63. package/dist/use-media-query/index.js +5 -5
  64. package/dist/use-modal/index.js +1 -1
  65. package/dist/use-scale/index.js +19 -19
  66. package/dist/use-tabs/index.js +1 -1
  67. package/dist/use-theme/index.js +2 -2
  68. package/dist/use-toasts/index.js +3 -3
  69. package/dist/user/index.js +36 -36
  70. package/esm/form/FastField.js +1 -1
  71. package/esm/form/FormWrapper.d.ts +7 -7
  72. package/esm/form/FormWrapper.js +2 -2
  73. package/esm/form/connect.d.ts +1 -0
  74. package/esm/form/connect.js +2 -1
  75. package/esm/link/link.js +2 -0
  76. package/esm/login-with/LoginSocialAmazon/index.js +162 -134
  77. package/esm/login-with/index.js +2 -0
  78. package/esm/search-bar/components/index.js +4 -7
  79. package/esm/table/data-table.js +6 -4
  80. package/esm/table/table.js +12 -1
  81. package/package.json +3 -2
  82. package/esm/formik-native/src/index.js +0 -12
  83. package/esm/formik-native/test/blah.test.js +0 -5
@@ -167,8 +167,8 @@ function _toConsumableArray(r) {
167
167
  function _toPrimitive(t, r) {
168
168
  if ("object" != typeof t || !t) return t;
169
169
  var e = t[Symbol.toPrimitive];
170
- if (undefined !== e) {
171
- var i = e.call(t, r || "default");
170
+ if (void 0 !== e) {
171
+ var i = e.call(t, r);
172
172
  if ("object" != typeof i) return i;
173
173
  throw new TypeError("@@toPrimitive must return a primitive value.");
174
174
  }
@@ -191,7 +191,7 @@ function _unsupportedIterableToArray(r, a) {
191
191
  if (r) {
192
192
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
193
193
  var t = {}.toString.call(r).slice(8, -1);
194
- 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;
194
+ 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;
195
195
  }
196
196
  }
197
197
 
@@ -225,7 +225,7 @@ function requireIndex () {
225
225
  }
226
226
  }
227
227
  function _createClass(Constructor, protoProps, staticProps) {
228
- _defineProperties(Constructor.prototype, protoProps);
228
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
229
229
  return Constructor;
230
230
  }
231
231
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -234,7 +234,7 @@ function requireIndex () {
234
234
  };
235
235
  var StyleSheet = /*#__PURE__*/ function() {
236
236
  function StyleSheet(param) {
237
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
237
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
238
238
  invariant$1(isString(name), "`name` must be a string");
239
239
  this._name = name;
240
240
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -492,7 +492,7 @@ function requireIndex () {
492
492
  }
493
493
 
494
494
  function mapRulesToStyle(cssRules, options) {
495
- if (options === undefined) options = {};
495
+ if (options === void 0) options = {};
496
496
  return cssRules.map(function(args) {
497
497
  var id = args[0];
498
498
  var css = args[1];
@@ -509,7 +509,7 @@ function requireIndex () {
509
509
  }
510
510
  var StyleSheetRegistry = /*#__PURE__*/ function() {
511
511
  function StyleSheetRegistry(param) {
512
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
512
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
513
513
  this._sheet = styleSheet || new StyleSheet({
514
514
  name: "styled-jsx",
515
515
  optimizeForSpeed: optimizeForSpeed
@@ -1115,17 +1115,17 @@ var _excluded$6 = ["children", "className", "visible", "enterTime", "leaveTime",
1115
1115
  var CssTransition = function CssTransition(_ref) {
1116
1116
  var children = _ref.children,
1117
1117
  _ref$className = _ref.className,
1118
- className = _ref$className === undefined ? '' : _ref$className,
1118
+ className = _ref$className === void 0 ? '' : _ref$className,
1119
1119
  _ref$visible = _ref.visible,
1120
- visible = _ref$visible === undefined ? false : _ref$visible,
1120
+ visible = _ref$visible === void 0 ? false : _ref$visible,
1121
1121
  _ref$enterTime = _ref.enterTime,
1122
- enterTime = _ref$enterTime === undefined ? 60 : _ref$enterTime,
1122
+ enterTime = _ref$enterTime === void 0 ? 60 : _ref$enterTime,
1123
1123
  _ref$leaveTime = _ref.leaveTime,
1124
- leaveTime = _ref$leaveTime === undefined ? 60 : _ref$leaveTime,
1124
+ leaveTime = _ref$leaveTime === void 0 ? 60 : _ref$leaveTime,
1125
1125
  _ref$clearTime = _ref.clearTime,
1126
- clearTime = _ref$clearTime === undefined ? 60 : _ref$clearTime,
1126
+ clearTime = _ref$clearTime === void 0 ? 60 : _ref$clearTime,
1127
1127
  _ref$name = _ref.name,
1128
- name = _ref$name === undefined ? 'transition' : _ref$name,
1128
+ name = _ref$name === void 0 ? 'transition' : _ref$name,
1129
1129
  props = _objectWithoutProperties(_ref, _excluded$6);
1130
1130
  var _useState = React.useState(''),
1131
1131
  _useState2 = _slicedToArray(_useState, 2),
@@ -1198,7 +1198,7 @@ var useDOMObserver = function useDOMObserver(ref) {
1198
1198
  var unmount = false;
1199
1199
  var done = function done() {
1200
1200
  if (unmount) return;
1201
- callback.apply(undefined, arguments);
1201
+ callback.apply(void 0, arguments);
1202
1202
  };
1203
1203
  var observer = new MutationObserver(done);
1204
1204
  observer.observe(ref.current, config);
@@ -1386,9 +1386,9 @@ var SelectDropdown = /*#__PURE__*/React.forwardRef(function (_ref, dropdownRef)
1386
1386
  var visible = _ref.visible,
1387
1387
  children = _ref.children,
1388
1388
  _ref$className = _ref.className,
1389
- className = _ref$className === undefined ? '' : _ref$className,
1389
+ className = _ref$className === void 0 ? '' : _ref$className,
1390
1390
  _ref$dropdownStyle = _ref.dropdownStyle,
1391
- dropdownStyle = _ref$dropdownStyle === undefined ? {} : _ref$dropdownStyle,
1391
+ dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
1392
1392
  disableMatchWidth = _ref.disableMatchWidth,
1393
1393
  getPopupContainer = _ref.getPopupContainer;
1394
1394
  var theme = useTheme();
@@ -1539,9 +1539,9 @@ var withScale = function withScale(Render) {
1539
1539
  margin = props.margin,
1540
1540
  padding = props.padding,
1541
1541
  _props$unit = props.unit,
1542
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1542
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1543
1543
  _props$scale = props.scale,
1544
- scale = _props$scale === undefined ? 1 : _props$scale;
1544
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1545
1545
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1546
1546
  return function (scale1x, defaultValue) {
1547
1547
  // 0 means disable scale and the default value is 0
@@ -1562,20 +1562,20 @@ var withScale = function withScale(Render) {
1562
1562
  var value = {
1563
1563
  unit: unit,
1564
1564
  SCALES: {
1565
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1566
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1567
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1568
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1569
- 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),
1570
- 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),
1571
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1572
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1573
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1574
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1575
- 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),
1576
- 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),
1577
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1578
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1565
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1566
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1567
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1568
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1569
+ 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),
1570
+ 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),
1571
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1572
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1573
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1574
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1575
+ 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),
1576
+ 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),
1577
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1578
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1579
1579
  font: makeScaleHandler(font)
1580
1580
  },
1581
1581
  getScaleProps: generateGetScaleProps(props),
@@ -1613,22 +1613,22 @@ var getItemLayout = function getItemLayout(val) {
1613
1613
  };
1614
1614
  var GridBasicItem = function GridBasicItem(_ref) {
1615
1615
  var _ref$xs = _ref.xs,
1616
- xs = _ref$xs === undefined ? false : _ref$xs,
1616
+ xs = _ref$xs === void 0 ? false : _ref$xs,
1617
1617
  _ref$sm = _ref.sm,
1618
- sm = _ref$sm === undefined ? false : _ref$sm,
1618
+ sm = _ref$sm === void 0 ? false : _ref$sm,
1619
1619
  _ref$md = _ref.md,
1620
- md = _ref$md === undefined ? false : _ref$md,
1620
+ md = _ref$md === void 0 ? false : _ref$md,
1621
1621
  _ref$lg = _ref.lg,
1622
- lg = _ref$lg === undefined ? false : _ref$lg,
1622
+ lg = _ref$lg === void 0 ? false : _ref$lg,
1623
1623
  _ref$xl = _ref.xl,
1624
- xl = _ref$xl === undefined ? false : _ref$xl,
1624
+ xl = _ref$xl === void 0 ? false : _ref$xl,
1625
1625
  justify = _ref.justify,
1626
1626
  direction = _ref.direction,
1627
1627
  alignItems = _ref.alignItems,
1628
1628
  alignContent = _ref.alignContent,
1629
1629
  children = _ref.children,
1630
1630
  _ref$className = _ref.className,
1631
- className = _ref$className === undefined ? '' : _ref$className,
1631
+ className = _ref$className === void 0 ? '' : _ref$className,
1632
1632
  props = _objectWithoutProperties(_ref, _excluded$4);
1633
1633
  var theme = useTheme();
1634
1634
  var _useScale = useScale(),
@@ -1673,7 +1673,7 @@ var _excluded$3 = ["children", "className"];
1673
1673
  var GridComponent = function GridComponent(_ref) {
1674
1674
  var children = _ref.children,
1675
1675
  _ref$className = _ref.className,
1676
- className = _ref$className === undefined ? '' : _ref$className,
1676
+ className = _ref$className === void 0 ? '' : _ref$className,
1677
1677
  props = _objectWithoutProperties(_ref, _excluded$3);
1678
1678
  var _useScale = useScale(),
1679
1679
  SCALES = _useScale.SCALES;
@@ -1697,12 +1697,12 @@ var Grid = withScale(GridComponent);
1697
1697
  var _excluded$2 = ["gap", "wrap", "children", "className"];
1698
1698
  var GridContainerComponent = function GridContainerComponent(_ref) {
1699
1699
  var _ref$gap = _ref.gap,
1700
- gap = _ref$gap === undefined ? 0 : _ref$gap,
1700
+ gap = _ref$gap === void 0 ? 0 : _ref$gap,
1701
1701
  _ref$wrap = _ref.wrap,
1702
- wrap = _ref$wrap === undefined ? 'wrap' : _ref$wrap,
1702
+ wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
1703
1703
  children = _ref.children,
1704
1704
  _ref$className = _ref.className,
1705
- className = _ref$className === undefined ? '' : _ref$className,
1705
+ className = _ref$className === void 0 ? '' : _ref$className,
1706
1706
  props = _objectWithoutProperties(_ref, _excluded$2);
1707
1707
  var _useScale = useScale(),
1708
1708
  unit = _useScale.unit,
@@ -1839,7 +1839,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
1839
1839
  React.useEffect(function () {
1840
1840
  if (visible) {
1841
1841
  var _ref$current;
1842
- (_ref$current = ref.current) === null || _ref$current === undefined || _ref$current.focus();
1842
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();
1843
1843
  }
1844
1844
  }, [visible]);
1845
1845
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", {
@@ -1864,30 +1864,30 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
1864
1864
  var children = _ref.children,
1865
1865
  label = _ref.label,
1866
1866
  _ref$type = _ref.type,
1867
- type = _ref$type === undefined ? 'default' : _ref$type,
1867
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1868
1868
  _ref$disabled = _ref.disabled,
1869
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
1869
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1870
1870
  init = _ref.initialValue,
1871
1871
  customValue = _ref.value,
1872
1872
  _ref$icon = _ref.icon,
1873
- Icon = _ref$icon === undefined ? SelectIcon : _ref$icon,
1873
+ Icon = _ref$icon === void 0 ? SelectIcon : _ref$icon,
1874
1874
  onChange = _ref.onChange,
1875
1875
  _ref$pure = _ref.pure,
1876
- pure = _ref$pure === undefined ? false : _ref$pure,
1876
+ pure = _ref$pure === void 0 ? false : _ref$pure,
1877
1877
  _ref$multiple = _ref.multiple,
1878
- multiple = _ref$multiple === undefined ? false : _ref$multiple,
1878
+ multiple = _ref$multiple === void 0 ? false : _ref$multiple,
1879
1879
  _ref$clearable = _ref.clearable,
1880
- clearable = _ref$clearable === undefined ? true : _ref$clearable,
1880
+ clearable = _ref$clearable === void 0 ? true : _ref$clearable,
1881
1881
  placeholder = _ref.placeholder,
1882
1882
  _ref$className = _ref.className,
1883
- className = _ref$className === undefined ? '' : _ref$className,
1883
+ className = _ref$className === void 0 ? '' : _ref$className,
1884
1884
  dropdownClassName = _ref.dropdownClassName,
1885
1885
  dropdownStyle = _ref.dropdownStyle,
1886
1886
  _ref$disableMatchWidt = _ref.disableMatchWidth,
1887
- disableMatchWidth = _ref$disableMatchWidt === undefined ? false : _ref$disableMatchWidt,
1887
+ disableMatchWidth = _ref$disableMatchWidt === void 0 ? false : _ref$disableMatchWidt,
1888
1888
  getPopupContainer = _ref.getPopupContainer,
1889
1889
  _ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
1890
- onDropdownVisibleChange = _ref$onDropdownVisibl === undefined ? function () {} : _ref$onDropdownVisibl,
1890
+ onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
1891
1891
  props = _objectWithoutProperties(_ref, _excluded$1);
1892
1892
  var theme = useTheme();
1893
1893
  var _useScale = useScale(),
@@ -1972,15 +1972,15 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
1972
1972
  return {
1973
1973
  focus: function focus() {
1974
1974
  var _inputRef$current;
1975
- return (_inputRef$current = inputRef.current) === null || _inputRef$current === undefined ? undefined : _inputRef$current.focus();
1975
+ return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
1976
1976
  },
1977
1977
  blur: function blur() {
1978
1978
  var _inputRef$current2;
1979
- return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === undefined ? undefined : _inputRef$current2.blur();
1979
+ return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
1980
1980
  },
1981
1981
  scrollTo: function scrollTo(options) {
1982
1982
  var _dropdownRef$current;
1983
- return (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === undefined ? undefined : _dropdownRef$current.scrollTo(options);
1983
+ return (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.scrollTo(options);
1984
1984
  }
1985
1985
  };
1986
1986
  }, [inputRef, dropdownRef]);
@@ -2064,16 +2064,16 @@ var _excluded = ["value", "className", "children", "disabled", "divider", "label
2064
2064
  var SelectOptionComponent = function SelectOptionComponent(_ref) {
2065
2065
  var identValue = _ref.value,
2066
2066
  _ref$className = _ref.className,
2067
- className = _ref$className === undefined ? '' : _ref$className,
2067
+ className = _ref$className === void 0 ? '' : _ref$className,
2068
2068
  children = _ref.children,
2069
2069
  _ref$disabled = _ref.disabled,
2070
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
2070
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
2071
2071
  _ref$divider = _ref.divider,
2072
- divider = _ref$divider === undefined ? false : _ref$divider,
2072
+ divider = _ref$divider === void 0 ? false : _ref$divider,
2073
2073
  _ref$label = _ref.label,
2074
- label = _ref$label === undefined ? false : _ref$label,
2074
+ label = _ref$label === void 0 ? false : _ref$label,
2075
2075
  _ref$preventAllEvents = _ref.preventAllEvents,
2076
- preventAllEvents = _ref$preventAllEvents === undefined ? false : _ref$preventAllEvents,
2076
+ preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
2077
2077
  props = _objectWithoutProperties(_ref, _excluded);
2078
2078
  var theme = useTheme();
2079
2079
  var _useScale = useScale(),
@@ -166,8 +166,8 @@ function _toConsumableArray(r) {
166
166
  function _toPrimitive(t, r) {
167
167
  if ("object" != typeof t || !t) return t;
168
168
  var e = t[Symbol.toPrimitive];
169
- if (undefined !== e) {
170
- var i = e.call(t, r || "default");
169
+ if (void 0 !== e) {
170
+ var i = e.call(t, r);
171
171
  if ("object" != typeof i) return i;
172
172
  throw new TypeError("@@toPrimitive must return a primitive value.");
173
173
  }
@@ -190,7 +190,7 @@ function _unsupportedIterableToArray(r, a) {
190
190
  if (r) {
191
191
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
192
192
  var t = {}.toString.call(r).slice(8, -1);
193
- 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;
193
+ 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;
194
194
  }
195
195
  }
196
196
 
@@ -224,7 +224,7 @@ function requireIndex () {
224
224
  }
225
225
  }
226
226
  function _createClass(Constructor, protoProps, staticProps) {
227
- _defineProperties(Constructor.prototype, protoProps);
227
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
228
228
  return Constructor;
229
229
  }
230
230
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -233,7 +233,7 @@ function requireIndex () {
233
233
  };
234
234
  var StyleSheet = /*#__PURE__*/ function() {
235
235
  function StyleSheet(param) {
236
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
236
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
237
237
  invariant$1(isString(name), "`name` must be a string");
238
238
  this._name = name;
239
239
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -491,7 +491,7 @@ function requireIndex () {
491
491
  }
492
492
 
493
493
  function mapRulesToStyle(cssRules, options) {
494
- if (options === undefined) options = {};
494
+ if (options === void 0) options = {};
495
495
  return cssRules.map(function(args) {
496
496
  var id = args[0];
497
497
  var css = args[1];
@@ -508,7 +508,7 @@ function requireIndex () {
508
508
  }
509
509
  var StyleSheetRegistry = /*#__PURE__*/ function() {
510
510
  function StyleSheetRegistry(param) {
511
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
511
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
512
512
  this._sheet = styleSheet || new StyleSheet({
513
513
  name: "styled-jsx",
514
514
  optimizeForSpeed: optimizeForSpeed
@@ -1083,11 +1083,11 @@ var useClasses = function useClasses() {
1083
1083
  var SliderDot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1084
1084
  var children = _ref.children,
1085
1085
  _ref$disabled = _ref.disabled,
1086
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
1086
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1087
1087
  _ref$left = _ref.left,
1088
- left = _ref$left === undefined ? 0 : _ref$left,
1088
+ left = _ref$left === void 0 ? 0 : _ref$left,
1089
1089
  _ref$isClick = _ref.isClick,
1090
- isClick = _ref$isClick === undefined ? false : _ref$isClick;
1090
+ isClick = _ref$isClick === void 0 ? false : _ref$isClick;
1091
1091
  var theme = useTheme();
1092
1092
  var classes = useClasses('dot', {
1093
1093
  disabled: disabled,
@@ -1286,9 +1286,9 @@ var withScale = function withScale(Render) {
1286
1286
  margin = props.margin,
1287
1287
  padding = props.padding,
1288
1288
  _props$unit = props.unit,
1289
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1289
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1290
1290
  _props$scale = props.scale,
1291
- scale = _props$scale === undefined ? 1 : _props$scale;
1291
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1292
1292
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1293
1293
  return function (scale1x, defaultValue) {
1294
1294
  // 0 means disable scale and the default value is 0
@@ -1309,20 +1309,20 @@ var withScale = function withScale(Render) {
1309
1309
  var value = {
1310
1310
  unit: unit,
1311
1311
  SCALES: {
1312
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1313
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1314
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1315
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1316
- 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),
1317
- 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),
1318
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1319
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1320
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1321
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1322
- 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),
1323
- 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),
1324
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1325
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1312
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1313
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1314
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1315
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1316
+ 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),
1317
+ 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),
1318
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1319
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1320
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1321
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1322
+ 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),
1323
+ 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),
1324
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1325
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1326
1326
  font: makeScaleHandler(font)
1327
1327
  },
1328
1328
  getScaleProps: generateGetScaleProps(props),
@@ -1354,25 +1354,25 @@ var getValue = function getValue(max, min, step, offsetX, railWidth) {
1354
1354
  };
1355
1355
  var SliderComponent = function SliderComponent(_ref) {
1356
1356
  var _ref$hideValue = _ref.hideValue,
1357
- hideValue = _ref$hideValue === undefined ? false : _ref$hideValue,
1357
+ hideValue = _ref$hideValue === void 0 ? false : _ref$hideValue,
1358
1358
  _ref$disabled = _ref.disabled,
1359
- disabled = _ref$disabled === undefined ? false : _ref$disabled,
1359
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
1360
1360
  _ref$type = _ref.type,
1361
- type = _ref$type === undefined ? 'default' : _ref$type,
1361
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1362
1362
  _ref$step = _ref.step,
1363
- step = _ref$step === undefined ? 1 : _ref$step,
1363
+ step = _ref$step === void 0 ? 1 : _ref$step,
1364
1364
  _ref$max = _ref.max,
1365
- max = _ref$max === undefined ? 100 : _ref$max,
1365
+ max = _ref$max === void 0 ? 100 : _ref$max,
1366
1366
  _ref$min = _ref.min,
1367
- min = _ref$min === undefined ? 0 : _ref$min,
1367
+ min = _ref$min === void 0 ? 0 : _ref$min,
1368
1368
  _ref$initialValue = _ref.initialValue,
1369
- initialValue = _ref$initialValue === undefined ? 0 : _ref$initialValue,
1369
+ initialValue = _ref$initialValue === void 0 ? 0 : _ref$initialValue,
1370
1370
  customValue = _ref.value,
1371
1371
  onChange = _ref.onChange,
1372
1372
  _ref$className = _ref.className,
1373
- className = _ref$className === undefined ? '' : _ref$className,
1373
+ className = _ref$className === void 0 ? '' : _ref$className,
1374
1374
  _ref$showMarkers = _ref.showMarkers,
1375
- showMarkers = _ref$showMarkers === undefined ? false : _ref$showMarkers,
1375
+ showMarkers = _ref$showMarkers === void 0 ? false : _ref$showMarkers,
1376
1376
  props = _objectWithoutProperties(_ref, _excluded);
1377
1377
  var theme = useTheme();
1378
1378
  var _useScale = useScale(),
@@ -163,8 +163,8 @@ function _toConsumableArray(r) {
163
163
  function _toPrimitive(t, r) {
164
164
  if ("object" != typeof t || !t) return t;
165
165
  var e = t[Symbol.toPrimitive];
166
- if (undefined !== e) {
167
- var i = e.call(t, r || "default");
166
+ if (void 0 !== e) {
167
+ var i = e.call(t, r);
168
168
  if ("object" != typeof i) return i;
169
169
  throw new TypeError("@@toPrimitive must return a primitive value.");
170
170
  }
@@ -187,7 +187,7 @@ function _unsupportedIterableToArray(r, a) {
187
187
  if (r) {
188
188
  if ("string" == typeof r) return _arrayLikeToArray(r, a);
189
189
  var t = {}.toString.call(r).slice(8, -1);
190
- 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;
190
+ 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;
191
191
  }
192
192
  }
193
193
 
@@ -221,7 +221,7 @@ function requireIndex () {
221
221
  }
222
222
  }
223
223
  function _createClass(Constructor, protoProps, staticProps) {
224
- _defineProperties(Constructor.prototype, protoProps);
224
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
225
225
  return Constructor;
226
226
  }
227
227
  var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
@@ -230,7 +230,7 @@ function requireIndex () {
230
230
  };
231
231
  var StyleSheet = /*#__PURE__*/ function() {
232
232
  function StyleSheet(param) {
233
- var ref = param === undefined ? {} : param, _name = ref.name, name = _name === undefined ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? isProd : _optimizeForSpeed;
233
+ var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
234
234
  invariant$1(isString(name), "`name` must be a string");
235
235
  this._name = name;
236
236
  this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
@@ -488,7 +488,7 @@ function requireIndex () {
488
488
  }
489
489
 
490
490
  function mapRulesToStyle(cssRules, options) {
491
- if (options === undefined) options = {};
491
+ if (options === void 0) options = {};
492
492
  return cssRules.map(function(args) {
493
493
  var id = args[0];
494
494
  var css = args[1];
@@ -505,7 +505,7 @@ function requireIndex () {
505
505
  }
506
506
  var StyleSheetRegistry = /*#__PURE__*/ function() {
507
507
  function StyleSheetRegistry(param) {
508
- var ref = param === undefined ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === undefined ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === undefined ? false : _optimizeForSpeed;
508
+ var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
509
509
  this._sheet = styleSheet || new StyleSheet({
510
510
  name: "styled-jsx",
511
511
  optimizeForSpeed: optimizeForSpeed
@@ -1384,9 +1384,9 @@ var withScale = function withScale(Render) {
1384
1384
  margin = props.margin,
1385
1385
  padding = props.padding,
1386
1386
  _props$unit = props.unit,
1387
- unit = _props$unit === undefined ? layout.unit : _props$unit,
1387
+ unit = _props$unit === void 0 ? layout.unit : _props$unit,
1388
1388
  _props$scale = props.scale,
1389
- scale = _props$scale === undefined ? 1 : _props$scale;
1389
+ scale = _props$scale === void 0 ? 1 : _props$scale;
1390
1390
  var makeScaleHandler = function makeScaleHandler(attrValue) {
1391
1391
  return function (scale1x, defaultValue) {
1392
1392
  // 0 means disable scale and the default value is 0
@@ -1407,20 +1407,20 @@ var withScale = function withScale(Render) {
1407
1407
  var value = {
1408
1408
  unit: unit,
1409
1409
  SCALES: {
1410
- pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== undefined ? paddingTop : pt) !== null && _ref3 !== undefined ? _ref3 : py) !== null && _ref2 !== undefined ? _ref2 : padding),
1411
- pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== undefined ? paddingRight : pr) !== null && _ref5 !== undefined ? _ref5 : px) !== null && _ref4 !== undefined ? _ref4 : padding),
1412
- pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== undefined ? paddingBottom : pb) !== null && _ref7 !== undefined ? _ref7 : py) !== null && _ref6 !== undefined ? _ref6 : padding),
1413
- pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== undefined ? paddingLeft : pl) !== null && _ref9 !== undefined ? _ref9 : px) !== null && _ref8 !== undefined ? _ref8 : padding),
1414
- 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),
1415
- 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),
1416
- mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== undefined ? marginTop : mt) !== null && _ref19 !== undefined ? _ref19 : my) !== null && _ref18 !== undefined ? _ref18 : margin),
1417
- mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== undefined ? marginRight : mr) !== null && _ref21 !== undefined ? _ref21 : mx) !== null && _ref20 !== undefined ? _ref20 : margin),
1418
- mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== undefined ? marginBottom : mb) !== null && _ref23 !== undefined ? _ref23 : my) !== null && _ref22 !== undefined ? _ref22 : margin),
1419
- ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== undefined ? marginLeft : ml) !== null && _ref25 !== undefined ? _ref25 : mx) !== null && _ref24 !== undefined ? _ref24 : margin),
1420
- 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),
1421
- 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),
1422
- width: makeScaleHandler(width !== null && width !== undefined ? width : w),
1423
- height: makeScaleHandler(height !== null && height !== undefined ? height : h),
1410
+ pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
1411
+ pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
1412
+ pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
1413
+ pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
1414
+ 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),
1415
+ 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),
1416
+ mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
1417
+ mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
1418
+ mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
1419
+ ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
1420
+ 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),
1421
+ 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),
1422
+ width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
1423
+ height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
1424
1424
  font: makeScaleHandler(font)
1425
1425
  },
1426
1426
  getScaleProps: generateGetScaleProps(props),
@@ -1478,21 +1478,21 @@ var textArrayToString = function textArrayToString(text) {
1478
1478
  };
1479
1479
  var SnippetComponent = function SnippetComponent(_ref) {
1480
1480
  var _ref$type = _ref.type,
1481
- type = _ref$type === undefined ? 'default' : _ref$type,
1481
+ type = _ref$type === void 0 ? 'default' : _ref$type,
1482
1482
  _ref$filled = _ref.filled,
1483
- filled = _ref$filled === undefined ? false : _ref$filled,
1483
+ filled = _ref$filled === void 0 ? false : _ref$filled,
1484
1484
  children = _ref.children,
1485
1485
  _ref$symbol = _ref.symbol,
1486
- symbol = _ref$symbol === undefined ? '$' : _ref$symbol,
1486
+ symbol = _ref$symbol === void 0 ? '$' : _ref$symbol,
1487
1487
  _ref$toastText = _ref.toastText,
1488
- toastText = _ref$toastText === undefined ? 'Copied to clipboard!' : _ref$toastText,
1488
+ toastText = _ref$toastText === void 0 ? 'Copied to clipboard!' : _ref$toastText,
1489
1489
  _ref$toastType = _ref.toastType,
1490
- toastType = _ref$toastType === undefined ? 'success' : _ref$toastType,
1490
+ toastType = _ref$toastType === void 0 ? 'success' : _ref$toastType,
1491
1491
  text = _ref.text,
1492
1492
  _ref$copy = _ref.copy,
1493
- copyType = _ref$copy === undefined ? 'default' : _ref$copy,
1493
+ copyType = _ref$copy === void 0 ? 'default' : _ref$copy,
1494
1494
  _ref$className = _ref.className,
1495
- className = _ref$className === undefined ? '' : _ref$className,
1495
+ className = _ref$className === void 0 ? '' : _ref$className,
1496
1496
  props = _objectWithoutProperties(_ref, _excluded);
1497
1497
  var theme = useTheme();
1498
1498
  var _useScale = useScale(),