@hipay/hipay-material-ui 4.1.1-beta.1.2 → 4.1.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/HiColoredLabel/HiColoredLabel.js +1 -3
- package/HiForm/HiUpload.js +1 -1
- package/HiSelect/HiSelectMobile.js +1 -1
- package/HiSelectableList/HiSelectableList.js +0 -2
- package/HiSelectableList/HiSelectableListItem.js +2 -1
- package/README.md +1 -0
- package/es/HiColoredLabel/HiColoredLabel.js +1 -3
- package/es/HiForm/HiUpload.js +1 -1
- package/es/HiSelect/HiSelectMobile.js +1 -1
- package/es/HiSelectableList/HiSelectableList.js +0 -2
- package/es/HiSelectableList/HiSelectableListItem.js +2 -1
- package/package.json +184 -80
package/HiForm/HiUpload.js
CHANGED
@@ -182,7 +182,7 @@ var HiUpload = /*#__PURE__*/function (_React$PureComponent) {
|
|
182
182
|
var inputComponents = [];
|
183
183
|
for (var i = 0; i < files.length; i += 1) {
|
184
184
|
if (files.length > 1 || values[i] && values[i].value) {
|
185
|
-
inputComponents.push(/*#__PURE__*/_react.default.createElement(_HiUploadInput.default, (0, _extends2.default)({
|
185
|
+
inputComponents.push( /*#__PURE__*/_react.default.createElement(_HiUploadInput.default, (0, _extends2.default)({
|
186
186
|
maxSize: inputs[i] ? inputs[i].maxSize : undefined,
|
187
187
|
acceptedTypes: inputs[i] ? inputs[i].acceptedTypes : undefined,
|
188
188
|
placeholder: inputs[i] ? inputs[i].placeholder : undefined,
|
@@ -54,7 +54,7 @@ var HiSelectMobile = /*#__PURE__*/function (_React$Component) {
|
|
54
54
|
} else if (item.children) {
|
55
55
|
optionList.push(_this.buildChildrenList([item].concat((0, _toConsumableArray2.default)(item.children))));
|
56
56
|
} else {
|
57
|
-
optionList.push(/*#__PURE__*/_react.default.createElement("option", {
|
57
|
+
optionList.push( /*#__PURE__*/_react.default.createElement("option", {
|
58
58
|
key: item.id,
|
59
59
|
"data-item": JSON.stringify(item),
|
60
60
|
value: item.id
|
@@ -108,7 +108,6 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
108
108
|
* @returns {*}
|
109
109
|
*/
|
110
110
|
_this.buildRecursiveListItem = function (item, index) {
|
111
|
-
var _item$icon, _item$icon$props;
|
112
111
|
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
113
112
|
var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
114
113
|
var _this$props = _this.props,
|
@@ -159,7 +158,6 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
159
158
|
hideCheckbox: hideCheckbox,
|
160
159
|
hoverIcon: hoverIcon,
|
161
160
|
icon: icon,
|
162
|
-
color: (item === null || item === void 0 ? void 0 : (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
|
163
161
|
level: noPadding ? 0 : level,
|
164
162
|
onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
|
165
163
|
onKeyDown: item.selectable !== false ? handleKeyDown : undefined,
|
@@ -303,9 +303,10 @@ function HiSelectableListItem(props) {
|
|
303
303
|
var ListItemComponentName = pinned || collapseHeader ? _ListSubheader.default : _ListItem.default;
|
304
304
|
var itemIcon;
|
305
305
|
if (displayedIcon) {
|
306
|
+
var _item$icon$props;
|
306
307
|
var iconProps = {
|
307
308
|
className: classes.icon,
|
308
|
-
color: selected && color ? color : (
|
309
|
+
color: selected && color ? color : (_item$icon$props = item.icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color
|
309
310
|
};
|
310
311
|
if (typeof displayedIcon === 'string') {
|
311
312
|
itemIcon = /*#__PURE__*/_react.default.createElement(_HiIcon.default, (0, _extends2.default)({
|
package/README.md
CHANGED
package/es/HiForm/HiUpload.js
CHANGED
@@ -182,7 +182,7 @@ var HiUpload = /*#__PURE__*/function (_React$PureComponent) {
|
|
182
182
|
var inputComponents = [];
|
183
183
|
for (var i = 0; i < files.length; i += 1) {
|
184
184
|
if (files.length > 1 || values[i] && values[i].value) {
|
185
|
-
inputComponents.push(/*#__PURE__*/_react.default.createElement(_HiUploadInput.default, (0, _extends2.default)({
|
185
|
+
inputComponents.push( /*#__PURE__*/_react.default.createElement(_HiUploadInput.default, (0, _extends2.default)({
|
186
186
|
maxSize: inputs[i] ? inputs[i].maxSize : undefined,
|
187
187
|
acceptedTypes: inputs[i] ? inputs[i].acceptedTypes : undefined,
|
188
188
|
placeholder: inputs[i] ? inputs[i].placeholder : undefined,
|
@@ -54,7 +54,7 @@ var HiSelectMobile = /*#__PURE__*/function (_React$Component) {
|
|
54
54
|
} else if (item.children) {
|
55
55
|
optionList.push(_this.buildChildrenList([item].concat((0, _toConsumableArray2.default)(item.children))));
|
56
56
|
} else {
|
57
|
-
optionList.push(/*#__PURE__*/_react.default.createElement("option", {
|
57
|
+
optionList.push( /*#__PURE__*/_react.default.createElement("option", {
|
58
58
|
key: item.id,
|
59
59
|
"data-item": JSON.stringify(item),
|
60
60
|
value: item.id
|
@@ -108,7 +108,6 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
108
108
|
* @returns {*}
|
109
109
|
*/
|
110
110
|
_this.buildRecursiveListItem = function (item, index) {
|
111
|
-
var _item$icon, _item$icon$props;
|
112
111
|
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
113
112
|
var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
114
113
|
var _this$props = _this.props,
|
@@ -159,7 +158,6 @@ var HiSelectableList = /*#__PURE__*/function (_React$PureComponent) {
|
|
159
158
|
hideCheckbox: hideCheckbox,
|
160
159
|
hoverIcon: hoverIcon,
|
161
160
|
icon: icon,
|
162
|
-
color: (item === null || item === void 0 ? void 0 : (_item$icon = item.icon) === null || _item$icon === void 0 ? void 0 : (_item$icon$props = _item$icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color) || 'inherit',
|
163
161
|
level: noPadding ? 0 : level,
|
164
162
|
onSelect: item.selectable !== false ? _this.handleSelect(item) : undefined,
|
165
163
|
onKeyDown: item.selectable !== false ? handleKeyDown : undefined,
|
@@ -303,9 +303,10 @@ function HiSelectableListItem(props) {
|
|
303
303
|
var ListItemComponentName = pinned || collapseHeader ? _ListSubheader.default : _ListItem.default;
|
304
304
|
var itemIcon;
|
305
305
|
if (displayedIcon) {
|
306
|
+
var _item$icon$props;
|
306
307
|
var iconProps = {
|
307
308
|
className: classes.icon,
|
308
|
-
color: selected && color ? color : (
|
309
|
+
color: selected && color ? color : (_item$icon$props = item.icon.props) === null || _item$icon$props === void 0 ? void 0 : _item$icon$props.color
|
309
310
|
};
|
310
311
|
if (typeof displayedIcon === 'string') {
|
311
312
|
itemIcon = /*#__PURE__*/_react.default.createElement(_HiIcon.default, (0, _extends2.default)({
|
package/package.json
CHANGED
@@ -1,81 +1,185 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
2
|
+
"name": "@hipay/hipay-material-ui",
|
3
|
+
"private": false,
|
4
|
+
"version": "4.1.1",
|
5
|
+
"description": "React components that implement Google's Material Design.",
|
6
|
+
"repository": {
|
7
|
+
"type": "git",
|
8
|
+
"url": "https://gitlab.hipay.org/backend/hipay-material-ui.git"
|
9
|
+
},
|
10
|
+
"license": "UNLICENSED",
|
11
|
+
"bugs": {
|
12
|
+
"url": "https://gitlab.hipay.org/backend/hipay-material-ui/issues"
|
13
|
+
},
|
14
|
+
"homepage": "http://materialui.hipay.dev.local/",
|
15
|
+
"peerDependencies": {
|
16
|
+
"@hipay/design-system": "2.1.0",
|
17
|
+
"@mui/material": "5.8.4",
|
18
|
+
"@mui/styles": "5.8.4",
|
19
|
+
"@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0",
|
20
|
+
"@mui/styled-engine-sc": "5.10.0",
|
21
|
+
"mdi-material-ui": "7.1.0",
|
22
|
+
"moment-timezone": "0.5.27",
|
23
|
+
"react": "17.0.2",
|
24
|
+
"react-dom": "17.0.2",
|
25
|
+
"styled-components": "5.3.0"
|
26
|
+
},
|
27
|
+
"dependencies": {
|
28
|
+
"@babel/plugin-transform-runtime": "^7.8.3",
|
29
|
+
"@babel/runtime": "7.6.3",
|
30
|
+
"@mui/lab": "5.0.0-alpha.104",
|
31
|
+
"@mui/icons-material": "^5.2.5",
|
32
|
+
"brcast": "3.0.1",
|
33
|
+
"classnames": "2.2.6",
|
34
|
+
"cross-env": "6.0.3",
|
35
|
+
"deepmerge": "4.2.2",
|
36
|
+
"is-plain-object": "^3.0.1",
|
37
|
+
"jss": "10.0.3",
|
38
|
+
"jss-camel-case": "6.1.0",
|
39
|
+
"jss-default-unit": "8.0.2",
|
40
|
+
"jss-global": "3.0.0",
|
41
|
+
"jss-nested": "6.0.1",
|
42
|
+
"jss-props-sort": "6.0.0",
|
43
|
+
"jss-vendor-prefixer": "8.0.1",
|
44
|
+
"keycode": "2.2.0",
|
45
|
+
"mini-html-webpack-plugin": "1.0.0",
|
46
|
+
"prop-types": "15.7.2",
|
47
|
+
"react-custom-scrollbars": "4.2.1",
|
48
|
+
"react-day-picker": "7.4.0",
|
49
|
+
"react-device-detect": "1.9.10",
|
50
|
+
"react-jss": "10.0.3",
|
51
|
+
"react-lazyload": "2.6.2",
|
52
|
+
"react-pdf": "5.7.2",
|
53
|
+
"react-spinners": "0.12.0",
|
54
|
+
"recompose": "0.30.0",
|
55
|
+
"validator": "10.7.1"
|
56
|
+
},
|
57
|
+
"scripts": {
|
58
|
+
"start": "styleguidist server",
|
59
|
+
"styleguide": "styleguidist server",
|
60
|
+
"styleguide:build": "styleguidist build",
|
61
|
+
"build:es2015": "cross-env NODE_ENV=production babel --config-file ./babel.config.js ./src --out-dir ./build --ignore *.test.js",
|
62
|
+
"build:es2015modules": "cross-env NODE_ENV=production babel --config-file ./babel.config.js ./src/index.js --out-file ./build/index.es.js",
|
63
|
+
"build:es": "NODE_ENV=production cross-env babel --config-file ./babel.config.js ./src --out-dir ./build/es --ignore *.test.js",
|
64
|
+
"build:umd": "cross-env BABEL_ENV=production-umd rollup -c scripts/rollup.config.js",
|
65
|
+
"build:copy-files": "node ./scripts/copy-files.js",
|
66
|
+
"build": "NODE_ENV=production yarn build:es2015 && yarn build:es2015modules && yarn build:es && yarn build:copy-files && yarn post:build",
|
67
|
+
"post:build": "rm build/App.js build/index.js build/index.es.js build/serviceWorker.js build/es/App.js build/es/index.js build/es/serviceWorker.js",
|
68
|
+
"test:unit": "cross-env NODE_ENV=test mocha --require @babel/register src/setupTest src/**/*.test.js",
|
69
|
+
"test": "cross-env NODE_ENV=test mocha --require @babel/register src/setupTest"
|
70
|
+
},
|
71
|
+
"browserslist": {
|
72
|
+
"production": [
|
73
|
+
">0.2%",
|
74
|
+
"not dead",
|
75
|
+
"not op_mini all"
|
76
|
+
],
|
77
|
+
"development": [
|
78
|
+
"last 1 chrome version",
|
79
|
+
"last 1 firefox version",
|
80
|
+
"last 1 safari version"
|
81
|
+
]
|
82
|
+
},
|
83
|
+
"babelMacros": {
|
84
|
+
"styledComponents": {}
|
85
|
+
},
|
86
|
+
"devDependencies": {
|
87
|
+
"@babel/cli": "7.0.0",
|
88
|
+
"@babel/core": "7.7.7",
|
89
|
+
"@babel/node": "^7.7.7",
|
90
|
+
"@babel/plugin-proposal-class-properties": "7.7.4",
|
91
|
+
"@babel/plugin-proposal-optional-chaining": "7.7.5",
|
92
|
+
"@babel/plugin-transform-object-assign": "7.7.4",
|
93
|
+
"@babel/preset-env": "7.7.7",
|
94
|
+
"@babel/preset-react": "7.7.4",
|
95
|
+
"@babel/register": "7.0.0",
|
96
|
+
"@hipay/design-system": "2.1.0",
|
97
|
+
"@mui/material": "5.8.4",
|
98
|
+
"@mui/styles": "5.8.4",
|
99
|
+
"@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0",
|
100
|
+
"@mui/styled-engine-sc": "5.10.0",
|
101
|
+
"@rollup/plugin-node-resolve": "7.0.0",
|
102
|
+
"@rollup/plugin-url": "4.0.1",
|
103
|
+
"@svgr/rollup": "5.0.1",
|
104
|
+
"@testing-library/dom": "6.11.0",
|
105
|
+
"@testing-library/jest-dom": "4.2.4",
|
106
|
+
"@testing-library/react": "9.4.0",
|
107
|
+
"@testing-library/user-event": "8.0.3",
|
108
|
+
"@types/enzyme": "^3.10.3",
|
109
|
+
"@types/react": "^16.9.2",
|
110
|
+
"autoprefixer": "^9.6.1",
|
111
|
+
"babel-loader": "8.0.6",
|
112
|
+
"babel-plugin-macros": "^2.8.0",
|
113
|
+
"babel-plugin-module-resolver": "4.0.0",
|
114
|
+
"babel-plugin-react-remove-properties": "0.3.0",
|
115
|
+
"babel-plugin-transform-dev-warning": "0.1.1",
|
116
|
+
"babel-plugin-transform-react-constant-elements": "6.23.0",
|
117
|
+
"babel-preset-react-app": "9.1.0",
|
118
|
+
"chai": "^4.1.2",
|
119
|
+
"clean-css": "^4.1.11",
|
120
|
+
"css-loader": "^1.0.0",
|
121
|
+
"cz-conventional-changelog": "^2.1.0",
|
122
|
+
"enzyme": "^3.10.0",
|
123
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
124
|
+
"eslint": "6.8.0",
|
125
|
+
"eslint-plugin-import": "2.19.1",
|
126
|
+
"eslint-plugin-jsx-a11y": "6.2.3",
|
127
|
+
"eslint-plugin-react": "7.17.0",
|
128
|
+
"fg-loadcss": "2.1.0",
|
129
|
+
"fs-extra": "7.0.0",
|
130
|
+
"glob": "7.1.6",
|
131
|
+
"gm": "1.23.1",
|
132
|
+
"isomorphic-fetch": "^3.0.0",
|
133
|
+
"jsdom": "^12.0.0",
|
134
|
+
"jss-rtl": "^0.2.1",
|
135
|
+
"karma": "^4.4.1",
|
136
|
+
"karma-browserstack-launcher": "^1.5.1",
|
137
|
+
"karma-chrome-launcher": "^2.2.0",
|
138
|
+
"karma-mocha": "^1.3.0",
|
139
|
+
"karma-mocha-reporter": "^2.2.5",
|
140
|
+
"karma-sourcemap-loader": "^0.3.7",
|
141
|
+
"karma-webpack": "^3.0.0",
|
142
|
+
"lz-string": "^1.4.4",
|
143
|
+
"mdi-material-ui": "7.1.0",
|
144
|
+
"mocha": "^5.0.0",
|
145
|
+
"moment-timezone": "0.5.27",
|
146
|
+
"nyc": "^14.1.1",
|
147
|
+
"path": "0.12.7",
|
148
|
+
"postcss": "7.0.26",
|
149
|
+
"prettier": "1.19.1",
|
150
|
+
"raw-loader": "4.0.0",
|
151
|
+
"react": "17.0.2",
|
152
|
+
"react-docgen": "5.1.0",
|
153
|
+
"react-dom": "17.0.2",
|
154
|
+
"react-inspector": "4.0.0",
|
155
|
+
"react-markdown": "4.3.1",
|
156
|
+
"react-number-format": "4.3.1",
|
157
|
+
"react-redux": "7.1.3",
|
158
|
+
"react-styleguidist": "10.4.2",
|
159
|
+
"react-test-renderer": "17.0.2",
|
160
|
+
"react-use": "^13.27.1",
|
161
|
+
"rollup": "1.29.0",
|
162
|
+
"rollup-plugin-babel": "4.3.3",
|
163
|
+
"rollup-plugin-commonjs": "10.1.0",
|
164
|
+
"rollup-plugin-json": "^3.1.0",
|
165
|
+
"rollup-plugin-node-globals": "^1.2.1",
|
166
|
+
"rollup-plugin-node-resolve": "^3.3.0",
|
167
|
+
"rollup-plugin-size-snapshot": "^0.12.0",
|
168
|
+
"rollup-plugin-uglify": "^4.0.0",
|
169
|
+
"sinon": "^6.0.0",
|
170
|
+
"size-limit": "^2.1.6",
|
171
|
+
"styled-components": "5.3.0",
|
172
|
+
"typescript": "^3.6.2",
|
173
|
+
"url-loader": "^1.0.1",
|
174
|
+
"webfontloader": "^1.6.28",
|
175
|
+
"webpack": "4.41.5",
|
176
|
+
"webpack-bundle-analyzer": "^3.6.0"
|
177
|
+
},
|
178
|
+
"sideEffects": false,
|
179
|
+
"engines": {
|
180
|
+
"node": ">=6.0.0"
|
181
|
+
},
|
182
|
+
"resolutions": {
|
183
|
+
"@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0"
|
184
|
+
}
|
185
|
+
}
|