forstok-ui-lib 8.5.1 → 8.5.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.d.ts +8 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/select/asyncPaginate.tsx +305 -243
- package/src/components/select/typed.ts +121 -92
package/dist/index.d.ts
CHANGED
|
@@ -191,7 +191,7 @@ type TOption = {
|
|
|
191
191
|
readonly label: string;
|
|
192
192
|
readonly name?: string;
|
|
193
193
|
readonly isFixed?: boolean;
|
|
194
|
-
readonly channel?: Omit<TChannel,
|
|
194
|
+
readonly channel?: Omit<TChannel, "stores">;
|
|
195
195
|
postalCode?: string;
|
|
196
196
|
localId?: string;
|
|
197
197
|
isDisabled?: boolean | null;
|
|
@@ -209,8 +209,9 @@ type TOption = {
|
|
|
209
209
|
imageUrl?: string | null;
|
|
210
210
|
warehouse?: TWarehouseAddons[] | null;
|
|
211
211
|
};
|
|
212
|
+
detail?: any;
|
|
212
213
|
} & TskuAddons;
|
|
213
|
-
type TLoadOption = (search: string, callback: () => void, { endCursor }: {
|
|
214
|
+
type TLoadOption = (search: string, callback: () => void, { endCursor, }: {
|
|
214
215
|
endCursor: string;
|
|
215
216
|
}) => Promise<{
|
|
216
217
|
options: any;
|
|
@@ -233,9 +234,9 @@ type TSelectAsyncPaginate = {
|
|
|
233
234
|
evChange?: (newValue: TOnChangeValue, actionMeta?: ActionMeta<TOption>) => void;
|
|
234
235
|
defaultValue?: TOnChangeValue;
|
|
235
236
|
loadOptionsOnMenuOpen?: boolean;
|
|
236
|
-
noOptionsMessage?: (
|
|
237
|
+
noOptionsMessage?: (obj: {
|
|
237
238
|
inputValue: string;
|
|
238
|
-
}) => React.ReactNode
|
|
239
|
+
}) => React.ReactNode;
|
|
239
240
|
isSearchable?: boolean;
|
|
240
241
|
isClearable?: boolean;
|
|
241
242
|
placeholder?: string;
|
|
@@ -638,9 +639,9 @@ type TSelect = {
|
|
|
638
639
|
defaultValue?: OnChangeValue<TOption, boolean>;
|
|
639
640
|
loadOptions: LoadOptions<unknown, GroupBase<unknown>, unknown> | TLoadOption;
|
|
640
641
|
loadOptionsOnMenuOpen?: boolean;
|
|
641
|
-
noOptionsMessage?: (
|
|
642
|
+
noOptionsMessage?: (obj: {
|
|
642
643
|
inputValue: string;
|
|
643
|
-
}) => React.ReactNode
|
|
644
|
+
}) => React.ReactNode;
|
|
644
645
|
isSearchable?: boolean;
|
|
645
646
|
isClearable?: boolean;
|
|
646
647
|
placeholder?: string;
|
|
@@ -651,7 +652,7 @@ type TSelect = {
|
|
|
651
652
|
isMulti?: boolean;
|
|
652
653
|
iconLeft?: boolean | string;
|
|
653
654
|
loadedOptions?: TOption[];
|
|
654
|
-
|
|
655
|
+
"data-qa-id"?: string;
|
|
655
656
|
evChangeOnMenuClose?: (value: OnChangeValue<TOption, boolean> | undefined) => void;
|
|
656
657
|
id?: string;
|
|
657
658
|
isDisabled?: boolean;
|