@availity/element 0.1.1 → 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 CHANGED
@@ -2,6 +2,15 @@
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
+
7
+ ## [0.1.2](https://github.com/Availity/element/compare/@availity/element@0.1.1...@availity/element@0.1.2) (2023-02-22)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * update exports ([af3f9f6](https://github.com/Availity/element/commit/af3f9f6715132b020bf96881dbc70906738bcda7))
13
+
5
14
  ## [0.1.1](https://github.com/Availity/element/compare/@availity/element@0.1.0...@availity/element@0.1.1) (2023-02-22)
6
15
 
7
16
  ## 0.1.0 (2023-02-21)
@@ -19,7 +28,3 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/s
19
28
 
20
29
  * **element:** create package ([89750a3](https://github.com/Availity/element/commit/89750a3b1750e19e9a6b3078cb34f50356fd8237))
21
30
  * **element:** create package ([0117531](https://github.com/Availity/element/commit/011753187798d7a4d67ae04b00a6ef44e59be3ea))
22
-
23
- # Changelog
24
-
25
- This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
package/README.md CHANGED
@@ -6,6 +6,10 @@
6
6
  [![NPM Downloads](https://img.shields.io/npm/dt/@availity/element.svg?style=for-the-badge)](https://www.npmjs.com/package/@availity/element)
7
7
  [![Dependecy Status](https://img.shields.io/librariesio/release/npm/@availity/element?style=for-the-badge)](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
@@ -1 +1,3 @@
1
+ export * from '@availity/mui-alert';
2
+ export * from '@availity/mui-badge';
1
3
  export * from '@availity/theme-provider';
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
@@ -1,2 +1,4 @@
1
1
  // src/index.ts
2
+ export * from "@availity/mui-alert";
3
+ export * from "@availity/mui-badge";
2
4
  export * from "@availity/theme-provider";
@@ -0,0 +1,7 @@
1
+ import { Markdown } from '@storybook/blocks';
2
+ import { Meta } from '@storybook/addon-docs';
3
+ import ReadMe from './README.md?raw';
4
+
5
+ <Meta title="Element" />
6
+
7
+ <Markdown>{ReadMe}</Markdown>
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@availity/element",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
+ "browser": "./dist/index.js",
4
5
  "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
5
7
  "types": "./dist/index.d.ts",
6
- "exports": {
7
- ".": {
8
- "import": "./dist/index.mjs",
9
- "require": "./dist/index.js"
10
- }
11
- },
12
8
  "scripts": {
13
9
  "build": "tsup src/index.ts --format esm,cjs --dts",
14
10
  "dev": "tsup src/index.ts --format esm,cjs --watch --dts",
@@ -18,7 +14,10 @@
18
14
  "publish:canary": "yarn npm publish --access public --tag canary"
19
15
  },
20
16
  "dependencies": {
21
- "@availity/theme-provider": "0.1.1"
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"
22
21
  },
23
22
  "devDependencies": {
24
23
  "react": "18.2.0",
package/src/index.ts CHANGED
@@ -1 +1,3 @@
1
+ export * from '@availity/mui-alert';
2
+ export * from '@availity/mui-badge';
1
3
  export * from '@availity/theme-provider';
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "extends": "../../tsconfig.json",
3
3
  "include": ["."],
4
- "exclude": ["dist", "build", "node_modules"]
4
+ "exclude": ["dist", "build", "node_modules", "*.mdx"]
5
5
  }