@bitrise/bitkit 9.36.0-alpha-avatar.1 → 9.36.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 +12 -27
- package/package.json +1 -1
- package/src/Components/Dialog/Dialog.tsx +1 -0
- package/src/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @bitrise/bitkit
|
|
2
2
|
|
|
3
3
|
Library for React UI components and design patterns.
|
|
4
|
+
|
|
5
|
+
Based on [Chakra UI](https://chakra-ui.com/).
|
|
4
6
|
___
|
|
5
7
|
|
|
6
8
|
|
|
@@ -14,46 +16,29 @@ yarn install
|
|
|
14
16
|
|
|
15
17
|
### Technology
|
|
16
18
|
|
|
19
|
+
- [Chakra UI](https://chakra-ui.com/)
|
|
17
20
|
- [Typescript](https://www.typescriptlang.org/)
|
|
18
|
-
- [
|
|
19
|
-
- [React](https://reactjs.org/) (with [React Router](https://reacttraining.com/react-router/) for routing links)
|
|
20
|
-
- [PostCSS](https://postcss.org/) (with [postcss-preset-env](https://preset-env.cssdb.org/) for a little power)
|
|
21
|
+
- [React](https://reactjs.org/)
|
|
21
22
|
- [Jest](https://jestjs.io/) (for unit testing)
|
|
22
23
|
|
|
23
|
-
### Managing icons
|
|
24
|
-
|
|
25
|
-
If you would like to add a new or edit an existing icon:
|
|
26
|
-
1. Export the icon from [Figma](https://www.figma.com/file/grik9mTaJ5DfhydhWhXdP5/Bitkit-Foundations?node-id=213%3A82) as an SVG. Make sure that the exported file has the following viewBox: `0 0 24 24`, otherwise the icon can make smaller or bigger compared to the existing ones.
|
|
27
|
-
2. Rename the file using this convention: `icons-{iconName}.svg` (eg.: `icons-crown.svg`)
|
|
28
|
-
3. Add the file under the `./src/components/Icon/svg` folder.
|
|
29
|
-
4. If you are not running `yarn start`, run the `yarn build:icons` script to generate the React component from the SVG. You should commit both the `.svg` and the generated `.tsx` files.
|
|
30
|
-
5. Make sure to check the new/update icon on the Icons page.
|
|
31
24
|
### Scripts
|
|
32
25
|
|
|
33
|
-
#### `$ yarn
|
|
34
|
-
|
|
35
|
-
Builds the library and styleguide assets
|
|
26
|
+
#### `$ yarn storybook`
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
Runs Storybook server
|
|
38
29
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
#### `$ yarn clean`
|
|
30
|
+
#### `$ yarn start`
|
|
42
31
|
|
|
43
|
-
|
|
32
|
+
Runs `yarn storybook`
|
|
44
33
|
|
|
45
34
|
#### `$ yarn lint`
|
|
46
35
|
|
|
47
36
|
Runs Javascript linting
|
|
48
37
|
|
|
49
|
-
#### `$ yarn serve`
|
|
50
|
-
|
|
51
|
-
Serves up the static files built for the style guide
|
|
52
|
-
|
|
53
|
-
#### `$ yarn start`
|
|
54
|
-
|
|
55
|
-
Runs the developlement server for the style guide
|
|
56
|
-
|
|
57
38
|
#### `$ yarn test`
|
|
58
39
|
|
|
59
40
|
Runs the unit tests for the library components
|
|
41
|
+
|
|
42
|
+
### Contributing
|
|
43
|
+
|
|
44
|
+
Check [CONTRIBUTING.md](CONTRIBUTING.md)
|
package/package.json
CHANGED
|
@@ -42,6 +42,7 @@ const Dialog = ({ children, dataTestid, scrollBehavior, state, size, title, ...r
|
|
|
42
42
|
onClose={state.onClose}
|
|
43
43
|
scrollBehavior={scrollBehavior}
|
|
44
44
|
size={dialogSize}
|
|
45
|
+
trapFocus={!process.env.IS_STORYBOOK}
|
|
45
46
|
>
|
|
46
47
|
<ModalOverlay />
|
|
47
48
|
<ModalContent data-testid={dataTestid} {...rest}>
|