@commercetools-uikit/search-select-field 19.25.1 → 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.
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
6
6
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
7
- var _pt = require('prop-types');
8
7
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
9
8
  var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
10
9
  var _Array$isArray = require('@babel/runtime-corejs3/core-js-stable/array/is-array');
@@ -29,7 +28,6 @@ var jsxRuntime = require('@emotion/react/jsx-runtime');
29
28
 
30
29
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
31
30
 
32
- var _pt__default = /*#__PURE__*/_interopDefault(_pt);
33
31
  var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
34
32
  var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
35
33
  var _Array$isArray__default = /*#__PURE__*/_interopDefault(_Array$isArray);
@@ -151,33 +149,6 @@ const SearchSelectField = _ref => {
151
149
  })
152
150
  });
153
151
  };
154
- SearchSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
155
- horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
156
- hasError: _pt__default["default"].bool,
157
- hasWarning: _pt__default["default"].bool,
158
- isReadOnly: _pt__default["default"].bool,
159
- isDisabled: _pt__default["default"].bool,
160
- isClearable: _pt__default["default"].bool,
161
- isCondensed: _pt__default["default"].bool,
162
- isAutofocussed: _pt__default["default"].bool,
163
- menuPortalZIndex: _pt__default["default"].number,
164
- menuShouldBlockScroll: _pt__default["default"].bool,
165
- showOptionGroupDivider: _pt__default["default"].bool,
166
- onBlur: _pt__default["default"].func,
167
- onChange: _pt__default["default"].func,
168
- loadingMessage: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].func]),
169
- optionType: _pt__default["default"].oneOf(['single-property', 'double-property', 'multiple-properties']),
170
- errors: _pt__default["default"].objectOf(_pt__default["default"].bool),
171
- renderError: _pt__default["default"].func,
172
- warnings: _pt__default["default"].objectOf(_pt__default["default"].bool),
173
- renderWarning: _pt__default["default"].func,
174
- isRequired: _pt__default["default"].bool,
175
- touched: _pt__default["default"].oneOfType([_pt__default["default"].arrayOf(_pt__default["default"].bool), _pt__default["default"].bool]),
176
- title: _pt__default["default"].node.isRequired,
177
- hint: _pt__default["default"].node,
178
- description: _pt__default["default"].node,
179
- onInfoButtonClick: _pt__default["default"].func
180
- } : {};
181
152
  SearchSelectField.displayName = 'SearchSelectField';
182
153
  /**
183
154
  * Use this function to convert the Formik `errors` object type to
@@ -190,7 +161,7 @@ SearchSelectField.toFieldErrors = function toFieldErrors(errors) {
190
161
  var SearchSelectField$1 = SearchSelectField;
191
162
 
192
163
  // NOTE: This string will be replaced on build time with the package version.
193
- var version = "19.25.1";
164
+ var version = "20.0.0";
194
165
 
195
166
  exports["default"] = SearchSelectField$1;
196
167
  exports.version = version;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
6
6
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
7
- require('prop-types');
8
7
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
9
8
  var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
10
9
  require('@babel/runtime-corejs3/core-js-stable/array/is-array');
@@ -142,7 +141,6 @@ const SearchSelectField = _ref => {
142
141
  })
143
142
  });
144
143
  };
145
- SearchSelectField.propTypes = {};
146
144
  SearchSelectField.displayName = 'SearchSelectField';
147
145
  /**
148
146
  * Use this function to convert the Formik `errors` object type to
@@ -155,7 +153,7 @@ SearchSelectField.toFieldErrors = function toFieldErrors(errors) {
155
153
  var SearchSelectField$1 = SearchSelectField;
156
154
 
157
155
  // NOTE: This string will be replaced on build time with the package version.
158
- var version = "19.25.1";
156
+ var version = "20.0.0";
159
157
 
160
158
  exports["default"] = SearchSelectField$1;
161
159
  exports.version = version;
@@ -1,6 +1,5 @@
1
1
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
3
- import _pt from 'prop-types';
4
3
  import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
5
4
  import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
6
5
  import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
@@ -126,33 +125,6 @@ const SearchSelectField = _ref => {
126
125
  })
127
126
  });
128
127
  };
129
- SearchSelectField.propTypes = process.env.NODE_ENV !== "production" ? {
130
- horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
131
- hasError: _pt.bool,
132
- hasWarning: _pt.bool,
133
- isReadOnly: _pt.bool,
134
- isDisabled: _pt.bool,
135
- isClearable: _pt.bool,
136
- isCondensed: _pt.bool,
137
- isAutofocussed: _pt.bool,
138
- menuPortalZIndex: _pt.number,
139
- menuShouldBlockScroll: _pt.bool,
140
- showOptionGroupDivider: _pt.bool,
141
- onBlur: _pt.func,
142
- onChange: _pt.func,
143
- loadingMessage: _pt.oneOfType([_pt.string, _pt.func]),
144
- optionType: _pt.oneOf(['single-property', 'double-property', 'multiple-properties']),
145
- errors: _pt.objectOf(_pt.bool),
146
- renderError: _pt.func,
147
- warnings: _pt.objectOf(_pt.bool),
148
- renderWarning: _pt.func,
149
- isRequired: _pt.bool,
150
- touched: _pt.oneOfType([_pt.arrayOf(_pt.bool), _pt.bool]),
151
- title: _pt.node.isRequired,
152
- hint: _pt.node,
153
- description: _pt.node,
154
- onInfoButtonClick: _pt.func
155
- } : {};
156
128
  SearchSelectField.displayName = 'SearchSelectField';
157
129
  /**
158
130
  * Use this function to convert the Formik `errors` object type to
@@ -165,6 +137,6 @@ SearchSelectField.toFieldErrors = function toFieldErrors(errors) {
165
137
  var SearchSelectField$1 = SearchSelectField;
166
138
 
167
139
  // NOTE: This string will be replaced on build time with the package version.
168
- var version = "19.25.1";
140
+ var version = "20.0.0";
169
141
 
170
142
  export { SearchSelectField$1 as default, version };
@@ -1 +1,2 @@
1
1
  export type { TSearchSelectFieldProps } from "./search-select-field.js";
2
+ export { type TIconProps } from '@commercetools-uikit/field-label';
@@ -1,6 +1,7 @@
1
1
  import { type ReactNode, type MouseEvent, type KeyboardEvent, type ReactElement } from 'react';
2
2
  import type { ActionMeta, GroupBase } from 'react-select';
3
3
  import type { AsyncProps } from 'react-select/async';
4
+ import { type TIconProps } from '@commercetools-uikit/field-label';
4
5
  type ReactSelectAsyncProps = AsyncProps<unknown, boolean, GroupBase<unknown>>;
5
6
  type TCustomEvent = {
6
7
  target: {
@@ -267,7 +268,7 @@ export type TSearchSelectFieldProps = {
267
268
  * <br />
268
269
  * Will only get rendered when `hint` is passed as well.
269
270
  */
270
- hintIcon?: ReactElement;
271
+ hintIcon?: ReactElement<TIconProps>;
271
272
  /**
272
273
  * Badge to be displayed beside the label.
273
274
  * <br />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/search-select-field",
3
3
  "description": "A search select field built on top of search select input, allowing users to asynchronously search for options",
4
- "version": "19.25.1",
4
+ "version": "20.0.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,24 +21,23 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "19.25.1",
25
- "@commercetools-uikit/design-system": "19.25.1",
26
- "@commercetools-uikit/field-errors": "19.25.1",
27
- "@commercetools-uikit/field-label": "19.25.1",
28
- "@commercetools-uikit/field-warnings": "19.25.1",
29
- "@commercetools-uikit/hooks": "19.25.1",
30
- "@commercetools-uikit/search-select-input": "19.25.1",
31
- "@commercetools-uikit/spacings": "19.25.1",
32
- "@commercetools-uikit/utils": "19.25.1",
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/hooks": "20.0.0",
30
+ "@commercetools-uikit/search-select-input": "20.0.0",
31
+ "@commercetools-uikit/spacings": "20.0.0",
32
+ "@commercetools-uikit/utils": "20.0.0",
33
33
  "@emotion/react": "^11.10.5",
34
34
  "@emotion/styled": "^11.10.5",
35
- "prop-types": "15.8.1",
36
- "react-intl": "^6.3.2"
35
+ "react-intl": "^7.1.4"
37
36
  },
38
37
  "devDependencies": {
39
- "react": "17.0.2"
38
+ "react": "19.0.0"
40
39
  },
41
40
  "peerDependencies": {
42
- "react": "17.x"
41
+ "react": "19.x"
43
42
  }
44
43
  }