@ilo-org/react 0.0.5 → 0.0.6

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 (64) hide show
  1. package/.turbo/turbo-build.log +528 -517
  2. package/.turbo/turbo-check.log +4 -5
  3. package/.turbo/turbo-test.log +1711 -1676
  4. package/CHANGELOG.md +10 -0
  5. package/lib/index.esm.js +2 -2
  6. package/lib/index.esm.js.map +1 -1
  7. package/lib/index.js +3 -3
  8. package/lib/index.js.map +1 -1
  9. package/package.json +4 -4
  10. package/storybook-static/160.a21381a2.iframe.bundle.js +1 -0
  11. package/storybook-static/247.21581a11a07ce2f03d0c.manager.bundle.js +2 -0
  12. package/storybook-static/247.21581a11a07ce2f03d0c.manager.bundle.js.LICENSE.txt +8 -0
  13. package/storybook-static/247.271b628d.iframe.bundle.js +2 -0
  14. package/storybook-static/247.271b628d.iframe.bundle.js.LICENSE.txt +8 -0
  15. package/storybook-static/259.03b8a6d8.iframe.bundle.js +1 -0
  16. package/storybook-static/294.491cce4d5ae7b9c2ffce.manager.bundle.js +1 -0
  17. package/storybook-static/294.549e3f8d.iframe.bundle.js +1 -0
  18. package/storybook-static/444.6156221a84c3a87f5c02.manager.bundle.js +2 -0
  19. package/storybook-static/{914.8ddb80ae2badda1468b0.manager.bundle.js.LICENSE.txt → 444.6156221a84c3a87f5c02.manager.bundle.js.LICENSE.txt} +20 -20
  20. package/storybook-static/504.f9ef513c.iframe.bundle.js +2 -0
  21. package/storybook-static/{337.b8defe66.iframe.bundle.js.LICENSE.txt → 504.f9ef513c.iframe.bundle.js.LICENSE.txt} +1 -1
  22. package/storybook-static/639.044e85595b528d3f28da.manager.bundle.js +2 -0
  23. package/storybook-static/639.044e85595b528d3f28da.manager.bundle.js.LICENSE.txt +31 -0
  24. package/storybook-static/639.c568c669.iframe.bundle.js +2 -0
  25. package/storybook-static/639.c568c669.iframe.bundle.js.LICENSE.txt +31 -0
  26. package/storybook-static/642.1f308c6d963e823cc20e.manager.bundle.js +2 -0
  27. package/storybook-static/{978.236a5d9d5736517b960e.manager.bundle.js.LICENSE.txt → 642.1f308c6d963e823cc20e.manager.bundle.js.LICENSE.txt} +0 -0
  28. package/storybook-static/642.d92dc22b.iframe.bundle.js +2 -0
  29. package/storybook-static/{978.32e8032b.iframe.bundle.js.LICENSE.txt → 642.d92dc22b.iframe.bundle.js.LICENSE.txt} +0 -0
  30. package/storybook-static/804.292f3e06.iframe.bundle.js +2 -0
  31. package/storybook-static/{29.8e0bc9a8.iframe.bundle.js.LICENSE.txt → 804.292f3e06.iframe.bundle.js.LICENSE.txt} +18 -12
  32. package/storybook-static/837.1b65801453b1ce7ef7d1.manager.bundle.js +1 -0
  33. package/storybook-static/837.95523cc4.iframe.bundle.js +1 -0
  34. package/storybook-static/914.d1f142bbe477c1136f06.manager.bundle.js +1 -0
  35. package/storybook-static/914.feb1fea5.iframe.bundle.js +1 -0
  36. package/storybook-static/iframe.html +22 -6
  37. package/storybook-static/index.html +2 -2
  38. package/storybook-static/main.28d30a3024752e90423a.manager.bundle.js +1 -0
  39. package/storybook-static/main.d4207661.iframe.bundle.js +1 -0
  40. package/storybook-static/project.json +1 -0
  41. package/storybook-static/runtime~main.3bae6a4f.iframe.bundle.js +1 -0
  42. package/storybook-static/runtime~main.e45b096081911dbee3c7.manager.bundle.js +1 -0
  43. package/storybook-static/static/css/{main.c32cad06.css → main.08f24d9d.css} +2 -2
  44. package/storybook-static/static/css/{main.c32cad06.css.map → main.08f24d9d.css.map} +1 -1
  45. package/storybook-static/0.f9bb25299a048d2bb825.manager.bundle.js +0 -2
  46. package/storybook-static/0.f9bb25299a048d2bb825.manager.bundle.js.LICENSE.txt +0 -8
  47. package/storybook-static/164.8f6e5926.iframe.bundle.js +0 -2
  48. package/storybook-static/164.8f6e5926.iframe.bundle.js.LICENSE.txt +0 -8
  49. package/storybook-static/181.1d6d475b.iframe.bundle.js +0 -1
  50. package/storybook-static/29.8e0bc9a8.iframe.bundle.js +0 -2
  51. package/storybook-static/337.b8defe66.iframe.bundle.js +0 -2
  52. package/storybook-static/431.8ab7c276.iframe.bundle.js +0 -1
  53. package/storybook-static/431.b32fed6077acc140df7c.manager.bundle.js +0 -1
  54. package/storybook-static/697.1f42ad69d33c2733c631.manager.bundle.js +0 -1
  55. package/storybook-static/697.9e56beef.iframe.bundle.js +0 -1
  56. package/storybook-static/730.1240c246.iframe.bundle.js +0 -1
  57. package/storybook-static/730.7223b772132e3e068755.manager.bundle.js +0 -1
  58. package/storybook-static/914.8ddb80ae2badda1468b0.manager.bundle.js +0 -2
  59. package/storybook-static/978.236a5d9d5736517b960e.manager.bundle.js +0 -2
  60. package/storybook-static/978.32e8032b.iframe.bundle.js +0 -2
  61. package/storybook-static/main.93a106d2.iframe.bundle.js +0 -1
  62. package/storybook-static/main.dc406261155f1ebb44ce.manager.bundle.js +0 -1
  63. package/storybook-static/runtime~main.012769eac0433a7ec083.manager.bundle.js +0 -1
  64. package/storybook-static/runtime~main.f3168ed5.iframe.bundle.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ilo-org/react
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a84c36d: Navigation RTL styles and design QA
8
+ - Updated dependencies [a84c36d]
9
+ - @ilo-org/icons-react@0.0.4
10
+ - @ilo-org/styles@0.1.2
11
+ - @ilo-org/themes@0.1.2
12
+
3
13
  ## 0.0.5
4
14
 
5
15
  ### Patch Changes
package/lib/index.esm.js CHANGED
@@ -11,7 +11,7 @@ object-assign
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */const j=t({}),_=({prefix:e=S,children:t})=>w.jsx(j.Provider,Object.assign({value:{prefix:e}},{children:t}),void 0),$=()=>{const e=n(j),{prefix:t}=e,r=y(e,["prefix"]);return Object.assign({prefix:t},r)};const k=t({}),N=({children:e,allowMultipleExpanded:t=!1,onButtonClick:n,defaultAccordionsExpanded:a=[],className:s})=>{const{prefix:c}=$(),u=`${c}--accordion`,[l,d]=r([]),y=f(s,{[u]:!0}),m=JSON.stringify(a);if(o((()=>{const e=t?a:a.length>0?[a[0]]:a;d(e)}),[m,t]),e){const t=[];i.forEach(e,(e=>{t.push(e.props.id)})),(v=t).some(((e,t)=>v.indexOf(e)!==t))&&console.warn("Warning: Accordion items must have unique ids.")}var v;return w.jsx(k.Provider,Object.assign({value:{activeItems:l,setActiveItems:d,getUpdatedItems:p,allowMultipleExpanded:t,onButtonClick:n}},{children:w.jsx("ul",Object.assign({className:y},{children:e}),void 0)}),void 0)},T=t({}),R=e=>{var{children:t,id:n,className:r}=e,o=y(e,["children","id","className"]);const{prefix:i}=$(),a=f(r,{[`${i}--accordion--item`]:!0});return w.jsx(T.Provider,Object.assign({value:{id:n}},{children:w.jsx("li",Object.assign({className:a},o,{children:t}),void 0)}),void 0)},P=e=>{var{children:t,className:r}=e,o=y(e,["children","className"]);const{prefix:i}=$(),a=`${i}--accordion--button`,{activeItems:s,setActiveItems:c,getUpdatedItems:u,allowMultipleExpanded:l,onButtonClick:p}=n(k),{id:d}=n(T),m=s.indexOf(d)>-1,v=f(r,{[a]:!0});return w.jsx("div",Object.assign({className:`${i}--h3`},{children:w.jsx("button",Object.assign({className:v,"aria-expanded":m,onClick:e=>((e,t)=>{c(u({id:t,itemStatuses:s,allowMultipleExpanded:l})),p&&p(e,t),e.currentTarget.blur()})(e,d),"aria-controls":`panel-${d}`,id:`button-${d}`},o,{children:t}),void 0)}),void 0)},C=e=>{var{children:t,className:o,timeout:i=600}=e,c=y(e,["children","className","timeout"]);const{activeItems:u}=n(k),{id:l}=n(T),[p,d]=r(0),m=u.indexOf(l)>-1,{prefix:v}=$(),h=`${v}--accordion--panel`,b=f(o,{[h]:!0,[`${h}--open`]:m}),g=a();return s((()=>{g.current&&d(g.current.scrollHeight)})),w.jsx("div",Object.assign({className:b,id:`panel-${l}`,"aria-labelledby":`button-${l}`,role:"region",ref:g,style:{"--height":`${p}px`}},c,{children:w.jsx("div",Object.assign({className:`${v}--accordion--innerpanel`},{children:t}),void 0)}),void 0)};function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}
14
+ */const j=t({}),_=({prefix:e=S,children:t})=>w.jsx(j.Provider,Object.assign({value:{prefix:e}},{children:t}),void 0),$=()=>{const e=n(j),{prefix:t}=e,r=y(e,["prefix"]);return Object.assign({prefix:t},r)};const k=t({}),N=({children:e,allowMultipleExpanded:t=!1,onButtonClick:n,defaultAccordionsExpanded:a=[],className:s})=>{const{prefix:c}=$(),u=`${c}--accordion`,[l,d]=r([]),y=f(s,{[u]:!0}),m=JSON.stringify(a);if(o((()=>{const e=t?a:a.length>0?[a[0]]:a;d(e)}),[m,t]),e){const t=[];i.forEach(e,(e=>{t.push(e.props.id)})),(v=t).some(((e,t)=>v.indexOf(e)!==t))&&console.warn("Warning: Accordion items must have unique ids.")}var v;return w.jsx(k.Provider,Object.assign({value:{activeItems:l,setActiveItems:d,getUpdatedItems:p,allowMultipleExpanded:t,onButtonClick:n}},{children:w.jsx("ul",Object.assign({className:y},{children:e}),void 0)}),void 0)},T=t({}),R=e=>{var{children:t,id:n,className:r}=e,o=y(e,["children","id","className"]);const{prefix:i}=$(),a=f(r,{[`${i}--accordion--item`]:!0});return w.jsx(T.Provider,Object.assign({value:{id:n}},{children:w.jsx("li",Object.assign({className:a},o,{children:t}),void 0)}),void 0)},P=e=>{var{children:t,className:r}=e,o=y(e,["children","className"]);const{prefix:i}=$(),a=`${i}--accordion--button`,{activeItems:s,setActiveItems:c,getUpdatedItems:u,allowMultipleExpanded:l,onButtonClick:p}=n(k),{id:d}=n(T),m=s.indexOf(d)>-1,v=f(r,{[a]:!0});return w.jsx("div",Object.assign({className:`${i}--h3`},{children:w.jsx("button",Object.assign({className:v,"aria-expanded":m,onClick:e=>((e,t)=>{c(u({id:t,itemStatuses:s,allowMultipleExpanded:l})),p&&p(e,t),e.currentTarget.blur()})(e,d),"aria-controls":`panel-${d}`,id:`button-${d}`},o,{children:t}),void 0)}),void 0)},C=e=>{var{children:t,className:o,timeout:i=600}=e,c=y(e,["children","className","timeout"]);const{activeItems:u}=n(k),{id:l}=n(T),[p,d]=r(0),m=u.indexOf(l)>-1,{prefix:v}=$(),h=`${v}--accordion--panel`,b=f(o,{[h]:!0,[`${h}--open`]:m}),g=a();return s((()=>{g.current&&d(g.current.scrollHeight)})),w.jsx("div",Object.assign({className:b,id:`panel-${l}`,"aria-labelledby":`button-${l}`,role:"region",ref:g,style:{"--height":`${p}px`}},c,{children:w.jsx("div",Object.assign({className:`${v}--accordion--innerpanel`},{children:t}),void 0)}),void 0)};function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}
15
15
  /** @license React v16.13.1
16
16
  * react-is.production.min.js
17
17
  *
@@ -20,5 +20,5 @@ object-assign
20
20
  * This source code is licensed under the MIT license found in the
21
21
  * LICENSE file in the root directory of this source tree.
22
22
  */
23
- var I="function"==typeof Symbol&&Symbol.for,A=I?Symbol.for("react.element"):60103,F=I?Symbol.for("react.portal"):60106,L=I?Symbol.for("react.fragment"):60107,M=I?Symbol.for("react.strict_mode"):60108,V=I?Symbol.for("react.profiler"):60114,U=I?Symbol.for("react.provider"):60109,W=I?Symbol.for("react.context"):60110,q=I?Symbol.for("react.async_mode"):60111,z=I?Symbol.for("react.concurrent_mode"):60111,Y=I?Symbol.for("react.forward_ref"):60112,B=I?Symbol.for("react.suspense"):60113,H=I?Symbol.for("react.suspense_list"):60120,J=I?Symbol.for("react.memo"):60115,X=I?Symbol.for("react.lazy"):60116,G=I?Symbol.for("react.block"):60121,Z=I?Symbol.for("react.fundamental"):60117,K=I?Symbol.for("react.responder"):60118,Q=I?Symbol.for("react.scope"):60119;function ee(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case A:switch(e=e.type){case q:case z:case L:case V:case M:case B:return e;default:switch(e=e&&e.$$typeof){case W:case Y:case X:case J:case U:return e;default:return t}}case F:return t}}}function te(e){return ee(e)===z}var ne={AsyncMode:q,ConcurrentMode:z,ContextConsumer:W,ContextProvider:U,Element:A,ForwardRef:Y,Fragment:L,Lazy:X,Memo:J,Portal:F,Profiler:V,StrictMode:M,Suspense:B,isAsyncMode:function(e){return te(e)||ee(e)===q},isConcurrentMode:te,isContextConsumer:function(e){return ee(e)===W},isContextProvider:function(e){return ee(e)===U},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===A},isForwardRef:function(e){return ee(e)===Y},isFragment:function(e){return ee(e)===L},isLazy:function(e){return ee(e)===X},isMemo:function(e){return ee(e)===J},isPortal:function(e){return ee(e)===F},isProfiler:function(e){return ee(e)===V},isStrictMode:function(e){return ee(e)===M},isSuspense:function(e){return ee(e)===B},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===L||e===z||e===V||e===M||e===B||e===H||"object"==typeof e&&null!==e&&(e.$$typeof===X||e.$$typeof===J||e.$$typeof===U||e.$$typeof===W||e.$$typeof===Y||e.$$typeof===Z||e.$$typeof===K||e.$$typeof===Q||e.$$typeof===G)},typeOf:ee},re=m((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case u:case l:case o:case a:case i:case p:return d;default:var v=d&&d.$$typeof;switch(v){case c:case f:case m:case y:case s:return v;default:return t}}case r:return t}}}var x=u,O=l,w=c,S=s,j=n,_=f,$=o,k=m,N=y,T=r,R=a,P=i,C=p,D=!1;function I(e){return E(e)===l}t.AsyncMode=x,t.ConcurrentMode=O,t.ContextConsumer=w,t.ContextProvider=S,t.Element=j,t.ForwardRef=_,t.Fragment=$,t.Lazy=k,t.Memo=N,t.Portal=T,t.Profiler=R,t.StrictMode=P,t.Suspense=C,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(e)||E(e)===u},t.isConcurrentMode=I,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===a},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===a||e===i||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v)},t.typeOf=E}()})),oe=m((function(e){"production"===process.env.NODE_ENV?e.exports=ne:e.exports=re})),ie=Function.call.bind(Object.prototype.hasOwnProperty),ae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",se=ie,ce=function(){};if("production"!==process.env.NODE_ENV){var ue=ae,le={},fe=se;ce=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function pe(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(fe(e,i)){var a;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,r,n,null,ue)}catch(e){a=e}if(!a||a instanceof Error||ce((r||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in le)){le[a.message]=!0;var c=o?o():"";ce("Failed "+n+" type: "+a.message+(null!=c?c:""))}}}pe.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(le={})};var de=pe,ye=function(){};function me(){return null}"production"!==process.env.NODE_ENV&&(ye=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function ve(){}function he(){}he.resetWarningCache=ve;var be=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",o={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(me),arrayOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+f(s)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<s.length;c++){var u=e(s,c,r,o,i+"["+c+"]",ae);if(u instanceof Error)return u}return null}))},element:s((function(t,n,r,o,i){var s=t[n];return e(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+f(s)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,r,o){var i=e[t];return oe.isValidElementType(i)?null:new a("Invalid "+r+" `"+o+"` of type `"+f(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,o,i,s){if(!(t[n]instanceof e)){var c=e.name||r;return new a("Invalid "+i+" `"+s+"` of type `"+(((u=t[n]).constructor&&u.constructor.name?u.constructor.name:r)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var u;return null}))},node:s((function(e,t,n,r,o){return l(e[t])?null:new a("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(se(s,u)){var l=e(s,u,r,o,i+"."+u,ae);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&ye(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),me;function t(t,n,r,o,s){for(var c=t[n],u=0;u<e.length;u++)if(i(c,e[u]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===p(t)?String(t):t}));return new a("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+l+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&ye("Invalid argument supplied to oneOfType, expected an instance of array."),me;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return ye("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+d(n)+" at index "+t+"."),me}return s((function(t,n,r,o,i){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,r,o,i,ae);if(null==u)return null;u.data&&se(u.data,"expectedType")&&s.push(u.data.expectedType)}return new a("Invalid "+o+" `"+i+"` supplied to `"+r+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return s((function(t,n,r,o,i){var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var d=e[l];if("function"!=typeof d)return u(r,o,i,l,p(d));var y=d(s,l,r,o,i+"."+l,ae);if(y)return y}return null}))},exact:function(e){return s((function(t,n,r,o,i){var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=E({},t[n],e);for(var d in l){var y=e[d];if(se(e,d)&&"function"!=typeof y)return u(r,o,i,d,p(y));if(!y)return new a("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=y(s,d,r,o,i+"."+d,ae);if(m)return m}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function a(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function i(i,s,c,u,l,f,p){if(u=u||r,f=f||c,p!==ae){if(t){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!n[y]&&o<3&&(ye("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[y]=!0,o++)}}return null==s[c]?i?null===s[c]?new a("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new a("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,c,u,l,f)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function c(e){return s((function(t,n,r,o,i,s){var c=t[n];return f(c)!==e?new a("Invalid "+o+" `"+i+"` of type `"+p(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,t,n,r,o){return new a((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function l(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!l(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!l(a[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function d(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return a.prototype=Error.prototype,o.checkPropTypes=de,o.resetWarningCache=de.resetWarningCache,o.PropTypes=o,o},ge=function(){function e(e,t,n,r,o,i){if(i!==ae){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:he,resetWarningCache:ve};return n.PropTypes=n,n},Ee=m((function(e){if("production"!==process.env.NODE_ENV){var t=oe;e.exports=be(t.isElement,!0)}else e.exports=ge()})),xe=!1,Oe="production"!==process.env.NODE_ENV?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]);var we=e.createContext(null),Se=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,D(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[d.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||xe?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:d.findDOMNode(this);t&&!xe?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:d.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if("unmounted"===t)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return e.createElement(we.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},o}(e.Component);function je(){}function _e(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}Se.contextType=we,Se.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Ee.shape({current:"undefined"==typeof Element?Ee.any:function(e,t,n,r,o,i){var a=e[t];return Ee.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(e){var t=Oe;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{},Se.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:je,onEntering:je,onEntered:je,onExit:je,onExiting:je,onExited:je},Se.UNMOUNTED="unmounted",Se.EXITED="exited",Se.ENTERING="entering",Se.ENTERED="entered",Se.EXITING="exiting";var $e=/([A-Z])/g;var ke=/^ms-/;function Ne(e){return function(e){return e.replace($e,"-$1").toLowerCase()}(e).replace(ke,"-ms-")}var Te=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Re(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Ne(t))||function(e,t){return _e(e).getComputedStyle(e,t)}(e).getPropertyValue(Ne(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?!function(e){return!(!e||!Te.test(e))}(o)?n+=Ne(o)+": "+i+";":r+=o+"("+i+") ":e.style.removeProperty(Ne(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Pe=!("undefined"==typeof window||!window.document||!window.document.createElement),Ce=!1,De=!1;try{var Ie={get passive(){return Ce=!0},get once(){return De=Ce=!0}};Pe&&(window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,!0))}catch(L){}function Ae(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!De){var o=r.once,i=r.capture,a=n;!De&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Ce?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}}function Fe(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)}),t+n),i=Ae(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}function Le(e,t,n,r){var o,i;null==n&&(o=Re(e,"transitionDuration")||"",i=-1===o.indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=Fe(e,n,r),s=Ae(e,"transitionend",t);return function(){a(),s()}}function Me(e,t){const n=Re(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Ve(e,t){const n=Me(e,"transitionDuration"),r=Me(e,"transitionDelay"),o=Le(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Ue(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)}const We={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function qe(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=We[e];return n+parseInt(Re(t,r[0]),10)+parseInt(Re(t,r[1]),10)}const ze={exited:"collapse",exiting:"collapsing",entering:"expanding",entered:"collapse show"},Ye=c(((e,t)=>{var{dimension:n="height",panelIn:r=!1,getDimensionValue:o=qe,timeout:i=300,onEnter:a,onEntering:s,onEntered:c,onExit:p,onExiting:d,className:m,children:v,role:h}=e,b=y(e,["dimension","panelIn","getDimensionValue","timeout","onEnter","onEntering","onEntered","onExit","onExiting","className","children","role"]);const g="function"==typeof n?n():n,E=u((()=>Ue((e=>{e.style[g]="0",e.style.transitionDuration=`${i+50}ms`}),a)),[g,a,i]),x=u((()=>Ue((e=>{const t=`scroll${g[0].toUpperCase()}${g.slice(1)}`;e.style[g]=`${e[t]}px`,e.style.transitionDuration=`${i+50}ms`}),s)),[g,s,i]),O=u((()=>Ue((e=>{e.style[g]="none",e.style.transitionDuration=`${i+50}ms`}),c)),[g,c,i]),S=u((()=>Ue((e=>{e.style[g]=`${o(g,e)}px`,e.offsetHeight,e.style.transitionDuration=`${i+50}ms`}),p)),[p,o,g,i]),j=u((()=>Ue((e=>{e.style[g]="0px",e.style.transitionDuration=`${i+50}ms`}),d)),[g,d,i]);return w.jsx(Se,Object.assign({nodeRef:t,addEndListener:Ve},b,{"aria-expanded":h?r:null,onEnter:E,onEntering:x,onEntered:O,onExit:S,onExiting:j,in:r},{children:(e,t)=>l(v,Object.assign(Object.assign({},t),{className:f(m,v.props.className,ze[e],"width"===g&&"collapse-horizontal")}))}),void 0)})),Be=e=>{var{level:t="h3",children:n,className:r,type:o}=e,i=y(e,["level","children","className","type"]);const{prefix:a}=$(),s=t,c=`${a}--${t}`,u=f(r,{[c]:!0,[`${c}--${o}`]:o});return w.jsx(s,Object.assign({className:u},i,{children:n}),void 0)};export{N as Accordion,P as AccordionButton,R as AccordionItem,C as AccordionPanel,Ye as Collapse,_ as GlobalProvider,Be as Heading};
23
+ var I="function"==typeof Symbol&&Symbol.for,A=I?Symbol.for("react.element"):60103,F=I?Symbol.for("react.portal"):60106,L=I?Symbol.for("react.fragment"):60107,M=I?Symbol.for("react.strict_mode"):60108,V=I?Symbol.for("react.profiler"):60114,U=I?Symbol.for("react.provider"):60109,W=I?Symbol.for("react.context"):60110,q=I?Symbol.for("react.async_mode"):60111,z=I?Symbol.for("react.concurrent_mode"):60111,Y=I?Symbol.for("react.forward_ref"):60112,B=I?Symbol.for("react.suspense"):60113,H=I?Symbol.for("react.suspense_list"):60120,J=I?Symbol.for("react.memo"):60115,X=I?Symbol.for("react.lazy"):60116,G=I?Symbol.for("react.block"):60121,Z=I?Symbol.for("react.fundamental"):60117,K=I?Symbol.for("react.responder"):60118,Q=I?Symbol.for("react.scope"):60119;function ee(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case A:switch(e=e.type){case q:case z:case L:case V:case M:case B:return e;default:switch(e=e&&e.$$typeof){case W:case Y:case X:case J:case U:return e;default:return t}}case F:return t}}}function te(e){return ee(e)===z}var ne={AsyncMode:q,ConcurrentMode:z,ContextConsumer:W,ContextProvider:U,Element:A,ForwardRef:Y,Fragment:L,Lazy:X,Memo:J,Portal:F,Profiler:V,StrictMode:M,Suspense:B,isAsyncMode:function(e){return te(e)||ee(e)===q},isConcurrentMode:te,isContextConsumer:function(e){return ee(e)===W},isContextProvider:function(e){return ee(e)===U},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===A},isForwardRef:function(e){return ee(e)===Y},isFragment:function(e){return ee(e)===L},isLazy:function(e){return ee(e)===X},isMemo:function(e){return ee(e)===J},isPortal:function(e){return ee(e)===F},isProfiler:function(e){return ee(e)===V},isStrictMode:function(e){return ee(e)===M},isSuspense:function(e){return ee(e)===B},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===L||e===z||e===V||e===M||e===B||e===H||"object"==typeof e&&null!==e&&(e.$$typeof===X||e.$$typeof===J||e.$$typeof===U||e.$$typeof===W||e.$$typeof===Y||e.$$typeof===Z||e.$$typeof===K||e.$$typeof===Q||e.$$typeof===G)},typeOf:ee},re=m((function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case u:case l:case o:case a:case i:case p:return d;default:var v=d&&d.$$typeof;switch(v){case c:case f:case m:case y:case s:return v;default:return t}}case r:return t}}}var x=u,O=l,w=c,S=s,j=n,_=f,$=o,k=m,N=y,T=r,R=a,P=i,C=p,D=!1;function I(e){return E(e)===l}t.AsyncMode=x,t.ConcurrentMode=O,t.ContextConsumer=w,t.ContextProvider=S,t.Element=j,t.ForwardRef=_,t.Fragment=$,t.Lazy=k,t.Memo=N,t.Portal=T,t.Profiler=R,t.StrictMode=P,t.Suspense=C,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(e)||E(e)===u},t.isConcurrentMode=I,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===y},t.isPortal=function(e){return E(e)===r},t.isProfiler=function(e){return E(e)===a},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===a||e===i||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===s||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===b||e.$$typeof===g||e.$$typeof===v)},t.typeOf=E}()})),oe=m((function(e){"production"===process.env.NODE_ENV?e.exports=ne:e.exports=re})),ie=Function.call.bind(Object.prototype.hasOwnProperty),ae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",se=ie,ce=function(){};if("production"!==process.env.NODE_ENV){var ue=ae,le={},fe=se;ce=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function pe(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var i in e)if(fe(e,i)){var a;try{if("function"!=typeof e[i]){var s=Error((r||"React class")+": "+n+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=e[i](t,i,r,n,null,ue)}catch(e){a=e}if(!a||a instanceof Error||ce((r||"React class")+": type specification of "+n+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in le)){le[a.message]=!0;var c=o?o():"";ce("Failed "+n+" type: "+a.message+(null!=c?c:""))}}}pe.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(le={})};var de=pe,ye=function(){};function me(){return null}"production"!==process.env.NODE_ENV&&(ye=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function ve(){}function he(){}he.resetWarningCache=ve;var be=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",o={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(me),arrayOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+f(s)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<s.length;c++){var u=e(s,c,r,o,i+"["+c+"]",ae);if(u instanceof Error)return u}return null}))},element:s((function(t,n,r,o,i){var s=t[n];return e(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+f(s)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:s((function(e,t,n,r,o){var i=e[t];return oe.isValidElementType(i)?null:new a("Invalid "+r+" `"+o+"` of type `"+f(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return s((function(t,n,o,i,s){if(!(t[n]instanceof e)){var c=e.name||r;return new a("Invalid "+i+" `"+s+"` of type `"+(((u=t[n]).constructor&&u.constructor.name?u.constructor.name:r)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var u;return null}))},node:s((function(e,t,n,r,o){return l(e[t])?null:new a("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return s((function(t,n,r,o,i){if("function"!=typeof e)return new a("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in s)if(se(s,u)){var l=e(s,u,r,o,i+"."+u,ae);if(l instanceof Error)return l}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&ye(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),me;function t(t,n,r,o,s){for(var c=t[n],u=0;u<e.length;u++)if(i(c,e[u]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===p(t)?String(t):t}));return new a("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+l+".")}return s(t)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&ye("Invalid argument supplied to oneOfType, expected an instance of array."),me;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return ye("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+d(n)+" at index "+t+"."),me}return s((function(t,n,r,o,i){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,r,o,i,ae);if(null==u)return null;u.data&&se(u.data,"expectedType")&&s.push(u.data.expectedType)}return new a("Invalid "+o+" `"+i+"` supplied to `"+r+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return s((function(t,n,r,o,i){var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var d=e[l];if("function"!=typeof d)return u(r,o,i,l,p(d));var y=d(s,l,r,o,i+"."+l,ae);if(y)return y}return null}))},exact:function(e){return s((function(t,n,r,o,i){var s=t[n],c=f(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var l=E({},t[n],e);for(var d in l){var y=e[d];if(se(e,d)&&"function"!=typeof y)return u(r,o,i,d,p(y));if(!y)return new a("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=y(s,d,r,o,i+"."+d,ae);if(m)return m}return null}))}};function i(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function a(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function s(e){if("production"!==process.env.NODE_ENV)var n={},o=0;function i(i,s,c,u,l,f,p){if(u=u||r,f=f||c,p!==ae){if(t){var d=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 d.name="Invariant Violation",d}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=u+":"+c;!n[y]&&o<3&&(ye("You are manually calling a React.PropTypes validation function for the `"+f+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[y]=!0,o++)}}return null==s[c]?i?null===s[c]?new a("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `null`."):new a("The "+l+" `"+f+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(s,c,u,l,f)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function c(e){return s((function(t,n,r,o,i,s){var c=t[n];return f(c)!==e?new a("Invalid "+o+" `"+i+"` of type `"+p(c)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function u(e,t,n,r,o){return new a((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function l(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(l);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!l(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!l(a[1]))return!1}return!0;default:return!1}}function f(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=f(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function d(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return a.prototype=Error.prototype,o.checkPropTypes=de,o.resetWarningCache=de.resetWarningCache,o.PropTypes=o,o},ge=function(){function e(e,t,n,r,o,i){if(i!==ae){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:he,resetWarningCache:ve};return n.PropTypes=n,n},Ee=m((function(e){if("production"!==process.env.NODE_ENV){var t=oe;e.exports=be(t.isElement,!0)}else e.exports=ge()})),xe=!1,Oe="production"!==process.env.NODE_ENV?Ee.oneOfType([Ee.number,Ee.shape({enter:Ee.number,exit:Ee.number,appear:Ee.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&Ee.oneOfType([Ee.string,Ee.shape({enter:Ee.string,exit:Ee.string,active:Ee.string}),Ee.shape({enter:Ee.string,enterDone:Ee.string,enterActive:Ee.string,exit:Ee.string,exitDone:Ee.string,exitActive:Ee.string})]);var we=e.createContext(null),Se=function(t){var n,r;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o="exited",r.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,D(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:d.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[d.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||xe?this.safeSetState({status:"entered"},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:d.findDOMNode(this);t&&!xe?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:d.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if("unmounted"===t)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return e.createElement(we.Provider,{value:null},"function"==typeof r?r(t,o):e.cloneElement(e.Children.only(r),o))},o}(e.Component);function je(){}function _e(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}Se.contextType=we,Se.propTypes="production"!==process.env.NODE_ENV?{nodeRef:Ee.shape({current:"undefined"==typeof Element?Ee.any:function(e,t,n,r,o,i){var a=e[t];return Ee.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:Ee.oneOfType([Ee.func.isRequired,Ee.element.isRequired]).isRequired,in:Ee.bool,mountOnEnter:Ee.bool,unmountOnExit:Ee.bool,appear:Ee.bool,enter:Ee.bool,exit:Ee.bool,timeout:function(e){var t=Oe;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:Ee.func,onEnter:Ee.func,onEntering:Ee.func,onEntered:Ee.func,onExit:Ee.func,onExiting:Ee.func,onExited:Ee.func}:{},Se.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:je,onEntering:je,onEntered:je,onExit:je,onExiting:je,onExited:je},Se.UNMOUNTED="unmounted",Se.EXITED="exited",Se.ENTERING="entering",Se.ENTERED="entered",Se.EXITING="exiting";var $e=/([A-Z])/g;var ke=/^ms-/;function Ne(e){return function(e){return e.replace($e,"-$1").toLowerCase()}(e).replace(ke,"-ms-")}var Te=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Re(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(Ne(t))||function(e,t){return _e(e).getComputedStyle(e,t)}(e).getPropertyValue(Ne(t));Object.keys(t).forEach((function(o){var i=t[o];i||0===i?!function(e){return!(!e||!Te.test(e))}(o)?n+=Ne(o)+": "+i+";":r+=o+"("+i+") ":e.style.removeProperty(Ne(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}var Pe=!("undefined"==typeof window||!window.document||!window.document.createElement),Ce=!1,De=!1;try{var Ie={get passive(){return Ce=!0},get once(){return De=Ce=!0}};Pe&&(window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,!0))}catch(L){}function Ae(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!De){var o=r.once,i=r.capture,a=n;!De&&o&&(a=n.__once||function e(r){this.removeEventListener(t,e,i),n.call(this,r)},n.__once=a),e.addEventListener(t,a,Ce?r:i)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)}(e,t,n,r)}}function Fe(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(t,n,r),e.dispatchEvent(o)}}(e,"transitionend",!0)}),t+n),i=Ae(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),i()}}function Le(e,t,n,r){var o,i;null==n&&(o=Re(e,"transitionDuration")||"",i=-1===o.indexOf("ms")?1e3:1,n=parseFloat(o)*i||0);var a=Fe(e,n,r),s=Ae(e,"transitionend",t);return function(){a(),s()}}function Me(e,t){const n=Re(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Ve(e,t){const n=Me(e,"transitionDuration"),r=Me(e,"transitionDelay"),o=Le(e,(n=>{n.target===e&&(o(),t(n))}),n+r)}function Ue(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)}const We={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function qe(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=We[e];return n+parseInt(Re(t,r[0]),10)+parseInt(Re(t,r[1]),10)}const ze={exited:"collapse",exiting:"collapsing",entering:"expanding",entered:"collapse show"},Ye=c(((e,t)=>{var{dimension:n="height",panelIn:r=!1,getDimensionValue:o=qe,timeout:i=300,onEnter:a,onEntering:s,onEntered:c,onExit:p,onExiting:d,className:m,children:v,role:h}=e,b=y(e,["dimension","panelIn","getDimensionValue","timeout","onEnter","onEntering","onEntered","onExit","onExiting","className","children","role"]);const g="function"==typeof n?n():n,E=u((()=>Ue((e=>{e.style[g]="0",e.style.transitionDuration=`${i+50}ms`}),a)),[g,a,i]),x=u((()=>Ue((e=>{const t=`scroll${g[0].toUpperCase()}${g.slice(1)}`;e.style[g]=`${e[t]}px`,e.style.transitionDuration=`${i+50}ms`}),s)),[g,s,i]),O=u((()=>Ue((e=>{e.style[g]="none",e.style.transitionDuration=`${i+50}ms`}),c)),[g,c,i]),S=u((()=>Ue((e=>{e.style[g]=`${o(g,e)}px`,e.offsetHeight,e.style.transitionDuration=`${i+50}ms`}),p)),[p,o,g,i]),j=u((()=>Ue((e=>{e.style[g]="0px",e.style.transitionDuration=`${i+50}ms`}),d)),[g,d,i]);return w.jsx(Se,Object.assign({nodeRef:t,addEndListener:Ve},b,{"aria-expanded":h?r:null,onEnter:E,onEntering:x,onEntered:O,onExit:S,onExiting:j,in:r},{children:(e,t)=>l(v,Object.assign(Object.assign({},t),{className:f(m,v.props.className,ze[e],"width"===g&&"collapse-horizontal")}))}),void 0)})),Be=e=>{var{level:t="h3",children:n,className:r,type:o}=e,i=y(e,["level","children","className","type"]);const{prefix:a}=$(),s=t,c=`${a}--${t}`,u=f(r,{[c]:!0,[`${c}--${o}`]:o});return w.jsx(s,Object.assign({className:u},i,{children:n}),void 0)};export{N as Accordion,P as AccordionButton,R as AccordionItem,C as AccordionPanel,Ye as Collapse,_ as GlobalProvider,Be as Heading};
24
24
  //# sourceMappingURL=index.esm.js.map