@hotelcard/ui 0.0.12 → 0.0.15

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.

Potentially problematic release.


This version of @hotelcard/ui might be problematic. Click here for more details.

package/dist/index.css CHANGED
@@ -1047,152 +1047,6 @@
1047
1047
  top: 0;
1048
1048
  }
1049
1049
 
1050
- /* src/components/CompactCard/CompactCard.css */
1051
- .hc-compact-card {
1052
- width: 100%;
1053
- min-width: var(--size-rem-10, 160px);
1054
- display: inline-flex;
1055
- flex-direction: column;
1056
- justify-content: flex-start;
1057
- align-items: flex-start;
1058
- gap: var(--layout-comp-1-gap, 8px);
1059
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1060
- }
1061
- .hc-compact-card--clickable {
1062
- cursor: pointer;
1063
- }
1064
- .hc-compact-imageContainer {
1065
- position: relative;
1066
- width: 100%;
1067
- aspect-ratio: 1 / 1;
1068
- padding: var(--layout-comp-1-padding-horizontal, 8px);
1069
- border-radius: var(--radius-lg, 12px);
1070
- display: flex;
1071
- flex-direction: column;
1072
- justify-content: flex-start;
1073
- align-items: flex-end;
1074
- overflow: hidden;
1075
- }
1076
- .hc-compact-image {
1077
- position: absolute;
1078
- top: 0;
1079
- left: 0;
1080
- width: 100%;
1081
- height: 100%;
1082
- object-fit: cover;
1083
- z-index: 0;
1084
- }
1085
- .hc-compact-shadowOverlay {
1086
- position: absolute;
1087
- left: 0;
1088
- top: 0;
1089
- width: 100%;
1090
- height: 100%;
1091
- background:
1092
- linear-gradient(
1093
- 180deg,
1094
- rgba(0, 0, 0, 0) 65%,
1095
- rgba(0, 0, 0, 0.2) 100%);
1096
- border-radius: var(--radius-lg, 12px);
1097
- pointer-events: none;
1098
- z-index: 1;
1099
- }
1100
- .hc-compact-badgeWrapper {
1101
- position: relative;
1102
- z-index: 2;
1103
- }
1104
- .hc-compact-badge {
1105
- display: inline-flex;
1106
- align-items: center;
1107
- justify-content: center;
1108
- padding: 4px 8px;
1109
- border-radius: 9999px;
1110
- font-size: var(--text-label-small-font-size, 14px);
1111
- font-weight: var(--font-weight-medium, 500);
1112
- line-height: var(--text-label-small-line-height, 20px);
1113
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1114
- }
1115
- .hc-compact-badge--primary {
1116
- background-color: var(--background-action-primary-idle, #C81E4C);
1117
- color: white;
1118
- }
1119
- .hc-compact-badge--secondary {
1120
- background-color: var(--color-gray-100, #F3F4F6);
1121
- color: var(--content-general-primary, #1F2937);
1122
- }
1123
- .hc-compact-textContainer {
1124
- align-self: stretch;
1125
- display: flex;
1126
- flex-direction: column;
1127
- justify-content: flex-start;
1128
- align-items: flex-start;
1129
- gap: var(--size-rem-0-25, 4px);
1130
- }
1131
- .hc-compact-starsRow {
1132
- align-self: stretch;
1133
- display: flex;
1134
- align-items: center;
1135
- justify-content: space-between;
1136
- gap: var(--size-rem-0-25, 4px);
1137
- }
1138
- .hc-compact-starsContainer {
1139
- display: flex;
1140
- justify-content: flex-start;
1141
- align-items: flex-start;
1142
- }
1143
- .hc-compact-superiorBadge {
1144
- color: var(--content-general-secondary, #6B7280);
1145
- font-size: var(--text-label-tiny-font-size, 12px);
1146
- font-weight: var(--text-label-tiny-font-weight, 500);
1147
- line-height: var(--text-label-tiny-line-height, 16px);
1148
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1149
- display: flex;
1150
- position: relative;
1151
- top: -4px;
1152
- left: 2px;
1153
- }
1154
- .hc-compact-swissLodge {
1155
- color: var(--content-general-secondary, #6B7280);
1156
- font-size: var(--text-label-small-font-size, 14px);
1157
- font-weight: var(--text-label-small-font-weight, 500);
1158
- line-height: var(--text-label-small-line-height, 20px);
1159
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1160
- display: flex;
1161
- align-items: center;
1162
- height: 9px;
1163
- }
1164
- .hc-compact-starsPlaceholder {
1165
- height: var(--size-rem-1-25, 20px);
1166
- }
1167
- .hc-compact-label {
1168
- align-self: stretch;
1169
- color: var(--content-general-secondary, #6B7280);
1170
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1171
- font-size: var(--text-paragraph-large-font-size, 18px);
1172
- font-weight: var(--font-weight-medium, 500);
1173
- line-height: var(--text-paragraph-large-line-height, 28px);
1174
- max-height: var(--size-rem-4, 64px);
1175
- overflow: hidden;
1176
- word-wrap: break-word;
1177
- }
1178
- .hc-compact-label--noRating {
1179
- position: relative;
1180
- top: calc(-1 * var(--size-rem-0-25, 4px));
1181
- }
1182
- .hc-compact-price {
1183
- align-self: stretch;
1184
- font-size: var(--text-paragraph-base-font-size, 16px);
1185
- font-weight: var(--text-paragraph-base-font-weight, 400);
1186
- line-height: var(--text-paragraph-base-line-height, 24px);
1187
- color: var(--content-general-primary, #1F2937);
1188
- font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
1189
- word-wrap: break-word;
1190
- }
1191
- .hc-compact-price--noRating {
1192
- position: relative;
1193
- top: calc(-1 * var(--size-rem-0-25, 4px));
1194
- }
1195
-
1196
1050
  /* src/components/Dropdown/Dropdown.css */
1197
1051
  .hc-dropdown-container {
1198
1052
  position: relative;
@@ -2698,4 +2552,385 @@
2698
2552
  color: var(--color-red-500, #EF4444);
2699
2553
  font-size: 12px;
2700
2554
  }
2555
+
2556
+ /* src/components/HotelCard/HotelCard.css */
2557
+ .hc-hotel-card {
2558
+ width: 100%;
2559
+ background-color: var(--color-ink-base-white, #ffffff);
2560
+ border-radius: 24px;
2561
+ border: 1px solid var(--border-general-divider, #E5E7EB);
2562
+ overflow: hidden;
2563
+ display: flex;
2564
+ flex-direction: column;
2565
+ transition: box-shadow 0.2s ease;
2566
+ }
2567
+ .hc-hotel-card:hover {
2568
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
2569
+ }
2570
+ .hc-hotel-card__image-section {
2571
+ position: relative;
2572
+ width: 100%;
2573
+ height: 268.5px;
2574
+ overflow: hidden;
2575
+ }
2576
+ .hc-hotel-card__image {
2577
+ width: 100%;
2578
+ height: 100%;
2579
+ object-fit: cover;
2580
+ }
2581
+ .hc-hotel-card__image-overlay {
2582
+ position: absolute;
2583
+ top: 0;
2584
+ left: 0;
2585
+ right: 0;
2586
+ bottom: 0;
2587
+ background:
2588
+ linear-gradient(
2589
+ 0deg,
2590
+ rgba(31, 41, 55, 0.00) 65%,
2591
+ rgba(31, 41, 55, 0.20) 100%);
2592
+ pointer-events: none;
2593
+ }
2594
+ .hc-hotel-card__top-overlay {
2595
+ position: absolute;
2596
+ top: 12px;
2597
+ left: 12px;
2598
+ right: 12px;
2599
+ display: flex;
2600
+ justify-content: space-between;
2601
+ align-items: flex-start;
2602
+ z-index: 2;
2603
+ }
2604
+ .hc-hotel-card__badges-column {
2605
+ display: flex;
2606
+ flex-direction: column;
2607
+ gap: 4px;
2608
+ }
2609
+ .hc-hotel-card__new-badge {
2610
+ display: flex;
2611
+ align-items: center;
2612
+ gap: 4px;
2613
+ padding: 4px 10px;
2614
+ background: #00857C;
2615
+ border-radius: 9999px;
2616
+ color: white;
2617
+ font-size: var(--text-label-small-font-size, 14px);
2618
+ font-weight: var(--font-weight-medium, 500);
2619
+ line-height: var(--text-label-small-line-height, 20px);
2620
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2621
+ }
2622
+ .hc-hotel-card__favorite-button {
2623
+ width: 44px;
2624
+ height: 44px;
2625
+ background-color: transparent;
2626
+ border: none;
2627
+ display: flex;
2628
+ align-items: center;
2629
+ justify-content: center;
2630
+ cursor: pointer;
2631
+ transition: transform 0.2s ease;
2632
+ padding: 8px;
2633
+ }
2634
+ .hc-hotel-card__favorite-button:hover {
2635
+ transform: scale(1.1);
2636
+ }
2637
+ .hc-hotel-card__favorite-button:active {
2638
+ transform: scale(0.95);
2639
+ }
2640
+ .hc-hotel-card__heart-icon {
2641
+ width: 24px;
2642
+ height: 24px;
2643
+ filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
2644
+ }
2645
+ .hc-hotel-card__heart-icon--filled {
2646
+ width: 24px;
2647
+ height: 24px;
2648
+ filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(4431%) hue-rotate(346deg) brightness(93%) contrast(95%);
2649
+ }
2650
+ .hc-hotel-card__nav-button {
2651
+ position: absolute;
2652
+ top: 50%;
2653
+ transform: translateY(-50%);
2654
+ width: 44px;
2655
+ height: 44px;
2656
+ padding: 12px;
2657
+ background-color: rgba(255, 255, 255, 0.8);
2658
+ border: none;
2659
+ border-radius: 50%;
2660
+ outline: 2px solid transparent;
2661
+ outline-offset: -2px;
2662
+ display: flex;
2663
+ align-items: center;
2664
+ justify-content: center;
2665
+ cursor: pointer;
2666
+ z-index: 2;
2667
+ transition: background-color 0.2s ease, outline-color 0.2s ease;
2668
+ }
2669
+ .hc-hotel-card__nav-button:hover {
2670
+ background-color: rgba(255, 255, 255, 0.95);
2671
+ outline-color: rgba(0, 0, 0, 0.1);
2672
+ }
2673
+ .hc-hotel-card__nav-button--left {
2674
+ left: 12px;
2675
+ }
2676
+ .hc-hotel-card__nav-button--right {
2677
+ right: 12px;
2678
+ }
2679
+ .hc-hotel-card__image-indicator {
2680
+ position: absolute;
2681
+ bottom: 12px;
2682
+ left: 50%;
2683
+ transform: translateX(-50%);
2684
+ display: flex;
2685
+ gap: 6px;
2686
+ z-index: 2;
2687
+ }
2688
+ .hc-hotel-card__indicator-dot {
2689
+ width: 6px;
2690
+ height: 6px;
2691
+ border-radius: 50%;
2692
+ background-color: rgba(255, 255, 255, 0.5);
2693
+ transition: background-color 0.2s ease;
2694
+ }
2695
+ .hc-hotel-card__indicator-dot--active {
2696
+ background-color: var(--color-ink-base-white, #ffffff);
2697
+ }
2698
+ .hc-hotel-card__usp-banner {
2699
+ width: 100%;
2700
+ padding: 8px 24px;
2701
+ background-color: var(--background-status-success-idle, #ECFDF5);
2702
+ text-align: center;
2703
+ font-size: var(--text-label-tiny-font-size, 12px);
2704
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2705
+ font-weight: var(--font-weight-medium, 500);
2706
+ color: var(--content-status-success-idle, #006962);
2707
+ line-height: var(--text-label-tiny-line-height, 16px);
2708
+ }
2709
+ .hc-hotel-card__content {
2710
+ padding: var(--size-rem-1-5, 24px);
2711
+ display: flex;
2712
+ flex-direction: column;
2713
+ }
2714
+ .hc-hotel-card__header-section {
2715
+ display: flex;
2716
+ flex-direction: column;
2717
+ }
2718
+ .hc-hotel-card__rating-section {
2719
+ display: flex;
2720
+ justify-content: space-between;
2721
+ align-items: center;
2722
+ }
2723
+ .hc-hotel-card__stars {
2724
+ display: flex;
2725
+ align-items: center;
2726
+ gap: 2px;
2727
+ }
2728
+ .hc-hotel-card__stars-indicator {
2729
+ margin-left: 4px;
2730
+ font-size: var(--text-label-tiny-font-size, 12px);
2731
+ font-weight: var(--font-weight-medium, 500);
2732
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2733
+ color: var(--content-general-tertiary, #6B7280);
2734
+ line-height: var(--text-label-tiny-line-height, 16px);
2735
+ }
2736
+ .hc-hotel-card__swiss-lodge {
2737
+ font-size: var(--text-label-small-font-size, 14px);
2738
+ font-weight: var(--font-weight-medium, 500);
2739
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2740
+ color: var(--content-general-secondary, #374151);
2741
+ line-height: var(--text-label-small-line-height, 20px);
2742
+ }
2743
+ .hc-hotel-card__rating-wrapper {
2744
+ display: flex;
2745
+ align-items: center;
2746
+ gap: 6px;
2747
+ }
2748
+ .hc-hotel-card__rating-text {
2749
+ color: var(--content-general-secondary, #6B7280);
2750
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2751
+ font-size: var(--text-label-tiny-font-size, 12px);
2752
+ font-weight: var(--font-weight-medium, 500);
2753
+ line-height: var(--text-label-tiny-line-height, 16px);
2754
+ }
2755
+ .hc-hotel-card__rating-badge {
2756
+ position: relative;
2757
+ display: flex;
2758
+ align-items: center;
2759
+ justify-content: center;
2760
+ height: 24px;
2761
+ min-width: 32px;
2762
+ padding: 4px 8px;
2763
+ }
2764
+ .hc-hotel-card__rating-badge-bg {
2765
+ position: absolute;
2766
+ top: 0;
2767
+ left: 0;
2768
+ width: 100%;
2769
+ height: 100%;
2770
+ z-index: 1;
2771
+ }
2772
+ .hc-hotel-card__rating-number {
2773
+ position: relative;
2774
+ top: -2px;
2775
+ z-index: 2;
2776
+ color: var(--content-action-highlight-inverse-idle, #ffffff);
2777
+ text-align: center;
2778
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2779
+ font-size: var(--text-label-tiny-font-size, 12px);
2780
+ font-weight: var(--font-weight-medium, 500);
2781
+ line-height: var(--text-label-tiny-line-height, 16px);
2782
+ }
2783
+ .hc-hotel-card__hotel-name {
2784
+ color: var(--content-general-primary, #1F2937);
2785
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2786
+ font-size: var(--text-label-large-font-size, 18px);
2787
+ font-weight: var(--font-weight-medium, 500);
2788
+ line-height: var(--text-label-large-line-height, 28px);
2789
+ margin: 0;
2790
+ margin-bottom: 8px;
2791
+ }
2792
+ .hc-hotel-card__location-section {
2793
+ display: flex;
2794
+ align-items: center;
2795
+ gap: 4px;
2796
+ margin-bottom: var(--size-rem-1, 16px);
2797
+ }
2798
+ .hc-hotel-card__pin-icon {
2799
+ width: 16px;
2800
+ height: 16px;
2801
+ flex-shrink: 0;
2802
+ }
2803
+ .hc-hotel-card__location {
2804
+ color: var(--content-general-secondary, #6B7280);
2805
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2806
+ font-size: var(--text-label-tiny-font-size, 12px);
2807
+ font-weight: var(--font-weight-medium, 500);
2808
+ line-height: var(--text-label-tiny-line-height, 16px);
2809
+ text-decoration: underline;
2810
+ }
2811
+ .hc-hotel-card__benefits-and-pricing {
2812
+ display: flex;
2813
+ flex-direction: column;
2814
+ gap: 16px;
2815
+ }
2816
+ .hc-hotel-card__benefits-section {
2817
+ display: flex;
2818
+ flex-direction: column;
2819
+ gap: var(--size-rem-0-5, 8px);
2820
+ }
2821
+ .hc-hotel-card__benefit {
2822
+ display: flex;
2823
+ align-items: center;
2824
+ gap: 4px;
2825
+ }
2826
+ .hc-hotel-card__benefit-icon {
2827
+ width: 16px;
2828
+ height: 16px;
2829
+ flex-shrink: 0;
2830
+ }
2831
+ .hc-hotel-card__benefit-text {
2832
+ font-size: var(--text-label-small-font-size, 14px);
2833
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2834
+ font-weight: var(--font-weight-regular, 400);
2835
+ color: var(--content-status-success-idle, #006962);
2836
+ line-height: var(--text-label-small-line-height, 20px);
2837
+ }
2838
+ .hc-hotel-card__pricing-section {
2839
+ display: flex;
2840
+ flex-direction: column;
2841
+ gap: 4px;
2842
+ flex: 1;
2843
+ justify-content: flex-end;
2844
+ }
2845
+ .hc-hotel-card__price-label {
2846
+ font-size: var(--text-label-tiny-font-size, 12px);
2847
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2848
+ font-weight: var(--font-weight-medium, 500);
2849
+ color: var(--content-general-secondary, #6B7280);
2850
+ line-height: var(--text-label-tiny-line-height, 16px);
2851
+ }
2852
+ .hc-hotel-card__not-available {
2853
+ flex: 1;
2854
+ display: flex;
2855
+ align-items: center;
2856
+ font-size: var(--text-label-small-font-size, 14px);
2857
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2858
+ font-weight: var(--font-weight-medium, 500);
2859
+ color: var(--content-general-tertiary, #9CA3AF);
2860
+ line-height: var(--text-label-small-line-height, 20px);
2861
+ font-style: italic;
2862
+ }
2863
+ .hc-hotel-card__price-container {
2864
+ display: flex;
2865
+ align-items: center;
2866
+ gap: 8px;
2867
+ }
2868
+ .hc-hotel-card__current-price {
2869
+ color: var(--content-general-primary, #1F2937);
2870
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2871
+ font-size: var(--text-label-large-font-size, 18px);
2872
+ font-weight: var(--font-weight-medium, 500);
2873
+ line-height: var(--text-label-large-line-height, 28px);
2874
+ }
2875
+ .hc-hotel-card__original-price {
2876
+ font-size: var(--text-paragraph-base-font-size, 16px);
2877
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2878
+ font-weight: var(--font-weight-medium, 500);
2879
+ color: var(--content-general-tertiary, #9CA3AF);
2880
+ text-decoration: line-through;
2881
+ line-height: var(--text-paragraph-base-line-height, 24px);
2882
+ }
2883
+ .hc-hotel-card__discount-badge {
2884
+ display: inline-flex;
2885
+ align-items: center;
2886
+ justify-content: center;
2887
+ padding: 2px 8px;
2888
+ background-color: var(--background-action-primary-idle, #C81E4C);
2889
+ border-radius: 9999px;
2890
+ color: white;
2891
+ font-size: var(--text-label-small-font-size, 14px);
2892
+ font-weight: var(--font-weight-medium, 500);
2893
+ line-height: var(--text-label-small-line-height, 20px);
2894
+ font-family: var(--font-primary, system-ui, -apple-system, sans-serif);
2895
+ }
2896
+ @media (min-width: 1024px) {
2897
+ .hc-hotel-card {
2898
+ flex-direction: row;
2899
+ height: 274px;
2900
+ }
2901
+ .hc-hotel-card__usp-banner {
2902
+ display: none;
2903
+ }
2904
+ .hc-hotel-card__image-section {
2905
+ width: 365px;
2906
+ height: 274px;
2907
+ flex-shrink: 0;
2908
+ }
2909
+ .hc-hotel-card__content {
2910
+ flex: 1;
2911
+ padding: var(--size-rem-1-5, 24px);
2912
+ }
2913
+ .hc-hotel-card__benefits-and-pricing {
2914
+ flex-direction: row;
2915
+ justify-content: space-between;
2916
+ align-items: flex-end;
2917
+ margin-top: auto;
2918
+ }
2919
+ .hc-hotel-card__benefits-section {
2920
+ flex: 1;
2921
+ }
2922
+ .hc-hotel-card__pricing-section {
2923
+ flex: 1;
2924
+ align-items: flex-end;
2925
+ }
2926
+ .hc-hotel-card__price-label {
2927
+ text-align: right;
2928
+ }
2929
+ .hc-hotel-card__original-price {
2930
+ text-align: right;
2931
+ }
2932
+ .hc-hotel-card__price-container {
2933
+ justify-content: flex-end;
2934
+ }
2935
+ }
2701
2936
  /*# sourceMappingURL=index.css.map */