@availity/element 0.1.2 → 0.1.3
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 +2 -0
- package/README.md +24 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/introduction.mdx +7 -0
- package/package.json +5 -2
- package/src/index.ts +2 -0
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.1.3](https://github.com/Availity/element/compare/@availity/element@0.1.2...@availity/element@0.1.3) (2023-02-28)
|
|
6
|
+
|
|
5
7
|
## [0.1.2](https://github.com/Availity/element/compare/@availity/element@0.1.1...@availity/element@0.1.2) (2023-02-22)
|
|
6
8
|
|
|
7
9
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@availity/element)
|
|
7
7
|
[](https://github.com/Availity/element/blob/master/packages/element/package.json)
|
|
8
8
|
|
|
9
|
+
This is a collection of reusable React components intended to be used across multiple projects. These components use [@availity/design-tokens](./packages/design-tokens/) for styling and [Material UI](https://mui.com/) as the base.
|
|
10
|
+
|
|
11
|
+
Visit our [documentation site](https://zeroheight.com/07045d232/v/latest/p/753cd8-element) for more information on how to use the components.
|
|
12
|
+
|
|
9
13
|
## Installation
|
|
10
14
|
|
|
11
15
|
### NPM
|
|
@@ -19,3 +23,23 @@ npm install @availity/element
|
|
|
19
23
|
```bash
|
|
20
24
|
yarn add @availity/element
|
|
21
25
|
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
The @availity/element package contains all of the components and hooks for the design system. We recommend using this package when you want to use multiple components.
|
|
30
|
+
|
|
31
|
+
To use the components in your project, you will need to import them first:
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import { Button, ThemeProvider } from '@availity/element';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Make sure all of the components you use are inside the `ThemeProvider` component. We recommend placing it in your root `index.{js|tsx}` file.
|
|
38
|
+
|
|
39
|
+
```jsx
|
|
40
|
+
import { ThemePovider } from '@availity/element';
|
|
41
|
+
|
|
42
|
+
const App = () => {
|
|
43
|
+
return <ThemeProvider>{/* Application code. Most likely a router. */}</ThemeProvider>;
|
|
44
|
+
};
|
|
45
|
+
```
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,4 +17,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
17
17
|
// src/index.ts
|
|
18
18
|
var src_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(src_exports);
|
|
20
|
+
__reExport(src_exports, require("@availity/mui-alert"), module.exports);
|
|
21
|
+
__reExport(src_exports, require("@availity/mui-badge"), module.exports);
|
|
20
22
|
__reExport(src_exports, require("@availity/theme-provider"), module.exports);
|
package/dist/index.mjs
CHANGED
package/introduction.mdx
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/element",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"browser": "./dist/index.js",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@availity/
|
|
17
|
+
"@availity/mui-alert": "0.1.0",
|
|
18
|
+
"@availity/mui-badge": "0.1.0",
|
|
19
|
+
"@availity/theme-provider": "0.1.2",
|
|
20
|
+
"@mui/material": "^5.11.9"
|
|
18
21
|
},
|
|
19
22
|
"devDependencies": {
|
|
20
23
|
"react": "18.2.0",
|
package/src/index.ts
CHANGED
package/tsconfig.json
CHANGED