mautourco-components 0.2.141 → 0.2.143

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.
@@ -15,6 +15,6 @@ import { Text, } from '../../atoms/Typography/Typography';
15
15
  */
16
16
  function TextWithIcon(props) {
17
17
  var icon = props.icon, children = props.children, _a = props.iconSize, iconSize = _a === void 0 ? 'sm' : _a, _b = props.textSize, textSize = _b === void 0 ? 'sm' : _b, _c = props.color, color = _c === void 0 ? 'default' : _c, _d = props.textLeading, textLeading = _d === void 0 ? '5' : _d, _e = props.textVariant, textVariant = _e === void 0 ? 'medium' : _e;
18
- return (_jsxs("div", { className: cn('flex gap-x-2', color === 'yellow' && 'text-[var(--color-yellow-600)]', color === 'accent' && 'text-[var(--color-text-accent)]'), children: [icon && (_jsx("span", { className: "relative top-[2px]", children: _jsx(Icon, { name: icon, size: iconSize }) })), _jsx(Text, { variant: textVariant, size: textSize, className: "flex items-center gap-x-2", color: color, leading: textLeading, as: "div", children: children })] }));
18
+ return (_jsxs("div", { className: cn('flex gap-x-2 items-center', color === 'yellow' && 'text-[var(--color-yellow-600)]', color === 'accent' && 'text-[var(--color-text-accent)]'), children: [icon && (_jsx("span", { className: "relative top-[2px]", children: _jsx(Icon, { name: icon, size: iconSize }) })), _jsx(Text, { variant: textVariant, size: textSize, className: "flex items-center gap-x-2", color: color, leading: textLeading, as: "div", children: children })] }));
19
19
  }
20
20
  export default TextWithIcon;
@@ -19,7 +19,7 @@ export var comparisonColumns = function () {
19
19
  return (_jsx(RowAccommodation.FirstCol, { serviceName: raw.hotelName, offers: raw.offers, status: raw.roomName }));
20
20
  }
21
21
  if (isComparisonExcursion(raw)) {
22
- return _jsx(RowExcursion.FirstCol, { serviceName: raw.name });
22
+ return (_jsx(RowExcursion.FirstCol, { serviceName: raw.name, extraContent: raw.pickUpPoint }));
23
23
  }
24
24
  if (isComparisonTransfer(raw)) {
25
25
  var transfer = raw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.141",
3
+ "version": "0.2.143",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -56,7 +56,7 @@ function TextWithIcon(props: TextWithIconProps) {
56
56
  return (
57
57
  <div
58
58
  className={cn(
59
- 'flex gap-x-2',
59
+ 'flex gap-x-2 items-center',
60
60
  color === 'yellow' && 'text-[var(--color-yellow-600)]',
61
61
  color === 'accent' && 'text-[var(--color-text-accent)]'
62
62
  )}>
@@ -32,7 +32,12 @@ export const comparisonColumns: () => ColumnType<ComparisonData>[] = () => {
32
32
  );
33
33
  }
34
34
  if (isComparisonExcursion(raw)) {
35
- return <RowExcursion.FirstCol serviceName={raw.name as string} />;
35
+ return (
36
+ <RowExcursion.FirstCol
37
+ serviceName={raw.name as string}
38
+ extraContent={raw.pickUpPoint}
39
+ />
40
+ );
36
41
  }
37
42
  if (isComparisonTransfer(raw)) {
38
43
  const transfer = raw;