mainstack-design-system 0.5.2 → 0.5.4
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 +40 -26
- package/build/mainstack-design-system.js +756 -721
- package/build/src/components/cards/MultipurposeCard.d.ts +16 -0
- package/build/src/components/cards/SimpleCard.d.ts +11 -0
- package/build/src/components/index.d.ts +1 -1
- package/build/src/components/notifications/Snackbar.d.ts +2 -2
- package/build/src/components/notifications/Tag.d.ts +9 -0
- package/build/src/icons/Book5FilledIcon.d.ts +4 -0
- package/build/src/icons/PaidFilledIcon.d.ts +4 -0
- package/build/src/icons/index.d.ts +2 -0
- package/build/src/stories/Tiles/Tile.stories.d.ts +1 -0
- package/build/src/stories/cards/MultipurposeCard.stories.d.ts +9 -0
- package/build/src/stories/cards/SimpleCard.stories.d.ts +8 -0
- package/build/src/stories/icons/index.d.ts +2 -0
- package/build/src/stories/notifications/{TagsUpdate.stories.d.ts → Tag.stories.d.ts} +2 -2
- package/package.json +1 -1
- package/build/src/components/notifications/TagsUpdate.d.ts +0 -9
package/README.md
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<!--@@joggrdoc@@-->
|
|
2
|
+
<!-- @joggr:version(v2):end -->
|
|
3
|
+
<!-- @joggr:warning:start -->
|
|
4
|
+
<!--
|
|
5
|
+
_ _ _ __ __ _ ____ _ _ ___ _ _ ____ _ _ _
|
|
6
|
+
| | | | | | \ \ / / / \ | _ \ | \ | | |_ _| | \ | | / ___| | | | | | |
|
|
7
|
+
| | | | | | \ \ /\ / / / _ \ | |_) | | \| | | | | \| | | | _ | | | | | |
|
|
8
|
+
|_| |_| |_| \ V V / / ___ \ | _ < | |\ | | | | |\ | | |_| | |_| |_| |_|
|
|
9
|
+
(_) (_) (_) \_/\_/ /_/ \_\ |_| \_\ |_| \_| |___| |_| \_| \____| (_) (_) (_)
|
|
10
|
+
|
|
11
|
+
This document is managed by Joggr. Editing this document could break Joggr's core features, i.e. our
|
|
12
|
+
ability to auto-maintain this document. Please use the Joggr editor to edit this document
|
|
13
|
+
(link at bottom of the page).
|
|
14
|
+
-->
|
|
15
|
+
<!-- @joggr:warning:end -->
|
|
7
16
|
## Storybook Documentation
|
|
8
17
|
|
|
9
18
|
To view the design system documentation, visit this [link](https://mainstack-design-system.vercel.app/).
|
|
@@ -16,15 +25,14 @@ Install the design system
|
|
|
16
25
|
|
|
17
26
|
Add the Design system provider to your root file
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
```typescript
|
|
29
|
+
import { MainstackProvider } from "mainstack-design-system";
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
<MainstackProvider>
|
|
32
|
+
<App/>
|
|
24
33
|
</MainstackProvider>
|
|
25
34
|
```
|
|
26
35
|
|
|
27
|
-
|
|
28
36
|
## Components
|
|
29
37
|
|
|
30
38
|
Components can be used by importing from the `'mainstack-design-system` directory. For example:
|
|
@@ -41,7 +49,7 @@ Icons are imported from the `'mainstack-design-system` directory. For example:
|
|
|
41
49
|
|
|
42
50
|
Colors are imported from the `mainstack-design-system` directory. For example:
|
|
43
51
|
|
|
44
|
-
```
|
|
52
|
+
```typescript
|
|
45
53
|
import {Colors} from "mainstack-design-system";
|
|
46
54
|
|
|
47
55
|
<Text color={Colors.black300}>Hello World</Text>
|
|
@@ -51,45 +59,51 @@ Colors are imported from the `mainstack-design-system` directory. For example:
|
|
|
51
59
|
|
|
52
60
|
Installing the application (as a developer) is simple in the following steps:
|
|
53
61
|
|
|
54
|
-
|
|
62
|
+
* Access and Clone this repository
|
|
55
63
|
|
|
56
|
-
```
|
|
64
|
+
```shell
|
|
57
65
|
git clone git clone https://github.com/The-Mainstack/mainstack-design-system.git && cd [repo-name]
|
|
58
66
|
```
|
|
59
67
|
|
|
60
|
-
|
|
68
|
+
* Make your forked repo the remote upstream (at origin)
|
|
61
69
|
|
|
62
|
-
```
|
|
63
|
-
|
|
70
|
+
```shell
|
|
71
|
+
git remote add origin https://github.com/The-Mainstack/mainstack-design-system.git
|
|
64
72
|
```
|
|
65
73
|
|
|
66
|
-
|
|
74
|
+
* Navigate into the cloned directory and install dependencies with Yarn
|
|
67
75
|
|
|
68
|
-
```
|
|
76
|
+
```typescript
|
|
69
77
|
yarn add
|
|
70
78
|
```
|
|
71
79
|
|
|
72
|
-
|
|
80
|
+
* Make a duplicate of the **env** file and update its content accordingly. Most times, this is just fine with no update.
|
|
73
81
|
|
|
74
|
-
```
|
|
82
|
+
```shell
|
|
75
83
|
cp .env.sample .env
|
|
76
84
|
```
|
|
77
85
|
|
|
78
|
-
|
|
79
|
-
Open [http://localhost:[port]](http://localhost:[port]) to view it in the browser and start developing.
|
|
86
|
+
* Run the app in the development mode. Open [http://localhost:\[port\]](http://localhost:%5Bport%5D) to view it in the browser and start developing.
|
|
80
87
|
|
|
81
|
-
```
|
|
88
|
+
```typescript
|
|
82
89
|
yarn dev
|
|
83
90
|
```
|
|
84
91
|
|
|
85
92
|
To run storybook, run the following command:
|
|
86
93
|
|
|
87
|
-
```
|
|
94
|
+
```typescript
|
|
88
95
|
yarn storybook
|
|
89
96
|
```
|
|
90
97
|
|
|
91
98
|
To Publish to NPM, run the following command:
|
|
92
99
|
|
|
93
|
-
```
|
|
100
|
+
```typescript
|
|
94
101
|
npm publish --access public
|
|
95
102
|
```
|
|
103
|
+
|
|
104
|
+
<!-- @joggr:editLink(b428f959-2d9d-45aa-8134-1d4f284d1469):start -->
|
|
105
|
+
---
|
|
106
|
+
<a href="https://app.joggr.io/app/documents/b428f959-2d9d-45aa-8134-1d4f284d1469/edit">
|
|
107
|
+
<img src="https://cdn.joggr.io/assets/static/badges/joggr-document-edit.svg?did=b428f959-2d9d-45aa-8134-1d4f284d1469" alt="Edit doc on Joggr" />
|
|
108
|
+
</a>
|
|
109
|
+
<!-- @joggr:editLink(b428f959-2d9d-45aa-8134-1d4f284d1469):end -->
|