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/dist/index.js +474 -474
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +477 -477
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/select/asyncPaginate.tsx +3 -1
- package/src/components/select/index.tsx +1 -2
package/package.json
CHANGED
|
@@ -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
|
-
<
|
|
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
|
-
<
|
|
548
|
+
<CreatableSelect
|
|
550
549
|
options={options}
|
|
551
550
|
styles={customStyles}
|
|
552
551
|
onMenuOpen={evToogleSelect}
|