@janiscommerce/ui-web 0.7.1 → 0.7.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,134 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.7.3] - 2022-12-04
11
+
12
+ ### Fixed
13
+
14
+ - Fixed postpublish script permission
15
+
16
+ ## [0.7.2] - 2022-12-04
17
+
18
+ ### Fixed
19
+
20
+ - Fixed postpublish script
21
+
22
+ ## [0.7.1] - 2022-12-04
23
+
24
+ ### Fixed
25
+
26
+ - Fixed path postpublish script
27
+
28
+ ## [0.7.0] - 2022-12-04
29
+
30
+ ### Added
31
+
32
+ - Added slack notification
33
+
34
+ ## [0.6.2] - 2022-12-04
35
+
36
+ ### Fixed
37
+
38
+ - Fixed height of component Chip
39
+
40
+ ## [0.6.1] - 2022-11-29
41
+
42
+ ### Fixed
43
+
44
+ - Fixed validation chip when has icon and not children
45
+
46
+ ## [0.6.0] - 2022-11-27
47
+
48
+ ### Removed
49
+
50
+ - Removed repeated styles in Color component
51
+
52
+ ## [0.5.0] - 2022-10-24
53
+
54
+ ### Added
55
+
56
+ - Added peer dependencies to add styled components
57
+
58
+ ### Removed
59
+
60
+ - Removed script post-install
61
+ - Removed hasText prop from Chip component
62
+
63
+ ## [0.4.0] - 2022-03-14
64
+
65
+ ### Removed
66
+
67
+ - Removed prop styles for chip component
68
+
69
+ ## [0.3.0] - 2022-09-29
70
+
71
+ ### Changed
72
+
73
+ - Remove validation for internal link
74
+
75
+ ## [0.2.1] - 2022-09-29
76
+
77
+ ### Fixed
78
+
79
+ - add export for Link component
80
+
81
+ ## [0.2.0] - 2022-09-29
82
+
83
+ ### Changed
84
+
85
+ - revert button removing link props
86
+ - revert Link removing react router link
87
+
88
+ ## [0.1.0] - 2022-09-16
89
+
90
+ ### Added
91
+
92
+ - Add link prop in chip component
93
+
94
+ ## [0.0.15] - 2022-07-26
95
+
96
+ ### Added
97
+
98
+ - Add Input and Textarea components
99
+ - Add Image component
100
+ - Add QRCode component
101
+ - Add ColorPicker component
102
+ - Add HTML component
103
+ - Add tests for global utils
104
+
105
+ ### Changed
106
+
107
+ - Changes in Chip component properties
108
+
109
+ ### Fixed
110
+
111
+ - Fix textarea error height
112
+
113
+ ## [0.0.14] - 2022-06-11
114
+
115
+ - Fix publish package to npm bugs. From 0.0.3 to 0.0.14
116
+
117
+ ## [0.0.2] - 2022-06-11
118
+
119
+ ### Fixed
120
+
121
+ - Fix github action error with storybook
122
+
123
+ ## [0.0.1] - 2022-06-11
124
+
125
+ ### Added
126
+
127
+ - Add Checkbox component
128
+ - Add Switch component
129
+ - Add Button component
130
+ - Add Icon component
131
+ - Add Color component
132
+ - Add Chip component
133
+ - Add base config for make, test and document a react components
134
+ - Add base config rollup
package/dist/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @janis-commerce/ui-web
2
+
3
+ A package for use generic components from Janis
4
+
5
+ ## Installation
6
+
7
+ `npm install @janiscommerce/ui-web`
8
+
9
+ ### Usage
10
+
11
+ ```js
12
+ import React from 'react';
13
+ const { Button, Icon } = '@janiscommerce/ui-web';
14
+
15
+ const MyComponent = () => {
16
+ const handleClick = () => {
17
+ console.log('some action');
18
+ };
19
+
20
+ return (
21
+ <div>
22
+ <Button onClick={handleClick} variant="contained">Click</Button>
23
+ <Icon name="box" color="primary" />
24
+ </div>
25
+ );
26
+ };
27
+
28
+ export default MyComponent;
29
+ ```
30
+
31
+ ### Important
32
+
33
+ All the components that can be used and other documentation can be found at ***[https://janis-commerce.github.io/ui-web](https://janis-commerce.github.io/ui-web)***
@@ -0,0 +1,24 @@
1
+ {
2
+ "main": "index.umd.js",
3
+ "name": "@janiscommerce/ui-web",
4
+ "homepage": "https://github.com/janis-commerce/ui-web#readme",
5
+ "bugs": {
6
+ "url": "https://github.com/janis-commerce/ui-web/issues"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/janis-commerce/ui-web.git"
11
+ },
12
+ "version": "0.7.3",
13
+ "dependencies": {
14
+ "prop-types": "^15.7.2",
15
+ "qrcode.react": "^3.0.2",
16
+ "react-colorful": "^5.5.1",
17
+ "react-frame-component": "^5.2.3"
18
+ },
19
+ "peerDependencies": {
20
+ "react": "17.x",
21
+ "react-dom": "17.x",
22
+ "styled-components": "<= 5.3.0"
23
+ }
24
+ }
package/package.json CHANGED
@@ -1,24 +1,125 @@
1
1
  {
2
- "main": "index.umd.js",
3
- "name": "@janiscommerce/ui-web",
4
- "homepage": "https://github.com/janis-commerce/ui-web#readme",
5
- "bugs": {
6
- "url": "https://github.com/janis-commerce/ui-web/issues"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/janis-commerce/ui-web.git"
11
- },
12
- "version": "0.7.1",
13
- "dependencies": {
14
- "prop-types": "^15.7.2",
15
- "qrcode.react": "^3.0.2",
16
- "react-colorful": "^5.5.1",
17
- "react-frame-component": "^5.2.3"
18
- },
19
- "peerDependencies": {
20
- "react": "17.x",
21
- "react-dom": "17.x",
22
- "styled-components": "<= 5.3.0"
23
- }
2
+ "name": "@janiscommerce/ui-web",
3
+ "version": "0.7.3",
4
+ "description": "",
5
+ "main": "dist/index.umd.js",
6
+ "private": false,
7
+ "scripts": {
8
+ "start": "rollup -c rollup/rollup.config.dev.js -w",
9
+ "build": "rollup -c rollup/rollup.config.prod.js",
10
+ "lint": "eslint src/",
11
+ "test": "jest",
12
+ "test-ci": "JEST_JUNIT_OUTPUT_DIR=test-reports jest --coverage --silent --ci --reporters=jest-junit",
13
+ "coverage": "jest --coverage --silent",
14
+ "storybook": "start-storybook -p 6006 -s public",
15
+ "build:storybook": "build-storybook -c .storybook -o ./stories",
16
+ "deploy-storybook": "gh-pages -d stories",
17
+ "build:icons": "node scripts/build-icons",
18
+ "postpublish": "bash ./.postpublish.sh"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/janis-commerce/ui-web.git"
23
+ },
24
+ "author": "Janis",
25
+ "license": "ISC",
26
+ "bugs": {
27
+ "url": "https://github.com/janis-commerce/ui-web/issues"
28
+ },
29
+ "homepage": "https://github.com/janis-commerce/ui-web#readme",
30
+ "devDependencies": {
31
+ "@babel/core": "^7.15.0",
32
+ "@babel/eslint-parser": "^7.14.3",
33
+ "@babel/eslint-plugin": "^7.13.16",
34
+ "@babel/preset-env": "^7.15.0",
35
+ "@babel/preset-react": "^7.13.13",
36
+ "@rollup/plugin-babel": "^5.3.0",
37
+ "@rollup/plugin-commonjs": "^21.0.3",
38
+ "@rollup/plugin-json": "^4.1.0",
39
+ "@rollup/plugin-node-resolve": "^13.0.0",
40
+ "@rollup/plugin-replace": "^4.0.0",
41
+ "@storybook/addon-actions": "^6.2.9",
42
+ "@storybook/addon-essentials": "^6.2.9",
43
+ "@storybook/addon-links": "^6.2.9",
44
+ "@storybook/node-logger": "^6.2.9",
45
+ "@storybook/react": "^6.2.9",
46
+ "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
47
+ "babel-jest": "^27.0.6",
48
+ "babel-plugin-styled-components": "^2.0.6",
49
+ "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
50
+ "chalk": "^5.0.0",
51
+ "enzyme": "^3.11.0",
52
+ "enzyme-to-json": "^3.6.2",
53
+ "eslint": "^8.12.0",
54
+ "eslint-config-prettier": "^8.3.0",
55
+ "eslint-plugin-prettier": "^4.0.0",
56
+ "eslint-plugin-react": "^7.23.2",
57
+ "gh-pages": "^3.2.3",
58
+ "install-peers-cli": "^2.2.0",
59
+ "jest": "^27.0.6",
60
+ "jest-junit": "^13.1.0",
61
+ "jest-styled-components": "^7.0.5",
62
+ "prettier": "^2.3.0",
63
+ "react": "17.x",
64
+ "react-dom": "17.x",
65
+ "react-test-renderer": "^17.0.2",
66
+ "rollup": "^2.48.0",
67
+ "rollup-plugin-copy": "^3.4.0",
68
+ "rollup-plugin-generate-package-json": "^3.2.0",
69
+ "rollup-plugin-livereload": "^2.0.0",
70
+ "rollup-plugin-peer-deps-external": "^2.2.4",
71
+ "rollup-plugin-serve": "^1.1.0",
72
+ "storybook-dark-mode": "^1.0.8",
73
+ "styled-components": "^5.3.0"
74
+ },
75
+ "jest": {
76
+ "snapshotSerializers": [
77
+ "enzyme-to-json/serializer"
78
+ ],
79
+ "collectCoverageFrom": [
80
+ "<rootDir>/src/**/*.{js,jsx,mjs}",
81
+ "!<rootDir>/src/**/index.{js,jsx,mjs}",
82
+ "<rootDir>/src/utils/index.js"
83
+ ],
84
+ "coveragePathIgnorePatterns": [
85
+ "<rootDir>/src/docs"
86
+ ],
87
+ "modulePaths": [
88
+ "<rootDir>/src"
89
+ ],
90
+ "testMatch": [
91
+ "<rootDir>/src/**/*.test.js"
92
+ ],
93
+ "transform": {
94
+ "^.+\\.(js|jsx|mjs|cjs)$": "<rootDir>/node_modules/babel-jest",
95
+ "^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
96
+ },
97
+ "transformIgnorePatterns": [
98
+ "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
99
+ ],
100
+ "setupFiles": [
101
+ "<rootDir>/config/jest/setup.js"
102
+ ],
103
+ "testEnvironment": "jsdom"
104
+ },
105
+ "peerDependencies": {
106
+ "react": "17.x",
107
+ "react-dom": "17.x",
108
+ "styled-components": "<= 5.3.0"
109
+ },
110
+ "babel": {
111
+ "presets": [
112
+ "@babel/preset-env",
113
+ "@babel/preset-react"
114
+ ]
115
+ },
116
+ "files": [
117
+ "dist"
118
+ ],
119
+ "dependencies": {
120
+ "prop-types": "^15.7.2",
121
+ "qrcode.react": "^3.0.2",
122
+ "react-colorful": "^5.5.1",
123
+ "react-frame-component": "^5.2.3"
124
+ }
24
125
  }
File without changes
File without changes