mautourco-components 0.2.14 → 0.2.16
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/Icon/icons/PlusCircleIcon.d.ts +12 -0
- package/dist/components/atoms/Icon/icons/PlusCircleIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/registry.d.ts +1 -0
- package/dist/components/atoms/Icon/icons/registry.js +2 -0
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +15 -3
- 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/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/QuoteHeader/QuoteHeader.css +2142 -0
- package/dist/components/organisms/QuoteHeader/QuoteHeader.d.ts +12 -0
- package/dist/components/organisms/QuoteHeader/QuoteHeader.js +41 -0
- package/dist/components/organisms/QuoteHeader/constant.d.ts +3 -0
- package/dist/components/organisms/QuoteHeader/constant.js +8 -0
- package/dist/components/organisms/Timeline/Timeline.d.ts +14 -0
- package/dist/components/organisms/Timeline/Timeline.js +19 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +3 -0
- package/dist/styles/components/dropdown.css +7 -6
- package/dist/styles/components/forms.css +18 -9
- package/package.json +1 -1
- package/src/components/atoms/Icon/icons/BusIcon.tsx +6 -2
- package/src/components/atoms/Icon/icons/PlusCircleIcon.tsx +60 -0
- package/src/components/atoms/Icon/icons/registry.tsx +2 -0
- package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +29 -17
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.css +10 -0
- package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +47 -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/QuoteHeader/QuoteHeader.css +37 -0
- package/src/components/organisms/QuoteHeader/QuoteHeader.tsx +93 -0
- package/src/components/organisms/QuoteHeader/constant.ts +8 -0
- package/src/components/organisms/Timeline/Timeline.tsx +57 -0
- package/src/styles/components/dropdown.css +7 -6
- package/src/styles/components/forms.css +18 -11
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './Breadcrumbs.css';
|
|
3
|
+
export interface BreadcrumbsItem {
|
|
4
|
+
label: string;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbsProps {
|
|
8
|
+
items: BreadcrumbsItem[];
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { cn } from '@/src/lib/utils';
|
|
14
|
+
import Icon from '../../atoms/Icon/Icon';
|
|
15
|
+
import { Text } from '../../atoms/Typography/Typography';
|
|
16
|
+
import './Breadcrumbs.css';
|
|
17
|
+
export var Breadcrumbs = function (props) {
|
|
18
|
+
var items = props.items, onBack = props.onBack;
|
|
19
|
+
return (_jsxs("ol", __assign({ className: "breadcrumbs" }, { children: [_jsxs(Text, __assign({ variant: "medium", size: "sm", leading: "4", as: "li", className: "cursor-pointer", onClick: onBack }, { children: [_jsx(Icon, { name: "chevron-left", size: "sm" }), "Back"] })), items.map(function (item, index) { return (_jsx(Text, __assign({ as: "li", variant: "medium", size: "sm", onClick: item.onClick, color: index === items.length - 1 ? 'accent' : 'default', leading: "4", className: cn(index < items.length - 1 && 'cursor-pointer') }, { children: item.label }), "bc-".concat(index))); })] })));
|
|
20
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconName } from '../../atoms/Icon/Icon';
|
|
3
|
-
interface DetailsColData {
|
|
3
|
+
export interface DetailsColData {
|
|
4
4
|
icon: IconName;
|
|
5
5
|
value: React.ReactNode;
|
|
6
6
|
}
|
|
7
7
|
export interface DetailsColProps {
|
|
8
8
|
data: DetailsColData[];
|
|
9
9
|
index?: number;
|
|
10
|
+
className?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare const DetailsCol: React.FC<DetailsColProps>;
|
|
12
|
-
export {};
|
|
@@ -10,8 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { cn } from '@/src/lib/utils';
|
|
13
14
|
import TextWithIcon from '../TextWithIcon/TextWithIcon';
|
|
14
15
|
export var DetailsCol = function (props) {
|
|
15
|
-
var data = props.data;
|
|
16
|
-
return (_jsx("div", __assign({ className:
|
|
16
|
+
var data = props.data, className = props.className;
|
|
17
|
+
return (_jsx("div", __assign({ className: cn('grid gap-y-1', className) }, { children: data.map(function (item, index) { return (_jsx(TextWithIcon, __assign({ icon: item.icon }, { children: item.value }), "dc-".concat(index))); }) })));
|
|
17
18
|
};
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { cn } from '@/src/lib/utils';
|
|
14
14
|
import Icon from '../../atoms/Icon/Icon';
|
|
15
|
-
import { Text } from '../../atoms/Typography/Typography';
|
|
15
|
+
import { Text, } from '../../atoms/Typography/Typography';
|
|
16
16
|
/**
|
|
17
17
|
* A component that displays a text with an icon.
|
|
18
18
|
*
|
|
@@ -26,6 +26,6 @@ import { Text } from '../../atoms/Typography/Typography';
|
|
|
26
26
|
*/
|
|
27
27
|
var TextWithIcon = function (props) {
|
|
28
28
|
var icon = props.icon, children = props.children, _a = props.iconSize, iconSize = _a === void 0 ? 'sm' : _a, _b = props.color, color = _b === void 0 ? 'default' : _b, _c = props.textLeading, textLeading = _c === void 0 ? '5' : _c, _d = props.textVariant, textVariant = _d === void 0 ? 'medium' : _d;
|
|
29
|
-
return (_jsxs("div", __assign({ className: cn('flex items-center gap-x-2', color === 'yellow' && 'text-[var(--color-yellow-600)]', color === 'accent' && 'text-[var(--color-text-accent)]') }, { children: [_jsx("span", { children: _jsx(Icon, { name: icon, size: iconSize }) }), _jsx(Text, __assign({ variant: textVariant, size: iconSize, className: "flex items-center gap-x-2", color: color, leading: textLeading, as: "div" }, { children: children }))] })));
|
|
29
|
+
return (_jsxs("div", __assign({ className: cn('flex items-center gap-x-2', color === 'yellow' && 'text-[var(--color-yellow-600)]', color === 'accent' && 'text-[var(--color-text-accent)]') }, { children: [icon && (_jsx("span", { children: _jsx(Icon, { name: icon, size: iconSize }) })), _jsx(Text, __assign({ variant: textVariant, size: iconSize, className: "flex items-center gap-x-2", color: color, leading: textLeading, as: "div" }, { children: children }))] })));
|
|
30
30
|
};
|
|
31
31
|
export default TextWithIcon;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
3
|
+
export interface ServiceAccommodationProps {
|
|
4
|
+
hotelName: string;
|
|
5
|
+
details: DetailsColData[];
|
|
6
|
+
dates: string[] | Date[];
|
|
7
|
+
isOnRequest?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ServiceAccommodation: React.FC<ServiceAccommodationProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { Text } from '../../atoms/Typography/Typography';
|
|
14
|
+
import { DateDisplay } from '../DateDisplay/DateDisplay';
|
|
15
|
+
import { DetailsCol } from '../TableServiceItem/DetailsCol';
|
|
16
|
+
import { TimelineHeader } from './TimelineHeader';
|
|
17
|
+
export var ServiceAccommodation = function (props) {
|
|
18
|
+
var hotelName = props.hotelName, details = props.details, dates = props.dates, isOnRequest = props.isOnRequest;
|
|
19
|
+
return (_jsxs("div", __assign({ className: "space-y-3" }, { children: [_jsx(TimelineHeader, { icon: "accom", title: "Accomodation", isOnRequest: isOnRequest }), _jsx(Text, __assign({ variant: "bold", size: "sm", leading: "5" }, { children: hotelName })), _jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsx(DateDisplay, { date: dates }), _jsx(DetailsCol, { data: details, className: "gap-y-2" })] }))] })));
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
3
|
+
export interface ServiceExcursionProps {
|
|
4
|
+
name: string;
|
|
5
|
+
details: DetailsColData[];
|
|
6
|
+
date: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ServiceExcursion: React.FC<ServiceExcursionProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { Text } from '../../atoms/Typography/Typography';
|
|
14
|
+
import { DateDisplay } from '../DateDisplay/DateDisplay';
|
|
15
|
+
import { DetailsCol } from '../TableServiceItem/DetailsCol';
|
|
16
|
+
import { TimelineHeader } from './TimelineHeader';
|
|
17
|
+
export var ServiceExcursion = function (props) {
|
|
18
|
+
var name = props.name, details = props.details, date = props.date;
|
|
19
|
+
return (_jsxs("div", __assign({ className: "space-y-3" }, { children: [_jsx(TimelineHeader, { icon: "map", title: "Excursion" }), _jsx(Text, __assign({ variant: "bold", size: "sm", leading: "5" }, { children: name })), _jsxs("div", __assign({ className: "space-y-2" }, { children: [_jsx(DateDisplay, { date: [date] }), _jsx(DetailsCol, { data: details, className: "gap-y-2" })] }))] })));
|
|
20
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DetailsColData } from '../TableServiceItem/DetailsCol';
|
|
3
|
+
export interface ServiceTransferProps {
|
|
4
|
+
transferType: string;
|
|
5
|
+
location: {
|
|
6
|
+
from: string;
|
|
7
|
+
to: string;
|
|
8
|
+
};
|
|
9
|
+
details: DetailsColData[];
|
|
10
|
+
}
|
|
11
|
+
export declare const ServiceTransfer: React.FC<ServiceTransferProps>;
|
|
@@ -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, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import FromTo from '../FromTo/FromTo';
|
|
14
|
+
import { DetailsCol } from '../TableServiceItem/DetailsCol';
|
|
15
|
+
import { TimelineHeader } from './TimelineHeader';
|
|
16
|
+
export var ServiceTransfer = function (props) {
|
|
17
|
+
var transferType = props.transferType, location = props.location, details = props.details;
|
|
18
|
+
return (_jsxs("div", __assign({ className: "space-y-3" }, { children: [_jsx(TimelineHeader, { icon: "car", title: "Transfer", extraText: transferType }), _jsx(FromTo, { from: location.from, to: location.to }), _jsx(DetailsCol, { data: details, className: "gap-y-2" })] })));
|
|
19
|
+
};
|