@cleartrip/ct-platform-drawer 2.7.0 → 3.0.0-beta.2

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.
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),d=require("react-dom"),i=require("classnames"),r=require("@cleartrip/ct-design-icons"),t=require("@cleartrip/ct-platform-utils");function _(e){return e&&e.__esModule?e:{default:e}}var l=_(d),a=_(i);var u={modal__container:"index-module_modal__container__srA-N",modal:"index-module_modal__3imuM",left:"index-module_left__jAupb",right:"index-module_right__n7i2S",top:"index-module_top__3q-P0",bottom:"index-module_bottom__I5s6E",overlay:"index-module_overlay__-8Le1","transition-end":"index-module_transition-end__ydkLj",open:"index-module_open__30JoF","drawer-header":"index-module_drawer-header__IGV4R","drawer-close-btn__container":"index-module_drawer-close-btn__container__a0chH","close-icon":"index-module_close-icon__G49OX"};!function(e,n){void 0===n&&(n={});var o=n.insertAt;if(e&&"undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto;position:fixed;transition:transform .3s ease;width:auto;z-index:1000}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_left__jAupb{left:0;top:0;transform:translateX(-105%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_right__n7i2S{right:0;top:0;transform:translateX(100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_top__3q-P0{left:0;right:0;top:0;transform:translateY(-100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_bottom__I5s6E{bottom:0;left:0;right:0;transform:translateY(100%)}.index-module_modal__container__srA-N .index-module_overlay__-8Le1{background:rgba(0,0,0,.5);height:100%;left:0;opacity:0;pointer-events:none;position:fixed;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;width:100%;z-index:999}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_left__jAupb,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_right__n7i2S{transform:translateX(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_bottom__I5s6E,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_top__3q-P0{transform:translateY(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_overlay__-8Le1{opacity:1;pointer-events:auto;visibility:visible;z-index:999}.index-module_drawer-header__IGV4R{align-items:center;background-color:transparent;display:flex;justify-content:flex-end;padding:12px 16px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH{align-items:center;background:#fff;border:none;border-radius:40px;cursor:pointer;display:flex;justify-content:center;outline:none;padding:4px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH:hover{background:#fff}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH .index-module_close-icon__G49OX{height:24px;width:24px}");exports.Drawer=function(d){var i,_=d.isOpen,s=d.handleClose,c=d.onClose,m=d.children,x=d.direction,f=void 0===x?"left":x,p=d.showClose,v=void 0!==p&&p,h=d.overlay,y=void 0===h||h,w=d.closeOnOutsideClick,b=void 0!==w&&w,g=o.useRef(null),j=o.useRef(null),A=o.useRef(null);if(!t.isServer()&&window&&document&&(g.current=document.querySelector("body")),!t.isServer()&&window&&document){var N=document.getElementById("drawer-parent");j.current=N||function(){if(!t.isServer()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()}o.useEffect((function(){var e;null===(e=null==g?void 0:g.current)||void 0===e||e.appendChild(null==j?void 0:j.current);var n=null==j?void 0:j.current,o=null==g?void 0:g.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),o.useEffect((function(){g&&g.current&&(g.current.style.overflow=_?"hidden":"unset")}),[_]);var k=function(e,n){var d=o.useState(!1),i=d[0],r=d[1];return o.useEffect((function(){var o;return e&&!i?r(!0):!e&&i&&(o=setTimeout((function(){return r(!1)}),n)),function(){clearTimeout(o)}}),[n,e,i]),i}(_,500);return k||_?n.jsx(n.Fragment,{children:l.default.createPortal(n.jsxs("div",e.__assign({"aria-hidden":_?"false":"true",className:a.default(u.modal__container,(i={},i[u.open]=_,i[u["transition-end"]]=k,i)),onClick:function(e){var n;b&&A.current&&(null===(n=A.current)||void 0===n?void 0:n.contains(e.target))&&s()}},{children:[n.jsxs("div",e.__assign({className:a.default(u.modal,u[f]),role:"dialog"},{children:[v&&n.jsx("div",e.__assign({className:u["drawer-header"]},{children:n.jsx("button",e.__assign({className:u["drawer-close-btn__container"],onClick:function(e){s(e),c()}},{children:n.jsx(r.Cross,{className:u["close-icon"],crossColor:"#1A1A1A"})}))})),m]})),y&&n.jsx("div",{"aria-hidden":_?"false":"true",className:"".concat(u.overlay),ref:A})]})),null==j?void 0:j.current)}):null};
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react"),d=require("react-dom"),i=require("classnames"),r=require("@cleartrip/ct-design-icons"),t=require("@cleartrip/ct-platform-utils");function _(e){return e&&e.__esModule?e:{default:e}}var l=_(d),a=_(i);var u={modal__container:"index-module_modal__container__srA-N",modal:"index-module_modal__3imuM",left:"index-module_left__jAupb",right:"index-module_right__n7i2S",top:"index-module_top__3q-P0",bottom:"index-module_bottom__I5s6E",overlay:"index-module_overlay__-8Le1","transition-end":"index-module_transition-end__ydkLj",open:"index-module_open__30JoF","drawer-header":"index-module_drawer-header__IGV4R","drawer-close-btn__container":"index-module_drawer-close-btn__container__a0chH","close-icon":"index-module_close-icon__G49OX"};!function(e,n){void 0===n&&(n={});var o=n.insertAt;if("undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto;position:fixed;transition:transform .3s ease;width:auto;z-index:1000}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_left__jAupb{left:0;top:0;transform:translateX(-105%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_right__n7i2S{right:0;top:0;transform:translateX(100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_top__3q-P0{left:0;right:0;top:0;transform:translateY(-100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_bottom__I5s6E{bottom:0;left:0;right:0;transform:translateY(100%)}.index-module_modal__container__srA-N .index-module_overlay__-8Le1{background:rgba(0,0,0,.5);height:100%;left:0;opacity:0;pointer-events:none;position:fixed;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;width:100%;z-index:999}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_left__jAupb,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_right__n7i2S{transform:translateX(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_bottom__I5s6E,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_top__3q-P0{transform:translateY(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_overlay__-8Le1{opacity:1;pointer-events:auto;visibility:visible;z-index:999}.index-module_drawer-header__IGV4R{align-items:center;background-color:transparent;display:flex;justify-content:flex-end;padding:12px 16px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH{align-items:center;background:#fff;border:none;border-radius:40px;cursor:pointer;display:flex;justify-content:center;outline:none;padding:4px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH:hover{background:#fff}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH .index-module_close-icon__G49OX{height:24px;width:24px}");exports.Drawer=function(d){var i,_=d.isOpen,s=d.handleClose,c=d.onClose,m=d.children,x=d.direction,f=void 0===x?"left":x,p=d.showClose,v=void 0!==p&&p,h=d.overlay,y=void 0===h||h,w=d.closeOnOutsideClick,b=void 0!==w&&w,g=o.useRef(null),j=o.useRef(null),A=o.useRef(null);if(!t.isServer()&&window&&document&&(g.current=document.querySelector("body")),!t.isServer()&&window&&document){var N=document.getElementById("drawer-parent");j.current=N||function(){if(!t.isServer()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()}o.useEffect((function(){var e;null===(e=null==g?void 0:g.current)||void 0===e||e.appendChild(null==j?void 0:j.current);var n=null==j?void 0:j.current,o=null==g?void 0:g.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),o.useEffect((function(){g&&g.current&&(g.current.style.overflow=_?"hidden":"unset")}),[_]);var k=function(e,n){var d=o.useState(!1),i=d[0],r=d[1];return o.useEffect((function(){var o;return e&&!i?r(!0):!e&&i&&(o=setTimeout((function(){return r(!1)}),n)),function(){clearTimeout(o)}}),[n,e,i]),i}(_,500);return k||_?n.jsx(n.Fragment,{children:l.default.createPortal(n.jsxs("div",e.__assign({"aria-hidden":_?"false":"true",className:a.default(u.modal__container,(i={},i[u.open]=_,i[u["transition-end"]]=k,i)),onClick:function(e){var n;b&&A.current&&(null===(n=A.current)||void 0===n?void 0:n.contains(e.target))&&s()}},{children:[n.jsxs("div",e.__assign({className:a.default(u.modal,u[f]),role:"dialog"},{children:[v&&n.jsx("div",e.__assign({className:u["drawer-header"]},{children:n.jsx("button",e.__assign({className:u["drawer-close-btn__container"],onClick:function(e){s(e),c()}},{children:n.jsx(r.Cross,{className:u["close-icon"],crossColor:"#1A1A1A"})}))})),m]})),y&&n.jsx("div",{"aria-hidden":_?"false":"true",className:"".concat(u.overlay),ref:A})]})),null==j?void 0:j.current)}):null};
2
2
  //# sourceMappingURL=ct-platform-drawer.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-drawer.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Drawer/src/Drawer.tsx","../packages/components/Drawer/src/useMountTransition.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","isOpen","handleClose","onClose","children","_c","direction","_d","showClose","_e","overlay","_f","closeOnOutsideClick","bodyRef","useRef","portalParentRef","modalRef","isServer","window","current","querySelector","parentElement","getElementById","drawerParent","setAttribute","createPortalParent","useEffect","portal","bodyEl","remove","overflow","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","jsx","_Fragment","Fragment","ReactDOM","default","createPortal","_jsxs","__assign","className","classnames","Styles","_b","onClick","event","contains","target","role","evt","Cross","crossColor","concat"],"mappings":"izBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,M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MAEJM,GACG8B,EAAAC,IAAA,MAAA,CAAA,cACiBxC,EAAS,QAAU,OAChCgD,UAAW,GAAAY,OAAGV,EAAgB,SAC9BjE,IAAK8B,QAIjBD,aAAA,EAAAA,EAAiBI,WAzDlB,IA6Df","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-drawer.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Drawer/src/Drawer.tsx","../packages/components/Drawer/src/useMountTransition.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","isOpen","handleClose","onClose","children","_c","direction","_d","showClose","_e","overlay","_f","closeOnOutsideClick","bodyRef","useRef","portalParentRef","modalRef","isServer","window","current","querySelector","parentElement","getElementById","drawerParent","setAttribute","createPortalParent","useEffect","portal","bodyEl","remove","overflow","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","jsx","_Fragment","Fragment","ReactDOM","default","createPortal","_jsxs","__assign","className","classnames","Styles","_b","onClick","event","contains","target","role","evt","Cross","crossColor","concat"],"mappings":"izBAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CA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,cAClBS,WAAW,kBAK1BxD,MAEJM,GACG8B,EAAAC,IAAA,MAAA,CAAA,cACiBxC,EAAS,QAAU,OAChCgD,UAAW,GAAAY,OAAGV,EAAgB,SAC9BjE,IAAK8B,QAIjBD,aAAA,EAAAA,EAAiBI,WAzDlB,IA6Df","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as n,Fragment as o,jsxs as d}from"react/jsx-runtime";import{useState as i,useEffect as t,useRef as r}from"react";import _ from"react-dom";import l from"classnames";import{Cross as a}from"@cleartrip/ct-design-icons";import{isServer as u}from"@cleartrip/ct-platform-utils";var m={modal__container:"index-module_modal__container__srA-N",modal:"index-module_modal__3imuM",left:"index-module_left__jAupb",right:"index-module_right__n7i2S",top:"index-module_top__3q-P0",bottom:"index-module_bottom__I5s6E",overlay:"index-module_overlay__-8Le1","transition-end":"index-module_transition-end__ydkLj",open:"index-module_open__30JoF","drawer-header":"index-module_drawer-header__IGV4R","drawer-close-btn__container":"index-module_drawer-close-btn__container__a0chH","close-icon":"index-module_close-icon__G49OX"};!function(e,n){void 0===n&&(n={});var o=n.insertAt;if(e&&"undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto;position:fixed;transition:transform .3s ease;width:auto;z-index:1000}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_left__jAupb{left:0;top:0;transform:translateX(-105%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_right__n7i2S{right:0;top:0;transform:translateX(100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_top__3q-P0{left:0;right:0;top:0;transform:translateY(-100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_bottom__I5s6E{bottom:0;left:0;right:0;transform:translateY(100%)}.index-module_modal__container__srA-N .index-module_overlay__-8Le1{background:rgba(0,0,0,.5);height:100%;left:0;opacity:0;pointer-events:none;position:fixed;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;width:100%;z-index:999}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_left__jAupb,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_right__n7i2S{transform:translateX(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_bottom__I5s6E,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_top__3q-P0{transform:translateY(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_overlay__-8Le1{opacity:1;pointer-events:auto;visibility:visible;z-index:999}.index-module_drawer-header__IGV4R{align-items:center;background-color:transparent;display:flex;justify-content:flex-end;padding:12px 16px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH{align-items:center;background:#fff;border:none;border-radius:40px;cursor:pointer;display:flex;justify-content:center;outline:none;padding:4px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH:hover{background:#fff}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH .index-module_close-icon__G49OX{height:24px;width:24px}");var c=function(c){var s,x=c.isOpen,f=c.handleClose,p=c.onClose,v=c.children,h=c.direction,y=void 0===h?"left":h,b=c.showClose,w=void 0!==b&&b,g=c.overlay,A=void 0===g||g,N=c.closeOnOutsideClick,k=void 0!==N&&N,j=r(null),C=r(null),I=r(null);if(!u()&&window&&document&&(j.current=document.querySelector("body")),!u()&&window&&document){var L=document.getElementById("drawer-parent");C.current=L||function(){if(!u()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()}t((function(){var e;null===(e=null==j?void 0:j.current)||void 0===e||e.appendChild(null==C?void 0:C.current);var n=null==C?void 0:C.current,o=null==j?void 0:j.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),t((function(){j&&j.current&&(j.current.style.overflow=x?"hidden":"unset")}),[x]);var E=function(e,n){var o=i(!1),d=o[0],r=o[1];return t((function(){var o;return e&&!d?r(!0):!e&&d&&(o=setTimeout((function(){return r(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(x,500);return E||x?n(o,{children:_.createPortal(d("div",e({"aria-hidden":x?"false":"true",className:l(m.modal__container,(s={},s[m.open]=x,s[m["transition-end"]]=E,s)),onClick:function(e){var n;k&&I.current&&(null===(n=I.current)||void 0===n?void 0:n.contains(e.target))&&f()}},{children:[d("div",e({className:l(m.modal,m[y]),role:"dialog"},{children:[w&&n("div",e({className:m["drawer-header"]},{children:n("button",e({className:m["drawer-close-btn__container"],onClick:function(e){f(e),p()}},{children:n(a,{className:m["close-icon"],crossColor:"#1A1A1A"})}))})),v]})),A&&n("div",{"aria-hidden":x?"false":"true",className:"".concat(m.overlay),ref:I})]})),null==C?void 0:C.current)}):null};export{c as Drawer};
1
+ import{__assign as e}from"tslib";import{jsx as n,Fragment as o,jsxs as d}from"react/jsx-runtime";import{useState as i,useEffect as t,useRef as r}from"react";import _ from"react-dom";import l from"classnames";import{Cross as a}from"@cleartrip/ct-design-icons";import{isServer as u}from"@cleartrip/ct-platform-utils";var m={modal__container:"index-module_modal__container__srA-N",modal:"index-module_modal__3imuM",left:"index-module_left__jAupb",right:"index-module_right__n7i2S",top:"index-module_top__3q-P0",bottom:"index-module_bottom__I5s6E",overlay:"index-module_overlay__-8Le1","transition-end":"index-module_transition-end__ydkLj",open:"index-module_open__30JoF","drawer-header":"index-module_drawer-header__IGV4R","drawer-close-btn__container":"index-module_drawer-close-btn__container__a0chH","close-icon":"index-module_close-icon__G49OX"};!function(e,n){void 0===n&&(n={});var o=n.insertAt;if("undefined"!=typeof document){var d=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&d.firstChild?d.insertBefore(i,d.firstChild):d.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;justify-content:flex-end;overflow:auto;position:fixed;transition:transform .3s ease;width:auto;z-index:1000}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_left__jAupb{left:0;top:0;transform:translateX(-105%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_right__n7i2S{right:0;top:0;transform:translateX(100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_top__3q-P0{left:0;right:0;top:0;transform:translateY(-100%)}.index-module_modal__container__srA-N .index-module_modal__3imuM.index-module_bottom__I5s6E{bottom:0;left:0;right:0;transform:translateY(100%)}.index-module_modal__container__srA-N .index-module_overlay__-8Le1{background:rgba(0,0,0,.5);height:100%;left:0;opacity:0;pointer-events:none;position:fixed;top:0;transition:opacity .3s ease,visibility .3s ease;visibility:hidden;width:100%;z-index:999}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_left__jAupb,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_right__n7i2S{transform:translateX(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_bottom__I5s6E,.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_top__3q-P0{transform:translateY(0)}.index-module_modal__container__srA-N.index-module_transition-end__ydkLj.index-module_open__30JoF .index-module_overlay__-8Le1{opacity:1;pointer-events:auto;visibility:visible;z-index:999}.index-module_drawer-header__IGV4R{align-items:center;background-color:transparent;display:flex;justify-content:flex-end;padding:12px 16px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH{align-items:center;background:#fff;border:none;border-radius:40px;cursor:pointer;display:flex;justify-content:center;outline:none;padding:4px}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH:hover{background:#fff}.index-module_drawer-header__IGV4R .index-module_drawer-close-btn__container__a0chH .index-module_close-icon__G49OX{height:24px;width:24px}");var c=function(c){var s,x=c.isOpen,f=c.handleClose,p=c.onClose,v=c.children,h=c.direction,y=void 0===h?"left":h,b=c.showClose,w=void 0!==b&&b,g=c.overlay,A=void 0===g||g,N=c.closeOnOutsideClick,k=void 0!==N&&N,j=r(null),C=r(null),I=r(null);if(!u()&&window&&document&&(j.current=document.querySelector("body")),!u()&&window&&document){var L=document.getElementById("drawer-parent");C.current=L||function(){if(!u()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()}t((function(){var e;null===(e=null==j?void 0:j.current)||void 0===e||e.appendChild(null==C?void 0:C.current);var n=null==C?void 0:C.current,o=null==j?void 0:j.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),t((function(){j&&j.current&&(j.current.style.overflow=x?"hidden":"unset")}),[x]);var E=function(e,n){var o=i(!1),d=o[0],r=o[1];return t((function(){var o;return e&&!d?r(!0):!e&&d&&(o=setTimeout((function(){return r(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(x,500);return E||x?n(o,{children:_.createPortal(d("div",e({"aria-hidden":x?"false":"true",className:l(m.modal__container,(s={},s[m.open]=x,s[m["transition-end"]]=E,s)),onClick:function(e){var n;k&&I.current&&(null===(n=I.current)||void 0===n?void 0:n.contains(e.target))&&f()}},{children:[d("div",e({className:l(m.modal,m[y]),role:"dialog"},{children:[w&&n("div",e({className:m["drawer-header"]},{children:n("button",e({className:m["drawer-close-btn__container"],onClick:function(e){f(e),p()}},{children:n(a,{className:m["close-icon"],crossColor:"#1A1A1A"})}))})),v]})),A&&n("div",{"aria-hidden":x?"false":"true",className:"".concat(m.overlay),ref:I})]})),null==C?void 0:C.current)}):null};export{c as Drawer};
2
2
  //# sourceMappingURL=ct-platform-drawer.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ct-platform-drawer.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Drawer/src/useMountTransition.tsx","../packages/components/Drawer/src/Drawer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Drawer","_a","isOpen","handleClose","onClose","children","_c","direction","_d","showClose","_e","overlay","_f","closeOnOutsideClick","bodyRef","useRef","portalParentRef","modalRef","isServer","window","current","querySelector","parentElement","getElementById","drawerParent","setAttribute","createPortalParent","useEffect","portal","bodyEl","remove","overflow","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","__assign","className","classnames","Styles","_b","onClick","event","contains","target","role","evt","Cross","crossColor","concat"],"mappings":"g1BAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAK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AhDH,EAAe/B,EAAA,GAAEmC,EAAkBnC,EAAA,GAkB1C,OAhBA0B,GAAU,WACN,IAAIU,EAUJ,OARIJ,IAAcD,EACdI,GAAmB,IACXH,GAAaD,IACrBK,EAAYC,YACR,WAAM,OAAAF,GAAmB,EAAnB,GACNF,IAGD,WACHK,aAAaF,EACjB,CACH,GAAE,CAACH,EAAcD,EAAWD,IAEtBA,CACX,CC+D4BQ,CAAmBtC,EAAQ,KACnD,OAAK8B,GAAoB9B,EAKrBuC,EACKC,EAAA,CAAArC,SAAAsC,EAASC,aACNC,EACiB,MAAAC,EAAA,CAAA,cAAA5C,EAAS,QAAU,OAChC6C,UAAWC,EAAWC,EAAyB,kBAACC,EAAA,CAAA,EAC5CA,EAACD,EAAa,MAAI/C,EAClBgD,EAACD,EAAO,mBAAoBjB,MAEhCmB,QAAS,SAACC,SAEFvC,GACAI,EAASG,UACS,QAAlBnB,EAAAgB,EAASG,eAAS,IAAAnB,OAAA,EAAAA,EAAAoD,SAASD,EAAME,UAEjCnD,GAER,cAEA0C,EACI,MAAAC,EAAA,CAAAC,UAAWC,EACPC,EAAc,MACdA,EAAO1C,IAEXgD,KAAK,UAAQ,CAAAlD,SAAA,CAEZI,GACGgC,WAAKM,UAAWE,EAAO,kBACnB,CAAA5C,SAAAoC,EAAA,SAAAK,EAAA,CACIC,UACIE,EAAO,+BAEXE,QAAS,SAACK,GACNrD,EAAYqD,GACZpD,GACH,GAED,CAAAC,SAAAoC,EAACgB,EAAK,CACFV,UAAWE,EAAO,cAClBS,WAAW,kBAK1BrD,MAEJM,GACG8B,EAAA,MAAA,CAAA,cACiBvC,EAAS,QAAU,OAChC6C,UAAW,GAAAY,OAAGV,EAAgB,SAC9B/D,IAAK+B,QAIjBD,aAAA,EAAAA,EAAiBI,WAzDlB,IA6Df","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ct-platform-drawer.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/Drawer/src/useMountTransition.tsx","../packages/components/Drawer/src/Drawer.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n",null,null],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","Drawer","_a","isOpen","handleClose","onClose","children","_c","direction","_d","showClose","_e","overlay","_f","closeOnOutsideClick","bodyRef","useRef","portalParentRef","modalRef","isServer","window","current","querySelector","parentElement","getElementById","drawerParent","setAttribute","createPortalParent","useEffect","portal","bodyEl","remove","overflow","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","__assign","className","classnames","Styles","_b","onClick","event","contains","target","role","evt","Cross","crossColor","concat"],"mappings":"g1BAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,m1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dI,GAAmB,IACXH,GAAaD,IACrBK,EAAYC,YACR,WAAM,OAAAF,GAAmB,EAAnB,GACNF,IAGD,WACHK,aAAaF,EACjB,CACH,GAAE,CAACH,EAAcD,EAAWD,IAEtBA,CACX,CC+D4BQ,CAAmBtC,EAAQ,KACnD,OAAK8B,GAAoB9B,EAKrBuC,EACKC,EAAA,CAAArC,SAAAsC,EAASC,aACNC,EACiB,MAAAC,EAAA,CAAA,cAAA5C,EAAS,QAAU,OAChC6C,UAAWC,EAAWC,EAAyB,kBAACC,EAAA,CAAA,EAC5CA,EAACD,EAAa,MAAI/C,EAClBgD,EAACD,EAAO,mBAAoBjB,MAEhCmB,QAAS,SAACC,SAEFvC,GACAI,EAASG,UACS,QAAlBnB,EAAAgB,EAASG,eAAS,IAAAnB,OAAA,EAAAA,EAAAoD,SAASD,EAAME,UAEjCnD,GAER,cAEA0C,EACI,MAAAC,EAAA,CAAAC,UAAWC,EACPC,EAAc,MACdA,EAAO1C,IAEXgD,KAAK,UAAQ,CAAAlD,SAAA,CAEZI,GACGgC,WAAKM,UAAWE,EAAO,kBACnB,CAAA5C,SAAAoC,EAAA,SAAAK,EAAA,CACIC,UACIE,EAAO,+BAEXE,QAAS,SAACK,GACNrD,EAAYqD,GACZpD,GACH,GAED,CAAAC,SAAAoC,EAACgB,EAAK,CACFV,UAAWE,EAAO,cAClBS,WAAW,kBAK1BrD,MAEJM,GACG8B,EAAA,MAAA,CAAA,cACiBvC,EAAS,QAAU,OAChC6C,UAAW,GAAAY,OAAGV,EAAgB,SAC9B/D,IAAK+B,QAIjBD,aAAA,EAAAA,EAAiBI,WAzDlB,IA6Df","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-drawer",
3
- "version": "2.7.0",
3
+ "version": "3.0.0-beta.2",
4
4
  "description": "Drawer Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-drawer.cjs.js",
@@ -12,8 +12,7 @@
12
12
  "dependencies": {
13
13
  "@cleartrip/ct-design-icons": "7.0.0",
14
14
  "classnames": "^2.5.1",
15
- "styled-components": "^5.3.11",
16
- "@cleartrip/ct-platform-utils": "2.4.1"
15
+ "@cleartrip/ct-platform-utils": "3.0.0-beta.1"
17
16
  },
18
17
  "peerDependencies": {
19
18
  "react": ">=16.8.0",