mautourco-components 0.2.16 → 0.2.18
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/CardServiceAccom/CardServiceAccom.css +2104 -0
- package/dist/components/atoms/CardServiceAccom/CardServiceAccom.d.ts +7 -0
- package/dist/components/atoms/CardServiceAccom/CardServiceAccom.js +29 -0
- package/dist/components/atoms/Chip/Chip.css +9 -2
- package/dist/components/atoms/Chip/Chip.d.ts +4 -0
- package/dist/components/atoms/Chip/Chip.js +4 -2
- package/dist/components/atoms/Icon/icons/AirIcon.d.ts +4 -0
- package/dist/components/atoms/Icon/icons/AirIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/BikeIcon.d.ts +4 -0
- package/dist/components/atoms/Icon/icons/BikeIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/LuggageIcon.d.ts +4 -0
- package/dist/components/atoms/Icon/icons/LuggageIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/Utensils.js +1 -1
- package/dist/components/atoms/Icon/icons/registry.d.ts +3 -0
- package/dist/components/atoms/Icon/icons/registry.js +6 -0
- 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.css +1 -1
- package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +8 -0
- package/dist/components/molecules/ActionDropdown/ActionDropdown.js +18 -8
- package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- 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 +14 -0
- package/dist/components/molecules/DetailsInfo/DetailsAction.js +47 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.css +2101 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.d.ts +13 -0
- package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +19 -0
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.css +2104 -0
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.d.ts +13 -0
- package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +20 -0
- package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +14 -0
- package/dist/components/molecules/DetailsInfo/DetailsFile.js +17 -0
- package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +13 -0
- package/dist/components/molecules/DetailsInfo/DetailsInfo.js +24 -0
- package/dist/components/molecules/DetailsInfo/index.d.ts +5 -0
- package/dist/components/molecules/DetailsInfo/index.js +1 -0
- package/dist/components/molecules/GlobalAmenities/GlobalAmenities.d.ts +9 -0
- package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +19 -0
- package/dist/components/molecules/ServiceInfo/ServiceInfo.css +2109 -0
- package/dist/components/molecules/ServiceInfo/ServiceInfo.d.ts +21 -0
- package/dist/components/molecules/ServiceInfo/ServiceInfo.js +37 -0
- package/dist/components/molecules/ServiceLanguages/ServiceLanguages.d.ts +10 -0
- package/dist/components/molecules/ServiceLanguages/ServiceLanguages.js +19 -0
- package/dist/components/molecules/ServiceLanguages/constant.d.ts +1 -0
- package/dist/components/molecules/ServiceLanguages/constant.js +6 -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/RowOtherServices.js +1 -1
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.css +2103 -0
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.d.ts +4 -0
- package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +29 -0
- package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +3 -1
- package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
- package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +1 -1
- package/dist/components/molecules/TimelineItem/ServiceExcursion.js +1 -1
- package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +1 -1
- package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.d.ts +11 -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 +2141 -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/TabServiceDetails/Accommodation.d.ts +26 -0
- package/dist/components/organisms/TabServiceDetails/Accommodation.js +46 -0
- package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.d.ts +9 -0
- package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +17 -0
- package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.d.ts +41 -0
- package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +65 -0
- package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.d.ts +18 -0
- package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.js +20 -0
- package/dist/components/organisms/TabServiceDetails/Excursion.d.ts +7 -0
- package/dist/components/organisms/TabServiceDetails/Excursion.js +29 -0
- package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +10 -0
- package/dist/components/organisms/TabServiceDetails/TabServiceDetails.js +23 -0
- package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +2143 -0
- package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.d.ts +35 -0
- package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.js +39 -0
- package/dist/components/organisms/TabServiceDetails/Transfer.d.ts +12 -0
- package/dist/components/organisms/TabServiceDetails/Transfer.js +19 -0
- package/dist/components/organisms/TabServiceDetails/index.d.ts +4 -0
- package/dist/components/organisms/TabServiceDetails/index.js +1 -0
- package/dist/components/organisms/Table/Table.css +56 -0
- package/dist/components/organisms/Table/Table.js +6 -4
- 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 +1 -0
- package/dist/components/organisms/Timeline/Timeline.js +3 -2
- package/dist/index.d.ts +10 -1
- package/dist/index.js +9 -1
- 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 +2 -1
- package/src/components/atoms/CardServiceAccom/CardServiceAccom.css +22 -0
- package/src/components/atoms/CardServiceAccom/CardServiceAccom.tsx +22 -0
- package/src/components/atoms/Chip/Chip.css +7 -2
- package/src/components/atoms/Chip/Chip.tsx +16 -2
- package/src/components/atoms/Icon/icons/AirIcon.tsx +40 -0
- package/src/components/atoms/Icon/icons/BikeIcon.tsx +40 -0
- package/src/components/atoms/Icon/icons/LuggageIcon.tsx +40 -0
- package/src/components/atoms/Icon/icons/Utensils.tsx +11 -3
- package/src/components/atoms/Icon/icons/registry.tsx +6 -0
- package/src/components/atoms/Tab/Tab.css +6 -8
- package/src/components/atoms/Typography/Typography.tsx +27 -7
- package/src/components/molecules/ActionDropdown/ActionDropdown.css +1 -1
- package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +62 -18
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/src/components/molecules/DateDisplay/DateDisplay.tsx +25 -9
- package/src/components/molecules/DetailsInfo/DetailsAction.tsx +68 -0
- package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.css +21 -0
- package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.tsx +57 -0
- package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.css +10 -0
- package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.tsx +56 -0
- package/src/components/molecules/DetailsInfo/DetailsFile.tsx +42 -0
- package/src/components/molecules/DetailsInfo/DetailsInfo.tsx +19 -0
- package/src/components/molecules/DetailsInfo/index.ts +8 -0
- package/src/components/molecules/GlobalAmenities/GlobalAmenities.tsx +35 -0
- package/src/components/molecules/ServiceInfo/ServiceInfo.css +27 -0
- package/src/components/molecules/ServiceInfo/ServiceInfo.tsx +74 -0
- package/src/components/molecules/ServiceLanguages/ServiceLanguages.tsx +33 -0
- package/src/components/molecules/ServiceLanguages/constant.ts +6 -0
- package/src/components/molecules/ServiceTitle/ServiceTitle.css +13 -0
- package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +19 -0
- package/src/components/molecules/TableServiceItem/RowOtherServices.tsx +3 -1
- package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.css +9 -0
- package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.tsx +12 -0
- package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +6 -1
- package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +1 -1
- package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +1 -1
- package/src/components/molecules/TooltipDisplay/TooltipDisplay.tsx +4 -2
- package/src/components/organisms/TabCancellationPolicy/CancellationAccom.tsx +40 -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 +46 -0
- package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.tsx +44 -0
- package/src/components/organisms/TabCancellationPolicy/index.ts +7 -0
- package/src/components/organisms/TabServiceDetails/Accommodation.tsx +45 -0
- package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +45 -0
- package/src/components/organisms/TabServiceDetails/DetailsContentAccom.tsx +124 -0
- package/src/components/organisms/TabServiceDetails/DetailsContentExcursion.tsx +65 -0
- package/src/components/organisms/TabServiceDetails/Excursion.tsx +20 -0
- package/src/components/organisms/TabServiceDetails/TabServiceDetails.tsx +13 -0
- package/src/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +55 -0
- package/src/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.tsx +82 -0
- package/src/components/organisms/TabServiceDetails/Transfer.tsx +34 -0
- package/src/components/organisms/TabServiceDetails/index.ts +5 -0
- package/src/components/organisms/Table/Table.css +54 -0
- package/src/components/organisms/Table/Table.tsx +37 -22
- 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 +6 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useMobile } from '@/src/hooks/useMobile';
|
|
2
|
+
import { cn } from '@/src/lib/utils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Chip from '../../../atoms/Chip/Chip';
|
|
5
|
+
import { IconName } from '../../../atoms/Icon/Icon';
|
|
6
|
+
import TextWithIcon from '../../../molecules/TextWithIcon/TextWithIcon';
|
|
7
|
+
import './TabServiceDetailsLayout.css';
|
|
8
|
+
|
|
9
|
+
export interface TabServiceDetailsLayoutProps {
|
|
10
|
+
/** Title of the service */
|
|
11
|
+
title: string;
|
|
12
|
+
/** Icon of the service */
|
|
13
|
+
icon: IconName;
|
|
14
|
+
/** Children of the service */
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/** Images of the service */
|
|
17
|
+
images: string[];
|
|
18
|
+
/** Mobile content of the service */
|
|
19
|
+
mobileContent?: React.ReactNode;
|
|
20
|
+
/** Whether the service is on request */
|
|
21
|
+
isOnRequest?: boolean;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Layout for the TabServiceDetails component.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <TabServiceDetails.Layout
|
|
29
|
+
* title="Accommodation"
|
|
30
|
+
* icon="accom"
|
|
31
|
+
* images={['image1.jpg', 'image2.jpg', 'image3.jpg']}
|
|
32
|
+
* mobileContent={<div>Mobile content</div>}
|
|
33
|
+
* isOnRequest={true}
|
|
34
|
+
* >
|
|
35
|
+
* <div>Content</div>
|
|
36
|
+
* </TabServiceDetails.Layout>
|
|
37
|
+
*
|
|
38
|
+
* @param props - Props of the TabServiceDetailsLayout
|
|
39
|
+
* @returns The TabServiceDetailsLayout component
|
|
40
|
+
*/
|
|
41
|
+
export default function TabServiceDetailsLayout(props: TabServiceDetailsLayoutProps) {
|
|
42
|
+
const { title, icon, isOnRequest, children, images, mobileContent } = props;
|
|
43
|
+
const { isMobile } = useMobile(1280);
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<div>
|
|
47
|
+
<div className="details-service__layout">
|
|
48
|
+
<TextWithIcon
|
|
49
|
+
icon={icon}
|
|
50
|
+
color={isOnRequest ? 'yellow' : 'accent'}
|
|
51
|
+
textVariant="bold">
|
|
52
|
+
{title}
|
|
53
|
+
{isOnRequest && <Chip color="yellow">On request</Chip>}
|
|
54
|
+
</TextWithIcon>
|
|
55
|
+
<div className="details-service__layout-flex">
|
|
56
|
+
<div className="details-service__layout-flex-images">
|
|
57
|
+
{images[0] && (
|
|
58
|
+
<figure
|
|
59
|
+
key={images[0]}
|
|
60
|
+
className={cn(images.length === 1 && 'single-image')}>
|
|
61
|
+
<img src={images[0]} alt={title} width={400} height={400} />
|
|
62
|
+
</figure>
|
|
63
|
+
)}
|
|
64
|
+
{images.length > 1 && (
|
|
65
|
+
<div className="details-service__layout-flex-images-grid">
|
|
66
|
+
{images.slice(1, 3).map((image) => (
|
|
67
|
+
<figure key={image}>
|
|
68
|
+
<img src={image} alt={title} width={400} height={400} />
|
|
69
|
+
</figure>
|
|
70
|
+
))}
|
|
71
|
+
</div>
|
|
72
|
+
)}
|
|
73
|
+
</div>
|
|
74
|
+
<div className="details-service__layout-content">
|
|
75
|
+
<div className="details-service__layout-content-body">{children}</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
{isMobile && mobileContent}
|
|
80
|
+
</div>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CancellationHeader from '../TabCancellationPolicy/CancellationHeader';
|
|
3
|
+
import { TransferData } from '../TabCancellationPolicy/HeaderExcursion/HeaderTransfer';
|
|
4
|
+
import TabCancellationPolicy from '../TabCancellationPolicy/TabCancellationPolicy';
|
|
5
|
+
import {
|
|
6
|
+
DetailContentTransfer,
|
|
7
|
+
DetailContentTransferProps,
|
|
8
|
+
} from './DetailContentTransfer';
|
|
9
|
+
|
|
10
|
+
export interface TransferProps {
|
|
11
|
+
/** Image of the transfer */
|
|
12
|
+
image: string;
|
|
13
|
+
/** Transfer data */
|
|
14
|
+
transferData: TransferData[];
|
|
15
|
+
/** Details of the transfer */
|
|
16
|
+
transferDetails: DetailContentTransferProps;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const Transfer: React.FC<TransferProps> = (props) => {
|
|
20
|
+
const { image, transferData, transferDetails } = props;
|
|
21
|
+
return (
|
|
22
|
+
<TabCancellationPolicy.Layout
|
|
23
|
+
title="Transfer"
|
|
24
|
+
icon="car"
|
|
25
|
+
image={image}
|
|
26
|
+
header={
|
|
27
|
+
<CancellationHeader>
|
|
28
|
+
<CancellationHeader.Transfer data={transferData} />
|
|
29
|
+
</CancellationHeader>
|
|
30
|
+
}>
|
|
31
|
+
<DetailContentTransfer {...transferDetails} />
|
|
32
|
+
</TabCancellationPolicy.Layout>
|
|
33
|
+
);
|
|
34
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './TabServiceDetails';
|
|
2
|
+
|
|
3
|
+
export type { AccommodationProps } from './Accommodation';
|
|
4
|
+
export type { DetailsContentExcursionProps } from './DetailsContentExcursion';
|
|
5
|
+
export type { TabServiceDetailsLayoutProps } from './TabServiceDetailsLayout/TabServiceDetailsLayout';
|
|
@@ -104,6 +104,54 @@
|
|
|
104
104
|
border-bottom: none;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
+
&.table__children--visible {
|
|
108
|
+
@apply relative;
|
|
109
|
+
border: 1px solid transparent;
|
|
110
|
+
border-left: none;
|
|
111
|
+
&::after {
|
|
112
|
+
content: '';
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: -1px;
|
|
115
|
+
pointer-events: none;
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
background-image:
|
|
118
|
+
repeating-linear-gradient(
|
|
119
|
+
to right,
|
|
120
|
+
var(--color-border-medium) 0,
|
|
121
|
+
var(--color-border-medium) 16px,
|
|
122
|
+
transparent 16px,
|
|
123
|
+
transparent 32px
|
|
124
|
+
),
|
|
125
|
+
repeating-linear-gradient(
|
|
126
|
+
to right,
|
|
127
|
+
var(--color-border-medium) 0,
|
|
128
|
+
var(--color-border-medium) 16px,
|
|
129
|
+
transparent 16px,
|
|
130
|
+
transparent 32px
|
|
131
|
+
),
|
|
132
|
+
repeating-linear-gradient(
|
|
133
|
+
to bottom,
|
|
134
|
+
var(--color-border-medium) 0,
|
|
135
|
+
var(--color-border-medium) 16px,
|
|
136
|
+
transparent 16px,
|
|
137
|
+
transparent 32px
|
|
138
|
+
),
|
|
139
|
+
repeating-linear-gradient(
|
|
140
|
+
to bottom,
|
|
141
|
+
var(--color-border-medium) 0,
|
|
142
|
+
var(--color-border-medium) 16px,
|
|
143
|
+
transparent 16px,
|
|
144
|
+
transparent 32px
|
|
145
|
+
);
|
|
146
|
+
background-size:
|
|
147
|
+
100% 1px,
|
|
148
|
+
100% 1px,
|
|
149
|
+
1px 100%,
|
|
150
|
+
1px 100%;
|
|
151
|
+
background-position: top, bottom, left, right;
|
|
152
|
+
background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
107
155
|
}
|
|
108
156
|
.table__nested-wrapper {
|
|
109
157
|
overflow: hidden;
|
|
@@ -183,3 +231,9 @@
|
|
|
183
231
|
}
|
|
184
232
|
}
|
|
185
233
|
}
|
|
234
|
+
|
|
235
|
+
.table__row-with-children {
|
|
236
|
+
> td {
|
|
237
|
+
padding: 0;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
@@ -197,29 +197,44 @@ export const Table = <T extends TableRowData<T>>(props: TableProps<T>) => {
|
|
|
197
197
|
) : (
|
|
198
198
|
defaultTable
|
|
199
199
|
)
|
|
200
|
+
) : !row.children ? (
|
|
201
|
+
defaultTable
|
|
200
202
|
) : (
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
203
|
+
<tr
|
|
204
|
+
className="table__row-with-children"
|
|
205
|
+
onClick={(e) => onClickRow?.(e, row)}>
|
|
206
|
+
<td
|
|
207
|
+
colSpan={columns.length}
|
|
208
|
+
className={cn({
|
|
209
|
+
'table__children--visible': hasVisibleChildren,
|
|
210
|
+
})}>
|
|
211
|
+
<table className="table">
|
|
212
|
+
<tbody>
|
|
213
|
+
{defaultTable}
|
|
214
|
+
<AnimatePresence initial={false}>
|
|
215
|
+
{hasVisibleChildren && (
|
|
216
|
+
<tr
|
|
217
|
+
key={`nested-${rowIndex}`}
|
|
218
|
+
className={cn('table__no-hover', {
|
|
219
|
+
'table__row-nested':
|
|
220
|
+
row.children && row.children.length > 0,
|
|
221
|
+
})}>
|
|
222
|
+
<td
|
|
223
|
+
colSpan={columns.length}
|
|
224
|
+
className="table__cell-nested">
|
|
225
|
+
<NestedContent<T>
|
|
226
|
+
rowIndex={rowIndex}
|
|
227
|
+
columns={columns}
|
|
228
|
+
children={row.children || []}
|
|
229
|
+
/>
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
)}
|
|
233
|
+
</AnimatePresence>
|
|
234
|
+
</tbody>
|
|
235
|
+
</table>
|
|
236
|
+
</td>
|
|
237
|
+
</tr>
|
|
223
238
|
)}
|
|
224
239
|
</Fragment>
|
|
225
240
|
);
|
|
@@ -67,7 +67,7 @@ export const quotationColumns: (params: {
|
|
|
67
67
|
width: 260,
|
|
68
68
|
cell: (value) => {
|
|
69
69
|
const dates = value as string[];
|
|
70
|
-
return <DateDisplay
|
|
70
|
+
return <DateDisplay dates={dates} />;
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -105,10 +105,15 @@ export const quotationColumns: (params: {
|
|
|
105
105
|
header: 'Created by',
|
|
106
106
|
key: 'created_by',
|
|
107
107
|
width: 160,
|
|
108
|
-
cell: (value) => (
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
cell: (value, raw) => (
|
|
109
|
+
<>
|
|
110
|
+
<Text variant="medium" size="sm" leading="4">
|
|
111
|
+
{raw.file_name},
|
|
112
|
+
</Text>
|
|
113
|
+
<Text variant="bold" size="sm" leading="4">
|
|
114
|
+
{value as string}
|
|
115
|
+
</Text>
|
|
116
|
+
</>
|
|
112
117
|
),
|
|
113
118
|
},
|
|
114
119
|
{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from '@/src/lib/utils';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Text } from '../../atoms/Typography/Typography';
|
|
3
4
|
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
@@ -15,13 +16,14 @@ export interface TimelineProps {
|
|
|
15
16
|
arrival: string;
|
|
16
17
|
departure: string;
|
|
17
18
|
services: TimelineServices[];
|
|
19
|
+
className?: string;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export const Timeline: React.FC<TimelineProps> = (props) => {
|
|
21
|
-
const { arrival, departure, services } = props;
|
|
23
|
+
const { arrival, departure, services, className } = props;
|
|
22
24
|
return (
|
|
23
|
-
<div className=
|
|
24
|
-
<TextWithIcon icon="arrival" color="accent" iconSize="lg">
|
|
25
|
+
<div className={cn('space-y-10', className)}>
|
|
26
|
+
<TextWithIcon icon="arrival" color="accent" iconSize="lg" textSize="lg">
|
|
25
27
|
Arrival :{' '}
|
|
26
28
|
<Text variant="regular" size="lg" leading="5" color="default" as="span">
|
|
27
29
|
{arrival}
|
|
@@ -46,7 +48,7 @@ export const Timeline: React.FC<TimelineProps> = (props) => {
|
|
|
46
48
|
))}
|
|
47
49
|
</div>
|
|
48
50
|
</div>
|
|
49
|
-
<TextWithIcon icon="departure" color="accent" iconSize="lg">
|
|
51
|
+
<TextWithIcon icon="departure" color="accent" iconSize="lg" textSize="lg">
|
|
50
52
|
Departure :{' '}
|
|
51
53
|
<Text variant="regular" size="lg" leading="5" color="default" as="span">
|
|
52
54
|
{departure}
|