reactive-bulma 1.7.0 → 1.9.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 +7 -5
- package/dist/cjs/index.js +8 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Block/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/ProgressBar/index.d.ts +4 -0
- package/dist/cjs/types/components/atoms/index.d.ts +1 -0
- package/dist/cjs/types/interfaces/atomProps.d.ts +15 -4
- package/dist/esm/index.js +8 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Block/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/ProgressBar/index.d.ts +4 -0
- package/dist/esm/types/components/atoms/index.d.ts +1 -0
- package/dist/esm/types/interfaces/atomProps.d.ts +15 -4
- package/dist/index.d.ts +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
# Reactive bulma 
|
2
|
+
|
3
|
+
##  [](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma) [](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma) [](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma) [](https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma)
|
4
|
+
Component library based on React, Typescript, Bulma and Rollup
|
3
5
|
|
4
6
|
## What do I need?
|
5
7
|
Before cloning this repo, I recommend installing the following software:
|
@@ -26,8 +28,8 @@ npm run build
|
|
26
28
|
## Folder structure
|
27
29
|
Once you have cloned the repo, it will show you the following folders:
|
28
30
|
- `.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/)
|
30
|
-
- `.storybook:` Dedicated to [Storybook](https://storybook.js.org/) configuration.
|
31
|
+
- `.husky:` Dedicated to [Husky](https://typicode.github.io/husky/) configuration files.
|
32
|
+
- `.storybook:` Dedicated to [Storybook](https://storybook.js.org/) configuration files.
|
31
33
|
- `src:`
|
32
34
|
- `components:` Location of all used components, using [Atomic Design hierarchy structure](https://atomicdesign.bradfrost.com/chapter-2/) (`atoms` -> `molecules` -> `organisms`).
|
33
35
|
|
@@ -43,7 +45,7 @@ To know more about actual roadmap, please go to section `Find out more` -> `Road
|
|
43
45
|
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
46
|
|
45
47
|
## Find out more
|
46
|
-
| [Roadmap](https://docs.google.com/document/d/1kWX-dDTD-cQUeB_Vbu0K6xRvtHaSA38h76yQnhiCe9U) | [Project Status](https://github.com/users/NicolasOmar/projects/3) | [Storybook site](https://
|
48
|
+
| [Roadmap](https://docs.google.com/document/d/1kWX-dDTD-cQUeB_Vbu0K6xRvtHaSA38h76yQnhiCe9U) | [Project Status](https://github.com/users/NicolasOmar/projects/3) | [Storybook site](https://reactivebulma.netlify.app/) | [Npm Package](https://www.npmjs.com/package/reactive-bulma)
|
47
49
|
| :--- | :--- | :--- | :--- |
|
48
50
|
| 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
|
49
51
|
|
package/dist/cjs/index.js
CHANGED
@@ -2842,7 +2842,7 @@ var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
|
2842
2842
|
|
2843
2843
|
const parseClasses = (_classes) => _classes.filter(_class => _class).join(' ');
|
2844
2844
|
|
2845
|
-
const Button = ({ text = null, type = 'button', style = null, color = 'is-
|
2845
|
+
const Button = ({ text = null, type = 'button', style = null, color = 'is-primary', isLightColor = false, isInvertedColor = false, isOutlined = false, isRounded = false, isLoading = false, isDisabled = false, isStatic = false, size = null, onClick = null }) => {
|
2846
2846
|
const buttonClasses = parseClasses([
|
2847
2847
|
'button',
|
2848
2848
|
color,
|
@@ -2867,6 +2867,13 @@ const Column = ({ size = null, offset = null, isNarrow = false, children = null
|
|
2867
2867
|
return (React.createElement("section", { "data-testid": 'test-column', className: classes }, children));
|
2868
2868
|
};
|
2869
2869
|
|
2870
|
+
const ProgressBar = ({ value = 0, max = 100, style = null, color = 'is-primary', size = null, isLoading = false }) => {
|
2871
|
+
const progressClasses = parseClasses(['progress', color, size]);
|
2872
|
+
const fixedValue = value > max || value < 0 ? 0 : value;
|
2873
|
+
return (React.createElement("progress", { "data-testid": 'test-progress-bar', className: progressClasses, style: style !== null && style !== void 0 ? style : undefined, value: isLoading ? undefined : value, max: max }, `${isLoading ? 0 : fixedValue}%`));
|
2874
|
+
};
|
2875
|
+
|
2870
2876
|
exports.Button = Button;
|
2871
2877
|
exports.Column = Column;
|
2878
|
+
exports.ProgressBar = ProgressBar;
|
2872
2879
|
//# sourceMappingURL=index.js.map
|