groovinads-ui 1.0.0 → 1.0.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/.yarn/install-state.gz +0 -0
- package/package.json +9 -3
- package/rollup.config.mjs +35 -0
- package/src/components/Button/Button.jsx +22 -22
- package/src/components/Button/index.js +3 -0
- package/src/index.js +3 -0
- package/src/components/Button/index.jsx +0 -3
- package/src/index.jsx +0 -3
- package/src/scss/index.jsx +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groovinads-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.es.js",
|
|
6
6
|
"repository": "git@bitbucket.org:groovinads/react-components.git",
|
|
7
7
|
"author": "Pablo Piñero <pablo.piniero@groovinads.com>",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"private": false,
|
|
10
9
|
"devDependencies": {
|
|
11
10
|
"@babel/core": "^7.24.3",
|
|
12
11
|
"@babel/preset-react": "^7.24.1",
|
|
13
12
|
"@chromatic-com/storybook": "^1.2.25",
|
|
13
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
14
14
|
"@storybook/addon-essentials": "^8.0.4",
|
|
15
15
|
"@storybook/addon-interactions": "^8.0.4",
|
|
16
16
|
"@storybook/addon-links": "^8.0.4",
|
|
@@ -24,6 +24,11 @@
|
|
|
24
24
|
"react": "^18.2.0",
|
|
25
25
|
"react-bootstrap": "^2.10.1",
|
|
26
26
|
"react-dom": "^18.2.0",
|
|
27
|
+
"rollup": "^4.14.0",
|
|
28
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
29
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
30
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
31
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
27
32
|
"sass": "^1.72.0",
|
|
28
33
|
"storybook": "^8.0.4",
|
|
29
34
|
"vite": "^5.2.2"
|
|
@@ -35,6 +40,7 @@
|
|
|
35
40
|
"packageManager": "yarn@4.1.1",
|
|
36
41
|
"scripts": {
|
|
37
42
|
"sb": "storybook dev -p 6006",
|
|
38
|
-
"build-storybook": "storybook build"
|
|
43
|
+
"build-storybook": "storybook build",
|
|
44
|
+
"build-lib": "rollup -c"
|
|
39
45
|
}
|
|
40
46
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import babel from 'rollup-plugin-babel';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import external from 'rollup-plugin-peer-deps-external';
|
|
4
|
+
import { terser } from 'rollup-plugin-terser';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
{
|
|
9
|
+
input: './src/index.js',
|
|
10
|
+
output: [
|
|
11
|
+
{
|
|
12
|
+
file: 'dist/index.js',
|
|
13
|
+
format: 'cjs',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
file: 'dist/index.es.js',
|
|
17
|
+
format: 'es',
|
|
18
|
+
exports: 'named',
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
plugins: [
|
|
22
|
+
postcss({
|
|
23
|
+
plugins: [],
|
|
24
|
+
minimize: true,
|
|
25
|
+
}),
|
|
26
|
+
babel({
|
|
27
|
+
exclude: 'node_modules/**',
|
|
28
|
+
presets: ['@babel/preset-react']
|
|
29
|
+
}),
|
|
30
|
+
external(),
|
|
31
|
+
resolve({extensions: ['.mjs', '.js', '.jsx', '.json']}),
|
|
32
|
+
terser(),
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
];
|
|
@@ -11,7 +11,7 @@ export default Button;
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|
|
14
|
+
// import PropTypes from 'prop-types';
|
|
15
15
|
|
|
16
16
|
// STYLES
|
|
17
17
|
import '../../scss/components/_buttons.scss';
|
|
@@ -78,27 +78,27 @@ const Button = ({
|
|
|
78
78
|
);
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
Button.propTypes = {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
81
|
+
// Button.propTypes = {
|
|
82
|
+
// variant: PropTypes.oneOf(['primary', 'secondary', 'terciary', 'outline']),
|
|
83
|
+
// size: PropTypes.oneOf(['xs', 'md', 'lg']),
|
|
84
|
+
// onClick: PropTypes.func,
|
|
85
|
+
// children: PropTypes.node,
|
|
86
|
+
// icon: PropTypes.node,
|
|
87
|
+
// iconPosition: PropTypes.oneOf(['start', 'end']),
|
|
88
|
+
// className: PropTypes.string,
|
|
89
|
+
// style: PropTypes.oneOf(['default', 'success', 'danger', 'warning', 'link']),
|
|
90
|
+
// processing: PropTypes.bool,
|
|
91
|
+
// };
|
|
92
92
|
|
|
93
|
-
Button.defaultProps = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
};
|
|
93
|
+
// Button.defaultProps = {
|
|
94
|
+
// variant: 'primary',
|
|
95
|
+
// size: 'md',
|
|
96
|
+
// onClick: null,
|
|
97
|
+
// icon: null,
|
|
98
|
+
// iconPosition: 'start',
|
|
99
|
+
// className: '',
|
|
100
|
+
// style: 'default',
|
|
101
|
+
// processing: false,
|
|
102
|
+
// };
|
|
103
103
|
|
|
104
104
|
export default Button;
|
package/src/index.js
ADDED
package/src/index.jsx
DELETED
package/src/scss/index.jsx
DELETED
|
File without changes
|