forstok-ui-lib 8.8.2 → 8.8.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "8.8.2",
3
+ "version": "8.8.3",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,7 @@
1
1
  import { useCallback, useEffect, useRef, useState } from "react";
2
2
  import { AsyncPaginate } from "react-select-async-paginate";
3
+ import AsyncCreatableSelect from "react-select/async-creatable";
4
+
3
5
  import type { LoadOptions } from "react-select-async-paginate";
4
6
  import {
5
7
  SingleValueProps,
@@ -370,7 +372,7 @@ const SelectAsyncPaginateComponent = ({ loadOptions, ...props }: TSelect) => {
370
372
  };
371
373
 
372
374
  let SelectEl = isCreateable ? (
373
- <AsyncPaginate
375
+ <AsyncCreatableSelect
374
376
  isSearchable={isSearchable}
375
377
  placeholder={placeholder}
376
378
  debounceTimeout={500}
@@ -1,6 +1,5 @@
1
1
  import { useEffect, useState } from "react";
2
2
  import ReactSelect from "react-select";
3
- import AsyncCreatableSelect from "react-select/async-creatable";
4
3
  import type {
5
4
  SingleValueProps,
6
5
  OptionProps,
@@ -546,7 +545,7 @@ const SelectComponent = ({
546
545
  };
547
546
 
548
547
  let SelectEl = isCreateable ? (
549
- <AsyncCreatableSelect
548
+ <CreatableSelect
550
549
  options={options}
551
550
  styles={customStyles}
552
551
  onMenuOpen={evToogleSelect}