kupos-ui-components-lib 9.7.5 → 9.7.7

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 (29) hide show
  1. package/dist/KuposUIComponent.d.ts +3 -0
  2. package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
  3. package/dist/components/ServiceItem/ServiceItemDesktop.js +15 -2
  4. package/dist/components/ServiceItem/ServiceItemMobile.d.ts +1 -1
  5. package/dist/components/ServiceItem/ServiceItemMobile.js +16 -7
  6. package/dist/components/ServiceItem/mobileTypes.d.ts +32 -0
  7. package/dist/components/ServiceItem/types.d.ts +22 -0
  8. package/dist/styles.css +209 -0
  9. package/dist/ui/BottomAmenities/BottomAmenities.js +1 -1
  10. package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +2 -2
  11. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.d.ts +5 -1
  12. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.js +40 -92
  13. package/dist/ui/FeatureServiceUI/FeatureServiceUi.d.ts +5 -1
  14. package/dist/ui/FeatureServiceUI/FeatureServiceUi.js +40 -5
  15. package/dist/utils/CommonService.js +11 -1
  16. package/package.json +1 -1
  17. package/src/KuposUIComponent.tsx +3 -0
  18. package/src/assets/images/anims/service_list/thunder_icon.json +1 -0
  19. package/src/assets/images/anims/service_list/users_anim.json +1 -0
  20. package/src/components/ServiceItem/ServiceItemDesktop.tsx +50 -0
  21. package/src/components/ServiceItem/ServiceItemMobile.tsx +340 -286
  22. package/src/components/ServiceItem/mobileTypes.ts +29 -1
  23. package/src/components/ServiceItem/types.ts +23 -1
  24. package/src/styles.css +15 -0
  25. package/src/ui/BottomAmenities/BottomAmenities.tsx +1 -1
  26. package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +2 -2
  27. package/src/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.tsx +517 -0
  28. package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +554 -0
  29. package/src/utils/CommonService.ts +13 -1
package/dist/styles.css CHANGED
@@ -60,9 +60,15 @@
60
60
  .top-\[88\%\] {
61
61
  top: 88%;
62
62
  }
63
+ .top-\[calc\(100\%\+10px\)\] {
64
+ top: calc(100% + 10px);
65
+ }
63
66
  .right-\[0px\] {
64
67
  right: 0px;
65
68
  }
69
+ .right-\[18px\] {
70
+ right: 18px;
71
+ }
66
72
  .-bottom-\[9\%\] {
67
73
  bottom: calc(9% * -1);
68
74
  }
@@ -75,6 +81,9 @@
75
81
  .-bottom-\[36px\] {
76
82
  bottom: calc(36px * -1);
77
83
  }
84
+ .bottom-\[11px\] {
85
+ bottom: 11px;
86
+ }
78
87
  .bottom-\[35px\] {
79
88
  bottom: 35px;
80
89
  }
@@ -168,9 +177,18 @@
168
177
  .m-\[auto\] {
169
178
  margin: auto;
170
179
  }
180
+ .mx-\[10px\] {
181
+ margin-inline: 10px;
182
+ }
171
183
  .mx-auto {
172
184
  margin-inline: auto;
173
185
  }
186
+ .my-\[8px\] {
187
+ margin-block: 8px;
188
+ }
189
+ .my-\[14px\] {
190
+ margin-block: 14px;
191
+ }
174
192
  .-mt-\[15px\] {
175
193
  margin-top: calc(15px * -1);
176
194
  }
@@ -189,12 +207,21 @@
189
207
  .mt-\[5px\] {
190
208
  margin-top: 5px;
191
209
  }
210
+ .mt-\[6px\] {
211
+ margin-top: 6px;
212
+ }
192
213
  .mt-\[10px\] {
193
214
  margin-top: 10px;
194
215
  }
216
+ .mt-\[12px\] {
217
+ margin-top: 12px;
218
+ }
195
219
  .mt-\[13px\] {
196
220
  margin-top: 13px;
197
221
  }
222
+ .mt-\[14px\] {
223
+ margin-top: 14px;
224
+ }
198
225
  .mt-\[15px\] {
199
226
  margin-top: 15px;
200
227
  }
@@ -228,6 +255,9 @@
228
255
  .mb-\[2px\] {
229
256
  margin-bottom: 2px;
230
257
  }
258
+ .mb-\[3px\] {
259
+ margin-bottom: 3px;
260
+ }
231
261
  .mb-\[4px\] {
232
262
  margin-bottom: 4px;
233
263
  }
@@ -342,6 +372,9 @@
342
372
  .h-\[30px\] {
343
373
  height: 30px;
344
374
  }
375
+ .h-\[34px\] {
376
+ height: 34px;
377
+ }
345
378
  .h-\[100\%\] {
346
379
  height: 100%;
347
380
  }
@@ -378,6 +411,9 @@
378
411
  .w-\[20px\] {
379
412
  width: 20px;
380
413
  }
414
+ .w-\[34px\] {
415
+ width: 34px;
416
+ }
381
417
  .w-\[50\%\] {
382
418
  width: 50%;
383
419
  }
@@ -446,6 +482,12 @@
446
482
  .max-w-\[165px\] {
447
483
  max-width: 165px;
448
484
  }
485
+ .max-w-\[220px\] {
486
+ max-width: 220px;
487
+ }
488
+ .max-w-full {
489
+ max-width: 100%;
490
+ }
449
491
  .min-w-\[75px\] {
450
492
  min-width: 75px;
451
493
  }
@@ -467,6 +509,9 @@
467
509
  --tw-translate-y: -10px;
468
510
  translate: var(--tw-translate-x) var(--tw-translate-y);
469
511
  }
512
+ .rotate-0 {
513
+ rotate: 0deg;
514
+ }
470
515
  .rotate-180 {
471
516
  rotate: 180deg;
472
517
  }
@@ -476,6 +521,9 @@
476
521
  .cursor-default {
477
522
  cursor: default;
478
523
  }
524
+ .cursor-not-allowed {
525
+ cursor: not-allowed;
526
+ }
479
527
  .cursor-pointer {
480
528
  cursor: pointer;
481
529
  }
@@ -488,12 +536,21 @@
488
536
  .grid-cols-2 {
489
537
  grid-template-columns: repeat(2, minmax(0, 1fr));
490
538
  }
539
+ .grid-cols-3 {
540
+ grid-template-columns: repeat(3, minmax(0, 1fr));
541
+ }
542
+ .grid-cols-4 {
543
+ grid-template-columns: repeat(4, minmax(0, 1fr));
544
+ }
491
545
  .grid-cols-\[0\.8fr_auto_26\%_1fr\] {
492
546
  grid-template-columns: 0.8fr auto 26% 1fr;
493
547
  }
494
548
  .grid-cols-\[1\.5fr_1fr_auto\] {
495
549
  grid-template-columns: 1.5fr 1fr auto;
496
550
  }
551
+ .grid-cols-\[25\%_48\%_27\%\] {
552
+ grid-template-columns: 25% 48% 27%;
553
+ }
497
554
  .grid-cols-\[26px_auto_26\%_1fr\] {
498
555
  grid-template-columns: 26px auto 26% 1fr;
499
556
  }
@@ -521,6 +578,9 @@
521
578
  .items-start {
522
579
  align-items: flex-start;
523
580
  }
581
+ .items-stretch {
582
+ align-items: stretch;
583
+ }
524
584
  .justify-between {
525
585
  justify-content: space-between;
526
586
  }
@@ -563,6 +623,12 @@
563
623
  .gap-\[14px\] {
564
624
  gap: 14px;
565
625
  }
626
+ .gap-\[16px\] {
627
+ gap: 16px;
628
+ }
629
+ .gap-\[20px\] {
630
+ gap: 20px;
631
+ }
566
632
  .gap-x-\[2\%\] {
567
633
  -moz-column-gap: 2%;
568
634
  column-gap: 2%;
@@ -571,12 +637,20 @@
571
637
  -moz-column-gap: 8px;
572
638
  column-gap: 8px;
573
639
  }
640
+ .truncate {
641
+ overflow: hidden;
642
+ text-overflow: ellipsis;
643
+ white-space: nowrap;
644
+ }
574
645
  .overflow-hidden {
575
646
  overflow: hidden;
576
647
  }
577
648
  .overflow-y-hidden {
578
649
  overflow-y: hidden;
579
650
  }
651
+ .rounded-\[4px\] {
652
+ border-radius: 4px;
653
+ }
580
654
  .rounded-\[8px\] {
581
655
  border-radius: 8px;
582
656
  }
@@ -589,6 +663,9 @@
589
663
  .rounded-\[15px\] {
590
664
  border-radius: 15px;
591
665
  }
666
+ .rounded-\[16px\] {
667
+ border-radius: 16px;
668
+ }
592
669
  .rounded-\[18px\] {
593
670
  border-radius: 18px;
594
671
  }
@@ -632,6 +709,10 @@
632
709
  border-top-style: var(--tw-border-style);
633
710
  border-top-width: 8px;
634
711
  }
712
+ .border-r {
713
+ border-right-style: var(--tw-border-style);
714
+ border-right-width: 1px;
715
+ }
635
716
  .border-r-8 {
636
717
  border-right-style: var(--tw-border-style);
637
718
  border-right-width: 8px;
@@ -660,6 +741,10 @@
660
741
  border-bottom-style: var(--tw-border-style);
661
742
  border-bottom-width: 8px;
662
743
  }
744
+ .border-l {
745
+ border-left-style: var(--tw-border-style);
746
+ border-left-width: 1px;
747
+ }
663
748
  .border-l-8 {
664
749
  border-left-style: var(--tw-border-style);
665
750
  border-left-width: 8px;
@@ -676,6 +761,9 @@
676
761
  --tw-border-style: none;
677
762
  border-style: none;
678
763
  }
764
+ .border-\[\#363c48\] {
765
+ border-color: #363c48;
766
+ }
679
767
  .border-\[\#ccc\] {
680
768
  border-color: #ccc;
681
769
  }
@@ -694,9 +782,24 @@
694
782
  .border-l-transparent {
695
783
  border-left-color: transparent;
696
784
  }
785
+ .bg-\[\#0C1421\] {
786
+ background-color: #0C1421;
787
+ }
788
+ .bg-\[\#2d374d\] {
789
+ background-color: #2d374d;
790
+ }
791
+ .bg-\[\#222b3d\] {
792
+ background-color: #222b3d;
793
+ }
697
794
  .bg-\[\#E6E6E6\] {
698
795
  background-color: #E6E6E6;
699
796
  }
797
+ .bg-\[\#FF5C60\] {
798
+ background-color: #FF5C60;
799
+ }
800
+ .bg-\[\#FF8F45\] {
801
+ background-color: #FF8F45;
802
+ }
700
803
  .bg-\[\#FFF2F2\] {
701
804
  background-color: #FFF2F2;
702
805
  }
@@ -715,6 +818,9 @@
715
818
  .bg-\[lightgray\] {
716
819
  background-color: lightgray;
717
820
  }
821
+ .bg-transparent {
822
+ background-color: transparent;
823
+ }
718
824
  .bg-\[length\:200\%_200\%\] {
719
825
  background-size: 200% 200%;
720
826
  }
@@ -737,6 +843,9 @@
737
843
  .p-\[10px_15px\] {
738
844
  padding: 10px 15px;
739
845
  }
846
+ .p-\[14px\] {
847
+ padding: 14px;
848
+ }
740
849
  .p-\[15px\] {
741
850
  padding: 15px;
742
851
  }
@@ -770,9 +879,18 @@
770
879
  .px-\[15px\] {
771
880
  padding-inline: 15px;
772
881
  }
882
+ .px-\[16px\] {
883
+ padding-inline: 16px;
884
+ }
773
885
  .px-\[20px\] {
774
886
  padding-inline: 20px;
775
887
  }
888
+ .px-\[22px\] {
889
+ padding-inline: 22px;
890
+ }
891
+ .py-\[2px\] {
892
+ padding-block: 2px;
893
+ }
776
894
  .py-\[4px\] {
777
895
  padding-block: 4px;
778
896
  }
@@ -785,6 +903,9 @@
785
903
  .py-\[8px\] {
786
904
  padding-block: 8px;
787
905
  }
906
+ .py-\[9px\] {
907
+ padding-block: 9px;
908
+ }
788
909
  .py-\[10px\] {
789
910
  padding-block: 10px;
790
911
  }
@@ -800,6 +921,9 @@
800
921
  .pt-\[10px\] {
801
922
  padding-top: 10px;
802
923
  }
924
+ .pt-\[14px\] {
925
+ padding-top: 14px;
926
+ }
803
927
  .pt-\[20px\] {
804
928
  padding-top: 20px;
805
929
  }
@@ -815,6 +939,9 @@
815
939
  .pt-\[50px\] {
816
940
  padding-top: 50px;
817
941
  }
942
+ .pr-\[10px\] {
943
+ padding-right: 10px;
944
+ }
818
945
  .pr-\[15px\] {
819
946
  padding-right: 15px;
820
947
  }
@@ -824,6 +951,9 @@
824
951
  .pr-\[22px\] {
825
952
  padding-right: 22px;
826
953
  }
954
+ .pb-\[6px\] {
955
+ padding-bottom: 6px;
956
+ }
827
957
  .pb-\[7px\] {
828
958
  padding-bottom: 7px;
829
959
  }
@@ -842,6 +972,9 @@
842
972
  .pl-\[6px\] {
843
973
  padding-left: 6px;
844
974
  }
975
+ .pl-\[22px\] {
976
+ padding-left: 22px;
977
+ }
845
978
  .text-center {
846
979
  text-align: center;
847
980
  }
@@ -878,6 +1011,9 @@
878
1011
  .text-\[14px\] {
879
1012
  font-size: 14px;
880
1013
  }
1014
+ .text-\[15px\] {
1015
+ font-size: 15px;
1016
+ }
881
1017
  .text-\[17\.33px\] {
882
1018
  font-size: 17.33px;
883
1019
  }
@@ -887,9 +1023,21 @@
887
1023
  .text-\[18px\] {
888
1024
  font-size: 18px;
889
1025
  }
1026
+ .text-\[20px\] {
1027
+ font-size: 20px;
1028
+ }
890
1029
  .text-\[22px\] {
891
1030
  font-size: 22px;
892
1031
  }
1032
+ .text-\[25px\] {
1033
+ font-size: 25px;
1034
+ }
1035
+ .text-\[26px\] {
1036
+ font-size: 26px;
1037
+ }
1038
+ .text-\[28px\] {
1039
+ font-size: 28px;
1040
+ }
893
1041
  .text-\[42px\] {
894
1042
  font-size: 42px;
895
1043
  }
@@ -897,6 +1045,10 @@
897
1045
  --tw-leading: 1.3;
898
1046
  line-height: 1.3;
899
1047
  }
1048
+ .leading-\[14px\] {
1049
+ --tw-leading: 14px;
1050
+ line-height: 14px;
1051
+ }
900
1052
  .leading-\[20px\] {
901
1053
  --tw-leading: 20px;
902
1054
  line-height: 20px;
@@ -917,6 +1069,10 @@
917
1069
  --tw-leading: 1;
918
1070
  line-height: 1;
919
1071
  }
1072
+ .font-\[9px\] {
1073
+ --tw-font-weight: 9px;
1074
+ font-weight: 9px;
1075
+ }
920
1076
  .font-\[14px\] {
921
1077
  --tw-font-weight: 14px;
922
1078
  font-weight: 14px;
@@ -938,12 +1094,27 @@
938
1094
  .whitespace-nowrap {
939
1095
  white-space: nowrap;
940
1096
  }
1097
+ .text-\[\#1a1a1a\] {
1098
+ color: #1a1a1a;
1099
+ }
1100
+ .text-\[\#4a4a4a\] {
1101
+ color: #4a4a4a;
1102
+ }
941
1103
  .text-\[\#9f9f9f\] {
942
1104
  color: #9f9f9f;
943
1105
  }
1106
+ .text-\[\#666\] {
1107
+ color: #666;
1108
+ }
1109
+ .text-\[\#272727\] {
1110
+ color: #272727;
1111
+ }
944
1112
  .text-\[\#464647\] {
945
1113
  color: #464647;
946
1114
  }
1115
+ .text-\[\#FF8F45\] {
1116
+ color: #FF8F45;
1117
+ }
947
1118
  .text-\[\#c0c0c0\] {
948
1119
  color: #c0c0c0;
949
1120
  }
@@ -962,6 +1133,9 @@
962
1133
  .text-\[red\] {
963
1134
  color: red;
964
1135
  }
1136
+ .text-\[white\] {
1137
+ color: white;
1138
+ }
965
1139
  .capitalize {
966
1140
  text-transform: capitalize;
967
1141
  }
@@ -981,9 +1155,16 @@
981
1155
  .opacity-0 {
982
1156
  opacity: 0%;
983
1157
  }
1158
+ .opacity-50 {
1159
+ opacity: 50%;
1160
+ }
984
1161
  .opacity-100 {
985
1162
  opacity: 100%;
986
1163
  }
1164
+ .outline {
1165
+ outline-style: var(--tw-outline-style);
1166
+ outline-width: 1px;
1167
+ }
987
1168
  .grayscale {
988
1169
  --tw-grayscale: grayscale(100%);
989
1170
  filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
@@ -1011,6 +1192,10 @@
1011
1192
  transition-timing-function: var(--tw-ease, ease);
1012
1193
  transition-duration: var(--tw-duration, 0s);
1013
1194
  }
1195
+ .duration-200 {
1196
+ --tw-duration: 200ms;
1197
+ transition-duration: 200ms;
1198
+ }
1014
1199
  .duration-300 {
1015
1200
  --tw-duration: 300ms;
1016
1201
  transition-duration: 300ms;
@@ -1019,6 +1204,11 @@
1019
1204
  --tw-outline-style: none;
1020
1205
  outline-style: none;
1021
1206
  }
1207
+ .select-none {
1208
+ -webkit-user-select: none;
1209
+ -moz-user-select: none;
1210
+ user-select: none;
1211
+ }
1022
1212
  .group-hover\:block {
1023
1213
  &:is(:where(.group):hover *) {
1024
1214
  @media (hover: hover) {
@@ -1158,6 +1348,19 @@
1158
1348
  .hide-scrollbar::-webkit-scrollbar {
1159
1349
  display: none;
1160
1350
  }
1351
+ .kupos-time-dd > summary {
1352
+ list-style: none;
1353
+ }
1354
+ .kupos-time-dd > summary::-webkit-details-marker {
1355
+ display: none;
1356
+ }
1357
+ .kupos-time-chevron {
1358
+ transition: transform 200ms ease;
1359
+ flex-shrink: 0;
1360
+ }
1361
+ .kupos-time-dd[open] .kupos-time-chevron {
1362
+ transform: rotate(180deg);
1363
+ }
1161
1364
  .hide-scrollbar {
1162
1365
  -ms-overflow-style: none;
1163
1366
  scrollbar-width: none;
@@ -1230,6 +1433,11 @@
1230
1433
  syntax: "*";
1231
1434
  inherits: false;
1232
1435
  }
1436
+ @property --tw-outline-style {
1437
+ syntax: "*";
1438
+ inherits: false;
1439
+ initial-value: solid;
1440
+ }
1233
1441
  @property --tw-blur {
1234
1442
  syntax: "*";
1235
1443
  inherits: false;
@@ -1321,6 +1529,7 @@
1321
1529
  --tw-numeric-figure: initial;
1322
1530
  --tw-numeric-spacing: initial;
1323
1531
  --tw-numeric-fraction: initial;
1532
+ --tw-outline-style: solid;
1324
1533
  --tw-blur: initial;
1325
1534
  --tw-brightness: initial;
1326
1535
  --tw-contrast: initial;
@@ -12,7 +12,7 @@ function BottomAmenities({ otherItems, serviceItem, grayscaleClass, isSoldOut, i
12
12
  return (React.createElement("div", { className: "flex items-center mt-[15px] border-t border-[#eee] pt-[6px]" },
13
13
  React.createElement("div", { className: "grid items-center gap-[2%] flex-1 ", style: {
14
14
  // gridTemplateColumns: " 28% 21% 23% 23%",
15
- gridTemplateColumns: "28% 17% 23% 23%",
15
+ gridTemplateColumns: "25.3% 17% 23% 23%",
16
16
  } }, otherItems.map((item) => (React.createElement("div", { key: item.key, className: "flex items-center" }, item.render)))),
17
17
  React.createElement("div", { className: "flex items-center justify-end shrink-0 ml-[5px] w-[150px]" },
18
18
  (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_tracking_enabled) && (React.createElement("div", { className: grayscaleClass + " mr-[10px]" },
@@ -30,9 +30,9 @@ function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAn
30
30
  React.createElement("span", null, translation === null || translation === void 0 ? void 0 : translation.petFriendly)))),
31
31
  ladiesBookedSeats &&
32
32
  String(ladiesBookedSeats).trim() !== "" &&
33
- isDpEnabled === true && (React.createElement("div", { className: "flex gap-[6px] items-center" },
33
+ isDpEnabled === true && (React.createElement("div", { className: "flex gap-[6px]" },
34
34
  React.createElement("span", null, renderIcon("womenSeatIcon", "16px")),
35
- React.createElement("span", { className: "ml-[2px]" },
35
+ React.createElement("span", { className: "ml-[2px] mb-[3px]" },
36
36
  React.createElement("span", { className: "bold-text" }, "Asientos para damas:"),
37
37
  " Esta empresa cuenta con asientos recomendados para mujeres."))),
38
38
  React.createElement("div", { className: "flex gap-[8px] text-[13.33px]" },
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare const FeatureServiceUiMobile: ({ serviceItem, showTopLabel, colors, isSoldOut, cityOrigin, cityDestination, renderIcon, viewersConfig, isFeatureDropDownExpand, onToggleExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, onBookButtonPress, }: {
2
+ declare const FeatureServiceUiMobile: ({ serviceItem, showTopLabel, colors, isSoldOut, cityOrigin, cityDestination, renderIcon, viewersConfig, isFeatureDropDownExpand, onToggleExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, onBookButtonPress, selectedTimeSlot, onTimeSlotChange, isTimeDropdownOpen, onTimeDropdownToggle, }: {
3
3
  serviceItem: any;
4
4
  showTopLabel: any;
5
5
  colors: any;
@@ -14,5 +14,9 @@ declare const FeatureServiceUiMobile: ({ serviceItem, showTopLabel, colors, isSo
14
14
  onIncreaseTicketQuantity: any;
15
15
  onDecreaseTicketQuantity: any;
16
16
  onBookButtonPress: any;
17
+ selectedTimeSlot?: string;
18
+ onTimeSlotChange: any;
19
+ isTimeDropdownOpen: any;
20
+ onTimeDropdownToggle: any;
17
21
  }) => React.JSX.Element;
18
22
  export default FeatureServiceUiMobile;