@cleartrip/ct-platform-drawer 2.3.0 → 2.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../packages/components/Drawer/src/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqB7C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0HjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../packages/components/Drawer/src/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAqB7C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsHjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react-dom"),d=require("classnames"),t=require("react"),i=require("@cleartrip/ct-design-icons"),r=require("@cleartrip/ct-platform-utils");function _(e){return e&&e.__esModule?e:{default:e}}var l=_(o),a=_(d);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],t=document.createElement("style");t.type="text/css","top"===o&&d.firstChild?d.insertBefore(t,d.firstChild):d.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;height:100%;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:0}.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(o){var d,_=o.isOpen,s=o.handleClose,c=o.onClose,m=o.children,x=o.direction,f=void 0===x?"left":x,p=o.showClose,h=void 0!==p&&p,v=o.overlay,y=void 0===v||v,w=t.useRef(null);!r.isServer()&&window&&document&&(w=t.useRef(document.querySelector("body")));var b=t.useRef(null);!r.isServer()&&window&&document&&(b=t.useRef(document.getElementById("drawer-parent")||function(){if(!r.isServer()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()));var g=function(e,n){var o=t.useState(!1),d=o[0],i=o[1];return t.useEffect((function(){var o;return e&&!d?i(!0):!e&&d&&(o=setTimeout((function(){return i(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(_,500);return t.useEffect((function(){var e;null===(e=null==w?void 0:w.current)||void 0===e||e.appendChild(null==b?void 0:b.current);var n=null==b?void 0:b.current,o=null==w?void 0:w.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),t.useEffect((function(){w&&w.current&&(_?(w.current.style.overflow="hidden",w.current.style.position="fixed",w.current.style.width="100%"):(w.current.style.overflow="unset",w.current.style.position="unset",w.current.style.width="unset"))}),[_]),g||_?n.jsx(n.Fragment,{children:l.default.createPortal(n.jsx("div",{children:n.jsxs("div",e.__assign({"aria-hidden":_?"false":"true",className:a.default(u.modal__container,(d={},d[u.open]=_,d[u["transition-end"]]=g,d))},{children:[n.jsxs("div",e.__assign({className:a.default(u.modal,u[f]),role:"dialog"},{children:[h&&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(i.Cross,{className:u["close-icon"],crossColor:"#1A1A1A"})}))})),m]})),y&&n.jsx("div",{className:"".concat(u.overlay),onClick:function(e){s(e),c()}})]}))}),null==b?void 0:b.current)}):null};
1
+ "use strict";var e=require("tslib"),n=require("react/jsx-runtime"),o=require("react-dom"),d=require("classnames"),i=require("react"),t=require("@cleartrip/ct-design-icons"),r=require("@cleartrip/ct-platform-utils");function _(e){return e&&e.__esModule?e:{default:e}}var l=_(o),a=_(d);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;height:100%;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(o){var d,_=o.isOpen,s=o.handleClose,m=o.onClose,c=o.children,x=o.direction,f=void 0===x?"left":x,p=o.showClose,h=void 0!==p&&p,v=o.overlay,y=void 0===v||v,w=i.useRef(null);!r.isServer()&&window&&document&&(w=i.useRef(document.querySelector("body")));var b=i.useRef(null);!r.isServer()&&window&&document&&(b=i.useRef(document.getElementById("drawer-parent")||function(){if(!r.isServer()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()));var g=function(e,n){var o=i.useState(!1),d=o[0],t=o[1];return i.useEffect((function(){var o;return e&&!d?t(!0):!e&&d&&(o=setTimeout((function(){return t(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(_,500);return i.useEffect((function(){var e;null===(e=null==w?void 0:w.current)||void 0===e||e.appendChild(null==b?void 0:b.current);var n=null==b?void 0:b.current,o=null==w?void 0:w.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),i.useEffect((function(){w&&w.current&&(w.current.style.overflow=_?"hidden":"unset")}),[_]),g||_?n.jsx(n.Fragment,{children:l.default.createPortal(n.jsx("div",{children:n.jsxs("div",e.__assign({"aria-hidden":_?"false":"true",className:a.default(u.modal__container,(d={},d[u.open]=_,d[u["transition-end"]]=g,d))},{children:[n.jsxs("div",e.__assign({className:a.default(u.modal,u[f]),role:"dialog"},{children:[h&&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),m()}},{children:n.jsx(t.Cross,{className:u["close-icon"],crossColor:"#1A1A1A"})}))})),c]})),y&&n.jsx("div",{className:"".concat(u.overlay),onClick:function(e){s(e),m()}})]}))}),null==b?void 0:b.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","bodyRef","useRef","isServer","window","querySelector","portalParentRef","getElementById","drawerParent","setAttribute","createPortalParent","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","useEffect","timeoutId","setTimeout","clearTimeout","useMountTransition","current","portal","bodyEl","remove","overflow","position","width","_jsx","_Fragment","ReactDOM","default","createPortal","_jsxs","__assign","className","classnames","Styles","_b","role","onClick","evt","jsx","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,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,42ECGsC,SAACe,SACnCC,EAAMD,EAAAC,OACNC,EAAWF,EAAAE,YACXC,EAAOH,EAAAG,QACPC,EAAQJ,EAAAI,SACRC,EAAAL,EAAAM,UAAAA,OAAS,IAAAD,EAAG,OAAMA,EAClBE,EAAAP,EAAAQ,UAAAA,OAAY,IAAAD,GAAKA,EACjBE,EAAcT,EAAAU,QAAdA,OAAO,IAAAD,GAAOA,EAEVE,EAAUC,SAA+B,OACxCC,EAAQA,YAAMC,QAAU1B,WACzBuB,EAAUC,EAAAA,OAAOxB,SAAS2B,cAAc,UAQ5C,IAAIC,EAAkBJ,SAA2B,OAC5CC,EAAQA,YAAMC,QAAU1B,WACzB4B,EAAkBJ,EAAMA,OACpBxB,SAAS6B,eAAe,kBAjCT,WACvB,IAAKJ,EAAQA,YAAMC,QAAU1B,SAAU,CACnC,IAAM8B,EAAe9B,SAASI,cAAc,OAG5C,OAF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EAAyB,kBAACC,EAAA,CAAA,EAC5CA,EAACD,EAAa,MAAI9C,EAClB+C,EAACD,EAAO,mBAAoB1B,EAC9B2B,KAAA,CAAA5C,SAAA,CAEFuC,yBACIE,UAAWC,EAAAA,QACPC,EAAc,MACdA,EAAOzC,IAEX2C,KAAK,UAEJ,CAAA7C,SAAA,CAAAI,GACG8B,wBAAKO,UAAWE,EAAO,kBACnB,CAAA3C,SAAAkC,EAAAA,IAAA,SAAAM,EAAAA,SAAA,CACIC,UACIE,EACI,+BAGRG,QAAS,SAACC,GACNjD,EAAYiD,GACZhD,GACH,aAEDmC,EAACc,IAAAC,EAAKA,MACF,CAAAR,UAAWE,EAAO,cAClBO,WAAW,kBAK1BlD,MAEJM,GACG4B,EAAAA,IAAA,MAAA,CACIO,UAAW,GAAAU,OAAGR,EAAgB,SAC9BG,QAAS,SAACC,GACNjD,EAAYiD,GACZhD,GACJ,UAKhBa,aAAe,EAAfA,EAAiBe,WAtDlB,IA0Df","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","bodyRef","useRef","isServer","window","querySelector","portalParentRef","getElementById","drawerParent","setAttribute","createPortalParent","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","useEffect","timeoutId","setTimeout","clearTimeout","useMountTransition","current","portal","bodyEl","remove","overflow","_jsx","_Fragment","ReactDOM","default","createPortal","_jsxs","__assign","className","classnames","Styles","_b","role","onClick","evt","jsx","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,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,82ECGsC,SAACe,SACnCC,EAAMD,EAAAC,OACNC,EAAWF,EAAAE,YACXC,EAAOH,EAAAG,QACPC,EAAQJ,EAAAI,SACRC,EAAAL,EAAAM,UAAAA,OAAS,IAAAD,EAAG,OAAMA,EAClBE,EAAAP,EAAAQ,UAAAA,OAAY,IAAAD,GAAKA,EACjBE,EAAcT,EAAAU,QAAdA,OAAO,IAAAD,GAAOA,EAEVE,EAAUC,SAA+B,OACxCC,EAAQA,YAAMC,QAAU1B,WACzBuB,EAAUC,EAAAA,OAAOxB,SAAS2B,cAAc,UAQ5C,IAAIC,EAAkBJ,SAA2B,OAC5CC,EAAQA,YAAMC,QAAU1B,WACzB4B,EAAkBJ,EAAMA,OACpBxB,SAAS6B,eAAe,kBAjCT,WACvB,IAAKJ,EAAQA,YAAMC,QAAU1B,SAAU,CACnC,IAAM8B,EAAe9B,SAASI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EXyC,KAAK,UAEJ,CAAA3C,SAAA,CAAAI,GACG4B,wBAAKO,UAAWE,EAAO,kBACnB,CAAAzC,SAAAgC,EAAAA,IAAA,SAAAM,EAAAA,SAAA,CACIC,UACIE,EACI,+BAGRG,QAAS,SAACC,GACN/C,EAAY+C,GACZ9C,GACH,aAEDiC,EAACc,IAAAC,EAAKA,MACF,CAAAR,UAAWE,EAAO,cAClBO,WAAW,kBAK1BhD,MAEJM,GACG0B,EAAAA,IAAA,MAAA,CACIO,UAAW,GAAAU,OAAGR,EAAgB,SAC9BG,QAAS,SAACC,GACN/C,EAAY+C,GACZ9C,GACJ,UAKhBa,aAAe,EAAfA,EAAiBe,WAtDlB,IA0Df","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 t from"react-dom";import i from"classnames";import{useState as r,useEffect as _,useRef as l}from"react";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],t=document.createElement("style");t.type="text/css","top"===o&&d.firstChild?d.insertBefore(t,d.firstChild):d.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}}(".index-module_modal__container__srA-N .index-module_modal__3imuM{-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;height:100%;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:0}.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,h=c.children,v=c.direction,y=void 0===v?"left":v,w=c.showClose,b=void 0!==w&&w,g=c.overlay,A=void 0===g||g,N=l(null);!u()&&window&&document&&(N=l(document.querySelector("body")));var j=l(null);!u()&&window&&document&&(j=l(document.getElementById("drawer-parent")||function(){if(!u()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()));var k=function(e,n){var o=r(!1),d=o[0],t=o[1];return _((function(){var o;return e&&!d?t(!0):!e&&d&&(o=setTimeout((function(){return t(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(x,500);return _((function(){var e;null===(e=null==N?void 0:N.current)||void 0===e||e.appendChild(null==j?void 0:j.current);var n=null==j?void 0:j.current,o=null==N?void 0:N.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),_((function(){N&&N.current&&(x?(N.current.style.overflow="hidden",N.current.style.position="fixed",N.current.style.width="100%"):(N.current.style.overflow="unset",N.current.style.position="unset",N.current.style.width="unset"))}),[x]),k||x?n(o,{children:t.createPortal(n("div",{children:d("div",e({"aria-hidden":x?"false":"true",className:i(m.modal__container,(s={},s[m.open]=x,s[m["transition-end"]]=k,s))},{children:[d("div",e({className:i(m.modal,m[y]),role:"dialog"},{children:[b&&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"})}))})),h]})),A&&n("div",{className:"".concat(m.overlay),onClick:function(e){f(e),p()}})]}))}),null==j?void 0:j.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 i from"react-dom";import t from"classnames";import{useState as r,useEffect as _,useRef as l}from"react";import{Cross as a}from"@cleartrip/ct-design-icons";import{isServer as m}from"@cleartrip/ct-platform-utils";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;height:100%;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,h=c.children,v=c.direction,y=void 0===v?"left":v,b=c.showClose,w=void 0!==b&&b,g=c.overlay,A=void 0===g||g,N=l(null);!m()&&window&&document&&(N=l(document.querySelector("body")));var j=l(null);!m()&&window&&document&&(j=l(document.getElementById("drawer-parent")||function(){if(!m()&&window&&document){var e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null}()));var k=function(e,n){var o=r(!1),d=o[0],i=o[1];return _((function(){var o;return e&&!d?i(!0):!e&&d&&(o=setTimeout((function(){return i(!1)}),n)),function(){clearTimeout(o)}}),[n,e,d]),d}(x,500);return _((function(){var e;null===(e=null==N?void 0:N.current)||void 0===e||e.appendChild(null==j?void 0:j.current);var n=null==j?void 0:j.current,o=null==N?void 0:N.current;return function(){null==n||n.remove(),o&&(o.style.overflow="")}}),[]),_((function(){N&&N.current&&(N.current.style.overflow=x?"hidden":"unset")}),[x]),k||x?n(o,{children:i.createPortal(n("div",{children:d("div",e({"aria-hidden":x?"false":"true",className:t(u.modal__container,(s={},s[u.open]=x,s[u["transition-end"]]=k,s))},{children:[d("div",e({className:t(u.modal,u[y]),role:"dialog"},{children:[w&&n("div",e({className:u["drawer-header"]},{children:n("button",e({className:u["drawer-close-btn__container"],onClick:function(e){f(e),p()}},{children:n(a,{className:u["close-icon"],crossColor:"#1A1A1A"})}))})),h]})),A&&n("div",{className:"".concat(u.overlay),onClick:function(e){f(e),p()}})]}))}),null==j?void 0:j.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","bodyRef","useRef","isServer","window","querySelector","portalParentRef","getElementById","drawerParent","setAttribute","createPortalParent","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","useEffect","timeoutId","setTimeout","clearTimeout","useMountTransition","current","portal","bodyEl","remove","overflow","position","width","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","__assign","className","classnames","Styles","_b","role","onClick","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,SACn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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","bodyRef","useRef","isServer","window","querySelector","portalParentRef","getElementById","drawerParent","setAttribute","createPortalParent","isTransitioning","isMounted","unmountDelay","useState","setIsTransitioning","useEffect","timeoutId","setTimeout","clearTimeout","useMountTransition","current","portal","bodyEl","remove","overflow","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","__assign","className","classnames","Styles","_b","role","onClick","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,EAAKO,YAAYL,GAGfA,EAAMM,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,OAAO,WAEHC,SAAAA,EAAQE,SAEJD,IACAA,EAAO3C,MAAM6C,SAAW,GAEhC,CACH,GAAE,IAGHT,GAAU,WAEEf,GAAWA,EAAQoB,UAEfpB,EAAQoB,QAAQzC,MAAM6C,SADtBlC,EACiC,SAEA,QAMjD,GAAG,CAACA,IAECoB,GAAoBpB,EAKrBmC,EACKC,EAAA,CAAAjC,SAAAkC,EAASC,aACNH,EACI,MAAA,CAAAhC,SAAAoC,EAAA,MAAAC,EAAA,CAAA,cACiBxC,EAAS,QAAU,OAChCyC,UAAWC,EAAWC,EAAyB,kBAACC,EAAA,CAAA,EAC5CA,EAACD,EAAa,MAAI3C,EAClB4C,EAACD,EAAO,mBAAoBvB,EAC9BwB,KAAA,CAAAzC,SAAA,CAEFoC,WACIE,UAAWC,EACPC,EAAc,MACdA,EAAOtC,IAEXwC,KAAK,UAEJ,CAAA1C,SAAA,CAAAI,GACG4B,WAAKM,UAAWE,EAAO,kBACnB,CAAAxC,SAAAgC,EAAA,SAAAK,EAAA,CACIC,UACIE,EACI,+BAGRG,QAAS,SAACC,GACN9C,EAAY8C,GACZ7C,GACH,aAEDiC,EAACa,EACG,CAAAP,UAAWE,EAAO,cAClBM,WAAW,kBAK1B9C,MAEJM,GACG0B,EAAA,MAAA,CACIM,UAAW,GAAAS,OAAGP,EAAgB,SAC9BG,QAAS,SAACC,GACN9C,EAAY8C,GACZ7C,GACJ,UAKhBa,aAAe,EAAfA,EAAiBe,WAtDlB,IA0Df","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleartrip/ct-platform-drawer",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Drawer Component",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/ct-platform-drawer.cjs.js",
@@ -13,7 +13,7 @@
13
13
  "@cleartrip/ct-design-icons": "7.0.0",
14
14
  "classnames": "^2.5.1",
15
15
  "styled-components": "^5.3.11",
16
- "@cleartrip/ct-platform-utils": "2.3.0"
16
+ "@cleartrip/ct-platform-utils": "2.2.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",