mautourco-components 0.2.15 → 0.2.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/dist/components/atoms/Icon/icons/BusIcon.js +1 -1
- package/dist/components/atoms/Tab/Tab.css +6 -8
- package/dist/components/atoms/Typography/Typography.d.ts +1 -1
- package/dist/components/atoms/Typography/Typography.js +18 -4
- package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +4 -0
- package/dist/components/molecules/ActionDropdown/ActionDropdown.js +2 -2
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.css +2097 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +20 -0
- package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +9 -2
- package/dist/components/molecules/DateDisplay/DateDisplay.js +5 -5
- package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +9 -0
- package/dist/components/molecules/DetailsInfo/DetailsAction.js +46 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency.css +2101 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency.d.ts +9 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency.js +19 -0
- package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +8 -0
- package/dist/components/molecules/DetailsInfo/DetailsFile.js +18 -0
- package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +12 -0
- package/dist/components/molecules/DetailsInfo/DetailsInfo.js +22 -0
- package/dist/components/molecules/DetailsInfo/index.d.ts +4 -0
- package/dist/components/molecules/DetailsInfo/index.js +1 -0
- package/dist/components/molecules/ServiceTitle/ServiceTitle.css +2094 -0
- package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +8 -0
- package/dist/components/molecules/ServiceTitle/ServiceTitle.js +18 -0
- package/dist/components/molecules/TableServiceItem/DetailsCol.d.ts +2 -2
- package/dist/components/molecules/TableServiceItem/DetailsCol.js +3 -2
- package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.d.ts +9 -0
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +20 -0
- package/dist/components/molecules/TimelineItem/ServiceExcursion.d.ts +8 -0
- package/dist/components/molecules/TimelineItem/ServiceExcursion.js +20 -0
- package/dist/components/molecules/TimelineItem/ServiceTransfer.d.ts +11 -0
- package/dist/components/molecules/TimelineItem/ServiceTransfer.js +19 -0
- package/dist/components/molecules/TimelineItem/TimelineHeader.css +2166 -0
- package/dist/components/molecules/TimelineItem/TimelineHeader.d.ts +10 -0
- package/dist/components/molecules/TimelineItem/TimelineHeader.js +21 -0
- package/dist/components/molecules/TimelineItem/TimelineItem.css +2084 -0
- package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +12 -0
- package/dist/components/molecules/TimelineItem/TimelineItem.js +23 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.d.ts +12 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +19 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationBody.d.ts +11 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationBody.js +21 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.d.ts +8 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +19 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +11 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.js +21 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.d.ts +7 -0
- package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +19 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.d.ts +6 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +27 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +2082 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.d.ts +12 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +26 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.d.ts +5 -0
- package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.js +7 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +2094 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.d.ts +13 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +21 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.d.ts +5 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +17 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.d.ts +4 -0
- package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +44 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +13 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.js +23 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +2134 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.d.ts +13 -0
- package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +19 -0
- package/dist/components/organisms/TabCancellationPolicy/index.d.ts +6 -0
- package/dist/components/organisms/TabCancellationPolicy/index.js +3 -0
- package/dist/components/organisms/Table/columns/booking-columns.js +1 -1
- package/dist/components/organisms/Table/columns/detail-resume-columns.js +1 -1
- package/dist/components/organisms/Table/columns/quotation-columns.js +3 -3
- package/dist/components/organisms/Timeline/Timeline.d.ts +15 -0
- package/dist/components/organisms/Timeline/Timeline.js +20 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +5 -0
- package/dist/types/table/action-dropdown-type.types.d.ts +1 -0
- package/dist/types/table/action-dropdown-type.types.js +1 -0
- package/package.json +1 -1
- package/src/components/atoms/Icon/icons/BusIcon.tsx +6 -2
- package/src/components/atoms/Tab/Tab.css +6 -8
- package/src/components/atoms/Typography/Typography.tsx +27 -7
- package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +16 -5
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.css +10 -0
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +47 -0
- package/src/components/molecules/DateDisplay/DateDisplay.tsx +25 -9
- package/src/components/molecules/DetailsInfo/DetailsAction.tsx +55 -0
- package/src/components/molecules/DetailsInfo/DetailsAgency.css +21 -0
- package/src/components/molecules/DetailsInfo/DetailsAgency.tsx +53 -0
- package/src/components/molecules/DetailsInfo/DetailsFile.tsx +27 -0
- package/src/components/molecules/DetailsInfo/DetailsInfo.tsx +17 -0
- package/src/components/molecules/DetailsInfo/index.ts +4 -0
- package/src/components/molecules/ServiceTitle/ServiceTitle.css +13 -0
- package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +19 -0
- package/src/components/molecules/TableServiceItem/DetailsCol.tsx +9 -5
- package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +19 -5
- package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +29 -0
- package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +28 -0
- package/src/components/molecules/TimelineItem/ServiceTransfer.tsx +25 -0
- package/src/components/molecules/TimelineItem/TimelineHeader.css +44 -0
- package/src/components/molecules/TimelineItem/TimelineHeader.tsx +41 -0
- package/src/components/molecules/TimelineItem/TimelineItem.css +7 -0
- package/src/components/molecules/TimelineItem/TimelineItem.tsx +17 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationAccom.tsx +41 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationBody.tsx +12 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationExcursion.tsx +31 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationHeader.tsx +11 -0
- package/src/components/organisms/TabCancellationPolicy/CancellationTransfer.tsx +29 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderAccom.tsx +31 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +3 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.tsx +48 -0
- package/src/components/organisms/TabCancellationPolicy/HeaderExcursion.tsx +18 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +8 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.tsx +47 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyExcursion.tsx +26 -0
- package/src/components/organisms/TabCancellationPolicy/PolicyTransfer.tsx +62 -0
- package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicy.tsx +13 -0
- package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +39 -0
- package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.tsx +44 -0
- package/src/components/organisms/TabCancellationPolicy/index.ts +7 -0
- package/src/components/organisms/Table/columns/booking-columns.tsx +1 -1
- package/src/components/organisms/Table/columns/detail-resume-columns.tsx +1 -1
- package/src/components/organisms/Table/columns/quotation-columns.tsx +10 -5
- package/src/components/organisms/Timeline/Timeline.tsx +59 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './TimelineItem.css';
|
|
3
|
+
export interface TimelineItemProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare function TimelineItem(props: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare namespace TimelineItem {
|
|
8
|
+
var Transfer: import("react").FC<import("./ServiceTransfer").ServiceTransferProps>;
|
|
9
|
+
var Accommodation: import("react").FC<import("./ServiceAccommodation").ServiceAccommodationProps>;
|
|
10
|
+
var Excursion: import("react").FC<import("./ServiceExcursion").ServiceExcursionProps>;
|
|
11
|
+
}
|
|
12
|
+
export default TimelineItem;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { ServiceAccommodation } from './ServiceAccommodation';
|
|
14
|
+
import { ServiceExcursion } from './ServiceExcursion';
|
|
15
|
+
import { ServiceTransfer } from './ServiceTransfer';
|
|
16
|
+
import './TimelineItem.css';
|
|
17
|
+
export default function TimelineItem(props) {
|
|
18
|
+
var children = props.children;
|
|
19
|
+
return _jsx("div", __assign({ className: "timeline-item" }, { children: children }));
|
|
20
|
+
}
|
|
21
|
+
TimelineItem.Transfer = ServiceTransfer;
|
|
22
|
+
TimelineItem.Accommodation = ServiceAccommodation;
|
|
23
|
+
TimelineItem.Excursion = ServiceExcursion;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Policy } from './PolicyAccom/PolicyAccom';
|
|
2
|
+
export interface CancellationAccomProps {
|
|
3
|
+
hotelName: string;
|
|
4
|
+
pax: number;
|
|
5
|
+
dates: string[];
|
|
6
|
+
image: string;
|
|
7
|
+
roomPolicies: Array<{
|
|
8
|
+
roomName: string;
|
|
9
|
+
policies: Policy[];
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export default function CancellationAccom(props: CancellationAccomProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import CancellationBody from './CancellationBody';
|
|
14
|
+
import CancellationHeader from './CancellationHeader';
|
|
15
|
+
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
export default function CancellationAccom(props) {
|
|
17
|
+
var hotelName = props.hotelName, pax = props.pax, dates = props.dates, image = props.image, roomPolicies = props.roomPolicies;
|
|
18
|
+
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Accommodation", icon: "accom", isOnRequest: true, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Accom, { hotelName: hotelName, pax: pax, dates: dates }) }) }, { children: _jsx(CancellationBody, { children: roomPolicies.map(function (roomPolicy, index) { return (_jsx(CancellationBody.Accom, { roomName: roomPolicy.roomName, policies: roomPolicy.policies }, index)); }) }) })));
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PolicyAccom from './PolicyAccom/PolicyAccom';
|
|
3
|
+
import PolicyExcursion from './PolicyExcursion';
|
|
4
|
+
import PolicyTransfer from './PolicyTransfer';
|
|
5
|
+
declare function CancellationBody(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace CancellationBody {
|
|
7
|
+
var Accom: typeof PolicyAccom;
|
|
8
|
+
var Excursion: typeof PolicyExcursion;
|
|
9
|
+
var Transfer: typeof PolicyTransfer;
|
|
10
|
+
}
|
|
11
|
+
export default CancellationBody;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import PolicyAccom from './PolicyAccom/PolicyAccom';
|
|
14
|
+
import PolicyExcursion from './PolicyExcursion';
|
|
15
|
+
import PolicyTransfer from './PolicyTransfer';
|
|
16
|
+
export default function CancellationBody(props) {
|
|
17
|
+
return _jsx("div", __assign({ className: "cancellation-body" }, props));
|
|
18
|
+
}
|
|
19
|
+
CancellationBody.Accom = PolicyAccom;
|
|
20
|
+
CancellationBody.Excursion = PolicyExcursion;
|
|
21
|
+
CancellationBody.Transfer = PolicyTransfer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface CancellationExcursionProps {
|
|
2
|
+
name: string;
|
|
3
|
+
date: string;
|
|
4
|
+
image: string;
|
|
5
|
+
pickUpPoint: string;
|
|
6
|
+
policies: string;
|
|
7
|
+
}
|
|
8
|
+
export default function CancellationExcursion(props: CancellationExcursionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import CancellationBody from './CancellationBody';
|
|
14
|
+
import CancellationHeader from './CancellationHeader';
|
|
15
|
+
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
export default function CancellationExcursion(props) {
|
|
17
|
+
var name = props.name, date = props.date, image = props.image, pickUpPoint = props.pickUpPoint, policies = props.policies;
|
|
18
|
+
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Excursion", icon: "map", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Excursion, { name: name, date: date }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Excursion, { pickUpPoint: pickUpPoint, policies: policies }) }) })));
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import HeaderAccom from './HeaderAccom';
|
|
3
|
+
import HeaderExcursion from './HeaderExcursion';
|
|
4
|
+
import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
|
|
5
|
+
declare function CancellationHeader(props: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace CancellationHeader {
|
|
7
|
+
var Accom: typeof HeaderAccom;
|
|
8
|
+
var Excursion: typeof HeaderExcursion;
|
|
9
|
+
var Transfer: typeof HeaderTransfer;
|
|
10
|
+
}
|
|
11
|
+
export default CancellationHeader;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import HeaderAccom from './HeaderAccom';
|
|
14
|
+
import HeaderExcursion from './HeaderExcursion';
|
|
15
|
+
import HeaderTransfer from './HeaderExcursion/HeaderTransfer';
|
|
16
|
+
export default function CancellationHeader(props) {
|
|
17
|
+
return _jsx("div", __assign({ className: "cancellation-header" }, props));
|
|
18
|
+
}
|
|
19
|
+
CancellationHeader.Accom = HeaderAccom;
|
|
20
|
+
CancellationHeader.Excursion = HeaderExcursion;
|
|
21
|
+
CancellationHeader.Transfer = HeaderTransfer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TransferData } from './HeaderExcursion/HeaderTransfer';
|
|
2
|
+
export interface CancellationTransferProps {
|
|
3
|
+
image: string;
|
|
4
|
+
carName: string;
|
|
5
|
+
transferData: TransferData[];
|
|
6
|
+
}
|
|
7
|
+
export default function CancellationTransfer(props: CancellationTransferProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import CancellationBody from './CancellationBody';
|
|
14
|
+
import CancellationHeader from './CancellationHeader';
|
|
15
|
+
import DetailsCancellationPolicy from './TabCancellationPolicy';
|
|
16
|
+
export default function CancellationTransfer(props) {
|
|
17
|
+
var image = props.image, carName = props.carName, transferData = props.transferData;
|
|
18
|
+
return (_jsx(DetailsCancellationPolicy.Layout, __assign({ title: "Transfer", icon: "car", isOnRequest: false, image: image, header: _jsx(CancellationHeader, { children: _jsx(CancellationHeader.Transfer, { data: transferData }) }) }, { children: _jsx(CancellationBody, { children: _jsx(CancellationBody.Transfer, { carName: carName }) }) })));
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { differenceInDays } from 'date-fns';
|
|
14
|
+
import { useMemo } from 'react';
|
|
15
|
+
import { DateDisplay } from '../../molecules/DateDisplay/DateDisplay';
|
|
16
|
+
import { ServiceTitle } from '../../molecules/ServiceTitle/ServiceTitle';
|
|
17
|
+
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
18
|
+
export default function HeaderAccom(props) {
|
|
19
|
+
var hotelName = props.hotelName, pax = props.pax, dates = props.dates;
|
|
20
|
+
var stay = useMemo(function () {
|
|
21
|
+
if (dates.length) {
|
|
22
|
+
return differenceInDays(dates[1], dates[0]);
|
|
23
|
+
}
|
|
24
|
+
return 0;
|
|
25
|
+
}, [dates]);
|
|
26
|
+
return (_jsxs("div", { children: [_jsx(ServiceTitle, { title: hotelName, textSize: "sm" }), _jsxs(TextWithIcon, __assign({ icon: "user" }, { children: [pax, " pax"] })), _jsx(DateDisplay, { dates: dates, arrowSize: "xs", calendarSize: "xs" }), _jsxs(TextWithIcon, __assign({ icon: "night" }, { children: [stay, " Nights"] }))] }));
|
|
27
|
+
}
|