@cleartrip/ct-platform-drawer 4.3.33 → 6.0.1-beta.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/Drawer.d.ts.map
CHANGED
|
@@ -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;AAOjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../packages/components/Drawer/src/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAoB7C,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6IjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react-dom"),n=require("react"),r=require("@cleartrip/ct-design-icons"),o=require("@cleartrip/ct-platform-utils"),i=require("@cleartrip/ct-design-style-manager"),a=require("@cleartrip/ct-design-components");function l(e){return e&&e.__esModule?e:{default:e}}var s=l(t);const d=i.makeWebStyles((()=>({"modal__container .modal":{width:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",position:"fixed",transition:"transform 0.3s ease",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end"},"modal__container .modal.left":{top:0,left:0,transform:"translateX(-105%)"},"modal__container .modal.right":{top:0,right:0,transform:"translateX(100%)"},"modal__container .modal.top":{top:0,left:0,right:0,transform:"translateY(-100%)"},"modal__container .modal.bottom":{bottom:0,left:0,right:0,transform:"translateY(100%)"},"modal__container .overlay":{visibility:"hidden",opacity:0,background:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.3s ease, visibility 0.3s ease",width:"100%",height:"100%",top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:999},"modal__container.transition-end.open .left, .modal__container.transition-end.open .right":{transform:"translateX(0)"},"modal__container.transition-end.open .top, .modal__container.transition-end.open .bottom":{transform:"translateY(0)"},"modal__container.transition-end.open .overlay":{visibility:"visible",opacity:1,pointerEvents:"auto",zIndex:999},"drawer-header":{paddingTop:12,paddingRight:16,paddingBottom:12,paddingLeft:16,display:"flex",alignItems:"center",justifyContent:"flex-end",backgroundColor:"transparent","& .drawer-close-btn__container":{padding:4,borderRadius:40,background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",outline:"none",border:"none",cursor:"pointer"},"& .drawer-close-btn__container:hover":{background:"#fff"},"& .drawer-close-btn__container .close-icon":{width:24,height:24}},modal:{width:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",position:"fixed",transition:"transform 0.3s ease",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end"},overlay:{visibility:"hidden",opacity:0,background:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.3s ease, visibility 0.3s ease",width:"100%",height:"100%",top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:999}})));exports.Drawer=({isOpen:t,handleClose:i,onClose:l,children:c,direction:u="left",showClose:f=!1,overlay:m=!0,closeOnOutsideClick:p=!1})=>{const v=n.useRef(null),h=n.useRef(null),g=n.useRef(null),y=n.useRef(null);if(!o.isServer()&&window&&document&&(h.current=document.querySelector("body"),g.current=document.querySelector("#root, #__next")),!o.isServer()&&window&&document){const e=document.getElementById("drawer-parent");y.current=e||(()=>{if(!o.isServer()&&window&&document){const e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null})()}n.useEffect((()=>{var e;null===(e=null==h?void 0:h.current)||void 0===e||e.appendChild(null==y?void 0:y.current);const t=null==y?void 0:y.current,n=null==h?void 0:h.current;return()=>{null==t||t.remove(),n&&(n.style.overflow="")}}),[]),n.useEffect((()=>{h&&h.current&&(t?(h.current.style.overflow="hidden",(null==g?void 0:g.current)&&(g.current.style.overflow="hidden",g.current.style.height=window.innerHeight+"px")):(h.current.style.overflow="unset",(null==g?void 0:g.current)&&(g.current.style.overflow="unset",g.current.style.height="unset")))}),[t]);const _=((e,t)=>{const[r,o]=n.useState(!1);return n.useEffect((()=>{let n;return e&&!r?o(!0):!e&&r&&(n=setTimeout((()=>o(!1)),t)),()=>{clearTimeout(n)}}),[t,e,r]),r})(t,500);return _||t?e.jsx(e.Fragment,{children:s.default.createPortal(e.jsxs(a.Container,{as:"div","aria-hidden":t?"false":"true",onClick:e=>{var t;p&&v.current&&(null===(t=v.current)||void 0===t?void 0:t.contains(e.target))&&i()},styleConfig:{root:[d.modal__container,{[d.open]:t,[d["transition-end"]]:_}]},children:[e.jsxs(a.Container,{as:"div","aria-role":"dialog",styleConfig:{root:[d.modal,d[u]]},children:[f&&e.jsx(a.Container,{as:"div",styleConfig:{root:[d["drawer-header"]]},children:e.jsx("button",{className:d["drawer-close-btn__container"],onClick:e=>{i(e),l()},children:e.jsx(r.Cross,{className:d["close-icon"],crossColor:"#1A1A1A"})})}),c]}),m&&e.jsx(a.Container,{as:"div","aria-hidden":t?"false":"true",ref:v,styleConfig:{root:[d.overlay]}})]}),null==y?void 0:y.current)}):null};
|
|
2
2
|
//# sourceMappingURL=ct-platform-drawer.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-drawer.cjs.js","sources":["
|
|
1
|
+
{"version":3,"file":"ct-platform-drawer.cjs.js","sources":["../packages/components/Drawer/src/index.module.ts","../packages/components/Drawer/src/Drawer.tsx","../packages/components/Drawer/src/useMountTransition.tsx"],"sourcesContent":[null,null,null],"names":["styles","makeWebStyles","width","overflow","WebkitOverflowScrolling","position","transition","zIndex","display","flexDirection","justifyContent","top","left","transform","right","bottom","visibility","opacity","background","height","pointerEvents","paddingTop","paddingRight","paddingBottom","paddingLeft","alignItems","backgroundColor","padding","borderRadius","outline","border","cursor","modal","overlay","isOpen","handleClose","onClose","children","direction","showClose","closeOnOutsideClick","modalRef","useRef","bodyRef","innerDiv","portalParentRef","isServer","window","document","current","querySelector","parentElement","getElementById","drawerParent","createElement","setAttribute","createPortalParent","useEffect","_a","appendChild","portal","bodyEl","remove","style","innerHeight","isTransitioning","isMounted","unmountDelay","setIsTransitioning","useState","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","Container","as","onClick","event","contains","target","styleConfig","root","Styles","jsxs","jsx","className","evt","Cross","crossColor","ref"],"mappings":"uUAGA,MAAMA,EAASC,EAAaA,eAAC,KAAO,CAClC,0BAA2B,CACzBC,MAAO,OACPC,SAAU,OACVC,wBAAyB,QACzBC,SAAU,QACVC,WAAY,sBACZC,OAAQ,IACRC,QAAS,OACTC,cAAe,SACfC,eAAgB,YAGlB,+BAAgC,CAC9BC,IAAK,EACLC,KAAM,EACNC,UAAW,qBAGb,gCAAiC,CAC/BF,IAAK,EACLG,MAAO,EACPD,UAAW,oBAGb,8BAA+B,CAC7BF,IAAK,EACLC,KAAM,EACNE,MAAO,EACPD,UAAW,qBAGb,iCAAkC,CAChCE,OAAQ,EACRH,KAAM,EACNE,MAAO,EACPD,UAAW,oBAGb,4BAA6B,CAC3BG,WAAY,SACZC,QAAS,EACTC,WAAY,qBACZZ,WAAY,0CACZJ,MAAO,OACPiB,OAAQ,OACRR,IAAK,EACLC,KAAM,EACNP,SAAU,QACVe,cAAe,OACfb,OAAQ,KAGV,2FAA4F,CAC1FM,UAAW,iBAGb,2FAA4F,CAC1FA,UAAW,iBAGb,gDAAiD,CAC/CG,WAAY,UACZC,QAAS,EACTG,cAAe,OACfb,OAAQ,KAGV,gBAAiB,CACfc,WAAY,GACZC,aAAc,GACdC,cAAe,GACfC,YAAa,GACbhB,QAAS,OACTiB,WAAY,SACZf,eAAgB,WAChBgB,gBAAiB,cAEjB,iCAAkC,CAChCC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D,KAGdD,SAAA,CAAAE,GACGmC,EAACe,IAAAV,EAASA,UAAC,CAAAC,GAAG,MAAMK,YAAa,CAC7BC,KAAM,CAACC,EAAO,mBACjBlD,SACGqC,MACI,SAAA,CAAAgB,UACIH,EAAO,+BAEXN,QAAUU,IACNxD,EAAYwD,GACZvD,GAAS,EACZC,SAEDqC,MAACkB,QAAK,CACFF,UAAWH,EAAO,cAClBM,WAAW,gBAK1BxD,KAEJJ,GACGyC,EAAAA,IAACK,EAAAA,UACG,CAAAC,GAAG,MAAK,cACK9C,EAAS,QAAU,OAChC4D,IAAKrD,EACL4C,YAAa,CACTC,KAAM,CAACC,EAAgB,eAIvC1C,aAAA,EAAAA,EAAiBI,WAlElB,IAqET"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,Fragment as t,jsxs as n}from"react/jsx-runtime";import o from"react-dom";import{useState as r,useEffect as i,useRef as l}from"react";import{Cross as a}from"@cleartrip/ct-design-icons";import{isServer as d}from"@cleartrip/ct-platform-utils";import{makeWebStyles as s}from"@cleartrip/ct-design-style-manager";import{Container as c}from"@cleartrip/ct-design-components";const u=s((()=>({"modal__container .modal":{width:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",position:"fixed",transition:"transform 0.3s ease",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end"},"modal__container .modal.left":{top:0,left:0,transform:"translateX(-105%)"},"modal__container .modal.right":{top:0,right:0,transform:"translateX(100%)"},"modal__container .modal.top":{top:0,left:0,right:0,transform:"translateY(-100%)"},"modal__container .modal.bottom":{bottom:0,left:0,right:0,transform:"translateY(100%)"},"modal__container .overlay":{visibility:"hidden",opacity:0,background:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.3s ease, visibility 0.3s ease",width:"100%",height:"100%",top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:999},"modal__container.transition-end.open .left, .modal__container.transition-end.open .right":{transform:"translateX(0)"},"modal__container.transition-end.open .top, .modal__container.transition-end.open .bottom":{transform:"translateY(0)"},"modal__container.transition-end.open .overlay":{visibility:"visible",opacity:1,pointerEvents:"auto",zIndex:999},"drawer-header":{paddingTop:12,paddingRight:16,paddingBottom:12,paddingLeft:16,display:"flex",alignItems:"center",justifyContent:"flex-end",backgroundColor:"transparent","& .drawer-close-btn__container":{padding:4,borderRadius:40,background:"#fff",display:"flex",alignItems:"center",justifyContent:"center",outline:"none",border:"none",cursor:"pointer"},"& .drawer-close-btn__container:hover":{background:"#fff"},"& .drawer-close-btn__container .close-icon":{width:24,height:24}},modal:{width:"auto",overflow:"auto",WebkitOverflowScrolling:"touch",position:"fixed",transition:"transform 0.3s ease",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"flex-end"},overlay:{visibility:"hidden",opacity:0,background:"rgba(0, 0, 0, 0.5)",transition:"opacity 0.3s ease, visibility 0.3s ease",width:"100%",height:"100%",top:0,left:0,position:"fixed",pointerEvents:"none",zIndex:999}}))),m=({isOpen:s,handleClose:m,onClose:f,children:p,direction:h="left",showClose:v=!1,overlay:g=!0,closeOnOutsideClick:y=!1})=>{const _=l(null),w=l(null),b=l(null),x=l(null);if(!d()&&window&&document&&(w.current=document.querySelector("body"),b.current=document.querySelector("#root, #__next")),!d()&&window&&document){const e=document.getElementById("drawer-parent");x.current=e||(()=>{if(!d()&&window&&document){const e=document.createElement("div");return e.setAttribute("id","drawer-parent"),e}return null})()}i((()=>{var e;null===(e=null==w?void 0:w.current)||void 0===e||e.appendChild(null==x?void 0:x.current);const t=null==x?void 0:x.current,n=null==w?void 0:w.current;return()=>{null==t||t.remove(),n&&(n.style.overflow="")}}),[]),i((()=>{w&&w.current&&(s?(w.current.style.overflow="hidden",(null==b?void 0:b.current)&&(b.current.style.overflow="hidden",b.current.style.height=window.innerHeight+"px")):(w.current.style.overflow="unset",(null==b?void 0:b.current)&&(b.current.style.overflow="unset",b.current.style.height="unset")))}),[s]);const C=((e,t)=>{const[n,o]=r(!1);return i((()=>{let r;return e&&!n?o(!0):!e&&n&&(r=setTimeout((()=>o(!1)),t)),()=>{clearTimeout(r)}}),[t,e,n]),n})(s,500);return C||s?e(t,{children:o.createPortal(n(c,{as:"div","aria-hidden":s?"false":"true",onClick:e=>{var t;y&&_.current&&(null===(t=_.current)||void 0===t?void 0:t.contains(e.target))&&m()},styleConfig:{root:[u.modal__container,{[u.open]:s,[u["transition-end"]]:C}]},children:[n(c,{as:"div","aria-role":"dialog",styleConfig:{root:[u.modal,u[h]]},children:[v&&e(c,{as:"div",styleConfig:{root:[u["drawer-header"]]},children:e("button",{className:u["drawer-close-btn__container"],onClick:e=>{m(e),f()},children:e(a,{className:u["close-icon"],crossColor:"#1A1A1A"})})}),p]}),g&&e(c,{as:"div","aria-hidden":s?"false":"true",ref:_,styleConfig:{root:[u.overlay]}})]}),null==x?void 0:x.current)}):null};export{m as Drawer};
|
|
2
2
|
//# sourceMappingURL=ct-platform-drawer.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-drawer.esm.js","sources":["
|
|
1
|
+
{"version":3,"file":"ct-platform-drawer.esm.js","sources":["../packages/components/Drawer/src/index.module.ts","../packages/components/Drawer/src/Drawer.tsx","../packages/components/Drawer/src/useMountTransition.tsx"],"sourcesContent":[null,null,null],"names":["styles","makeWebStyles","width","overflow","WebkitOverflowScrolling","position","transition","zIndex","display","flexDirection","justifyContent","top","left","transform","right","bottom","visibility","opacity","background","height","pointerEvents","paddingTop","paddingRight","paddingBottom","paddingLeft","alignItems","backgroundColor","padding","borderRadius","outline","border","cursor","modal","overlay","Drawer","isOpen","handleClose","onClose","children","direction","showClose","closeOnOutsideClick","modalRef","useRef","bodyRef","innerDiv","portalParentRef","isServer","window","document","current","querySelector","parentElement","getElementById","drawerParent","createElement","setAttribute","createPortalParent","useEffect","_a","appendChild","portal","bodyEl","remove","style","innerHeight","isTransitioning","isMounted","unmountDelay","setIsTransitioning","useState","timeoutId","setTimeout","clearTimeout","useMountTransition","_jsx","_Fragment","ReactDOM","createPortal","_jsxs","Container","as","onClick","event","contains","target","styleConfig","root","Styles","className","evt","Cross","crossColor","ref"],"mappings":"+XAGA,MAAMA,EAASC,GAAc,KAAO,CAClC,0BAA2B,CACzBC,MAAO,OACPC,SAAU,OACVC,wBAAyB,QACzBC,SAAU,QACVC,WAAY,sBACZC,OAAQ,IACRC,QAAS,OACTC,cAAe,SACfC,eAAgB,YAGlB,+BAAgC,CAC9BC,IAAK,EACLC,KAAM,EACNC,UAAW,qBAGb,gCAAiC,CAC/BF,IAAK,EACLG,MAAO,EACPD,UAAW,oBAGb,8BAA+B,CAC7BF,IAAK,EACLC,KAAM,EACNE,MAAO,EACPD,UAAW,qBAGb,iCAAkC,CAChCE,OAAQ,EACRH,KAAM,EACNE,MAAO,EACPD,UAAW,oBAGb,4BAA6B,CAC3BG,WAAY,SACZC,QAAS,EACTC,WAAY,qBACZZ,WAAY,0CACZJ,MAAO,OACPiB,OAAQ,OACRR,IAAK,EACLC,KAAM,EACNP,SAAU,QACVe,cAAe,OACfb,OAAQ,KAGV,2FAA4F,CAC1FM,UAAW,iBAGb,2FAA4F,CAC1FA,UAAW,iBAGb,gDAAiD,CAC/CG,WAAY,UACZC,QAAS,EACTG,cAAe,OACfb,OAAQ,KAGV,gBAAiB,CACfc,WAAY,GACZC,aAAc,GACdC,cAAe,GACfC,YAAa,GACbhB,QAAS,OACTiB,WAAY,SACZf,eAAgB,WAChBgB,gBAAiB,cAEjB,iCAAkC,CAChCC,QAAS,EACTC,aAAc,GACdV,WAAY,OACZV,QAAS,OACTiB,WAAY,SACZf,eAAgB,SAChBmB,QAAS,OACTC,OAAQ,OACRC,OAAQ,WAGV,uCAAwC,CACtCb,WAAY,QAGd,6CAA8C,CAC5ChB,MAAO,GACPiB,OAAQ,KAIZa,MAAO,CACL9B,MAAO,OACPC,SAAU,OACVC,wBAAyB,QACzBC,SAAU,QACVC,WAAY,sBACZC,OAAQ,IACRC,QAAS,OACTC,cAAe,SACfC,eAAg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AAA,EAAiBI,WAlElB,IAqET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMountTransition.d.ts","sourceRoot":"","sources":["../packages/components/Drawer/src/useMountTransition.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useMountTransition.d.ts","sourceRoot":"","sources":["../packages/components/Drawer/src/useMountTransition.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,GAAI,WAAW,OAAO,EAAE,cAAc,MAAM,YAoBnE,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-platform-drawer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1-beta.0",
|
|
4
4
|
"description": "Drawer Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-drawer.cjs.js",
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cleartrip/ct-design-icons": "7.0.0",
|
|
14
13
|
"classnames": "^2.5.1",
|
|
15
|
-
"@cleartrip/ct-platform-utils": "
|
|
14
|
+
"@cleartrip/ct-platform-utils": "6.0.1-beta.0"
|
|
16
15
|
},
|
|
17
16
|
"peerDependencies": {
|
|
18
17
|
"react": ">=16.8.0",
|
|
19
18
|
"react-dom": ">=16.8.0",
|
|
20
|
-
"
|
|
19
|
+
"@cleartrip/ct-design-icons": "61.0.0-SNAPSHOT-native-main.0"
|
|
21
20
|
},
|
|
22
21
|
"author": "Cleartrip",
|
|
23
22
|
"license": "ISC",
|