primereact 8.1.0 → 8.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/autocomplete/autocomplete.cjs.js +8 -3
  2. package/autocomplete/autocomplete.cjs.min.js +1 -1
  3. package/autocomplete/autocomplete.esm.js +8 -3
  4. package/autocomplete/autocomplete.esm.min.js +1 -1
  5. package/autocomplete/autocomplete.js +8 -3
  6. package/autocomplete/autocomplete.min.js +1 -1
  7. package/calendar/calendar.cjs.js +1 -1
  8. package/calendar/calendar.cjs.min.js +1 -1
  9. package/calendar/calendar.esm.js +1 -1
  10. package/calendar/calendar.esm.min.js +1 -1
  11. package/calendar/calendar.js +1 -1
  12. package/calendar/calendar.min.js +1 -1
  13. package/core/core.js +54 -4
  14. package/core/core.min.js +3 -3
  15. package/dialog/dialog.cjs.js +5 -1
  16. package/dialog/dialog.cjs.min.js +1 -1
  17. package/dialog/dialog.d.ts +2 -0
  18. package/dialog/dialog.esm.js +5 -1
  19. package/dialog/dialog.esm.min.js +1 -1
  20. package/dialog/dialog.js +5 -1
  21. package/dialog/dialog.min.js +1 -1
  22. package/dropdown/dropdown.cjs.js +1 -1
  23. package/dropdown/dropdown.cjs.min.js +1 -1
  24. package/dropdown/dropdown.esm.js +1 -1
  25. package/dropdown/dropdown.esm.min.js +1 -1
  26. package/dropdown/dropdown.js +1 -1
  27. package/dropdown/dropdown.min.js +1 -1
  28. package/hooks/hooks.cjs.js +48 -2
  29. package/hooks/hooks.cjs.min.js +1 -1
  30. package/hooks/hooks.d.ts +3 -1
  31. package/hooks/hooks.esm.js +47 -3
  32. package/hooks/hooks.esm.min.js +1 -1
  33. package/hooks/hooks.js +48 -2
  34. package/hooks/hooks.min.js +1 -1
  35. package/package.json +1 -1
  36. package/primereact.all.cjs.js +80 -30
  37. package/primereact.all.cjs.min.js +1 -1
  38. package/primereact.all.esm.js +79 -31
  39. package/primereact.all.esm.min.js +1 -1
  40. package/primereact.all.js +80 -30
  41. package/primereact.all.min.js +1 -1
  42. package/resources/primereact.css +113 -113
  43. package/resources/primereact.min.css +1 -1
  44. package/styleclass/styleclass.cjs.js +12 -17
  45. package/styleclass/styleclass.cjs.min.js +1 -1
  46. package/styleclass/styleclass.esm.js +12 -17
  47. package/styleclass/styleclass.esm.min.js +1 -1
  48. package/styleclass/styleclass.js +12 -17
  49. package/styleclass/styleclass.min.js +1 -1
  50. package/treetable/treetable.cjs.js +5 -5
  51. package/treetable/treetable.cjs.min.js +1 -1
  52. package/treetable/treetable.d.ts +1 -1
  53. package/treetable/treetable.esm.js +5 -5
  54. package/treetable/treetable.esm.min.js +1 -1
  55. package/treetable/treetable.js +5 -5
  56. package/treetable/treetable.min.js +1 -1
  57. package/web-types.json +14 -2
@@ -1 +1 @@
1
- import*as t from"react";import{DomHandler as e,ObjectUtils as n}from"primereact/utils";var r=function(e){var n=t.useRef(void 0);return t.useEffect((function(){n.current=e})),n.current},u=function(e){return t.useEffect(e,[])},c=function(e,n){var r=t.useRef(!1);return t.useEffect((function(){if(r.current)return e&&e();r.current=!0}),n)},o=function(e){return t.useEffect((function(){return e}),[])},i=function(u){var c=u.target,i=void 0===c?"document":c,f=u.type,l=u.listener,a=u.options,s=u.when,v=void 0===s||s,g=t.useRef(null),d=t.useRef(null),m=r(a),y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.isNotEmpty(t.target)&&(h(),(t.when||v)&&(g.current=e.getTargetElement(t.target))),!d.current&&g.current&&(d.current=function(t){return l&&l(t)},g.current.addEventListener(f,d.current,a))},h=function(){d.current&&(g.current.removeEventListener(f,d.current,a),d.current=null)};return t.useEffect((function(){v?g.current=e.getTargetElement(i):(h(),g.current=null)}),[i,v]),t.useEffect((function(){!d.current||d.current===l&&m===a||(h(),v&&y())}),[l,a]),o((function(){h()})),[y,h]};function f(t){if(Array.isArray(t))return t}function l(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,u,c=[],o=!0,i=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(c.push(r.value),!e||c.length!==e);o=!0);}catch(t){i=!0,u=t}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return c}}function a(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}function s(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(t,e){return f(t)||l(t,e)||s(t,e)||v()}var d=function(u){var c=u.target,i=u.listener,f=u.options,l=u.when,a=void 0===l||l,s=t.useRef(null),v=t.useRef(null),g=t.useRef([]),d=r(f),m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.isNotEmpty(t.target)&&(y(),(t.when||a)&&(s.current=e.getTargetElement(t.target))),!v.current&&s.current){var r=g.current=e.getScrollableParents(s.current);v.current=function(t){return i&&i(t)},r.forEach((function(t){return t.addEventListener("scroll",v.current,f)}))}},y=function(){v.current&&(g.current.forEach((function(t){return t.removeEventListener("scroll",v.current,f)})),v.current=null)};return t.useEffect((function(){a?s.current=e.getTargetElement(c):(y(),s.current=null)}),[c,a]),t.useEffect((function(){!v.current||v.current===i&&d===f||(y(),a&&m())}),[i,f]),o((function(){y()})),[m,y]},m=function(t){return i({target:"window",type:"resize",listener:t.listener})},y=function(n){var r=n.target,u=n.overlay,c=n.listener,f=n.when,l=void 0===f||f,a=t.useRef(null),s=t.useRef(null),v=g(i({type:"click",listener:function(t){c&&c(t,{type:"outside",valid:3!==t.which&&T(t)})}}),2),y=v[0],h=v[1],E=g(m({listener:function(t){c&&c(t,{type:"resize",valid:!e.isTouchDevice()})}}),2),p=E[0],w=E[1],S=g(d({target:a,listener:function(t){c&&c(t,{type:"scroll",valid:!0})}}),2),R=S[0],b=S[1],T=function(t){return a.current&&!(a.current.isSameNode(t.target)||a.current.contains(t.target)||s.current&&s.current.contains(t.target))},I=function(){h(),w(),b()};return t.useEffect((function(){l?(a.current=e.getTargetElement(r),s.current=e.getTargetElement(u)):(I(),a.current=s.current=null)}),[r,u,l]),t.useEffect((function(){I()}),[l]),o((function(){I()})),[function(){y(),p(),R()},I]},h=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=t.useRef(null),c=t.useRef(null),i=t.useCallback((function(){return clearInterval(u.current)}),[u.current]);return t.useEffect((function(){c.current=e})),t.useEffect((function(){if(r)return u.current=setInterval((function(){c.current()}),n),i;i()}),[n,r]),o((function(){i()})),[i]},E=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"local",u="undefined"!=typeof window,c=t.useState((function(){if(!u)return e;try{var t="local"===r?window.localStorage.getItem(n):window.sessionStorage.getItem(n);return t?JSON.parse(t):e}catch(t){return e}})),o=g(c,2),i=o[0],f=o[1],l=function(t){try{var e=t instanceof Function?t(i):t;if(f(e),u){var c=JSON.stringify(e);"local"===r?window.localStorage.setItem(n,c):window.sessionStorage.setItem(n,c)}}catch(t){throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(n))}};return[i,l]},p=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=t.useRef(null),c=t.useRef(null),i=t.useCallback((function(){return clearTimeout(u.current)}),[u.current]);return t.useEffect((function(){c.current=e})),t.useEffect((function(){if(r)return u.current=setTimeout((function(){c.current()}),n),i;i()}),[n,r]),o((function(){i()})),[i]};export{i as useEventListener,h as useInterval,u as useMountEffect,y as useOverlayListener,d as useOverlayScrollListener,r as usePrevious,m as useResizeListener,E as useStorage,p as useTimeout,o as useUnmountEffect,c as useUpdateEffect};
1
+ import*as e from"react";import{DomHandler as t,ObjectUtils as n}from"primereact/utils";var r=function(t){var n=e.useRef(void 0);return e.useEffect((function(){n.current=t})),n.current},u=function(t){return e.useEffect(t,[])},c=function(t,n){var r=e.useRef(!1);return e.useEffect((function(){if(r.current)return t&&t();r.current=!0}),n)},o=function(t){return e.useEffect((function(){return t}),[])},i=function(u){var c=u.target,i=void 0===c?"document":c,f=u.type,l=u.listener,a=u.options,s=u.when,v=void 0===s||s,g=e.useRef(null),d=e.useRef(null),m=r(a),y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.isNotEmpty(e.target)&&(w(),(e.when||v)&&(g.current=t.getTargetElement(e.target))),!d.current&&g.current&&(d.current=function(e){return l&&l(e)},g.current.addEventListener(f,d.current,a))},w=function(){d.current&&(g.current.removeEventListener(f,d.current,a),d.current=null)};return e.useEffect((function(){v?g.current=t.getTargetElement(i):(w(),g.current=null)}),[i,v]),e.useEffect((function(){!d.current||d.current===l&&m===a||(w(),v&&y())}),[l,a]),o((function(){w()})),[y,w]};function f(e){if(Array.isArray(e))return e}function l(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,u,c=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(c.push(r.value),!t||c.length!==t);o=!0);}catch(e){i=!0,u=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw u}}return c}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return f(e)||l(e,t)||s(e,t)||v()}var d=function(u){var c=u.target,i=u.listener,f=u.options,l=u.when,a=void 0===l||l,s=e.useRef(null),v=e.useRef(null),g=e.useRef([]),d=r(f),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.isNotEmpty(e.target)&&(y(),(e.when||a)&&(s.current=t.getTargetElement(e.target))),!v.current&&s.current){var r=g.current=t.getScrollableParents(s.current);v.current=function(e){return i&&i(e)},r.forEach((function(e){return e.addEventListener("scroll",v.current,f)}))}},y=function(){v.current&&(g.current.forEach((function(e){return e.removeEventListener("scroll",v.current,f)})),v.current=null)};return e.useEffect((function(){a?s.current=t.getTargetElement(c):(y(),s.current=null)}),[c,a]),e.useEffect((function(){!v.current||v.current===i&&d===f||(y(),a&&m())}),[i,f]),o((function(){y()})),[m,y]},m=function(e){return i({target:"window",type:"resize",listener:e.listener})},y=function(n){var r=n.target,u=n.overlay,c=n.listener,f=n.when,l=void 0===f||f,a=e.useRef(null),s=e.useRef(null),v=g(i({type:"click",listener:function(e){c&&c(e,{type:"outside",valid:3!==e.which&&T(e)})}}),2),y=v[0],w=v[1],E=g(m({listener:function(e){c&&c(e,{type:"resize",valid:!t.isTouchDevice()})}}),2),h=E[0],p=E[1],S=g(d({target:a,listener:function(e){c&&c(e,{type:"scroll",valid:!0})}}),2),R=S[0],b=S[1],T=function(e){return a.current&&!(a.current.isSameNode(e.target)||a.current.contains(e.target)||s.current&&s.current.contains(e.target))},I=function(){w(),p(),b()};return e.useEffect((function(){l?(a.current=t.getTargetElement(r),s.current=t.getTargetElement(u)):(I(),a.current=s.current=null)}),[r,u,l]),e.useEffect((function(){I()}),[l]),o((function(){I()})),[function(){y(),h(),R()},I]},w=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=e.useRef(null),c=e.useRef(null),i=e.useCallback((function(){return clearInterval(u.current)}),[u.current]);return e.useEffect((function(){c.current=t})),e.useEffect((function(){if(r)return u.current=setInterval((function(){c.current()}),n),i;i()}),[n,r]),o((function(){i()})),[i]},E=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"local",u="undefined"!=typeof window,c=i({target:"window",type:"storage",listener:function(e){var t="local"===r?window.localStorage:window.sessionStorage;e.storageArea===t&&e.key===n&&d(e.newValue||void 0)}}),o=g(c,2),f=o[0],l=o[1],a=e.useState((function(){if(!u)return t;try{var e="local"===r?window.localStorage.getItem(n):window.sessionStorage.getItem(n);return e?JSON.parse(e):t}catch(e){return t}})),s=g(a,2),v=s[0],d=s[1],m=function(e){try{var t=e instanceof Function?e(v):e;if(d(t),u){var c=JSON.stringify(t);"local"===r?window.localStorage.setItem(n,c):window.sessionStorage.setItem(n,c)}}catch(e){throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(n))}};return e.useEffect((function(){return f(),function(){return l()}}),[]),[v,m]},h=function(e,t){return E(e,t,"local")},p=function(e,t){return E(e,t,"session")},S=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=e.useRef(null),c=e.useRef(null),i=e.useCallback((function(){return clearTimeout(u.current)}),[u.current]);return e.useEffect((function(){c.current=t})),e.useEffect((function(){if(r)return u.current=setTimeout((function(){c.current()}),n),i;i()}),[n,r]),o((function(){i()})),[i]};export{i as useEventListener,w as useInterval,h as useLocalStorage,u as useMountEffect,y as useOverlayListener,d as useOverlayScrollListener,r as usePrevious,m as useResizeListener,p as useSessionStorage,E as useStorage,S as useTimeout,o as useUnmountEffect,c as useUpdateEffect};
package/hooks/hooks.js CHANGED
@@ -380,9 +380,25 @@ this.primereact.hooks = (function (exports, React, utils) {
380
380
 
381
381
  var useStorage = function useStorage(initialValue, key) {
382
382
  var storage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'local';
383
- // Since the local storage API isn't available in server-rendering environments,
383
+ // Since the local storage API isn't available in server-rendering environments,
384
384
  // we check that typeof window !== 'undefined' to make SSR and SSG work properly.
385
- var storageAvailable = typeof window !== 'undefined';
385
+ var storageAvailable = typeof window !== 'undefined'; // subscribe to window storage event so changes in one tab to a stored value
386
+ // are properly reflected in all tabs
387
+
388
+ var _useEventListener = useEventListener({
389
+ target: 'window',
390
+ type: 'storage',
391
+ listener: function listener(event) {
392
+ var area = storage === 'local' ? window.localStorage : window.sessionStorage;
393
+
394
+ if (event.storageArea === area && event.key === key) {
395
+ setStoredValue(event.newValue || undefined);
396
+ }
397
+ }
398
+ }),
399
+ _useEventListener2 = _slicedToArray(_useEventListener, 2),
400
+ bindWindowStorageListener = _useEventListener2[0],
401
+ unbindWindowStorageListener = _useEventListener2[1];
386
402
 
387
403
  var _React$useState = React__namespace.useState(function () {
388
404
  if (!storageAvailable) {
@@ -416,8 +432,36 @@ this.primereact.hooks = (function (exports, React, utils) {
416
432
  }
417
433
  };
418
434
 
435
+ React__namespace.useEffect(function () {
436
+ bindWindowStorageListener();
437
+ return function () {
438
+ return unbindWindowStorageListener();
439
+ };
440
+ }, []);
419
441
  return [storedValue, setValue];
420
442
  };
443
+ /**
444
+ * Hook to wrap around useState that stores the value in the browser local storage.
445
+ *
446
+ * @param {any} initialValue the initial value to store
447
+ * @param {string} key the key to store the value in local storage
448
+ * @returns a stateful value, and a function to update it.
449
+ */
450
+
451
+ var useLocalStorage = function useLocalStorage(initialValue, key) {
452
+ return useStorage(initialValue, key, 'local');
453
+ };
454
+ /**
455
+ * Hook to wrap around useState that stores the value in the browser session storage.
456
+ *
457
+ * @param {any} initialValue the initial value to store
458
+ * @param {string} key the key to store the value in session storage
459
+ * @returns a stateful value, and a function to update it.
460
+ */
461
+
462
+ var useSessionStorage = function useSessionStorage(initialValue, key) {
463
+ return useStorage(initialValue, key, 'session');
464
+ };
421
465
  /* eslint-enable */
422
466
 
423
467
  /* eslint-disable */
@@ -453,11 +497,13 @@ this.primereact.hooks = (function (exports, React, utils) {
453
497
 
454
498
  exports.useEventListener = useEventListener;
455
499
  exports.useInterval = useInterval;
500
+ exports.useLocalStorage = useLocalStorage;
456
501
  exports.useMountEffect = useMountEffect;
457
502
  exports.useOverlayListener = useOverlayListener;
458
503
  exports.useOverlayScrollListener = useOverlayScrollListener;
459
504
  exports.usePrevious = usePrevious;
460
505
  exports.useResizeListener = useResizeListener;
506
+ exports.useSessionStorage = useSessionStorage;
461
507
  exports.useStorage = useStorage;
462
508
  exports.useTimeout = useTimeout;
463
509
  exports.useUnmountEffect = useUnmountEffect;
@@ -1 +1 @@
1
- this.primereact=this.primereact||{},this.primereact.hooks=function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=n(t),c=function(e){var t=u.useRef(void 0);return u.useEffect((function(){t.current=e})),t.current},o=function(e){return u.useEffect((function(){return e}),[])},i=function(e){var t=e.target,n=void 0===t?"document":t,i=e.type,l=e.listener,f=e.options,a=e.when,s=void 0===a||a,v=u.useRef(null),d=u.useRef(null),g=c(f),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.ObjectUtils.isNotEmpty(e.target)&&(y(),(e.when||s)&&(v.current=r.DomHandler.getTargetElement(e.target))),!d.current&&v.current&&(d.current=function(e){return l&&l(e)},v.current.addEventListener(i,d.current,f))},y=function(){d.current&&(v.current.removeEventListener(i,d.current,f),d.current=null)};return u.useEffect((function(){s?v.current=r.DomHandler.getTargetElement(n):(y(),v.current=null)}),[n,s]),u.useEffect((function(){!d.current||d.current===l&&g===f||(y(),s&&m())}),[l,f]),o((function(){y()})),[m,y]};function l(e){if(Array.isArray(e))return e}function f(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,c=[],o=!0,i=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);o=!0);}catch(e){i=!0,u=e}finally{try{o||null==r.return||r.return()}finally{if(i)throw u}}return c}}function a(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}function s(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){return l(e)||f(e,t)||s(e,t)||v()}var g=function(e){var t=e.target,n=e.listener,i=e.options,l=e.when,f=void 0===l||l,a=u.useRef(null),s=u.useRef(null),v=u.useRef([]),d=c(i),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.ObjectUtils.isNotEmpty(e.target)&&(m(),(e.when||f)&&(a.current=r.DomHandler.getTargetElement(e.target))),!s.current&&a.current){var t=v.current=r.DomHandler.getScrollableParents(a.current);s.current=function(e){return n&&n(e)},t.forEach((function(e){return e.addEventListener("scroll",s.current,i)}))}},m=function(){s.current&&(v.current.forEach((function(e){return e.removeEventListener("scroll",s.current,i)})),s.current=null)};return u.useEffect((function(){f?a.current=r.DomHandler.getTargetElement(t):(m(),a.current=null)}),[t,f]),u.useEffect((function(){!s.current||s.current===n&&d===i||(m(),f&&g())}),[n,i]),o((function(){m()})),[g,m]},m=function(e){return i({target:"window",type:"resize",listener:e.listener})};return e.useEventListener=i,e.useInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearInterval(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setInterval((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useMountEffect=function(e){return u.useEffect(e,[])},e.useOverlayListener=function(e){var t=e.target,n=e.overlay,c=e.listener,l=e.when,f=void 0===l||l,a=u.useRef(null),s=u.useRef(null),v=d(i({type:"click",listener:function(e){c&&c(e,{type:"outside",valid:3!==e.which&&O(e)})}}),2),y=v[0],h=v[1],E=d(m({listener:function(e){c&&c(e,{type:"resize",valid:!r.DomHandler.isTouchDevice()})}}),2),p=E[0],w=E[1],b=d(g({target:a,listener:function(e){c&&c(e,{type:"scroll",valid:!0})}}),2),S=b[0],R=b[1],O=function(e){return a.current&&!(a.current.isSameNode(e.target)||a.current.contains(e.target)||s.current&&s.current.contains(e.target))},j=function(){h(),w(),R()};return u.useEffect((function(){f?(a.current=r.DomHandler.getTargetElement(t),s.current=r.DomHandler.getTargetElement(n)):(j(),a.current=s.current=null)}),[t,n,f]),u.useEffect((function(){j()}),[f]),o((function(){j()})),[function(){y(),p(),S()},j]},e.useOverlayScrollListener=g,e.usePrevious=c,e.useResizeListener=m,e.useStorage=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"local",n="undefined"!=typeof window,c=u.useState((function(){if(!n)return e;try{var u="local"===r?window.localStorage.getItem(t):window.sessionStorage.getItem(t);return u?JSON.parse(u):e}catch(t){return e}})),o=d(c,2),i=o[0],l=o[1],f=function(e){try{var u=e instanceof Function?e(i):e;if(l(u),n){var c=JSON.stringify(u);"local"===r?window.localStorage.setItem(t,c):window.sessionStorage.setItem(t,c)}}catch(e){throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(t))}};return[i,f]},e.useTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearTimeout(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setTimeout((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useUnmountEffect=o,e.useUpdateEffect=function(e,t){var r=u.useRef(!1);return u.useEffect((function(){if(r.current)return e&&e();r.current=!0}),t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
1
+ this.primereact=this.primereact||{},this.primereact.hooks=function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var u=n(t),c=function(e){var t=u.useRef(void 0);return u.useEffect((function(){t.current=e})),t.current},o=function(e){return u.useEffect((function(){return e}),[])},i=function(e){var t=e.target,n=void 0===t?"document":t,i=e.type,l=e.listener,a=e.options,f=e.when,s=void 0===f||f,v=u.useRef(null),d=u.useRef(null),g=c(a),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.ObjectUtils.isNotEmpty(e.target)&&(y(),(e.when||s)&&(v.current=r.DomHandler.getTargetElement(e.target))),!d.current&&v.current&&(d.current=function(e){return l&&l(e)},v.current.addEventListener(i,d.current,a))},y=function(){d.current&&(v.current.removeEventListener(i,d.current,a),d.current=null)};return u.useEffect((function(){s?v.current=r.DomHandler.getTargetElement(n):(y(),v.current=null)}),[n,s]),u.useEffect((function(){!d.current||d.current===l&&g===a||(y(),s&&m())}),[l,a]),o((function(){y()})),[m,y]};function l(e){if(Array.isArray(e))return e}function a(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,c=[],o=!0,i=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);o=!0);}catch(e){i=!0,u=e}finally{try{o||null==r.return||r.return()}finally{if(i)throw u}}return c}}function f(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}function s(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){return l(e)||a(e,t)||s(e,t)||v()}var g=function(e){var t=e.target,n=e.listener,i=e.options,l=e.when,a=void 0===l||l,f=u.useRef(null),s=u.useRef(null),v=u.useRef([]),d=c(i),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.ObjectUtils.isNotEmpty(e.target)&&(m(),(e.when||a)&&(f.current=r.DomHandler.getTargetElement(e.target))),!s.current&&f.current){var t=v.current=r.DomHandler.getScrollableParents(f.current);s.current=function(e){return n&&n(e)},t.forEach((function(e){return e.addEventListener("scroll",s.current,i)}))}},m=function(){s.current&&(v.current.forEach((function(e){return e.removeEventListener("scroll",s.current,i)})),s.current=null)};return u.useEffect((function(){a?f.current=r.DomHandler.getTargetElement(t):(m(),f.current=null)}),[t,a]),u.useEffect((function(){!s.current||s.current===n&&d===i||(m(),a&&g())}),[n,i]),o((function(){m()})),[g,m]},m=function(e){return i({target:"window",type:"resize",listener:e.listener})},y=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"local",n="undefined"!=typeof window,c=i({target:"window",type:"storage",listener:function(e){var n="local"===r?window.localStorage:window.sessionStorage;e.storageArea===n&&e.key===t&&g(e.newValue||void 0)}}),o=d(c,2),l=o[0],a=o[1],f=u.useState((function(){if(!n)return e;try{var u="local"===r?window.localStorage.getItem(t):window.sessionStorage.getItem(t);return u?JSON.parse(u):e}catch(t){return e}})),s=d(f,2),v=s[0],g=s[1],m=function(e){try{var u=e instanceof Function?e(v):e;if(g(u),n){var c=JSON.stringify(u);"local"===r?window.localStorage.setItem(t,c):window.sessionStorage.setItem(t,c)}}catch(e){throw new Error("PrimeReact useStorage: Failed to serialize the value at key: ".concat(t))}};return u.useEffect((function(){return l(),function(){return a()}}),[]),[v,m]};return e.useEventListener=i,e.useInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearInterval(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setInterval((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useLocalStorage=function(e,t){return y(e,t,"local")},e.useMountEffect=function(e){return u.useEffect(e,[])},e.useOverlayListener=function(e){var t=e.target,n=e.overlay,c=e.listener,l=e.when,a=void 0===l||l,f=u.useRef(null),s=u.useRef(null),v=d(i({type:"click",listener:function(e){c&&c(e,{type:"outside",valid:3!==e.which&&O(e)})}}),2),y=v[0],E=v[1],h=d(m({listener:function(e){c&&c(e,{type:"resize",valid:!r.DomHandler.isTouchDevice()})}}),2),w=h[0],p=h[1],S=d(g({target:f,listener:function(e){c&&c(e,{type:"scroll",valid:!0})}}),2),b=S[0],R=S[1],O=function(e){return f.current&&!(f.current.isSameNode(e.target)||f.current.contains(e.target)||s.current&&s.current.contains(e.target))},j=function(){E(),p(),R()};return u.useEffect((function(){a?(f.current=r.DomHandler.getTargetElement(t),s.current=r.DomHandler.getTargetElement(n)):(j(),f.current=s.current=null)}),[t,n,a]),u.useEffect((function(){j()}),[a]),o((function(){j()})),[function(){y(),w(),b()},j]},e.useOverlayScrollListener=g,e.usePrevious=c,e.useResizeListener=m,e.useSessionStorage=function(e,t){return y(e,t,"session")},e.useStorage=y,e.useTimeout=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=u.useRef(null),c=u.useRef(null),i=u.useCallback((function(){return clearTimeout(n.current)}),[n.current]);return u.useEffect((function(){c.current=e})),u.useEffect((function(){if(r)return n.current=setTimeout((function(){c.current()}),t),i;i()}),[t,r]),o((function(){i()})),[i]},e.useUnmountEffect=o,e.useUpdateEffect=function(e,t){var r=u.useRef(!1);return u.useEffect((function(){if(r.current)return e&&e();r.current=!0}),t)},Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primereact",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "private": false,
5
5
  "author": "PrimeTek Informatics",
6
6
  "description": "PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBlock, which has 280+ ready to use UI blocks to build spectacular applications in no time.",
@@ -3052,9 +3052,25 @@ var useInterval = function useInterval(fn) {
3052
3052
 
3053
3053
  var useStorage = function useStorage(initialValue, key) {
3054
3054
  var storage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'local';
3055
- // Since the local storage API isn't available in server-rendering environments,
3055
+ // Since the local storage API isn't available in server-rendering environments,
3056
3056
  // we check that typeof window !== 'undefined' to make SSR and SSG work properly.
3057
- var storageAvailable = typeof window !== 'undefined';
3057
+ var storageAvailable = typeof window !== 'undefined'; // subscribe to window storage event so changes in one tab to a stored value
3058
+ // are properly reflected in all tabs
3059
+
3060
+ var _useEventListener = useEventListener({
3061
+ target: 'window',
3062
+ type: 'storage',
3063
+ listener: function listener(event) {
3064
+ var area = storage === 'local' ? window.localStorage : window.sessionStorage;
3065
+
3066
+ if (event.storageArea === area && event.key === key) {
3067
+ setStoredValue(event.newValue || undefined);
3068
+ }
3069
+ }
3070
+ }),
3071
+ _useEventListener2 = _slicedToArray(_useEventListener, 2),
3072
+ bindWindowStorageListener = _useEventListener2[0],
3073
+ unbindWindowStorageListener = _useEventListener2[1];
3058
3074
 
3059
3075
  var _React$useState = React__namespace.useState(function () {
3060
3076
  if (!storageAvailable) {
@@ -3088,8 +3104,36 @@ var useStorage = function useStorage(initialValue, key) {
3088
3104
  }
3089
3105
  };
3090
3106
 
3107
+ React__namespace.useEffect(function () {
3108
+ bindWindowStorageListener();
3109
+ return function () {
3110
+ return unbindWindowStorageListener();
3111
+ };
3112
+ }, []);
3091
3113
  return [storedValue, setValue];
3092
3114
  };
3115
+ /**
3116
+ * Hook to wrap around useState that stores the value in the browser local storage.
3117
+ *
3118
+ * @param {any} initialValue the initial value to store
3119
+ * @param {string} key the key to store the value in local storage
3120
+ * @returns a stateful value, and a function to update it.
3121
+ */
3122
+
3123
+ var useLocalStorage = function useLocalStorage(initialValue, key) {
3124
+ return useStorage(initialValue, key, 'local');
3125
+ };
3126
+ /**
3127
+ * Hook to wrap around useState that stores the value in the browser session storage.
3128
+ *
3129
+ * @param {any} initialValue the initial value to store
3130
+ * @param {string} key the key to store the value in session storage
3131
+ * @returns a stateful value, and a function to update it.
3132
+ */
3133
+
3134
+ var useSessionStorage = function useSessionStorage(initialValue, key) {
3135
+ return useStorage(initialValue, key, 'session');
3136
+ };
3093
3137
  /* eslint-enable */
3094
3138
 
3095
3139
  /* eslint-disable */
@@ -5399,7 +5443,8 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5399
5443
 
5400
5444
  var onOverlayEntering = function onOverlayEntering() {
5401
5445
  if (props.autoHighlight && props.suggestions && props.suggestions.length) {
5402
- DomHandler.addClass(overlayRef.current.firstChild.firstChild, 'p-highlight');
5446
+ var element = getScrollableElement().firstChild.firstChild;
5447
+ DomHandler.addClass(element, 'p-highlight');
5403
5448
  }
5404
5449
  };
5405
5450
 
@@ -5472,7 +5517,7 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5472
5517
  if (nextElement) {
5473
5518
  DomHandler.addClass(nextElement, 'p-highlight');
5474
5519
  DomHandler.removeClass(highlightItem, 'p-highlight');
5475
- DomHandler.scrollInView(overlayRef.current, nextElement);
5520
+ DomHandler.scrollInView(getScrollableElement(), nextElement);
5476
5521
  }
5477
5522
  } else {
5478
5523
  highlightItem = DomHandler.findSingle(overlayRef.current, 'li');
@@ -5497,7 +5542,7 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5497
5542
  if (previousElement) {
5498
5543
  DomHandler.addClass(previousElement, 'p-highlight');
5499
5544
  DomHandler.removeClass(highlightItem, 'p-highlight');
5500
- DomHandler.scrollInView(overlayRef.current, previousElement);
5545
+ DomHandler.scrollInView(getScrollableElement(), previousElement);
5501
5546
  }
5502
5547
  }
5503
5548
 
@@ -5630,6 +5675,10 @@ var AutoComplete = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
5630
5675
  }) : -1;
5631
5676
  };
5632
5677
 
5678
+ var getScrollableElement = function getScrollableElement() {
5679
+ return virtualScrollerRef.current ? overlayRef.current.firstChild : overlayRef.current;
5680
+ };
5681
+
5633
5682
  var getOptionGroupLabel = function getOptionGroupLabel(optionGroup) {
5634
5683
  return props.optionGroupLabel ? ObjectUtils.resolveFieldData(optionGroup, props.optionGroupLabel) : optionGroup;
5635
5684
  };
@@ -9434,7 +9483,7 @@ var Calendar = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
9434
9483
  onExit: onOverlayExit,
9435
9484
  onExited: onOverlayExited,
9436
9485
  transitionOptions: props.transitionOptions
9437
- }, datePicker, timePicker, buttonBar, footer, monthPicker, yearPicker));
9486
+ }, datePicker, timePicker, monthPicker, yearPicker, buttonBar, footer));
9438
9487
  }));
9439
9488
  Calendar.displayName = 'Calendar';
9440
9489
  Calendar.defaultProps = {
@@ -12646,9 +12695,11 @@ var Dialog = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
12646
12695
  var icons = ObjectUtils.getJSXElement(props.icons, props);
12647
12696
  var header = ObjectUtils.getJSXElement(props.header, props);
12648
12697
  var headerId = idState + '_header';
12698
+ var headerClassName = classNames('p-dialog-header', props.headerClassName);
12649
12699
  return /*#__PURE__*/React__namespace.createElement("div", {
12650
12700
  ref: headerRef,
12651
- className: "p-dialog-header",
12701
+ style: props.headerStyle,
12702
+ className: headerClassName,
12652
12703
  onMouseDown: onDragStart
12653
12704
  }, /*#__PURE__*/React__namespace.createElement("div", {
12654
12705
  id: headerId,
@@ -12770,6 +12821,8 @@ Dialog.defaultProps = {
12770
12821
  modal: true,
12771
12822
  onHide: null,
12772
12823
  onShow: null,
12824
+ headerStyle: null,
12825
+ headerClassName: null,
12773
12826
  contentStyle: null,
12774
12827
  contentClassName: null,
12775
12828
  closeOnEscape: true,
@@ -16154,7 +16207,7 @@ var Dropdown = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
16154
16207
  if (highlightItem && highlightItem.scrollIntoView) {
16155
16208
  highlightItem.scrollIntoView({
16156
16209
  block: 'nearest',
16157
- inline: 'start'
16210
+ inline: 'nearest'
16158
16211
  });
16159
16212
  }
16160
16213
  };
@@ -35451,8 +35504,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35451
35504
  }
35452
35505
 
35453
35506
  animating.current = false;
35454
- },
35455
- when: false
35507
+ }
35456
35508
  }),
35457
35509
  _useEventListener2 = _slicedToArray(_useEventListener, 2),
35458
35510
  bindTargetEnterListener = _useEventListener2[0],
@@ -35469,8 +35521,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35469
35521
 
35470
35522
  unbindTargetLeaveListener();
35471
35523
  animating.current = false;
35472
- },
35473
- when: false
35524
+ }
35474
35525
  }),
35475
35526
  _useEventListener4 = _slicedToArray(_useEventListener3, 2),
35476
35527
  bindTargetLeaveListener = _useEventListener4[0],
@@ -35485,7 +35536,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35485
35536
  leave();
35486
35537
  }
35487
35538
  },
35488
- when: false
35539
+ when: props.hideOnOutsideClick
35489
35540
  }),
35490
35541
  _useEventListener6 = _slicedToArray(_useEventListener5, 2),
35491
35542
  bindDocumentClickListener = _useEventListener6[0],
@@ -35501,8 +35552,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35501
35552
  } else {
35502
35553
  if (targetRef.current.offsetParent === null) enter();else leave();
35503
35554
  }
35504
- },
35505
- when: false
35555
+ }
35506
35556
  }),
35507
35557
  _useEventListener8 = _slicedToArray(_useEventListener7, 2),
35508
35558
  bindClickListener = _useEventListener8[0],
@@ -35528,8 +35578,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35528
35578
  }
35529
35579
 
35530
35580
  bindTargetEnterListener({
35531
- target: targetRef.current,
35532
- when: true
35581
+ target: targetRef.current
35533
35582
  });
35534
35583
  }
35535
35584
  } else {
@@ -35543,8 +35592,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35543
35592
  }
35544
35593
 
35545
35594
  bindDocumentClickListener({
35546
- target: elementRef.current && elementRef.current.ownerDocument,
35547
- when: props.hideOnOutsideClick
35595
+ target: elementRef.current && elementRef.current.ownerDocument
35548
35596
  });
35549
35597
  };
35550
35598
 
@@ -35559,8 +35607,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35559
35607
  }
35560
35608
 
35561
35609
  bindTargetLeaveListener({
35562
- target: targetRef.current,
35563
- when: true
35610
+ target: targetRef.current
35564
35611
  });
35565
35612
  }
35566
35613
  } else {
@@ -35604,8 +35651,7 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35604
35651
  var init = function init() {
35605
35652
  elementRef.current = ObjectUtils.getRefElement(props.nodeRef);
35606
35653
  bindClickListener({
35607
- target: elementRef.current,
35608
- when: true
35654
+ target: elementRef.current
35609
35655
  });
35610
35656
  };
35611
35657
 
@@ -35627,9 +35673,11 @@ var StyleClass = /*#__PURE__*/React__namespace.forwardRef(function (props, ref)
35627
35673
  init();
35628
35674
  });
35629
35675
  useUpdateEffect(function () {
35630
- destroy();
35631
35676
  init();
35632
- }, [props.nodeRef]);
35677
+ return function () {
35678
+ unbindClickListener();
35679
+ };
35680
+ });
35633
35681
  useUnmountEffect(function () {
35634
35682
  destroy();
35635
35683
  });
@@ -40125,12 +40173,12 @@ var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
40125
40173
  }
40126
40174
  };
40127
40175
 
40128
- var getColumnProp = function getColumnProp() {
40129
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40130
- args[_key] = arguments[_key];
40176
+ var getColumnProp = function getColumnProp(column) {
40177
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
40178
+ args[_key - 1] = arguments[_key];
40131
40179
  }
40132
40180
 
40133
- return props.column ? typeof args[0] === 'string' ? props.column.props[args[0]] : (args[0] || props.column).props[args[1]] : null;
40181
+ return column ? typeof args[0] === 'string' ? column.props[args[0]] : (args[0] || column).props[args[1]] : null;
40134
40182
  };
40135
40183
 
40136
40184
  var createSortIcon = function createSortIcon(column, sorted, sortOrder) {
@@ -40206,7 +40254,7 @@ var TreeTableHeader = /*#__PURE__*/React__namespace.memo(function (props) {
40206
40254
  var className = classNames(column.props.headerClassName || column.props.className, {
40207
40255
  'p-sortable-column': column.props.sortable,
40208
40256
  'p-highlight': sorted,
40209
- 'p-resizable-column': props.resizableColumns && getColumnProp('resizeable')
40257
+ 'p-resizable-column': props.resizableColumns && getColumnProp(column, 'resizeable')
40210
40258
  });
40211
40259
  var resizer = createResizer(column);
40212
40260
  return /*#__PURE__*/React__namespace.createElement("th", {
@@ -41882,11 +41930,13 @@ exports.updateLocaleOption = updateLocaleOption;
41882
41930
  exports.updateLocaleOptions = updateLocaleOptions;
41883
41931
  exports.useEventListener = useEventListener;
41884
41932
  exports.useInterval = useInterval;
41933
+ exports.useLocalStorage = useLocalStorage;
41885
41934
  exports.useMountEffect = useMountEffect;
41886
41935
  exports.useOverlayListener = useOverlayListener;
41887
41936
  exports.useOverlayScrollListener = useOverlayScrollListener;
41888
41937
  exports.usePrevious = usePrevious;
41889
41938
  exports.useResizeListener = useResizeListener;
41939
+ exports.useSessionStorage = useSessionStorage;
41890
41940
  exports.useStorage = useStorage;
41891
41941
  exports.useTimeout = useTimeout;
41892
41942
  exports.useUnmountEffect = useUnmountEffect;