@roomstay/core 0.1.31 → 0.1.32
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.
- package/dist/types/Company/IAdminCompanyDTO.type.d.ts +8 -0
- package/dist/types/{types/Hotel/IHotelColorScheme.type.d.ts → Hotel/IHotelColorScheme.d.ts} +1 -1
- package/dist/types/RMS/IPropertyDiscount.type.d.ts +5 -0
- package/dist/types/RMS/IRMSRequirement.type.d.ts +1 -0
- package/dist/types/Room/IRoomGroup.type.d.ts +1 -0
- package/package.json +1 -1
- package/dist/.DS_Store +0 -0
- package/dist/dist/css/icons.min.css +0 -1
- package/dist/node.d.ts +0 -1
- package/dist/node.js.map +0 -1
- package/dist/shared.d.ts +0 -5
- package/dist/types/components/DateRangePicker/DateRangePicker.d.ts +0 -15
- package/dist/types/components/DateRangePicker/DateRangePicker.type.d.ts +0 -8
- package/dist/types/components/DateRangePicker/DateRangePickerContext.d.ts +0 -16
- package/dist/types/components/DateRangePicker/DateRangePickerDay.d.ts +0 -22
- package/dist/types/components/DateRangePicker/DateRangePickerDays.d.ts +0 -7
- package/dist/types/components/DateRangePicker/DateRangePickerMonth.d.ts +0 -8
- package/dist/types/components/DateRangePicker/FloatingDateRangePicker.d.ts +0 -25
- package/dist/types/components/DateRangePicker/index.d.ts +0 -3
- package/dist/types/components/Icon/Icon.d.ts +0 -88
- package/dist/types/components/Icon/index.d.ts +0 -1
- package/dist/types/components/Overlay/Overlay.d.ts +0 -20
- package/dist/types/components/Overlay/index.d.ts +0 -1
- package/dist/types/components/Portal/Portal.d.ts +0 -7
- package/dist/types/components/Portal/index.d.ts +0 -1
- package/dist/types/components/Text/Text.d.ts +0 -15
- package/dist/types/components/Text/Text.type.d.ts +0 -14
- package/dist/types/components/Text/index.d.ts +0 -2
- package/dist/types/components/animations/Fade.d.ts +0 -13
- package/dist/types/components/animations/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -6
- package/dist/types/hooks/BodyClickHook.d.ts +0 -8
- package/dist/types/hooks/index.d.ts +0 -1
- package/dist/types/index.node.d.ts +0 -2
- package/dist/types/index.web.d.ts +0 -4
- package/dist/types/models/Client/Hotel/WeekdayStartsOn.types.d.ts +0 -4
- package/dist/types/models/Client/Hotel/index.d.ts +0 -1
- package/dist/types/models/Client/index.d.ts +0 -1
- package/dist/types/models/index.d.ts +0 -1
- package/dist/types/stories/DateRangePicker.stories.d.ts +0 -8
- package/dist/types/stories/FloatingDateRangePicker.stories.d.ts +0 -5
- package/dist/types/types/Booking/IBookingPayment.type.d.ts +0 -32
- package/dist/types/types/Booking/IBookingStatus.type.d.ts +0 -5
- package/dist/types/types/Booking/IPrice.type.d.ts +0 -7
- package/dist/types/types/Events/IRoomstayEvent.type.d.ts +0 -48
- package/dist/types/types/Hotel/EHotelPriceModel.enum.d.ts +0 -5
- package/dist/types/types/Hotel/EHotelWeekdayStartsOn.enum.d.ts +0 -4
- package/dist/types/types/Hotel/IHotelOverrides.type.d.ts +0 -18
- package/dist/types/types/Hotel/IHotelReplica.type.d.ts +0 -53
- package/dist/types/types/Hotel/IHotelService.type.d.ts +0 -6
- package/dist/types/types/Member/IRoomstayCognitoMember.type.d.ts +0 -4
- package/dist/types/types/Member/IRoomstayMember.type.d.ts +0 -17
- package/dist/types/types/Member/IRoomstayMemberBooking.type.d.ts +0 -28
- package/dist/types/types/Member/IRoomstayMemberBookingAddress.type.d.ts +0 -9
- package/dist/types/types/Member/IRoomstayMemberBookingItem.type.d.ts +0 -25
- package/dist/types/types/Member/IRoomstayMemberBookingProfile.type.d.ts +0 -11
- package/dist/types/types/Member/IRoomstayMemberCards.type.d.ts +0 -12
- package/dist/types/types/Member/ISession.type.d.ts +0 -4
- package/dist/types/types/index.d.ts +0 -30
- package/dist/types/utils/bookingTotal.d.ts +0 -7
- package/dist/types/utils/calendarHelper.d.ts +0 -16
- package/dist/types/utils/color.d.ts +0 -20
- package/dist/types/utils/index.node.d.ts +0 -2
- package/dist/types/utils/index.web.d.ts +0 -4
- package/dist/types/utils/uppercaseString.d.ts +0 -1
- package/dist/web.d.ts +0 -1
- package/dist/web.js.map +0 -1
package/package.json
CHANGED
package/dist/.DS_Store
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.diji-icon{display:inline-flex;transition:transform .2s}.diji-icon.--has-bg{padding:8px;border-radius:15px}.diji-icon.--has-bg.--has-custom-bg{position:relative}.diji-icon.--has-bg.--has-custom-bg::after{content:"";position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--custom-bg-color);opacity:.1;border-radius:50%}.diji-icon.--border-round{border-radius:40px}.diji-icon.--clickable{cursor:pointer}.diji-icon,.diji-icon:before{font-family:"DijiEngine" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.diji-iconLate-Checkout:before{content:""}.diji-iconRoom-Size:before{content:""}.diji-iconRoom-Upgrade:before{content:""}.diji-iconChampagne:before{content:""}.diji-iconloot-bag:before{content:""}.diji-iconHotel:before{content:""}.diji-iconMap:before{content:""}.diji-iconInfo:before{content:""}.diji-iconDeal:before{content:""}.diji-iconAirplane:before{content:""}.diji-iconBus:before{content:""}.diji-iconEdit:before{content:""}.diji-iconError:before{content:""}.diji-iconLog-Out:before{content:""}.diji-iconPrint:before{content:""}.diji-iconShare:before{content:""}.diji-iconTaxi:before{content:""}.diji-iconTrain:before{content:""}.diji-iconSpinner:before{content:""}.diji-iconCheck-Circled:before{content:""}.diji-iconCheck{height:fit-content}.diji-iconCheck:before{content:""}.diji-iconOvolo:before{content:""}.diji-iconMenu:before{content:""}.diji-iconCalendar:before{content:""}.diji-iconArrow-Left-3:before{content:""}.diji-iconEmail:before{content:""}.diji-iconDegrees:before{content:""}.diji-iconMoney:before{content:""}.diji-iconLock:before{content:""}.diji-iconBed:before{content:""}.diji-iconApple-Pay:before{content:""}.diji-iconPayPal:before{content:""}.diji-iconPerson:before{content:""}.diji-iconChild-Friendly:before{content:""}.diji-iconFridge:before{content:""}.diji-iconSmoking:before{content:""}.diji-iconGym:before{content:""}.diji-iconBar:before{content:""}.diji-iconLaundry:before{content:""}.diji-iconBreakfast:before{content:""}.diji-iconSnacks:before{content:""}.diji-iconPhone:before{content:""}.diji-iconView-Month:before{content:""}.diji-iconView-Week:before{content:""}.diji-iconAir-Con:before{content:""}.diji-iconWifi:before{content:""}.diji-iconTime:before{content:""}.diji-iconPeople:before{content:""}.diji-iconCredit-Card:before{content:""}.diji-iconFullscreen:before{content:""}.diji-iconStar:before{content:""}.diji-iconArrow-Right:before{content:""}.diji-iconArrow-Left:before{content:""}.diji-iconArrow-Up:before{content:""}.diji-iconArrow-Down:before{content:""}.diji-iconArrow-2-Left:before{content:""}.diji-iconArrow-2-Up:before{content:""}.diji-iconArrow-2-Right:before{content:""}.diji-iconArrow-2-Down:before{content:""}.diji-iconClose:before{content:""}.diji-iconRemove:before{content:""}.diji-iconAdd:before{content:""}.diji-iconDropdown:before{content:""}.diji-iconHotel-2:before{content:""}.diji-iconEye:before{content:""}.diji-iconEyeBlocked:before{content:""}.diji-iconDelete:before{content:""}.diji-iconArrow-3-Down:before{content:""}.diji-iconArrow-3-Right:before{content:""}.diji-iconArrow-3-Left:before{content:""}.diji-icon{display:inline-flex;transition:transform .2s}.diji-icon.--has-bg{padding:8px;border-radius:15px}.diji-icon.--has-bg.--has-custom-bg{position:relative}.diji-icon.--has-bg.--has-custom-bg::after{content:"";position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--custom-bg-color);opacity:.1;border-radius:50%}.diji-icon.--border-round{border-radius:40px}.diji-icon.--clickable{cursor:pointer}.diji-icon,.diji-icon:before{font-family:"DijiEngine" !important;speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.diji-iconLate-Checkout:before{content:""}.diji-iconRoom-Size:before{content:""}.diji-iconRoom-Upgrade:before{content:""}.diji-iconChampagne:before{content:""}.diji-iconloot-bag:before{content:""}.diji-iconHotel:before{content:""}.diji-iconMap:before{content:""}.diji-iconInfo:before{content:""}.diji-iconDeal:before{content:""}.diji-iconAirplane:before{content:""}.diji-iconBus:before{content:""}.diji-iconEdit:before{content:""}.diji-iconError:before{content:""}.diji-iconLog-Out:before{content:""}.diji-iconPrint:before{content:""}.diji-iconShare:before{content:""}.diji-iconTaxi:before{content:""}.diji-iconTrain:before{content:""}.diji-iconSpinner:before{content:""}.diji-iconCheck-Circled:before{content:""}.diji-iconCheck{height:fit-content}.diji-iconCheck:before{content:""}.diji-iconOvolo:before{content:""}.diji-iconMenu:before{content:""}.diji-iconCalendar:before{content:""}.diji-iconArrow-Left-3:before{content:""}.diji-iconEmail:before{content:""}.diji-iconDegrees:before{content:""}.diji-iconMoney:before{content:""}.diji-iconLock:before{content:""}.diji-iconBed:before{content:""}.diji-iconApple-Pay:before{content:""}.diji-iconPayPal:before{content:""}.diji-iconPerson:before{content:""}.diji-iconChild-Friendly:before{content:""}.diji-iconFridge:before{content:""}.diji-iconSmoking:before{content:""}.diji-iconGym:before{content:""}.diji-iconBar:before{content:""}.diji-iconLaundry:before{content:""}.diji-iconBreakfast:before{content:""}.diji-iconSnacks:before{content:""}.diji-iconPhone:before{content:""}.diji-iconView-Month:before{content:""}.diji-iconView-Week:before{content:""}.diji-iconAir-Con:before{content:""}.diji-iconWifi:before{content:""}.diji-iconTime:before{content:""}.diji-iconPeople:before{content:""}.diji-iconCredit-Card:before{content:""}.diji-iconFullscreen:before{content:""}.diji-iconStar:before{content:""}.diji-iconArrow-Right:before{content:""}.diji-iconArrow-Left:before{content:""}.diji-iconArrow-Up:before{content:""}.diji-iconArrow-Down:before{content:""}.diji-iconArrow-2-Left:before{content:""}.diji-iconArrow-2-Up:before{content:""}.diji-iconArrow-2-Right:before{content:""}.diji-iconArrow-2-Down:before{content:""}.diji-iconClose:before{content:""}.diji-iconRemove:before{content:""}.diji-iconAdd:before{content:""}.diji-iconDropdown:before{content:""}.diji-iconHotel-2:before{content:""}.diji-iconEye:before{content:""}.diji-iconEyeBlocked:before{content:""}.diji-iconDelete:before{content:""}.diji-iconArrow-3-Down:before{content:""}.diji-iconArrow-3-Right:before{content:""}.diji-iconArrow-3-Left:before{content:""}.diji-iconArrow-3-Up:before{content:""}.diji-iconProgress-Help:before{content:""}.diji-iconSubtitle:before{content:""}.diji-iconArrow-3-Up:before{content:""}.diji-iconProgress-Help:before{content:""}.diji-iconSubtitle:before{content:""}
|
package/dist/node.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './shared';
|
package/dist/node.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sources":["../src/types/Booking/IBookingStatus.type.ts","../src/types/Booking/IBookingPayment.type.ts","../src/types/Hotel/IHotelOverrides.type.ts","../src/types/Hotel/EHotelPriceModel.enum.ts","../src/types/Hotel/EHotelWeekdayStartsOn.enum.ts","../src/utils/bookingTotal.ts","../src/utils/uppercaseString.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["IBookingStatus","EBookingPaymentMethod","EPlanpayBookingStatus","EDistanceUnitType","EHotelPriceModel","EHotelWeekdayStartsOn","reservation","total","itinerary","Object","values","item","nightsArray","keys","nights","night","toUppercase","toUpperCase"],"mappings":"aAAA,IAAYA,ECAAC,EAMAC,ECNAC,ECAAC,ECAAC,EJAAL,QAIXA,oBAAA,GAJWA,EAAAA,QAAcA,iBAAdA,uBAIX,CAAA,IAHC,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YCHUC,QAIXA,2BAAA,GAJWA,EAAAA,gCAAAA,QAAAA,sBAIX,CAAA,IAHC,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UAGUC,QAOXA,2BAAA,GAPWA,EAAAA,QAAqBA,wBAArBA,8BAOX,CAAA,IANC,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WCZUC,QAGXA,uBAAA,GAHWA,EAAAA,QAAiBA,oBAAjBA,0BAGX,CAAA,IAFC,OAAA,SACAA,EAAA,SAAA,WCFUC,QAIXA,sBAAA,GAJWA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHC,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eCHUC,QAGXA,2BAAA,GAHWA,EAAAA,QAAqBA,wBAArBA,8BAGX,CAAA,IAFC,OAAA,SACAA,EAAA,OAAA,gDCMAC,IAEA,IAAIC,EAAQ,EAEZ,MAAMC,EAAYC,OAAOC,OAAOJ,EAAYE,WAE5C,IAAK,MAAMG,KAAQH,EAAW,CAC5B,MAAMI,EAAcH,OAAOI,KAAKF,EAAKG,QAErC,IAAK,MAAMC,KAASH,EAClBL,GAASI,EAAKG,OAAOC,GAAOR,KAE/B,CAED,OAAOA,CAAK,0BCtBR,SAA0BS,GAC9B,OAAOA,EAAYC,aACrB"}
|
package/dist/shared.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import { EDateRangePickerTheme } from "./DateRangePicker.type";
|
|
4
|
-
export interface DateRangePickerProps {
|
|
5
|
-
selectedStartDate?: dayjs.Dayjs | null;
|
|
6
|
-
selectedEndDate?: dayjs.Dayjs | null;
|
|
7
|
-
showArrows?: boolean;
|
|
8
|
-
small?: boolean;
|
|
9
|
-
onStartDateChanged?: (date: dayjs.Dayjs) => void;
|
|
10
|
-
onEndDateChanged?: (date: dayjs.Dayjs) => void;
|
|
11
|
-
fixedStartDate?: boolean;
|
|
12
|
-
showMultipleMonths?: boolean;
|
|
13
|
-
theme?: EDateRangePickerTheme;
|
|
14
|
-
}
|
|
15
|
-
export declare function DateRangePicker(props: DateRangePickerProps): React.JSX.Element;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Dayjs } from "dayjs";
|
|
3
|
-
import { EDateRangePickerTheme } from "./DateRangePicker.type";
|
|
4
|
-
export interface DateRangePickerContextProps {
|
|
5
|
-
todayInUnix: number;
|
|
6
|
-
today: Dayjs | null;
|
|
7
|
-
startDate: Dayjs | null;
|
|
8
|
-
endDate: Dayjs | null;
|
|
9
|
-
hoveredMonth: Dayjs | null;
|
|
10
|
-
currentMonth: Dayjs | null;
|
|
11
|
-
onHoverOver: (date: Dayjs) => void;
|
|
12
|
-
onDayClicked: (date: Dayjs) => void;
|
|
13
|
-
fixedStartDate: boolean;
|
|
14
|
-
theme?: EDateRangePickerTheme;
|
|
15
|
-
}
|
|
16
|
-
export declare const DateRangePickerContext: React.Context<DateRangePickerContextProps>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import { Color } from "@utils/color";
|
|
4
|
-
interface DatePickerDayProps {
|
|
5
|
-
text: any;
|
|
6
|
-
day?: dayjs.Dayjs | any;
|
|
7
|
-
unix: number;
|
|
8
|
-
price?: Promise<number>;
|
|
9
|
-
statuses?: DatePickerDayStatus[];
|
|
10
|
-
selectable?: boolean;
|
|
11
|
-
onClick?: (day: string) => void;
|
|
12
|
-
onHover?: (day: string, status: boolean) => void;
|
|
13
|
-
color?: Color;
|
|
14
|
-
}
|
|
15
|
-
export declare enum DatePickerDayStatus {
|
|
16
|
-
Inactive = 0,
|
|
17
|
-
Selecting = "--selecting",
|
|
18
|
-
Loading = "--loading",
|
|
19
|
-
Selected = "--selected"
|
|
20
|
-
}
|
|
21
|
-
declare const DateRangePickerDay: FC<DatePickerDayProps>;
|
|
22
|
-
export { DateRangePickerDay };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import dayjs from "dayjs";
|
|
3
|
-
import { Placement } from "@popperjs/core";
|
|
4
|
-
import { DateRangePickerProps } from "./index";
|
|
5
|
-
export interface FloatingDateRangePickerProps extends Omit<DateRangePickerProps, "selectedStartDate" | "selectedEndDate" | "onStartDateChanged" | "onEndDateChanged"> {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
startDate?: dayjs.Dayjs | null;
|
|
8
|
-
endDate?: dayjs.Dayjs | null;
|
|
9
|
-
overlayOffset?: [number, number];
|
|
10
|
-
fixedStartDate?: boolean;
|
|
11
|
-
container?: HTMLElement;
|
|
12
|
-
selectedDateChanged?: (startDate: dayjs.Dayjs, endDate: dayjs.Dayjs) => void;
|
|
13
|
-
className?: string;
|
|
14
|
-
overlay?: {
|
|
15
|
-
placement?: Placement;
|
|
16
|
-
fallbackPlacements?: Placement;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface FloatingDateRangePickerHandle {
|
|
20
|
-
closePicker: () => void;
|
|
21
|
-
openPicker: () => void;
|
|
22
|
-
toggle: () => void;
|
|
23
|
-
}
|
|
24
|
-
declare const FloatingDateRangePicker: React.ForwardRefExoticComponent<FloatingDateRangePickerProps & React.RefAttributes<FloatingDateRangePickerHandle>>;
|
|
25
|
-
export { FloatingDateRangePicker };
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Color } from "@utils/color";
|
|
2
|
-
import React from "react";
|
|
3
|
-
export declare enum IconType {
|
|
4
|
-
Email = "Email",
|
|
5
|
-
Degrees = "Degrees",
|
|
6
|
-
Hotel = "Hotel",
|
|
7
|
-
Hotel2 = "Hotel-2",
|
|
8
|
-
Map = "Map",
|
|
9
|
-
Info = "Info",
|
|
10
|
-
Deal = "Deal",
|
|
11
|
-
Money = "Money",
|
|
12
|
-
Lock = "Lock",
|
|
13
|
-
Check = "Check",
|
|
14
|
-
CheckCircled = "Check-Circled",
|
|
15
|
-
Bed = "Bed",
|
|
16
|
-
ApplePay = "Apple-Pay",
|
|
17
|
-
PayPal = "PayPal",
|
|
18
|
-
Person = "Person",
|
|
19
|
-
ChildFriendly = "Child-Friendly",
|
|
20
|
-
Fridge = "Fridge",
|
|
21
|
-
Smoking = "Smoking",
|
|
22
|
-
Gym = "Gym",
|
|
23
|
-
Bar = "Bar",
|
|
24
|
-
Laundry = "Laundry",
|
|
25
|
-
Breakfast = "Breakfast",
|
|
26
|
-
Snacks = "Snacks",
|
|
27
|
-
Phone = "Phone",
|
|
28
|
-
ViewMonth = "View-Month",
|
|
29
|
-
Ovolo = "Ovolo",
|
|
30
|
-
ViewWeek = "View-Week",
|
|
31
|
-
AirCon = "Air-Con",
|
|
32
|
-
WiFi = "Wifi",
|
|
33
|
-
Time = "Time",
|
|
34
|
-
People = "People",
|
|
35
|
-
Calendar = "Calendar",
|
|
36
|
-
CreditCard = "Credit-Card",
|
|
37
|
-
Spinner = "Spinner",
|
|
38
|
-
Fullscreen = "Fullscreen",
|
|
39
|
-
Star = "Star",
|
|
40
|
-
ArrowRight = "Arrow-Right",
|
|
41
|
-
ArrowLeft = "Arrow-Left",
|
|
42
|
-
ArrowUp = "Arrow-Up",
|
|
43
|
-
ArrowDown = "Arrow-Down",
|
|
44
|
-
ArrowLeft2 = "Arrow-2-Left",
|
|
45
|
-
ArrowUp2 = "Arrow-2-Up",
|
|
46
|
-
ArrowRight2 = "Arrow-2-Right",
|
|
47
|
-
ArrowDown2 = "Arrow-2-Down",
|
|
48
|
-
Close = "Close",
|
|
49
|
-
Remove = "Remove",
|
|
50
|
-
Add = "Add",
|
|
51
|
-
Dropdown = "Dropdown",
|
|
52
|
-
Train = "Train",
|
|
53
|
-
Taxi = "Taxi",
|
|
54
|
-
Share = "Share",
|
|
55
|
-
Print = "Print",
|
|
56
|
-
LogOut = "Log-Out",
|
|
57
|
-
Error = "Error",
|
|
58
|
-
Edit = "Edit",
|
|
59
|
-
Bus = "Bus",
|
|
60
|
-
Airplane = "Airplane",
|
|
61
|
-
Menu = "Menu",
|
|
62
|
-
LootBag = "loot-bag",
|
|
63
|
-
LateCheckout = "Late-Checkout",
|
|
64
|
-
RoomSize = "Room-Size",
|
|
65
|
-
RoomUpgrade = "Room-Upgrade",
|
|
66
|
-
Champagne = "Champagne",
|
|
67
|
-
Eye = "Eye",
|
|
68
|
-
EyeBlocked = "EyeBlocked",
|
|
69
|
-
Delete = "Delete",
|
|
70
|
-
ArrowLeft3 = "Arrow-3-Left",
|
|
71
|
-
ArrowUp3 = "Arrow-3-Up",
|
|
72
|
-
ArrowRight3 = "Arrow-3-Right",
|
|
73
|
-
ArrowDown3 = "Arrow-3-Down"
|
|
74
|
-
}
|
|
75
|
-
export interface IconProps {
|
|
76
|
-
icon: IconType;
|
|
77
|
-
size?: string;
|
|
78
|
-
name?: string;
|
|
79
|
-
color?: Color;
|
|
80
|
-
backgroundColor?: Color;
|
|
81
|
-
noPadding?: boolean;
|
|
82
|
-
onClick?: () => void;
|
|
83
|
-
borderRadius?: "oval" | "round";
|
|
84
|
-
className?: string;
|
|
85
|
-
}
|
|
86
|
-
export declare function IconDropdown(): React.JSX.Element;
|
|
87
|
-
export declare function IconDropdownFilled(): React.JSX.Element;
|
|
88
|
-
export declare function Icon(props: IconProps): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Icon";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React, { LegacyRef, ReactNode } from "react";
|
|
2
|
-
import { Placement, PositioningStrategy } from "@popperjs/core";
|
|
3
|
-
export type OverlayProps = {
|
|
4
|
-
children: ReactNode | ReactNode[];
|
|
5
|
-
open: boolean;
|
|
6
|
-
usePortal?: boolean;
|
|
7
|
-
container?: HTMLElement | null;
|
|
8
|
-
followElement?: Element | null;
|
|
9
|
-
className?: string;
|
|
10
|
-
containerClassName?: string;
|
|
11
|
-
hideStyles?: boolean;
|
|
12
|
-
placement?: Placement;
|
|
13
|
-
fallbackPlacements?: Placement;
|
|
14
|
-
strategy?: PositioningStrategy;
|
|
15
|
-
onClose?: (e: Event) => void;
|
|
16
|
-
offset?: [number, number];
|
|
17
|
-
overlayRef?: LegacyRef<HTMLDivElement>;
|
|
18
|
-
preventScroll?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export declare const Overlay: (props: OverlayProps) => React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Overlay";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Portal";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { FC } from "react";
|
|
2
|
-
import { TextAlign, TextTransform, TextType } from "./Text.type";
|
|
3
|
-
import { Color } from "@utils/color";
|
|
4
|
-
export type TextProps = React.JSX.IntrinsicElements["p"] & {
|
|
5
|
-
type?: TextType;
|
|
6
|
-
color?: Color;
|
|
7
|
-
align?: TextAlign;
|
|
8
|
-
transforms?: TextTransform[];
|
|
9
|
-
inline?: boolean;
|
|
10
|
-
bold?: boolean;
|
|
11
|
-
preformatted?: boolean;
|
|
12
|
-
lineThrough?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const Text: FC<TextProps>;
|
|
15
|
-
export { Text };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum TextType {
|
|
2
|
-
Body = "body",
|
|
3
|
-
Small = "small",
|
|
4
|
-
Caption = "caption",
|
|
5
|
-
Label = "label"
|
|
6
|
-
}
|
|
7
|
-
export declare enum TextTransform {
|
|
8
|
-
Uppercase = "u-uppercase"
|
|
9
|
-
}
|
|
10
|
-
export declare enum TextAlign {
|
|
11
|
-
Center = "u-align-center",
|
|
12
|
-
Right = "u-align-right",
|
|
13
|
-
Left = "u-align-left"
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface FadeProps {
|
|
3
|
-
children?: React.ReactElement;
|
|
4
|
-
open: boolean;
|
|
5
|
-
onEnter?: () => void;
|
|
6
|
-
onExited?: () => void;
|
|
7
|
-
/**
|
|
8
|
-
* Callback on complete animation of exit action
|
|
9
|
-
*/
|
|
10
|
-
onExitCompletely?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const FadeAnimation: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Fade";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const useBodyClick: () => {
|
|
2
|
-
onBodyClick: (event: EventListener, target?: HTMLElement | Document | null) => {
|
|
3
|
-
remove: () => void;
|
|
4
|
-
};
|
|
5
|
-
onBodyClickExcept: (event: EventListener, ignore: HTMLElement, target?: HTMLElement | Document | null) => {
|
|
6
|
-
remove: () => void;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./BodyClickHook";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./WeekdayStartsOn.types";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Hotel/index";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Client/index";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DateRangePickerProps } from "@components/DateRangePicker/DateRangePicker";
|
|
3
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, DateRangePickerProps>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Primary: (args: DateRangePickerProps) => React.JSX.Element;
|
|
6
|
-
export declare const StartDatePopulated: (args: DateRangePickerProps) => React.JSX.Element;
|
|
7
|
-
export declare const MultipleMonths: (args: DateRangePickerProps) => React.JSX.Element;
|
|
8
|
-
export declare const ThemeSpecific: (args: DateRangePickerProps) => React.JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@components").FloatingDateRangePickerProps & React.RefAttributes<import("@components").FloatingDateRangePickerHandle>>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Primary: () => React.JSX.Element;
|
|
5
|
-
export declare const ThemeSpecific: () => React.JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare enum EBookingPaymentMethod {
|
|
2
|
-
Card = "Card",
|
|
3
|
-
SavedCard = "SavedCard",
|
|
4
|
-
Planpay = "Planpay"
|
|
5
|
-
}
|
|
6
|
-
export declare enum EPlanpayBookingStatus {
|
|
7
|
-
Unknown = "unknown",
|
|
8
|
-
Unpaid = "unpaid",
|
|
9
|
-
Accepted = "accepted",
|
|
10
|
-
Cancelled = "cancelled",
|
|
11
|
-
Refunded = "refunded",
|
|
12
|
-
Rejected = "rejected"
|
|
13
|
-
}
|
|
14
|
-
export type IBookingPaymentTokenizedCard = {
|
|
15
|
-
Type: string;
|
|
16
|
-
Number: string;
|
|
17
|
-
Expiry: number;
|
|
18
|
-
CVV: string;
|
|
19
|
-
Name: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Booking payment attached to a booking.
|
|
23
|
-
*
|
|
24
|
-
* Could be either Card or Planpay
|
|
25
|
-
*/
|
|
26
|
-
export type IBookingPayment = {
|
|
27
|
-
Method: EBookingPaymentMethod;
|
|
28
|
-
SavedCardID?: string;
|
|
29
|
-
PlanpayCheckoutId?: string;
|
|
30
|
-
PaymentCard?: IBookingPaymentTokenizedCard;
|
|
31
|
-
RedirectUrl?: string;
|
|
32
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
type IRoomstayEventAvailabilityPrice = {
|
|
2
|
-
currency: string;
|
|
3
|
-
majorValue: string;
|
|
4
|
-
value: number;
|
|
5
|
-
};
|
|
6
|
-
export type IRoomstayEvent = {
|
|
7
|
-
eventId: string;
|
|
8
|
-
source: "eventbrite" | string;
|
|
9
|
-
name: string;
|
|
10
|
-
summary: string;
|
|
11
|
-
description: string;
|
|
12
|
-
image: {
|
|
13
|
-
background?: string;
|
|
14
|
-
url: string;
|
|
15
|
-
isRoomstay?: boolean;
|
|
16
|
-
id?: string;
|
|
17
|
-
};
|
|
18
|
-
checkoutUrl: string;
|
|
19
|
-
url: string;
|
|
20
|
-
endDate: string;
|
|
21
|
-
startDate: string;
|
|
22
|
-
/**
|
|
23
|
-
* Used to override the startDate (if event is repeating for example, say every thursday at 6pm)
|
|
24
|
-
*/
|
|
25
|
-
eventTimeDescription: string;
|
|
26
|
-
unixStartTime: number;
|
|
27
|
-
timezone: string;
|
|
28
|
-
searchCity: string[];
|
|
29
|
-
latitude: number;
|
|
30
|
-
longitude: number;
|
|
31
|
-
isPermanent?: boolean;
|
|
32
|
-
address: {
|
|
33
|
-
line1: string;
|
|
34
|
-
line2: string;
|
|
35
|
-
city: string;
|
|
36
|
-
country: string;
|
|
37
|
-
region: string;
|
|
38
|
-
};
|
|
39
|
-
availability: {
|
|
40
|
-
isSoldOut: boolean;
|
|
41
|
-
hasAvailableTickets: boolean;
|
|
42
|
-
isFree: boolean;
|
|
43
|
-
minPrice: IRoomstayEventAvailabilityPrice;
|
|
44
|
-
maxPrice: IRoomstayEventAvailabilityPrice;
|
|
45
|
-
};
|
|
46
|
-
tags: any;
|
|
47
|
-
};
|
|
48
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum EDistanceUnitType {
|
|
2
|
-
Metric = "metric",
|
|
3
|
-
Imperial = "imperial"
|
|
4
|
-
}
|
|
5
|
-
export type ITransportDistances = {
|
|
6
|
-
plane?: string;
|
|
7
|
-
train?: string;
|
|
8
|
-
bus?: string;
|
|
9
|
-
taxi?: string;
|
|
10
|
-
};
|
|
11
|
-
export type IHotelOverrides = {
|
|
12
|
-
hideByLine?: boolean;
|
|
13
|
-
overrideDistanceUnitType?: boolean;
|
|
14
|
-
distanceUnitType?: EDistanceUnitType;
|
|
15
|
-
transportDistances?: ITransportDistances;
|
|
16
|
-
phoneNumberInSummary?: boolean;
|
|
17
|
-
enabledEventIds?: string[];
|
|
18
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { EDistanceUnitType, EHotelPriceModel, EHotelWeekdayStartsOn, IHotelColorScheme, IHotelOverrides, IHotelService } from "../../index.js";
|
|
2
|
-
export type IHotelReplica = {
|
|
3
|
-
hotelId: string;
|
|
4
|
-
addressLine1: string;
|
|
5
|
-
addressLine2: string;
|
|
6
|
-
addressLine3: string;
|
|
7
|
-
businessServices: IHotelService[];
|
|
8
|
-
cancellationEmailTemplate: string;
|
|
9
|
-
ccBookingEmailsTo: string;
|
|
10
|
-
chainId: number;
|
|
11
|
-
chainName: string;
|
|
12
|
-
checkInTime: string;
|
|
13
|
-
checkOutTime: string;
|
|
14
|
-
checkOutUrl: string;
|
|
15
|
-
cityName: string;
|
|
16
|
-
confirmationEmailTemplate: string;
|
|
17
|
-
country: string;
|
|
18
|
-
crossSellDescription: string;
|
|
19
|
-
crossSellHotelId: string;
|
|
20
|
-
currencyCode: string;
|
|
21
|
-
deletedDate: string;
|
|
22
|
-
description: string;
|
|
23
|
-
distanceUnitType: EDistanceUnitType;
|
|
24
|
-
email: string;
|
|
25
|
-
frontendId: string;
|
|
26
|
-
heroImage: any;
|
|
27
|
-
hotelColorScheme: IHotelColorScheme;
|
|
28
|
-
hotelOverrides?: IHotelOverrides;
|
|
29
|
-
hotelService: IHotelService[];
|
|
30
|
-
hotelUrl: string;
|
|
31
|
-
images: any[];
|
|
32
|
-
label: string;
|
|
33
|
-
languageCode: string;
|
|
34
|
-
latitude: string;
|
|
35
|
-
longitude: string;
|
|
36
|
-
locationDescription: string;
|
|
37
|
-
name: string;
|
|
38
|
-
paymentCardTypes: string[];
|
|
39
|
-
phone: string;
|
|
40
|
-
policies: string;
|
|
41
|
-
postCode: string;
|
|
42
|
-
priceModel: EHotelPriceModel;
|
|
43
|
-
providerData: any;
|
|
44
|
-
providerId: string;
|
|
45
|
-
reservationContactEmail: string;
|
|
46
|
-
roomTypeCodes: string[];
|
|
47
|
-
roomstaySendsEmails: boolean;
|
|
48
|
-
state: string;
|
|
49
|
-
supportedLanguages: string[];
|
|
50
|
-
urlName: string;
|
|
51
|
-
utcOffset: string;
|
|
52
|
-
weekdayStartsOn: EHotelWeekdayStartsOn;
|
|
53
|
-
};
|