mautourco-components 0.2.166 → 0.2.167
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/components/molecules/BookingResume/ResumeAccom/ResumeAccom.css +7 -1
- package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.d.ts +1 -1
- package/dist/components/molecules/BookingResume/ResumeAccom/ResumeAccom.js +1 -1
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.css +14 -0
- package/dist/components/organisms/Booking/BookingDocket/BookingDocket.js +1 -1
- package/package.json +1 -1
- package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.css +4 -0
- package/src/components/molecules/BookingResume/ResumeAccom/ResumeAccom.tsx +18 -16
- package/src/components/organisms/Booking/BookingDocket/BookingDocket.css +7 -0
- package/src/components/organisms/Booking/BookingDocket/BookingDocket.tsx +1 -1
|
@@ -14,4 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
.resume-accom .service-info__item-content::before {
|
|
16
16
|
background-color: var(--color-border-medium);
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.resume-accom__rooms > :not([hidden]) ~ :not([hidden]) {
|
|
20
|
+
--tw-space-y-reverse: 0;
|
|
21
|
+
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
|
|
22
|
+
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
|
|
23
|
+
}
|
|
@@ -11,5 +11,5 @@ import './ResumeAccom.css';
|
|
|
11
11
|
export function ResumeAccom(props) {
|
|
12
12
|
var image = props.image, dates = props.dates, clientType = props.clientType, pax = props.pax, rooms = props.rooms, hotelName = props.hotelName;
|
|
13
13
|
var stay = useStays(dates).stay;
|
|
14
|
-
return (_jsxs(BookingResumeLayout, { title: "Accommodation", icon: "accom", image: image, className: "resume-accom", children: [_jsx(ServiceTitle, { title: hotelName }), _jsxs("div", { className: "space-y-2 mt-4", children: [_jsx(DateDisplay, { dates: dates, colorMode: "green" }), _jsxs(TextWithIcon, { icon: "night", children: [stay, " Nights"] }), _jsxs(Text, { variant: "medium", size: "sm", leading: "4", children: [_jsx("strong", { children: "Client types:" }), " ", clientType] }), _jsx(
|
|
14
|
+
return (_jsxs(BookingResumeLayout, { title: "Accommodation", icon: "accom", image: image, className: "resume-accom", children: [_jsx(ServiceTitle, { title: hotelName }), _jsxs("div", { className: "space-y-2 mt-4", children: [_jsx(DateDisplay, { dates: dates, colorMode: "green" }), _jsxs(TextWithIcon, { icon: "night", children: [stay, " Nights"] }), _jsxs(Text, { variant: "medium", size: "sm", leading: "4", children: [_jsx("strong", { children: "Client types:" }), " ", clientType] }), _jsx("div", { className: "resume-accom__rooms", children: rooms.map(function (room, index) { return (_jsxs("div", { children: [_jsx(PaxDisplay, { pax: pax[index] }), _jsxs("div", { className: "space-y-1", children: [_jsx(TextWithIcon, { icon: "accom", textSize: "sm", textVariant: "medium", children: room.RoomName }), _jsx(ServiceInfo.Item, { icon: "utensils", iconSize: "sm", textSize: "sm", textLeading: "4", textVariant: "medium", label: "Meal-Plan", children: room.MealPlan })] })] }, "rm-".concat(index))); }) })] })] }));
|
|
15
15
|
}
|
|
@@ -100,4 +100,18 @@
|
|
|
100
100
|
--component-button-color-outline-secondary-background-hover,
|
|
101
101
|
var(--button-color-outline-secondary-background-hover, #f0fdfb)
|
|
102
102
|
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.booking-docket__date-range {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (width > 1280px) {
|
|
111
|
+
|
|
112
|
+
.booking-docket__date-range {
|
|
113
|
+
flex-direction: row;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: space-between;
|
|
116
|
+
}
|
|
103
117
|
}
|
|
@@ -41,5 +41,5 @@ export function BookingDocket(props) {
|
|
|
41
41
|
setIsBookingOpen(true);
|
|
42
42
|
}
|
|
43
43
|
}, [isBookingOpen, resumes, isDesktop]);
|
|
44
|
-
return (_jsx(LazyMotion, { features: domAnimation, children: _jsxs("div", { className: "booking-docket__container", children: [!isDesktop && !isBookingOpen && (_jsx("div", { className: "flex justify-end mb-4", children: _jsxs(motion.button, { className: "booking-docket__mobile-button", onClick: handleBookingOpen, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.3 }, children: [_jsx(Icon, { name: "booking", size: "lg" }), _jsx(Text, { size: "lg", as: "span", variant: "bold", children: "Your booking" }), _jsx(Icon, { name: "eye", size: "lg" })] }, "booking-open") })), _jsx(AnimatePresence, { initial: false, children: isBookingOpen && (_jsx(motion.div, { className: "booking-docket", initial: { height: 0, opacity: 0 }, animate: { height: height, opacity: 1 }, exit: { height: 0 }, children: _jsxs("div", { ref: contentRef, children: [_jsxs("div", { className: "booking-docket__content", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(Heading, { level: 6, color: "accent", as: "h2", children: "Your Booking" }), _jsx("img", { src: logo, alt: "Mautourco Logo", width: 150 })] }), _jsxs("div", { className: "
|
|
44
|
+
return (_jsx(LazyMotion, { features: domAnimation, children: _jsxs("div", { className: "booking-docket__container", children: [!isDesktop && !isBookingOpen && (_jsx("div", { className: "flex justify-end mb-4", children: _jsxs(motion.button, { className: "booking-docket__mobile-button", onClick: handleBookingOpen, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.3 }, children: [_jsx(Icon, { name: "booking", size: "lg" }), _jsx(Text, { size: "lg", as: "span", variant: "bold", children: "Your booking" }), _jsx(Icon, { name: "eye", size: "lg" })] }, "booking-open") })), _jsx(AnimatePresence, { initial: false, children: isBookingOpen && (_jsx(motion.div, { className: "booking-docket", initial: { height: 0, opacity: 0 }, animate: { height: height, opacity: 1 }, exit: { height: 0 }, children: _jsxs("div", { ref: contentRef, children: [_jsxs("div", { className: "booking-docket__content", children: [_jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsx(Heading, { level: 6, color: "accent", as: "h2", children: "Your Booking" }), _jsx("img", { src: logo, alt: "Mautourco Logo", width: 150 })] }), _jsxs("div", { className: "booking-docket__date-range", children: [_jsx(Text, { variant: "bold", size: "lg", children: "Booking file date range :" }), _jsx(DateDisplay, { dates: dates })] })] }), _jsx(BookingResume, { children: resumes.map(function (resume, index) { return (_jsxs("div", { children: [resume.type === 'accommodation' && (_jsx(BookingResume.Accommodation, __assign({}, resume.data))), resume.type === 'transfer' && (_jsx(BookingResume.Transfer, __assign({}, resume.data))), resume.type === 'excursion' && (_jsx(BookingResume.Excursion, __assign({}, resume.data))), resume.type === 'otherService' && (_jsx(BookingResume.OtherService, __assign({}, resume.data)))] }, index)); }) })] }), _jsx("div", { className: "booking-docket__bg", children: _jsx(BookingDocketDeco, {}) })] }) }, "booking-docket")) }), !isDesktop && isBookingOpen && (_jsx("div", { className: "flex justify-end mt-10", children: _jsxs(motion.button, { className: "booking-docket__mobile-button", onClick: handleBookingOpen, initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { duration: 0.3 }, children: [_jsx(Text, { size: "lg", as: "span", variant: "bold", children: "Close" }), _jsx(Icon, { name: "close-circle", size: "lg" })] }, "booking-close") }))] }) }));
|
|
45
45
|
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export interface ResumeAccomProps {
|
|
|
14
14
|
image: string;
|
|
15
15
|
dates: string[];
|
|
16
16
|
clientType: string;
|
|
17
|
-
pax: BookingPax;
|
|
17
|
+
pax: BookingPax[];
|
|
18
18
|
hotelName: string;
|
|
19
19
|
rooms: Partial<RoomItem>[];
|
|
20
20
|
}
|
|
@@ -37,22 +37,24 @@ export function ResumeAccom(props: ResumeAccomProps) {
|
|
|
37
37
|
<Text variant="medium" size="sm" leading="4">
|
|
38
38
|
<strong>Client types:</strong> {clientType}
|
|
39
39
|
</Text>
|
|
40
|
-
<
|
|
41
|
-
<div>
|
|
40
|
+
<div className="resume-accom__rooms">
|
|
42
41
|
{rooms.map((room, index) => (
|
|
43
|
-
<div key={`rm-${index}`}
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
<div key={`rm-${index}`}>
|
|
43
|
+
<PaxDisplay pax={pax[index]} />
|
|
44
|
+
<div className="space-y-1">
|
|
45
|
+
<TextWithIcon icon="accom" textSize="sm" textVariant="medium">
|
|
46
|
+
{room.RoomName}
|
|
47
|
+
</TextWithIcon>
|
|
48
|
+
<ServiceInfo.Item
|
|
49
|
+
icon="utensils"
|
|
50
|
+
iconSize="sm"
|
|
51
|
+
textSize="sm"
|
|
52
|
+
textLeading="4"
|
|
53
|
+
textVariant="medium"
|
|
54
|
+
label="Meal-Plan">
|
|
55
|
+
{room.MealPlan}
|
|
56
|
+
</ServiceInfo.Item>
|
|
57
|
+
</div>
|
|
56
58
|
</div>
|
|
57
59
|
))}
|
|
58
60
|
</div>
|
|
@@ -96,7 +96,7 @@ export function BookingDocket(props: BookingDocketProps) {
|
|
|
96
96
|
</Heading>
|
|
97
97
|
<img src={logo} alt="Mautourco Logo" width={150} />
|
|
98
98
|
</div>
|
|
99
|
-
<div className="
|
|
99
|
+
<div className="booking-docket__date-range">
|
|
100
100
|
<Text variant="bold" size="lg">
|
|
101
101
|
Booking file date range :
|
|
102
102
|
</Text>
|