@duffel/components 3.5.0 → 3.5.1

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
@@ -1,4 +1,5 @@
1
1
  export declare const colors: {
2
+ "--GREY-50": string;
2
3
  "--GREY-100": string;
3
4
  "--GREY-200": string;
4
5
  "--GREY-300": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/components",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Component library to build your travel product with Duffel.",
5
5
  "keywords": [
6
6
  "Duffel",
@@ -49,7 +49,7 @@
49
49
  "semver": "7.5.3"
50
50
  },
51
51
  "dependencies": {
52
- "@duffel/api": "2.6.6",
52
+ "@duffel/api": "2.7.1",
53
53
  "@sentry/browser": "7.77.0",
54
54
  "@stripe/react-stripe-js": "2.1.0",
55
55
  "@stripe/stripe-js": "1.54.0",
@@ -1,6 +1,5 @@
1
- import type { StoryObj } from "@storybook/react";
2
- import { DuffelNGSView } from "../components/DuffelNGSView/DuffelNGSView";
1
+ import type { StoryFn } from "@storybook/react";
2
+ import { DuffelNGSViewProps } from "../components/DuffelNGSView/DuffelNGSView";
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
- type DuffelNGSViewStory = StoryObj<typeof DuffelNGSView>;
6
- export declare const Default: DuffelNGSViewStory;
5
+ export declare const Default: StoryFn<DuffelNGSViewProps>;
@@ -0,0 +1,6 @@
1
+ import React from "react";
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: React.FC;
5
+ export declare const WithStop: React.FC;
6
+ export declare const WithStopAnd2Segments: React.FC;
@@ -2,39 +2,37 @@
2
2
  import { StaysRoomRateCardProps } from "@components/Stays/StaysRoomRateCard";
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
- export declare const Default: {
6
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRoomRateCardProps>;
5
+ export declare const RateWithMinimalInformation: {
6
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
7
+ roomRates: StaysRoomRateCardProps[];
8
+ }>;
7
9
  args: {
8
- rate: import("@duffel/api/types").StaysRoomRate;
9
- numberOfNights: number;
10
+ roomRates: {
11
+ rate: import("@duffel/api/types").StaysRoomRate;
12
+ numberOfNights: number;
13
+ }[];
10
14
  };
11
15
  };
12
- export declare const Variant: {
13
- render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StaysRoomRateCardProps>;
16
+ export declare const RateWithCompleteInformation: {
17
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
18
+ roomRates: StaysRoomRateCardProps[];
19
+ }>;
14
20
  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/types").StaysRateCancellationTimeline[];
21
- conditions: import("@duffel/api/types").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/types").StaysLoyaltyProgramme | null;
35
- };
36
- numberOfNights: number;
37
- searchNumberOfRooms: number;
38
- selected: boolean;
21
+ roomRates: {
22
+ rate: import("@duffel/api/types").StaysRoomRate;
23
+ numberOfNights: number;
24
+ searchNumberOfRooms: number;
25
+ }[];
26
+ };
27
+ };
28
+ export declare const RatesCrossComparison: {
29
+ render: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, {
30
+ roomRates: StaysRoomRateCardProps[];
31
+ }>;
32
+ args: {
33
+ roomRates: {
34
+ rate: import("@duffel/api/types").StaysRoomRate;
35
+ numberOfNights: number;
36
+ }[];
39
37
  };
40
38
  };