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.
Files changed (191) hide show
  1. package/dist/components/atoms/CardServiceAccom/CardServiceAccom.css +2104 -0
  2. package/dist/components/atoms/CardServiceAccom/CardServiceAccom.d.ts +7 -0
  3. package/dist/components/atoms/CardServiceAccom/CardServiceAccom.js +29 -0
  4. package/dist/components/atoms/Chip/Chip.css +9 -2
  5. package/dist/components/atoms/Chip/Chip.d.ts +4 -0
  6. package/dist/components/atoms/Chip/Chip.js +4 -2
  7. package/dist/components/atoms/Icon/icons/AirIcon.d.ts +4 -0
  8. package/dist/components/atoms/Icon/icons/AirIcon.js +36 -0
  9. package/dist/components/atoms/Icon/icons/BikeIcon.d.ts +4 -0
  10. package/dist/components/atoms/Icon/icons/BikeIcon.js +36 -0
  11. package/dist/components/atoms/Icon/icons/LuggageIcon.d.ts +4 -0
  12. package/dist/components/atoms/Icon/icons/LuggageIcon.js +36 -0
  13. package/dist/components/atoms/Icon/icons/Utensils.js +1 -1
  14. package/dist/components/atoms/Icon/icons/registry.d.ts +3 -0
  15. package/dist/components/atoms/Icon/icons/registry.js +6 -0
  16. package/dist/components/atoms/Tab/Tab.css +6 -8
  17. package/dist/components/atoms/Typography/Typography.d.ts +1 -1
  18. package/dist/components/atoms/Typography/Typography.js +18 -4
  19. package/dist/components/molecules/ActionDropdown/ActionDropdown.css +1 -1
  20. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +8 -0
  21. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +18 -8
  22. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  23. package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +9 -2
  24. package/dist/components/molecules/DateDisplay/DateDisplay.js +5 -5
  25. package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +14 -0
  26. package/dist/components/molecules/DetailsInfo/DetailsAction.js +47 -0
  27. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.css +2101 -0
  28. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.d.ts +13 -0
  29. package/dist/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.js +19 -0
  30. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.css +2104 -0
  31. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.d.ts +13 -0
  32. package/dist/components/molecules/DetailsInfo/DetailsClient/DetailsClient.js +20 -0
  33. package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +14 -0
  34. package/dist/components/molecules/DetailsInfo/DetailsFile.js +17 -0
  35. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +13 -0
  36. package/dist/components/molecules/DetailsInfo/DetailsInfo.js +24 -0
  37. package/dist/components/molecules/DetailsInfo/index.d.ts +5 -0
  38. package/dist/components/molecules/DetailsInfo/index.js +1 -0
  39. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.d.ts +9 -0
  40. package/dist/components/molecules/GlobalAmenities/GlobalAmenities.js +19 -0
  41. package/dist/components/molecules/ServiceInfo/ServiceInfo.css +2109 -0
  42. package/dist/components/molecules/ServiceInfo/ServiceInfo.d.ts +21 -0
  43. package/dist/components/molecules/ServiceInfo/ServiceInfo.js +37 -0
  44. package/dist/components/molecules/ServiceLanguages/ServiceLanguages.d.ts +10 -0
  45. package/dist/components/molecules/ServiceLanguages/ServiceLanguages.js +19 -0
  46. package/dist/components/molecules/ServiceLanguages/constant.d.ts +1 -0
  47. package/dist/components/molecules/ServiceLanguages/constant.js +6 -0
  48. package/dist/components/molecules/ServiceTitle/ServiceTitle.css +2094 -0
  49. package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +8 -0
  50. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +18 -0
  51. package/dist/components/molecules/TableServiceItem/RowOtherServices.js +1 -1
  52. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.css +2103 -0
  53. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.d.ts +4 -0
  54. package/dist/components/molecules/TextWithBorderBottom/TextWithBorderBottom.js +29 -0
  55. package/dist/components/molecules/TextWithIcon/TextWithIcon.d.ts +3 -1
  56. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
  57. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +1 -1
  58. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +1 -1
  59. package/dist/components/molecules/TooltipDisplay/TooltipDisplay.js +1 -1
  60. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.d.ts +11 -0
  61. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +19 -0
  62. package/dist/components/organisms/TabCancellationPolicy/CancellationBody.d.ts +11 -0
  63. package/dist/components/organisms/TabCancellationPolicy/CancellationBody.js +21 -0
  64. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.d.ts +8 -0
  65. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +19 -0
  66. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +11 -0
  67. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.js +21 -0
  68. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.d.ts +7 -0
  69. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +19 -0
  70. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.d.ts +6 -0
  71. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +27 -0
  72. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +2082 -0
  73. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.d.ts +12 -0
  74. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +26 -0
  75. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.d.ts +5 -0
  76. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.js +7 -0
  77. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +2094 -0
  78. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.d.ts +13 -0
  79. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +21 -0
  80. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.d.ts +5 -0
  81. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +17 -0
  82. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.d.ts +4 -0
  83. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +44 -0
  84. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +13 -0
  85. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.js +23 -0
  86. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +2141 -0
  87. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.d.ts +13 -0
  88. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +19 -0
  89. package/dist/components/organisms/TabCancellationPolicy/index.d.ts +6 -0
  90. package/dist/components/organisms/TabCancellationPolicy/index.js +3 -0
  91. package/dist/components/organisms/TabServiceDetails/Accommodation.d.ts +26 -0
  92. package/dist/components/organisms/TabServiceDetails/Accommodation.js +46 -0
  93. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.d.ts +9 -0
  94. package/dist/components/organisms/TabServiceDetails/DetailContentTransfer.js +17 -0
  95. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.d.ts +41 -0
  96. package/dist/components/organisms/TabServiceDetails/DetailsContentAccom.js +65 -0
  97. package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.d.ts +18 -0
  98. package/dist/components/organisms/TabServiceDetails/DetailsContentExcursion.js +20 -0
  99. package/dist/components/organisms/TabServiceDetails/Excursion.d.ts +7 -0
  100. package/dist/components/organisms/TabServiceDetails/Excursion.js +29 -0
  101. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.d.ts +10 -0
  102. package/dist/components/organisms/TabServiceDetails/TabServiceDetails.js +23 -0
  103. package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +2143 -0
  104. package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.d.ts +35 -0
  105. package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.js +39 -0
  106. package/dist/components/organisms/TabServiceDetails/Transfer.d.ts +12 -0
  107. package/dist/components/organisms/TabServiceDetails/Transfer.js +19 -0
  108. package/dist/components/organisms/TabServiceDetails/index.d.ts +4 -0
  109. package/dist/components/organisms/TabServiceDetails/index.js +1 -0
  110. package/dist/components/organisms/Table/Table.css +56 -0
  111. package/dist/components/organisms/Table/Table.js +6 -4
  112. package/dist/components/organisms/Table/columns/booking-columns.js +1 -1
  113. package/dist/components/organisms/Table/columns/detail-resume-columns.js +1 -1
  114. package/dist/components/organisms/Table/columns/quotation-columns.js +3 -3
  115. package/dist/components/organisms/Timeline/Timeline.d.ts +1 -0
  116. package/dist/components/organisms/Timeline/Timeline.js +3 -2
  117. package/dist/index.d.ts +10 -1
  118. package/dist/index.js +9 -1
  119. package/dist/types/table/action-dropdown-type.types.d.ts +1 -0
  120. package/dist/types/table/action-dropdown-type.types.js +1 -0
  121. package/package.json +2 -1
  122. package/src/components/atoms/CardServiceAccom/CardServiceAccom.css +22 -0
  123. package/src/components/atoms/CardServiceAccom/CardServiceAccom.tsx +22 -0
  124. package/src/components/atoms/Chip/Chip.css +7 -2
  125. package/src/components/atoms/Chip/Chip.tsx +16 -2
  126. package/src/components/atoms/Icon/icons/AirIcon.tsx +40 -0
  127. package/src/components/atoms/Icon/icons/BikeIcon.tsx +40 -0
  128. package/src/components/atoms/Icon/icons/LuggageIcon.tsx +40 -0
  129. package/src/components/atoms/Icon/icons/Utensils.tsx +11 -3
  130. package/src/components/atoms/Icon/icons/registry.tsx +6 -0
  131. package/src/components/atoms/Tab/Tab.css +6 -8
  132. package/src/components/atoms/Typography/Typography.tsx +27 -7
  133. package/src/components/molecules/ActionDropdown/ActionDropdown.css +1 -1
  134. package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +62 -18
  135. package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +1 -1
  136. package/src/components/molecules/DateDisplay/DateDisplay.tsx +25 -9
  137. package/src/components/molecules/DetailsInfo/DetailsAction.tsx +68 -0
  138. package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.css +21 -0
  139. package/src/components/molecules/DetailsInfo/DetailsAgency/DetailsAgency.tsx +57 -0
  140. package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.css +10 -0
  141. package/src/components/molecules/DetailsInfo/DetailsClient/DetailsClient.tsx +56 -0
  142. package/src/components/molecules/DetailsInfo/DetailsFile.tsx +42 -0
  143. package/src/components/molecules/DetailsInfo/DetailsInfo.tsx +19 -0
  144. package/src/components/molecules/DetailsInfo/index.ts +8 -0
  145. package/src/components/molecules/GlobalAmenities/GlobalAmenities.tsx +35 -0
  146. package/src/components/molecules/ServiceInfo/ServiceInfo.css +27 -0
  147. package/src/components/molecules/ServiceInfo/ServiceInfo.tsx +74 -0
  148. package/src/components/molecules/ServiceLanguages/ServiceLanguages.tsx +33 -0
  149. package/src/components/molecules/ServiceLanguages/constant.ts +6 -0
  150. package/src/components/molecules/ServiceTitle/ServiceTitle.css +13 -0
  151. package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +19 -0
  152. package/src/components/molecules/TableServiceItem/RowOtherServices.tsx +3 -1
  153. package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.css +9 -0
  154. package/src/components/molecules/TextWithBorderBottom/TextWithBorderBottom.tsx +12 -0
  155. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +6 -1
  156. package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +1 -1
  157. package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +1 -1
  158. package/src/components/molecules/TooltipDisplay/TooltipDisplay.tsx +4 -2
  159. package/src/components/organisms/TabCancellationPolicy/CancellationAccom.tsx +40 -0
  160. package/src/components/organisms/TabCancellationPolicy/CancellationBody.tsx +12 -0
  161. package/src/components/organisms/TabCancellationPolicy/CancellationExcursion.tsx +31 -0
  162. package/src/components/organisms/TabCancellationPolicy/CancellationHeader.tsx +11 -0
  163. package/src/components/organisms/TabCancellationPolicy/CancellationTransfer.tsx +29 -0
  164. package/src/components/organisms/TabCancellationPolicy/HeaderAccom.tsx +31 -0
  165. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +3 -0
  166. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.tsx +48 -0
  167. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion.tsx +18 -0
  168. package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +8 -0
  169. package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.tsx +47 -0
  170. package/src/components/organisms/TabCancellationPolicy/PolicyExcursion.tsx +26 -0
  171. package/src/components/organisms/TabCancellationPolicy/PolicyTransfer.tsx +62 -0
  172. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicy.tsx +13 -0
  173. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +46 -0
  174. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.tsx +44 -0
  175. package/src/components/organisms/TabCancellationPolicy/index.ts +7 -0
  176. package/src/components/organisms/TabServiceDetails/Accommodation.tsx +45 -0
  177. package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +45 -0
  178. package/src/components/organisms/TabServiceDetails/DetailsContentAccom.tsx +124 -0
  179. package/src/components/organisms/TabServiceDetails/DetailsContentExcursion.tsx +65 -0
  180. package/src/components/organisms/TabServiceDetails/Excursion.tsx +20 -0
  181. package/src/components/organisms/TabServiceDetails/TabServiceDetails.tsx +13 -0
  182. package/src/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +55 -0
  183. package/src/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.tsx +82 -0
  184. package/src/components/organisms/TabServiceDetails/Transfer.tsx +34 -0
  185. package/src/components/organisms/TabServiceDetails/index.ts +5 -0
  186. package/src/components/organisms/Table/Table.css +54 -0
  187. package/src/components/organisms/Table/Table.tsx +37 -22
  188. package/src/components/organisms/Table/columns/booking-columns.tsx +1 -1
  189. package/src/components/organisms/Table/columns/detail-resume-columns.tsx +1 -1
  190. package/src/components/organisms/Table/columns/quotation-columns.tsx +10 -5
  191. 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
- {defaultTable}
203
- <AnimatePresence initial={false}>
204
- {hasVisibleChildren && (
205
- <tr
206
- key={`nested-${rowIndex}`}
207
- className={cn('table__no-hover', {
208
- 'table__row-nested':
209
- row.children && row.children.length > 0,
210
- })}>
211
- <td colSpan={columns.length} className="table__cell-nested">
212
- <NestedContent<T>
213
- rowIndex={rowIndex}
214
- columns={columns}
215
- children={row.children || []}
216
- onClickRow={onClickRow}
217
- />
218
- </td>
219
- </tr>
220
- )}
221
- </AnimatePresence>
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
  );
@@ -50,7 +50,7 @@ export const bookingColumns: (params: {
50
50
  width: 260,
51
51
  cell: (value) => {
52
52
  const dates = value as string[];
53
- return <DateDisplay date={dates} />;
53
+ return <DateDisplay dates={dates} />;
54
54
  },
55
55
  },
56
56
  {
@@ -130,7 +130,7 @@ export const detailResumeColumns: () => ColumnType<DetailResumeItem>[] = () => {
130
130
  date = [otherService.service_date];
131
131
  break;
132
132
  }
133
- return <DateDisplay date={date} />;
133
+ return <DateDisplay dates={date} />;
134
134
  },
135
135
  },
136
136
  {
@@ -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 date={dates} />;
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
- <Text variant="medium" size="sm">
110
- {value as string}
111
- </Text>
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="space-y-10">
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}