kupos-ui-components-lib 7.0.5 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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 + "..."