kupos-ui-components-lib 7.0.4 → 7.0.6
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.
|
@@ -341,6 +341,9 @@ function PeruServiceItemDesktop({ serviceItem, onBookButtonPress, colors, metaDa
|
|
|
341
341
|
const truncateSeatLabel = (label) => {
|
|
342
342
|
if (typeof label !== "string")
|
|
343
343
|
return String(label);
|
|
344
|
+
// Don't truncate if label contains parentheses (e.g., "Cama (180°)")
|
|
345
|
+
if (label.includes("("))
|
|
346
|
+
return label;
|
|
344
347
|
const words = label.trim().split(/\s+/);
|
|
345
348
|
if (words.length <= 2)
|
|
346
349
|
return label;
|
|
@@ -347,6 +347,9 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
347
347
|
const truncateSeatLabel = (label) => {
|
|
348
348
|
if (typeof label !== "string")
|
|
349
349
|
return String(label);
|
|
350
|
+
// Don't truncate if label contains parentheses (e.g., "Cama (180°)")
|
|
351
|
+
if (label.includes("("))
|
|
352
|
+
return label;
|
|
350
353
|
const words = label.trim().split(/\s+/);
|
|
351
354
|
if (words.length <= 2)
|
|
352
355
|
return label;
|
|
@@ -583,7 +586,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
583
586
|
color: isSoldOut ? "#c0c0c0" : colors.priceColor,
|
|
584
587
|
top: 0,
|
|
585
588
|
bottom: 0,
|
|
586
|
-
left: "clamp(
|
|
589
|
+
left: "clamp(70%, 65% + (100vw - 1300px) * 0.1, 65%)",
|
|
587
590
|
// left: "68%",
|
|
588
591
|
right: 0,
|
|
589
592
|
justifyContent: getNumberOfSeats() < 2 || removeDuplicateSeats
|
package/package.json
CHANGED
|
@@ -443,6 +443,8 @@ function PeruServiceItemDesktop({
|
|
|
443
443
|
// Helper function to truncate seat labels with more than 2 words
|
|
444
444
|
const truncateSeatLabel = (label: string | number): string => {
|
|
445
445
|
if (typeof label !== "string") return String(label);
|
|
446
|
+
// Don't truncate if label contains parentheses (e.g., "Cama (180°)")
|
|
447
|
+
if (label.includes("(")) return label;
|
|
446
448
|
const words = label.trim().split(/\s+/);
|
|
447
449
|
if (words.length <= 2) return label;
|
|
448
450
|
// Take first 2 words + first letter of 3rd word + "..."
|
|
@@ -449,6 +449,8 @@ function ServiceItemPB({
|
|
|
449
449
|
// Helper function to truncate seat labels with more than 2 words
|
|
450
450
|
const truncateSeatLabel = (label: string | number): string => {
|
|
451
451
|
if (typeof label !== "string") return String(label);
|
|
452
|
+
// Don't truncate if label contains parentheses (e.g., "Cama (180°)")
|
|
453
|
+
if (label.includes("(")) return label;
|
|
452
454
|
const words = label.trim().split(/\s+/);
|
|
453
455
|
if (words.length <= 2) return label;
|
|
454
456
|
// Take first 2 words + first letter of 3rd word + "..."
|
|
@@ -1012,7 +1014,7 @@ function ServiceItemPB({
|
|
|
1012
1014
|
color: isSoldOut ? "#c0c0c0" : colors.priceColor,
|
|
1013
1015
|
top: 0,
|
|
1014
1016
|
bottom: 0,
|
|
1015
|
-
left: "clamp(
|
|
1017
|
+
left: "clamp(70%, 65% + (100vw - 1300px) * 0.1, 65%)",
|
|
1016
1018
|
// left: "68%",
|
|
1017
1019
|
right: 0,
|
|
1018
1020
|
justifyContent:
|