mautourco-components 0.2.54 → 0.2.55
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ServiceAccommodationProps } from '../../molecules/TimelineItem/ServiceAccommodation';
|
|
3
2
|
import { ServiceExcursionProps } from '../../molecules/TimelineItem/ServiceExcursion';
|
|
4
3
|
import { ServiceTransferProps } from '../../molecules/TimelineItem/ServiceTransfer';
|
|
@@ -12,4 +11,4 @@ export interface TimelineProps {
|
|
|
12
11
|
services: TimelineServices[];
|
|
13
12
|
className?: string;
|
|
14
13
|
}
|
|
15
|
-
export declare
|
|
14
|
+
export declare function Timeline(props: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,8 @@ import { cn } from '../../../lib/utils';
|
|
|
14
14
|
import { Text } from '../../atoms/Typography/Typography';
|
|
15
15
|
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
16
16
|
import TimelineItem from '../../molecules/TimelineItem/TimelineItem';
|
|
17
|
-
export
|
|
17
|
+
export function Timeline(props) {
|
|
18
18
|
var arrival = props.arrival, departure = props.departure, services = props.services, className = props.className;
|
|
19
|
-
return (_jsxs("div", { className: cn('space-y-10', className), children: [_jsxs(TextWithIcon, { icon: "arrival", color: "accent", iconSize: "lg", textSize: "lg", children: ["Arrival :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: arrival })] }), _jsx("div", { className: "overflow-x-auto", children: _jsx("div", { className: "flex gap-x-3 pb-8 2xl:pb-0", children: services.map(function (service, index) { return (_jsxs(TimelineItem, { children: [service.type === 'transfer' && (_jsx(TimelineItem.Transfer, __assign({}, service.data))), service.type === 'accommodation' && (_jsx(TimelineItem.Accommodation, __assign({}, service.data))), service.type === 'excursion' && (_jsx(TimelineItem.Excursion, __assign({}, service.data)))] }, "tm-".concat(index))); }) }) }), _jsxs(TextWithIcon, { icon: "departure", color: "accent", iconSize: "lg", textSize: "lg", children: ["Departure :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: departure })] })] }));
|
|
20
|
-
}
|
|
19
|
+
return (_jsxs("div", { className: cn('space-y-10', className), children: [_jsxs(TextWithIcon, { icon: "arrival", color: "accent", iconSize: "lg", textSize: "lg", children: ["Arrival :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: arrival })] }), _jsx("div", { className: "overflow-x-auto overflow-y-hidden", children: _jsx("div", { className: "flex gap-x-3 pb-8 2xl:pb-0", children: services.map(function (service, index) { return (_jsxs(TimelineItem, { children: [service.type === 'transfer' && (_jsx(TimelineItem.Transfer, __assign({}, service.data))), service.type === 'accommodation' && (_jsx(TimelineItem.Accommodation, __assign({}, service.data))), service.type === 'excursion' && (_jsx(TimelineItem.Excursion, __assign({}, service.data)))] }, "tm-".concat(index))); }) }) }), _jsxs(TextWithIcon, { icon: "departure", color: "accent", iconSize: "lg", textSize: "lg", children: ["Departure :", ' ', _jsx(Text, { variant: "regular", size: "lg", leading: "5", color: "default", as: "span", children: departure })] })] }));
|
|
20
|
+
}
|
|
21
|
+
;
|
package/dist/hooks/useStays.js
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { cn } from '@/src/lib/utils';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { Text } from '../../atoms/Typography/Typography';
|
|
4
3
|
import TextWithIcon from '../../molecules/TextWithIcon/TextWithIcon';
|
|
5
4
|
import { ServiceAccommodationProps } from '../../molecules/TimelineItem/ServiceAccommodation';
|
|
@@ -19,7 +18,7 @@ export interface TimelineProps {
|
|
|
19
18
|
className?: string;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
export
|
|
21
|
+
export function Timeline(props: TimelineProps) {
|
|
23
22
|
const { arrival, departure, services, className } = props;
|
|
24
23
|
return (
|
|
25
24
|
<div className={cn('space-y-10', className)}>
|
|
@@ -29,7 +28,7 @@ export const Timeline: React.FC<TimelineProps> = (props) => {
|
|
|
29
28
|
{arrival}
|
|
30
29
|
</Text>
|
|
31
30
|
</TextWithIcon>
|
|
32
|
-
<div className="overflow-x-auto">
|
|
31
|
+
<div className="overflow-x-auto overflow-y-hidden">
|
|
33
32
|
<div className="flex gap-x-3 pb-8 2xl:pb-0">
|
|
34
33
|
{services.map((service, index) => (
|
|
35
34
|
<TimelineItem key={`tm-${index}`}>
|