@availity/hooks 3.0.6 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.2](https://github.com/Availity/availity-react/compare/@availity/hooks@3.1.1...@availity/hooks@3.1.2) (2021-12-20)
7
+
8
+ **Note:** Version bump only for package @availity/hooks
9
+
10
+
11
+
12
+
13
+
14
+ ## 3.1.1 (2021-12-14)
15
+
16
+ **Note:** Version bump only for package @availity/hooks
17
+
18
+
19
+
20
+
21
+
22
+ # 3.1.0 (2021-11-15)
23
+
24
+
25
+ ### Features
26
+
27
+ * move storybook, stories, and fix hmr ([2f65f71](https://github.com/Availity/availity-react/commit/2f65f71769d2d981e22700b87a09516833588f64))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.0.6](https://github.com/Availity/availity-react/compare/@availity/hooks@3.0.5...@availity/hooks@3.0.6) (2021-10-28)
7
34
 
8
35
  **Note:** Version bump only for package @availity/hooks
package/README.md CHANGED
@@ -3,5 +3,23 @@
3
3
  > Re-usable hooks for components and apps.
4
4
 
5
5
  [![Version](https://img.shields.io/npm/v/@availity/hooks.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/hooks)
6
+ [![NPM Downloads](https://img.shields.io/npm/dt/@availity/hooks.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/hooks)
7
+ [![Dependecy Status](https://img.shields.io/librariesio/release/npm/@availity/hooks?style=for-the-badge)](https://github.com/Availity/availity-react/blob/master/packages/hooks/package.json)
6
8
 
7
- ## [Documentation](https://availity.github.io/availity-react/components/hooks/index)
9
+ ## Installation
10
+
11
+ ### NPM
12
+
13
+ ```bash
14
+ npm install @availity/hooks
15
+ ```
16
+
17
+ ### Yarn
18
+
19
+ ```bash
20
+ yarn add @availity/hooks
21
+ ```
22
+
23
+ ## Documentation
24
+
25
+ Check out more documentation at [availity.github.io](https://availity.github.io/availity-react/components/hooks/index)
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@availity/hooks",
3
- "version": "3.0.6",
4
- "author": "Kyle Gray <kyle.gray@availity.com>",
3
+ "version": "3.1.2",
5
4
  "description": "A group of pre-built hooks that are common in most apps",
6
- "main": "index.js",
7
- "types": "index.d.ts",
8
5
  "keywords": [
9
6
  "react",
10
- "availity"
7
+ "availity",
8
+ "hooks"
11
9
  ],
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/Availity/availity-react.git"
15
- },
10
+ "homepage": "https://availity.github.io/availity-react/components/hooks/index",
16
11
  "bugs": {
17
12
  "url": "https://github.com/Availity/availity-react/issues"
18
13
  },
19
- "license": "MIT",
20
- "publishConfig": {
21
- "access": "public"
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Availity/availity-react.git",
17
+ "directory": "packages/hooks"
22
18
  },
19
+ "license": "MIT",
20
+ "author": "Kyle Gray <kyle.gray@availity.com>",
21
+ "main": "index.js",
22
+ "types": "index.d.ts",
23
23
  "dependencies": {
24
24
  "prop-types": "^15.7.2",
25
25
  "react-query": "^3.29.0"
@@ -35,5 +35,8 @@
35
35
  "axios": "^0.21.1",
36
36
  "react": ">=16.8.0"
37
37
  },
38
- "gitHead": "bb94e9e964fd8c86c670397ffe9b4aca845e1c82"
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "gitHead": "5983e704cd833c6e93ef6d00472f48a0876fe782"
39
42
  }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { Card, CardBody, CardTitle } from 'reactstrap';
3
+
4
+ type Props = {
5
+ data: Record<string, unknown>;
6
+ loading: boolean;
7
+ title?: string;
8
+ };
9
+
10
+ const ResourceComponent = ({ data, loading, title = '' }: Props): JSX.Element => (
11
+ <Card body>
12
+ <CardTitle className="text-center" tag="h4">
13
+ {title}
14
+ </CardTitle>
15
+ <CardBody>{loading ? 'Loading...' : <pre>{JSON.stringify(data, null, 2)}</pre>}</CardBody>
16
+ </Card>
17
+ );
18
+
19
+ export default ResourceComponent;