mautourco-components 0.2.136 → 0.2.138

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.
@@ -4,6 +4,6 @@ export function PaxChips(props) {
4
4
  var pax = props.pax;
5
5
  return (_jsx("div", { className: "flex flex-wrap gap-2", children: Object.entries(pax).map(function (_a) {
6
6
  var key = _a[0], value = _a[1];
7
- return (_jsx(Chip, { label: "".concat(key, " ").concat(value), size: "sm", color: "accent", type: value > 0 ? 'filled' : 'outline' }, key));
7
+ return (_jsx(Chip, { label: "".concat(key, " ").concat(value), size: "sm", color: "accent", className: "capitalize", type: value > 0 ? 'filled' : 'outline' }, key));
8
8
  }) }));
9
9
  }
@@ -19,7 +19,6 @@ export var detailResumeColumns = function (params) {
19
19
  cell: function (value, raw) {
20
20
  if (value === ServiceType.ACCOMMODATION) {
21
21
  var accom = raw;
22
- console.log(accom);
23
22
  return (_jsx(RowAccommodation.FirstCol, { serviceName: accom.HotelName, offers: accom.Offers, status: accom.RoomStatus }));
24
23
  }
25
24
  if (value === ServiceType.EXCURSION) {
@@ -40,7 +39,7 @@ export var detailResumeColumns = function (params) {
40
39
  header: 'Details',
41
40
  key: 'Type',
42
41
  width: 400,
43
- cell: function (value, raw, index) {
42
+ cell: function (value, raw) {
44
43
  if (value === ServiceType.ACCOMMODATION) {
45
44
  var accom = raw;
46
45
  return (_jsx(RowAccommodation.DetailsCol, { data: {
@@ -48,7 +47,7 @@ export var detailResumeColumns = function (params) {
48
47
  Dates: accom.Dates,
49
48
  ClientCategory: accom.ClientCategory,
50
49
  MealPlan: accom.MealPlan,
51
- }, index: (index || 0) + 1 }));
50
+ }, index: accom.RoomIndex }));
52
51
  }
53
52
  if (value === ServiceType.EXCURSION) {
54
53
  var excursion = raw;
@@ -60,6 +60,7 @@ export interface DetailResumeAccommodation extends TableRowData<DetailResumeItem
60
60
  Description: string;
61
61
  TitleDescription: string;
62
62
  Rooms: Room[];
63
+ RoomIndex: number;
63
64
  }
64
65
  export interface DetailResumeTransfer extends TableRowData<DetailResumeItem> {
65
66
  Type: ServiceType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.136",
3
+ "version": "0.2.138",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -21,6 +21,7 @@ export function PaxChips(props: PaxChipsProps) {
21
21
  label={`${key} ${value}`}
22
22
  size="sm"
23
23
  color="accent"
24
+ className="capitalize"
24
25
  type={value > 0 ? 'filled' : 'outline'}
25
26
  />
26
27
  ))}
@@ -29,7 +29,6 @@ export const detailResumeColumns: (params?: {
29
29
  cell: (value, raw) => {
30
30
  if (value === ServiceType.ACCOMMODATION) {
31
31
  const accom = raw as DetailResumeAccommodation;
32
- console.log(accom);
33
32
  return (
34
33
  <RowAccommodation.FirstCol
35
34
  serviceName={accom.HotelName as string}
@@ -66,9 +65,10 @@ export const detailResumeColumns: (params?: {
66
65
  header: 'Details',
67
66
  key: 'Type',
68
67
  width: 400,
69
- cell: (value, raw, index) => {
68
+ cell: (value, raw) => {
70
69
  if (value === ServiceType.ACCOMMODATION) {
71
70
  const accom = raw as DetailResumeAccommodation;
71
+
72
72
  return (
73
73
  <RowAccommodation.DetailsCol
74
74
  data={{
@@ -77,7 +77,7 @@ export const detailResumeColumns: (params?: {
77
77
  ClientCategory: accom.ClientCategory,
78
78
  MealPlan: accom.MealPlan,
79
79
  }}
80
- index={(index || 0) + 1}
80
+ index={accom.RoomIndex}
81
81
  />
82
82
  );
83
83
  }
@@ -67,6 +67,7 @@ export interface DetailResumeAccommodation
67
67
  Description: string;
68
68
  TitleDescription: string;
69
69
  Rooms: Room[];
70
+ RoomIndex: number;
70
71
  }
71
72
 
72
73
  export interface DetailResumeTransfer extends TableRowData<DetailResumeItem> {