@strapi/design-system 1.2.5 → 1.2.7

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 (143) hide show
  1. package/Accordion.development.js +14 -14
  2. package/Accordion.production.js +1 -1
  3. package/Alert.development.js +14 -14
  4. package/Alert.production.js +1 -1
  5. package/Avatar.development.js +14 -14
  6. package/Avatar.production.js +1 -1
  7. package/Badge.development.js +14 -14
  8. package/Badge.production.js +1 -1
  9. package/BaseButton.development.js +12 -12
  10. package/BaseButton.production.js +1 -1
  11. package/BaseCheckbox.development.js +12 -12
  12. package/BaseCheckbox.production.js +1 -1
  13. package/BaseLink.development.js +12 -12
  14. package/BaseLink.production.js +1 -1
  15. package/BaseRadio.development.js +12 -12
  16. package/BaseRadio.production.js +1 -1
  17. package/Box.development.js +12 -12
  18. package/Box.production.js +1 -1
  19. package/Breadcrumbs.development.js +14 -14
  20. package/Breadcrumbs.production.js +1 -1
  21. package/Button.development.js +14 -14
  22. package/Button.production.js +1 -1
  23. package/Card.development.js +14 -14
  24. package/Card.production.js +1 -1
  25. package/CarouselInput.development.js +16 -16
  26. package/CarouselInput.production.js +1 -1
  27. package/Checkbox.development.js +14 -14
  28. package/Checkbox.production.js +1 -1
  29. package/Combobox.development.js +14 -14
  30. package/Combobox.production.js +1 -1
  31. package/DatePicker.development.js +16 -16
  32. package/DatePicker.production.js +1 -1
  33. package/Dialog.development.js +40 -16
  34. package/Dialog.production.js +1 -1
  35. package/DismissibleLayer.development.js +218 -0
  36. package/DismissibleLayer.js +9 -0
  37. package/DismissibleLayer.production.js +1 -0
  38. package/Divider.development.js +12 -12
  39. package/Divider.production.js +1 -1
  40. package/EmptyStateLayout.development.js +14 -14
  41. package/EmptyStateLayout.production.js +1 -1
  42. package/Field.development.js +14 -14
  43. package/Field.production.js +1 -1
  44. package/Flex.development.js +12 -12
  45. package/Flex.production.js +1 -1
  46. package/FocusTrap.development.js +13 -13
  47. package/FocusTrap.production.js +1 -1
  48. package/Grid.development.js +12 -12
  49. package/Grid.production.js +1 -1
  50. package/Icon.development.js +12 -12
  51. package/Icon.production.js +1 -1
  52. package/IconButton.development.js +14 -14
  53. package/IconButton.production.js +1 -1
  54. package/KeyboardNavigable.development.js +12 -12
  55. package/KeyboardNavigable.production.js +1 -1
  56. package/Layout.development.js +14 -14
  57. package/Layout.production.js +1 -1
  58. package/Link.development.js +15 -15
  59. package/Link.production.js +1 -1
  60. package/LinkButton.development.js +14 -14
  61. package/LinkButton.production.js +1 -1
  62. package/LiveRegions.production.js +1 -1
  63. package/Loader.development.js +12 -12
  64. package/Loader.production.js +1 -1
  65. package/Main.development.js +12 -12
  66. package/Main.production.js +1 -1
  67. package/MainNav.development.js +14 -14
  68. package/MainNav.production.js +1 -1
  69. package/ModalLayout.development.js +52 -16
  70. package/ModalLayout.production.js +1 -1
  71. package/NumberInput.development.js +14 -14
  72. package/NumberInput.production.js +1 -1
  73. package/Pagination.development.js +14 -14
  74. package/Pagination.production.js +1 -1
  75. package/Popover.development.js +12 -12
  76. package/Popover.production.js +1 -1
  77. package/Portal.production.js +1 -1
  78. package/ProgressBar.development.js +12 -12
  79. package/ProgressBar.production.js +1 -1
  80. package/Radio.development.js +14 -14
  81. package/Radio.production.js +1 -1
  82. package/RawTable.development.js +12 -12
  83. package/RawTable.production.js +1 -1
  84. package/Searchbar.development.js +14 -14
  85. package/Searchbar.production.js +1 -1
  86. package/Select.development.js +14 -14
  87. package/Select.production.js +1 -1
  88. package/SimpleMenu.development.js +14 -14
  89. package/SimpleMenu.production.js +1 -1
  90. package/Stack.development.js +12 -12
  91. package/Stack.production.js +1 -1
  92. package/Status.development.js +15 -15
  93. package/Status.production.js +1 -1
  94. package/SubNav.development.js +14 -14
  95. package/SubNav.production.js +1 -1
  96. package/Switch.development.js +12 -12
  97. package/Switch.production.js +1 -1
  98. package/Table.development.js +14 -14
  99. package/Table.production.js +1 -1
  100. package/Tabs.development.js +14 -14
  101. package/Tabs.production.js +1 -1
  102. package/Tag.development.js +14 -14
  103. package/Tag.production.js +1 -1
  104. package/TextButton.development.js +14 -14
  105. package/TextButton.production.js +1 -1
  106. package/TextInput.development.js +14 -14
  107. package/TextInput.production.js +1 -1
  108. package/Textarea.development.js +14 -14
  109. package/Textarea.production.js +1 -1
  110. package/ThemeProvider.development.js +12 -12
  111. package/ThemeProvider.production.js +1 -1
  112. package/TimePicker.development.js +14 -14
  113. package/TimePicker.production.js +1 -1
  114. package/ToggleCheckbox.development.js +15 -15
  115. package/ToggleCheckbox.production.js +1 -1
  116. package/ToggleInput.development.js +16 -16
  117. package/ToggleInput.production.js +1 -1
  118. package/Tooltip.development.js +14 -14
  119. package/Tooltip.production.js +1 -1
  120. package/Typography.development.js +14 -14
  121. package/Typography.production.js +1 -1
  122. package/VisuallyHidden.production.js +1 -1
  123. package/index.development.js +50 -26
  124. package/index.production.js +1 -1
  125. package/package.json +23 -20
  126. package/themes.production.js +1 -1
  127. package/v2/Breadcrumbs.development.js +14 -14
  128. package/v2/Breadcrumbs.production.js +1 -1
  129. package/v2/Link.development.js +14 -14
  130. package/v2/Link.production.js +1 -1
  131. package/v2/LinkButton.development.js +14 -14
  132. package/v2/LinkButton.production.js +1 -1
  133. package/v2/MainNav.development.js +14 -14
  134. package/v2/MainNav.production.js +1 -1
  135. package/v2/Pagination.development.js +14 -14
  136. package/v2/Pagination.production.js +1 -1
  137. package/v2/SimpleMenu.development.js +14 -14
  138. package/v2/SimpleMenu.production.js +1 -1
  139. package/v2/SubNav.development.js +14 -14
  140. package/v2/SubNav.production.js +1 -1
  141. package/v2/index.development.js +14 -14
  142. package/v2/index.production.js +1 -1
  143. package/v2/package.json +23 -20
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("styled-components"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","styled-components","react-dom"],e):"object"==typeof exports?exports.strapiDs=e(require("react"),require("styled-components"),require("react-dom")):t.strapiDs=e(t.react,t["styled-components"],t["react-dom"])}(this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=39)}([function(t,e,n){t.exports=n(19)()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(24);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"Box",(function(){return y}));var r,o=n(3),i=n.n(o),a=n(2),c=n.n(a),s=n(7),u=n(1),l=n.n(u),f=n(0),d=n.n(f),p=function(t){return l.a.createElement("div",t)},h={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},m={_hover:d.a.func,background:d.a.string,basis:d.a.oneOfType([d.a.string,d.a.string]),borderColor:d.a.string,children:d.a.oneOfType([d.a.node,d.a.string]),color:d.a.string,flex:d.a.oneOfType([d.a.string,d.a.string]),grow:d.a.oneOfType([d.a.string,d.a.string]),hasRadius:d.a.bool,hiddenS:d.a.bool,hiddenXS:d.a.bool,padding:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingBottom:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingLeft:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingRight:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingTop:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),shadow:d.a.string,shrink:d.a.oneOfType([d.a.string,d.a.string])};p.defaultProps=h,p.propTypes=m;var g={color:!0},y=c.a.div.withConfig({shouldForwardProp:function(t,e){return!g[t]&&e(t)}})(r||(r=i()(["\n // Font\n font-size: ",";\n\n // Colors\n background: ",";\n color: ",";\n\n // Spaces\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n // Responsive hiding\n ","\n ","\n \n\n // Borders\n border-radius: ",";\n border-style: ",";\n border-width: ",";\n border-color: ",";\n border: ",";\n\n // Shadows\n box-shadow: ",";\n\n // Handlers\n pointer-events: ",";\n &:hover {\n ","\n }\n\n // Display\n display: ",";\n\n // Position\n position: ",";\n left: ",";\n right: ",";\n top: ",";\n bottom: ",";\n z-index: ",";\n overflow: ",";\n cursor: ",";\n\n // Size\n width: ",";\n max-width: ",";\n min-width: ",";\n height: ",";\n max-height: ",";\n min-height: ",";\n\n // Animation\n transition: ",";\n transform: ",";\n animation: ",";\n\n //Flexbox children props\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: ",";\n flex: ",";\n\n // Text\n text-align: ",";\n text-transform: ",";\n line-height: ",";\n\n // Cursor\n cursor: ",";\n"])),(function(t){var e=t.fontSize;return t.theme.fontSizes[e]||e}),(function(t){var e=t.theme,n=t.background;return e.colors[n]}),(function(t){var e=t.theme,n=t.color;return e.colors[n]}),(function(t){var e=t.theme,n=t.padding;return Object(s.a)("padding",n,e)}),(function(t){var e=t.theme,n=t.paddingTop;return Object(s.a)("padding-top",n,e)}),(function(t){var e=t.theme,n=t.paddingRight;return Object(s.a)("padding-right",n,e)}),(function(t){var e=t.theme,n=t.paddingBottom;return Object(s.a)("padding-bottom",n,e)}),(function(t){var e=t.theme,n=t.paddingLeft;return Object(s.a)("padding-left",n,e)}),(function(t){var e=t.theme,n=t.marginLeft;return Object(s.a)("margin-left",n,e)}),(function(t){var e=t.theme,n=t.marginRight;return Object(s.a)("margin-right",n,e)}),(function(t){var e=t.theme,n=t.marginTop;return Object(s.a)("margin-top",n,e)}),(function(t){var e=t.theme,n=t.marginBottom;return Object(s.a)("margin-bottom",n,e)}),(function(t){var e=t.theme;return t.hiddenS?"".concat(e.mediaQueries.tablet," { display: none; }"):void 0}),(function(t){var e=t.theme;return t.hiddenXS?"".concat(e.mediaQueries.mobile," { display: none; }"):void 0}),(function(t){var e=t.theme,n=t.hasRadius,r=t.borderRadius;return n?e.borderRadius:r}),(function(t){return t.borderStyle}),(function(t){return t.borderWidth}),(function(t){var e=t.borderColor;return t.theme.colors[e]}),(function(t){var e=t.theme,n=t.borderColor,r=t.borderStyle,o=t.borderWidth;if(n&&!r&&!o)return"1px solid ".concat(e.colors[n])}),(function(t){var e=t.theme,n=t.shadow;return e.shadows[n]}),(function(t){return t.pointerEvents}),(function(t){var e=t._hover,n=t.theme;return e?e(n):void 0}),(function(t){return t.display}),(function(t){return t.position}),(function(t){var e=t.left;return t.theme.spaces[e]||e}),(function(t){var e=t.right;return t.theme.spaces[e]||e}),(function(t){var e=t.top;return t.theme.spaces[e]||e}),(function(t){var e=t.bottom;return t.theme.spaces[e]||e}),(function(t){return t.zIndex}),(function(t){return t.overflow}),(function(t){return t.cursor}),(function(t){var e=t.width;return t.theme.spaces[e]||e}),(function(t){var e=t.maxWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.minWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.height;return t.theme.spaces[e]||e}),(function(t){var e=t.maxHeight;return t.theme.spaces[e]||e}),(function(t){var e=t.minHeight;return t.theme.spaces[e]||e}),(function(t){return t.transition}),(function(t){return t.transform}),(function(t){return t.animation}),(function(t){return t.shrink}),(function(t){return t.grow}),(function(t){return t.basis}),(function(t){return t.flex}),(function(t){return t.textAlign}),(function(t){return t.textTransform}),(function(t){return t.lineHeight}),(function(t){return t.cursor}));y.defaultProps=h,y.propTypes=m},function(t,e,n){"use strict";var r=n(10),o=n.n(r),i=n(13),a=n.n(i);e.a=function(t,e,n){var r=e;if(Array.isArray(e)||"object"!==a()(e)||(r=[null==e?void 0:e.desktop,null==e?void 0:e.tablet,null==e?void 0:e.mobile]),void 0!==r){if(Array.isArray(r)){var i=r,c=o()(i,3),s=c[0],u=c[1],l=c[2],f="".concat(t,": ").concat(n.spaces[s],";");return void 0!==u&&(f+="".concat(n.mediaQueries.tablet,"{\n ").concat(t,": ").concat(n.spaces[u],";\n }")),void 0!==l&&(f+="".concat(n.mediaQueries.mobile,"{\n ").concat(t,": ").concat(n.spaces[l],";\n }")),f}var d=n.spaces[r]||r;return"".concat(t,": ").concat(d,";")}}},,,function(t,e,n){var r=n(25),o=n(26),i=n(22),a=n(27);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},,,function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,function(t,e,n){"use strict";var r=n(20);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(21);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},,function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},,,,function(t,e){t.exports=n},function(t,e,n){"use strict";n.r(e),n.d(e,"Portal",(function(){return c}));var r=n(10),o=n.n(r),i=n(1),a=n(31),c=function(t){var e=t.children,n=Object(i.useRef)(null),r=Object(i.useState)(!1),c=o()(r,2),s=c[0],u=c[1];return Object(i.useLayoutEffect)((function(){return n.current=document.createElement("div"),n.current.setAttribute("data-react-portal","true"),document.body.appendChild(n.current),u(!0),function(){var t;null===(t=n.current)||void 0===t||t.remove()}}),[]),s&&n.current?Object(a.createPortal)(e,n.current):null}},,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"POPOVER_PLACEMENTS",(function(){return xt})),n.d(e,"Popover",(function(){return Tt}));var r=n(5),o=n.n(r),i=n(10),a=n.n(i),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(1),d=n(0),p=n.n(d),h=n(2),m=n.n(h);function g(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function b(t){return["top","bottom"].includes(g(t))?"x":"y"}function v(t){return"y"===t?"height":"width"}function x(t,e,n){let{reference:r,floating:o}=t;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,c=b(e),s=v(c),u=r[s]/2-o[s]/2,l="x"===c;let f;switch(g(e)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(y(e)){case"start":f[c]-=u*(n&&l?-1:1);break;case"end":f[c]+=u*(n&&l?-1:1)}return f}function w(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function O(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function R(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=e,h=w(p),m=c[d?"floating"===f?"reference":"floating":f],g=O(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:l,strategy:s})),y=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),strategy:s}):a[f]);return{top:g.top-y.top+h.top,bottom:y.bottom-g.bottom+h.bottom,left:g.left-y.left+h.left,right:y.right-g.right+h.right}}const T=Math.min,E=Math.max;function S(t,e,n){return E(t,T(e,n))}const _={left:"right",right:"left",bottom:"top",top:"bottom"};function j(t){return t.replace(/left|right|bottom|top/g,t=>_[t])}function P(t,e,n){void 0===n&&(n=!1);const r=y(t),o=b(t),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=j(a)),{main:a,cross:j(a)}}const A={start:"end",end:"start"};function k(t){return t.replace(/start|end/g,t=>A[t])}const L=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:s}=e,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=t,m=g(r),y=[a,...f||(m===a||!p?[j(a)]:function(t){const e=j(t);return[k(t),e,k(e)]}(a))],b=await R(e,h),v=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&v.push(b[m]),l){const{main:t,cross:e}=P(r,i,await(null==c.isRTL?void 0:c.isRTL(s.floating)));v.push(b[t],b[e])}if(x=[...x,{placement:r,overflows:v}],!v.every(t=>t<=0)){var w,O;const t=(null!=(w=null==(O=o.flip)?void 0:O.index)?w:0)+1,e=y[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let n="bottom";switch(d){case"bestFit":{var T;const t=null==(T=x.map(t=>[t,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:T[0].placement;t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const M=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,o=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),c=y(n),s="x"===b(n),u=["left","top"].includes(a)?-1:1,l=i&&s?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof h&&(p="end"===c?-1*h:h),s?{x:p*l,y:d*u}:{x:d*u,y:p*l}}(e,t);return{x:n+o.x,y:r+o.y,data:o}}}};function W(t){return"x"===t?"y":"x"}function C(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function D(t){if(null==t)return window;if(!C(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function H(t){return D(t).getComputedStyle(t)}function I(t){return C(t)?"":t?(t.nodeName||"").toLowerCase():""}function z(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function B(t){return t instanceof D(t).HTMLElement}function q(t){return t instanceof D(t).Element}function N(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof D(t).ShadowRoot||t instanceof ShadowRoot}function V(t){const{overflow:e,overflowX:n,overflowY:r}=H(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function F(t){return["table","td","th"].includes(I(t))}function X(t){const e=/firefox/i.test(z()),n=H(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function Q(){return!/^((?!chrome|android).)*safari/i.test(z())}const U=Math.min,Y=Math.max,$=Math.round;function G(t,e,n){var r,o,i,a;void 0===e&&(e=!1),void 0===n&&(n=!1);const c=t.getBoundingClientRect();let s=1,u=1;e&&B(t)&&(s=t.offsetWidth>0&&$(c.width)/t.offsetWidth||1,u=t.offsetHeight>0&&$(c.height)/t.offsetHeight||1);const l=q(t)?D(t):window,f=!Q()&&n,d=(c.left+(f&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(c.top+(f&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function J(t){return(e=t,(e instanceof D(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function K(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return G(J(t)).left+K(t).scrollLeft}function tt(t,e,n){const r=B(e),o=J(e),i=G(t,r&&function(t){const e=G(t);return $(e.width)!==t.offsetWidth||$(e.height)!==t.offsetHeight}(e),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==I(e)||V(o))&&(a=K(e)),B(e)){const t=G(e,!0);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else o&&(c.x=Z(o));return{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function et(t){return"html"===I(t)?t:t.assignedSlot||t.parentNode||(N(t)?t.host:null)||J(t)}function nt(t){return B(t)&&"fixed"!==H(t).position?function(t){let{offsetParent:e}=t,n=t,r=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let o=t.offsetParent;if("contents"===H(t).display){const e=t.hasAttribute("style"),r=t.style.display;t.style.display=H(n).display,o=t.offsetParent,t.style.display=r,e||t.removeAttribute("style")}n=t,e!==o&&(e=o,r=!0)}else if(N(n)&&n.host&&r)break;n=N(n)&&n.host||n.parentNode}return e}(t):null}function rt(t){const e=D(t);let n=nt(t);for(;n&&F(n)&&"static"===H(n).position;)n=nt(n);return n&&("html"===I(n)||"body"===I(n)&&"static"===H(n).position&&!X(n))?e:n||function(t){let e=et(t);for(N(e)&&(e=e.host);B(e)&&!["html","body"].includes(I(e));){if(X(e))return e;{const t=e.parentNode;e=N(t)?t.host:t}}return null}(t)||e}function ot(t){if(B(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=G(t);return{width:e.width,height:e.height}}function it(t,e){var n;void 0===e&&(e=[]);const r=function t(e){const n=et(e);return["html","body","#document"].includes(I(n))?e.ownerDocument.body:B(n)&&V(n)?n:t(n)}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=D(r),a=o?[i].concat(i.visualViewport||[],V(r)?r:[]):r,c=e.concat(a);return o?c:c.concat(it(a))}function at(t,e,n){return"viewport"===e?O(function(t,e){const n=D(t),r=J(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const t=Q();(t||!t&&"fixed"===e)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(t,n)):q(e)?function(t,e){const n=G(t,!1,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):O(function(t){var e;const n=J(t),r=K(t),o=null==(e=t.ownerDocument)?void 0:e.body,i=Y(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Y(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let c=-r.scrollLeft+Z(t);const s=-r.scrollTop;return"rtl"===H(o||n).direction&&(c+=Y(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(J(t)))}function ct(t){const e=it(t),n=["absolute","fixed"].includes(H(t).position)&&B(t)?rt(t):t;return q(n)?e.filter(t=>q(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&N(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==I(t)):[]}const st={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?ct(e):[].concat(n),r],a=i[0],c=i.reduce((t,n)=>{const r=at(e,n,o);return t.top=Y(r.top,t.top),t.right=U(r.right,t.right),t.bottom=U(r.bottom,t.bottom),t.left=Y(r.left,t.left),t},at(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:r}=t;const o=B(n),i=J(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==I(n)||V(i))&&(a=K(n)),B(n))){const t=G(n,!0);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{...e,x:e.x-a.scrollLeft+c.x,y:e.y-a.scrollTop+c.y}},isElement:q,getDimensions:ot,getOffsetParent:rt,getDocumentElement:J,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:tt(e,rt(n),r),floating:{...ot(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===H(t).direction};function ut(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=i&&!c,l=s||u?[...q(t)?it(t):[],...it(e)]:[];l.forEach(t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)});let f,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),q(t)&&!c&&d.observe(t),d.observe(e)}let p=c?G(t):null;return c&&function e(){const r=G(t);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n();p=r,f=requestAnimationFrame(e)}(),n(),()=>{var t;l.forEach(t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)}),null==(t=d)||t.disconnect(),d=null,c&&cancelAnimationFrame(f)}}const lt=(t,e,n)=>(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:l}=x(s,r,c),f=r,d={},p=0;for(let n=0;n<i.length;n++){const{name:h,fn:m}=i[n],{x:g,y:y,data:b,reset:v}=await m({x:u,y:l,initialPlacement:r,placement:f,strategy:o,middlewareData:d,rects:s,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,l=null!=y?y:l,d={...d,[h]:{...d[h],...b}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:l}=x(s,f,c))),n=-1)}return{x:u,y:l,placement:f,strategy:o,middlewareData:d}})(t,e,{platform:st,...n});var ft=n(31),dt="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;0!=r--;)if(!pt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!pt(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function ht(t){let{middleware:e,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===t?{}:t;const[i,a]=f.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[c,s]=f.useState(e);pt(null==c?void 0:c.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}),null==e?void 0:e.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}))||s(e);const u=f.useRef(null),l=f.useRef(null),d=f.useRef(null),p=f.useRef(i),h=function(t){const e=f.useRef(t);return dt(()=>{e.current=t}),e}(o),m=f.useCallback(()=>{u.current&&l.current&&lt(u.current,l.current,{middleware:c,placement:n,strategy:r}).then(t=>{g.current&&!pt(p.current,t)&&(p.current=t,ft.flushSync(()=>{a(t)}))})},[c,n,r]);dt(()=>{g.current&&m()},[m]);const g=f.useRef(!1);dt(()=>(g.current=!0,()=>{g.current=!1}),[]);const y=f.useCallback(()=>{if("function"==typeof d.current&&(d.current(),d.current=null),u.current&&l.current)if(h.current){const t=h.current(u.current,l.current,m);d.current=t}else m()},[m,h]),b=f.useCallback(t=>{u.current=t,y()},[y]),v=f.useCallback(t=>{l.current=t,y()},[y]),x=f.useMemo(()=>({reference:u,floating:l}),[]);return f.useMemo(()=>({...i,update:m,refs:x,reference:b,floating:v}),[i,m,x,b,v])}var mt,gt,yt=n(6),bt=n(32),vt=["source","children","spacing","fullWidth","placement","onReachEnd","intersectionId","centered"],xt=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],wt=m()(yt.Box)(mt||(mt=l()(["\n box-shadow: ",";\n z-index: 4;\n border: 1px solid ",";\n background: ",";\n"])),(function(t){return t.theme.shadows.filterShadow}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.colors.neutral0})),Ot=m()(yt.Box)(gt||(gt=l()(["\n // 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list\n max-height: ","rem;\n overflow-y: auto;\n overflow-x: hidden;\n\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: ",";\n margin-right: 10px;\n }\n"])),15,(function(t){return t.theme.colors.neutral0}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.borderRadius})),Rt=function(t){var e,n,r,i,c,u,l,d=t.source,p=t.children,h=t.spacing,m=t.fullWidth,y=t.placement,v=t.onReachEnd,x=t.intersectionId,w=t.centered,O=s()(t,vt),T=f.useRef(null),E=f.useState(void 0),_=a()(E,2),j=_[0],P=_[1],A=ht({strategy:"fixed",placement:w?"bottom":y,middleware:[M({mainAxis:h}),(void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=e,u={x:n,y:r},l=await R(t,s),f=b(g(o)),d=W(f);let p=u[f],h=u[d];if(i){const t="y"===f?"bottom":"right";p=S(p+l["y"===f?"top":"left"],p,p-l[t])}if(a){const t="y"===d?"bottom":"right";h=S(h+l["y"===d?"top":"left"],h,h-l[t])}const m=c.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}),L()],whileElementsMounted:ut}),k=A.x,C=A.y,D=A.reference,H=A.floating,I=A.strategy;return f.useLayoutEffect((function(){D(d.current)}),[d]),f.useLayoutEffect((function(){m&&P(d.current.offsetWidth)}),[m]),n=T,r=v,i={selectorToWatch:"#".concat(x),skipWhen:!x||!v},c=i.selectorToWatch,u=i.skipWhen,l=void 0!==u&&u,Object(f.useEffect)((function(){if(!l){var t={root:n.current,rootMargin:"0px"},e=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&n.current.scrollHeight>n.current.clientHeight&&r(t)}))}),t),o=n.current.querySelector(c);return e.observe(o),function(){e.disconnect()}}}),[l,r,c]),f.createElement(wt,{ref:H,style:{left:k,top:C,position:I,width:j||void 0},hasRadius:!0,background:"neutral0",padding:1},f.createElement(Ot,o()({ref:T},O),p,x&&v&&f.createElement(yt.Box,{id:x,width:"100%",height:"1px"})))},Tt=function(t){return f.createElement(bt.Portal,null,f.createElement(Rt,t))},Et={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1,placement:"bottom-start"},St={centered:p.a.bool,children:p.a.node.isRequired,fullWidth:p.a.bool,intersectionId:p.a.string,onReachEnd:p.a.func,placement:p.a.oneOf(xt),source:p.a.shape({current:("undefined"==typeof Element?p.a.any:p.a.instanceOf(Element)).isRequired}).isRequired,spacing:p.a.number};Rt.propTypes=St,Rt.defaultProps=Et,Tt.propTypes=St,Tt.defaultProps=Et}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("styled-components"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","styled-components","react-dom"],e):"object"==typeof exports?exports.strapiDs=e(require("react"),require("styled-components"),require("react-dom")):t.strapiDs=e(t.react,t["styled-components"],t["react-dom"])}(this,(function(t,e,n){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t,e,n){t.exports=n(21)()},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(26);t.exports=function(t,e){if(null==t)return{};var n,o,i=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o<a.length;o++)n=a[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.exports.default=t.exports,t.exports.__esModule=!0,n.apply(this,arguments)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"Box",(function(){return y}));var r,o=n(3),i=n.n(o),a=n(2),c=n.n(a),s=n(7),u=n(1),l=n.n(u),f=n(0),d=n.n(f),p=function(t){return l.a.createElement("div",t)},h={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},m={_hover:d.a.func,background:d.a.string,basis:d.a.oneOfType([d.a.string,d.a.string]),borderColor:d.a.string,children:d.a.oneOfType([d.a.node,d.a.string]),color:d.a.string,flex:d.a.oneOfType([d.a.string,d.a.string]),grow:d.a.oneOfType([d.a.string,d.a.string]),hasRadius:d.a.bool,hiddenS:d.a.bool,hiddenXS:d.a.bool,padding:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingBottom:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingLeft:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingRight:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),paddingTop:d.a.oneOfType([d.a.number,d.a.arrayOf(d.a.number)]),shadow:d.a.string,shrink:d.a.oneOfType([d.a.string,d.a.string])};p.defaultProps=h,p.propTypes=m;var g={color:!0},y=c.a.div.withConfig({shouldForwardProp:function(t,e){return!g[t]&&e(t)}})(r||(r=i()(["\n // Font\n font-size: ",";\n\n // Colors\n background: ",";\n color: ",";\n\n // Spaces\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n\n // Responsive hiding\n ","\n ","\n \n\n // Borders\n border-radius: ",";\n border-style: ",";\n border-width: ",";\n border-color: ",";\n border: ",";\n\n // Shadows\n box-shadow: ",";\n\n // Handlers\n pointer-events: ",";\n &:hover {\n ","\n }\n\n // Display\n display: ",";\n\n // Position\n position: ",";\n left: ",";\n right: ",";\n top: ",";\n bottom: ",";\n z-index: ",";\n overflow: ",";\n cursor: ",";\n\n // Size\n width: ",";\n max-width: ",";\n min-width: ",";\n height: ",";\n max-height: ",";\n min-height: ",";\n\n // Animation\n transition: ",";\n transform: ",";\n animation: ",";\n\n //Flexbox children props\n flex-shrink: ",";\n flex-grow: ",";\n flex-basis: ",";\n flex: ",";\n\n // Text\n text-align: ",";\n text-transform: ",";\n line-height: ",";\n\n // Cursor\n cursor: ",";\n"])),(function(t){var e=t.fontSize;return t.theme.fontSizes[e]||e}),(function(t){var e=t.theme,n=t.background;return e.colors[n]}),(function(t){var e=t.theme,n=t.color;return e.colors[n]}),(function(t){var e=t.theme,n=t.padding;return Object(s.a)("padding",n,e)}),(function(t){var e=t.theme,n=t.paddingTop;return Object(s.a)("padding-top",n,e)}),(function(t){var e=t.theme,n=t.paddingRight;return Object(s.a)("padding-right",n,e)}),(function(t){var e=t.theme,n=t.paddingBottom;return Object(s.a)("padding-bottom",n,e)}),(function(t){var e=t.theme,n=t.paddingLeft;return Object(s.a)("padding-left",n,e)}),(function(t){var e=t.theme,n=t.marginLeft;return Object(s.a)("margin-left",n,e)}),(function(t){var e=t.theme,n=t.marginRight;return Object(s.a)("margin-right",n,e)}),(function(t){var e=t.theme,n=t.marginTop;return Object(s.a)("margin-top",n,e)}),(function(t){var e=t.theme,n=t.marginBottom;return Object(s.a)("margin-bottom",n,e)}),(function(t){var e=t.theme;return t.hiddenS?"".concat(e.mediaQueries.tablet," { display: none; }"):void 0}),(function(t){var e=t.theme;return t.hiddenXS?"".concat(e.mediaQueries.mobile," { display: none; }"):void 0}),(function(t){var e=t.theme,n=t.hasRadius,r=t.borderRadius;return n?e.borderRadius:r}),(function(t){return t.borderStyle}),(function(t){return t.borderWidth}),(function(t){var e=t.borderColor;return t.theme.colors[e]}),(function(t){var e=t.theme,n=t.borderColor,r=t.borderStyle,o=t.borderWidth;if(n&&!r&&!o)return"1px solid ".concat(e.colors[n])}),(function(t){var e=t.theme,n=t.shadow;return e.shadows[n]}),(function(t){return t.pointerEvents}),(function(t){var e=t._hover,n=t.theme;return e?e(n):void 0}),(function(t){return t.display}),(function(t){return t.position}),(function(t){var e=t.left;return t.theme.spaces[e]||e}),(function(t){var e=t.right;return t.theme.spaces[e]||e}),(function(t){var e=t.top;return t.theme.spaces[e]||e}),(function(t){var e=t.bottom;return t.theme.spaces[e]||e}),(function(t){return t.zIndex}),(function(t){return t.overflow}),(function(t){return t.cursor}),(function(t){var e=t.width;return t.theme.spaces[e]||e}),(function(t){var e=t.maxWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.minWidth;return t.theme.spaces[e]||e}),(function(t){var e=t.height;return t.theme.spaces[e]||e}),(function(t){var e=t.maxHeight;return t.theme.spaces[e]||e}),(function(t){var e=t.minHeight;return t.theme.spaces[e]||e}),(function(t){return t.transition}),(function(t){return t.transform}),(function(t){return t.animation}),(function(t){return t.shrink}),(function(t){return t.grow}),(function(t){return t.basis}),(function(t){return t.flex}),(function(t){return t.textAlign}),(function(t){return t.textTransform}),(function(t){return t.lineHeight}),(function(t){return t.cursor}));y.defaultProps=h,y.propTypes=m},function(t,e,n){"use strict";var r=n(11),o=n.n(r),i=n(15),a=n.n(i);e.a=function(t,e,n){var r=e;if(Array.isArray(e)||"object"!==a()(e)||(r=[null==e?void 0:e.desktop,null==e?void 0:e.tablet,null==e?void 0:e.mobile]),void 0!==r){if(Array.isArray(r)){var i=r,c=o()(i,3),s=c[0],u=c[1],l=c[2],f="".concat(t,": ").concat(n.spaces[s],";");return void 0!==u&&(f+="".concat(n.mediaQueries.tablet,"{\n ").concat(t,": ").concat(n.spaces[u],";\n }")),void 0!==l&&(f+="".concat(n.mediaQueries.mobile,"{\n ").concat(t,": ").concat(n.spaces[l],";\n }")),f}var d=n.spaces[r]||r;return"".concat(t,": ").concat(d,";")}}},,,,function(t,e,n){var r=n(27),o=n(28),i=n(24),a=n(29);t.exports=function(t,e){return r(t)||o(t,e)||i(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},,,,function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,function(t,e,n){"use strict";var r=n(22);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(23);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},,function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0},,,,function(t,e){t.exports=n},function(t,e,n){"use strict";n.r(e),n.d(e,"Portal",(function(){return c}));var r=n(11),o=n.n(r),i=n(1),a=n(33),c=function(t){var e=t.children,n=Object(i.useRef)(null),r=Object(i.useState)(!1),c=o()(r,2),s=c[0],u=c[1];return Object(i.useLayoutEffect)((function(){return n.current=document.createElement("div"),n.current.setAttribute("data-react-portal","true"),document.body.appendChild(n.current),u(!0),function(){var t;null===(t=n.current)||void 0===t||t.remove()}}),[]),s&&n.current?Object(a.createPortal)(e,n.current):null}},,,,,,,function(t,e,n){"use strict";n.r(e),n.d(e,"POPOVER_PLACEMENTS",(function(){return xt})),n.d(e,"Popover",(function(){return Tt}));var r=n(5),o=n.n(r),i=n(11),a=n.n(i),c=n(4),s=n.n(c),u=n(3),l=n.n(u),f=n(1),d=n(0),p=n.n(d),h=n(2),m=n.n(h);function g(t){return t.split("-")[0]}function y(t){return t.split("-")[1]}function b(t){return["top","bottom"].includes(g(t))?"x":"y"}function v(t){return"y"===t?"height":"width"}function x(t,e,n){let{reference:r,floating:o}=t;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,c=b(e),s=v(c),u=r[s]/2-o[s]/2,l="x"===c;let f;switch(g(e)){case"top":f={x:i,y:r.y-o.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:a};break;case"left":f={x:r.x-o.width,y:a};break;default:f={x:r.x,y:r.y}}switch(y(e)){case"start":f[c]-=u*(n&&l?-1:1);break;case"end":f[c]+=u*(n&&l?-1:1)}return f}function w(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function O(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function R(t,e){var n;void 0===e&&(e={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:s}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=e,h=w(p),m=c[d?"floating"===f?"reference":"floating":f],g=O(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:l,strategy:s})),y=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),strategy:s}):a[f]);return{top:g.top-y.top+h.top,bottom:y.bottom-g.bottom+h.bottom,left:g.left-y.left+h.left,right:y.right-g.right+h.right}}const T=Math.min,E=Math.max;function S(t,e,n){return E(t,T(e,n))}const _={left:"right",right:"left",bottom:"top",top:"bottom"};function j(t){return t.replace(/left|right|bottom|top/g,t=>_[t])}function P(t,e,n){void 0===n&&(n=!1);const r=y(t),o=b(t),i=v(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=j(a)),{main:a,cross:j(a)}}const A={start:"end",end:"start"};function k(t){return t.replace(/start|end/g,t=>A[t])}const L=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:c,elements:s}=e,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...h}=t,m=g(r),y=[a,...f||(m===a||!p?[j(a)]:function(t){const e=j(t);return[k(t),e,k(e)]}(a))],b=await R(e,h),v=[];let x=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&v.push(b[m]),l){const{main:t,cross:e}=P(r,i,await(null==c.isRTL?void 0:c.isRTL(s.floating)));v.push(b[t],b[e])}if(x=[...x,{placement:r,overflows:v}],!v.every(t=>t<=0)){var w,O;const t=(null!=(w=null==(O=o.flip)?void 0:O.index)?w:0)+1,e=y[t];if(e)return{data:{index:t,overflows:x},reset:{placement:e}};let n="bottom";switch(d){case"bestFit":{var T;const t=null==(T=x.map(t=>[t,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:T[0].placement;t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};const M=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,o=await async function(t,e){const{placement:n,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),c=y(n),s="x"===b(n),u=["left","top"].includes(a)?-1:1,l=i&&s?-1:1,f="function"==typeof e?e(t):e;let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&"number"==typeof h&&(p="end"===c?-1*h:h),s?{x:p*l,y:d*u}:{x:d*u,y:p*l}}(e,t);return{x:n+o.x,y:r+o.y,data:o}}}};function W(t){return"x"===t?"y":"x"}function C(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function D(t){if(null==t)return window;if(!C(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function H(t){return D(t).getComputedStyle(t)}function I(t){return C(t)?"":t?(t.nodeName||"").toLowerCase():""}function z(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function B(t){return t instanceof D(t).HTMLElement}function q(t){return t instanceof D(t).Element}function N(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof D(t).ShadowRoot||t instanceof ShadowRoot}function V(t){const{overflow:e,overflowX:n,overflowY:r}=H(t);return/auto|scroll|overlay|hidden/.test(e+r+n)}function F(t){return["table","td","th"].includes(I(t))}function X(t){const e=/firefox/i.test(z()),n=H(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function Q(){return!/^((?!chrome|android).)*safari/i.test(z())}const U=Math.min,Y=Math.max,$=Math.round;function G(t,e,n){var r,o,i,a;void 0===e&&(e=!1),void 0===n&&(n=!1);const c=t.getBoundingClientRect();let s=1,u=1;e&&B(t)&&(s=t.offsetWidth>0&&$(c.width)/t.offsetWidth||1,u=t.offsetHeight>0&&$(c.height)/t.offsetHeight||1);const l=q(t)?D(t):window,f=!Q()&&n,d=(c.left+(f&&null!=(r=null==(o=l.visualViewport)?void 0:o.offsetLeft)?r:0))/s,p=(c.top+(f&&null!=(i=null==(a=l.visualViewport)?void 0:a.offsetTop)?i:0))/u,h=c.width/s,m=c.height/u;return{width:h,height:m,top:p,right:d+h,bottom:p+m,left:d,x:d,y:p}}function J(t){return(e=t,(e instanceof D(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function K(t){return q(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return G(J(t)).left+K(t).scrollLeft}function tt(t,e,n){const r=B(e),o=J(e),i=G(t,r&&function(t){const e=G(t);return $(e.width)!==t.offsetWidth||$(e.height)!==t.offsetHeight}(e),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==I(e)||V(o))&&(a=K(e)),B(e)){const t=G(e,!0);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else o&&(c.x=Z(o));return{x:i.left+a.scrollLeft-c.x,y:i.top+a.scrollTop-c.y,width:i.width,height:i.height}}function et(t){return"html"===I(t)?t:t.assignedSlot||t.parentNode||(N(t)?t.host:null)||J(t)}function nt(t){return B(t)&&"fixed"!==H(t).position?function(t){let{offsetParent:e}=t,n=t,r=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let o=t.offsetParent;if("contents"===H(t).display){const e=t.hasAttribute("style"),r=t.style.display;t.style.display=H(n).display,o=t.offsetParent,t.style.display=r,e||t.removeAttribute("style")}n=t,e!==o&&(e=o,r=!0)}else if(N(n)&&n.host&&r)break;n=N(n)&&n.host||n.parentNode}return e}(t):null}function rt(t){const e=D(t);let n=nt(t);for(;n&&F(n)&&"static"===H(n).position;)n=nt(n);return n&&("html"===I(n)||"body"===I(n)&&"static"===H(n).position&&!X(n))?e:n||function(t){let e=et(t);for(N(e)&&(e=e.host);B(e)&&!["html","body"].includes(I(e));){if(X(e))return e;{const t=e.parentNode;e=N(t)?t.host:t}}return null}(t)||e}function ot(t){if(B(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=G(t);return{width:e.width,height:e.height}}function it(t,e){var n;void 0===e&&(e=[]);const r=function t(e){const n=et(e);return["html","body","#document"].includes(I(n))?e.ownerDocument.body:B(n)&&V(n)?n:t(n)}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),i=D(r),a=o?[i].concat(i.visualViewport||[],V(r)?r:[]):r,c=e.concat(a);return o?c:c.concat(it(a))}function at(t,e,n){return"viewport"===e?O(function(t,e){const n=D(t),r=J(t),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,s=0;if(o){i=o.width,a=o.height;const t=Q();(t||!t&&"fixed"===e)&&(c=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:c,y:s}}(t,n)):q(e)?function(t,e){const n=G(t,!1,"fixed"===e),r=n.top+t.clientTop,o=n.left+t.clientLeft;return{top:r,left:o,x:o,y:r,right:o+t.clientWidth,bottom:r+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,n):O(function(t){var e;const n=J(t),r=K(t),o=null==(e=t.ownerDocument)?void 0:e.body,i=Y(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Y(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let c=-r.scrollLeft+Z(t);const s=-r.scrollTop;return"rtl"===H(o||n).direction&&(c+=Y(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:s}}(J(t)))}function ct(t){const e=it(t),n=["absolute","fixed"].includes(H(t).position)&&B(t)?rt(t):t;return q(n)?e.filter(t=>q(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&N(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==I(t)):[]}const st={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const i=[..."clippingAncestors"===n?ct(e):[].concat(n),r],a=i[0],c=i.reduce((t,n)=>{const r=at(e,n,o);return t.top=Y(r.top,t.top),t.right=U(r.right,t.right),t.bottom=U(r.bottom,t.bottom),t.left=Y(r.left,t.left),t},at(e,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:r}=t;const o=B(n),i=J(n);if(n===i)return e;let a={scrollLeft:0,scrollTop:0};const c={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==I(n)||V(i))&&(a=K(n)),B(n))){const t=G(n,!0);c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{...e,x:e.x-a.scrollLeft+c.x,y:e.y-a.scrollTop+c.y}},isElement:q,getDimensions:ot,getOffsetParent:rt,getDocumentElement:J,getElementRects:t=>{let{reference:e,floating:n,strategy:r}=t;return{reference:tt(e,rt(n),r),floating:{...ot(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===H(t).direction};function ut(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:c=!1}=r,s=o&&!c,u=i&&!c,l=s||u?[...q(t)?it(t):[],...it(e)]:[];l.forEach(t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)});let f,d=null;if(a){let r=!0;d=new ResizeObserver(()=>{r||n(),r=!1}),q(t)&&!c&&d.observe(t),d.observe(e)}let p=c?G(t):null;return c&&function e(){const r=G(t);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n();p=r,f=requestAnimationFrame(e)}(),n(),()=>{var t;l.forEach(t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)}),null==(t=d)||t.disconnect(),d=null,c&&cancelAnimationFrame(f)}}const lt=(t,e,n)=>(async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:l}=x(s,r,c),f=r,d={},p=0;for(let n=0;n<i.length;n++){const{name:h,fn:m}=i[n],{x:g,y:y,data:b,reset:v}=await m({x:u,y:l,initialPlacement:r,placement:f,strategy:o,middlewareData:d,rects:s,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,l=null!=y?y:l,d={...d,[h]:{...d[h],...b}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(s=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:l}=x(s,f,c))),n=-1)}return{x:u,y:l,placement:f,strategy:o,middlewareData:d}})(t,e,{platform:st,...n});var ft=n(33),dt="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;function pt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;0!=r--;)if(!pt(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!t.$$typeof)&&!pt(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function ht(t){let{middleware:e,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===t?{}:t;const[i,a]=f.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[c,s]=f.useState(e);pt(null==c?void 0:c.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}),null==e?void 0:e.map(t=>{let{name:e,options:n}=t;return{name:e,options:n}}))||s(e);const u=f.useRef(null),l=f.useRef(null),d=f.useRef(null),p=f.useRef(i),h=function(t){const e=f.useRef(t);return dt(()=>{e.current=t}),e}(o),m=f.useCallback(()=>{u.current&&l.current&&lt(u.current,l.current,{middleware:c,placement:n,strategy:r}).then(t=>{g.current&&!pt(p.current,t)&&(p.current=t,ft.flushSync(()=>{a(t)}))})},[c,n,r]);dt(()=>{g.current&&m()},[m]);const g=f.useRef(!1);dt(()=>(g.current=!0,()=>{g.current=!1}),[]);const y=f.useCallback(()=>{if("function"==typeof d.current&&(d.current(),d.current=null),u.current&&l.current)if(h.current){const t=h.current(u.current,l.current,m);d.current=t}else m()},[m,h]),b=f.useCallback(t=>{u.current=t,y()},[y]),v=f.useCallback(t=>{l.current=t,y()},[y]),x=f.useMemo(()=>({reference:u,floating:l}),[]);return f.useMemo(()=>({...i,update:m,refs:x,reference:b,floating:v}),[i,m,x,b,v])}var mt,gt,yt=n(6),bt=n(34),vt=["source","children","spacing","fullWidth","placement","onReachEnd","intersectionId","centered"],xt=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],wt=m()(yt.Box)(mt||(mt=l()(["\n box-shadow: ",";\n z-index: 4;\n border: 1px solid ",";\n background: ",";\n"])),(function(t){return t.theme.shadows.filterShadow}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.colors.neutral0})),Ot=m()(yt.Box)(gt||(gt=l()(["\n // 16 is base base size, 3 is the factor to get closer to 40px and 5 is the number of elements visible in the list\n max-height: ","rem;\n overflow-y: auto;\n overflow-x: hidden;\n\n &::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 4px;\n }\n\n &::-webkit-scrollbar-track {\n background: ",";\n }\n\n &::-webkit-scrollbar-thumb {\n background: ",";\n border-radius: ",";\n margin-right: 10px;\n }\n"])),15,(function(t){return t.theme.colors.neutral0}),(function(t){return t.theme.colors.neutral150}),(function(t){return t.theme.borderRadius})),Rt=function(t){var e,n,r,i,c,u,l,d=t.source,p=t.children,h=t.spacing,m=t.fullWidth,y=t.placement,v=t.onReachEnd,x=t.intersectionId,w=t.centered,O=s()(t,vt),T=f.useRef(null),E=f.useState(void 0),_=a()(E,2),j=_[0],P=_[1],A=ht({strategy:"fixed",placement:w?"bottom":y,middleware:[M({mainAxis:h}),(void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=e,u={x:n,y:r},l=await R(t,s),f=b(g(o)),d=W(f);let p=u[f],h=u[d];if(i){const t="y"===f?"bottom":"right";p=S(p+l["y"===f?"top":"left"],p,p-l[t])}if(a){const t="y"===d?"bottom":"right";h=S(h+l["y"===d?"top":"left"],h,h-l[t])}const m=c.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}),L()],whileElementsMounted:ut}),k=A.x,C=A.y,D=A.reference,H=A.floating,I=A.strategy;return f.useLayoutEffect((function(){D(d.current)}),[d]),f.useLayoutEffect((function(){m&&P(d.current.offsetWidth)}),[m]),n=T,r=v,i={selectorToWatch:"#".concat(x),skipWhen:!x||!v},c=i.selectorToWatch,u=i.skipWhen,l=void 0!==u&&u,Object(f.useEffect)((function(){if(!l){var t={root:n.current,rootMargin:"0px"},e=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&n.current.scrollHeight>n.current.clientHeight&&r(t)}))}),t),o=n.current.querySelector(c);return e.observe(o),function(){e.disconnect()}}}),[l,r,c]),f.createElement(wt,{ref:H,style:{left:k,top:C,position:I,width:j||void 0},hasRadius:!0,background:"neutral0",padding:1},f.createElement(Ot,o()({ref:T},O),p,x&&v&&f.createElement(yt.Box,{id:x,width:"100%",height:"1px"})))},Tt=function(t){return f.createElement(bt.Portal,null,f.createElement(Rt,t))},Et={fullWidth:!1,intersectionId:void 0,onReachEnd:void 0,centered:!1,placement:"bottom-start"},St={centered:p.a.bool,children:p.a.node.isRequired,fullWidth:p.a.bool,intersectionId:p.a.string,onReachEnd:p.a.func,placement:p.a.oneOf(xt),source:p.a.shape({current:("undefined"==typeof Element?p.a.any:p.a.instanceOf(Element)).isRequired}).isRequired,spacing:p.a.number};Rt.propTypes=St,Rt.defaultProps=Et,Tt.propTypes=St,Tt.defaultProps=Et}])}));
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","react-dom"],t):"object"==typeof exports?exports.strapiDs=t(require("react"),require("react-dom")):e.strapiDs=t(e.react,e["react-dom"])}(this,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=32)}([,function(t,r){t.exports=e},,,,,,,,,function(e,t,r){var n=r(25),o=r(26),u=r(22),c=r(27);e.exports=function(e,t){return n(e)||o(e,t)||u(e,t)||c()},e.exports.default=e.exports,e.exports.__esModule=!0},,,,,,,,,,,function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n=r(21);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},,,function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u=[],c=!0,i=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(i)throw o}}return u}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},,,,function(e,r){e.exports=t},function(e,t,r){"use strict";r.r(t),r.d(t,"Portal",(function(){return i}));var n=r(10),o=r.n(n),u=r(1),c=r(31),i=function(e){var t=e.children,r=Object(u.useRef)(null),n=Object(u.useState)(!1),i=o()(n,2),a=i[0],l=i[1];return Object(u.useLayoutEffect)((function(){return r.current=document.createElement("div"),r.current.setAttribute("data-react-portal","true"),document.body.appendChild(r.current),l(!0),function(){var e;null===(e=r.current)||void 0===e||e.remove()}}),[]),a&&r.current?Object(c.createPortal)(t,r.current):null}}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("strapiDs",["react","react-dom"],t):"object"==typeof exports?exports.strapiDs=t(require("react"),require("react-dom")):e.strapiDs=t(e.react,e["react-dom"])}(this,(function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=34)}({1:function(t,r){t.exports=e},11:function(e,t,r){var n=r(27),o=r(28),u=r(24),c=r(29);e.exports=function(e,t){return n(e)||o(e,t)||u(e,t)||c()},e.exports.default=e.exports,e.exports.__esModule=!0},23:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.default=e.exports,e.exports.__esModule=!0},24:function(e,t,r){var n=r(23);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},27:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},28:function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,u=[],c=!0,i=!1;try{for(r=r.call(e);!(c=(n=r.next()).done)&&(u.push(n.value),!t||u.length!==t);c=!0);}catch(e){i=!0,o=e}finally{try{c||null==r.return||r.return()}finally{if(i)throw o}}return u}},e.exports.default=e.exports,e.exports.__esModule=!0},29:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},33:function(e,r){e.exports=t},34:function(e,t,r){"use strict";r.r(t),r.d(t,"Portal",(function(){return i}));var n=r(11),o=r.n(n),u=r(1),c=r(33),i=function(e){var t=e.children,r=Object(u.useRef)(null),n=Object(u.useState)(!1),i=o()(n,2),a=i[0],l=i[1];return Object(u.useLayoutEffect)((function(){return r.current=document.createElement("div"),r.current.setAttribute("data-react-portal","true"),document.body.appendChild(r.current),l(!0),function(){var e;null===(e=r.current)||void 0===e||e.remove()}}),[]),a&&r.current?Object(c.createPortal)(t,r.current):null}}})}));