@hotelcard/ui 0.0.52 → 0.0.54

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.d.ts CHANGED
@@ -218,19 +218,46 @@ export declare interface Booking {
218
218
  id: number;
219
219
  confirmationNumber: string;
220
220
  status: 'confirmed' | 'cancelled' | 'completed';
221
- hotel: {
222
- id: number;
223
- name: string;
224
- location: string;
225
- imageUrl: string;
226
- };
221
+ hotel: BookingHotel;
227
222
  checkIn: string;
228
223
  checkOut: string;
224
+ roomName: string;
229
225
  guests: number;
230
- roomType: string;
226
+ adults: number;
227
+ children: number;
228
+ hasBreakfast: boolean;
229
+ breakfastInfo?: string;
230
+ originalPrice: number;
231
+ discountedPrice: number;
231
232
  totalPrice: number;
233
+ savings: number;
232
234
  currency: string;
233
- createdAt: string;
235
+ cancellationPolicy?: string;
236
+ isCancellable: boolean;
237
+ hotelMessage?: string;
238
+ bookedAt: string;
239
+ }
240
+
241
+ export declare const BookingCardDetails: default_2.FC<BookingCardDetailsProps>;
242
+
243
+ export declare interface BookingCardDetailsProps {
244
+ booking: Booking;
245
+ onCancelBooking?: () => void;
246
+ }
247
+
248
+ export declare interface BookingHotel {
249
+ id: number;
250
+ name: string;
251
+ slug: string;
252
+ address: string;
253
+ city: string;
254
+ postalCode: string;
255
+ country: string;
256
+ phone: string;
257
+ email: string;
258
+ imageUrl: string;
259
+ checkInTime?: string;
260
+ checkOutTime?: string;
234
261
  }
235
262
 
236
263
  export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
@@ -436,6 +463,17 @@ declare interface CollapsibleFilterSectionProps {
436
463
  className?: string;
437
464
  }
438
465
 
466
+ export declare const CompactBookingCard: default_2.FC<CompactBookingCardProps>;
467
+
468
+ export declare interface CompactBookingCardProps {
469
+ booking: Booking;
470
+ showBookAgain?: boolean;
471
+ onBookAgain?: () => void;
472
+ onAddToCalendar?: () => void;
473
+ }
474
+
475
+ export declare const CompactBookingCardSkeleton: default_2.FC;
476
+
439
477
  declare interface Coordinates {
440
478
  lat: number;
441
479
  lng: number;
@@ -535,7 +573,10 @@ declare const _default: {
535
573
  "price-3y": "297.-",
536
574
  "price-3y-disc": "247.-",
537
575
  "price-gift": "99.-",
538
- "price-gift-disc": "59.-"
576
+ "price-gift-disc": "59.-",
577
+ "1y-chc": "1-year subscription",
578
+ "price-1y-chc": "199.-",
579
+ "price-1y-disc-chc": "199.-"
539
580
  },
540
581
  "subheadline": {
541
582
  "your-hc": "Your HotelCard",
@@ -739,7 +780,29 @@ declare const _default: {
739
780
  },
740
781
  "clear_location": "Clear location",
741
782
  "clear_date": "Clear date",
742
- "clear_guests": "Clear guests"
783
+ "clear_guests": "Clear guests",
784
+ "booking": {
785
+ "countdown_days": "days",
786
+ "card_directions": "Directions",
787
+ "card_message_from_hotel": "Message from the hotel",
788
+ "card_more_about_booking": "More about this booking",
789
+ "card_book_again": "Book again",
790
+ "countdown_add_to_calendar": "Add to calendar",
791
+ "status_confirmed": "Confirmed",
792
+ "status_completed": "Completed",
793
+ "status_cancelled": "Cancelled",
794
+ "details_check_in": "Check-in",
795
+ "details_check_out": "Check-out",
796
+ "details_guests": "Guests",
797
+ "details_room": "Room name",
798
+ "details_breakfast": "Breakfast",
799
+ "details_cancellation": "Cancellation",
800
+ "details_cancel_booking": "Cancel booking",
801
+ "details_booked": "Booked",
802
+ "details_room_price": "Room price",
803
+ "details_saved_with_hotelcard": "Saved with HotelCard",
804
+ "details_total_cost": "Total cost"
805
+ }
743
806
  };
744
807
 
745
808
  export declare const Divider: React.FC<DividerProps>;
@@ -853,6 +916,16 @@ export declare interface FAQProps {
853
916
  className?: string;
854
917
  }
855
918
 
919
+ export declare const FeaturedBookingCard: default_2.FC<FeaturedBookingCardProps>;
920
+
921
+ export declare interface FeaturedBookingCardProps {
922
+ booking: Booking;
923
+ onCancelBooking?: () => void;
924
+ onAddToCalendar?: () => void;
925
+ }
926
+
927
+ export declare const FeaturedBookingCardSkeleton: default_2.FC;
928
+
856
929
  export declare const FilterCheckboxItem: default_2.FC<FilterCheckboxItemProps>;
857
930
 
858
931
  /**
@@ -1951,6 +2024,9 @@ export declare const translations: {
1951
2024
  "price-3y-disc": string;
1952
2025
  "price-gift": string;
1953
2026
  "price-gift-disc": string;
2027
+ "1y-chc": string;
2028
+ "price-1y-chc": string;
2029
+ "price-1y-disc-chc": string;
1954
2030
  };
1955
2031
  subheadline: {
1956
2032
  "your-hc": string;
@@ -2155,6 +2231,28 @@ export declare const translations: {
2155
2231
  badges: {
2156
2232
  new: string;
2157
2233
  };
2234
+ booking: {
2235
+ countdown_days: string;
2236
+ card_directions: string;
2237
+ card_message_from_hotel: string;
2238
+ card_more_about_booking: string;
2239
+ card_book_again: string;
2240
+ countdown_add_to_calendar: string;
2241
+ status_confirmed: string;
2242
+ status_completed: string;
2243
+ status_cancelled: string;
2244
+ details_check_in: string;
2245
+ details_check_out: string;
2246
+ details_guests: string;
2247
+ details_room: string;
2248
+ details_breakfast: string;
2249
+ details_cancellation: string;
2250
+ details_cancel_booking: string;
2251
+ details_booked: string;
2252
+ details_room_price: string;
2253
+ details_saved_with_hotelcard: string;
2254
+ details_total_cost: string;
2255
+ };
2158
2256
  };
2159
2257
  readonly en: {
2160
2258
  button: {
@@ -2232,6 +2330,9 @@ export declare const translations: {
2232
2330
  "price-3y-disc": string;
2233
2331
  "price-gift": string;
2234
2332
  "price-gift-disc": string;
2333
+ "1y-chc": string;
2334
+ "price-1y-chc": string;
2335
+ "price-1y-disc-chc": string;
2235
2336
  };
2236
2337
  subheadline: {
2237
2338
  "your-hc": string;
@@ -2436,6 +2537,28 @@ export declare const translations: {
2436
2537
  clear_location: string;
2437
2538
  clear_date: string;
2438
2539
  clear_guests: string;
2540
+ booking: {
2541
+ countdown_days: string;
2542
+ card_directions: string;
2543
+ card_message_from_hotel: string;
2544
+ card_more_about_booking: string;
2545
+ card_book_again: string;
2546
+ countdown_add_to_calendar: string;
2547
+ status_confirmed: string;
2548
+ status_completed: string;
2549
+ status_cancelled: string;
2550
+ details_check_in: string;
2551
+ details_check_out: string;
2552
+ details_guests: string;
2553
+ details_room: string;
2554
+ details_breakfast: string;
2555
+ details_cancellation: string;
2556
+ details_cancel_booking: string;
2557
+ details_booked: string;
2558
+ details_room_price: string;
2559
+ details_saved_with_hotelcard: string;
2560
+ details_total_cost: string;
2561
+ };
2439
2562
  };
2440
2563
  readonly fr: {
2441
2564
  button: {
@@ -2513,6 +2636,9 @@ export declare const translations: {
2513
2636
  "price-3y-disc": string;
2514
2637
  "price-gift": string;
2515
2638
  "price-gift-disc": string;
2639
+ "1y-chc": string;
2640
+ "price-1y-chc": string;
2641
+ "price-1y-disc-chc": string;
2516
2642
  };
2517
2643
  subheadline: {
2518
2644
  "your-hc": string;
@@ -2717,6 +2843,28 @@ export declare const translations: {
2717
2843
  badges: {
2718
2844
  new: string;
2719
2845
  };
2846
+ booking: {
2847
+ countdown_days: string;
2848
+ card_directions: string;
2849
+ card_message_from_hotel: string;
2850
+ card_more_about_booking: string;
2851
+ card_book_again: string;
2852
+ countdown_add_to_calendar: string;
2853
+ status_confirmed: string;
2854
+ status_completed: string;
2855
+ status_cancelled: string;
2856
+ details_check_in: string;
2857
+ details_check_out: string;
2858
+ details_guests: string;
2859
+ details_room: string;
2860
+ details_breakfast: string;
2861
+ details_cancellation: string;
2862
+ details_cancel_booking: string;
2863
+ details_booked: string;
2864
+ details_room_price: string;
2865
+ details_saved_with_hotelcard: string;
2866
+ details_total_cost: string;
2867
+ };
2720
2868
  };
2721
2869
  readonly it: {
2722
2870
  button: {
@@ -2794,6 +2942,9 @@ export declare const translations: {
2794
2942
  "price-3y-disc": string;
2795
2943
  "price-gift": string;
2796
2944
  "price-gift-disc": string;
2945
+ "1y-chc": string;
2946
+ "price-1y-chc": string;
2947
+ "price-1y-disc-chc": string;
2797
2948
  };
2798
2949
  subheadline: {
2799
2950
  "your-hc": string;
@@ -2998,6 +3149,28 @@ export declare const translations: {
2998
3149
  badges: {
2999
3150
  new: string;
3000
3151
  };
3152
+ booking: {
3153
+ countdown_days: string;
3154
+ card_directions: string;
3155
+ card_message_from_hotel: string;
3156
+ card_more_about_booking: string;
3157
+ card_book_again: string;
3158
+ countdown_add_to_calendar: string;
3159
+ status_confirmed: string;
3160
+ status_completed: string;
3161
+ status_cancelled: string;
3162
+ details_check_in: string;
3163
+ details_check_out: string;
3164
+ details_guests: string;
3165
+ details_room: string;
3166
+ details_breakfast: string;
3167
+ details_cancellation: string;
3168
+ details_cancel_booking: string;
3169
+ details_booked: string;
3170
+ details_room_price: string;
3171
+ details_saved_with_hotelcard: string;
3172
+ details_total_cost: string;
3173
+ };
3001
3174
  };
3002
3175
  };
3003
3176