mautourco-components 0.2.45 → 0.2.47

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.
Files changed (39) hide show
  1. package/dist/components/atoms/Inputs/Input/Input.js +1 -1
  2. package/dist/components/molecules/AgeSelector/AgeSelector.d.ts +20 -0
  3. package/dist/components/molecules/AgeSelector/AgeSelector.js +84 -0
  4. package/dist/components/molecules/LocationDropdown/LocationDropdown.js +1 -1
  5. package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +5 -0
  6. package/dist/components/organisms/PaxSelector/PaxSelector.js +100 -114
  7. package/dist/components/organisms/QuoteHeader/QuoteHeader.js +31 -6
  8. package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +2 -0
  9. package/dist/components/organisms/RoundTrip/RoundTrip.js +7 -7
  10. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +4 -0
  11. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +19 -57
  12. package/dist/components/organisms/Table/columns/booking-columns.js +1 -8
  13. package/dist/components/organisms/Table/columns/quotation-columns.js +1 -8
  14. package/dist/components/organisms/TransferLine/TransferLine.d.ts +9 -5
  15. package/dist/components/organisms/TransferLine/TransferLine.js +52 -35
  16. package/dist/index.d.ts +19 -16
  17. package/dist/index.js +3 -1
  18. package/dist/styles/components/molecule/age-selector.css +216 -0
  19. package/dist/styles/components/molecule/calendarInput.css +25 -6
  20. package/dist/styles/components/molecule/location-dropdown.css +16 -4
  21. package/dist/styles/components/organism/pax-selector.css +27 -189
  22. package/dist/styles/components/organism/transfer-line.css +40 -0
  23. package/dist/styles/mautourco.css +1 -0
  24. package/package.json +1 -1
  25. package/src/components/atoms/Inputs/Input/Input.tsx +1 -1
  26. package/src/components/molecules/AgeSelector/AgeSelector.tsx +172 -0
  27. package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +1 -1
  28. package/src/components/organisms/PaxSelector/PaxSelector.tsx +132 -208
  29. package/src/components/organisms/QuoteHeader/QuoteHeader.tsx +37 -6
  30. package/src/components/organisms/RoundTrip/RoundTrip.tsx +7 -0
  31. package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +34 -54
  32. package/src/components/organisms/Table/columns/booking-columns.tsx +1 -17
  33. package/src/components/organisms/Table/columns/quotation-columns.tsx +1 -17
  34. package/src/components/organisms/TransferLine/TransferLine.tsx +107 -85
  35. package/src/styles/components/molecule/age-selector.css +136 -0
  36. package/src/styles/components/molecule/calendarInput.css +12 -4
  37. package/src/styles/components/molecule/location-dropdown.css +9 -2
  38. package/src/styles/components/organism/pax-selector.css +25 -186
  39. package/src/styles/components/organism/transfer-line.css +31 -0
@@ -158,19 +158,27 @@
158
158
 
159
159
  /* Disabled state */
160
160
  .calendar-input--disabled {
161
- @apply border-[var(--color-neutral-400)] bg-[var(--color-surface-50)];
161
+ @apply border-[#d1d5db] bg-[#fbfbfb] cursor-not-allowed;
162
162
  }
163
163
 
164
164
  .calendar-input--disabled .calendar-input__field {
165
- @apply cursor-not-allowed text-[var(--color-tuna-400)];
165
+ @apply cursor-not-allowed text-[#a3a3a3];
166
+ }
167
+
168
+ .calendar-input--disabled .calendar-input__field::placeholder {
169
+ @apply text-[#a3a3a3];
166
170
  }
167
171
 
168
172
  .calendar-input--disabled .calendar-input__icon-button {
169
- @apply !bg-none !text-[var(--color-tuna-400)];
173
+ @apply !bg-none !text-[#a3a3a3] cursor-not-allowed;
170
174
  }
171
175
 
172
176
  .calendar-input--disabled .calendar-input__icon-button--full-bg {
173
- @apply !bg-[var(--color-gray-200)] !text-[var(--color-tuna-400)];
177
+ @apply !bg-[#d1d5db] !text-[#a3a3a3] cursor-not-allowed;
178
+ }
179
+
180
+ .calendar-input--disabled .calendar-input__chevron {
181
+ @apply text-[#a3a3a3];
174
182
  }
175
183
 
176
184
  /* Responsive design */
@@ -79,13 +79,20 @@
79
79
  }
80
80
 
81
81
  .location-dropdown__input--disabled {
82
- @apply bg-[var(--color-surface-50)] border-[var(--color-neutral-400)] cursor-not-allowed opacity-60;
82
+ @apply bg-[#fbfbfb] border-[#d1d5db] cursor-not-allowed;
83
83
  }
84
84
 
85
85
  .location-dropdown__input--disabled .location-dropdown__input-text,
86
86
  .location-dropdown__input--disabled .location-dropdown__input-icon,
87
87
  .location-dropdown__input--disabled .location-dropdown__input-chevron {
88
- @apply text-[var(--color-neutral-400)];
88
+ @apply text-[#a3a3a3];
89
+ }
90
+
91
+ /* Disabled label - override all text elements */
92
+ .location-dropdown--disabled .location-dropdown__label,
93
+ .location-dropdown--disabled .location-dropdown__label p,
94
+ .location-dropdown--disabled .location-dropdown__label * {
95
+ @apply text-[#a3a3a3] font-normal !important;
89
96
  }
90
97
 
91
98
  /* Dropdown Panel */
@@ -88,6 +88,30 @@
88
88
  transform: rotate(180deg)!important;
89
89
  }
90
90
 
91
+ /* Disabled state */
92
+ .pax-selector--disabled .pax-selector__label {
93
+ color: #a3a3a3;
94
+ font-weight: 400;
95
+ }
96
+
97
+ .pax-selector--disabled .pax-selector__input {
98
+ background: #fbfbfb;
99
+ border-color: #d1d5db;
100
+ cursor: not-allowed;
101
+ }
102
+
103
+ .pax-selector--disabled .pax-selector__input-icon,
104
+ .pax-selector--disabled .pax-selector__input-text,
105
+ .pax-selector--disabled .pax-selector__chevron {
106
+ color: #a3a3a3;
107
+ }
108
+
109
+ .pax-selector__input--disabled {
110
+ background: #fbfbfb;
111
+ border-color: #d1d5db;
112
+ cursor: not-allowed;
113
+ }
114
+
91
115
  /* Dropdown Panel */
92
116
  .pax-selector__dropdown {
93
117
  position: absolute;
@@ -393,184 +417,6 @@
393
417
  z-index: 50;
394
418
  }
395
419
 
396
- /* Age Selector Styles */
397
- .pax-selector__age-selector {
398
- display: flex;
399
- flex-direction: column;
400
- gap: 8px;
401
- width: 80px;
402
- position: relative;
403
- }
404
-
405
- .pax-selector__age-label {
406
- font-family: var(--typography-body-family, 'Satoshi', sans-serif);
407
- font-weight: var(--font-weight-font-normal, 400);
408
- font-size: 14px;
409
- line-height: 20px;
410
- color: var(--dropdown-color-label-default, #262626);
411
- }
412
-
413
- .pax-selector__age-required {
414
- color: var(--chip-color-red-outline-foreground, #991b1b);
415
- }
416
-
417
- /* Age Selector using DropdownInput structure */
418
- .pax-selector__age-dropdown-container {
419
- width: 100%;
420
- }
421
-
422
- .pax-selector__age-dropdown-input {
423
- min-height: auto;
424
- padding: 12px 8px 12px 16px;
425
- border: 1px solid var(--dropdown-color-border-value, #262626);
426
- border-radius: 12px;
427
- cursor: default;
428
- }
429
-
430
- .pax-selector__age-dropdown-input:hover {
431
- border-color: var(--dropdown-color-border-hover, #0f7173);
432
- }
433
-
434
- .pax-selector__age-dropdown-input:focus-within {
435
- border-color: var(--dropdown-color-border-hover, #0f7173);
436
- }
437
-
438
- .pax-selector__age-input-text {
439
- padding: 0;
440
- background: transparent;
441
- border: none;
442
- outline: none;
443
- font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
444
- font-weight: var(--font-weight-font-medium, 500);
445
- font-size: 14px;
446
- line-height: 20px;
447
- color: var(--dropdown-color-foreground-value, #262626);
448
- white-space: nowrap;
449
- overflow: visible;
450
- text-overflow: clip;
451
- cursor: text;
452
- width: 100%;
453
- }
454
-
455
- .pax-selector__age-input-text::placeholder {
456
- color: var(--dropdown-selector-color-filled-foreground-default, #737373);
457
- }
458
-
459
- .pax-selector__age-dropdown-btn {
460
- display: flex;
461
- align-items: center;
462
- justify-content: center;
463
- padding: 0;
464
- margin-left: 8px;
465
- background: transparent;
466
- border: none;
467
- cursor: pointer;
468
- transition: all 0.2s ease;
469
- flex-shrink: 0;
470
- }
471
-
472
- .pax-selector__age-dropdown-btn:hover {
473
- opacity: 0.8;
474
- }
475
-
476
- .pax-selector__age-dropdown-btn .dropdown-input__icon--chevron {
477
- transition: transform 0.2s ease;
478
- }
479
-
480
- .pax-selector__age-dropdown-input--open .pax-selector__age-dropdown-btn .dropdown-input__icon--chevron {
481
- transform: rotate(180deg);
482
- }
483
-
484
- .pax-selector__age-trigger {
485
- display: flex;
486
- align-items: center;
487
- justify-content: space-between;
488
- gap: 8px;
489
- width: 100%;
490
- padding: 12px 16px;
491
- background: var(--dropdown-color-background-value, #ffffff);
492
- border: 1px solid var(--dropdown-color-border-value, #262626);
493
- border-radius: 12px;
494
- cursor: pointer;
495
- font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
496
- font-weight: var(--font-weight-font-medium, 500);
497
- font-size: 14px;
498
- line-height: 20px;
499
- color: var(--dropdown-color-foreground-value, #262626);
500
- transition: all 0.2s ease;
501
- }
502
-
503
- .pax-selector__age-trigger:hover {
504
- border-color: var(--dropdown-color-border-hover, #0f7173);
505
- }
506
-
507
- .pax-selector__age-value {
508
- flex: 1;
509
- text-align: left;
510
- }
511
-
512
- .pax-selector__age-chevron {
513
- color: var(--color-text-default, #262626);
514
- transition: transform 0.2s ease;
515
- flex-shrink: 0;
516
- }
517
-
518
- .pax-selector__age-chevron--open {
519
- transform: rotate(180deg);
520
- }
521
-
522
- /* Use dropdown-menu from dropdown.css, but add custom styles for age selector */
523
- .pax-selector__age-dropdown-container .dropdown-menu {
524
- max-height: 200px;
525
- z-index: 110;
526
- }
527
-
528
- .pax-selector__age-dropdown-container .dropdown-option--selected {
529
- background-color: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
530
- color: #ffffff;
531
- }
532
-
533
- .pax-selector__age-dropdown-container .dropdown-option--selected:hover {
534
- background-color: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
535
- color: #ffffff;
536
- }
537
-
538
- @keyframes pax-selector-age-dropdown-enter {
539
- from {
540
- opacity: 0;
541
- transform: translateY(-4px);
542
- }
543
- to {
544
- opacity: 1;
545
- transform: translateY(0);
546
- }
547
- }
548
-
549
- .pax-selector__age-option {
550
- width: 100%;
551
- padding: 8px 12px;
552
- background: var(--dropdown-selector-color-select-item-background-default, #ffffff);
553
- border: none;
554
- cursor: pointer;
555
- text-align: left;
556
- font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
557
- font-weight: 400;
558
- font-size: 14px;
559
- line-height: 20px;
560
- color: var(--color-text-default, #262626);
561
- transition: all 0.2s ease;
562
- }
563
-
564
- .pax-selector__age-option:hover {
565
- background: var(--dropdown-selector-color-select-item-background-hover, #115b5e);
566
- color: #ffffff;
567
- }
568
-
569
- .pax-selector__age-option--selected {
570
- background: var(--dropdown-selector-color-select-item-background-selected, #0f7173);
571
- color: #ffffff;
572
- }
573
-
574
420
  /* Age Section */
575
421
  .pax-selector__age-section {
576
422
  display: flex;
@@ -585,16 +431,9 @@
585
431
  }
586
432
 
587
433
  .pax-selector__age-groups {
588
- display: flex;
589
- flex-direction: column;
590
- gap: 16px;
434
+ @apply flex flex-wrap gap-4;
591
435
  }
592
436
 
593
- .pax-selector__age-row {
594
- display: flex;
595
- gap: 16px;
596
- align-items: flex-start;
597
- }
598
437
 
599
438
  /* Multiple Rooms Styles */
600
439
  .pax-selector__rooms {
@@ -87,4 +87,35 @@
87
87
 
88
88
  .transfer-line__date-picker {
89
89
  @apply h-11;
90
+ }
91
+
92
+ /* Disabled state */
93
+ .transfer-line--disabled {
94
+ @apply pointer-events-none;
95
+ }
96
+
97
+ .transfer-line--disabled .transfer-line__field-label {
98
+ @apply text-[#a3a3a3] font-normal;
99
+ }
100
+
101
+ /* Match Figma design colors for disabled inputs */
102
+ .transfer-line--disabled .location-dropdown__input,
103
+ .transfer-line--disabled .calendar-input,
104
+ .transfer-line--disabled .pax-selector__input {
105
+ @apply bg-[#fbfbfb] border-[#d1d5db];
106
+ }
107
+
108
+ .transfer-line--disabled .location-dropdown__label,
109
+ .transfer-line--disabled .location-dropdown__label p,
110
+ .transfer-line--disabled .location-dropdown__input-text,
111
+ .transfer-line--disabled .location-dropdown__input-icon,
112
+ .transfer-line--disabled .location-dropdown__input-chevron,
113
+ .transfer-line--disabled .calendar-input__field,
114
+ .transfer-line--disabled .calendar-input__icon-button,
115
+ .transfer-line--disabled .calendar-input__chevron,
116
+ .transfer-line--disabled .pax-selector__input-icon,
117
+ .transfer-line--disabled .pax-selector__input-text,
118
+ .transfer-line--disabled .pax-selector__chevron,
119
+ .transfer-line--disabled .pax-selector__label {
120
+ @apply text-[#a3a3a3] font-normal !important;
90
121
  }