kupos-ui-components-lib 4.0.3 → 4.0.4
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/ServiceItem/ServiceItemDesktop.js +47 -2
- package/dist/components/ServiceItem/ServiceItemMobile.js +28 -1
- package/dist/components/ServiceItem/mobileTypes.d.ts +9 -0
- package/dist/components/ServiceItem/types.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +46 -1
- package/src/components/ServiceItem/ServiceItemMobile.tsx +27 -0
- package/src/components/ServiceItem/mobileTypes.ts +9 -0
- package/src/components/ServiceItem/types.ts +9 -0
|
@@ -25,7 +25,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
25
25
|
}, className: `object-contain ${moreAnemities ? "w-[16px] h-[16px]" : "w-[16px] h-[16px]"}` }));
|
|
26
26
|
};
|
|
27
27
|
const getAmenitiesImage = (name) => {
|
|
28
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
28
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
29
29
|
switch (name) {
|
|
30
30
|
case "air_condtion.png": {
|
|
31
31
|
return (_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _a === void 0 ? void 0 : _a.airConditionIcon;
|
|
@@ -69,6 +69,33 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
69
69
|
case "frazada.png": {
|
|
70
70
|
return (_p = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _p === void 0 ? void 0 : _p.frazaIcon;
|
|
71
71
|
}
|
|
72
|
+
case "blankket.png": {
|
|
73
|
+
return (_q = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _q === void 0 ? void 0 : _q.blankketIcon;
|
|
74
|
+
}
|
|
75
|
+
case "cctv.png": {
|
|
76
|
+
return (_r = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _r === void 0 ? void 0 : _r.cctvIcon;
|
|
77
|
+
}
|
|
78
|
+
case "cup_holder.png": {
|
|
79
|
+
return (_s = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _s === void 0 ? void 0 : _s.cupHolderIcon;
|
|
80
|
+
}
|
|
81
|
+
case "emergency_contact.png": {
|
|
82
|
+
return (_t = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _t === void 0 ? void 0 : _t.emergencyContactIcon;
|
|
83
|
+
}
|
|
84
|
+
case "emergency_exit.png": {
|
|
85
|
+
return (_u = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _u === void 0 ? void 0 : _u.emergencyExitIcon;
|
|
86
|
+
}
|
|
87
|
+
case "fire_extinguisher.png": {
|
|
88
|
+
return (_v = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _v === void 0 ? void 0 : _v.fireExtinguisherIcon;
|
|
89
|
+
}
|
|
90
|
+
case "reading_light.png": {
|
|
91
|
+
return (_w = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _w === void 0 ? void 0 : _w.readingLIghtIcon;
|
|
92
|
+
}
|
|
93
|
+
case "security_belt.png": {
|
|
94
|
+
return (_x = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _x === void 0 ? void 0 : _x.sercurityBeltIcon;
|
|
95
|
+
}
|
|
96
|
+
case "service_on_board.png": {
|
|
97
|
+
return (_y = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _y === void 0 ? void 0 : _y.serviceOnBoardIcon;
|
|
98
|
+
}
|
|
72
99
|
default: {
|
|
73
100
|
return "";
|
|
74
101
|
}
|
|
@@ -97,7 +124,25 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
97
124
|
case "cortina divisoria":
|
|
98
125
|
return "Cortina Divisoria";
|
|
99
126
|
case "frazada":
|
|
100
|
-
return "";
|
|
127
|
+
return "Frazada";
|
|
128
|
+
case "blankket":
|
|
129
|
+
return "Mantas";
|
|
130
|
+
case "cctv":
|
|
131
|
+
return "Cámara de seguridad";
|
|
132
|
+
case "cup_holder":
|
|
133
|
+
return "Portavasos";
|
|
134
|
+
case "emergency_contact":
|
|
135
|
+
return "Contacto de emergencia";
|
|
136
|
+
case "emergency_exit":
|
|
137
|
+
return "Salida de emergencia";
|
|
138
|
+
case "fire_extinguisher":
|
|
139
|
+
return "Extintor de incendio";
|
|
140
|
+
case "reading_light":
|
|
141
|
+
return "Luz de lectura";
|
|
142
|
+
case "security_belt":
|
|
143
|
+
return "Cinturón de seguridad";
|
|
144
|
+
case "service_on_board":
|
|
145
|
+
return "Servicio a bordo";
|
|
101
146
|
default:
|
|
102
147
|
return rawAmenity;
|
|
103
148
|
}
|
|
@@ -84,7 +84,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
84
84
|
return item;
|
|
85
85
|
};
|
|
86
86
|
const getAmenitiesImage = (name) => {
|
|
87
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
87
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
88
88
|
switch (name) {
|
|
89
89
|
case "air_condtion.png": {
|
|
90
90
|
return (_a = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _a === void 0 ? void 0 : _a.airConditionIcon;
|
|
@@ -128,6 +128,33 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
128
128
|
case "frazada.png": {
|
|
129
129
|
return (_p = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _p === void 0 ? void 0 : _p.frazaIcon;
|
|
130
130
|
}
|
|
131
|
+
case "blankket.png": {
|
|
132
|
+
return (_q = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _q === void 0 ? void 0 : _q.blankketIcon;
|
|
133
|
+
}
|
|
134
|
+
case "cctv.png": {
|
|
135
|
+
return (_r = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _r === void 0 ? void 0 : _r.cctvIcon;
|
|
136
|
+
}
|
|
137
|
+
case "cup_holder.png": {
|
|
138
|
+
return (_s = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _s === void 0 ? void 0 : _s.cupHolderIcon;
|
|
139
|
+
}
|
|
140
|
+
case "emergency_contact.png": {
|
|
141
|
+
return (_t = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _t === void 0 ? void 0 : _t.emergencyContactIcon;
|
|
142
|
+
}
|
|
143
|
+
case "emergency_exit.png": {
|
|
144
|
+
return (_u = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _u === void 0 ? void 0 : _u.emergencyExitIcon;
|
|
145
|
+
}
|
|
146
|
+
case "fire_extinguisher.png": {
|
|
147
|
+
return (_v = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _v === void 0 ? void 0 : _v.fireExtinguisherIcon;
|
|
148
|
+
}
|
|
149
|
+
case "reading_light.png": {
|
|
150
|
+
return (_w = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _w === void 0 ? void 0 : _w.readingLIghtIcon;
|
|
151
|
+
}
|
|
152
|
+
case "security_belt.png": {
|
|
153
|
+
return (_x = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _x === void 0 ? void 0 : _x.sercurityBeltIcon;
|
|
154
|
+
}
|
|
155
|
+
case "service_on_board.png": {
|
|
156
|
+
return (_y = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.icons) === null || _y === void 0 ? void 0 : _y.serviceOnBoardIcon;
|
|
157
|
+
}
|
|
131
158
|
default: {
|
|
132
159
|
return "";
|
|
133
160
|
}
|
|
@@ -91,6 +91,15 @@ export interface MobileServiceItemProps {
|
|
|
91
91
|
wifiIcon?: string;
|
|
92
92
|
cortinaIcon?: string;
|
|
93
93
|
frazaIcon?: string;
|
|
94
|
+
blankketIcon?: string;
|
|
95
|
+
cctvIcon?: string;
|
|
96
|
+
cupHolderIcon?: string;
|
|
97
|
+
emergencyContactIcon?: string;
|
|
98
|
+
emergencyExitIcon?: string;
|
|
99
|
+
fireExtinguisherIcon?: string;
|
|
100
|
+
readingLIghtIcon?: string;
|
|
101
|
+
sercurityBeltIcon?: string;
|
|
102
|
+
serviceOnBoardIcon?: string;
|
|
94
103
|
airportIcon?: string;
|
|
95
104
|
[key: string]: string | Record<string, string | undefined> | undefined;
|
|
96
105
|
};
|
|
@@ -96,6 +96,15 @@ export interface ServiceItemProps {
|
|
|
96
96
|
wifiIcon?: string;
|
|
97
97
|
cortinaIcon?: string;
|
|
98
98
|
frazaIcon?: string;
|
|
99
|
+
blankketIcon?: string;
|
|
100
|
+
cctvIcon?: string;
|
|
101
|
+
cupHolderIcon?: string;
|
|
102
|
+
emergencyContactIcon?: string;
|
|
103
|
+
emergencyExitIcon?: string;
|
|
104
|
+
fireExtinguisherIcon?: string;
|
|
105
|
+
readingLIghtIcon?: string;
|
|
106
|
+
sercurityBeltIcon?: string;
|
|
107
|
+
serviceOnBoardIcon?: string;
|
|
99
108
|
[key: string]: string | Record<string, string | undefined> | undefined;
|
|
100
109
|
};
|
|
101
110
|
useLottieFor?: string[];
|
package/package.json
CHANGED
|
@@ -114,6 +114,33 @@ function ServiceItemPB({
|
|
|
114
114
|
case "frazada.png": {
|
|
115
115
|
return serviceItem?.icons?.frazaIcon;
|
|
116
116
|
}
|
|
117
|
+
case "blankket.png": {
|
|
118
|
+
return serviceItem?.icons?.blankketIcon;
|
|
119
|
+
}
|
|
120
|
+
case "cctv.png": {
|
|
121
|
+
return serviceItem?.icons?.cctvIcon;
|
|
122
|
+
}
|
|
123
|
+
case "cup_holder.png": {
|
|
124
|
+
return serviceItem?.icons?.cupHolderIcon;
|
|
125
|
+
}
|
|
126
|
+
case "emergency_contact.png": {
|
|
127
|
+
return serviceItem?.icons?.emergencyContactIcon;
|
|
128
|
+
}
|
|
129
|
+
case "emergency_exit.png": {
|
|
130
|
+
return serviceItem?.icons?.emergencyExitIcon;
|
|
131
|
+
}
|
|
132
|
+
case "fire_extinguisher.png": {
|
|
133
|
+
return serviceItem?.icons?.fireExtinguisherIcon;
|
|
134
|
+
}
|
|
135
|
+
case "reading_light.png": {
|
|
136
|
+
return serviceItem?.icons?.readingLIghtIcon;
|
|
137
|
+
}
|
|
138
|
+
case "security_belt.png": {
|
|
139
|
+
return serviceItem?.icons?.sercurityBeltIcon;
|
|
140
|
+
}
|
|
141
|
+
case "service_on_board.png": {
|
|
142
|
+
return serviceItem?.icons?.serviceOnBoardIcon;
|
|
143
|
+
}
|
|
117
144
|
default: {
|
|
118
145
|
return "";
|
|
119
146
|
}
|
|
@@ -143,7 +170,25 @@ function ServiceItemPB({
|
|
|
143
170
|
case "cortina divisoria":
|
|
144
171
|
return "Cortina Divisoria";
|
|
145
172
|
case "frazada":
|
|
146
|
-
return "";
|
|
173
|
+
return "Frazada";
|
|
174
|
+
case "blankket":
|
|
175
|
+
return "Mantas";
|
|
176
|
+
case "cctv":
|
|
177
|
+
return "Cámara de seguridad";
|
|
178
|
+
case "cup_holder":
|
|
179
|
+
return "Portavasos";
|
|
180
|
+
case "emergency_contact":
|
|
181
|
+
return "Contacto de emergencia";
|
|
182
|
+
case "emergency_exit":
|
|
183
|
+
return "Salida de emergencia";
|
|
184
|
+
case "fire_extinguisher":
|
|
185
|
+
return "Extintor de incendio";
|
|
186
|
+
case "reading_light":
|
|
187
|
+
return "Luz de lectura";
|
|
188
|
+
case "security_belt":
|
|
189
|
+
return "Cinturón de seguridad";
|
|
190
|
+
case "service_on_board":
|
|
191
|
+
return "Servicio a bordo";
|
|
147
192
|
default:
|
|
148
193
|
return rawAmenity;
|
|
149
194
|
}
|
|
@@ -200,6 +200,33 @@ function ServiceItemMobile({
|
|
|
200
200
|
case "frazada.png": {
|
|
201
201
|
return serviceItem?.icons?.frazaIcon;
|
|
202
202
|
}
|
|
203
|
+
case "blankket.png": {
|
|
204
|
+
return serviceItem?.icons?.blankketIcon;
|
|
205
|
+
}
|
|
206
|
+
case "cctv.png": {
|
|
207
|
+
return serviceItem?.icons?.cctvIcon;
|
|
208
|
+
}
|
|
209
|
+
case "cup_holder.png": {
|
|
210
|
+
return serviceItem?.icons?.cupHolderIcon;
|
|
211
|
+
}
|
|
212
|
+
case "emergency_contact.png": {
|
|
213
|
+
return serviceItem?.icons?.emergencyContactIcon;
|
|
214
|
+
}
|
|
215
|
+
case "emergency_exit.png": {
|
|
216
|
+
return serviceItem?.icons?.emergencyExitIcon;
|
|
217
|
+
}
|
|
218
|
+
case "fire_extinguisher.png": {
|
|
219
|
+
return serviceItem?.icons?.fireExtinguisherIcon;
|
|
220
|
+
}
|
|
221
|
+
case "reading_light.png": {
|
|
222
|
+
return serviceItem?.icons?.readingLIghtIcon;
|
|
223
|
+
}
|
|
224
|
+
case "security_belt.png": {
|
|
225
|
+
return serviceItem?.icons?.sercurityBeltIcon;
|
|
226
|
+
}
|
|
227
|
+
case "service_on_board.png": {
|
|
228
|
+
return serviceItem?.icons?.serviceOnBoardIcon;
|
|
229
|
+
}
|
|
203
230
|
default: {
|
|
204
231
|
return "";
|
|
205
232
|
}
|
|
@@ -94,6 +94,15 @@ export interface MobileServiceItemProps {
|
|
|
94
94
|
wifiIcon?: string;
|
|
95
95
|
cortinaIcon?: string;
|
|
96
96
|
frazaIcon?: string;
|
|
97
|
+
blankketIcon?: string;
|
|
98
|
+
cctvIcon?: string;
|
|
99
|
+
cupHolderIcon?: string;
|
|
100
|
+
emergencyContactIcon?: string;
|
|
101
|
+
emergencyExitIcon?: string;
|
|
102
|
+
fireExtinguisherIcon?: string;
|
|
103
|
+
readingLIghtIcon?: string;
|
|
104
|
+
sercurityBeltIcon?: string;
|
|
105
|
+
serviceOnBoardIcon?: string;
|
|
97
106
|
airportIcon?: string;
|
|
98
107
|
[key: string]: string | Record<string, string | undefined> | undefined;
|
|
99
108
|
};
|
|
@@ -98,6 +98,15 @@ export interface ServiceItemProps {
|
|
|
98
98
|
wifiIcon?: string;
|
|
99
99
|
cortinaIcon?: string;
|
|
100
100
|
frazaIcon?: string;
|
|
101
|
+
blankketIcon?: string;
|
|
102
|
+
cctvIcon?: string;
|
|
103
|
+
cupHolderIcon?: string;
|
|
104
|
+
emergencyContactIcon?: string;
|
|
105
|
+
emergencyExitIcon?: string;
|
|
106
|
+
fireExtinguisherIcon?: string;
|
|
107
|
+
readingLIghtIcon?: string;
|
|
108
|
+
sercurityBeltIcon?: string;
|
|
109
|
+
serviceOnBoardIcon?: string;
|
|
101
110
|
[key: string]: string | Record<string, string | undefined> | undefined;
|
|
102
111
|
};
|
|
103
112
|
useLottieFor?: string[];
|