@jobber/components 4.26.5 → 4.26.7

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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { DataListLayout } from "./components/DataListLayout";
3
3
  import { DataListObject, DataListProps } from "./DataList.types";
4
- export declare function DataList<T extends DataListObject>({ data, headers, loading, filterApplied, children, }: DataListProps<T>): JSX.Element;
4
+ export declare function DataList<T extends DataListObject>({ data, headers, loading, filterApplied, children, title, totalCount, }: DataListProps<T>): JSX.Element;
5
5
  export declare namespace DataList {
6
6
  var Layout: typeof DataListLayout;
7
7
  var EmptyState: typeof import("./components/EmptyState").EmptyState;
@@ -19,4 +19,16 @@ export interface DataListProps<T extends DataListObject> {
19
19
  */
20
20
  readonly filterApplied?: boolean;
21
21
  readonly children: ReactElement | ReactElement[];
22
+ /**
23
+ * The title of the DataList
24
+ */
25
+ readonly title?: string;
26
+ /**
27
+ * Total number of items in the DataList.
28
+ *
29
+ * This renders an "N result" text with the DataList
30
+ * that helps users know how many items they have
31
+ * in the list
32
+ */
33
+ readonly totalCount?: number | null;
22
34
  }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface DataListTagsProps {
3
+ readonly items: string[];
4
+ }
5
+ export declare function DataListTags({ items }: DataListTagsProps): JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./DataListTags";
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export declare const DATALIST_TOTALCOUNT_TEST_ID = "ATL-DataList-TotalCount";
3
+ interface DataListTotalCountProps {
4
+ totalCount?: number | null;
5
+ loading?: boolean;
6
+ }
7
+ export declare function DataListTotalCount({ totalCount, loading, }: DataListTotalCountProps): JSX.Element | null;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./DataListTotalCount";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.26.5",
3
+ "version": "4.26.7",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -64,6 +64,7 @@
64
64
  "autoprefixer": "^9.5.1",
65
65
  "copyfiles": "^2.4.1",
66
66
  "glob": "^7.1.4",
67
+ "jsdom-testing-mocks": "^1.9.0",
67
68
  "postcss": "^8.4.21",
68
69
  "postcss-import": "^12.0.1",
69
70
  "postcss-preset-env": "^8.3.0",
@@ -83,5 +84,5 @@
83
84
  "> 1%",
84
85
  "IE 10"
85
86
  ],
86
- "gitHead": "5a7940e8aa7d4d0de51f451971c1382ffd20d07b"
87
+ "gitHead": "c6b61f85327bcde7c60767afaf3dbfc6dc3b9f0e"
87
88
  }