axis-lib 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/README.md +22 -0
- package/dist/cjs/Button-5b89148e.js +10617 -0
- package/dist/cjs/Button-5b89148e.js.map +1 -0
- package/dist/cjs/components/Button/ButtonMui.js +32 -0
- package/dist/cjs/components/Button/ButtonMui.js.map +1 -0
- package/dist/cjs/components/Button/index.js +48 -0
- package/dist/cjs/components/Button/index.js.map +1 -0
- package/dist/cjs/components/CnxButton/index.js +16 -0
- package/dist/cjs/components/CnxButton/index.js.map +1 -0
- package/dist/cjs/index.js +15 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/styles.css +1 -0
- package/dist/esm/Button-5263fe1c.js +10593 -0
- package/dist/esm/Button-5263fe1c.js.map +1 -0
- package/dist/esm/components/Button/ButtonMui.js +28 -0
- package/dist/esm/components/Button/ButtonMui.js.map +1 -0
- package/dist/esm/components/Button/index.js +43 -0
- package/dist/esm/components/Button/index.js.map +1 -0
- package/dist/esm/components/CnxButton/index.js +12 -0
- package/dist/esm/components/CnxButton/index.js.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/styles.css +1 -0
- package/package.json +53 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Axis Lib (JS-only React component library)
|
|
2
|
+
|
|
3
|
+
This is a minimal scaffold to build a JS-only React component library with deep imports (like `@mui/material/Button`).
|
|
4
|
+
|
|
5
|
+
Usage (local):
|
|
6
|
+
|
|
7
|
+
1. In `Axis_Lib`, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install
|
|
11
|
+
npm run build
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
2. In your app, you can import components either as:
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
import { Button } from 'axis-lib';
|
|
18
|
+
// or deep import
|
|
19
|
+
import Button from 'axis-lib/Button';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Add new components under `src/components` and re-run `npm run build`.
|