@cleartrip/ct-platform-banner 0.1.42-b5 → 0.1.42-b6
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.
|
@@ -129,5 +129,5 @@ var CtBanner = function (_a) {
|
|
|
129
129
|
(bannerIndex === tupleIndex || index === undefined) && (jsxRuntime.jsx("div", tslib.__assign({ className: 'utilswrapper' }, { children: jsxRuntime.jsx("div", tslib.__assign({ className: "ct-banner p-relative ".concat(componentClassNames ? componentClassNames : ''), ref: bannerRef }, { children: jsxRuntime.jsxs("div", tslib.__assign({ style: bannerImageStyle, onClick: handleBannerClick }, { children: [img_url && (jsxRuntime.jsx("img", { src: img_url, className: img_class, height: img_height })), (button_one_link || button_two_link) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("a", tslib.__assign({ href: button_one_link, target: targetAttribute }, { children: jsxRuntime.jsx("div", { className: btn1_class, style: buttonOneStyle }) })), jsxRuntime.jsx("a", tslib.__assign({ href: button_two_link, target: targetAttribute }, { children: jsxRuntime.jsx("div", { className: btn2_class, style: buttonTwoStyle }) }))] })), title && (jsxRuntime.jsxs("div", tslib.__assign({ className: banner_container_class, style: bannerContainerStyle }, { children: [is_banner_icon === 'true' && (jsxRuntime.jsx("div", tslib.__assign({ className: banner_icon_class }, { children: banner_icon ? (jsxRuntime.jsx("img", { src: banner_icon, style: bannerIconStyle })) : (jsxRuntime.jsx(ctPlatformAssets.CTLogo, { fill: '#FF4F17' })) }))), jsxRuntime.jsxs("div", tslib.__assign({ className: title_container_class, style: titleContainerStyle }, { children: [jsxRuntime.jsx("div", tslib.__assign({ className: title_class }, { children: title })), jsxRuntime.jsx("div", tslib.__assign({ className: subtitle_class }, { children: subTitle })), is_content_icon === 'true' && (jsxRuntime.jsx("div", tslib.__assign({ className: content_icon_class }, { children: content_icon ? (jsxRuntime.jsx("img", { src: content_icon, style: contentIconStyle })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(ctPlatformAssets.Ratings, {}), "(10M+ Downloads)"] })) })))] })), jsxRuntime.jsx("div", tslib.__assign({ className: cta_class, style: bannerCtastyle }, { children: jsxRuntime.jsx("span", tslib.__assign({ className: cta_copy_class, onClick: handleNonClickableFlow }, { children: cta })) }))] })))] })) })) }))) }));
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
exports.
|
|
132
|
+
exports.CTBanner = CtBanner;
|
|
133
133
|
//# sourceMappingURL=ct-platform-banner.cjs.js.map
|
|
@@ -127,5 +127,5 @@ var CtBanner = function (_a) {
|
|
|
127
127
|
(bannerIndex === tupleIndex || index === undefined) && (jsx("div", __assign({ className: 'utilswrapper' }, { children: jsx("div", __assign({ className: "ct-banner p-relative ".concat(componentClassNames ? componentClassNames : ''), ref: bannerRef }, { children: jsxs("div", __assign({ style: bannerImageStyle, onClick: handleBannerClick }, { children: [img_url && (jsx("img", { src: img_url, className: img_class, height: img_height })), (button_one_link || button_two_link) && (jsxs(Fragment, { children: [jsx("a", __assign({ href: button_one_link, target: targetAttribute }, { children: jsx("div", { className: btn1_class, style: buttonOneStyle }) })), jsx("a", __assign({ href: button_two_link, target: targetAttribute }, { children: jsx("div", { className: btn2_class, style: buttonTwoStyle }) }))] })), title && (jsxs("div", __assign({ className: banner_container_class, style: bannerContainerStyle }, { children: [is_banner_icon === 'true' && (jsx("div", __assign({ className: banner_icon_class }, { children: banner_icon ? (jsx("img", { src: banner_icon, style: bannerIconStyle })) : (jsx(CTLogo, { fill: '#FF4F17' })) }))), jsxs("div", __assign({ className: title_container_class, style: titleContainerStyle }, { children: [jsx("div", __assign({ className: title_class }, { children: title })), jsx("div", __assign({ className: subtitle_class }, { children: subTitle })), is_content_icon === 'true' && (jsx("div", __assign({ className: content_icon_class }, { children: content_icon ? (jsx("img", { src: content_icon, style: contentIconStyle })) : (jsxs(Fragment, { children: [jsx(Ratings, {}), "(10M+ Downloads)"] })) })))] })), jsx("div", __assign({ className: cta_class, style: bannerCtastyle }, { children: jsx("span", __assign({ className: cta_copy_class, onClick: handleNonClickableFlow }, { children: cta })) }))] })))] })) })) }))) }));
|
|
128
128
|
};
|
|
129
129
|
|
|
130
|
-
export { CtBanner as
|
|
130
|
+
export { CtBanner as CTBanner };
|
|
131
131
|
//# sourceMappingURL=ct-platform-banner.esm.js.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Banner/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/Banner/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-platform-banner",
|
|
3
|
-
"version": "0.1.42-
|
|
3
|
+
"version": "0.1.42-b6",
|
|
4
4
|
"description": "Banner Component",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-platform-banner.cjs.js",
|
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
"react": ">=16.8.0",
|
|
17
17
|
"react-dom": ">=16.8.0"
|
|
18
18
|
},
|
|
19
|
-
"publishConfig": {
|
|
20
|
-
"access": "public"
|
|
21
|
-
},
|
|
22
19
|
"author": "Cleartrip",
|
|
23
20
|
"license": "ISC",
|
|
24
21
|
"scripts": {
|