@doist/reactist 11.0.0 → 11.3.0

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 (125) hide show
  1. package/dist/reactist.cjs.development.js +307 -298
  2. package/dist/reactist.cjs.development.js.map +1 -1
  3. package/dist/reactist.cjs.production.min.js +1 -1
  4. package/dist/reactist.cjs.production.min.js.map +1 -1
  5. package/es/components/menu/menu.js +2 -1
  6. package/es/components/menu/menu.js.map +1 -1
  7. package/es/index.js +3 -3
  8. package/es/new-components/alert/alert.js +16 -6
  9. package/es/new-components/alert/alert.js.map +1 -1
  10. package/es/new-components/alert/alert.module.css.js +1 -1
  11. package/es/{components → new-components}/avatar/avatar.js +14 -8
  12. package/es/new-components/avatar/avatar.js.map +1 -0
  13. package/es/new-components/avatar/avatar.module.css.js +4 -0
  14. package/es/new-components/avatar/avatar.module.css.js.map +1 -0
  15. package/es/{components → new-components}/avatar/utils.js +0 -0
  16. package/es/new-components/avatar/utils.js.map +1 -0
  17. package/es/new-components/base-button/base-button.js +5 -5
  18. package/es/new-components/base-button/base-button.js.map +1 -1
  19. package/es/new-components/box/box.js +5 -5
  20. package/es/new-components/box/box.js.map +1 -1
  21. package/es/new-components/box/box.module.css.js +1 -1
  22. package/es/new-components/button/button.js +0 -2
  23. package/es/new-components/button/button.js.map +1 -1
  24. package/es/new-components/button-link/button-link.js +0 -2
  25. package/es/new-components/button-link/button-link.js.map +1 -1
  26. package/es/new-components/heading/heading.module.css.js +1 -1
  27. package/es/new-components/inline/inline.js +2 -2
  28. package/es/new-components/inline/inline.js.map +1 -1
  29. package/es/new-components/modal/modal.js +11 -15
  30. package/es/new-components/modal/modal.js.map +1 -1
  31. package/es/new-components/notice/notice.js +3 -1
  32. package/es/new-components/notice/notice.js.map +1 -1
  33. package/es/new-components/tabs/tabs.module.css.js +1 -1
  34. package/es/new-components/text/text.module.css.js +1 -1
  35. package/es/new-components/text-area/text-area.js.map +1 -1
  36. package/es/new-components/text-link/text-link.module.css.js +1 -1
  37. package/lib/components/menu/menu.js +1 -1
  38. package/lib/components/menu/menu.js.map +1 -1
  39. package/lib/index.d.ts +1 -1
  40. package/lib/index.js +1 -1
  41. package/lib/new-components/alert/alert.js +1 -1
  42. package/lib/new-components/alert/alert.js.map +1 -1
  43. package/lib/new-components/alert/alert.module.css.js +1 -1
  44. package/lib/{components/avatar/avatar.test.d.ts → new-components/alert/alert.test.d.ts} +0 -0
  45. package/lib/{components → new-components}/avatar/avatar.d.ts +6 -3
  46. package/lib/new-components/avatar/avatar.js +2 -0
  47. package/lib/new-components/avatar/avatar.js.map +1 -0
  48. package/lib/new-components/avatar/avatar.module.css.js +2 -0
  49. package/lib/new-components/avatar/avatar.module.css.js.map +1 -0
  50. package/lib/{components/avatar/utils.test.d.ts → new-components/avatar/avatar.test.d.ts} +0 -0
  51. package/lib/new-components/avatar/index.d.ts +1 -0
  52. package/lib/{components → new-components}/avatar/utils.d.ts +0 -0
  53. package/lib/{components → new-components}/avatar/utils.js +0 -0
  54. package/lib/new-components/avatar/utils.js.map +1 -0
  55. package/lib/new-components/avatar/utils.test.d.ts +1 -0
  56. package/lib/new-components/base-button/base-button.d.ts +4 -2
  57. package/lib/new-components/base-button/base-button.js +1 -1
  58. package/lib/new-components/base-button/base-button.js.map +1 -1
  59. package/lib/new-components/box/box.d.ts +5 -2
  60. package/lib/new-components/box/box.js +1 -1
  61. package/lib/new-components/box/box.js.map +1 -1
  62. package/lib/new-components/box/box.module.css.js +1 -1
  63. package/lib/new-components/button/button.d.ts +2 -2
  64. package/lib/new-components/button/button.js.map +1 -1
  65. package/lib/new-components/button-link/button-link.d.ts +0 -2
  66. package/lib/new-components/button-link/button-link.js.map +1 -1
  67. package/lib/new-components/heading/heading.module.css.js +1 -1
  68. package/lib/new-components/inline/inline.js +1 -1
  69. package/lib/new-components/inline/inline.js.map +1 -1
  70. package/lib/new-components/modal/modal.d.ts +2 -1
  71. package/lib/new-components/modal/modal.js +1 -1
  72. package/lib/new-components/modal/modal.js.map +1 -1
  73. package/lib/new-components/notice/notice.js +1 -1
  74. package/lib/new-components/notice/notice.js.map +1 -1
  75. package/lib/new-components/notice/notice.test.d.ts +1 -0
  76. package/lib/new-components/tabs/tabs.module.css.js +1 -1
  77. package/lib/new-components/text/text.module.css.js +1 -1
  78. package/lib/new-components/text-area/text-area.d.ts +3 -1
  79. package/lib/new-components/text-area/text-area.js.map +1 -1
  80. package/lib/new-components/text-link/text-link.module.css.js +1 -1
  81. package/package.json +3 -3
  82. package/styles/alert.css +5 -2
  83. package/styles/alert.module.css.css +1 -1
  84. package/styles/avatar.css +5 -1
  85. package/styles/avatar.module.css.css +1 -0
  86. package/styles/base-button.css +1 -1
  87. package/styles/base-field.css +2 -2
  88. package/styles/box.css +1 -1
  89. package/styles/box.module.css.css +1 -1
  90. package/styles/checkbox-field.css +2 -2
  91. package/styles/columns.css +1 -1
  92. package/styles/divider.css +1 -1
  93. package/styles/heading.css +2 -2
  94. package/styles/heading.module.css.css +1 -1
  95. package/styles/hidden-visually.css +1 -1
  96. package/styles/hidden.css +1 -1
  97. package/styles/inline.css +1 -1
  98. package/styles/loading.css +1 -1
  99. package/styles/menu.css +1 -1
  100. package/styles/modal.css +1 -1
  101. package/styles/notice.css +1 -1
  102. package/styles/password-field.css +2 -2
  103. package/styles/progress-bar.css +1 -1
  104. package/styles/reactist.css +9 -9
  105. package/styles/select-field.css +2 -2
  106. package/styles/stack.css +1 -1
  107. package/styles/switch-field.css +2 -2
  108. package/styles/tabs.css +2 -2
  109. package/styles/tabs.module.css.css +1 -1
  110. package/styles/text-area.css +2 -2
  111. package/styles/text-field.css +2 -2
  112. package/styles/text-link.css +2 -2
  113. package/styles/text-link.module.css.css +1 -1
  114. package/styles/text.css +2 -2
  115. package/styles/text.module.css.css +1 -1
  116. package/es/components/avatar/avatar.js.map +0 -1
  117. package/es/components/avatar/index.js +0 -6
  118. package/es/components/avatar/index.js.map +0 -1
  119. package/es/components/avatar/utils.js.map +0 -1
  120. package/lib/components/avatar/avatar.js +0 -2
  121. package/lib/components/avatar/avatar.js.map +0 -1
  122. package/lib/components/avatar/index.d.ts +0 -2
  123. package/lib/components/avatar/index.js +0 -2
  124. package/lib/components/avatar/index.js.map +0 -1
  125. package/lib/components/avatar/utils.js.map +0 -1
@@ -196,7 +196,7 @@ function mapResponsiveProp(fromValue, mapper) {
196
196
  };
197
197
  }
198
198
 
199
- var modules_54d944f2 = {"box":"_2a8ae321","position-absolute":"_29e047b9","position-fixed":"fe54fea9","position-relative":"_6a95a38d","position-sticky":"ccc689fe","tablet-position-absolute":"aad88ae1","tablet-position-fixed":"_2044ccd3","tablet-position-relative":"a0904035","tablet-position-sticky":"_770506a5","desktop-position-absolute":"_5a954855","desktop-position-fixed":"_2dc73359","desktop-position-relative":"_6ab005ed","desktop-position-sticky":"fa60c726","display-block":"_221ad6a3","display-flex":"_6764f5bc","display-inline":"_50c37dba","display-inlineBlock":"_16546fe0","display-inlineFlex":"_2782a687","display-none":"b70b4fb7","tablet-display-block":"_5b3547cc","tablet-display-flex":"_099432e6","tablet-display-inline":"d99fcd80","tablet-display-inlineBlock":"_8f160568","tablet-display-inlineFlex":"_5b7b4be4","tablet-display-none":"_553721f8","desktop-display-block":"_6b86b317","desktop-display-flex":"eb20eda4","desktop-display-inline":"be19d1e9","desktop-display-inlineBlock":"dcf7c80a","desktop-display-inlineFlex":"e4f02b1f","desktop-display-none":"_3974e6d8","flexDirection-column":"daf5e366","flexDirection-row":"_47f2ddb7","tablet-flexDirection-column":"_27490d54","tablet-flexDirection-row":"_0317f51b","desktop-flexDirection-column":"_97590faa","desktop-flexDirection-row":"bf5d416e","flexWrap-wrap":"_210c1f9e","flexWrap-nowrap":"_2c775d07","flexShrink-0":"_25cae61d","flexGrow-0":"_6068a9cf","flexGrow-1":"c63f682c","alignItems-flexStart":"_0e774dfc","alignItems-center":"_5695a5d5","alignItems-flexEnd":"_139515d8","alignItems-baseline":"cea92f0a","tablet-alignItems-flexStart":"_3dc7ec16","tablet-alignItems-center":"_7993a7fa","tablet-alignItems-flexEnd":"b90d7edc","tablet-alignItems-baseline":"_7bd633f1","desktop-alignItems-flexStart":"_260d232b","desktop-alignItems-center":"_9e2e0a07","desktop-alignItems-flexEnd":"fc97448b","desktop-alignItems-baseline":"_0f76a529","justifyContent-flexStart":"_21d759bf","justifyContent-center":"ff70e049","justifyContent-flexEnd":"ae15d5ad","justifyContent-spaceAround":"_84374266","justifyContent-spaceBetween":"e72a8ca2","justifyContent-spaceEvenly":"_86224cb5","tablet-justifyContent-flexStart":"dceedee0","tablet-justifyContent-center":"_34ab3dab","tablet-justifyContent-flexEnd":"d5da2eb9","tablet-justifyContent-spaceAround":"_1677560d","tablet-justifyContent-spaceBetween":"ef77b2e7","tablet-justifyContent-spaceEvenly":"_685ef848","desktop-justifyContent-flexStart":"_695667f2","desktop-justifyContent-center":"ebb180cc","desktop-justifyContent-flexEnd":"bd5bb675","desktop-justifyContent-spaceBetween":"ae08a70c","overflow-hidden":"_4afa6fac","overflow-auto":"d8d342e4","overflow-visible":"c104da68","overflow-scroll":"_2d6bc0d0","height-full":"_99458759","bg-default":"aadb417c","bg-aside":"_36dca662","bg-highlight":"a1054115","bg-selected":"d17b4e9a","borderRadius-standard":"e3a3ee05","borderRadius-full":"be0cb60b","border-primary":"b9999f44","border-secondary":"_91063996","border-tertiary":"_0902977e","textAlign-start":"a7c58898","textAlign-center":"_2c9a262a","textAlign-end":"_46f07e93","textAlign-justify":"e526003e","tablet-textAlign-start":"_26864fce","tablet-textAlign-center":"e8f51d21","tablet-textAlign-end":"c1dc8b90","tablet-textAlign-justify":"_36bb3fa9","desktop-textAlign-start":"_942e35b0","desktop-textAlign-center":"_92da5c98","desktop-textAlign-end":"_2b0ecaf6","desktop-textAlign-justify":"_3dd24641"};
199
+ var modules_54d944f2 = {"box":"f9408a0e","position-absolute":"_7807dcdd","position-fixed":"dc5f328c","position-relative":"_0e4ff085","position-sticky":"_4019d94a","tablet-position-absolute":"b1865c0f","tablet-position-fixed":"af8c5967","tablet-position-relative":"ef2b609f","tablet-position-sticky":"_04935ffd","desktop-position-absolute":"bda94091","desktop-position-fixed":"_691dfd31","desktop-position-relative":"efda904e","desktop-position-sticky":"bcf04687","display-block":"b5b9f34a","display-flex":"_6e9db9aa","display-inline":"ece6d246","display-inlineBlock":"e5e2223f","display-inlineFlex":"f344a0e2","display-none":"_9002f8c2","tablet-display-block":"d896f0ff","tablet-display-flex":"_56412665","tablet-display-inline":"_6b430cc5","tablet-display-inlineBlock":"_4158c5ad","tablet-display-inlineFlex":"c598eaab","tablet-display-none":"_5a2a6d3f","desktop-display-block":"_132ef8fb","desktop-display-flex":"_5bd11385","desktop-display-inline":"a51c2ec9","desktop-display-inlineBlock":"_93506988","desktop-display-inlineFlex":"_385d45a5","desktop-display-none":"_921732eb","flexDirection-column":"_41ef5755","flexDirection-row":"_6cad1a19","tablet-flexDirection-column":"f1c16205","tablet-flexDirection-row":"_65305ae1","desktop-flexDirection-column":"_4916f0f9","desktop-flexDirection-row":"_430dfc8e","flexWrap-wrap":"_3d2d56fe","flexWrap-nowrap":"_826e4adf","flexShrink-0":"f8344e0f","flexGrow-0":"f117e2ab","flexGrow-1":"_1355325c","alignItems-flexStart":"c5b05c6a","alignItems-center":"_21b8bafa","alignItems-flexEnd":"_56d73c9b","alignItems-baseline":"_052e0707","tablet-alignItems-flexStart":"_90048c98","tablet-alignItems-center":"_7e189a0b","tablet-alignItems-flexEnd":"b8aefb5c","tablet-alignItems-baseline":"_4c1a5ef9","desktop-alignItems-flexStart":"f4d052ef","desktop-alignItems-center":"e5478926","desktop-alignItems-flexEnd":"b4f5051a","desktop-alignItems-baseline":"b21adace","justifyContent-flexStart":"be6deb6a","justifyContent-center":"d8eaf780","justifyContent-flexEnd":"_9212ca89","justifyContent-spaceAround":"_5d2cd095","justifyContent-spaceBetween":"_00d5fe7e","justifyContent-spaceEvenly":"ce4f4c2d","tablet-justifyContent-flexStart":"_6580dbbc","tablet-justifyContent-center":"_3f689891","tablet-justifyContent-flexEnd":"_628df8db","tablet-justifyContent-spaceAround":"_3ea88b4f","tablet-justifyContent-spaceBetween":"_4554d93d","tablet-justifyContent-spaceEvenly":"eb13fb50","desktop-justifyContent-flexStart":"_36dc744d","desktop-justifyContent-center":"ee7077ab","desktop-justifyContent-flexEnd":"_4edc8c86","desktop-justifyContent-spaceBetween":"_7e147696","alignSelf-stretch":"c0655cd6","alignSelf-flexStart":"_11863030","alignSelf-center":"c6d86139","alignSelf-flexEnd":"c0bd1f82","alignSelf-baseline":"_95686aec","tablet-alignSelf-stretch":"_9b712cc7","tablet-alignSelf-flexStart":"f7b935f7","tablet-alignSelf-center":"bf9ad125","tablet-alignSelf-flexEnd":"_3b4f8c3c","tablet-alignSelf-baseline":"_49d27079","desktop-alignSelf-stretch":"_63d27ffa","desktop-alignSelf-flexStart":"d45796cc","desktop-alignSelf-center":"c91c7bf7","desktop-alignSelf-flexEnd":"f2453212","desktop-alignSelf-baseline":"_3882757c","overflow-hidden":"_473810b4","overflow-auto":"_051c2340","overflow-visible":"_14e451d1","overflow-scroll":"_4d8555f8","height-full":"_867d251e","bg-default":"_2d928bf8","bg-aside":"db3f5af6","bg-highlight":"c990fcc3","bg-selected":"_976a662f","borderRadius-standard":"_46b52f05","borderRadius-full":"_1c8b326b","border-primary":"_0ef8c314","border-secondary":"_14871605","border-tertiary":"_36c045c3","textAlign-start":"d745aa1e","textAlign-center":"_31cf99c5","textAlign-end":"_10a7a030","textAlign-justify":"_2cfc8b46","tablet-textAlign-start":"e6b7bb40","tablet-textAlign-center":"_47dcb91c","tablet-textAlign-end":"_1d4011ce","tablet-textAlign-justify":"_18407499","desktop-textAlign-start":"_565de5cf","desktop-textAlign-center":"_64254ba3","desktop-textAlign-end":"_3cc6a504","desktop-textAlign-justify":"_0efec659"};
200
200
 
201
201
  var modules_b537a8ee = {"paddingTop-xsmall":"c4803194","paddingTop-small":"_4e9ab24b","paddingTop-medium":"_1d226e27","paddingTop-large":"eb6097f1","paddingTop-xlarge":"d3229ba4","paddingTop-xxlarge":"_47978ba4","tablet-paddingTop-xsmall":"f987719c","tablet-paddingTop-small":"_8dbc4b4d","tablet-paddingTop-medium":"ae44fe07","tablet-paddingTop-large":"ffe9548d","tablet-paddingTop-xlarge":"f2b76a44","tablet-paddingTop-xxlarge":"c6eb8f43","desktop-paddingTop-xsmall":"_8699b560","desktop-paddingTop-small":"_02c374b7","desktop-paddingTop-medium":"_0dd0332f","desktop-paddingTop-large":"da55f1f6","desktop-paddingTop-xlarge":"_8ef2a278","desktop-paddingTop-xxlarge":"_8b493b28","paddingRight-xsmall":"_211eebc7","paddingRight-small":"ad0ccf15","paddingRight-medium":"a03e39af","paddingRight-large":"f0941ead","paddingRight-xlarge":"e47c5a43","paddingRight-xxlarge":"e849a5cf","tablet-paddingRight-xsmall":"_85374228","tablet-paddingRight-small":"_89df37b9","tablet-paddingRight-medium":"_1cc50ebe","tablet-paddingRight-large":"_1060982b","tablet-paddingRight-xlarge":"be58847d","tablet-paddingRight-xxlarge":"_45093484","desktop-paddingRight-xsmall":"f8d99d6a","desktop-paddingRight-small":"efa076d9","desktop-paddingRight-medium":"e59caa64","desktop-paddingRight-large":"da42f46a","desktop-paddingRight-xlarge":"b3ee2580","desktop-paddingRight-xxlarge":"_3ef94658","paddingBottom-xsmall":"b0e6eab4","paddingBottom-small":"_9510d053","paddingBottom-medium":"d7af60c9","paddingBottom-large":"b75f86cd","paddingBottom-xlarge":"fbd4ce29","paddingBottom-xxlarge":"_33e3ad63","tablet-paddingBottom-xsmall":"f0302da7","tablet-paddingBottom-small":"_4f9b8012","tablet-paddingBottom-medium":"_4333e20e","tablet-paddingBottom-large":"_30bbc76c","tablet-paddingBottom-xlarge":"ba5a4008","tablet-paddingBottom-xxlarge":"_423a3b1a","desktop-paddingBottom-xsmall":"b40139b7","desktop-paddingBottom-small":"f96071fa","desktop-paddingBottom-medium":"fe803c9a","desktop-paddingBottom-large":"_01686eb9","desktop-paddingBottom-xlarge":"afa763d8","desktop-paddingBottom-xxlarge":"a95785f1","paddingLeft-xsmall":"cad4e2ec","paddingLeft-small":"d70b3c17","paddingLeft-medium":"_8c851bd6","paddingLeft-large":"_078feb3c","paddingLeft-xlarge":"_76ab968c","paddingLeft-xxlarge":"aaca85d7","tablet-paddingLeft-xsmall":"_5eb0e5aa","tablet-paddingLeft-small":"_0384fb4f","tablet-paddingLeft-medium":"edffff6f","tablet-paddingLeft-large":"_873b9a46","tablet-paddingLeft-xlarge":"_89105db5","tablet-paddingLeft-xxlarge":"db1966fe","desktop-paddingLeft-xsmall":"b17f826b","desktop-paddingLeft-small":"_6dc83610","desktop-paddingLeft-medium":"_3421b8b2","desktop-paddingLeft-large":"_68cec7a6","desktop-paddingLeft-xlarge":"_94bde020","desktop-paddingLeft-xxlarge":"b94ee579"};
202
202
 
@@ -204,7 +204,7 @@ var modules_131405ac = {"marginTop-xsmall":"c7813d79","marginTop-small":"d3449da
204
204
 
205
205
  var modules_89b7671c = {"minWidth-0":"_68ab48ca","minWidth-xsmall":"_6fa2b565","minWidth-small":"dd50fabd","minWidth-medium":"e7e2c808","minWidth-large":"_6abbe25e","minWidth-xlarge":"_54f479ac","maxWidth-xsmall":"_148492bc","maxWidth-small":"bd023b96","maxWidth-medium":"e102903f","maxWidth-large":"_0e8d76d7","maxWidth-xlarge":"_47a031d0","maxWidth-full":"cd4c8183","width-0":"_5f5959e8","width-full":"_8c75067a","width-auto":"_56a651f6","width-maxContent":"_26f87bb8","width-minContent":"_07a6ab44","width-fitContent":"a87016fa","width-xsmall":"_1a972e50","width-small":"c96d8261","width-medium":"f3829d42","width-large":"_2caef228","width-xlarge":"_069e1491"};
206
206
 
207
- var _excluded = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "alignItems", "justifyContent", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "className", "children"];
207
+ var _excluded = ["as", "position", "display", "flexDirection", "flexWrap", "flexGrow", "flexShrink", "alignItems", "justifyContent", "alignSelf", "overflow", "width", "height", "background", "border", "borderRadius", "minWidth", "maxWidth", "textAlign", "padding", "paddingY", "paddingX", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "margin", "marginY", "marginX", "marginTop", "marginRight", "marginBottom", "marginLeft", "className", "children"];
208
208
  var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
209
209
  var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9;
210
210
 
@@ -220,6 +220,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
220
220
  flexShrink = _ref.flexShrink,
221
221
  alignItems = _ref.alignItems,
222
222
  justifyContent = _ref.justifyContent,
223
+ alignSelf = _ref.alignSelf,
223
224
  overflow = _ref.overflow,
224
225
  width = _ref.width,
225
226
  height = _ref.height,
@@ -228,8 +229,7 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
228
229
  borderRadius = _ref.borderRadius,
229
230
  minWidth = _ref.minWidth,
230
231
  maxWidth = _ref.maxWidth,
231
- _ref$textAlign = _ref.textAlign,
232
- textAlign = _ref$textAlign === void 0 ? 'start' : _ref$textAlign,
232
+ textAlign = _ref.textAlign,
233
233
  padding = _ref.padding,
234
234
  paddingY = _ref.paddingY,
235
235
  paddingX = _ref.paddingX,
@@ -258,10 +258,10 @@ var Box = /*#__PURE__*/polymorphicComponent(function Box(_ref, ref) {
258
258
  var resolvedMarginLeft = (_ref9 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : marginX) !== null && _ref9 !== void 0 ? _ref9 : margin;
259
259
  var omitFlex = !display || typeof display === 'string' && display !== 'flex' && display !== 'inlineFlex';
260
260
  return /*#__PURE__*/React.createElement(component, _objectSpread2(_objectSpread2({}, props), {}, {
261
- className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(modules_89b7671c, 'minWidth', String(minWidth)) : null, getClassNames(modules_89b7671c, 'maxWidth', maxWidth), textAlign !== 'start' ? getClassNames(modules_54d944f2, 'textAlign', textAlign) : null, // padding
261
+ className: classNames(className, modules_54d944f2.box, display ? getClassNames(modules_54d944f2, 'display', display) : null, position !== 'static' ? getClassNames(modules_54d944f2, 'position', position) : null, minWidth != null ? getClassNames(modules_89b7671c, 'minWidth', String(minWidth)) : null, getClassNames(modules_89b7671c, 'maxWidth', maxWidth), getClassNames(modules_54d944f2, 'textAlign', textAlign), // padding
262
262
  getClassNames(modules_b537a8ee, 'paddingTop', resolvedPaddingTop), getClassNames(modules_b537a8ee, 'paddingRight', resolvedPaddingRight), getClassNames(modules_b537a8ee, 'paddingBottom', resolvedPaddingBottom), getClassNames(modules_b537a8ee, 'paddingLeft', resolvedPaddingLeft), // margin
263
263
  getClassNames(modules_131405ac, 'marginTop', resolvedMarginTop), getClassNames(modules_131405ac, 'marginRight', resolvedMarginRight), getClassNames(modules_131405ac, 'marginBottom', resolvedMarginBottom), getClassNames(modules_131405ac, 'marginLeft', resolvedMarginLeft), // flex props
264
- omitFlex ? null : getClassNames(modules_54d944f2, 'flexDirection', flexDirection), omitFlex ? null : getClassNames(modules_54d944f2, 'flexWrap', flexWrap), omitFlex ? null : getClassNames(modules_54d944f2, 'alignItems', alignItems), omitFlex ? null : getClassNames(modules_54d944f2, 'justifyContent', justifyContent), flexShrink != null ? getClassNames(modules_54d944f2, 'flexShrink', String(flexShrink)) : null, flexGrow != null ? getClassNames(modules_54d944f2, 'flexGrow', String(flexGrow)) : null, // other props
264
+ omitFlex ? null : getClassNames(modules_54d944f2, 'flexDirection', flexDirection), omitFlex ? null : getClassNames(modules_54d944f2, 'flexWrap', flexWrap), omitFlex ? null : getClassNames(modules_54d944f2, 'alignItems', alignItems), omitFlex ? null : getClassNames(modules_54d944f2, 'justifyContent', justifyContent), alignSelf != null ? getClassNames(modules_54d944f2, 'alignSelf', alignSelf) : null, flexShrink != null ? getClassNames(modules_54d944f2, 'flexShrink', String(flexShrink)) : null, flexGrow != null ? getClassNames(modules_54d944f2, 'flexGrow', String(flexGrow)) : null, // other props
265
265
  getClassNames(modules_54d944f2, 'overflow', overflow), width != null ? getClassNames(modules_89b7671c, 'width', String(width)) : null, getClassNames(modules_54d944f2, 'height', height), getClassNames(modules_54d944f2, 'bg', background), borderRadius !== 'none' ? getClassNames(modules_54d944f2, 'borderRadius', borderRadius) : null, border !== 'none' ? getClassNames(modules_54d944f2, 'border', border) : null) || undefined,
266
266
  ref: ref
267
267
  }), children);
@@ -348,7 +348,7 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
348
348
  exceptionallySetClassName = _ref.exceptionallySetClassName,
349
349
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
350
350
 
351
- return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
351
+ return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
352
352
  as: as,
353
353
  display: "flex",
354
354
  flexWrap: "wrap",
@@ -360,7 +360,7 @@ var Inline = /*#__PURE__*/polymorphicComponent(function Inline(_ref, ref) {
360
360
  justifyContent: mapResponsiveProp(align, function (align) {
361
361
  return align === 'left' ? 'flexStart' : align === 'right' ? 'flexEnd' : 'center';
362
362
  })
363
- }), children));
363
+ }), children);
364
364
  });
365
365
 
366
366
  var modules_3af3b7ac = {"space-xsmall":"_7b475ead","space-small":"_5641699f","space-medium":"_1a1c63e4","space-large":"_560f80a0","space-xlarge":"_84ffebbc","space-xxlarge":"b60a65cb","tablet-space-xsmall":"d808f5c3","tablet-space-small":"a51c76b3","tablet-space-medium":"_7185a7aa","tablet-space-large":"af82e610","tablet-space-xlarge":"_88b4ff46","tablet-space-xxlarge":"_9de15321","desktop-space-xsmall":"_6fb32d20","desktop-space-small":"_07ee315a","desktop-space-medium":"a270d7ec","desktop-space-large":"ea6ebb29","desktop-space-xlarge":"_35b36178","desktop-space-xxlarge":"_56c7dc23"};
@@ -462,7 +462,240 @@ var HiddenVisually = /*#__PURE__*/polymorphicComponent(function HiddenVisually(p
462
462
  }));
463
463
  });
464
464
 
465
- var _excluded$6 = ["tone"];
465
+ var _excluded$6 = ["children", "content", "position", "gapSize", "className"];
466
+
467
+ var SHOW_DELAY = 500;
468
+ var HIDE_DELAY = 100;
469
+
470
+ function useDelayedTooltipState(initialState) {
471
+ var tooltipState = Tooltip$1.useTooltipState(initialState);
472
+ var delay = useDelay();
473
+ return React__default.useMemo(function () {
474
+ return _objectSpread2(_objectSpread2({}, tooltipState), {}, {
475
+ show: delay(function () {
476
+ return tooltipState.show();
477
+ }, SHOW_DELAY),
478
+ hide: delay(function () {
479
+ return tooltipState.hide();
480
+ }, HIDE_DELAY)
481
+ });
482
+ }, [delay, tooltipState]);
483
+ }
484
+
485
+ function Tooltip(_ref) {
486
+ var children = _ref.children,
487
+ content = _ref.content,
488
+ _ref$position = _ref.position,
489
+ position = _ref$position === void 0 ? 'top' : _ref$position,
490
+ _ref$gapSize = _ref.gapSize,
491
+ gapSize = _ref$gapSize === void 0 ? 3 : _ref$gapSize,
492
+ className = _ref.className,
493
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
494
+
495
+ var tooltip = useDelayedTooltipState({
496
+ placement: position,
497
+ gutter: gapSize
498
+ });
499
+ var child = React__default.Children.only(children);
500
+
501
+ if (!content) {
502
+ return child;
503
+ }
504
+ /**
505
+ * Prevents the tooltip from automatically firing on focus all the time. This is to prevent
506
+ * tooltips from showing when the trigger element is focused back after a popover or dialog that
507
+ * it opened was closed. See link below for more details.
508
+ * @see https://github.com/reakit/reakit/discussions/749
509
+ */
510
+
511
+
512
+ function handleFocus(event) {
513
+ // If focus is not followed by a key up event, does it mean that it's not
514
+ // an intentional keyboard focus? Not sure but it seems to work.
515
+ // This may be resolved soon in an upcoming version of reakit:
516
+ // https://github.com/reakit/reakit/issues/750
517
+ function handleKeyUp(e) {
518
+ var eventKey = e.key;
519
+
520
+ if (eventKey !== 'Escape' && eventKey !== 'Enter' && eventKey !== 'Space') {
521
+ tooltip.show();
522
+ }
523
+ }
524
+
525
+ event.currentTarget.addEventListener('keyup', handleKeyUp, {
526
+ once: true
527
+ }); // Prevent tooltip.show from being called by TooltipReference
528
+
529
+ event.preventDefault(); // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
530
+
531
+ if (typeof child.props.onFocus === 'function') child.props.onFocus(event);
532
+ }
533
+
534
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tooltip$1.TooltipReference, Object.assign({}, tooltip, {
535
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
536
+ ref: child.ref
537
+ }, child.props, {
538
+ onFocus: handleFocus
539
+ }), function (referenceProps) {
540
+ return /*#__PURE__*/React__default.cloneElement(child, referenceProps);
541
+ }), tooltip.visible ? /*#__PURE__*/React__default.createElement(Tooltip$1.Tooltip, Object.assign({}, tooltip, props, {
542
+ className: classNames('reactist_tooltip', className)
543
+ }), typeof content === 'function' ? content() : content) : null);
544
+ }
545
+ // Internal helpers
546
+ //
547
+
548
+ /**
549
+ * Returns a function offering the same interface as setTimeout, but cleans up on unmount.
550
+ *
551
+ * The timeout state is shared, and only one delayed function can be active at any given time. If
552
+ * a new delayed function is called while another one was waiting for its time to run, that older
553
+ * invocation is cleared and it never runs.
554
+ *
555
+ * This is suitable for our use case here, but probably not the most intuitive thing in general.
556
+ * That's why this is not made a shared util or something like it.
557
+ */
558
+
559
+ function useDelay() {
560
+ var timeoutRef = React__default.useRef();
561
+ var clearTimeouts = React__default.useCallback(function clearTimeouts() {
562
+ if (timeoutRef.current != null) {
563
+ clearTimeout(timeoutRef.current);
564
+ }
565
+ }, []); // Runs clearTimeouts when the component is unmounted
566
+
567
+ React__default.useEffect(function () {
568
+ return clearTimeouts;
569
+ }, [clearTimeouts]);
570
+ return React__default.useCallback(function delay(fn, delay) {
571
+ return function () {
572
+ clearTimeouts();
573
+ timeoutRef.current = setTimeout(fn, delay);
574
+ };
575
+ }, [clearTimeouts]);
576
+ }
577
+
578
+ var modules_c7f5018f = {"svg":"_51539197","spinner":"_54fbe2b3","tint":"a0c466ed","fill":"_745b73d3"};
579
+
580
+ function Spinner(_ref) {
581
+ var _ref$size = _ref.size,
582
+ size = _ref$size === void 0 ? 24 : _ref$size;
583
+ return /*#__PURE__*/React.createElement("svg", {
584
+ "aria-hidden": true,
585
+ width: size,
586
+ height: size,
587
+ viewBox: "0 0 24 24",
588
+ className: modules_c7f5018f.svg
589
+ }, /*#__PURE__*/React.createElement("g", {
590
+ fill: "none",
591
+ fillRule: "nonzero"
592
+ }, /*#__PURE__*/React.createElement("path", {
593
+ className: modules_c7f5018f.tint,
594
+ d: "M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"
595
+ }), /*#__PURE__*/React.createElement("path", {
596
+ className: modules_c7f5018f.fill,
597
+ d: "M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"
598
+ })));
599
+ }
600
+
601
+ var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
602
+
603
+ var _excluded$7 = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "tooltipGapSize", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
604
+
605
+ function preventDefault(event) {
606
+ event.preventDefault();
607
+ }
608
+ /**
609
+ * The component that powers `Button` and `ButtonLink`, where the button styling logic and some
610
+ * common functionality resides. This component is internal to Reactist.
611
+ *
612
+ * @see Button
613
+ * @see ButtonLink
614
+ */
615
+
616
+
617
+ var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref) {
618
+ var _ref$as = _ref.as,
619
+ as = _ref$as === void 0 ? 'div' : _ref$as,
620
+ variant = _ref.variant,
621
+ _ref$tone = _ref.tone,
622
+ tone = _ref$tone === void 0 ? 'normal' : _ref$tone,
623
+ _ref$size = _ref.size,
624
+ size = _ref$size === void 0 ? 'normal' : _ref$size,
625
+ _ref$disabled = _ref.disabled,
626
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
627
+ _ref$loading = _ref.loading,
628
+ loading = _ref$loading === void 0 ? false : _ref$loading,
629
+ tooltip = _ref.tooltip,
630
+ tooltipGapSize = _ref.tooltipGapSize,
631
+ onClick = _ref.onClick,
632
+ exceptionallySetClassName = _ref.exceptionallySetClassName,
633
+ children = _ref.children,
634
+ startIcon = _ref.startIcon,
635
+ endIcon = _ref.endIcon,
636
+ icon = _ref.icon,
637
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
638
+
639
+ var isDisabled = loading || disabled;
640
+ var buttonElement = /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
641
+ as: as,
642
+ ref: ref,
643
+ "aria-disabled": isDisabled,
644
+ onClick: isDisabled ? preventDefault : onClick,
645
+ className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], icon ? modules_b9569bce.iconButton : null, disabled ? modules_b9569bce.disabled : null]
646
+ }), icon ? loading && /*#__PURE__*/React.createElement(Spinner, null) || icon : /*#__PURE__*/React.createElement(React.Fragment, null, startIcon ? /*#__PURE__*/React.createElement(Box, {
647
+ display: "flex",
648
+ className: modules_b9569bce.startIcon,
649
+ "aria-hidden": true
650
+ }, loading && !endIcon ? /*#__PURE__*/React.createElement(Spinner, null) : startIcon) : null, children ? /*#__PURE__*/React.createElement("span", {
651
+ className: modules_b9569bce.label
652
+ }, children) : null, endIcon || loading && !startIcon ? /*#__PURE__*/React.createElement(Box, {
653
+ display: "flex",
654
+ className: modules_b9569bce.endIcon,
655
+ "aria-hidden": true
656
+ }, loading ? /*#__PURE__*/React.createElement(Spinner, null) : endIcon) : null)); // If it's an icon-only button, make sure it uses the aria-label as tooltip if no tooltip was provided
657
+
658
+ var tooltipContent = icon ? tooltip !== null && tooltip !== void 0 ? tooltip : props['aria-label'] : tooltip;
659
+ return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
660
+ content: tooltipContent,
661
+ gapSize: tooltipGapSize
662
+ }, buttonElement) : buttonElement;
663
+ });
664
+
665
+ var _excluded$8 = ["variant", "tone", "size", "type", "disabled", "exceptionallySetClassName"];
666
+ /**
667
+ * A semantic button that also looks like a button, and provides all the necessary visual variants.
668
+ * It follows the [WAI-ARIA Button Pattern](https://www.w3.org/TR/wai-aria-practices/#button).
669
+ *
670
+ * @see ButtonLink
671
+ */
672
+
673
+ var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
674
+ var variant = _ref.variant,
675
+ _ref$tone = _ref.tone,
676
+ tone = _ref$tone === void 0 ? 'normal' : _ref$tone,
677
+ _ref$size = _ref.size,
678
+ size = _ref$size === void 0 ? 'normal' : _ref$size,
679
+ _ref$type = _ref.type,
680
+ type = _ref$type === void 0 ? 'button' : _ref$type,
681
+ _ref$disabled = _ref.disabled,
682
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
683
+ exceptionallySetClassName = _ref.exceptionallySetClassName,
684
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
685
+
686
+ return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
687
+ as: "button",
688
+ ref: ref,
689
+ variant: variant,
690
+ tone: tone,
691
+ size: size,
692
+ type: type,
693
+ disabled: disabled,
694
+ exceptionallySetClassName: exceptionallySetClassName
695
+ }));
696
+ });
697
+
698
+ var _excluded$9 = ["tone"];
466
699
  var alertIconForTone = {
467
700
  info: AlertInfoIcon,
468
701
  positive: AlertPositiveIcon,
@@ -472,7 +705,7 @@ var alertIconForTone = {
472
705
 
473
706
  function AlertIcon(_ref) {
474
707
  var tone = _ref.tone,
475
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
708
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
476
709
 
477
710
  var Icon = alertIconForTone[tone];
478
711
  return Icon ? /*#__PURE__*/React.createElement(Icon, Object.assign({}, props)) : null;
@@ -545,7 +778,7 @@ function CloseIcon(props) {
545
778
  }));
546
779
  }
547
780
 
548
- var modules_6205a58e = {"container":"ad19f859","tone-info":"_7fd19074","tone-positive":"b6504efb","tone-caution":"_1668c1a3","tone-critical":"_59663dff"};
781
+ var modules_6205a58e = {"container":"eb665121","tone-info":"d0373ff9","tone-positive":"bb18dcab","tone-caution":"_0af02331","tone-critical":"f76146f9"};
549
782
 
550
783
  function Alert(_ref) {
551
784
  var id = _ref.id,
@@ -557,7 +790,7 @@ function Alert(_ref) {
557
790
  id: id,
558
791
  role: "alert",
559
792
  "aria-live": "polite",
560
- padding: "small",
793
+ borderRadius: "standard",
561
794
  className: [modules_6205a58e.container, getClassNames(modules_6205a58e, 'tone', tone)]
562
795
  }, /*#__PURE__*/React.createElement(Columns, {
563
796
  space: "small",
@@ -566,39 +799,25 @@ function Alert(_ref) {
566
799
  width: "content"
567
800
  }, /*#__PURE__*/React.createElement(AlertIcon, {
568
801
  tone: tone
569
- })), /*#__PURE__*/React.createElement(Column, null, children), onClose != null ? /*#__PURE__*/React.createElement(Column, {
802
+ })), /*#__PURE__*/React.createElement(Column, null, /*#__PURE__*/React.createElement(Box, {
803
+ paddingY: "xsmall",
804
+ paddingRight: onClose != null && closeLabel != null ? undefined : 'small'
805
+ }, children)), onClose != null && closeLabel != null ? /*#__PURE__*/React.createElement(Column, {
570
806
  width: "content"
571
- }, /*#__PURE__*/React.createElement("button", {
572
- type: "button",
807
+ }, /*#__PURE__*/React.createElement(Button, {
808
+ variant: "quaternary",
809
+ size: "small",
573
810
  onClick: onClose,
574
- "aria-label": closeLabel
575
- }, /*#__PURE__*/React.createElement(CloseIcon, null))) : null));
576
- }
577
-
578
- var modules_c7f5018f = {"svg":"_51539197","spinner":"_54fbe2b3","tint":"a0c466ed","fill":"_745b73d3"};
579
-
580
- function Spinner(_ref) {
581
- var _ref$size = _ref.size,
582
- size = _ref$size === void 0 ? 24 : _ref$size;
583
- return /*#__PURE__*/React.createElement("svg", {
584
- "aria-hidden": true,
585
- width: size,
586
- height: size,
587
- viewBox: "0 0 24 24",
588
- className: modules_c7f5018f.svg
589
- }, /*#__PURE__*/React.createElement("g", {
590
- fill: "none",
591
- fillRule: "nonzero"
592
- }, /*#__PURE__*/React.createElement("path", {
593
- className: modules_c7f5018f.tint,
594
- d: "M17.945 3.958A9.955 9.955 0 0 0 12 2c-2.19 0-4.217.705-5.865 1.9L5.131 2.16A11.945 11.945 0 0 1 12 0c2.59 0 4.99.82 6.95 2.217l-1.005 1.741z"
595
- }), /*#__PURE__*/React.createElement("path", {
596
- className: modules_c7f5018f.fill,
597
- d: "M5.13 2.16L6.136 3.9A9.987 9.987 0 0 0 2 12c0 5.523 4.477 10 10 10s10-4.477 10-10a9.986 9.986 0 0 0-4.055-8.042l1.006-1.741A11.985 11.985 0 0 1 24 12c0 6.627-5.373 12-12 12S0 18.627 0 12c0-4.073 2.029-7.671 5.13-9.84z"
598
- })));
811
+ "aria-label": closeLabel,
812
+ icon: /*#__PURE__*/React.createElement(CloseIcon, null),
813
+ style: {
814
+ // @ts-expect-error not sure how to make TypeScript understand custom CSS properties
815
+ '--reactist-btn-hover-fill': 'transparent'
816
+ }
817
+ })) : null));
599
818
  }
600
819
 
601
- var _excluded$7 = ["size", "exceptionallySetClassName"];
820
+ var _excluded$a = ["size", "exceptionallySetClassName"];
602
821
  var sizeMapping = {
603
822
  small: 24,
604
823
  medium: 36,
@@ -611,7 +830,7 @@ function Loading(_ref) {
611
830
  var _ref$size = _ref.size,
612
831
  size = _ref$size === void 0 ? 'small' : _ref$size,
613
832
  exceptionallySetClassName = _ref.exceptionallySetClassName,
614
- props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
833
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
615
834
 
616
835
  var numericSize = (_sizeMapping$size = sizeMapping[size]) !== null && _sizeMapping$size !== void 0 ? _sizeMapping$size : sizeMapping.small;
617
836
  var ariaLabel = props['aria-label'] ? props['aria-label'] : !props['aria-labelledby'] ? 'Loading…' : undefined;
@@ -646,12 +865,14 @@ function Notice(_ref) {
646
865
  width: "content"
647
866
  }, /*#__PURE__*/React.createElement(AlertIcon, {
648
867
  tone: tone
649
- })), /*#__PURE__*/React.createElement(Column, null, children)));
868
+ })), /*#__PURE__*/React.createElement(Column, null, /*#__PURE__*/React.createElement(Box, {
869
+ paddingY: "xsmall"
870
+ }, children))));
650
871
  }
651
872
 
652
- var modules_949d2ff4 = {"heading":"_2f45487c","weight-light":"a20cbde9","tone-secondary":"_75f44518","tone-danger":"_3952cc59","size-largest":"b71d22ef","size-larger":"f15346e2","size-smaller":"_3cae1428","lineClampMultipleLines":"_347f6fcd","lineClamp-1":"_895c0b16","lineClamp-2":"_2e4808bd","lineClamp-3":"_1bdb7bdc","lineClamp-4":"_159943ea","lineClamp-5":"e44e008d"};
873
+ var modules_949d2ff4 = {"heading":"_71a1610c","weight-light":"_63750f40","tone-secondary":"_9ce984cf","tone-danger":"_1acad35e","size-largest":"_3da27a00","size-larger":"df220733","size-smaller":"eb373739","lineClampMultipleLines":"f53cfd2b","lineClamp-1":"e4819fc9","lineClamp-2":"a0ed6177","lineClamp-3":"_180d433e","lineClamp-4":"_40826ad9","lineClamp-5":"_5999b247"};
653
874
 
654
- var _excluded$8 = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
875
+ var _excluded$b = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
655
876
  var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
656
877
  var level = _ref.level,
657
878
  _ref$weight = _ref.weight,
@@ -663,7 +884,7 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
663
884
  lineClamp = _ref.lineClamp,
664
885
  align = _ref.align,
665
886
  exceptionallySetClassName = _ref.exceptionallySetClassName,
666
- props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
667
888
 
668
889
  // In TypeScript v4.1, this would be properly recognized without needing the type assertion
669
890
  // https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types
@@ -680,9 +901,9 @@ var Heading = /*#__PURE__*/React.forwardRef(function Heading(_ref, ref) {
680
901
  }), children);
681
902
  });
682
903
 
683
- var modules_a9637dd3 = {"text":"c12d1277","size-caption":"c88e1204","size-copy":"_426d67ec","size-subtitle":"f978d6c7","weight-semibold":"_0c31eccd","weight-bold":"aba17bdd","tone-secondary":"_2767b43d","tone-danger":"e8ae531e","lineClampMultipleLines":"dc839422","lineClamp-1":"e2d23135","lineClamp-2":"_7c778b7e","lineClamp-3":"_5ff41166","lineClamp-4":"b7a4998e","lineClamp-5":"_6a7f8803"};
904
+ var modules_a9637dd3 = {"text":"c5028ea8","size-caption":"_05d3a546","size-copy":"_100565e3","size-subtitle":"b8f72625","weight-semibold":"_398ecda1","weight-bold":"_8054cd6b","tone-secondary":"_6abd56b1","tone-danger":"_274b4a47","lineClampMultipleLines":"_724b0054","lineClamp-1":"_51ac6ee4","lineClamp-2":"b0742803","lineClamp-3":"dd664c95","lineClamp-4":"b02775b5","lineClamp-5":"da91b300"};
684
905
 
685
- var _excluded$9 = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
906
+ var _excluded$c = ["as", "size", "weight", "tone", "align", "children", "lineClamp", "exceptionallySetClassName"];
686
907
  var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
687
908
  var as = _ref.as,
688
909
  _ref$size = _ref.size,
@@ -695,7 +916,7 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
695
916
  children = _ref.children,
696
917
  lineClamp = _ref.lineClamp,
697
918
  exceptionallySetClassName = _ref.exceptionallySetClassName,
698
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
919
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
699
920
 
700
921
  var lineClampMultipleLines = typeof lineClamp === 'string' ? Number(lineClamp) > 1 : (lineClamp !== null && lineClamp !== void 0 ? lineClamp : 1) > 1;
701
922
  return /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
@@ -709,225 +930,11 @@ var Text = /*#__PURE__*/polymorphicComponent(function Text(_ref, ref) {
709
930
  }), children);
710
931
  });
711
932
 
712
- var _excluded$a = ["children", "content", "position", "gapSize", "className"];
713
-
714
- var SHOW_DELAY = 500;
715
- var HIDE_DELAY = 100;
716
-
717
- function useDelayedTooltipState(initialState) {
718
- var tooltipState = Tooltip$1.useTooltipState(initialState);
719
- var delay = useDelay();
720
- return React__default.useMemo(function () {
721
- return _objectSpread2(_objectSpread2({}, tooltipState), {}, {
722
- show: delay(function () {
723
- return tooltipState.show();
724
- }, SHOW_DELAY),
725
- hide: delay(function () {
726
- return tooltipState.hide();
727
- }, HIDE_DELAY)
728
- });
729
- }, [delay, tooltipState]);
730
- }
731
-
732
- function Tooltip(_ref) {
733
- var children = _ref.children,
734
- content = _ref.content,
735
- _ref$position = _ref.position,
736
- position = _ref$position === void 0 ? 'top' : _ref$position,
737
- _ref$gapSize = _ref.gapSize,
738
- gapSize = _ref$gapSize === void 0 ? 3 : _ref$gapSize,
739
- className = _ref.className,
740
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
741
-
742
- var tooltip = useDelayedTooltipState({
743
- placement: position,
744
- gutter: gapSize
745
- });
746
- var child = React__default.Children.only(children);
747
-
748
- if (!content) {
749
- return child;
750
- }
751
- /**
752
- * Prevents the tooltip from automatically firing on focus all the time. This is to prevent
753
- * tooltips from showing when the trigger element is focused back after a popover or dialog that
754
- * it opened was closed. See link below for more details.
755
- * @see https://github.com/reakit/reakit/discussions/749
756
- */
757
-
758
-
759
- function handleFocus(event) {
760
- // If focus is not followed by a key up event, does it mean that it's not
761
- // an intentional keyboard focus? Not sure but it seems to work.
762
- // This may be resolved soon in an upcoming version of reakit:
763
- // https://github.com/reakit/reakit/issues/750
764
- function handleKeyUp(e) {
765
- var eventKey = e.key;
766
-
767
- if (eventKey !== 'Escape' && eventKey !== 'Enter' && eventKey !== 'Space') {
768
- tooltip.show();
769
- }
770
- }
771
-
772
- event.currentTarget.addEventListener('keyup', handleKeyUp, {
773
- once: true
774
- }); // Prevent tooltip.show from being called by TooltipReference
775
-
776
- event.preventDefault(); // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
777
-
778
- if (typeof child.props.onFocus === 'function') child.props.onFocus(event);
779
- }
780
-
781
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tooltip$1.TooltipReference, Object.assign({}, tooltip, {
782
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
783
- ref: child.ref
784
- }, child.props, {
785
- onFocus: handleFocus
786
- }), function (referenceProps) {
787
- return /*#__PURE__*/React__default.cloneElement(child, referenceProps);
788
- }), tooltip.visible ? /*#__PURE__*/React__default.createElement(Tooltip$1.Tooltip, Object.assign({}, tooltip, props, {
789
- className: classNames('reactist_tooltip', className)
790
- }), typeof content === 'function' ? content() : content) : null);
791
- }
792
- // Internal helpers
793
- //
794
-
795
- /**
796
- * Returns a function offering the same interface as setTimeout, but cleans up on unmount.
797
- *
798
- * The timeout state is shared, and only one delayed function can be active at any given time. If
799
- * a new delayed function is called while another one was waiting for its time to run, that older
800
- * invocation is cleared and it never runs.
801
- *
802
- * This is suitable for our use case here, but probably not the most intuitive thing in general.
803
- * That's why this is not made a shared util or something like it.
804
- */
805
-
806
- function useDelay() {
807
- var timeoutRef = React__default.useRef();
808
- var clearTimeouts = React__default.useCallback(function clearTimeouts() {
809
- if (timeoutRef.current != null) {
810
- clearTimeout(timeoutRef.current);
811
- }
812
- }, []); // Runs clearTimeouts when the component is unmounted
813
-
814
- React__default.useEffect(function () {
815
- return clearTimeouts;
816
- }, [clearTimeouts]);
817
- return React__default.useCallback(function delay(fn, delay) {
818
- return function () {
819
- clearTimeouts();
820
- timeoutRef.current = setTimeout(fn, delay);
821
- };
822
- }, [clearTimeouts]);
823
- }
824
-
825
- var modules_b9569bce = {"label":"_1f20c88a","baseButton":"_623015f3","size-small":"_062de645","size-normal":"_55e2a6a9","size-large":"cab32a7c","disabled":"e71c191a","iconButton":"_368efc16","startIcon":"d35389c1","endIcon":"_900d41d8","variant-primary":"_7c95e162","variant-secondary":"_9cb889aa","variant-tertiary":"_611b5b28","variant-quaternary":"_80c2bb84","tone-destructive":"ee13c455"};
826
-
827
- var _excluded$b = ["as", "variant", "tone", "size", "disabled", "loading", "tooltip", "onClick", "exceptionallySetClassName", "children", "startIcon", "endIcon", "icon"];
828
-
829
- function preventDefault(event) {
830
- event.preventDefault();
831
- }
832
- /**
833
- * The component that powers `Button` and `ButtonLink`, where the button styling logic and some
834
- * common functionality resides. This component is internal to Reactist.
835
- *
836
- * 🎨 [Figma](https://www.figma.com/file/LYlWNzvhMDh907l07mPPQk/Product-Web?node-id=4693%3A175143)
837
- *
838
- * @see Button
839
- * @see ButtonLink
840
- */
841
-
842
-
843
- var BaseButton = /*#__PURE__*/polymorphicComponent(function BaseButton(_ref, ref) {
844
- var _ref$as = _ref.as,
845
- as = _ref$as === void 0 ? 'div' : _ref$as,
846
- variant = _ref.variant,
847
- _ref$tone = _ref.tone,
848
- tone = _ref$tone === void 0 ? 'normal' : _ref$tone,
849
- _ref$size = _ref.size,
850
- size = _ref$size === void 0 ? 'normal' : _ref$size,
851
- _ref$disabled = _ref.disabled,
852
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
853
- _ref$loading = _ref.loading,
854
- loading = _ref$loading === void 0 ? false : _ref$loading,
855
- tooltip = _ref.tooltip,
856
- onClick = _ref.onClick,
857
- exceptionallySetClassName = _ref.exceptionallySetClassName,
858
- children = _ref.children,
859
- startIcon = _ref.startIcon,
860
- endIcon = _ref.endIcon,
861
- icon = _ref.icon,
862
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
863
-
864
- var isDisabled = loading || disabled;
865
- var buttonElement = /*#__PURE__*/React.createElement(Box, Object.assign({}, props, {
866
- as: as,
867
- ref: ref,
868
- "aria-disabled": isDisabled,
869
- onClick: isDisabled ? preventDefault : onClick,
870
- className: [exceptionallySetClassName, modules_b9569bce.baseButton, modules_b9569bce["variant-" + variant], modules_b9569bce["tone-" + tone], modules_b9569bce["size-" + size], icon ? modules_b9569bce.iconButton : null, disabled ? modules_b9569bce.disabled : null]
871
- }), icon ? loading && /*#__PURE__*/React.createElement(Spinner, null) || icon : /*#__PURE__*/React.createElement(React.Fragment, null, startIcon ? /*#__PURE__*/React.createElement(Box, {
872
- display: "flex",
873
- className: modules_b9569bce.startIcon,
874
- "aria-hidden": true
875
- }, loading && !endIcon ? /*#__PURE__*/React.createElement(Spinner, null) : startIcon) : null, children ? /*#__PURE__*/React.createElement("span", {
876
- className: modules_b9569bce.label
877
- }, children) : null, endIcon || loading && !startIcon ? /*#__PURE__*/React.createElement(Box, {
878
- display: "flex",
879
- className: modules_b9569bce.endIcon,
880
- "aria-hidden": true
881
- }, loading ? /*#__PURE__*/React.createElement(Spinner, null) : endIcon) : null)); // If it's an icon-only button, make sure it uses the aria-label as tooltip if no tooltip was provided
882
-
883
- var tooltipContent = icon ? tooltip !== null && tooltip !== void 0 ? tooltip : props['aria-label'] : tooltip;
884
- return tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
885
- content: tooltipContent
886
- }, buttonElement) : buttonElement;
887
- });
888
-
889
- var _excluded$c = ["variant", "tone", "size", "type", "disabled", "exceptionallySetClassName"];
890
- /**
891
- * A semantic button that also looks like a button, and provides all the necessary visual variants.
892
- * It follows the [WAI-ARIA Button Pattern](https://www.w3.org/TR/wai-aria-practices/#button).
893
- *
894
- * 🎨 [Figma](https://www.figma.com/file/LYlWNzvhMDh907l07mPPQk/Product-Web?node-id=4693%3A175143)
895
- *
896
- * @see ButtonLink
897
- */
898
-
899
- var Button = /*#__PURE__*/React.forwardRef(function Button(_ref, ref) {
900
- var variant = _ref.variant,
901
- _ref$tone = _ref.tone,
902
- tone = _ref$tone === void 0 ? 'normal' : _ref$tone,
903
- _ref$size = _ref.size,
904
- size = _ref$size === void 0 ? 'normal' : _ref$size,
905
- _ref$type = _ref.type,
906
- type = _ref$type === void 0 ? 'button' : _ref$type,
907
- _ref$disabled = _ref.disabled,
908
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
909
- exceptionallySetClassName = _ref.exceptionallySetClassName,
910
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
911
-
912
- return /*#__PURE__*/React.createElement(BaseButton, Object.assign({}, props, {
913
- as: "button",
914
- ref: ref,
915
- variant: variant,
916
- tone: tone,
917
- size: size,
918
- type: type,
919
- disabled: disabled,
920
- exceptionallySetClassName: exceptionallySetClassName
921
- }));
922
- });
923
-
924
933
  var _excluded$d = ["as", "variant", "tone", "size", "exceptionallySetClassName", "openInNewTab"];
925
934
  /**
926
935
  * A semantic link that looks like a button, exactly matching the `Button` component in all visual
927
936
  * aspects.
928
937
  *
929
- *🎨 [Figma](https://www.figma.com/file/LYlWNzvhMDh907l07mPPQk/Product-Web?node-id=4693%3A175143)
930
- *
931
938
  * @see Button
932
939
  */
933
940
 
@@ -956,7 +963,7 @@ var ButtonLink = /*#__PURE__*/polymorphicComponent(function ButtonLink(_ref, ref
956
963
  }));
957
964
  });
958
965
 
959
- var modules_3d05deee = {"container":"_12eda218"};
966
+ var modules_3d05deee = {"container":"b55607a1"};
960
967
 
961
968
  var _excluded$e = ["as", "openInNewTab", "exceptionallySetClassName"];
962
969
  var TextLink = /*#__PURE__*/polymorphicComponent(function TextLink(_ref, ref) {
@@ -1516,7 +1523,7 @@ function usePrevious(value) {
1516
1523
  return ref.current;
1517
1524
  }
1518
1525
 
1519
- var modules_40c67f5b = {"tab":"_7cdcd0b6","tab-normal":"af6705d0","tab-primary":"ad705020","tab-secondary":"_69a2043b","tab-tertiary":"_5b695667","tab-plain":"_88d3dc5e"};
1526
+ var modules_40c67f5b = {"tab":"bae5f7d8","tab-normal":"ad3e25c3","tab-primary":"_3a9a0bad","tab-secondary":"_143d4b7d","tab-tertiary":"c9c5d77d","tab-plain":"_92c440c0"};
1520
1527
 
1521
1528
  var _excluded$m = ["color", "variant"],
1522
1529
  _excluded2$1 = ["children", "space"],
@@ -1737,7 +1744,7 @@ function ModalCloseButton(props) {
1737
1744
 
1738
1745
  var _React$useState = React.useState(false),
1739
1746
  includeInTabOrder = _React$useState[0],
1740
- setincludeInTabOrder = _React$useState[1];
1747
+ setIncludeInTabOrder = _React$useState[1];
1741
1748
 
1742
1749
  var _React$useState2 = React.useState(false),
1743
1750
  isMounted = _React$useState2[0],
@@ -1745,7 +1752,7 @@ function ModalCloseButton(props) {
1745
1752
 
1746
1753
  React.useEffect(function skipAutoFocus() {
1747
1754
  if (isMounted) {
1748
- setincludeInTabOrder(true);
1755
+ setIncludeInTabOrder(true);
1749
1756
  } else {
1750
1757
  setIsMounted(true);
1751
1758
  }
@@ -1785,13 +1792,14 @@ function ModalHeader(_ref2) {
1785
1792
  alignY: "center"
1786
1793
  }, /*#__PURE__*/React.createElement(Column, {
1787
1794
  width: "auto"
1788
- }, children), /*#__PURE__*/React.createElement(Column, {
1795
+ }, children), button === false || button === null ? null : /*#__PURE__*/React.createElement(Column, {
1789
1796
  width: "content",
1790
- exceptionallySetClassName: modules_8f59d13b.buttonContainer
1791
- }, typeof button !== 'boolean' ? button : button === true ? /*#__PURE__*/React.createElement(ModalCloseButton, {
1797
+ exceptionallySetClassName: modules_8f59d13b.buttonContainer,
1798
+ "data-testid": "button-container"
1799
+ }, typeof button === 'boolean' ? /*#__PURE__*/React.createElement(ModalCloseButton, {
1792
1800
  "aria-label": "Close modal",
1793
1801
  autoFocus: false
1794
- }) : null))), withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
1802
+ }) : button))), withDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
1795
1803
  }
1796
1804
  /**
1797
1805
  * Renders the body of a modal.
@@ -1844,10 +1852,7 @@ function ModalFooter(_ref4) {
1844
1852
  className: exceptionallySetClassName,
1845
1853
  padding: "large"
1846
1854
  })));
1847
- } //
1848
- // ModalActions
1849
- //
1850
-
1855
+ }
1851
1856
  /**
1852
1857
  * A specific version of the ModalFooter, tailored to showing an inline list of actions (buttons).
1853
1858
  * @see ModalFooter
@@ -1860,9 +1865,7 @@ function ModalActions(_ref5) {
1860
1865
  return /*#__PURE__*/React.createElement(ModalFooter, Object.assign({}, props), /*#__PURE__*/React.createElement(Inline, {
1861
1866
  align: "right",
1862
1867
  space: "large"
1863
- }, React.Children.map(children, function (child) {
1864
- return /*#__PURE__*/React.createElement("div", null, child);
1865
- })));
1868
+ }, children));
1866
1869
  }
1867
1870
 
1868
1871
  function getInitials(name) {
@@ -1889,8 +1892,10 @@ function emailToIndex(email, maxIndex) {
1889
1892
  return hash % maxIndex;
1890
1893
  }
1891
1894
 
1895
+ var modules_08f3eeac = {"avatar":"_38a1be89","size-xxs":"d32e92ae","size-xs":"_0667d719","size-s":"cf529fcf","size-m":"_6e268eab","size-l":"d64c62cf","size-xl":"_44fb77de","size-xxl":"_01f85e0e","size-xxxl":"_41a5fe19","tablet-size-xxs":"_6ab1577d","tablet-size-xs":"b52a4963","tablet-size-s":"_714a8419","tablet-size-m":"_81cd4d51","tablet-size-l":"bf0a4edb","tablet-size-xl":"e4f0dabd","tablet-size-xxl":"_67ea065d","tablet-size-xxxl":"_2af7f76f","desktop-size-xxs":"_759081dc","desktop-size-xs":"_8290d1c1","desktop-size-s":"_48ea172d","desktop-size-m":"_758f6641","desktop-size-l":"f9ada088","desktop-size-xl":"d3bb7470","desktop-size-xxl":"_9a312ee3","desktop-size-xxxl":"a1d30c23"};
1896
+
1897
+ var _excluded$o = ["user", "avatarUrl", "size", "className", "colorList", "exceptionallySetClassName"];
1892
1898
  var AVATAR_COLORS = ['#fcc652', '#e9952c', '#e16b2d', '#d84b40', '#e8435a', '#e5198a', '#ad3889', '#86389c', '#a8a8a8', '#98be2f', '#5d9d50', '#5f9f85', '#5bbcb6', '#32a3bf', '#2bafeb', '#2d88c3', '#3863cc', '#5e5e5e'];
1893
- var AVATAR_SIZES = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl'];
1894
1899
 
1895
1900
  function Avatar(_ref) {
1896
1901
  var user = _ref.user,
@@ -1899,20 +1904,23 @@ function Avatar(_ref) {
1899
1904
  size = _ref$size === void 0 ? 'l' : _ref$size,
1900
1905
  className = _ref.className,
1901
1906
  _ref$colorList = _ref.colorList,
1902
- colorList = _ref$colorList === void 0 ? AVATAR_COLORS : _ref$colorList;
1907
+ colorList = _ref$colorList === void 0 ? AVATAR_COLORS : _ref$colorList,
1908
+ exceptionallySetClassName = _ref.exceptionallySetClassName,
1909
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
1910
+
1903
1911
  var userInitials = getInitials(user.name) || getInitials(user.email);
1904
- var avatarSize = size && AVATAR_SIZES.includes(size) ? size : 'l';
1905
- var avatarClass = classNames("reactist_avatar reactist_avatar_size--" + avatarSize, className);
1912
+ var avatarSize = size ? size : 'l';
1906
1913
  var style = avatarUrl ? {
1907
1914
  backgroundImage: "url(" + avatarUrl + ")",
1908
1915
  textIndent: '-9999px'
1909
1916
  } : {
1910
1917
  backgroundColor: colorList[emailToIndex(user.email, colorList.length)]
1911
1918
  };
1912
- return /*#__PURE__*/React__default.createElement("div", {
1913
- className: avatarClass,
1919
+ var sizeClassName = getClassNames(modules_08f3eeac, 'size', avatarSize);
1920
+ return /*#__PURE__*/React__default.createElement(Box, Object.assign({
1921
+ className: [className, modules_08f3eeac.avatar, sizeClassName, exceptionallySetClassName],
1914
1922
  style: style
1915
- }, userInitials);
1923
+ }, props), userInitials);
1916
1924
  }
1917
1925
 
1918
1926
  Avatar.displayName = 'Avatar';
@@ -1939,7 +1947,7 @@ function Checkbox(_ref) {
1939
1947
 
1940
1948
  Checkbox.displayName = 'Checkbox';
1941
1949
 
1942
- var _excluded$o = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
1950
+ var _excluded$p = ["type", "variant", "size", "loading", "disabled", "tooltip", "onClick", "children"];
1943
1951
  /**
1944
1952
  * @deprecated
1945
1953
  */
@@ -1957,7 +1965,7 @@ var Button$1 = /*#__PURE__*/React__default.forwardRef(function Button(_ref, ref)
1957
1965
  tooltip = _ref.tooltip,
1958
1966
  onClick = _ref.onClick,
1959
1967
  children = _ref.children,
1960
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
1968
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
1961
1969
 
1962
1970
  var className = classNames('reactist_button', variant ? "reactist_button--" + variant : null, size !== 'default' ? "reactist_button--" + size : null, {
1963
1971
  'reactist_button--loading': loading
@@ -1980,7 +1988,7 @@ Button$1.defaultProps = {
1980
1988
  disabled: false
1981
1989
  };
1982
1990
 
1983
- var _excluded$p = ["children", "onClick", "tooltip", "className"];
1991
+ var _excluded$q = ["children", "onClick", "tooltip", "className"];
1984
1992
 
1985
1993
  var Box$1 = /*#__PURE__*/function (_React$Component) {
1986
1994
  _inheritsLoose(Box, _React$Component);
@@ -2132,7 +2140,7 @@ var Trigger = /*#__PURE__*/React__default.forwardRef(function Trigger(_ref, ref)
2132
2140
  onClick = _ref.onClick,
2133
2141
  tooltip = _ref.tooltip,
2134
2142
  className = _ref.className,
2135
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
2143
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
2136
2144
 
2137
2145
  function handleClick(event) {
2138
2146
  event.preventDefault();
@@ -2269,7 +2277,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
2269
2277
  });
2270
2278
  Input.displayName = 'Input';
2271
2279
 
2272
- var _excluded$q = ["children", "className", "translateKey", "isMac"];
2280
+ var _excluded$r = ["children", "className", "translateKey", "isMac"];
2273
2281
  // Support for setting up how to translate modifiers globally.
2274
2282
  //
2275
2283
 
@@ -2353,7 +2361,7 @@ function KeyboardShortcut(_ref) {
2353
2361
  translateKey = _ref$translateKey === void 0 ? globalTranslateKey : _ref$translateKey,
2354
2362
  _ref$isMac = _ref.isMac,
2355
2363
  isMac = _ref$isMac === void 0 ? (_navigator$platform$t = (_navigator$platform = navigator.platform) === null || _navigator$platform === void 0 ? void 0 : _navigator$platform.toUpperCase().includes('MAC')) !== null && _navigator$platform$t !== void 0 ? _navigator$platform$t : false : _ref$isMac,
2356
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
2364
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
2357
2365
 
2358
2366
  var shortcuts = typeof children === 'string' ? [children] : children;
2359
2367
  return /*#__PURE__*/React.createElement("span", Object.assign({
@@ -2896,7 +2904,7 @@ function ProgressBar(_ref) {
2896
2904
 
2897
2905
  ProgressBar.displayName = 'ProgressBar';
2898
2906
 
2899
- var _excluded$r = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
2907
+ var _excluded$s = ["value", "options", "onChange", "disabled", "className", "defaultValue"];
2900
2908
 
2901
2909
  function Select(_ref) {
2902
2910
  var value = _ref.value,
@@ -2908,7 +2916,7 @@ function Select(_ref) {
2908
2916
  _ref$className = _ref.className,
2909
2917
  className = _ref$className === void 0 ? '' : _ref$className,
2910
2918
  defaultValue = _ref.defaultValue,
2911
- otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
2919
+ otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
2912
2920
 
2913
2921
  var selectClassName = classNames('reactist_select', {
2914
2922
  disabled: disabled
@@ -3164,7 +3172,7 @@ var CloseIcon$1 = function CloseIcon() {
3164
3172
  }));
3165
3173
  };
3166
3174
 
3167
- var _excluded$s = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
3175
+ var _excluded$t = ["id", "icon", "title", "subtitle", "children", "customCloseButton", "onClick", "onClose", "closeAltText", "className", "aria-live"];
3168
3176
 
3169
3177
  function Notification(_ref) {
3170
3178
  var id = _ref.id,
@@ -3180,7 +3188,7 @@ function Notification(_ref) {
3180
3188
  className = _ref.className,
3181
3189
  _ref$ariaLive = _ref['aria-live'],
3182
3190
  ariaLive = _ref$ariaLive === void 0 ? 'polite' : _ref$ariaLive,
3183
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$s);
3191
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$t);
3184
3192
 
3185
3193
  var titleId = title ? id + "-title" : null;
3186
3194
  var titleIdAttribute = titleId ? {
@@ -3230,7 +3238,7 @@ function Notification(_ref) {
3230
3238
  }, customCloseButton !== null && customCloseButton !== void 0 ? customCloseButton : /*#__PURE__*/React__default.createElement(CloseIcon$1, null)) : null);
3231
3239
  }
3232
3240
 
3233
- var _excluded$t = ["children", "onItemSelect"],
3241
+ var _excluded$u = ["children", "onItemSelect"],
3234
3242
  _excluded2$3 = ["exceptionallySetClassName"],
3235
3243
  _excluded3$2 = ["handleItemSelect"],
3236
3244
  _excluded4$2 = ["exceptionallySetClassName"],
@@ -3255,10 +3263,11 @@ var MenuContext = /*#__PURE__*/React.createContext( // Reakit gives us no means
3255
3263
  function Menu(_ref) {
3256
3264
  var children = _ref.children,
3257
3265
  onItemSelect = _ref.onItemSelect,
3258
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
3266
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
3259
3267
 
3260
3268
  var state = Reakit.useMenuState(_objectSpread2({
3261
- loop: true
3269
+ loop: true,
3270
+ unstable_offset: [8, 8]
3262
3271
  }, props));
3263
3272
  var handleItemSelect = React.useCallback(function handleItemSelect(value) {
3264
3273
  if (onItemSelect) onItemSelect(value);