@commercetools-uikit/select-input 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.
|
@@ -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 _flatMapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flat-map');
|
|
9
8
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
10
9
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
@@ -28,7 +27,6 @@ var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
|
28
27
|
|
|
29
28
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
30
29
|
|
|
31
|
-
var _pt__default = /*#__PURE__*/_interopDefault(_pt);
|
|
32
30
|
var _flatMapInstanceProperty__default = /*#__PURE__*/_interopDefault(_flatMapInstanceProperty);
|
|
33
31
|
var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInstanceProperty);
|
|
34
32
|
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
@@ -222,36 +220,6 @@ const SelectInput = _ref => {
|
|
|
222
220
|
}))
|
|
223
221
|
});
|
|
224
222
|
};
|
|
225
|
-
SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
226
|
-
appearance: _pt__default["default"].oneOf(['default', 'quiet', 'filter']),
|
|
227
|
-
horizontalConstraint: _pt__default["default"].oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
228
|
-
hasError: _pt__default["default"].bool,
|
|
229
|
-
isReadOnly: _pt__default["default"].bool,
|
|
230
|
-
hasWarning: _pt__default["default"].bool,
|
|
231
|
-
iconLeft: _pt__default["default"].node,
|
|
232
|
-
isAutofocussed: _pt__default["default"].bool,
|
|
233
|
-
isCondensed: _pt__default["default"].bool,
|
|
234
|
-
menuPortalZIndex: _pt__default["default"].number,
|
|
235
|
-
onBlur: _pt__default["default"].func,
|
|
236
|
-
onChange: _pt__default["default"].func,
|
|
237
|
-
options: _pt__default["default"].oneOfType([_pt__default["default"].arrayOf(_pt__default["default"].shape({
|
|
238
|
-
value: _pt__default["default"].string.isRequired,
|
|
239
|
-
label: _pt__default["default"].node,
|
|
240
|
-
isDisabled: _pt__default["default"].bool
|
|
241
|
-
})), _pt__default["default"].arrayOf(_pt__default["default"].shape({
|
|
242
|
-
options: _pt__default["default"].arrayOf(_pt__default["default"].shape({
|
|
243
|
-
value: _pt__default["default"].string.isRequired,
|
|
244
|
-
label: _pt__default["default"].node,
|
|
245
|
-
isDisabled: _pt__default["default"].bool
|
|
246
|
-
})).isRequired
|
|
247
|
-
}))]),
|
|
248
|
-
optionStyle: _pt__default["default"].oneOf(['list', 'checkbox']),
|
|
249
|
-
showOptionGroupDivider: _pt__default["default"].bool,
|
|
250
|
-
value: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].arrayOf(_pt__default["default"].string), _pt__default["default"].oneOf([null])]),
|
|
251
|
-
minMenuWidth: _pt__default["default"].oneOf([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
252
|
-
maxMenuWidth: _pt__default["default"].oneOf([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
253
|
-
count: _pt__default["default"].number
|
|
254
|
-
} : {};
|
|
255
223
|
SelectInput.displayName = 'SelectInput';
|
|
256
224
|
|
|
257
225
|
/**
|
|
@@ -299,7 +267,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
299
267
|
var SelectInput$1 = SelectInput;
|
|
300
268
|
|
|
301
269
|
// NOTE: This string will be replaced on build time with the package version.
|
|
302
|
-
var version = "
|
|
270
|
+
var version = "20.0.0";
|
|
303
271
|
|
|
304
272
|
exports["default"] = SelectInput$1;
|
|
305
273
|
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 _flatMapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/flat-map');
|
|
9
8
|
var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
10
9
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
@@ -221,7 +220,6 @@ const SelectInput = _ref => {
|
|
|
221
220
|
}))
|
|
222
221
|
});
|
|
223
222
|
};
|
|
224
|
-
SelectInput.propTypes = {};
|
|
225
223
|
SelectInput.displayName = 'SelectInput';
|
|
226
224
|
|
|
227
225
|
/**
|
|
@@ -269,7 +267,7 @@ SelectInput.ValueContainer = Select.components.ValueContainer;
|
|
|
269
267
|
var SelectInput$1 = SelectInput;
|
|
270
268
|
|
|
271
269
|
// NOTE: This string will be replaced on build time with the package version.
|
|
272
|
-
var version = "
|
|
270
|
+
var version = "20.0.0";
|
|
273
271
|
|
|
274
272
|
exports["default"] = SelectInput$1;
|
|
275
273
|
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 _flatMapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/flat-map';
|
|
5
4
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
6
5
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
@@ -199,36 +198,6 @@ const SelectInput = _ref => {
|
|
|
199
198
|
}))
|
|
200
199
|
});
|
|
201
200
|
};
|
|
202
|
-
SelectInput.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
203
|
-
appearance: _pt.oneOf(['default', 'quiet', 'filter']),
|
|
204
|
-
horizontalConstraint: _pt.oneOf([3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
205
|
-
hasError: _pt.bool,
|
|
206
|
-
isReadOnly: _pt.bool,
|
|
207
|
-
hasWarning: _pt.bool,
|
|
208
|
-
iconLeft: _pt.node,
|
|
209
|
-
isAutofocussed: _pt.bool,
|
|
210
|
-
isCondensed: _pt.bool,
|
|
211
|
-
menuPortalZIndex: _pt.number,
|
|
212
|
-
onBlur: _pt.func,
|
|
213
|
-
onChange: _pt.func,
|
|
214
|
-
options: _pt.oneOfType([_pt.arrayOf(_pt.shape({
|
|
215
|
-
value: _pt.string.isRequired,
|
|
216
|
-
label: _pt.node,
|
|
217
|
-
isDisabled: _pt.bool
|
|
218
|
-
})), _pt.arrayOf(_pt.shape({
|
|
219
|
-
options: _pt.arrayOf(_pt.shape({
|
|
220
|
-
value: _pt.string.isRequired,
|
|
221
|
-
label: _pt.node,
|
|
222
|
-
isDisabled: _pt.bool
|
|
223
|
-
})).isRequired
|
|
224
|
-
}))]),
|
|
225
|
-
optionStyle: _pt.oneOf(['list', 'checkbox']),
|
|
226
|
-
showOptionGroupDivider: _pt.bool,
|
|
227
|
-
value: _pt.oneOfType([_pt.string, _pt.arrayOf(_pt.string), _pt.oneOf([null])]),
|
|
228
|
-
minMenuWidth: _pt.oneOf([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
229
|
-
maxMenuWidth: _pt.oneOf([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
|
|
230
|
-
count: _pt.number
|
|
231
|
-
} : {};
|
|
232
201
|
SelectInput.displayName = 'SelectInput';
|
|
233
202
|
|
|
234
203
|
/**
|
|
@@ -276,6 +245,6 @@ SelectInput.ValueContainer = components.ValueContainer;
|
|
|
276
245
|
var SelectInput$1 = SelectInput;
|
|
277
246
|
|
|
278
247
|
// NOTE: This string will be replaced on build time with the package version.
|
|
279
|
-
var version = "
|
|
248
|
+
var version = "20.0.0";
|
|
280
249
|
|
|
281
250
|
export { SelectInput$1 as default, version };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
1
|
+
import type { ComponentType, ReactNode, JSX } from 'react';
|
|
2
2
|
import { type Props as ReactSelectProps, type GroupBase, type CommonPropsAndClassName, type MenuPlacement, type MenuPosition } from 'react-select';
|
|
3
3
|
export type TOption = {
|
|
4
4
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-input",
|
|
3
3
|
"description": "An input component getting a selection from the user.",
|
|
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,26 +21,25 @@
|
|
|
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/icons": "
|
|
27
|
-
"@commercetools-uikit/select-utils": "
|
|
28
|
-
"@commercetools-uikit/utils": "
|
|
24
|
+
"@commercetools-uikit/constraints": "20.0.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "20.0.0",
|
|
26
|
+
"@commercetools-uikit/icons": "20.0.0",
|
|
27
|
+
"@commercetools-uikit/select-utils": "20.0.0",
|
|
28
|
+
"@commercetools-uikit/utils": "20.0.0",
|
|
29
29
|
"@emotion/is-prop-valid": "1.3.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
|
-
"prop-types": "15.8.1",
|
|
34
33
|
"react-select": "5.10.1"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
|
37
|
-
"react": "
|
|
38
|
-
"react-dom": "
|
|
39
|
-
"react-intl": "^
|
|
36
|
+
"react": "19.0.0",
|
|
37
|
+
"react-dom": "19.0.0",
|
|
38
|
+
"react-intl": "^7.1.4"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"react": "
|
|
43
|
-
"react-dom": "
|
|
44
|
-
"react-intl": "
|
|
41
|
+
"react": "19.x",
|
|
42
|
+
"react-dom": "19.x",
|
|
43
|
+
"react-intl": "7.x"
|
|
45
44
|
}
|
|
46
45
|
}
|