reactive-bulma 1.10.3 → 1.11.1
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 +49 -41
- package/dist/cjs/index.js +14 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/atoms/Image/index.d.ts +4 -0
- package/dist/cjs/types/functions/parsers.d.ts +1 -3
- package/dist/cjs/types/interfaces/atomProps.d.ts +6 -1
- package/dist/cjs/types/types/styleTypes.d.ts +1 -0
- package/dist/esm/index.js +14 -25
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/atoms/Image/index.d.ts +4 -0
- package/dist/esm/types/functions/parsers.d.ts +1 -3
- package/dist/esm/types/interfaces/atomProps.d.ts +6 -1
- package/dist/esm/types/types/styleTypes.d.ts +1 -0
- package/package.json +23 -20
package/README.md
CHANGED
@@ -29,19 +29,20 @@ Component library based on React, Bulma, Typescript and Rollup
|
|
29
29
|
|
30
30
|
## Status
|
31
31
|
|
32
|
-
![
|
33
|
-
![
|
34
|
-
![
|
35
|
-
[![
|
36
|
-
![
|
37
|
-
[![
|
38
|
-
[![
|
39
|
-
[![
|
40
|
-
[![
|
41
|
-
![
|
42
|
-
![
|
43
|
-
![
|
44
|
-
|
32
|
+
![Npm Version][badge-npm-version]
|
33
|
+
![Npm Bundle Size][badge-npm-size]
|
34
|
+
![Npm Downloads][badge-npm-downloads]
|
35
|
+
[![Netlify Status][badge-netlify-status]][link-netlify-status]
|
36
|
+
[![Code Coverage][badge-code-coverage]][link-code-coverage]
|
37
|
+
[![Quality Gate Status][badge-soundcloud-quality]][link-soundcloud-status]
|
38
|
+
[![Maintainability Rating][badge-soundcloud-maintanibility]][link-soundcloud-status]
|
39
|
+
[![Security Rating][badge-soundcloud-security]][link-soundcloud-status]
|
40
|
+
[![Technical Debt][badge-soundcloud-tech-debt]][link-soundcloud-status]
|
41
|
+
[![Known Vulnerabilities][badge-snyk-status]][link-snyk-status]
|
42
|
+
![GitHub Repo stars][badge-github-repo-stars]
|
43
|
+
![GitHub commit activity][badge-github-commits]
|
44
|
+
![GitHub last commit][badge-github-last-commit]
|
45
|
+
[![Semantic Commits][badge-semantic-commits]][link-semantic-commits]
|
45
46
|
|
46
47
|
[badge-npm-version]: https://img.shields.io/github/package-json/v/nicolasomar/reactive-bulma?label=npm%20version&logo=npm&labelColor=535353&color=success&style=flat
|
47
48
|
[badge-npm-size]: https://img.shields.io/bundlephobia/min/reactive-bulma?label=bundle%20size&labelColor=535353&logo=npm&style=flat
|
@@ -49,11 +50,14 @@ Component library based on React, Bulma, Typescript and Rollup
|
|
49
50
|
[badge-netlify-status]: https://api.netlify.com/api/v1/badges/3101f2b5-0e28-4734-b749-ebb0e3e413c6/deploy-status
|
50
51
|
[link-netlify-status]: https://app.netlify.com/sites/reactivebulma/deploys
|
51
52
|
[badge-code-coverage]: https://img.shields.io/codecov/c/github/nicolasomar/reactive-bulma?label=coverage&labelColor=535353&logo=codecov&style=flat
|
53
|
+
[link-code-coverage]: https://app.codecov.io/gh/NicolasOmar/reactive-bulma
|
52
54
|
[badge-soundcloud-quality]: https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=alert_status
|
53
55
|
[badge-soundcloud-maintanibility]: https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=sqale_rating
|
54
56
|
[badge-soundcloud-security]: https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=security_rating
|
55
57
|
[badge-soundcloud-tech-debt]: https://sonarcloud.io/api/project_badges/measure?project=NicolasOmar_reactive-bulma&metric=sqale_index
|
56
58
|
[link-soundcloud-status]: https://sonarcloud.io/summary/new_code?id=NicolasOmar_reactive-bulma
|
59
|
+
[badge-snyk-status]: https://img.shields.io/snyk/vulnerabilities/github/nicolasomar/reactive-bulma?logo=snyk
|
60
|
+
[link-snyk-status]: https://snyk.io/test/github/nicolasomar/reactive-bulma
|
57
61
|
[badge-github-repo-stars]: https://img.shields.io/github/stars/nicolasomar/reactive-bulma?label=stars&logo=github&labelColor=535353&style=flat
|
58
62
|
[badge-github-commits]: https://img.shields.io/github/commit-activity/m/nicolasomar/reactive-bulma?logo=github
|
59
63
|
[badge-github-last-commit]: https://img.shields.io/github/last-commit/nicolasomar/reactive-bulma?logo=github
|
@@ -62,27 +66,31 @@ Component library based on React, Bulma, Typescript and Rollup
|
|
62
66
|
|
63
67
|
## Dependencies
|
64
68
|
|
65
|
-
![
|
66
|
-
![
|
67
|
-
![
|
68
|
-
![
|
69
|
-
![
|
70
|
-
![
|
71
|
-
![
|
72
|
-
![
|
73
|
-
![
|
74
|
-
![
|
69
|
+
![react dependency][badge-dependency-react]
|
70
|
+
![bulma dependency][badge-dependency-bulma]
|
71
|
+
![typescript dependency][badge-dependency-typescript]
|
72
|
+
![rollup dependency][badge-dependency-rollup]
|
73
|
+
![storybook dependency][badge-dependency-storybook]
|
74
|
+
![semantic-release dependency][badge-dependency-semantic-release]
|
75
|
+
![babel dependency][badge-dependency-babel]
|
76
|
+
![jest dependency][badge-dependency-jest]
|
77
|
+
![react testing library dependency][badge-dependency-react-testing]
|
78
|
+
![prettier dependency][badge-dependency-prettier]
|
79
|
+
![eslint dependency][badge-dependency-eslint]
|
80
|
+
![husky dependency][badge-dependency-husky]
|
75
81
|
|
76
82
|
[badge-dependency-react]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/react/main?logo=react
|
77
83
|
[badge-dependency-bulma]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/bulma/main?logo=bulma
|
78
84
|
[badge-dependency-typescript]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/typescript/main?logo=typescript
|
79
85
|
[badge-dependency-rollup]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/rollup/main?logo=rollup.js
|
86
|
+
[badge-dependency-storybook]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/@storybook/react/main?logo=storybook
|
80
87
|
[badge-dependency-semantic-release]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/semantic-release/main?logo=semantic-release
|
88
|
+
[badge-dependency-babel]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/@babel/core/main?logo=babel
|
81
89
|
[badge-dependency-jest]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/jest/main?logo=jest
|
90
|
+
[badge-dependency-react-testing]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/@testing-library/react/main?logo=testing-library
|
82
91
|
[badge-dependency-prettier]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/prettier/main?logo=prettier
|
83
92
|
[badge-dependency-eslint]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/eslint/main?logo=eslint
|
84
93
|
[badge-dependency-husky]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/husky/main?logo=husky
|
85
|
-
[badge-dependency-babel]: https://img.shields.io/github/package-json/dependency-version/nicolasomar/reactive-bulma/dev/@babel/core/main?logo=babel
|
86
94
|
|
87
95
|
## Quick start
|
88
96
|
|
@@ -143,23 +151,23 @@ Having in mind the [versioning section](#versioning), repo's status in a glance
|
|
143
151
|
|
144
152
|
| Version | Progress | Open issues | Closed issues
|
145
153
|
| :---: | :---: | :---: | :---: |
|
146
|
-
| `v1.0.0` | ![
|
147
|
-
| `v2.0.0` | ![
|
148
|
-
| `v3.0.0` | ![
|
149
|
-
| `v4.0.0` | ![
|
150
|
-
|
151
|
-
[badge-progress-100]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/1?label=%20&style=flat
|
152
|
-
[badge-issues-open-100]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/1?label=%20&style=flat
|
153
|
-
[badge-issues-closed-100]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/1?label=%20&style=flat
|
154
|
-
[badge-progress-200]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/2?label=%20&style=flat
|
155
|
-
[badge-issues-open-200]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/2?label=%20&style=flat
|
156
|
-
[badge-issues-closed-200]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/2?label=%20&style=flat
|
157
|
-
[badge-progress-300]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/3?label=%20&style=flat
|
158
|
-
[badge-issues-open-300]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/3?label=%20&style=flat
|
159
|
-
[badge-issues-closed-300]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/3?label=%20&style=flat
|
160
|
-
[badge-progress-400]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/4?label=%20&style=flat
|
161
|
-
[badge-issues-open-400]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/4?label=%20&style=flat
|
162
|
-
[badge-issues-closed-400]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/4?label=%20&style=flat
|
154
|
+
| `v1.0.0` | ![v1.0.0, progress][badge-progress-100] | ![v1.0.0, open][badge-issues-open-100] | ![v1.0.0, closed][badge-issues-closed-100] |
|
155
|
+
| `v2.0.0` | ![v2.0.0, progress][badge-progress-200] | ![v2.0.0, open][badge-issues-open-200] | ![v2.0.0, closed][badge-issues-closed-200] |
|
156
|
+
| `v3.0.0` | ![v3.0.0, progress][badge-progress-300] | ![v3.0.0, open][badge-issues-open-300] | ![v3.0.0, closed][badge-issues-closed-300] |
|
157
|
+
| `v4.0.0` | ![v4.0.0, progress][badge-progress-400] | ![v4.0.0, open][badge-issues-open-400] | ![v4.0.0, closed][badge-issues-closed-400] |
|
158
|
+
|
159
|
+
[badge-progress-100]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/1?label=%20&style=flat&color=informational
|
160
|
+
[badge-issues-open-100]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/1?label=%20&style=flat&color=yellow
|
161
|
+
[badge-issues-closed-100]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/1?label=%20&style=flat&color=success
|
162
|
+
[badge-progress-200]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/2?label=%20&style=flat&color=informational
|
163
|
+
[badge-issues-open-200]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/2?label=%20&style=flat&color=yellow
|
164
|
+
[badge-issues-closed-200]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/2?label=%20&style=flat&color=success
|
165
|
+
[badge-progress-300]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/3?label=%20&style=flat&color=informational
|
166
|
+
[badge-issues-open-300]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/3?label=%20&style=flat&color=yellow
|
167
|
+
[badge-issues-closed-300]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/3?label=%20&style=flat&color=success
|
168
|
+
[badge-progress-400]: https://img.shields.io/github/milestones/progress-percent/nicolasomar/reactive-bulma/4?label=%20&style=flat&color=informational
|
169
|
+
[badge-issues-open-400]: https://img.shields.io/github/milestones/issues-closed/nicolasomar/reactive-bulma/4?label=%20&style=flat&color=yellow
|
170
|
+
[badge-issues-closed-400]: https://img.shields.io/github/milestones/issues-open/nicolasomar/reactive-bulma/4?label=%20&style=flat&color=success
|
163
171
|
|
164
172
|
In case you want the short-term status, go to the [project board](https://github.com/users/NicolasOmar/projects/3) (powered by `GitHub Projects`).
|
165
173
|
|
package/dist/cjs/index.js
CHANGED
@@ -34,11 +34,7 @@ function getDefaultExportFromCjs (x) {
|
|
34
34
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
35
35
|
}
|
36
36
|
|
37
|
-
var
|
38
|
-
var react = {
|
39
|
-
get exports(){ return reactExports; },
|
40
|
-
set exports(v){ reactExports = v; },
|
41
|
-
};
|
37
|
+
var react = {exports: {}};
|
42
38
|
|
43
39
|
var react_production_min = {};
|
44
40
|
|
@@ -77,11 +73,7 @@ var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("rea
|
|
77
73
|
return react_production_min;
|
78
74
|
}
|
79
75
|
|
80
|
-
var
|
81
|
-
var react_development = {
|
82
|
-
get exports(){ return react_developmentExports; },
|
83
|
-
set exports(v){ react_developmentExports = v; },
|
84
|
-
};
|
76
|
+
var react_development = {exports: {}};
|
85
77
|
|
86
78
|
/**
|
87
79
|
* @license React
|
@@ -92,11 +84,12 @@ var react_development = {
|
|
92
84
|
* This source code is licensed under the MIT license found in the
|
93
85
|
* LICENSE file in the root directory of this source tree.
|
94
86
|
*/
|
87
|
+
react_development.exports;
|
95
88
|
|
96
89
|
var hasRequiredReact_development;
|
97
90
|
|
98
91
|
function requireReact_development () {
|
99
|
-
if (hasRequiredReact_development) return
|
92
|
+
if (hasRequiredReact_development) return react_development.exports;
|
100
93
|
hasRequiredReact_development = 1;
|
101
94
|
(function (module, exports) {
|
102
95
|
|
@@ -2824,31 +2817,27 @@ function requireReact_development () {
|
|
2824
2817
|
}
|
2825
2818
|
|
2826
2819
|
})();
|
2827
|
-
}
|
2828
|
-
} (react_development,
|
2829
|
-
return
|
2820
|
+
}
|
2821
|
+
} (react_development, react_development.exports));
|
2822
|
+
return react_development.exports;
|
2830
2823
|
}
|
2831
2824
|
|
2832
|
-
(
|
2833
|
-
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
module.exports = requireReact_development();
|
2838
|
-
}
|
2839
|
-
} (react));
|
2825
|
+
if (process.env.NODE_ENV === 'production') {
|
2826
|
+
react.exports = requireReact_production_min();
|
2827
|
+
} else {
|
2828
|
+
react.exports = requireReact_development();
|
2829
|
+
}
|
2840
2830
|
|
2831
|
+
var reactExports = react.exports;
|
2841
2832
|
var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
|
2842
2833
|
|
2843
2834
|
/**
|
2844
|
-
*
|
2845
2835
|
* @param { Array<string | null> } _classes Required. Array of classNames on `string` (or `null`) values
|
2846
2836
|
* @returns { string } A single string product of merge all classNames, separated by spaces
|
2847
2837
|
*/
|
2848
2838
|
const parseClasses = (_classes) => _classes.filter(_class => _class).join(' ');
|
2849
2839
|
/**
|
2850
|
-
*
|
2851
|
-
* @param { ParseTestIdProps } config Configuration of tag, parsedClasses and tag
|
2840
|
+
* @param { ParseTestIdProps } config Configuration object
|
2852
2841
|
* @param { string } config.tag Required. Component tag used between to build the final testId string.
|
2853
2842
|
* @param { string } config.parsedClasses Required. A single string of previously parsed classes what will be joined with `tag` property.
|
2854
2843
|
* @param { string } config.separator Optional. `''` by default. Will replace final string empty spaces with a configurable string.
|