int-components 0.0.16 → 0.0.17
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/README.md +1 -1
- package/dist/index.css +127 -126
- package/dist/index.js +1 -1
- package/dist/rh-components/{HotelsLanding/HeroSection → HeroSection}/HeroSection.d.ts +1 -0
- package/dist/rh-components/HeroSection/HeroSection.d.ts.map +1 -0
- package/dist/rh-components/HeroSection/index.css +120 -0
- package/dist/rh-components/HeroSection/index.d.ts.map +1 -0
- package/dist/rh-components/HeroSection/index.js +1 -0
- package/dist/rh-components/HotelsLanding/index.css +31 -30
- package/dist/rh-components/HotelsLanding/index.js +1 -1
- package/dist/rh-components/{HotelsLanding/HotelsSection → HotelsSection}/HotelsSection.d.ts +3 -3
- package/dist/rh-components/HotelsSection/HotelsSection.d.ts.map +1 -0
- package/dist/rh-components/HotelsSection/index.css +258 -0
- package/dist/rh-components/HotelsSection/index.d.ts.map +1 -0
- package/dist/rh-components/HotelsSection/index.js +1 -0
- package/dist/rh-components/index.d.ts +4 -0
- package/dist/rh-components/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/rh-components/HotelsLanding/HeroSection/HeroSection.d.ts.map +0 -1
- package/dist/rh-components/HotelsLanding/HeroSection/index.d.ts.map +0 -1
- package/dist/rh-components/HotelsLanding/HotelsSection/HotelsSection.d.ts.map +0 -1
- package/dist/rh-components/HotelsLanding/HotelsSection/index.d.ts.map +0 -1
- /package/dist/rh-components/{HotelsLanding/HeroSection → HeroSection}/index.d.ts +0 -0
- /package/dist/rh-components/{HotelsLanding/HotelsSection → HotelsSection}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react/jsx-runtime";var t={39:(e,t,o)=>{o.d(t,{L:()=>s});const s=(...e)=>e.filter(Boolean).join(" ")},93:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(178),l=o(130),a=o(39),n=o(670);const r=({title:e,subtitle:t,hotels:o,fluidMode:r})=>{const i=(0,l.u)(r);return(0,s.jsxs)("section",{className:(0,a.L)("HotelsSection-module__hotels--hGJyx",i),children:[e||t&&(0,s.jsxs)("header",{className:"HotelsSection-module__hotelsHeader--l_Qr5",children:[e&&(0,s.jsx)("h2",{className:"HotelsSection-module__hotelsTitle--zeGAj",children:e}),t&&(0,s.jsx)("p",{className:"HotelsSection-module__hotelsSubtitle--EAJhs",children:t})]}),(0,s.jsx)("ul",{className:"HotelsSection-module__hotelsList--jWxYc",children:o.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(n.A,{className:"HotelsSection-module__hotelCard--aCwpN",name:e.name,location:e.location,stars:e.stars,image:e.image,dates:e.dates,discountText:e.discountText,url:e.url,fluidMode:r})},e.name))})]})}},130:(e,t,o)=>{o.d(t,{N:()=>l,u:()=>a}),o(178);var s=o(992);const l=({children:e,fluidMode:t=!1})=>{fluidModeState.state=t;const o=`\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Bold.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'Aeonik';\n src: url('https://of.worldota.net/fonts/aeonik/Aeonik-Regular.woff2') format('woff2');\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n }\n\n @font-face {\n font-family: 'ABCGravity';\n src: url('https://of.worldota.net/fonts/ABCGravity/ABCGravity.woff2') format('woff2');\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n }\n \n ${t?fluidLayoutCss:staticLayoutCss};\n `;return _jsxs(_Fragment,{children:[_jsx("style",{dangerouslySetInnerHTML:{__html:o}}),e]})},a=e=>("boolean"==typeof e?e:s.b.state)?"layout-module__fluidLayout--BNE04":"layout-module__staticLayout--x_6dR"},178:(t,o,s)=>{var l,a;t.exports=(l={jsx:()=>e.jsx,jsxs:()=>e.jsxs},a={},s.d(a,l),a)},670:(e,t,o)=>{o.d(t,{A:()=>r});var s=o(178),l=o(130),a=o(39);const n={root:"HotelCard-module__root--popq0",rootFixed:"HotelCard-module__rootFixed--TvjpT",clickable:"HotelCard-module__clickable--mp25I",imageContainer:"HotelCard-module__imageContainer--FZfWz",image:"HotelCard-module__image--fREMp",discount:"HotelCard-module__discount--G2sau",discountText:"HotelCard-module__discountText--hH9Sf",content:"HotelCard-module__content--IA_3z",stars:"HotelCard-module__stars--jTODO",starFilled:"HotelCard-module__starFilled--Ps4vk",starEmpty:"HotelCard-module__starEmpty--FBbdo",title:"HotelCard-module__title--BOmwo",location:"HotelCard-module__location--uglfh",dates:"HotelCard-module__dates--mhAjB",priceInfoWrapper:"HotelCard-module__priceInfoWrapper--fplFE",priceInfo:"HotelCard-module__priceInfo--qLmoQ",bookNowText:"HotelCard-module__bookNowText--pgznJ",mainPriceText:"HotelCard-module__mainPriceText--wIEbi",infoPriceText:"HotelCard-module__infoPriceText--GSy_s"},r=({className:e="",name:t,location:o,stars:r,image:i,dates:d,discountText:c,onClick:m,url:u,width:f="auto",price:_,fluidMode:x})=>{const h=(0,l.u)(x),p=u?"a":"div",j=u?{href:u,target:"_blank",rel:"noopener noreferrer"}:{};return(0,s.jsxs)(p,{className:(0,a.L)(n.root,h,"fixed"===f&&n.rootFixed,e,u&&n.clickable),onClick:m,...j,children:[(0,s.jsxs)("div",{className:n.imageContainer,children:[(0,s.jsx)("img",{src:i,alt:t,className:n.image}),c?(0,s.jsx)("div",{className:n.discount,children:(0,s.jsx)("span",{className:n.discountText,dangerouslySetInnerHTML:{__html:c}})}):null]}),(0,s.jsxs)("div",{className:n.content,children:[(()=>{if(!r)return null;const e=[];for(let o=0;o<5;o++)e.push((0,s.jsx)("div",{className:o<r?n.starFilled:n.starEmpty},`star-${t}-${o}`));return(0,s.jsx)("div",{className:n.stars,children:e})})(),(0,s.jsx)("h3",{className:n.title,children:t}),o&&(0,s.jsx)("p",{className:n.location,children:o}),d&&(0,s.jsxs)("p",{className:n.dates,children:["Travel Dates: ",d]}),(0,s.jsx)("div",{className:n.priceInfoWrapper,children:(0,s.jsx)("div",{className:n.priceInfo,children:_?(0,s.jsxs)("div",{className:n.priceText,children:[(0,s.jsxs)("div",{className:n.mainPriceText,children:["From ",(0,s.jsx)("strong",{children:_})]}),(0,s.jsx)("div",{className:n.infoPriceText,children:(0,s.jsx)("span",{children:"For 1 night and 2 guests"})})]}):(0,s.jsx)("div",{className:n.bookNowText,children:"Book now"})})})]})]})}},992:(e,t,o)=>{o.d(t,{b:()=>s}),globalThis.__fluidModeState||(globalThis.__fluidModeState={state:!1});const s=globalThis.__fluidModeState}},o={};function s(e){var l=o[e];if(void 0!==l)return l.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,s),a.exports}s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var l={};s.d(l,{A:()=>a.A});var a=s(93);const n=l.A;export{n as default};
|
|
@@ -3,8 +3,12 @@ export type { FooterProps } from './Footer';
|
|
|
3
3
|
export { default as Footer } from './Footer';
|
|
4
4
|
export type { HeaderProps } from './Header';
|
|
5
5
|
export { default as Header } from './Header';
|
|
6
|
+
export type { HeroSectionProps } from './HeroSection';
|
|
7
|
+
export { default as HeroSection } from './HeroSection';
|
|
6
8
|
export type { HotelCardProps } from './HotelCard';
|
|
7
9
|
export { default as HotelCard } from './HotelCard';
|
|
8
10
|
export type { HotelsLandingProps } from './HotelsLanding';
|
|
9
11
|
export { default as HotelsLanding } from './HotelsLanding';
|
|
12
|
+
export type { HotelsSectionProps } from './HotelsSection';
|
|
13
|
+
export { default as HotelsSection } from './HotelsSection';
|
|
10
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rh-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rh-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeroSection.d.ts","sourceRoot":"","sources":["../../../../src/rh-components/HotelsLanding/HeroSection/HeroSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwC3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rh-components/HotelsLanding/HeroSection/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HotelsSection.d.ts","sourceRoot":"","sources":["../../../../src/rh-components/HotelsLanding/HotelsSection/HotelsSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3E,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/rh-components/HotelsLanding/HotelsSection/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
File without changes
|
|
File without changes
|