@cleartrip/ct-platform-supercoins-floating-island 2.3.34 → 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/SupercoinsFloatingIsland.d.ts.map +1 -1
- package/dist/ct-platform-supercoins-floating-island.cjs.js +1 -1
- package/dist/ct-platform-supercoins-floating-island.cjs.js.map +1 -1
- package/dist/ct-platform-supercoins-floating-island.esm.js +1 -1
- package/dist/ct-platform-supercoins-floating-island.esm.js.map +1 -1
- package/dist/index.module.d.ts +116 -0
- package/dist/index.module.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupercoinsFloatingIsland.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SupercoinsFloatingIsland.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEH,6BAA6B,EAChC,MAAM,kCAAkC,CAAC;AAW1C,QAAA,MAAM,wBAAwB,GAAI,wEAM/B,6BAA6B,4CAgH/B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("
|
|
1
|
+
"use strict";var t=require("react/jsx-runtime"),e=require("react"),i=require("@cleartrip/ct-design-style-manager"),n=require("@emotion/css"),r=require("@lottiefiles/dotlottie-react"),o=require("@cleartrip/ct-design-components");n.keyframes({"0%":{height:96},"100%":{height:0}});const a=n.keyframes({"0%":{opacity:1,scale:1},"100%":{opacity:0,scale:0}}),s=n.keyframes({"0%":{scale:"1"},"50%":{scale:"1.1"},"90%":{scale:"0.9"},"100%":{scale:"1"}}),l=n.keyframes({"0%":{width:0},"100%":{width:"var(--supercoins-increment-width)"}}),c=n.keyframes({"0%":{opacity:0,top:"-50%"},"100%":{opacity:1,top:0}}),p=n.keyframes({"0%":{opacity:.1},"100%":{opacity:1}}),m=n.keyframes({"0%":{opacity:1},"100%":{opacity:0}}),f=n.keyframes({"0%":{transform:"translateY(-8px)"},"100%":{transform:"translateY(0)"}}),d=n.keyframes({"0%":{transform:"translateY(-4px)"},"100%":{transform:"translateY(0px)"}}),u=n.keyframes({"0%":{transform:"translateY(-10px)"},"100%":{transform:"translateY(0px)"}}),h=n.keyframes({"0%":{transform:"translateY(0px)"},"100%":{transform:"translateY(-10px)"}}),g=n.keyframes({"0%":{height:0},"100%":{height:108}}),y=n.keyframes({"0%":{height:108},"100%":{height:0}}),x=i.makeStyles((()=>({island_container:{position:"relative"},island:{marginTop:18,position:"absolute",backgroundColor:"#003ea2",width:"100%",maxWidth:420,height:90,top:0,transform:"translateY(-10px)",zIndex:-1,borderRadius:16,opacity:.1,display:"flex",alignItems:"center",justifyContent:"center",animation:`${p} 1s forwards 1, ${u} 1s forwards 1, ${h} 1s forwards 9000ms, ${m} 1s forwards 9000ms`},expand:{position:"relative",width:1,height:0,animation:`${g} 1s forwards 1, ${y} 1s forwards 1 9000ms`},tooltip:{width:25,position:"absolute",right:20,top:-9},content_wrapper:{transform:"translateY(-8px)",animation:`${f} 1s`,animationIterationCount:1,animationFillMode:"forwards"},supercoins_wrapper:{marginTop:4,marginLeft:"auto",marginRight:"auto",width:"max-content",height:"max-content",display:"flex",lineHeight:32,gap:4,justifyContent:"center",alignItems:"center",transform:"translateY(-4px)",animation:`${d} 500ms cubic-bezier(0.65, 0.05, 0.36, 1) forwards 1 200ms`},heading:{color:"white",fontSize:12,lineHeight:16,fontWeight:400,opacity:.7,textAlign:"center",animation:`${a} 700ms forwards 1 4200ms`},supercoins_logo:{width:28,height:28},supercoins:{fontSize:32,lineHeight:36,color:"white",fontWeight:600,letterSpacing:-.5},supercoins_animation_wrapper:{display:"flex",position:"relative",animation:`${s} 850ms forwards 1 2500ms, ${a} 700ms forwards 1 4200ms`},supercoins_increment_wrapper:{width:0,maxWidth:168,height:36,display:"flex",justifyContent:"left",animation:`${l} 1s forwards 1 1000ms`,direction:"ltr"},supercoins_increment:{marginTop:4,fontSize:32,lineHeight:36,letterSpacing:-.5,color:"#b7eda8",whiteSpace:"nowrap",fontWeight:600,position:"absolute",left:"var(--supercoins-increment-shift_left_by)",top:"-50%",animation:`${c} 1s forwards 1 1000ms`,opacity:0},"lottie-canvas":{width:"102%",height:"102%",borderRadius:16,position:"absolute",top:0,left:0,opacity:.1,animation:`${p} 1s`,animationIterationCount:1,animationFillMode:"forwards"}})));var w;function _({onAnimationEnd:i=(()=>{})}){const[n,o]=e.useState(null);return e.useEffect((()=>{if(!n)return;const t=setTimeout((()=>{n.play()}),3100);return n.addEventListener("complete",i),n.addEventListener("freeze",(()=>{n.unfreeze()})),()=>{clearTimeout(t)}}),[n]),t.jsx(r.DotLottieReact,{src:"https://static-assets-ct.flixcart.com/ct/assets/offermgmt/lottie/SC_floating_island.lottie",className:x["lottie-canvas"],dotLottieRefCallback:t=>{o(t)}})}exports.ISLAND_ALIGN=void 0,(w=exports.ISLAND_ALIGN||(exports.ISLAND_ALIGN={}))[w.left=0]="left",w[w.right=1]="right";const v=exports.ISLAND_ALIGN.right;exports.SupercoinsFloatingIsland=({islandStyles:i="",superCoins:n=5e3,align:r=v,onAnimationStart:a=(()=>{}),onAnimationEnd:s=(()=>{})})=>{!function(t){const e=document.querySelector(":root");let i=45,n=100;t>99&&t<999?i=50:t>999&&t<9999?(i=50,n=120):t>9999&&(i=50,n=150),null==e||e.style.setProperty("--supercoins-increment-shift_left_by",`${i}%`),null==e||e.style.setProperty("--supercoins-increment-width",`${n}px`)}(n);const[l,c]=e.useState(n-40),p=e.useRef(null);e.useEffect((()=>{var t;if(p.current)return null===(t=null==p?void 0:p.current)||void 0===t||t.addEventListener("animationstart",e),()=>{var t;null===(t=null==p?void 0:p.current)||void 0===t||t.removeEventListener("animationstart",e)};function e(){return setInterval((()=>{c((t=>t<n?t+1:t))}),50)}}),[]),e.useEffect((()=>{a()}),[]);const m=r===exports.ISLAND_ALIGN.left?{left:0}:{right:0},f=document?document.documentElement.clientWidth-32:320;return t.jsxs(o.Container,{as:"div",styleConfig:{root:[x.island_container,i]},children:[t.jsx(o.Container,{as:"div",styleConfig:{root:[x.expand]}}),t.jsxs(o.Container,{as:"div",styleConfig:{root:[x.island,Object.assign(Object.assign({},m),{width:f})]},children:[t.jsx("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/floating_island_tooltip.png",className:x.tooltip}),t.jsx(o.Container,{as:"div",styleConfig:{root:[{position:"absolute",overflow:"hidden",width:"100%",height:"100%",borderRadius:16}]},children:t.jsx(_,{onAnimationEnd:s})}),t.jsxs(o.Container,{as:"div",styleConfig:{root:[x.content_wrapper]},children:[t.jsx(o.Typography,{variant:"P2",styleConfig:{root:[x.heading]},children:"Your SuperCoin balance"}),t.jsxs(o.Container,{as:"div",styleConfig:{root:[x.supercoins_animation_wrapper]},children:[t.jsxs(o.Container,{as:"div",styleConfig:{root:[x.supercoins_wrapper]},children:[t.jsx("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/supercoin_island.png",className:x.supercoins_logo}),t.jsx(o.Typography,{variant:"P2",styleConfig:{root:[x.supercoins]},children:n})]}),t.jsx(o.Container,{as:"div",styleConfig:{root:[x.supercoins_increment_wrapper]},children:t.jsxs("p",{ref:p,className:x.supercoins_increment,children:["= ₹",l]})})]})]})]})]})};
|
|
2
2
|
//# sourceMappingURL=ct-platform-supercoins-floating-island.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-supercoins-floating-island.cjs.js","sources":["../packages/components/SupercoinsFloatingIsland/src/
|
|
1
|
+
{"version":3,"file":"ct-platform-supercoins-floating-island.cjs.js","sources":["../packages/components/SupercoinsFloatingIsland/src/index.module.ts","../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.types.ts","../packages/components/SupercoinsFloatingIsland/src/LottieWrapper.tsx","../packages/components/SupercoinsFloatingIsland/src/constants.ts","../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.tsx","../packages/components/SupercoinsFloatingIsland/src/utils/setCSSVariable.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["keyframes","height","scale_down","opacity","scale","supercoins_animation_wrapper_scaleup","supercoins_increment_wrapper_width","width","supercoins_increment_slidedown","top","island_fadein","island_fadeOut","contentwrapper_slidedown","transform","supercoins_slidedown","island_slideDown","island_slideUp","expand","compress","styles","makeStyles","island_container","position","island","marginTop","backgroundColor","maxWidth","zIndex","borderRadius","display","alignItems","justifyContent","animation","tooltip","right","content_wrapper","animationIterationCount","animationFillMode","supercoins_wrapper","marginLeft","marginRight","lineHeight","gap","heading","color","fontSize","fontWeight","textAlign","supercoins_logo","supercoins","letterSpacing","supercoins_animation_wrapper","supercoins_increment_wrapper","direction","supercoins_increment","whiteSpace","left","ISLAND_ALIGN","LottieWrapper","onAnimationEnd","dotLottie","setDotLottie","useState","useEffect","timeout","setTimeout","play","addEventListener","unfreeze","clearTimeout","_jsx","DotLottieReact","src","className","dotLottieRefCallback","DEFAULT_ISLAND_ALIGNMENT","islandStyles","superCoins","align","onAnimationStart","lengthOfSupercoins","ctx","document","querySelector","leftShiftBy","style","setProperty","setCSSVariable","incrementSupercoin","setIncrementSupercoin","supercoinsIncrementElement","useRef","current","_a","startIncrementing","removeEventListener","setInterval","prev","alignStyles","islandWidth","documentElement","clientWidth","_jsxs","Container","as","styleConfig","root","children","Object","assign","overflow","jsxs","Typography","variant","ref"],"mappings":"oOAEuBA,EAAAA,UAAU,CAC/B,KAAM,CACJC,OAAQ,IAEV,OAAQ,CACNA,OAAQ,KAIZ,MAAMC,EAAaF,EAAAA,UAAU,CAC3B,KAAM,CACJG,QAAS,EACTC,MAAO,GAET,OAAQ,CACND,QAAS,EACTC,MAAO,KAILC,EAAuCL,E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AC7BC,KAAM,CAACvF,EAAqC,+BAE5CwF,SAAA,CAAAL,OAACC,EAAAA,UAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACvF,EAA2B,qBAElCwF,SAAA,CAAArC,MAAA,MAAA,CACIE,IAAI,4GACJC,UAAWtD,EAAwB,kBAEvCmD,MAAC0C,EAAAA,WAAU,CAACC,QAAQ,KAAKR,YAAa,CAClCC,KAAM,CAACvF,EAAmB,aAC7BwF,SAAG9B,OAERP,MAACiC,EAAAA,UAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACvF,EAAqC,+BAE5CwF,SAAAL,OAAA,IAAA,CACIY,IAAKxB,EACLjB,UAAWtD,EAA6B,qBAEpCwF,SAAA,CAAA,MAAAnB,kBAO9B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as t,jsxs as i}from"react/jsx-runtime";import{useState as e,useEffect as n,useRef as o}from"react";import{makeStyles as r}from"@cleartrip/ct-design-style-manager";import{keyframes as a}from"@emotion/css";import{DotLottieReact as s}from"@lottiefiles/dotlottie-react";import{Container as l,Typography as c}from"@cleartrip/ct-design-components";a({"0%":{height:96},"100%":{height:0}});const m=a({"0%":{opacity:1,scale:1},"100%":{opacity:0,scale:0}}),p=a({"0%":{scale:"1"},"50%":{scale:"1.1"},"90%":{scale:"0.9"},"100%":{scale:"1"}}),d=a({"0%":{width:0},"100%":{width:"var(--supercoins-increment-width)"}}),f=a({"0%":{opacity:0,top:"-50%"},"100%":{opacity:1,top:0}}),h=a({"0%":{opacity:.1},"100%":{opacity:1}}),u=a({"0%":{opacity:1},"100%":{opacity:0}}),g=a({"0%":{transform:"translateY(-8px)"},"100%":{transform:"translateY(0)"}}),w=a({"0%":{transform:"translateY(-4px)"},"100%":{transform:"translateY(0px)"}}),y=a({"0%":{transform:"translateY(-10px)"},"100%":{transform:"translateY(0px)"}}),v=a({"0%":{transform:"translateY(0px)"},"100%":{transform:"translateY(-10px)"}}),_=a({"0%":{height:0},"100%":{height:108}}),x=a({"0%":{height:108},"100%":{height:0}}),b=r((()=>({island_container:{position:"relative"},island:{marginTop:18,position:"absolute",backgroundColor:"#003ea2",width:"100%",maxWidth:420,height:90,top:0,transform:"translateY(-10px)",zIndex:-1,borderRadius:16,opacity:.1,display:"flex",alignItems:"center",justifyContent:"center",animation:`${h} 1s forwards 1, ${y} 1s forwards 1, ${v} 1s forwards 9000ms, ${u} 1s forwards 9000ms`},expand:{position:"relative",width:1,height:0,animation:`${_} 1s forwards 1, ${x} 1s forwards 1 9000ms`},tooltip:{width:25,position:"absolute",right:20,top:-9},content_wrapper:{transform:"translateY(-8px)",animation:`${g} 1s`,animationIterationCount:1,animationFillMode:"forwards"},supercoins_wrapper:{marginTop:4,marginLeft:"auto",marginRight:"auto",width:"max-content",height:"max-content",display:"flex",lineHeight:32,gap:4,justifyContent:"center",alignItems:"center",transform:"translateY(-4px)",animation:`${w} 500ms cubic-bezier(0.65, 0.05, 0.36, 1) forwards 1 200ms`},heading:{color:"white",fontSize:12,lineHeight:16,fontWeight:400,opacity:.7,textAlign:"center",animation:`${m} 700ms forwards 1 4200ms`},supercoins_logo:{width:28,height:28},supercoins:{fontSize:32,lineHeight:36,color:"white",fontWeight:600,letterSpacing:-.5},supercoins_animation_wrapper:{display:"flex",position:"relative",animation:`${p} 850ms forwards 1 2500ms, ${m} 700ms forwards 1 4200ms`},supercoins_increment_wrapper:{width:0,maxWidth:168,height:36,display:"flex",justifyContent:"left",animation:`${d} 1s forwards 1 1000ms`,direction:"ltr"},supercoins_increment:{marginTop:4,fontSize:32,lineHeight:36,letterSpacing:-.5,color:"#b7eda8",whiteSpace:"nowrap",fontWeight:600,position:"absolute",left:"var(--supercoins-increment-shift_left_by)",top:"-50%",animation:`${f} 1s forwards 1 1000ms`,opacity:0},"lottie-canvas":{width:"102%",height:"102%",borderRadius:16,position:"absolute",top:0,left:0,opacity:.1,animation:`${h} 1s`,animationIterationCount:1,animationFillMode:"forwards"}})));var C;function $({onAnimationEnd:i=(()=>{})}){const[o,r]=e(null);return n((()=>{if(!o)return;const t=setTimeout((()=>{o.play()}),3100);return o.addEventListener("complete",i),o.addEventListener("freeze",(()=>{o.unfreeze()})),()=>{clearTimeout(t)}}),[o]),t(s,{src:"https://static-assets-ct.flixcart.com/ct/assets/offermgmt/lottie/SC_floating_island.lottie",className:b["lottie-canvas"],dotLottieRefCallback:t=>{r(t)}})}!function(t){t[t.left=0]="left",t[t.right=1]="right"}(C||(C={}));const Y=C.right;const S=({islandStyles:r="",superCoins:a=5e3,align:s=Y,onAnimationStart:m=(()=>{}),onAnimationEnd:p=(()=>{})})=>{!function(t){const i=document.querySelector(":root");let e=45,n=100;t>99&&t<999?e=50:t>999&&t<9999?(e=50,n=120):t>9999&&(e=50,n=150),null==i||i.style.setProperty("--supercoins-increment-shift_left_by",`${e}%`),null==i||i.style.setProperty("--supercoins-increment-width",`${n}px`)}(a);const[d,f]=e(a-40),h=o(null);n((()=>{var t;if(h.current)return null===(t=null==h?void 0:h.current)||void 0===t||t.addEventListener("animationstart",i),()=>{var t;null===(t=null==h?void 0:h.current)||void 0===t||t.removeEventListener("animationstart",i)};function i(){return setInterval((()=>{f((t=>t<a?t+1:t))}),50)}}),[]),n((()=>{m()}),[]);const u=s===C.left?{left:0}:{right:0},g=document?document.documentElement.clientWidth-32:320;return i(l,{as:"div",styleConfig:{root:[b.island_container,r]},children:[t(l,{as:"div",styleConfig:{root:[b.expand]}}),i(l,{as:"div",styleConfig:{root:[b.island,Object.assign(Object.assign({},u),{width:g})]},children:[t("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/floating_island_tooltip.png",className:b.tooltip}),t(l,{as:"div",styleConfig:{root:[{position:"absolute",overflow:"hidden",width:"100%",height:"100%",borderRadius:16}]},children:t($,{onAnimationEnd:p})}),i(l,{as:"div",styleConfig:{root:[b.content_wrapper]},children:[t(c,{variant:"P2",styleConfig:{root:[b.heading]},children:"Your SuperCoin balance"}),i(l,{as:"div",styleConfig:{root:[b.supercoins_animation_wrapper]},children:[i(l,{as:"div",styleConfig:{root:[b.supercoins_wrapper]},children:[t("img",{src:"https://rukmini-ct.flixcart.com/f_auto,q_auto/offermgmt-prod/offermgmt/images/banner/supercoin_island.png",className:b.supercoins_logo}),t(c,{variant:"P2",styleConfig:{root:[b.supercoins]},children:a})]}),t(l,{as:"div",styleConfig:{root:[b.supercoins_increment_wrapper]},children:i("p",{ref:h,className:b.supercoins_increment,children:["= ₹",d]})})]})]})]})]})};export{C as ISLAND_ALIGN,S as SupercoinsFloatingIsland};
|
|
2
2
|
//# sourceMappingURL=ct-platform-supercoins-floating-island.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-supercoins-floating-island.esm.js","sources":["../packages/components/SupercoinsFloatingIsland/src/
|
|
1
|
+
{"version":3,"file":"ct-platform-supercoins-floating-island.esm.js","sources":["../packages/components/SupercoinsFloatingIsland/src/index.module.ts","../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.types.ts","../packages/components/SupercoinsFloatingIsland/src/LottieWrapper.tsx","../packages/components/SupercoinsFloatingIsland/src/constants.ts","../packages/components/SupercoinsFloatingIsland/src/SupercoinsFloatingIsland.tsx","../packages/components/SupercoinsFloatingIsland/src/utils/setCSSVariable.ts"],"sourcesContent":[null,null,null,null,null,null],"names":["keyframes","height","scale_down","opacity","scale","supercoins_animation_wrapper_scaleup","supercoins_increment_wrapper_width","width","supercoins_increment_slidedown","top","island_fadein","island_fadeOut","contentwrapper_slidedown","transform","supercoins_slidedown","island_slideDown","island_slideUp","expand","compress","styles","makeStyles","island_container","position","island","marginTop","backgroundColor","maxWidth","zIndex","borderRadius","display","alignItems","justifyContent","animation","tooltip","right","content_wrapper","animationIterationCount","animationFillMode","supercoins_wrapper","marginLeft","marginRight","lineHeight","gap","heading","color","fontSize","fontWeight","textAlign","supercoins_logo","supercoins","letterSpacing","supercoins_animation_wrapper","supercoins_increment_wrapper","direction","supercoins_increment","whiteSpace","left","ISLAND_ALIGN","LottieWrapper","onAnimationEnd","dotLottie","setDotLottie","useState","useEffect","timeout","setTimeout","play","addEventListener","unfreeze","clearTimeout","_jsx","DotLottieReact","src","className","dotLottieRefCallback","DEFAULT_ISLAND_ALIGNMENT","SupercoinsFloatingIsland","islandStyles","superCoins","align","onAnimationStart","lengthOfSupercoins","ctx","document","querySelector","leftShiftBy","style","setProperty","setCSSVariable","incrementSupercoin","setIncrementSupercoin","supercoinsIncrementElement","useRef","current","_a","startIncrementing","removeEventListener","setInterval","prev","alignStyles","islandWidth","documentElement","clientWidth","_jsxs","Container","as","styleConfig","root","children","Object","assign","overflow","Typography","variant","ref"],"mappings":"iWAEuBA,EAAU,CAC/B,KAAM,CACJC,OAAQ,IAEV,OAAQ,CACNA,OAAQ,KAIZ,MAAMC,EAAaF,EAAU,CAC3B,KAAM,CACJG,QAAS,EACTC,MAAO,GAET,OAAQ,CACND,QAAS,EACTC,MAAO,KAILC,EAAuCL,EAAU,CACrD,KAAM,CACJI,MAAO,KAET,MAAO,CACLA,MAAO,OAET,MAAO,CACLA,MAAO,OAET,OAAQ,CACNA,MAAO,OAILE,EAAqCN,EAAU,CACnD,KAAM,CACJO,MAAO,GAET,OAAQ,CACNA,MAAO,uCAILC,EAAiCR,EAAU,CAC/C,KAAM,CACJG,QAAS,EACTM,IAAK,QAEP,OAAQ,CACNN,QAAS,EACTM,IAAK,KAIHC,EAAgBV,EAAU,CAC9B,KAAM,CACJG,QAAS,IAEX,OAAQ,CACNA,QAAS,KAIPQ,EAAiBX,EAAU,CAC/B,KAAM,CACJG,QAAS,GAEX,OAAQ,CACNA,QAAS,KAIPS,EAA2BZ,EAAU,CACzC,KAAM,CACJa,UAAW,oBAEb,OAAQ,CACNA,UAAW,mBAITC,EAAuBd,EAAU,CACrC,KAAM,CACJa,UAAW,oBAEb,OAAQ,CACNA,UAAW,qBAITE,EAAmBf,EAA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A,CACIE,IAAI,mHACJC,UAAWtD,EAAgB,UAE/BmD,EAACkC,EAAS,CACNC,GAAG,MACHC,YAAa,CACTC,KAAM,CAAC,CACHrF,SAAU,WACVyF,SAAU,SACVxG,MAAO,OACPN,OAAQ,OACR2B,aAAc,MAErBgF,SACDtC,EAACZ,EAAa,CAACC,eAAgBA,MAEnC4C,EAACC,EAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACxF,EAAwB,kBAE/ByF,SAAA,CAAAtC,EAAC0C,EAAW,CAAAC,QAAQ,KAAKP,YAAa,CAClCC,KAAM,CAACxF,EAAgB,UACvByF,SDrGD,2BCsGHL,EAACC,EAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACxF,EAAqC,+BAE5CyF,SAAA,CAAAL,EAACC,EAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACxF,EAA2B,qBAElCyF,SAAA,CAAAtC,EAAA,MAAA,CACIE,IAAI,4GACJC,UAAWtD,EAAwB,kBAEvCmD,EAAC0C,EAAU,CAACC,QAAQ,KAAKP,YAAa,CAClCC,KAAM,CAACxF,EAAmB,aAC7ByF,SAAG9B,OAERR,EAACkC,EAAU,CAAAC,GAAG,MAAMC,YAAa,CAC7BC,KAAM,CAACxF,EAAqC,+BAE5CyF,SAAAL,EAAA,IAAA,CACIW,IAAKvB,EACLlB,UAAWtD,EAA6B,qBAEpCyF,SAAA,CAAA,MAAAnB,kBAO9B"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
declare const styles: import("@cleartrip/ct-design-types").NamedStyles<{
|
|
2
|
+
island_container: {
|
|
3
|
+
position: "relative";
|
|
4
|
+
};
|
|
5
|
+
island: {
|
|
6
|
+
marginTop: number;
|
|
7
|
+
position: "absolute";
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
width: "100%";
|
|
10
|
+
maxWidth: number;
|
|
11
|
+
height: number;
|
|
12
|
+
top: number;
|
|
13
|
+
transform: string;
|
|
14
|
+
zIndex: number;
|
|
15
|
+
borderRadius: number;
|
|
16
|
+
opacity: number;
|
|
17
|
+
display: "flex";
|
|
18
|
+
alignItems: "center";
|
|
19
|
+
justifyContent: "center";
|
|
20
|
+
animation: string;
|
|
21
|
+
};
|
|
22
|
+
expand: {
|
|
23
|
+
position: "relative";
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
animation: string;
|
|
27
|
+
};
|
|
28
|
+
tooltip: {
|
|
29
|
+
width: number;
|
|
30
|
+
position: "absolute";
|
|
31
|
+
right: number;
|
|
32
|
+
top: number;
|
|
33
|
+
};
|
|
34
|
+
content_wrapper: {
|
|
35
|
+
transform: string;
|
|
36
|
+
animation: string;
|
|
37
|
+
animationIterationCount: number;
|
|
38
|
+
animationFillMode: string;
|
|
39
|
+
};
|
|
40
|
+
supercoins_wrapper: {
|
|
41
|
+
marginTop: number;
|
|
42
|
+
marginLeft: "auto";
|
|
43
|
+
marginRight: "auto";
|
|
44
|
+
width: "max-content";
|
|
45
|
+
height: "max-content";
|
|
46
|
+
display: "flex";
|
|
47
|
+
lineHeight: number;
|
|
48
|
+
gap: number;
|
|
49
|
+
justifyContent: "center";
|
|
50
|
+
alignItems: "center";
|
|
51
|
+
transform: string;
|
|
52
|
+
animation: string;
|
|
53
|
+
};
|
|
54
|
+
heading: {
|
|
55
|
+
color: string;
|
|
56
|
+
fontSize: number;
|
|
57
|
+
lineHeight: number;
|
|
58
|
+
fontWeight: 400;
|
|
59
|
+
opacity: number;
|
|
60
|
+
textAlign: "center";
|
|
61
|
+
animation: string;
|
|
62
|
+
};
|
|
63
|
+
supercoins_logo: {
|
|
64
|
+
width: number;
|
|
65
|
+
height: number;
|
|
66
|
+
};
|
|
67
|
+
supercoins: {
|
|
68
|
+
fontSize: number;
|
|
69
|
+
lineHeight: number;
|
|
70
|
+
color: string;
|
|
71
|
+
fontWeight: 600;
|
|
72
|
+
letterSpacing: number;
|
|
73
|
+
};
|
|
74
|
+
supercoins_animation_wrapper: {
|
|
75
|
+
display: "flex";
|
|
76
|
+
position: "relative";
|
|
77
|
+
animation: string;
|
|
78
|
+
};
|
|
79
|
+
supercoins_increment_wrapper: {
|
|
80
|
+
width: number;
|
|
81
|
+
maxWidth: number;
|
|
82
|
+
height: number;
|
|
83
|
+
display: "flex";
|
|
84
|
+
justifyContent: "left";
|
|
85
|
+
animation: string;
|
|
86
|
+
direction: "ltr";
|
|
87
|
+
};
|
|
88
|
+
supercoins_increment: {
|
|
89
|
+
marginTop: number;
|
|
90
|
+
fontSize: number;
|
|
91
|
+
lineHeight: number;
|
|
92
|
+
letterSpacing: number;
|
|
93
|
+
color: string;
|
|
94
|
+
whiteSpace: string;
|
|
95
|
+
fontWeight: 600;
|
|
96
|
+
position: "absolute";
|
|
97
|
+
left: "var(--supercoins-increment-shift_left_by)";
|
|
98
|
+
top: "-50%";
|
|
99
|
+
animation: string;
|
|
100
|
+
opacity: number;
|
|
101
|
+
};
|
|
102
|
+
'lottie-canvas': {
|
|
103
|
+
width: "102%";
|
|
104
|
+
height: "102%";
|
|
105
|
+
borderRadius: number;
|
|
106
|
+
position: "absolute";
|
|
107
|
+
top: number;
|
|
108
|
+
left: number;
|
|
109
|
+
opacity: number;
|
|
110
|
+
animation: string;
|
|
111
|
+
animationIterationCount: number;
|
|
112
|
+
animationFillMode: string;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
export default styles;
|
|
116
|
+
//# sourceMappingURL=index.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../packages/components/SupercoinsFloatingIsland/src/index.module.ts"],"names":[],"mappings":"AAmIA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6HT,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-platform-supercoins-floating-island",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1-beta.0",
|
|
4
4
|
"description": "SuperCoins Floating Island Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-supercoins-floating-island.cjs.js",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cleartrip/ct-design-typography": "2.6.0",
|
|
14
13
|
"@lottiefiles/dotlottie-react": "^0.10.0"
|
|
15
14
|
},
|
|
16
15
|
"peerDependencies": {
|
|
17
16
|
"react": ">=16.8.0",
|
|
18
17
|
"react-dom": ">=16.8.0",
|
|
19
|
-
"
|
|
18
|
+
"@cleartrip/ct-design-typography": "5.27.0-SNAPSHOT-native-main.0",
|
|
19
|
+
"@cleartrip/ct-design-types": "5.27.0-SNAPSHOT-native-main.0"
|
|
20
20
|
},
|
|
21
21
|
"author": "Cleartrip",
|
|
22
22
|
"license": "ISC",
|