@availity/mui-button 0.1.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/CHANGELOG.md +16 -0
- package/README.md +57 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1327 -0
- package/dist/index.mjs +1314 -0
- package/introduction.mdx +7 -0
- package/jest.config.js +7 -0
- package/package.json +50 -0
- package/project.json +41 -0
- package/src/index.ts +1 -0
- package/src/lib/Button.tsx +23 -0
- package/tsconfig.json +5 -0
- package/tsconfig.spec.json +10 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
|
+
|
|
5
|
+
## 0.1.0 (2023-03-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **buttons:** create new buttons ([d2dfb1a](https://github.com/Availity/element/commit/d2dfb1af0491adbcdb7d86c5a65d90d23dec5b4a))
|
|
11
|
+
* **buttons:** typo fixes ([ee06ad4](https://github.com/Availity/element/commit/ee06ad435771bde574509855accb46cd69f4c48c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* remove unnecessary dep ([269e2ab](https://github.com/Availity/element/commit/269e2abe45bf7109a1b263ae5fcac71d3afb5d05))
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @availity/mui-button
|
|
2
|
+
|
|
3
|
+
> Availity MUI button component to be used with @availity/element design system.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@availity/mui-button)
|
|
6
|
+
[](https://www.npmjs.com/package/@availity/mui-button)
|
|
7
|
+
[](https://github.com/Availity/availity-react/blob/master/packages/mui-button/package.json)
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
This package extends the MUI button component: [MUI button Docs](https://mui.com/components/button/)
|
|
12
|
+
|
|
13
|
+
Live demo and documentation in our [Storybook](https://availity.github.io/element/?path=/docs/components-button-introduction--docs)
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
### Install Through @availity/element (Recommended)
|
|
18
|
+
|
|
19
|
+
#### NPM
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install @availity/element
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### Yarn
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
yarn add @availity/element
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Direct Install
|
|
32
|
+
|
|
33
|
+
#### NPM
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install @availity/mui-button
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Yarn
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn add @availity/mui-button
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Usage
|
|
46
|
+
|
|
47
|
+
#### Import through @availity/element (Recommended)
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import { Button } from '@availity/element';
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Direct import
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
import Button from '@availity/mui-button';
|
|
57
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps as ButtonProps$1 } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
} & ButtonProps$1;
|
|
7
|
+
declare const Button: ({ children, ...rest }: ButtonProps) => JSX.Element;
|
|
8
|
+
declare const LoadingButton: ({ children, ...rest }: ButtonProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Button, ButtonProps, LoadingButton };
|