@cleartrip/ct-platform-hotel-cross-sell-lpg-bottomsheet 3.0.3-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/HotelLPGBottomSheet.d.ts +5 -0
- package/dist/HotelLPGBottomSheet.d.ts.map +1 -0
- package/dist/HotelLPGBottomSheet.types.d.ts +11 -0
- package/dist/HotelLPGBottomSheet.types.d.ts.map +1 -0
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js +2 -0
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js.map +1 -0
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js +2 -0
- package/dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +31 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HotelLPGBottomSheet.d.ts","sourceRoot":"","sources":["../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAK9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAGvE,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA4B3D,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { HotelLPGContentType } from '@cleartrip/ct-platform-types';
|
2
|
+
export interface HotelLPGBottomSheetProps {
|
3
|
+
onCloseButtonClick: () => void;
|
4
|
+
isBottomSheetExpanded?: boolean;
|
5
|
+
content: HotelLPGContentType;
|
6
|
+
ravenPayload?: {
|
7
|
+
[key: string]: string | number;
|
8
|
+
};
|
9
|
+
closeOnOutsideClick?: boolean;
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=HotelLPGBottomSheet.types.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HotelLPGBottomSheet.types.d.ts","sourceRoot":"","sources":["../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAEnE,MAAM,WAAW,wBAAwB;IACrC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CACjC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";var e=require("tslib"),t=require("react/jsx-runtime"),o=require("@cleartrip/ct-platform-hotel-cross-sell-lpg-content"),n=require("@cleartrip/ct-platform-drawer");var i="index-module_container__x1Eix";!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===o&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".index-module_container__x1Eix{border-radius:1rem 1rem 0 0;max-height:calc(100dvh - 100px);overflow-y:scroll}");exports.HotelLPGBottomSheet=function(r){var s=r.onCloseButtonClick,l=r.isBottomSheetExpanded,c=void 0===l||l,d=r.closeOnOutsideClick,a=void 0!==d&&d,u=r.content;return t.jsx(n.Drawer,e.__assign({overlay:!0,isOpen:c,direction:"bottom",showClose:!0,handleClose:function(e){null==e||e.stopPropagation(),s&&"function"==typeof s&&s()},onClose:function(){},closeOnOutsideClick:a},{children:t.jsx("div",e.__assign({className:i},{children:t.jsx(o.HotelLPGContentWidget,{content:u})}))}))};
|
2
|
+
//# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.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","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","_jsx","Drawer","__assign","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","onClose","className","Style","children","HotelLPGContentWidget"],"mappings":"sNAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,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,+IChBgE,SAACe,GAC7D,IAAAC,uBACAC,EAAAF,EAAAG,sBAAAA,cAA4BD,EAC5BE,EAAAJ,EAAAK,oBAAAA,OAAmB,IAAAD,GAAQA,EAC3BE,EAAON,EAAAM,QASP,OACIC,EAAAA,IAACC,EAAAA,OAAMC,EAAAA,SAAA,CACHC,SAAS,EACTC,OAAQR,EACRS,UAAW,SACXC,WAAW,EACXC,YAbuB,SAACC,GAC5BA,SAAAA,EAAKC,kBACDf,GAAmD,mBAAtBA,GAC7BA,GAER,EASQgB,QAAS,WAAO,EAChBZ,oBAAqBA,aAErBE,EAAAA,IAAK,MAAAE,EAAAA,SAAA,CAAAS,UAAWC,GACf,CAAAC,SAAAb,MAACc,EAAAA,sBAAqB,CAACf,QAASA,SAI7C","x_google_ignoreList":[0]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{HotelLPGContentWidget as o}from"@cleartrip/ct-platform-hotel-cross-sell-lpg-content";import{Drawer as n}from"@cleartrip/ct-platform-drawer";var r="index-module_container__x1Eix";!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".index-module_container__x1Eix{border-radius:1rem 1rem 0 0;max-height:calc(100dvh - 100px);overflow-y:scroll}");var i=function(i){var l=i.onCloseButtonClick,c=i.isBottomSheetExpanded,d=void 0===c||c,s=i.closeOnOutsideClick,a=void 0!==s&&s,m=i.content;return t(n,e({overlay:!0,isOpen:d,direction:"bottom",showClose:!0,handleClose:function(e){null==e||e.stopPropagation(),l&&"function"==typeof l&&l()},onClose:function(){},closeOnOutsideClick:a},{children:t("div",e({className:r},{children:t(o,{content:m})}))}))};export{i as HotelLPGBottomSheet};
|
2
|
+
//# sourceMappingURL=ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js","sources":["../../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../packages/components/HotelLPGBottomSheet/src/HotelLPGBottomSheet.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","HotelLPGBottomSheet","_a","onCloseButtonClick","_b","isBottomSheetExpanded","_c","closeOnOutsideClick","content","_jsx","Drawer","__assign","overlay","isOpen","direction","showClose","handleClose","evt","stopPropagation","onClose","className","Style","children","HotelLPGContentWidget"],"mappings":"mQAAA,SAAqBA,EAAKC,QACX,IAARA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,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,mHChBM,IAAAe,EAA0D,SAACC,GAC7D,IAAAC,uBACAC,EAAAF,EAAAG,sBAAAA,cAA4BD,EAC5BE,EAAAJ,EAAAK,oBAAAA,OAAmB,IAAAD,GAAQA,EAC3BE,EAAON,EAAAM,QASP,OACIC,EAACC,EAAMC,EAAA,CACHC,SAAS,EACTC,OAAQR,EACRS,UAAW,SACXC,WAAW,EACXC,YAbuB,SAACC,GAC5BA,SAAAA,EAAKC,kBACDf,GAAmD,mBAAtBA,GAC7BA,GAER,EASQgB,QAAS,WAAO,EAChBZ,oBAAqBA,aAErBE,EAAK,MAAAE,EAAA,CAAAS,UAAWC,GACf,CAAAC,SAAAb,EAACc,EAAqB,CAACf,QAASA,SAI7C","x_google_ignoreList":[0]}
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/HotelLPGBottomSheet/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,cAAc,6BAA6B,CAAC"}
|
package/package.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "@cleartrip/ct-platform-hotel-cross-sell-lpg-bottomsheet",
|
3
|
+
"version": "3.0.3-beta.0",
|
4
|
+
"description": "Hotel cross sell LPG bottomsheet Component",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"main": "dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.cjs.js",
|
7
|
+
"module": "dist/ct-platform-hotel-cross-sell-lpg-bottomsheet.esm.js",
|
8
|
+
"sideEffects": false,
|
9
|
+
"files": [
|
10
|
+
"dist"
|
11
|
+
],
|
12
|
+
"dependencies": {
|
13
|
+
"classnames": "^2.5.1",
|
14
|
+
"@cleartrip/ct-design-components": "2.3.0",
|
15
|
+
"@cleartrip/ct-platform-utils": "3.18.1-beta.10",
|
16
|
+
"@cleartrip/ct-platform-drawer": "3.9.1-beta.11",
|
17
|
+
"@cleartrip/ct-platform-hotel-cross-sell-lpg-content": "3.0.3-beta.0",
|
18
|
+
"@cleartrip/ct-platform-types": "3.5.1-beta.11"
|
19
|
+
},
|
20
|
+
"peerDependencies": {
|
21
|
+
"react": ">=16.8.0",
|
22
|
+
"react-dom": ">=16.8.0"
|
23
|
+
},
|
24
|
+
"author": "Cleartrip",
|
25
|
+
"license": "ISC",
|
26
|
+
"scripts": {
|
27
|
+
"watch-package": "rollup -c -w",
|
28
|
+
"build-package": "rollup -c",
|
29
|
+
"build-package:clean": "rm -rf dist && rollup -c"
|
30
|
+
}
|
31
|
+
}
|