@janiscommerce/ui-web 0.7.0 → 0.7.2
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 +128 -0
- package/dist/README.md +33 -0
- package/dist/package.json +24 -0
- package/package.json +123 -22
- /package/{index.umd.js → dist/index.umd.js} +0 -0
- /package/{index.umd.js.map → dist/index.umd.js.map} +0 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
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.2] - 2022-12-04
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fixed postpublish script
|
|
15
|
+
|
|
16
|
+
## [0.7.1] - 2022-12-04
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Fixed path postpublish script
|
|
21
|
+
|
|
22
|
+
## [0.7.0] - 2022-12-04
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Added slack notification
|
|
27
|
+
|
|
28
|
+
## [0.6.2] - 2022-12-04
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- Fixed height of component Chip
|
|
33
|
+
|
|
34
|
+
## [0.6.1] - 2022-11-29
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- Fixed validation chip when has icon and not children
|
|
39
|
+
|
|
40
|
+
## [0.6.0] - 2022-11-27
|
|
41
|
+
|
|
42
|
+
### Removed
|
|
43
|
+
|
|
44
|
+
- Removed repeated styles in Color component
|
|
45
|
+
|
|
46
|
+
## [0.5.0] - 2022-10-24
|
|
47
|
+
|
|
48
|
+
### Added
|
|
49
|
+
|
|
50
|
+
- Added peer dependencies to add styled components
|
|
51
|
+
|
|
52
|
+
### Removed
|
|
53
|
+
|
|
54
|
+
- Removed script post-install
|
|
55
|
+
- Removed hasText prop from Chip component
|
|
56
|
+
|
|
57
|
+
## [0.4.0] - 2022-03-14
|
|
58
|
+
|
|
59
|
+
### Removed
|
|
60
|
+
|
|
61
|
+
- Removed prop styles for chip component
|
|
62
|
+
|
|
63
|
+
## [0.3.0] - 2022-09-29
|
|
64
|
+
|
|
65
|
+
### Changed
|
|
66
|
+
|
|
67
|
+
- Remove validation for internal link
|
|
68
|
+
|
|
69
|
+
## [0.2.1] - 2022-09-29
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
|
|
73
|
+
- add export for Link component
|
|
74
|
+
|
|
75
|
+
## [0.2.0] - 2022-09-29
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
|
|
79
|
+
- revert button removing link props
|
|
80
|
+
- revert Link removing react router link
|
|
81
|
+
|
|
82
|
+
## [0.1.0] - 2022-09-16
|
|
83
|
+
|
|
84
|
+
### Added
|
|
85
|
+
|
|
86
|
+
- Add link prop in chip component
|
|
87
|
+
|
|
88
|
+
## [0.0.15] - 2022-07-26
|
|
89
|
+
|
|
90
|
+
### Added
|
|
91
|
+
|
|
92
|
+
- Add Input and Textarea components
|
|
93
|
+
- Add Image component
|
|
94
|
+
- Add QRCode component
|
|
95
|
+
- Add ColorPicker component
|
|
96
|
+
- Add HTML component
|
|
97
|
+
- Add tests for global utils
|
|
98
|
+
|
|
99
|
+
### Changed
|
|
100
|
+
|
|
101
|
+
- Changes in Chip component properties
|
|
102
|
+
|
|
103
|
+
### Fixed
|
|
104
|
+
|
|
105
|
+
- Fix textarea error height
|
|
106
|
+
|
|
107
|
+
## [0.0.14] - 2022-06-11
|
|
108
|
+
|
|
109
|
+
- Fix publish package to npm bugs. From 0.0.3 to 0.0.14
|
|
110
|
+
|
|
111
|
+
## [0.0.2] - 2022-06-11
|
|
112
|
+
|
|
113
|
+
### Fixed
|
|
114
|
+
|
|
115
|
+
- Fix github action error with storybook
|
|
116
|
+
|
|
117
|
+
## [0.0.1] - 2022-06-11
|
|
118
|
+
|
|
119
|
+
### Added
|
|
120
|
+
|
|
121
|
+
- Add Checkbox component
|
|
122
|
+
- Add Switch component
|
|
123
|
+
- Add Button component
|
|
124
|
+
- Add Icon component
|
|
125
|
+
- Add Color component
|
|
126
|
+
- Add Chip component
|
|
127
|
+
- Add base config for make, test and document a react components
|
|
128
|
+
- 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.2",
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
"name": "@janiscommerce/ui-web",
|
|
3
|
+
"version": "0.7.2",
|
|
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": "./.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
|