@cleartrip/ct-platform-top-offers 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.
- package/dist/TopOffers.d.ts +5 -0
- package/dist/TopOffers.d.ts.map +1 -0
- package/dist/TopOffers.types.d.ts +4 -0
- package/dist/TopOffers.types.d.ts.map +1 -0
- package/dist/ct-platform-top-offers.cjs.js +2 -0
- package/dist/ct-platform-top-offers.cjs.js.map +1 -0
- package/dist/ct-platform-top-offers.esm.js +2 -0
- package/dist/ct-platform-top-offers.esm.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopOffers.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiGvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TopOffers.types.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/TopOffers.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),a=require("@cleartrip/ct-design-typography"),r=require("@cleartrip/ct-platform-assets"),i=require("@cleartrip/ct-platform-merch-carousel"),l=require("@cleartrip/ct-platform-pill-carousel"),s=require("@cleartrip/ct-platform-widget-manager");var o="index-module_top-offers__container__Z747x",p="index-module_top-offers__header__hIxia";!function(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");.index-module_top-offers__container__Z747x{align-items:flex-start;background:linear-gradient(180deg,#e4edff,#f7faff);display:flex;flex-direction:column;gap:16px;padding:16px 0 24px}.index-module_top-offers__header__hIxia{font-feature-settings:"dlig" on,"clig" off,"liga" off;font-family:Inter;font-style:normal;padding-left:16px}');exports.TopOffers=function(m){return m.config,t.jsx(t.Fragment,{children:t.jsxs("div",e.__assign({className:o},{children:[t.jsx(a.Typography,e.__assign({variant:a.TypographyVariant.HM3,className:p},{children:"Top Offers"})),t.jsx(l.PillCarousel,{carouselData:[{text:"For you",imageUrl:r.ForYouPill},{text:"Bank",imageUrl:r.BankPill},{text:"Flights",imageUrl:r.FlightPill},{text:"Hotels",imageUrl:r.HotelPill},{text:"Buses",imageUrl:r.BusPill},{text:"Trains",imageUrl:r.TrainPill}],carouselType:l.CarouselType.PILL_CHIP,onItemClick:function(){},styleConfig:{carouselStyleConfig:{paddingLeft:"16px",paddingRight:"16px"}}}),t.jsx("div",e.__assign({style:{width:"100%",marginTop:"8px"}},{children:t.jsx(i.MerchCarousel,e.__assign({slidesToDisplay:1.5,slides:[{itemId:"item1",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 1"}},{itemId:"item2",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 2"}},{itemId:"item3",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 3"}},{itemId:"item4",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 4"}},{itemId:"item5",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 5"}}]},s.MerchCarouselPeekingProps))}))]}))})};
|
|
2
|
+
//# sourceMappingURL=ct-platform-top-offers.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct-platform-top-offers.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TopOffers/src/TopOffers.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_a","config","_jsx","_Fragment","children","_jsxs","jsxs","__assign","className","styles","Typography","variant","TypographyVariant","HM3","PillCarousel","carouselData","text","imageUrl","ForYouPill","BankPill","FlightPill","HotelPill","BusPill","TrainPill","carouselType","CarouselType","PILL_CHIP","onItemClick","styleConfig","carouselStyleConfig","paddingLeft","paddingRight","width","marginTop","MerchCarousel","slid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CACJ,CACIC,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,cAIbC,EAAyBA,oCAMrD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as e,Fragment as a,jsxs as r}from"react/jsx-runtime";import{Typography as i,TypographyVariant as o}from"@cleartrip/ct-design-typography";import{ForYouPill as l,BankPill as m,FlightPill as p,HotelPill as s,BusPill as f,TrainPill as n}from"@cleartrip/ct-platform-assets";import{MerchCarousel as c}from"@cleartrip/ct-platform-merch-carousel";import{PillCarousel as d,CarouselType as g}from"@cleartrip/ct-platform-pill-carousel";import{MerchCarouselPeekingProps as u}from"@cleartrip/ct-platform-widget-manager";var _="index-module_top-offers__container__Z747x",h="index-module_top-offers__header__hIxia";!function(t,e){void 0===e&&(e={});var a=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===a&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");.index-module_top-offers__container__Z747x{align-items:flex-start;background:linear-gradient(180deg,#e4edff,#f7faff);display:flex;flex-direction:column;gap:16px;padding:16px 0 24px}.index-module_top-offers__header__hIxia{font-feature-settings:"dlig" on,"clig" off,"liga" off;font-family:Inter;font-style:normal;padding-left:16px}');var x=function(x){return x.config,e(a,{children:r("div",t({className:_},{children:[e(i,t({variant:o.HM3,className:h},{children:"Top Offers"})),e(d,{carouselData:[{text:"For you",imageUrl:l},{text:"Bank",imageUrl:m},{text:"Flights",imageUrl:p},{text:"Hotels",imageUrl:s},{text:"Buses",imageUrl:f},{text:"Trains",imageUrl:n}],carouselType:g.PILL_CHIP,onItemClick:function(){},styleConfig:{carouselStyleConfig:{paddingLeft:"16px",paddingRight:"16px"}}}),e("div",t({style:{width:"100%",marginTop:"8px"}},{children:e(c,t({slidesToDisplay:1.5,slides:[{itemId:"item1",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 1"}},{itemId:"item2",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 2"}},{itemId:"item3",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 3"}},{itemId:"item4",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 4"}},{itemId:"item5",targetUrl:"https://www.cleartrip.com/flights",image:{url:"https://fastui.cltpstatic.com/image/upload/w_224,h_178,dpr_2,f_auto,q_auto/offermgmt/images/banner/top-offers-card-1.png",alt:"Image 5"}}]},u))}))]}))})};export{x as TopOffers};
|
|
2
|
+
//# sourceMappingURL=ct-platform-top-offers.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ct-platform-top-offers.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/TopOffers/src/TopOffers.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],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","TopOffers","_a","config","_jsx","_Fragment","children","_jsxs","__assign","className","styles","Typography","variant","TypographyVariant","HM3","PillCarousel","carouselData","text","imageUrl","ForYouPill","BankPill","FlightPill","HotelPill","BusPill","TrainPill","carouselType","CarouselType","PILL_CHIP","onItemClick","styleConfig","carouselStyleConfig","paddingLeft","paddingRight","width","marginTop","MerchCarousel","slidesToDisplay","slides","itemId","targetUrl","image","url","alt","MerchCarouselPeekingProps"],"mappings":"qoBAAA,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,waCFM,IAAAe,EAAsC,SAACC,GACzC,OADiDA,EAAAC,OAE7CC,EAAAC,EAAA,CAAAC,SACIC,EAAK,MAAAC,EAAA,CAAAC,UAAWC,GAA+B,CAAAJ,SAAA,CAC3CF,EAACO,KACGC,QAASC,EAAkBC,IAC3BL,UAAWC,GAA4B,CAAAJ,SAAA,gBAI3CF,EAACW,EAAY,CACTC,aAAc,CACV,CACIC,KAAM,UACNC,SAAUC,GAEd,CACIF,KAAM,OACNC,SAAUE,GAEd,CACIH,KAAM,UACNC,SAAUG,GAEd,CACIJ,KAAM,SACNC,SAAUI,GAEd,CACIL,KAAM,QACNC,SAAUK,GAEd,CACIN,KAAM,SACNC,SAAUM,IAGlBC,aAAcC,EAAaC,UAC3BC,YAAa,WAAQ,EACrBC,YAAa,CACTC,oBAAqB,CACjBC,YAAa,OACbC,aAAc,WAI1B5B,WAAKZ,MAAO,CAAEyC,MAAO,OAAQC,UAAW,QAAO,CAAA5B,SAC3CF,EAAC+B,EAAa3B,EAAA,CACV4B,gBAAiB,IACjBC,OAAQ,CACJ,CACIC,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,YAGb,CACIJ,OAAQ,QACRC,UAAW,oCACXC,MAAO,CACHC,IAAK,2HACLC,IAAK,cAIbC,YAM5B","x_google_ignoreList":[0]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/TopOffers/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,cAAc,mBAAmB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cleartrip/ct-platform-top-offers",
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"description": "Top Offers Component",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "dist/ct-platform-top-offers.cjs.js",
|
|
7
|
+
"module": "dist/ct-platform-top-offers.esm.js",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@cleartrip/ct-design-typography": "2.6.0",
|
|
14
|
+
"swiper": "6.8.4",
|
|
15
|
+
"@cleartrip/ct-platform-assets": "2.4.0",
|
|
16
|
+
"@cleartrip/ct-platform-pill-carousel": "0.0.1",
|
|
17
|
+
"@cleartrip/ct-platform-merch-carousel": "2.4.0",
|
|
18
|
+
"@cleartrip/ct-platform-widget-manager": "2.5.0"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"react": ">=16.8.0",
|
|
22
|
+
"react-dom": ">=16.8.0"
|
|
23
|
+
},
|
|
24
|
+
"author": "Cleartrip",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
28
|
+
"watch-package": "rollup -c -w",
|
|
29
|
+
"build-package": "rollup -c",
|
|
30
|
+
"build-package:clean": "rm -rf dist && rollup -c"
|
|
31
|
+
}
|
|
32
|
+
}
|