@cleartrip/ct-platform-app-push-sticky-banner 4.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/AppPushStickyBanner.d.ts.map +1 -1
- package/dist/ct-platform-app-push-sticky-banner.cjs.js +1 -1
- package/dist/ct-platform-app-push-sticky-banner.cjs.js.map +1 -1
- package/dist/ct-platform-app-push-sticky-banner.esm.js +1 -1
- package/dist/ct-platform-app-push-sticky-banner.esm.js.map +1 -1
- package/dist/index.module.d.ts +60 -0
- package/dist/index.module.d.ts.map +1 -0
- package/package.json +8 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppPushStickyBanner.d.ts","sourceRoot":"","sources":["../packages/components/AppPushStickyBanner/src/AppPushStickyBanner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppPushStickyBanner.d.ts","sourceRoot":"","sources":["../packages/components/AppPushStickyBanner/src/AppPushStickyBanner.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA0BnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAiM3D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var t=require("react/jsx-runtime"),o=require("react"),i=require("react-lottie"),n=require("@cleartrip/ct-design-button"),e=require("@cleartrip/ct-design-typography"),a=require("@cleartrip/ct-platform-utils"),r=require("@cleartrip/ct-platform-shimmer"),l=require("@cleartrip/ct-platform-assets"),s=require("@cleartrip/ct-design-style-manager"),c=require("@cleartrip/ct-design-components");function d(t){return t&&t.__esModule?t:{default:t}}var p=d(i);const u=s.makeStyles((()=>({"container--vertical":{display:"flex",alignItems:"flex-start",justifyContent:"space-between",boxSizing:"border-box",flexDirection:"column"},"container--horizontal":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},"container--horizontal--main":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",borderTopLeftRadius:16,borderTopRightRadius:16,borderBottomRightRadius:0,borderBottomLeftRadius:0,background:"#fff",padding:16,boxShadow:"0rem -0.25rem 1rem 0rem rgba(26, 26, 26, 0.08)",width:"100%",gap:8},"container--horizontal--gap":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",gap:8},icon:{height:16,width:16,objectFit:"contain"},"icon--animated":{height:40,width:40,objectFit:"contain"},text:{fontFeatureSettings:'"clig" off, "liga" off',padding:0,margin:0},"text--large":{padding:0,margin:0,fontFeatureSettings:'"dlig" on, "clig" off, "liga" off',lineHeight:22}})));exports.AppPushStickyBanner=({header:i="Get 3X rewards on app!",ratings:s="4.5",subtext:d="10M+ downloads",buttonText:g="Get App",buttonLoadingState:v,onBannerLoad:h,onBannerClick:m,onButtonClick:f,customActionNames:y,ravenPayload:x,isBenefitDataLoading:b=!1,style:_={}})=>{const[j,C]=o.useState(null),[S,w]=o.useState(!1);o.useEffect((()=>{(async()=>{try{const t=await fetch("https://static-assets-ct.flixcart.com/ct/assets/offermgmt/appPush/DownloadApp.json");if(!t.ok)throw new Error("Failed to fetch data");const o=await t.json();C(o)}catch(t){console.error("Error fetching download app lottie json:",t),w(!0)}})()}),[]),o.useEffect((()=>{var t,o,i,n,e;null==h||h();const r=a.getRavenEventProps();a.ravenSDKTrigger("u_app_push_impression",Object.assign({action_name:null!==(t=null==y?void 0:y.impression)&&void 0!==t?t:"bottomSticky_imp_hp",page_name:null==r?void 0:r.pageName,vertical:null==r?void 0:r.vertical,source_channel:(null===(o=null===location||void 0===location?void 0:location.search)||void 0===o?void 0:o.split("utm_source=").length)>1?null===(e=null===(n=null===(i=null===location||void 0===location?void 0:location.search)||void 0===i?void 0:i.split("utm_source="))||void 0===n?void 0:n.pop())||void 0===e?void 0:e.split("&")[0]:"organic"},x))}),[]);return t.jsx(c.Container,{as:"div",children:t.jsxs(c.Container,{as:"section",onClick:()=>{var t,o,i,n,e;m();const r=a.getRavenEventProps();a.ravenSDKTrigger("u_app_push_click",Object.assign({action_name:null!==(t=null==y?void 0:y.expand)&&void 0!==t?t:"bottomSticky_expand_hp",page_name:null==r?void 0:r.pageName,vertical:null==r?void 0:r.vertical,source_channel:(null===(o=null===location||void 0===location?void 0:location.search)||void 0===o?void 0:o.split("utm_source=").length)>1?null===(e=null===(n=null===(i=null===location||void 0===location?void 0:location.search)||void 0===i?void 0:i.split("utm_source="))||void 0===n?void 0:n.pop())||void 0===e?void 0:e.split("&")[0]:"organic"},x))},styleConfig:{root:[u["container--horizontal--main"],_]},children:[j?t.jsx(p.default,{options:{animationData:j},width:"40px",height:"40px",style:{margin:"0px"}}):S?t.jsx("img",{src:l.DownloadApp,alt:"download icon",loading:"lazy",width:40,height:40}):t.jsx(r.Shimmer,{width:40,height:40}),t.jsxs(c.Container,{as:"div",styleConfig:{root:[u["container--vertical"]]},children:[b?t.jsx(r.Shimmer,{height:20}):t.jsx(e.Typography,{variant:e.TypographyVariant.HM4,color:e.TypographyColor.SUCCESS,styleConfig:{root:[u["text--large"]]},children:i}),t.jsxs(c.Container,{as:"div",styleConfig:{root:[u["container--horizontal--gap"]]},children:[t.jsxs(c.Container,{as:"div",styleConfig:{root:[u["container--horizontal"]]},children:[t.jsx(e.Typography,{variant:e.TypographyVariant.P3,styleConfig:{root:[u.text]},children:s}),t.jsx("img",{src:l.Star,alt:"rating icon",loading:"lazy"})]}),t.jsx(c.Container,{as:"div",styleConfig:{root:[u["container--horizontal"]]},children:t.jsx(e.Typography,{variant:e.TypographyVariant.P3,styleConfig:{root:[u.text]},children:d})})]})]}),t.jsx(n.Button,{variant:n.ButtonVariant.OUTLINE,onClick:t=>{var o,i,n,e,r,l;null===(o=null==t?void 0:t.stopPropagation)||void 0===o||o.call(t),f();const s=a.getRavenEventProps();a.ravenSDKTrigger("u_app_push_click",Object.assign({action_name:null!==(i=null==y?void 0:y.install)&&void 0!==i?i:"bottomSticky_install_hp",page_name:null==s?void 0:s.pageName,vertical:null==s?void 0:s.vertical,source_channel:(null===(n=null===location||void 0===location?void 0:location.search)||void 0===n?void 0:n.split("utm_source=").length)>1?null===(l=null===(r=null===(e=null===location||void 0===location?void 0:location.search)||void 0===e?void 0:e.split("utm_source="))||void 0===r?void 0:r.pop())||void 0===l?void 0:l.split("&")[0]:"organic"},x))},loading:v||!1,styleConfig:{root:[{marginLeft:"auto",right:0,height:32}]},children:g})]})})};
|
|
2
2
|
//# sourceMappingURL=ct-platform-app-push-sticky-banner.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-app-push-sticky-banner.cjs.js","sources":["
|
|
1
|
+
{"version":3,"file":"ct-platform-app-push-sticky-banner.cjs.js","sources":["../packages/components/AppPushStickyBanner/src/constants.ts","../packages/components/AppPushStickyBanner/src/index.module.ts","../packages/components/AppPushStickyBanner/src/AppPushStickyBanner.tsx"],"sourcesContent":[null,null,null],"names":["styles","makeStyles","display","alignItems","justifyContent","boxSizing","flexDirection","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","background","padding","boxShadow","width","gap","icon","height","objectFit","text","fontFeatureSettings","margin","lineHeight","header","ratings","subtext","buttonText","buttonLoadingState","onBannerLoad","onBannerClick","onButtonClick","customActionNames","ravenPayload","isBenefitDataLoading","style","jsonData","setJsonData","useState","failedToLoadLottie","setFailedToLoadLottie","useEffect","async","response","fetch","ok","Error","data","json","error","console","fetchData","eventProps","getRavenEventProps","ravenSDKTrigger","Object","assign","action_name","impression","_a","page_name","pageName","vertical","source_channel","_b","location","search","split","length","_e","_d","_c","pop","_jsx","Container","as","_jsxs","onClick","expand","styleConfig","root","children","Lottie","default","options","animationData","src","DownloadApp","alt","loading","Shimmer","jsx","Typography","variant","TypographyVariant","HM4","color","TypographyColor","SUCCESS","P3","Star","Button","ButtonVariant","OUTLINE","event","stopPropagation","install","_f","marginLeft","right"],"mappings":"+cAAO,MCGDA,EAASC,EAAUA,YAAC,KAAO,CAC/B,sBAAuB,CACrBC,QAAS,OACTC,WAAY,aACZC,eAAgB,gBAChBC,UAAW,aACXC,cAAe,UAGjB,wBAAyB,CACvBJ,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAChBC,UAAW,cAGb,8BAA+B,CAC7BH,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAChBC,UAAW,aACXE,oBAAqB,GACrBC,qBAAsB,GACtBC,wBAAyB,EACzBC,uBAAwB,EACxBC,WAAY,OACZC,QAAS,GACTC,UAAW,iDACXC,MAAO,OACPC,IAAK,GAGP,6BAA8B,CAC5Bb,QAAS,OACTC,WAAY,SACZC,eAAgB,gBAChBC,UAAW,aACXU,IAAK,GAGPC,KAAM,CACJC,OAAQ,GACRH,MAAO,GACPI,UAAW,WAGb,iBAAkB,CAChBD,OAAQ,GACRH,MAAO,GACPI,UAAW,WAGbC,KAAM,CACJC,oBAAqB,yBACrBR,QAAS,EACTS,OAAQ,GAGV,cAAe,CACbT,QAAS,EACTS,OAAQ,EACRD,oBAAqB,oCACrBE,WAAY,oCClCgD,EAC5DC,SFhCwC,yBEiCxCC,UFhC0C,MEiC1CC,UFhCiD,iBEiCjDC,aFhC8C,UEiC9CC,qBACAC,eACAC,gBACAC,gBACAC,oBACAC,eACAC,wBAAuB,EACvBC,QAAQ,CAAA,MAER,MAAOC,EAAUC,GAAeC,EAAQA,SAAC,OAClCC,EAAoBC,GAAyBF,EAAQA,UAAC,GAE7DG,EAAAA,WAAU,KACYC,WAEd,IACI,MAAMC,QAAiBC,MACnB,sFAEJ,IAAKD,EAASE,GACV,MAAM,IAAIC,MAAM,wBAEpB,MAAMC,QAAaJ,EAASK,OAC5BX,EAAYU,EACf,CAAC,MAAOE,GACLC,QAAQD,MACJ,2CACAA,GAEJT,GAAsB,EACzB,GAILW,EAAW,GACZ,IAEHV,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AAiBA,kBAACK,GAC3BpB,YAAa,CACTC,KAAM,CAAC/E,EAAa,OAGvBgF,SAAAvD,YAKjB+C,MAAC4B,EAAAA,OAAM,CACHR,QAASS,EAAAA,cAAcC,QACvB1B,QAhGW2B,4BACvB7C,EAAA6C,aAAK,EAALA,EAAOC,wCACP1E,IAEA,MAAMqB,EAAaC,EAAAA,qBACnBC,EAAAA,gBAAgB,mBAAkBC,OAAAC,OAAA,CAC9BC,YACkC,UAA9BzB,aAAiB,EAAjBA,EAAmB0E,eAAW,IAAA1C,EAAAA,EAAA,0BAClCJ,UAAWR,aAAA,EAAAA,EAAYS,SACvBC,SAAUV,aAAU,EAAVA,EAAYU,SACtBC,gBACoB,QAAhBQ,SAAAN,eAAQ,IAARA,cAAQ,EAARA,SAAUC,cAAM,IAAAK,OAAA,EAAAA,EAAEJ,MAAM,eAAeC,QAAS,EAIpC,QAHNuC,EAC0B,QAD1BtC,EAAgB,QAAhBC,SAAAL,eAAQ,IAARA,cAAQ,EAARA,SAAUC,cAAM,IAAAI,OAAA,EAAAA,EACVH,MAAM,sBAAc,IAAAE,OAAA,EAAAA,EACpBG,aACA,IAAAmC,OAAA,EAAAA,EAAAxC,MAAM,KAAK,GACjB,WAEPlC,GACL,EA8EUwD,QAAS7D,IAAsB,EAC/BmD,YAAa,CACTC,KAAM,CAAC,CACH4B,WAAY,OACZC,MAAO,EACP3F,OAAQ,MAEf+D,SAEAtD,QAIf"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";import{useState as i,useEffect as n}from"react";import a from"react-lottie";import{Button as e,ButtonVariant as l}from"@cleartrip/ct-design-button";import{Typography as r,TypographyVariant as c,TypographyColor as s}from"@cleartrip/ct-design-typography";import{getRavenEventProps as d,ravenSDKTrigger as p}from"@cleartrip/ct-platform-utils";import{Shimmer as g}from"@cleartrip/ct-platform-shimmer";import{DownloadApp as u,Star as m}from"@cleartrip/ct-platform-assets";import{makeStyles as v}from"@cleartrip/ct-design-style-manager";import{Container as h}from"@cleartrip/ct-design-components";const f=v((()=>({"container--vertical":{display:"flex",alignItems:"flex-start",justifyContent:"space-between",boxSizing:"border-box",flexDirection:"column"},"container--horizontal":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},"container--horizontal--main":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",borderTopLeftRadius:16,borderTopRightRadius:16,borderBottomRightRadius:0,borderBottomLeftRadius:0,background:"#fff",padding:16,boxShadow:"0rem -0.25rem 1rem 0rem rgba(26, 26, 26, 0.08)",width:"100%",gap:8},"container--horizontal--gap":{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",gap:8},icon:{height:16,width:16,objectFit:"contain"},"icon--animated":{height:40,width:40,objectFit:"contain"},text:{fontFeatureSettings:'"clig" off, "liga" off',padding:0,margin:0},"text--large":{padding:0,margin:0,fontFeatureSettings:'"dlig" on, "clig" off, "liga" off',lineHeight:22}}))),b=({header:v="Get 3X rewards on app!",ratings:b="4.5",subtext:x="10M+ downloads",buttonText:y="Get App",buttonLoadingState:_,onBannerLoad:w,onBannerClick:C,onButtonClick:S,customActionNames:j,ravenPayload:z,isBenefitDataLoading:k=!1,style:L={}})=>{const[B,R]=i(null),[F,I]=i(!1);n((()=>{(async()=>{try{const o=await fetch("https://static-assets-ct.flixcart.com/ct/assets/offermgmt/appPush/DownloadApp.json");if(!o.ok)throw new Error("Failed to fetch data");const t=await o.json();R(t)}catch(o){console.error("Error fetching download app lottie json:",o),I(!0)}})()}),[]),n((()=>{var o,t,i,n,a;null==w||w();const e=d();p("u_app_push_impression",Object.assign({action_name:null!==(o=null==j?void 0:j.impression)&&void 0!==o?o:"bottomSticky_imp_hp",page_name:null==e?void 0:e.pageName,vertical:null==e?void 0:e.vertical,source_channel:(null===(t=null===location||void 0===location?void 0:location.search)||void 0===t?void 0:t.split("utm_source=").length)>1?null===(a=null===(n=null===(i=null===location||void 0===location?void 0:location.search)||void 0===i?void 0:i.split("utm_source="))||void 0===n?void 0:n.pop())||void 0===a?void 0:a.split("&")[0]:"organic"},z))}),[]);return o(h,{as:"div",children:t(h,{as:"section",onClick:()=>{var o,t,i,n,a;C();const e=d();p("u_app_push_click",Object.assign({action_name:null!==(o=null==j?void 0:j.expand)&&void 0!==o?o:"bottomSticky_expand_hp",page_name:null==e?void 0:e.pageName,vertical:null==e?void 0:e.vertical,source_channel:(null===(t=null===location||void 0===location?void 0:location.search)||void 0===t?void 0:t.split("utm_source=").length)>1?null===(a=null===(n=null===(i=null===location||void 0===location?void 0:location.search)||void 0===i?void 0:i.split("utm_source="))||void 0===n?void 0:n.pop())||void 0===a?void 0:a.split("&")[0]:"organic"},z))},styleConfig:{root:[f["container--horizontal--main"],L]},children:[B?o(a,{options:{animationData:B},width:"40px",height:"40px",style:{margin:"0px"}}):F?o("img",{src:u,alt:"download icon",loading:"lazy",width:40,height:40}):o(g,{width:40,height:40}),t(h,{as:"div",styleConfig:{root:[f["container--vertical"]]},children:[k?o(g,{height:20}):o(r,{variant:c.HM4,color:s.SUCCESS,styleConfig:{root:[f["text--large"]]},children:v}),t(h,{as:"div",styleConfig:{root:[f["container--horizontal--gap"]]},children:[t(h,{as:"div",styleConfig:{root:[f["container--horizontal"]]},children:[o(r,{variant:c.P3,styleConfig:{root:[f.text]},children:b}),o("img",{src:m,alt:"rating icon",loading:"lazy"})]}),o(h,{as:"div",styleConfig:{root:[f["container--horizontal"]]},children:o(r,{variant:c.P3,styleConfig:{root:[f.text]},children:x})})]})]}),o(e,{variant:l.OUTLINE,onClick:o=>{var t,i,n,a,e,l;null===(t=null==o?void 0:o.stopPropagation)||void 0===t||t.call(o),S();const r=d();p("u_app_push_click",Object.assign({action_name:null!==(i=null==j?void 0:j.install)&&void 0!==i?i:"bottomSticky_install_hp",page_name:null==r?void 0:r.pageName,vertical:null==r?void 0:r.vertical,source_channel:(null===(n=null===location||void 0===location?void 0:location.search)||void 0===n?void 0:n.split("utm_source=").length)>1?null===(l=null===(e=null===(a=null===location||void 0===location?void 0:location.search)||void 0===a?void 0:a.split("utm_source="))||void 0===e?void 0:e.pop())||void 0===l?void 0:l.split("&")[0]:"organic"},z))},loading:_||!1,styleConfig:{root:[{marginLeft:"auto",right:0,height:32}]},children:y})]})})};export{b as AppPushStickyBanner};
|
|
2
2
|
//# sourceMappingURL=ct-platform-app-push-sticky-banner.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ct-platform-app-push-sticky-banner.esm.js","sources":["
|
|
1
|
+
{"version":3,"file":"ct-platform-app-push-sticky-banner.esm.js","sources":["../packages/components/AppPushStickyBanner/src/constants.ts","../packages/components/AppPushStickyBanner/src/index.module.ts","../packages/components/AppPushStickyBanner/src/AppPushStickyBanner.tsx"],"sourcesContent":[null,null,null],"names":["styles","makeStyles","display","alignItems","justifyContent","boxSizing","flexDirection","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","background","padding","boxShadow","width","gap","icon","height","objectFit","text","fontFeatureSettings","margin","lineHeight","AppPushStickyBanner","header","ratings","subtext","buttonText","buttonLoadingState","onBannerLoad","onBannerClick","onButtonClick","customActionNames","ravenPayload","isBenefitDataLoading","style","jsonData","setJsonData","useState","failedToLoadLottie","setFailedToLoadLottie","useEffect","async","response","fetch","ok","Error","data","json","error","console","fetchData","eventProps","getRavenEventProps","ravenSDKTrigger","Object","assign","action_name","impression","_a","page_name","pageName","vertical","source_channel","_b","location","search","split","length","_e","_d","_c","pop","_jsx","Container","as","_jsxs","onClick","expand","styleConfig","root","children","Lottie","options","animationData","src","DownloadApp","alt","loading","Shimmer","Typography","variant","TypographyVariant","HM4","color","TypographyColor","SUCCESS","P3","Star","Button","ButtonVariant","OUTLINE","event","stopPropagation","install","_f","marginLeft","right"],"mappings":"ioBAAO,MCGDA,EAASC,GAAW,KAAO,CAC/B,sBAAuB,CACrBC,QAAS,OACTC,WAAY,aACZC,eAAgB,gB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Q,SAAAN,eAAQ,IAARA,cAAQ,EAARA,SAAUC,cAAM,IAAAK,OAAA,EAAAA,EAAEJ,MAAM,eAAeC,QAAS,EAIpC,QAHNqC,EAC0B,QAD1BpC,EAAgB,QAAhBC,SAAAL,eAAQ,IAARA,cAAQ,EAARA,SAAUC,cAAM,IAAAI,OAAA,EAAAA,EACVH,MAAM,sBAAc,IAAAE,OAAA,EAAAA,EACpBG,aACA,IAAAiC,OAAA,EAAAA,EAAAtC,MAAM,KAAK,GACjB,WAEPlC,GACL,EA8EUuD,QAAS5D,IAAsB,EAC/BmD,YAAa,CACTC,KAAM,CAAC,CACH0B,WAAY,OACZC,MAAO,EACP1F,OAAQ,MAEfgE,SAEAtD,QAIf"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
'container--vertical': {
|
|
3
|
+
display: "flex";
|
|
4
|
+
alignItems: "flex-start";
|
|
5
|
+
justifyContent: "space-between";
|
|
6
|
+
boxSizing: "border-box";
|
|
7
|
+
flexDirection: "column";
|
|
8
|
+
};
|
|
9
|
+
'container--horizontal': {
|
|
10
|
+
display: "flex";
|
|
11
|
+
alignItems: "center";
|
|
12
|
+
justifyContent: "space-between";
|
|
13
|
+
boxSizing: "border-box";
|
|
14
|
+
};
|
|
15
|
+
'container--horizontal--main': {
|
|
16
|
+
display: "flex";
|
|
17
|
+
alignItems: "center";
|
|
18
|
+
justifyContent: "space-between";
|
|
19
|
+
boxSizing: "border-box";
|
|
20
|
+
borderTopLeftRadius: number;
|
|
21
|
+
borderTopRightRadius: number;
|
|
22
|
+
borderBottomRightRadius: number;
|
|
23
|
+
borderBottomLeftRadius: number;
|
|
24
|
+
background: string;
|
|
25
|
+
padding: number;
|
|
26
|
+
boxShadow: string;
|
|
27
|
+
width: "100%";
|
|
28
|
+
gap: number;
|
|
29
|
+
};
|
|
30
|
+
'container--horizontal--gap': {
|
|
31
|
+
display: "flex";
|
|
32
|
+
alignItems: "center";
|
|
33
|
+
justifyContent: "space-between";
|
|
34
|
+
boxSizing: "border-box";
|
|
35
|
+
gap: number;
|
|
36
|
+
};
|
|
37
|
+
icon: {
|
|
38
|
+
height: number;
|
|
39
|
+
width: number;
|
|
40
|
+
objectFit: "contain";
|
|
41
|
+
};
|
|
42
|
+
'icon--animated': {
|
|
43
|
+
height: number;
|
|
44
|
+
width: number;
|
|
45
|
+
objectFit: "contain";
|
|
46
|
+
};
|
|
47
|
+
text: {
|
|
48
|
+
fontFeatureSettings: string;
|
|
49
|
+
padding: number;
|
|
50
|
+
margin: number;
|
|
51
|
+
};
|
|
52
|
+
'text--large': {
|
|
53
|
+
padding: number;
|
|
54
|
+
margin: number;
|
|
55
|
+
fontFeatureSettings: string;
|
|
56
|
+
lineHeight: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default styles;
|
|
60
|
+
//# sourceMappingURL=index.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.d.ts","sourceRoot":"","sources":["../packages/components/AppPushStickyBanner/src/index.module.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgET,CAAC;AAEJ,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-platform-app-push-sticky-banner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1-beta.0",
|
|
4
4
|
"description": "App push sticky banner Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-app-push-sticky-banner.cjs.js",
|
|
@@ -10,16 +10,17 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cleartrip/ct-design-button": "2.6.0",
|
|
14
|
-
"@cleartrip/ct-design-typography": "2.6.0",
|
|
15
13
|
"react-lottie": "1.2.4",
|
|
16
|
-
"@cleartrip/ct-platform-assets": "
|
|
17
|
-
"@cleartrip/ct-platform-
|
|
18
|
-
"@cleartrip/ct-platform-
|
|
14
|
+
"@cleartrip/ct-platform-assets": "6.0.1-beta.0",
|
|
15
|
+
"@cleartrip/ct-platform-shimmer": "6.0.1-beta.0",
|
|
16
|
+
"@cleartrip/ct-platform-utils": "6.0.1-beta.0"
|
|
19
17
|
},
|
|
20
18
|
"peerDependencies": {
|
|
21
19
|
"react": ">=16.8.0",
|
|
22
|
-
"react-dom": ">=16.8.0"
|
|
20
|
+
"react-dom": ">=16.8.0",
|
|
21
|
+
"@cleartrip/ct-design-button": "5.27.0-SNAPSHOT-native-main.0",
|
|
22
|
+
"@cleartrip/ct-design-typography": "5.27.0-SNAPSHOT-native-main.0",
|
|
23
|
+
"@cleartrip/ct-design-types": "5.27.0-SNAPSHOT-native-main.0"
|
|
23
24
|
},
|
|
24
25
|
"author": "Cleartrip",
|
|
25
26
|
"license": "ISC",
|