@duffel/components 3.2.0 → 3.3.1--canary

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/lib/colors.d.ts CHANGED
@@ -19,5 +19,8 @@ export declare const colors: {
19
19
  "--GREEN-100": string;
20
20
  "--GREEN-200": string;
21
21
  "--GREEN-300": string;
22
+ "--GREEN-800": string;
23
+ "--YELLOW-600": string;
24
+ "--PURPLE-500": string;
22
25
  };
23
26
  export type Color = keyof typeof colors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/components",
3
- "version": "3.2.0",
3
+ "version": "3.3.1--canary",
4
4
  "description": "Component library to build your travel product with Duffel.",
5
5
  "keywords": [
6
6
  "Duffel",
@@ -54,7 +54,7 @@
54
54
  "semver": "7.5.3"
55
55
  },
56
56
  "dependencies": {
57
- "@duffel/api": "2.6.4",
57
+ "@duffel/api": "2.6.6",
58
58
  "@sentry/browser": "7.77.0",
59
59
  "@stripe/react-stripe-js": "2.1.0",
60
60
  "@stripe/stripe-js": "1.54.0",
@@ -4,4 +4,4 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
4
4
  export default _default;
5
5
  type DuffelCardFormStory = StoryObj<typeof DuffelCardForm>;
6
6
  export declare const Default: DuffelCardFormStory;
7
- export declare const WithFont: DuffelCardFormStory;
7
+ export declare const WithLinksStyles: DuffelCardFormStory;
@@ -0,0 +1,10 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysAmenitiesProps } from "@components/Stays/StaysAmenities";
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Default: {
6
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysAmenitiesProps>;
7
+ args: {
8
+ amenities: import("@duffel/api/Stays/StaysTypes").StaysAmenity[] | null;
9
+ };
10
+ };
@@ -0,0 +1,16 @@
1
+ import { StaysRatingProps } from "@components/Stays/StaysRating";
2
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
3
+ export default _default;
4
+ export declare const Default: {
5
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRatingProps>;
6
+ args: {
7
+ rating: number;
8
+ };
9
+ };
10
+ export declare const Small: {
11
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRatingProps>;
12
+ args: {
13
+ rating: number;
14
+ small: boolean;
15
+ };
16
+ };
@@ -0,0 +1,41 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Default: {
6
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRoomRateCardProps>;
7
+ args: {
8
+ rate: import("@duffel/api/Stays/StaysTypes").StaysRoomRate;
9
+ numberOfNights: number;
10
+ };
11
+ };
12
+ export declare const Variant: {
13
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRoomRateCardProps>;
14
+ args: {
15
+ rate: {
16
+ quantity_available: number | null;
17
+ base_amount: string | null;
18
+ base_currency: string;
19
+ board_type: "room_only" | "breakfast" | "half_board" | "full_board" | "all_inclusive";
20
+ cancellation_timeline: import("@duffel/api/Stays/StaysTypes").StaysRateCancellationTimeline[];
21
+ conditions: import("@duffel/api/Stays/StaysTypes").StaysRateCondition[];
22
+ due_at_accommodation_amount: string | null;
23
+ due_at_accommodation_currency: string;
24
+ id: string;
25
+ payment_type: "pay_now" | "guarantee";
26
+ supplier: "priceline";
27
+ fee_amount: string | null;
28
+ fee_currency: string;
29
+ tax_amount: string | null;
30
+ tax_currency: string;
31
+ total_amount: string;
32
+ total_currency: string;
33
+ payment_method: "balance" | "card";
34
+ supported_loyalty_programme: import("@duffel/api/Stays/StaysTypes").StaysLoyaltyProgramme | null;
35
+ };
36
+ numberOfNights: number;
37
+ showPotentialCommission: boolean;
38
+ searchNumberOfRooms: number;
39
+ selected: boolean;
40
+ };
41
+ };
@@ -0,0 +1,45 @@
1
+ /// <reference types="@duffel/api" />
2
+ import { StaysSummaryProps } from "@components/Stays/StaysSummary";
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
+ export default _default;
5
+ export declare const Default: {
6
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysSummaryProps>;
7
+ args: {
8
+ accommodation: import("@duffel/api/Stays/StaysTypes").StaysAccommodation;
9
+ checkInDate: Date;
10
+ checkOutDate: Date;
11
+ numRooms: number;
12
+ supportedLoyaltyProgramme: string;
13
+ loyaltyProgrammeAccountNumber: string;
14
+ accommodationSpecialRequests: string;
15
+ };
16
+ };
17
+ export declare const WithNoPhoto: {
18
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysSummaryProps>;
19
+ args: {
20
+ accommodation: {
21
+ photos: never[];
22
+ id: string;
23
+ amenities: import("@duffel/api/Stays/StaysTypes").StaysAmenity[] | null;
24
+ chain: import("@duffel/api/Stays/StaysTypes").StaysChain | null;
25
+ check_in_information: {
26
+ check_out_before_time: string;
27
+ check_in_after_time: string;
28
+ } | null;
29
+ cheapest_rate_currency: string;
30
+ cheapest_rate_total_amount: string;
31
+ description?: string | undefined;
32
+ email: string | null;
33
+ location: import("@duffel/api/Stays/StaysTypes").StaysLocation;
34
+ name: string;
35
+ phone_number: string | null;
36
+ ratings: import("@duffel/api/Stays/StaysTypes").StaysRating[] | null;
37
+ rating: number | null;
38
+ review_score: number | null;
39
+ rooms: import("@duffel/api/Stays/StaysTypes").StaysRoom[];
40
+ };
41
+ checkInDate: Date;
42
+ checkOutDate: Date;
43
+ numRooms: number;
44
+ };
45
+ };