@abgov/react-components 4.4.0 → 4.5.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/README.md CHANGED
@@ -5,9 +5,8 @@ This library contains react components from the Government of Alberta.
5
5
  Add Dependencies
6
6
 
7
7
  ```bash
8
- npm i @abgov/react-components@alpha
9
- npm i @abgov/web-components@alpha
10
- npm i @abgov/styles@alpha
8
+ npm i @abgov/react-components
9
+ npm i @abgov/web-components
11
10
  ```
12
11
 
13
12
  Link ionicons in app/index.html
@@ -27,5 +26,5 @@ Add the following to the head element
27
26
  Import the styles in the `src/index.css` file
28
27
 
29
28
  ```css
30
- @import "@abgov/styles/styles.esm.css";
29
+ @import "@abgov/web-components/index.css";
31
30
  ```
package/index.d.ts CHANGED
@@ -30,6 +30,7 @@ export * from "./lib/notification/notification";
30
30
  export * from "./lib/one-column-layout/one-column-layout";
31
31
  export * from "./lib/page-block/page-block";
32
32
  export * from "./lib/radio-group/radio-group";
33
+ export * from "./lib/pagination/pagination";
33
34
  export * from "./lib/skeleton/skeleton";
34
35
  export * from "./lib/spacer/spacer";
35
36
  export * from "./lib/spinner/spinner";
@@ -11,6 +11,7 @@ interface WCProps extends Margins {
11
11
  value: string;
12
12
  id?: string;
13
13
  autocapitalize?: GoAAutoCapitalize;
14
+ debounce?: number;
14
15
  placeholder?: string;
15
16
  leadingicon?: string;
16
17
  trailingicon?: string;
@@ -39,6 +40,7 @@ declare global {
39
40
  interface BaseProps extends Margins {
40
41
  name: string;
41
42
  id?: string;
43
+ debounce?: number;
42
44
  disabled?: boolean;
43
45
  autoCapitalize?: GoAAutoCapitalize;
44
46
  placeholder?: string;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ ref?: React.MutableRefObject<HTMLElement | undefined>;
5
+ itemcount: number;
6
+ perpagecount?: number;
7
+ pagenumber: number;
8
+ variant?: "all" | "links-only";
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ "goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ export interface PaginationProps extends Margins {
18
+ itemCount: number;
19
+ perPageCount?: number;
20
+ pageNumber: number;
21
+ variant?: "all" | "links-only";
22
+ onChange: (page: number) => void;
23
+ }
24
+ export declare function GoAPagination(props: PaginationProps): JSX.Element;
25
+ export default GoAPagination;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"