@hotelcard/ui 0.0.54 → 0.0.56
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +63 -10
- package/dist/index.js +3298 -3195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -474,11 +474,23 @@ export declare interface CompactBookingCardProps {
|
|
|
474
474
|
|
|
475
475
|
export declare const CompactBookingCardSkeleton: default_2.FC;
|
|
476
476
|
|
|
477
|
+
/**
|
|
478
|
+
* SearchControlsBar - Search controls for location, guests, and dates
|
|
479
|
+
*
|
|
480
|
+
* Figma Specs:
|
|
481
|
+
* - Desktop (667:91963): 3 sections with dividers + Search button + List/Map toggle
|
|
482
|
+
* - Mobile (568:45301): Compact summary box (tappable to open modal)
|
|
483
|
+
*/
|
|
477
484
|
declare interface Coordinates {
|
|
478
485
|
lat: number;
|
|
479
486
|
lng: number;
|
|
480
487
|
}
|
|
481
488
|
|
|
489
|
+
declare interface Coordinates_2 {
|
|
490
|
+
lat: number;
|
|
491
|
+
lng: number;
|
|
492
|
+
}
|
|
493
|
+
|
|
482
494
|
export declare interface DateRange {
|
|
483
495
|
start: string | null;
|
|
484
496
|
end: string | null;
|
|
@@ -802,6 +814,9 @@ declare const _default: {
|
|
|
802
814
|
"details_room_price": "Room price",
|
|
803
815
|
"details_saved_with_hotelcard": "Saved with HotelCard",
|
|
804
816
|
"details_total_cost": "Total cost"
|
|
817
|
+
},
|
|
818
|
+
"membership": {
|
|
819
|
+
"valid_thru": "Validity"
|
|
805
820
|
}
|
|
806
821
|
};
|
|
807
822
|
|
|
@@ -1091,6 +1106,9 @@ export declare interface FilterPanelProps {
|
|
|
1091
1106
|
lat: number;
|
|
1092
1107
|
lng: number;
|
|
1093
1108
|
};
|
|
1109
|
+
searchType?: string;
|
|
1110
|
+
searchValue?: string;
|
|
1111
|
+
resetDestinationFilter?: () => void;
|
|
1094
1112
|
}
|
|
1095
1113
|
|
|
1096
1114
|
export declare const FilterSkeleton: default_2.FC<FilterSkeletonProps>;
|
|
@@ -1445,6 +1463,7 @@ export declare const LocationAutocomplete: default_2.FC<LocationAutocompleteProp
|
|
|
1445
1463
|
export declare interface LocationAutocompleteProps {
|
|
1446
1464
|
value: string;
|
|
1447
1465
|
onChange: (value: string) => void;
|
|
1466
|
+
onClose: () => void;
|
|
1448
1467
|
onSelect?: (suggestion: LocationSuggestion) => void;
|
|
1449
1468
|
onSubmit?: (selectedValue: string, coordinates?: {
|
|
1450
1469
|
lat: number;
|
|
@@ -1494,6 +1513,25 @@ export declare interface Membership {
|
|
|
1494
1513
|
validUntil: string;
|
|
1495
1514
|
}
|
|
1496
1515
|
|
|
1516
|
+
export declare const MembershipCard: default_2.FC<MembershipCardProps>;
|
|
1517
|
+
|
|
1518
|
+
export declare interface MembershipCardProps {
|
|
1519
|
+
/** User's full name */
|
|
1520
|
+
fullName: string;
|
|
1521
|
+
/** Membership card number */
|
|
1522
|
+
cardNumber: string;
|
|
1523
|
+
/** Validity start date (formatted string) */
|
|
1524
|
+
validFrom: string;
|
|
1525
|
+
/** Validity end date (formatted string) */
|
|
1526
|
+
validUntil: string;
|
|
1527
|
+
/** Label for validity line (e.g. "Gültigkeit/Validité") */
|
|
1528
|
+
validThruLabel?: string;
|
|
1529
|
+
/** Domain text shown on card (defaults to "hotelcard.ch") */
|
|
1530
|
+
domainText?: string;
|
|
1531
|
+
/** URL for the card background image */
|
|
1532
|
+
cardImageUrl: string;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1497
1535
|
/**
|
|
1498
1536
|
* MobileSortModal - Bottom sheet for sort options on mobile
|
|
1499
1537
|
*
|
|
@@ -1702,6 +1740,10 @@ declare interface RegionsFilterProps {
|
|
|
1702
1740
|
onChange: (values: string[]) => void;
|
|
1703
1741
|
className?: string;
|
|
1704
1742
|
isPlaceSearchActive?: boolean;
|
|
1743
|
+
searchType?: 'hotel' | 'city' | 'country' | 'region';
|
|
1744
|
+
searchValue?: string;
|
|
1745
|
+
selectedRegions?: string[];
|
|
1746
|
+
resetDestinationFilter?: () => void;
|
|
1705
1747
|
}
|
|
1706
1748
|
|
|
1707
1749
|
export declare const REVIEW_OPTIONS: ReviewOption[];
|
|
@@ -1751,8 +1793,11 @@ export declare interface SearchControlsBarProps {
|
|
|
1751
1793
|
onSearch: (params: SearchControlsBarSearchParams) => void;
|
|
1752
1794
|
onGuestChange: (params: GuestCounts) => void;
|
|
1753
1795
|
onQueryChange?: (query: string) => void;
|
|
1754
|
-
onDateRangeChange?: (dateRange: DateRange
|
|
1755
|
-
onMonthFilterChange?: (monthFilter: string[]
|
|
1796
|
+
onDateRangeChange?: (dateRange: DateRange) => void;
|
|
1797
|
+
onMonthFilterChange?: (monthFilter: string[]) => void;
|
|
1798
|
+
onDestinationModeChange?: (mode: string) => void;
|
|
1799
|
+
onRegionsFilterChange?: (regions: string[]) => void;
|
|
1800
|
+
onCoordinatesChange?: (coords: Coordinates) => void;
|
|
1756
1801
|
/** Called for location autocomplete API calls - inject your API function */
|
|
1757
1802
|
onAutocomplete?: (query: string) => Promise<LocationSuggestion[]>;
|
|
1758
1803
|
getGuestsDisplay: () => string;
|
|
@@ -1765,6 +1810,9 @@ export declare interface SearchControlsBarProps {
|
|
|
1765
1810
|
initialPetFilter?: number;
|
|
1766
1811
|
initialDateRange?: DateRange | null;
|
|
1767
1812
|
initialMonthFilter?: string[] | null;
|
|
1813
|
+
initialDestinationMode?: string;
|
|
1814
|
+
initialRegionsFilter?: string[];
|
|
1815
|
+
initialCoordinates?: Coordinates | undefined;
|
|
1768
1816
|
disabled?: boolean;
|
|
1769
1817
|
viewMode?: ViewMode;
|
|
1770
1818
|
onViewModeChange?: (mode: ViewMode) => void;
|
|
@@ -1848,7 +1896,7 @@ export declare interface SearchModalSearchParams {
|
|
|
1848
1896
|
petFilter: number;
|
|
1849
1897
|
dateRange: DateRange | null;
|
|
1850
1898
|
monthFilter: string[] | null;
|
|
1851
|
-
coordinates?:
|
|
1899
|
+
coordinates?: Coordinates_2;
|
|
1852
1900
|
regionsFilter: string[];
|
|
1853
1901
|
}
|
|
1854
1902
|
|
|
@@ -2253,6 +2301,9 @@ export declare const translations: {
|
|
|
2253
2301
|
details_saved_with_hotelcard: string;
|
|
2254
2302
|
details_total_cost: string;
|
|
2255
2303
|
};
|
|
2304
|
+
membership: {
|
|
2305
|
+
valid_thru: string;
|
|
2306
|
+
};
|
|
2256
2307
|
};
|
|
2257
2308
|
readonly en: {
|
|
2258
2309
|
button: {
|
|
@@ -2559,6 +2610,9 @@ export declare const translations: {
|
|
|
2559
2610
|
details_saved_with_hotelcard: string;
|
|
2560
2611
|
details_total_cost: string;
|
|
2561
2612
|
};
|
|
2613
|
+
membership: {
|
|
2614
|
+
valid_thru: string;
|
|
2615
|
+
};
|
|
2562
2616
|
};
|
|
2563
2617
|
readonly fr: {
|
|
2564
2618
|
button: {
|
|
@@ -2865,6 +2919,9 @@ export declare const translations: {
|
|
|
2865
2919
|
details_saved_with_hotelcard: string;
|
|
2866
2920
|
details_total_cost: string;
|
|
2867
2921
|
};
|
|
2922
|
+
membership: {
|
|
2923
|
+
valid_thru: string;
|
|
2924
|
+
};
|
|
2868
2925
|
};
|
|
2869
2926
|
readonly it: {
|
|
2870
2927
|
button: {
|
|
@@ -3171,6 +3228,9 @@ export declare const translations: {
|
|
|
3171
3228
|
details_saved_with_hotelcard: string;
|
|
3172
3229
|
details_total_cost: string;
|
|
3173
3230
|
};
|
|
3231
|
+
membership: {
|
|
3232
|
+
valid_thru: string;
|
|
3233
|
+
};
|
|
3174
3234
|
};
|
|
3175
3235
|
};
|
|
3176
3236
|
|
|
@@ -3287,13 +3347,6 @@ export declare const useWindowData: () => {
|
|
|
3287
3347
|
currency: string;
|
|
3288
3348
|
};
|
|
3289
3349
|
|
|
3290
|
-
/**
|
|
3291
|
-
* SearchControlsBar - Search controls for location, guests, and dates
|
|
3292
|
-
*
|
|
3293
|
-
* Figma Specs:
|
|
3294
|
-
* - Desktop (667:91963): 3 sections with dividers + Search button + List/Map toggle
|
|
3295
|
-
* - Mobile (568:45301): Compact summary box (tappable to open modal)
|
|
3296
|
-
*/
|
|
3297
3350
|
export declare type ViewMode = 'list' | 'map';
|
|
3298
3351
|
|
|
3299
3352
|
export declare const WellnessFilter: default_2.FC<WellnessFilterProps>;
|