@duffel/components 3.7.8 → 3.7.10--canary.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.
@@ -3,8 +3,8 @@ import { OfferRequest } from "@duffel/api/types";
3
3
  import * as React from "react";
4
4
  import { NGSOfferRow } from "./lib/group-offers-for-ngs-view";
5
5
  export declare function useSort(): {
6
- sortOption: "duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc";
7
- setSortOption: React.Dispatch<React.SetStateAction<"duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc">>;
6
+ sortOption: "duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc" | "recommended";
7
+ setSortOption: React.Dispatch<React.SetStateAction<"duration-asc" | "duration-desc" | "1-asc" | "1-desc" | "2-asc" | "2-desc" | "3-asc" | "3-desc" | "4-asc" | "4-desc" | "5-asc" | "5-desc" | "recommended">>;
8
8
  sortingFunction: (rows: NGSOfferRow[]) => NGSOfferRow[];
9
9
  };
10
10
  export interface DuffelNGSViewProps {
@@ -4,6 +4,7 @@ interface FilterControlProps {
4
4
  children: (closePopover: () => void) => React.ReactNode;
5
5
  disabled?: boolean;
6
6
  popoverWidth?: string;
7
+ popoverMaxHeigh?: string;
7
8
  targetWidth: string;
8
9
  }
9
10
  export declare const FilterControl: React.FC<FilterControlProps>;
@@ -12,6 +12,7 @@ declare const OPTIONS: {
12
12
  readonly "4-desc": "Price (Premium) High to Low";
13
13
  readonly "5-asc": "Price (Luxury) Low to High";
14
14
  readonly "5-desc": "Price (Luxury) High to Low";
15
+ readonly recommended: "Recommended";
15
16
  };
16
17
  export type SortOption = keyof typeof OPTIONS;
17
18
  interface StopsSelectorProps {
@@ -0,0 +1,2 @@
1
+ import { NGSOfferRow } from "./group-offers-for-ngs-view";
2
+ export declare const sortNGSRowsByRecommended: (rows: NGSOfferRow[]) => NGSOfferRow[];