mainstack-design-system 0.0.4 → 0.0.5

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 CHANGED
@@ -12,29 +12,26 @@ To view the design system documentation, visit this [link](https://mainstack-des
12
12
 
13
13
  ## Components
14
14
 
15
- Components can be used by importing from the `src/components` directory. For example:
15
+ Components can be used by importing from the `'mainstack-design-system/src` directory. For example:
16
16
 
17
- `import { Button } from 'mainstack-design-system/src/components/Buttons';`
17
+ `import { Button } from 'mainstack-design-system/src';`
18
18
 
19
19
  ## Icons
20
20
 
21
- Icons are imported from the `src/icons` directory. For example:
21
+ Icons are imported from the `'mainstack-design-system/src` directory. For example:
22
22
 
23
- `import { ArrowRight } from 'mainstack-design-system/src/icons';`
23
+ `import { ArrowRightIcon } from 'mainstack-design-system/src';`
24
24
 
25
25
  ## Colors
26
26
 
27
- Colors are imported from the `mainstack-design-system/src/components/styleGuide` directory. For example:
27
+ Colors are imported from the `mainstack-design-system/src` directory. For example:
28
28
 
29
29
  ```
30
- import Colors from "mainstack-design-system/components/styleGuide/Colors";
30
+ import {Colors} from "mainstack-design-system/src";
31
31
 
32
- <Text color={Colors.black300}>Hello World</Text>
32
+ <Text color={Colors.black300}>Hello World</Text>
33
33
  ```
34
34
 
35
- Conventional Commits is a specification for adding human and machine readable meaning to commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with [SemVer](https://semver.org), by describing the features, fixes, and breaking changes made in commit messages.
36
- [more info](https://www.conventionalcommits.org/en/v1.0.0/)
37
-
38
35
  ## Contributing
39
36
 
40
37
  Installing the application (as a developer) is simple in the following steps:
@@ -54,7 +51,7 @@ git clone git clone https://github.com/The-Mainstack/mainstack-design-system.git
54
51
  - Navigate into the cloned directory and install dependencies with Yarn
55
52
 
56
53
  ```yarn
57
- yarn install
54
+ yarn add
58
55
  ```
59
56
 
60
57
  - Make a duplicate of the **env** file and update its content accordingly. Most times, this is just fine with no update.
@@ -67,7 +64,7 @@ cp .env.sample .env
67
64
  Open [http://localhost:[port]](http://localhost:[port]) to view it in the browser and start developing.
68
65
 
69
66
  ```yarn
70
- yarn run dev
67
+ yarn dev
71
68
  ```
72
69
 
73
70
  To run storybook, run the following command:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -1,7 +1,7 @@
1
1
  /** @format */
2
2
 
3
3
  import { Box, Text } from "@chakra-ui/react";
4
- import { Button, MarkdownEditor } from "components";
4
+ import { Button, MarkdownEditor, Colors } from "components";
5
5
  import CountrySelectWrapper from "stories/InputFields/Select/CountrySelectWrapper";
6
6
  import PhoneNumberInputWrapper from "stories/InputFields/Select/PhoneNumberInputWrapper";
7
7
  import SelectWrapper from "stories/InputFields/Select/SelectWrapper";
@@ -1,7 +1,7 @@
1
1
  /** @format */
2
2
 
3
3
  import type { Meta, StoryObj } from "@storybook/react";
4
- import { MarkdownEditor as MarkdownEditorComponent } from "components/InputFields/MarkdownEditor";
4
+ import { MarkdownEditor as MarkdownEditorComponent } from "components";
5
5
  import TextArea from "components/InputFields/TextArea";
6
6
 
7
7
  const meta: Meta<typeof MarkdownEditorComponent> = {