@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.
@@ -142,9 +142,7 @@ function HiColoredLabel(props) {
142
142
  }, {}, fontWeight && {
143
143
  fontWeight: fontWeight
144
144
  })
145
- }, other, {
146
- title: label
147
- }), label);
145
+ }, other), label);
148
146
  }
149
147
  HiColoredLabel.defaultProps = {
150
148
  active: false,
@@ -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 : (item === null || item === void 0 ? void 0 : item.color) || (props === null || props === void 0 ? void 0 : props.color) || "inherit"
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
@@ -274,4 +274,5 @@ Attention aux index.js.
274
274
  La bonne syntaxe est :
275
275
  export { default as MyComponente } from './MyComponente';
276
276
 
277
+
277
278
  [source]: https://www.w3schools.com/jsref/event_onkeypress.asp
@@ -142,9 +142,7 @@ function HiColoredLabel(props) {
142
142
  }, {}, fontWeight && {
143
143
  fontWeight: fontWeight
144
144
  })
145
- }, other, {
146
- title: label
147
- }), label);
145
+ }, other), label);
148
146
  }
149
147
  HiColoredLabel.defaultProps = {
150
148
  active: false,
@@ -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 : (item === null || item === void 0 ? void 0 : item.color) || (props === null || props === void 0 ? void 0 : props.color) || "inherit"
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
- "name": "@hipay/hipay-material-ui",
3
- "private": false,
4
- "version": "4.1.1-beta.1.2",
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
- "browserslist": {
58
- "production": [
59
- ">0.2%",
60
- "not dead",
61
- "not op_mini all"
62
- ],
63
- "development": [
64
- "last 1 chrome version",
65
- "last 1 firefox version",
66
- "last 1 safari version"
67
- ]
68
- },
69
- "babelMacros": {
70
- "styledComponents": {}
71
- },
72
- "sideEffects": false,
73
- "engines": {
74
- "node": ">=6.0.0"
75
- },
76
- "resolutions": {
77
- "@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0"
78
- },
79
- "main": "./index.js",
80
- "module": "./esm/index.js"
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
+ }