@hipay/hipay-material-ui 4.0.0-beta1083 → 4.0.0-beta1083-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.
@@ -65,18 +65,17 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) {
65
65
  otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps"]);
66
66
  var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
67
67
  var type = this.state.showText ? 'text' : 'password';
68
- var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
68
+ var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ''));
69
69
  return /*#__PURE__*/_react.default.createElement(_HiTextField.default, (0, _extends2.default)({}, otherProps, {
70
70
  type: type,
71
71
  onRightIconClick: this.handlePasswordToggle,
72
- maxLength: maxLength,
73
72
  HiInputProps: (0, _objectSpread2.default)({
74
73
  placeholder: '',
75
74
  maxLength: 1024
76
75
  }, HiInputProps, {
77
76
  endAdornment: endAdornment,
78
77
  inputClassName: inputClassName,
79
- autocomplete: "new-password"
78
+ autocomplete: 'new-password'
80
79
  })
81
80
  }));
82
81
  }
@@ -65,18 +65,17 @@ var HiPasswordField = /*#__PURE__*/function (_React$Component) {
65
65
  otherProps = (0, _objectWithoutProperties2.default)(_this$props, ["classes", "HiInputProps"]);
66
66
  var endAdornment = this.state.showText ? 'visibility_off' : 'visibility';
67
67
  var type = this.state.showText ? 'text' : 'password';
68
- var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ""));
68
+ var inputClassName = (0, _classnames.default)((0, _defineProperty2.default)({}, classes.inputPassword, !this.state.showText && otherProps.value !== ''));
69
69
  return /*#__PURE__*/_react.default.createElement(_HiTextField.default, (0, _extends2.default)({}, otherProps, {
70
70
  type: type,
71
71
  onRightIconClick: this.handlePasswordToggle,
72
- maxLength: maxLength,
73
72
  HiInputProps: (0, _objectSpread2.default)({
74
73
  placeholder: '',
75
74
  maxLength: 1024
76
75
  }, HiInputProps, {
77
76
  endAdornment: endAdornment,
78
77
  inputClassName: inputClassName,
79
- autocomplete: "new-password"
78
+ autocomplete: 'new-password'
80
79
  })
81
80
  }));
82
81
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
- "version": "4.0.0-beta1083",
4
+ "version": "4.0.0-beta1083-2",
5
5
  "description": "React components that implement Google's Material Design.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "homepage": "http://materialui.hipay.dev.local/",
15
15
  "peerDependencies": {
16
- "@hipay/design-system": "2.0.0",
16
+ "@hipay/design-system": "2.1.0",
17
17
  "@mui/material": "5.8.4",
18
18
  "@mui/styles": "5.8.4",
19
19
  "@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0",
@@ -54,6 +54,20 @@
54
54
  "recompose": "0.30.0",
55
55
  "validator": "10.7.1"
56
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
+ },
57
71
  "browserslist": {
58
72
  "production": [
59
73
  ">0.2%",
@@ -69,13 +83,103 @@
69
83
  "babelMacros": {
70
84
  "styledComponents": {}
71
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
+ },
72
178
  "sideEffects": false,
73
179
  "engines": {
74
180
  "node": ">=6.0.0"
75
181
  },
76
182
  "resolutions": {
77
183
  "@mui/styled-engine": "npm:@mui/styled-engine-sc@5.10.0"
78
- },
79
- "main": "./index.js",
80
- "module": "./esm/index.js"
81
- }
184
+ }
185
+ }