@duffel/components 3.11.0-canary.2 → 3.11.0

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
@@ -20,9 +20,12 @@ export declare const colors: {
20
20
  "--GREEN-100": string;
21
21
  "--GREEN-200": string;
22
22
  "--GREEN-300": string;
23
+ "--GREEN-700": string;
23
24
  "--GREEN-800": string;
24
25
  "--YELLOW-600": string;
26
+ "--YELLOW-700": string;
25
27
  "--BLUE-100": string;
26
28
  "--BLUE-300": string;
29
+ "--PINK-700": string;
27
30
  };
28
31
  export type Color = keyof typeof colors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/components",
3
- "version": "3.11.0-canary.2",
3
+ "version": "3.11.0",
4
4
  "description": "Component library to build your travel product with Duffel.",
5
5
  "keywords": [
6
6
  "Duffel",
@@ -56,6 +56,8 @@
56
56
  "@stripe/react-stripe-js": "2.1.0",
57
57
  "@stripe/stripe-js": "1.54.2",
58
58
  "classnames": "2.3.2",
59
+ "date-fns": "^4.1.0",
60
+ "date-fns-tz": "^3.2.0",
59
61
  "duration-fns": "3.0.2",
60
62
  "fuse.js": "6.6.2",
61
63
  "lodash": "4.17.21",
@@ -84,7 +86,7 @@
84
86
  "@testing-library/react": "14.3.1",
85
87
  "@types/jest": "29.5.14",
86
88
  "@types/lodash": "4.17.20",
87
- "@types/node": "18.19.115",
89
+ "@types/node": "18.19.121",
88
90
  "@types/prompts": "2.4.9",
89
91
  "@types/react": "18.2.33",
90
92
  "@types/react-dom": "18.2.14",
@@ -93,7 +95,7 @@
93
95
  "babel-jest": "29.7.0",
94
96
  "concurrently": "8.2.2",
95
97
  "dotenv": "16.4.5",
96
- "esbuild": "0.25.3",
98
+ "esbuild": "0.25.8",
97
99
  "esbuild-copy-static-files": "0.1.0",
98
100
  "eslint": "8.52.0",
99
101
  "eslint-config-prettier": "9.0.0",
@@ -5,3 +5,4 @@ export default _default;
5
5
  export declare const Default: StoryFn<DuffelNGSViewProps>;
6
6
  export declare const Deduplicated: StoryFn<DuffelNGSViewProps>;
7
7
  export declare const Large: StoryFn<DuffelNGSViewProps>;
8
+ export declare const Spirit: StoryFn<DuffelNGSViewProps>;
@@ -0,0 +1,122 @@
1
+ import { StaysCancellationTimelineProps } from "../components/Stays/StaysCancellationTimeline/StaysCancellationTimeline";
2
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/dist/types-a5624094").R, import("@storybook/csf").Args>;
3
+ export default _default;
4
+ export declare const FullAndPartialRefundable: {
5
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
6
+ args: {
7
+ cancellationTimeline: {
8
+ refund_amount: string;
9
+ currency: string;
10
+ before: string;
11
+ }[];
12
+ totalAmount: string;
13
+ checkInDate: string;
14
+ bookingDate: string;
15
+ };
16
+ };
17
+ export declare const FullAndPartialRefundableWithCheckInTime: {
18
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
19
+ args: {
20
+ cancellationTimeline: {
21
+ refund_amount: string;
22
+ currency: string;
23
+ before: string;
24
+ }[];
25
+ totalAmount: string;
26
+ checkInDate: string;
27
+ checkInAfterTime: string;
28
+ bookingDate: string;
29
+ };
30
+ };
31
+ export declare const FullRefundableOnly: {
32
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
33
+ args: {
34
+ cancellationTimeline: {
35
+ refund_amount: string;
36
+ currency: string;
37
+ before: string;
38
+ }[];
39
+ totalAmount: string;
40
+ checkInDate: string;
41
+ bookingDate: string;
42
+ };
43
+ };
44
+ export declare const NotRefundable: {
45
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
46
+ args: {
47
+ cancellationTimeline: never[];
48
+ bookingDate: string;
49
+ };
50
+ };
51
+ export declare const PartialRefundableDeposit: {
52
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
53
+ args: {
54
+ cancellationTimeline: {
55
+ refund_amount: string;
56
+ currency: string;
57
+ before: string;
58
+ }[];
59
+ totalAmount: string;
60
+ checkInDate: string;
61
+ bookingDate: string;
62
+ paymentType: string;
63
+ };
64
+ };
65
+ export declare const FullRefundableOnlyDeposit: {
66
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
67
+ args: {
68
+ cancellationTimeline: {
69
+ refund_amount: string;
70
+ currency: string;
71
+ before: string;
72
+ }[];
73
+ totalAmount: string;
74
+ checkInDate: string;
75
+ bookingDate: string;
76
+ paymentType: string;
77
+ };
78
+ };
79
+ export declare const NotRefundableDeposit: {
80
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
81
+ args: {
82
+ cancellationTimeline: never[];
83
+ bookingDate: string;
84
+ paymentType: string;
85
+ };
86
+ };
87
+ export declare const PartialRefundableGuarantee: {
88
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
89
+ args: {
90
+ cancellationTimeline: {
91
+ refund_amount: string;
92
+ currency: string;
93
+ before: string;
94
+ }[];
95
+ totalAmount: string;
96
+ checkInDate: string;
97
+ bookingDate: string;
98
+ paymentType: string;
99
+ };
100
+ };
101
+ export declare const FullRefundableOnlyGuarantee: {
102
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
103
+ args: {
104
+ cancellationTimeline: {
105
+ refund_amount: string;
106
+ currency: string;
107
+ before: string;
108
+ }[];
109
+ totalAmount: string;
110
+ checkInDate: string;
111
+ bookingDate: string;
112
+ paymentType: string;
113
+ };
114
+ };
115
+ export declare const NotRefundableGuarantee: {
116
+ render: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-a5624094").R, StaysCancellationTimelineProps>;
117
+ args: {
118
+ cancellationTimeline: never[];
119
+ bookingDate: string;
120
+ paymentType: string;
121
+ };
122
+ };