mautourco-components 0.2.53 → 0.2.54
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/organisms/TabServiceDetails/DetailContentTransfer.js +2 -2
- package/dist/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +2 -0
- package/package.json +1 -1
- package/src/components/organisms/TabServiceDetails/DetailContentTransfer.tsx +2 -2
- package/src/components/organisms/TabServiceDetails/TabServiceDetailsLayout/TabServiceDetailsLayout.css +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import Chip from '../../atoms/Chip/Chip';
|
|
3
3
|
export function DetailContentTransfer(props) {
|
|
4
|
-
var pax = props.pax, clientType = props.clientType, carName = props.carName, airConditioning = props.airConditioning,
|
|
5
|
-
return (_jsxs("div", { className: "flex gap-4", children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] }));
|
|
4
|
+
var pax = props.pax, clientType = props.clientType, carName = props.carName, airConditioning = props.airConditioning, _a = props.luggageTruck, luggageTruck = _a === void 0 ? 0 : _a;
|
|
5
|
+
return (_jsxs("div", { className: "flex gap-4", children: [_jsx(Chip, { type: "outline", color: "brand", label: pax, leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: "Client type: ".concat(clientType), leadingIcon: "user", isBlackText: true }), _jsx(Chip, { type: "outline", color: "brand", label: carName, leadingIcon: "car", isBlackText: true }), airConditioning && (_jsx(Chip, { type: "outline", color: "brand", label: "Air conditioning", leadingIcon: "air", isBlackText: true })), luggageTruck > 0 && (_jsx(Chip, { type: "outline", color: "brand", label: "Luggage truck: ".concat(luggageTruck > 1 ? "x".concat(luggageTruck) : luggageTruck), leadingIcon: "luggage", isBlackText: true }))] }));
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export interface DetailContentTransferProps {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function DetailContentTransfer(props: DetailContentTransferProps) {
|
|
12
|
-
const { pax, clientType, carName, airConditioning, luggageTruck } = props;
|
|
12
|
+
const { pax, clientType, carName, airConditioning, luggageTruck = 0 } = props;
|
|
13
13
|
return (
|
|
14
14
|
<div className="flex gap-4">
|
|
15
15
|
<Chip type="outline" color="brand" label={pax} leadingIcon="user" isBlackText />
|
|
@@ -30,7 +30,7 @@ export function DetailContentTransfer(props: DetailContentTransferProps) {
|
|
|
30
30
|
isBlackText
|
|
31
31
|
/>
|
|
32
32
|
)}
|
|
33
|
-
{luggageTruck && (
|
|
33
|
+
{luggageTruck > 0 && (
|
|
34
34
|
<Chip
|
|
35
35
|
type="outline"
|
|
36
36
|
color="brand"
|