reactive-bulma 1.4.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Reactive bulma ![Reactive bulma version](https://img.shields.io/github/package-json/v/nicolasomar/reactive-bulma?color=success&label=%20&style=flat-square)
1
+ # Reactive bulma ![reactive-bulma version](https://img.shields.io/github/package-json/v/nicolasomar/reactive-bulma?label=npm&logo=npm&labelColor=535353&color=success&style=flat-square) ![reactive-bulma Coverage](https://img.shields.io/codecov/c/github/nicolasomar/reactive-bulma?label=coverage&labelColor=535353&logo=codecov&style=flat-square) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma)
2
2
  Component library based on React, typescript and bulma
3
3
 
4
4
  ## What do I need?
@@ -14,19 +14,38 @@ npm install
14
14
  ```
15
15
 
16
16
  ## How to run it
17
- To run it's storybook (until `v1.1.0`, it will have an example button only)
17
+ To initiate on `Storybook mode` (see alternatives and interact with any component)
18
18
  ```sh
19
19
  npm start
20
20
  ```
21
- To rebuild the project with your changes
21
+ To compile the project with your changes
22
22
  ```sh
23
23
  npm run build
24
24
  ```
25
25
 
26
+ ## Folder structure
27
+ Once you have cloned the repo, it will show you the following folders:
28
+ - `.github:` [Github Actions](https://github.com/features/actions/) files used to run post-merge.commits like unit test coverage collection.
29
+ - `.husky:` Dedicated to [Husky](https://typicode.github.io/husky/) git-hook files.
30
+ - `.storybook:` Dedicated to [Storybook](https://storybook.js.org/) configuration.
31
+ - `src:`
32
+ - `components:` Location of all used components, using [Atomic Design hierarchy structure](https://atomicdesign.bradfrost.com/chapter-2/) (`atoms` -> `molecules` -> `organisms`).
33
+
34
+ ## Versioning
35
+ After intestigating [semantic-release documentation](https://semantic-release.gitbook.io/semantic-release/) (reffer to [#3](https://github.com/NicolasOmar/reactive-bulma/issues/3)) and having a problematic implementation, I decided to change version meaning for this project with the following:
36
+ - Major versions (`1.0.0`, `2.0.0` and beyond) will reffer to milestones/version achievement.
37
+ - Minor versions (`1.1.0`, `1.2.0` and so on) will reffer to branch/story completition.
38
+ - Patch versions (`1.0.1`, `1.0.2` and so on) will reffer to bugfixes only.
39
+
40
+ To know more about actual roadmap, please go to section `Find out more` -> `Roadmap`.
41
+
42
+ ## Branches and Environments
43
+ I will maintain only one deployable site based on [Storybook](https://storybook.js.org/) with automated [Netlify](https://netlify.com/) deployments with each push to `main` branch. The mentioned site is on section `Find out more` -> `Storybook site`.
44
+
26
45
  ## Find out more
27
- | [Project Status](https://github.com/users/NicolasOmar/projects/3) | [Storybook site](https://my-pets-storybook.netlify.app/) | [Npm Package](https://www.npmjs.com/package/reactive-bulma)
28
- | :--- | :--- | :--- |
29
- | Project board for project status tracking | Site dedicated to show and test all the created components | Public package site in npm
46
+ | [Roadmap](https://docs.google.com/document/d/1kWX-dDTD-cQUeB_Vbu0K6xRvtHaSA38h76yQnhiCe9U) | [Project Status](https://github.com/users/NicolasOmar/projects/3) | [Storybook site](https://my-pets-storybook.netlify.app/) | [Npm Package](https://www.npmjs.com/package/reactive-bulma)
47
+ | :--- | :--- | :--- | :--- |
48
+ | Document with entire list of stories, splitted by versions | Project board for project status tracking | Site dedicated to show and test all the created components | Public package site in npm
30
49
 
31
50
  ## License
32
51
  **MIT**
package/dist/cjs/index.js CHANGED
@@ -2840,7 +2840,15 @@ function requireReact_development () {
2840
2840
 
2841
2841
  var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2842
2842
 
2843
- const Button = ({ text = '' }) => (React.createElement("button", { className: 'button' }, text));
2843
+ const Button = ({ text = '' }) => (React.createElement("button", { "data-testid": 'test-button', className: 'button' }, text));
2844
+
2845
+ const Column = ({ size = null, offset = null, isNarrow = false, children = null }) => {
2846
+ const classes = ['column', size, offset, isNarrow ? 'is-narrow' : null]
2847
+ .filter(_class => _class)
2848
+ .join(' ');
2849
+ return (React.createElement("section", { "data-testid": 'test-column', className: classes }, children));
2850
+ };
2844
2851
 
2845
2852
  exports.Button = Button;
2853
+ exports.Column = Column;
2846
2854
  //# sourceMappingURL=index.js.map