@commercetools-uikit/async-select-input 16.10.0 → 16.12.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/README.md CHANGED
@@ -81,6 +81,7 @@ export default Example;
81
81
  | `isOptionDisabled` | `AsyncProps['isOptionDisabled']` | | | Override the built-in logic to detect whether an option is disabled&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
82
82
  | `isMulti` | `AsyncProps['isMulti']` | | | Support multiple selected options&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
83
83
  | `isSearchable` | `AsyncProps['isSearchable']` | | `true` | Whether to enable search functionality&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
84
+ | `menuIsOpen` | `AsyncProps['menuIsOpen']` | | | Can be used to enforce the select input to be opened&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
84
85
  | `maxMenuHeight` | `AsyncProps['maxMenuHeight']` | | | Maximum height of the menu before scrolling&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
85
86
  | `menuPortalTarget` | `AsyncProps['menuPortalTarget']` | | | Dom element to portal the select menu to&#xA;<br>&#xA;[Props from React select was used](https://react-select.com/props) |
86
87
  | `menuPortalZIndex` | `number` | | `1` | z-index value for the menu portal&#xA;<br>&#xA;Use in conjunction with `menuPortalTarget` |
@@ -90,7 +90,7 @@ const AsyncSelectInput = props => {
90
90
  readOnly: true
91
91
  }))
92
92
  } : {}), props.components),
93
- menuIsOpen: props.isReadOnly ? false : undefined,
93
+ menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
94
94
  styles: selectUtils.createSelectStyles({
95
95
  hasWarning: props.hasWarning,
96
96
  hasError: props.hasError,
@@ -246,7 +246,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
246
246
  var AsyncSelectInput$1 = AsyncSelectInput;
247
247
 
248
248
  // NOTE: This string will be replaced on build time with the package version.
249
- var version = "16.10.0";
249
+ var version = "16.12.0";
250
250
 
251
251
  exports["default"] = AsyncSelectInput$1;
252
252
  exports.version = version;
@@ -87,7 +87,7 @@ const AsyncSelectInput = props => {
87
87
  readOnly: true
88
88
  }))
89
89
  } : {}), props.components),
90
- menuIsOpen: props.isReadOnly ? false : undefined,
90
+ menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
91
91
  styles: selectUtils.createSelectStyles({
92
92
  hasWarning: props.hasWarning,
93
93
  hasError: props.hasError,
@@ -230,7 +230,7 @@ AsyncSelectInput.ValueContainer = reactSelect.components.ValueContainer;
230
230
  var AsyncSelectInput$1 = AsyncSelectInput;
231
231
 
232
232
  // NOTE: This string will be replaced on build time with the package version.
233
- var version = "16.10.0";
233
+ var version = "16.12.0";
234
234
 
235
235
  exports["default"] = AsyncSelectInput$1;
236
236
  exports.version = version;
@@ -70,7 +70,7 @@ const AsyncSelectInput = props => {
70
70
  readOnly: true
71
71
  }))
72
72
  } : {}), props.components),
73
- menuIsOpen: props.isReadOnly ? false : undefined,
73
+ menuIsOpen: props.isReadOnly ? false : props.menuIsOpen,
74
74
  styles: createSelectStyles({
75
75
  hasWarning: props.hasWarning,
76
76
  hasError: props.hasError,
@@ -226,6 +226,6 @@ AsyncSelectInput.ValueContainer = components.ValueContainer;
226
226
  var AsyncSelectInput$1 = AsyncSelectInput;
227
227
 
228
228
  // NOTE: This string will be replaced on build time with the package version.
229
- var version = "16.10.0";
229
+ var version = "16.12.0";
230
230
 
231
231
  export { AsyncSelectInput$1 as default, version };
@@ -32,6 +32,7 @@ export type TAsyncSelectInputProps = {
32
32
  isOptionDisabled?: ReactSelectAsyncProps['isOptionDisabled'];
33
33
  isMulti?: ReactSelectAsyncProps['isMulti'];
34
34
  isSearchable?: ReactSelectAsyncProps['isSearchable'];
35
+ menuIsOpen?: ReactSelectAsyncProps['menuIsOpen'];
35
36
  maxMenuHeight?: ReactSelectAsyncProps['maxMenuHeight'];
36
37
  menuPortalTarget?: ReactSelectAsyncProps['menuPortalTarget'];
37
38
  menuPortalZIndex: number;
@@ -79,12 +80,7 @@ declare const AsyncSelectInput: {
79
80
  (): import("@emotion/react/jsx-runtime").JSX.Element;
80
81
  displayName: string;
81
82
  };
82
- LoadingMessage: {
83
- <Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>(props: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>): import("@emotion/react").jsx.JSX.Element;
84
- defaultProps: {
85
- children: string;
86
- };
87
- };
83
+ LoadingMessage: <Option_12, IsMulti_12 extends boolean, Group_12 extends GroupBase<Option_12>>({ children, innerProps, ...restProps }: import("react-select").NoticeProps<Option_12, IsMulti_12, Group_12>) => import("@emotion/react").jsx.JSX.Element;
88
84
  Menu: <Option_9, IsMulti_9 extends boolean, Group_9 extends GroupBase<Option_9>>(props: import("react-select").MenuProps<Option_9, IsMulti_9, Group_9>) => import("@emotion/react").jsx.JSX.Element;
89
85
  MenuList: <Option_10, IsMulti_10 extends boolean, Group_10 extends GroupBase<Option_10>>(props: import("react-select").MenuListProps<Option_10, IsMulti_10, Group_10>) => import("@emotion/react").jsx.JSX.Element;
90
86
  MenuPortal: <Option_11, IsMulti_11 extends boolean, Group_11 extends GroupBase<Option_11>>(props: import("react-select/dist/declarations/src/components/Menu").MenuPortalProps<Option_11, IsMulti_11, Group_11>) => import("@emotion/react").jsx.JSX.Element | null;
@@ -95,12 +91,7 @@ declare const AsyncSelectInput: {
95
91
  (props: import("@commercetools-uikit/select-utils").TTagRemoveProps): import("@emotion/react/jsx-runtime").JSX.Element;
96
92
  displayName: string;
97
93
  };
98
- NoOptionsMessage: {
99
- <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>(props: import("react-select").NoticeProps<Option_13, IsMulti_13, Group_13>): import("@emotion/react").jsx.JSX.Element;
100
- defaultProps: {
101
- children: string;
102
- };
103
- };
94
+ NoOptionsMessage: <Option_13, IsMulti_13 extends boolean, Group_13 extends GroupBase<Option_13>>({ children, innerProps, ...restProps }: import("react-select").NoticeProps<Option_13, IsMulti_13, Group_13>) => import("@emotion/react").jsx.JSX.Element;
104
95
  Option: <Option_16, IsMulti_16 extends boolean, Group_16 extends GroupBase<Option_16>>(props: import("react-select").OptionProps<Option_16, IsMulti_16, Group_16>) => import("@emotion/react").jsx.JSX.Element;
105
96
  Placeholder: <Option_17, IsMulti_17 extends boolean, Group_17 extends GroupBase<Option_17>>(props: import("react-select").PlaceholderProps<Option_17, IsMulti_17, Group_17>) => import("@emotion/react").jsx.JSX.Element;
106
97
  SelectContainer: <Option_18, IsMulti_18 extends boolean, Group_18 extends GroupBase<Option_18>>(props: import("react-select").ContainerProps<Option_18, IsMulti_18, Group_18>) => import("@emotion/react").jsx.JSX.Element;
@@ -1 +1 @@
1
- export type { TAsyncSelectInputProps } from './async-select-input';
1
+ export type { TAsyncSelectInputProps } from "./async-select-input.js";
@@ -1,3 +1,3 @@
1
- export { default } from './async-select-input';
2
- export { default as version } from './version';
3
- export * from './export-types';
1
+ export { default } from "./async-select-input.js";
2
+ export { default as version } from "./version.js";
3
+ export * from "./export-types.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/async-select-input",
3
3
  "description": "An input component getting a selection from an asynchronously loaded list from the user.",
4
- "version": "16.10.0",
4
+ "version": "16.12.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/constraints": "16.10.0",
25
- "@commercetools-uikit/design-system": "16.10.0",
26
- "@commercetools-uikit/icons": "16.10.0",
27
- "@commercetools-uikit/loading-spinner": "16.10.0",
28
- "@commercetools-uikit/select-utils": "16.10.0",
29
- "@commercetools-uikit/spacings": "16.10.0",
30
- "@commercetools-uikit/text": "16.10.0",
31
- "@commercetools-uikit/utils": "16.10.0",
24
+ "@commercetools-uikit/constraints": "16.12.0",
25
+ "@commercetools-uikit/design-system": "16.12.0",
26
+ "@commercetools-uikit/icons": "16.12.0",
27
+ "@commercetools-uikit/loading-spinner": "16.12.0",
28
+ "@commercetools-uikit/select-utils": "16.12.0",
29
+ "@commercetools-uikit/spacings": "16.12.0",
30
+ "@commercetools-uikit/text": "16.12.0",
31
+ "@commercetools-uikit/utils": "16.12.0",
32
32
  "@emotion/react": "^11.10.5",
33
33
  "@emotion/styled": "^11.10.5",
34
34
  "lodash": "4.17.21",
35
35
  "prop-types": "15.8.1",
36
- "react-select": "5.7.3"
36
+ "react-select": "5.8.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "react": "17.0.2",