@jobber/components 4.78.1 → 4.78.2

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.
@@ -39,6 +39,10 @@ export interface SortableOptions {
39
39
  readonly label: string;
40
40
  readonly order: "asc" | "desc";
41
41
  }
42
+ export interface DataListSortable {
43
+ readonly key: string;
44
+ readonly options?: SortableOptions[];
45
+ }
42
46
  export interface DataListProps<T extends DataListObject> {
43
47
  /**
44
48
  * The data to render in the DataList.
@@ -92,10 +96,7 @@ export interface DataListProps<T extends DataListObject> {
92
96
  * `onSort`: The callback function when the user sorting a column.
93
97
  */
94
98
  readonly sorting?: {
95
- readonly sortable: {
96
- key: string;
97
- options?: SortableOptions[];
98
- }[];
99
+ readonly sortable: DataListSortable[];
99
100
  readonly state: DataListSorting | undefined;
100
101
  readonly onSort: (sorting?: DataListSorting) => void;
101
102
  };
@@ -1,2 +1,2 @@
1
1
  export * from "./DataList";
2
- export { DataListItemType, DataListSorting, DataListSelectedType, DataListSelectedAllType, } from "./DataList.types";
2
+ export { DataListItemType, DataListSorting, DataListSortable, DataListSelectedType, DataListSelectedAllType, } from "./DataList.types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.78.1",
3
+ "version": "4.78.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -84,5 +84,5 @@
84
84
  "> 1%",
85
85
  "IE 10"
86
86
  ],
87
- "gitHead": "5dfbb5b8c8fe61a7c70e64ef7e7f4f0c90a2a34c"
87
+ "gitHead": "bace74cb8766041101b9a376ff372a78bc6c6386"
88
88
  }