@react-hive/honey-layout 14.1.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/HoneyLayerRegistry/HoneyLayerRegistryContext.d.ts +1 -1
- package/dist/components/HoneyOverlay.d.ts +1 -1
- package/dist/components/HoneyPopup/HoneyPopupContent.d.ts +1 -1
- package/dist/components/HoneyPopup/hooks/use-honey-popup-context.d.ts +1 -1
- package/dist/contexts/HoneyLayoutContext.d.ts +1 -1
- package/dist/helpers/helpers.d.ts +1 -1
- package/dist/hooks/use-honey-document-key-up.d.ts +1 -1
- package/dist/hooks/use-honey-drag.d.ts +1 -1
- package/dist/hooks/use-honey-layout.d.ts +1 -1
- package/dist/hooks/use-honey-media-query.d.ts +1 -1
- package/dist/hooks/use-honey-overlay.d.ts +2 -2
- package/dist/hooks/use-honey-synthetic-scroll.d.ts +1 -1
- package/dist/hooks/use-register-honey-overlay.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.dev.cjs +29 -26
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/providers/HoneyLayoutProvider.d.ts +1 -1
- package/dist/providers/hooks/use-honey-overlays.d.ts +2 -2
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! For license information please see index.mjs.LICENSE.txt */
|
|
2
2
|
import*as e from"react";import{CSS_COLOR_PROPERTIES as t,CSS_SPACING_PROPERTIES as n,HONEY_BREAKPOINTS as r,HoneyStyleProvider as o,checkIsThemeColorValue as i,css as c,resolveColor as u,resolveSpacing as s,styled as l}from"@react-hive/honey-style";var a={117(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",c="[object Function]",u="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a[i]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a[c]=a["[object Map]"]=a["[object Number]"]=a[u]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var f,d,p,v="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,h=v||m||Function("return this")(),g=t&&!t.nodeType&&t,y=g&&e&&!e.nodeType&&e,b=y&&y.exports===g,w=b&&v.process,x=function(){try{return y&&y.require&&y.require("util").types||w&&w.binding&&w.binding("util")}catch(e){}}(),E=x&&x.isTypedArray,R=Array.prototype,C=Function.prototype,O=Object.prototype,S=h["__core-js_shared__"],k=C.toString,L=O.hasOwnProperty,_=(f=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",A=O.toString,M=k.call(Object),P=RegExp("^"+k.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=b?h.Buffer:void 0,T=h.Symbol,D=h.Uint8Array,I=(j&&j.allocUnsafe,d=Object.getPrototypeOf,p=Object,function(e){return d(p(e))}),$=Object.create,N=O.propertyIsEnumerable,F=R.splice,W=T?T.toStringTag:void 0,X=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),z=j?j.isBuffer:void 0,H=Math.max,Y=Date.now,B=ue(h,"Map"),V=ue(Object,"create"),U=function(){function e(){}return function(t){if(!be(t))return{};if($)return $(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new q(e);this.size=t.size}function Q(e,t,n){(void 0!==n&&!de(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];L.call(e,t)&&de(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(de(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}K.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},K.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},K.prototype.get=function(e){var t=this.__data__;if(V){var n=t[e];return n===r?void 0:n}return L.call(t,e)?t[e]:void 0},K.prototype.has=function(e){var t=this.__data__;return V?void 0!==t[e]:L.call(t,e)},K.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=V&&void 0===t?r:t,this},q.prototype.clear=function(){this.__data__=[],this.size=0},q.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():F.call(t,n,1),--this.size,0))},q.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},q.prototype.has=function(e){return ee(this.__data__,e)>-1},q.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},G.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(B||q),string:new K}},G.prototype.delete=function(e){var t=ce(this,e).delete(e);return this.size-=t?1:0,t},G.prototype.get=function(e){return ce(this,e).get(e)},G.prototype.has=function(e){return ce(this,e).has(e)},G.prototype.set=function(e,t){var n=ce(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new q,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof q){var r=n.__data__;if(!B||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new G(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=L.call(e,W),n=e[W];try{e[W]=void 0;var r=!0}catch(e){}var o=A.call(e);return r&&(t?e[W]=n:delete e[W]),o}(e):function(e){return A.call(e)}(e)}function re(e){return we(e)&&ne(e)==i}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),i=n(e),c=i.length;c--;){var u=i[++r];if(!1===t(o[u],u,o))break}}(t,function(i,c){if(o||(o=new Z),be(i))!function(e,t,n,r,o,i,c){var s=ae(e,n),l=ae(t,n),a=c.get(l);if(a)Q(e,n,a);else{var f,d,p,v,m,h=i?i(s,l,n+"",e,t,c):void 0,g=void 0===h;if(g){var y=ve(l),b=!y&&he(l),w=!y&&!b&&xe(l);h=l,y||b||w?ve(s)?h=s:we(m=s)&&me(m)?h=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):b?(g=!1,h=function(e){return e.slice()}(l)):w?(g=!1,v=new(p=(f=l).buffer).constructor(p.byteLength),new D(v).set(new D(p)),d=v,h=new f.constructor(d,f.byteOffset,f.length)):h=[]:function(e){if(!we(e)||ne(e)!=u)return!1;var t=I(e);if(null===t)return!0;var n=L.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&k.call(n)==M}(l)||pe(l)?(h=s,pe(s)?h=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var c=t[o],u=void 0;void 0===u&&(u=e[c]),r?te(n,c,u):J(n,c,u)}return n}(e,Ee(e))}(s):be(s)&&!ge(s)||(h=function(e){return"function"!=typeof e.constructor||le(e)?{}:U(I(e))}(l))):g=!1}g&&(c.set(l,h),o(h,l,r,i,c),c.delete(l)),Q(e,n,h)}}(e,t,c,n,oe,r,o);else{var s=r?r(ae(e,c),i,c+"",e,t,o):void 0;void 0===s&&(s=i),Q(e,c,s)}},Ee)}var ie=X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Oe;function ce(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!_&&_ in e}(e))&&(ge(e)?P:s).test(function(e){if(null!=e){try{return k.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function se(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function le(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}function ae(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var fe=function(e){var t=0,n=0;return function(){var r=Y(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function de(e,t){return e===t||e!=e&&t!=t}var pe=re(function(){return arguments}())?re:function(e){return we(e)&&L.call(e,"callee")&&!N.call(e,"callee")},ve=Array.isArray;function me(e){return null!=e&&ye(e.length)&&!ge(e)}var he=z||function(){return!1};function ge(e){if(!be(e))return!1;var t=ne(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function we(e){return null!=e&&"object"==typeof e}var xe=E?function(e){return function(t){return e(t)}}(E):function(e){return we(e)&&ye(e.length)&&!!a[ne(e)]};function Ee(e){return me(e)?function(e,t){var n=ve(e),r=!n&&pe(e),o=!n&&!r&&he(e),i=!n&&!r&&!o&&xe(e),c=n||r||o||i,u=c?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!L.call(e,l)||c&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||se(l,s))||u.push(l);return u}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=le(e),n=[];for(var r in e)("constructor"!=r||!t&&L.call(e,r))&&n.push(r);return n}(e)}var Re,Ce=(Re=function(e,t,n){oe(e,t,n)},function(e,t){return fe(function(e,t,n){return t=H(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=H(r.length-t,0),c=Array(i);++o<i;)c[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(c),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,u)}}(e,t,Oe),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=Re.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&se(t,n.length):"string"==r&&t in n)&&de(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var c=t[n];c&&Re(e,c,n)}return e}));function Oe(e){return e}e.exports=Ce},551(e,t,n){var r="Expected a function",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,a="object"==typeof self&&self&&self.Object===Object&&self,f=l||a||Function("return this")(),d=Object.prototype.toString,p=Math.max,v=Math.min,m=function(){return f.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=c.test(e);return n||u.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return h(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),function(e,t,n){var o,i,c,u,s,l,a=0,f=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=o,r=i;return o=i=void 0,a=t,u=e.apply(r,n)}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-a>=c}function x(){var e=m();if(w(e))return E(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?v(n,c-(e-a)):n}(e))}function E(e){return s=void 0,y&&o?b(e):(o=i=void 0,u)}function R(){var e=m(),n=w(e);if(o=arguments,i=this,l=e,n){if(void 0===s)return function(e){return a=e,s=setTimeout(x,t),f?b(e):u}(l);if(d)return s=setTimeout(x,t),b(l)}return void 0===s&&(s=setTimeout(x,t)),u}return t=g(t)||0,h(n)&&(f=!!n.leading,c=(d="maxWait"in n)?p(g(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),R.cancel=function(){void 0!==s&&clearTimeout(s),a=0,o=l=i=s=void 0},R.flush=function(){return void 0===s?u:E(m())},R}(e,t,{leading:o,maxWait:t,trailing:i})}},685(e,t,n){var r=n(649);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var c={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal"),s=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=s.T,n=c.p;try{if(s.T=null,c.p=2,e)return e()}finally{s.T=t,c.p=n,c.d.f()}}},289(e,t,n){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(685)},131(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},615(e,t,n){e.exports=n(131)},649(t){t.exports=e}},f={};function d(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={id:e,loaded:!1,exports:{}};return a[e](n,n.exports,d),n.loaded=!0,n.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},d.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);const p=!1;function v(e,t){if(!e)throw new Error(t)}const m=e=>"function"==typeof e,h=e=>Math.max(0,e.scrollHeight-e.clientHeight),g=(e,...t)=>"function"==typeof e?e(...t):e,y=({delta:e,value:t,min:n,max:r})=>{if(0===e)return null;const o=t+e;return e<0?t<=n?null:Math.max(o,n):e>0?t>=r?null:Math.min(o,r):null},b=(...e)=>t=>{e.forEach(e=>{m(e)?e(t):"object"==typeof e&&(e.current=t)})},w=()=>`${Date.now().toString()}${Math.floor(1e4*Math.random()).toString().padStart(4,"0")}`,x=e=>"$"===e[0],E=e=>({theme:r,...o})=>c`
|
|
3
|
-
${((e,t)=>Object.entries(e).filter(([e,n])=>
|
|
3
|
+
${((e,t)=>Object.entries(e).filter(([e,n])=>"xs"===t&&x(e)||n&&"object"==typeof n&&t in n))(o,e).map(([r,o])=>{const l=r.slice(1);return c`
|
|
4
4
|
${(e=>{const t=e.charAt(0),n=e.slice(1);return t.toLowerCase()+n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)})(l)}: ${((e,r,o)=>{const c="object"!=typeof r||Array.isArray(r)?r:r[o];if(void 0!==c){if((e=>n.includes(e))(e)){if("number"==typeof c||Array.isArray(c))return s(c,"px")}else if((e=>t.includes(e))(e)&&"string"==typeof c&&i(c))return u(c);return c}})(l,o,e)};
|
|
5
5
|
`})}
|
|
6
6
|
`,R=e=>({theme:t,...n})=>t.breakpoints[e]&&((e,t)=>Object.entries(t).some(([t,n])=>x(t)&&"object"==typeof n&&e in n))(e,n)?c`
|