peercore-ui-library 1.0.75 → 1.0.76
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 +126 -126
- package/dist/index.es.js +3 -3
- package/dist/index.js +1 -1
- package/package.json +61 -61
package/README.md
CHANGED
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<br />
|
|
3
|
-
<img src="src/stories/assets/git-bg-img.png" alt="PC UI Components Banner">
|
|
4
|
-
<br />
|
|
5
|
-
|
|
6
|
-
<div>
|
|
7
|
-
<img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white" />
|
|
8
|
-
<img src="https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" />
|
|
9
|
-
<img src="https://img.shields.io/badge/NPM-%23CB3837.svg?style=for-the-badge&logo=npm&logoColor=white" />
|
|
10
|
-
<img src="https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white" />
|
|
11
|
-
<img src="https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB" />
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<h3 align="center">Peercore UI Components Library</h3>
|
|
15
|
-
|
|
16
|
-
<div align="center">
|
|
17
|
-
A reusable, customizable, and lightweight React component library built with simplicity and productivity in mind.
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## 📦 Introduction
|
|
24
|
-
|
|
25
|
-
`peercore-ui-library` is a simple and flexible React component library including modals, currency inputs, toggles, and more, with built-in Storybook for documentation and local development.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## ⚙️ Tech Stack
|
|
30
|
-
|
|
31
|
-
- React 18+
|
|
32
|
-
- Bootstrap 5
|
|
33
|
-
- Storybook
|
|
34
|
-
- JavaScript (ES6+)
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## 🔋 Components
|
|
39
|
-
|
|
40
|
-
✅ `AccordionItem`
|
|
41
|
-
✅ `Accordion.stories`
|
|
42
|
-
✅ `iconMap`
|
|
43
|
-
✅ `Layout.stories`
|
|
44
|
-
✅ `PCAccordionWrapper`
|
|
45
|
-
✅ `PCBadgeWithClose`
|
|
46
|
-
✅ `PCBadgeWithClose.stories`
|
|
47
|
-
✅ `PCButton`
|
|
48
|
-
✅ `PCButton.stories`
|
|
49
|
-
✅ `PCDateRangePicker`
|
|
50
|
-
✅ `PCFilteredTable`
|
|
51
|
-
✅ `PCFilteredTable.stories`
|
|
52
|
-
✅ `PCIcon`
|
|
53
|
-
✅ `PCIcon.stories`
|
|
54
|
-
✅ `PCInput`
|
|
55
|
-
✅ `PCInput.stories`
|
|
56
|
-
✅ `PCInputCurrency`
|
|
57
|
-
✅ `PCInputCurrency.stories`
|
|
58
|
-
✅ `PCLoading`
|
|
59
|
-
✅ `PCLoading.stories`
|
|
60
|
-
✅ `PCModal`
|
|
61
|
-
✅ `PCModal.stories`
|
|
62
|
-
✅ `PCMultiSelectDropdown`
|
|
63
|
-
✅ `PCMultiSelectDropdown.stories`
|
|
64
|
-
✅ `PCRadio`
|
|
65
|
-
✅ `PCRadio.stories`
|
|
66
|
-
✅ `PCSelectDropdown`
|
|
67
|
-
✅ `PCSelectDropdown.stories`
|
|
68
|
-
✅ `PCTable`
|
|
69
|
-
✅ `PCTable.stories`
|
|
70
|
-
✅ `PCTextarea`
|
|
71
|
-
✅ `PCTextarea.stories`
|
|
72
|
-
✅ `PCToggle`
|
|
73
|
-
✅ `PCToggle.stories`
|
|
74
|
-
✅ `PCTooltip`
|
|
75
|
-
✅ `Tooltip.stories`
|
|
76
|
-
... and more coming soon!
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## 🤸 Quick Start
|
|
81
|
-
|
|
82
|
-
Install the package:
|
|
83
|
-
|
|
84
|
-
```bash
|
|
85
|
-
npm install peercore-ui-library
|
|
86
|
-
# or
|
|
87
|
-
yarn add peercore-ui-library
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Use a component:
|
|
91
|
-
|
|
92
|
-
```jsx
|
|
93
|
-
import { PCModal } from "peercore-ui-library";
|
|
94
|
-
|
|
95
|
-
<PCModal title="Sample Modal" onClose={() => setShow(false)}>
|
|
96
|
-
Hello from the modal!
|
|
97
|
-
</PCModal>;
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## 📚 Storybook
|
|
103
|
-
|
|
104
|
-
To explore components visually:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm run storybook
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
npm version patch
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
npm run build
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
npm publish
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## 📄 License
|
|
125
|
-
|
|
126
|
-
MIT © [Peercore Software Solutions](https://www.peercore.com.au/)
|
|
1
|
+
<div align="center">
|
|
2
|
+
<br />
|
|
3
|
+
<img src="src/stories/assets/git-bg-img.png" alt="PC UI Components Banner">
|
|
4
|
+
<br />
|
|
5
|
+
|
|
6
|
+
<div>
|
|
7
|
+
<img src="https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white" />
|
|
8
|
+
<img src="https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E" />
|
|
9
|
+
<img src="https://img.shields.io/badge/NPM-%23CB3837.svg?style=for-the-badge&logo=npm&logoColor=white" />
|
|
10
|
+
<img src="https://img.shields.io/badge/Next-black?style=for-the-badge&logo=next.js&logoColor=white" />
|
|
11
|
+
<img src="https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB" />
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<h3 align="center">Peercore UI Components Library</h3>
|
|
15
|
+
|
|
16
|
+
<div align="center">
|
|
17
|
+
A reusable, customizable, and lightweight React component library built with simplicity and productivity in mind.
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 📦 Introduction
|
|
24
|
+
|
|
25
|
+
`peercore-ui-library` is a simple and flexible React component library including modals, currency inputs, toggles, and more, with built-in Storybook for documentation and local development.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## ⚙️ Tech Stack
|
|
30
|
+
|
|
31
|
+
- React 18+
|
|
32
|
+
- Bootstrap 5
|
|
33
|
+
- Storybook
|
|
34
|
+
- JavaScript (ES6+)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 🔋 Components
|
|
39
|
+
|
|
40
|
+
✅ `AccordionItem`
|
|
41
|
+
✅ `Accordion.stories`
|
|
42
|
+
✅ `iconMap`
|
|
43
|
+
✅ `Layout.stories`
|
|
44
|
+
✅ `PCAccordionWrapper`
|
|
45
|
+
✅ `PCBadgeWithClose`
|
|
46
|
+
✅ `PCBadgeWithClose.stories`
|
|
47
|
+
✅ `PCButton`
|
|
48
|
+
✅ `PCButton.stories`
|
|
49
|
+
✅ `PCDateRangePicker`
|
|
50
|
+
✅ `PCFilteredTable`
|
|
51
|
+
✅ `PCFilteredTable.stories`
|
|
52
|
+
✅ `PCIcon`
|
|
53
|
+
✅ `PCIcon.stories`
|
|
54
|
+
✅ `PCInput`
|
|
55
|
+
✅ `PCInput.stories`
|
|
56
|
+
✅ `PCInputCurrency`
|
|
57
|
+
✅ `PCInputCurrency.stories`
|
|
58
|
+
✅ `PCLoading`
|
|
59
|
+
✅ `PCLoading.stories`
|
|
60
|
+
✅ `PCModal`
|
|
61
|
+
✅ `PCModal.stories`
|
|
62
|
+
✅ `PCMultiSelectDropdown`
|
|
63
|
+
✅ `PCMultiSelectDropdown.stories`
|
|
64
|
+
✅ `PCRadio`
|
|
65
|
+
✅ `PCRadio.stories`
|
|
66
|
+
✅ `PCSelectDropdown`
|
|
67
|
+
✅ `PCSelectDropdown.stories`
|
|
68
|
+
✅ `PCTable`
|
|
69
|
+
✅ `PCTable.stories`
|
|
70
|
+
✅ `PCTextarea`
|
|
71
|
+
✅ `PCTextarea.stories`
|
|
72
|
+
✅ `PCToggle`
|
|
73
|
+
✅ `PCToggle.stories`
|
|
74
|
+
✅ `PCTooltip`
|
|
75
|
+
✅ `Tooltip.stories`
|
|
76
|
+
... and more coming soon!
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 🤸 Quick Start
|
|
81
|
+
|
|
82
|
+
Install the package:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npm install peercore-ui-library
|
|
86
|
+
# or
|
|
87
|
+
yarn add peercore-ui-library
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Use a component:
|
|
91
|
+
|
|
92
|
+
```jsx
|
|
93
|
+
import { PCModal } from "peercore-ui-library";
|
|
94
|
+
|
|
95
|
+
<PCModal title="Sample Modal" onClose={() => setShow(false)}>
|
|
96
|
+
Hello from the modal!
|
|
97
|
+
</PCModal>;
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## 📚 Storybook
|
|
103
|
+
|
|
104
|
+
To explore components visually:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm run storybook
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npm version patch
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm run build
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm publish
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## 📄 License
|
|
125
|
+
|
|
126
|
+
MIT © [Peercore Software Solutions](https://www.peercore.com.au/)
|