@commercetools-uikit/password-field 19.26.0 → 20.0.0
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/dist/commercetools-uikit-password-field.cjs.dev.js +1 -30
- package/dist/commercetools-uikit-password-field.cjs.prod.js +1 -3
- package/dist/commercetools-uikit-password-field.esm.js +1 -29
- package/dist/declarations/src/export-types.d.ts +1 -0
- package/dist/declarations/src/password-field.d.ts +2 -1
- package/package.json +18 -19
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
8
|
-
var _pt = require('prop-types');
|
|
9
8
|
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
10
9
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
11
10
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -33,7 +32,6 @@ var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
|
33
32
|
|
|
34
33
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
35
34
|
|
|
36
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
37
35
|
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
38
36
|
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
39
37
|
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
@@ -163,33 +161,6 @@ const PasswordField = _ref => {
|
|
|
163
161
|
})
|
|
164
162
|
});
|
|
165
163
|
};
|
|
166
|
-
PasswordField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
167
|
-
id: _pt__default["default"].string,
|
|
168
|
-
horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
169
|
-
errors: _pt__default["default"].objectOf(_pt__default["default"].bool),
|
|
170
|
-
warnings: _pt__default["default"].objectOf(_pt__default["default"].bool),
|
|
171
|
-
renderError: _pt__default["default"].func,
|
|
172
|
-
renderWarning: _pt__default["default"].func,
|
|
173
|
-
isRequired: _pt__default["default"].bool,
|
|
174
|
-
touched: _pt__default["default"].bool,
|
|
175
|
-
name: _pt__default["default"].string,
|
|
176
|
-
value: _pt__default["default"].string.isRequired,
|
|
177
|
-
onChange: _pt__default["default"].func,
|
|
178
|
-
onBlur: _pt__default["default"].func,
|
|
179
|
-
onFocus: _pt__default["default"].func,
|
|
180
|
-
isAutofocussed: _pt__default["default"].bool,
|
|
181
|
-
isDisabled: _pt__default["default"].bool,
|
|
182
|
-
isReadOnly: _pt__default["default"].bool,
|
|
183
|
-
placeholder: _pt__default["default"].string,
|
|
184
|
-
autoComplete: _pt__default["default"].oneOf(['on', 'off', 'current-password', 'new-password']),
|
|
185
|
-
title: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]).isRequired,
|
|
186
|
-
hint: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]),
|
|
187
|
-
description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].node]),
|
|
188
|
-
onInfoButtonClick: _pt__default["default"].func,
|
|
189
|
-
hintIcon: _pt__default["default"].element,
|
|
190
|
-
badge: _pt__default["default"].node,
|
|
191
|
-
renderShowHideButton: _pt__default["default"].bool
|
|
192
|
-
} : {};
|
|
193
164
|
PasswordField.displayName = 'PasswordField';
|
|
194
165
|
/**
|
|
195
166
|
* Use this function to convert the Formik `errors` object type to
|
|
@@ -202,7 +173,7 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
202
173
|
var PasswordField$1 = PasswordField;
|
|
203
174
|
|
|
204
175
|
// NOTE: This string will be replaced on build time with the package version.
|
|
205
|
-
var version = "
|
|
176
|
+
var version = "20.0.0";
|
|
206
177
|
|
|
207
178
|
exports["default"] = PasswordField$1;
|
|
208
179
|
exports.version = version;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
7
|
var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
|
|
8
|
-
require('prop-types');
|
|
9
8
|
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
10
9
|
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
11
10
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -158,7 +157,6 @@ const PasswordField = _ref => {
|
|
|
158
157
|
})
|
|
159
158
|
});
|
|
160
159
|
};
|
|
161
|
-
PasswordField.propTypes = {};
|
|
162
160
|
PasswordField.displayName = 'PasswordField';
|
|
163
161
|
/**
|
|
164
162
|
* Use this function to convert the Formik `errors` object type to
|
|
@@ -171,7 +169,7 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
171
169
|
var PasswordField$1 = PasswordField;
|
|
172
170
|
|
|
173
171
|
// NOTE: This string will be replaced on build time with the package version.
|
|
174
|
-
var version = "
|
|
172
|
+
var version = "20.0.0";
|
|
175
173
|
|
|
176
174
|
exports["default"] = PasswordField$1;
|
|
177
175
|
exports.version = version;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
|
|
2
2
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
|
|
4
|
-
import _pt from 'prop-types';
|
|
5
4
|
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
6
5
|
import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
|
|
7
6
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
@@ -137,33 +136,6 @@ const PasswordField = _ref => {
|
|
|
137
136
|
})
|
|
138
137
|
});
|
|
139
138
|
};
|
|
140
|
-
PasswordField.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
141
|
-
id: _pt.string,
|
|
142
|
-
horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
143
|
-
errors: _pt.objectOf(_pt.bool),
|
|
144
|
-
warnings: _pt.objectOf(_pt.bool),
|
|
145
|
-
renderError: _pt.func,
|
|
146
|
-
renderWarning: _pt.func,
|
|
147
|
-
isRequired: _pt.bool,
|
|
148
|
-
touched: _pt.bool,
|
|
149
|
-
name: _pt.string,
|
|
150
|
-
value: _pt.string.isRequired,
|
|
151
|
-
onChange: _pt.func,
|
|
152
|
-
onBlur: _pt.func,
|
|
153
|
-
onFocus: _pt.func,
|
|
154
|
-
isAutofocussed: _pt.bool,
|
|
155
|
-
isDisabled: _pt.bool,
|
|
156
|
-
isReadOnly: _pt.bool,
|
|
157
|
-
placeholder: _pt.string,
|
|
158
|
-
autoComplete: _pt.oneOf(['on', 'off', 'current-password', 'new-password']),
|
|
159
|
-
title: _pt.oneOfType([_pt.string, _pt.node]).isRequired,
|
|
160
|
-
hint: _pt.oneOfType([_pt.string, _pt.node]),
|
|
161
|
-
description: _pt.oneOfType([_pt.string, _pt.node]),
|
|
162
|
-
onInfoButtonClick: _pt.func,
|
|
163
|
-
hintIcon: _pt.element,
|
|
164
|
-
badge: _pt.node,
|
|
165
|
-
renderShowHideButton: _pt.bool
|
|
166
|
-
} : {};
|
|
167
139
|
PasswordField.displayName = 'PasswordField';
|
|
168
140
|
/**
|
|
169
141
|
* Use this function to convert the Formik `errors` object type to
|
|
@@ -176,6 +148,6 @@ PasswordField.toFieldErrors = function toFieldErrors(errors) {
|
|
|
176
148
|
var PasswordField$1 = PasswordField;
|
|
177
149
|
|
|
178
150
|
// NOTE: This string will be replaced on build time with the package version.
|
|
179
|
-
var version = "
|
|
151
|
+
var version = "20.0.0";
|
|
180
152
|
|
|
181
153
|
export { PasswordField$1 as default, version };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactElement, type ReactNode, type MouseEvent, type KeyboardEvent, type ChangeEventHandler, type FocusEventHandler } from 'react';
|
|
2
|
+
import { type TIconProps } from '@commercetools-uikit/field-label';
|
|
2
3
|
type TFieldWarnings = Record<string, boolean>;
|
|
3
4
|
type TFieldErrors = Record<string, boolean>;
|
|
4
5
|
type TCustomFormErrors<Values> = {
|
|
@@ -107,7 +108,7 @@ export type TPasswordField = {
|
|
|
107
108
|
* <br />
|
|
108
109
|
* Will only get rendered when `hint` is passed as well.
|
|
109
110
|
*/
|
|
110
|
-
hintIcon?: ReactElement
|
|
111
|
+
hintIcon?: ReactElement<TIconProps>;
|
|
111
112
|
/**
|
|
112
113
|
* Badge to be displayed beside the label.
|
|
113
114
|
* <br />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/password-field",
|
|
3
3
|
"description": "A controlled text input component for passwords with validation states.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "20.0.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,28 +21,27 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/constraints": "
|
|
25
|
-
"@commercetools-uikit/design-system": "
|
|
26
|
-
"@commercetools-uikit/field-errors": "
|
|
27
|
-
"@commercetools-uikit/field-label": "
|
|
28
|
-
"@commercetools-uikit/field-warnings": "
|
|
29
|
-
"@commercetools-uikit/flat-button": "
|
|
30
|
-
"@commercetools-uikit/hooks": "
|
|
31
|
-
"@commercetools-uikit/icons": "
|
|
32
|
-
"@commercetools-uikit/password-input": "
|
|
33
|
-
"@commercetools-uikit/spacings-inline": "
|
|
34
|
-
"@commercetools-uikit/spacings-stack": "
|
|
35
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
26
|
+
"@commercetools-uikit/field-errors": "20.0.0",
|
|
27
|
+
"@commercetools-uikit/field-label": "20.0.0",
|
|
28
|
+
"@commercetools-uikit/field-warnings": "20.0.0",
|
|
29
|
+
"@commercetools-uikit/flat-button": "20.0.0",
|
|
30
|
+
"@commercetools-uikit/hooks": "20.0.0",
|
|
31
|
+
"@commercetools-uikit/icons": "20.0.0",
|
|
32
|
+
"@commercetools-uikit/password-input": "20.0.0",
|
|
33
|
+
"@commercetools-uikit/spacings-inline": "20.0.0",
|
|
34
|
+
"@commercetools-uikit/spacings-stack": "20.0.0",
|
|
35
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
36
36
|
"@emotion/react": "^11.10.5",
|
|
37
|
-
"@emotion/styled": "^11.10.5"
|
|
38
|
-
"prop-types": "15.8.1"
|
|
37
|
+
"@emotion/styled": "^11.10.5"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
|
-
"react": "
|
|
42
|
-
"react-intl": "^
|
|
40
|
+
"react": "19.0.0",
|
|
41
|
+
"react-intl": "^7.1.4"
|
|
43
42
|
},
|
|
44
43
|
"peerDependencies": {
|
|
45
|
-
"react": "
|
|
46
|
-
"react-intl": "
|
|
44
|
+
"react": "19.x",
|
|
45
|
+
"react-intl": "7.x"
|
|
47
46
|
}
|
|
48
47
|
}
|