forstok-ui-lib 5.2.11 → 5.2.13
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 +16 -2
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/assets/images/icons/trash.svg +2 -0
- package/src/components/icon/styles.ts +8 -0
- package/src/components/select/async.paginate.tsx +126 -0
- package/src/components/select/typed.ts +18 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { HTMLAttributes, ReactNode, AnchorHTMLAttributes, MouseEvent, Dispatch, SetStateAction, KeyboardEvent, FocusEvent, ChangeEvent, DragEvent, InputHTMLAttributes, PropsWithChildren, ButtonHTMLAttributes, RefObject, ImgHTMLAttributes } from 'react';
|
|
4
|
-
import { OnChangeValue, OptionProps, SingleValueProps
|
|
4
|
+
import { OnChangeValue, ActionMeta, OptionProps, SingleValueProps } from 'react-select';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
7
7
|
|
|
@@ -306,7 +306,21 @@ type TOption = {
|
|
|
306
306
|
localId?: string;
|
|
307
307
|
}[];
|
|
308
308
|
};
|
|
309
|
+
type TLoadOption = (search: string, callback: () => void, { endCursor }: {
|
|
310
|
+
endCursor: string;
|
|
311
|
+
}) => Promise<{
|
|
312
|
+
options: any;
|
|
313
|
+
hasMore: any;
|
|
314
|
+
additional?: {
|
|
315
|
+
endCursor: any;
|
|
316
|
+
};
|
|
317
|
+
} | {
|
|
318
|
+
options: never[];
|
|
319
|
+
hasMore: boolean;
|
|
320
|
+
additional?: undefined;
|
|
321
|
+
} | undefined>;
|
|
309
322
|
type TOnChangeValue = OnChangeValue<TOption, boolean>;
|
|
323
|
+
type TActionMeta = ActionMeta<TOption>;
|
|
310
324
|
|
|
311
325
|
type TSelect = {
|
|
312
326
|
type?: string;
|
|
@@ -412,4 +426,4 @@ declare const generateMessage: (type: string, value: string | ReactNode, callbac
|
|
|
412
426
|
declare const generateMessageQuestion: (type: string, title: string, subtitle: string, callback?: () => void, buttonSubmit?: string, cancelCallback?: () => void) => TMessageQuestion;
|
|
413
427
|
declare const currencyNumber: (value: number) => string;
|
|
414
428
|
|
|
415
|
-
export { ButtonComponent, CheckboxComponent, DropDownComponent as DropdownComponent, ErrorComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TOnChangeValue, type TOption, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TState, type TUser, TabsContainer, TabsContent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, currencyNumber, debounce, dropBase, elipsis, formLabel, formatNumber, generateMessage, generateMessageQuestion, getStorage, headTable, multiElipsis, removeStorage, responseWidth, setStorage, thirdElipsis };
|
|
429
|
+
export { ButtonComponent, CheckboxComponent, DropDownComponent as DropdownComponent, ErrorComponent, FoContainer, FormContainer, HeaderContainer, IconComponent, ImageComponent, InfoGroup, InputComponent, InputGroup, InputWithRefComponent as InputRefComponent, type KeysToSnakeCase, LabelComponent, LinkComponent, ListContainer, LoadingComponent, MessageComponent, MessageQuestionComponent, MuteLabel, PanelContainer, PanelWrapper, type PartialBy, PopupComponent, ReactPortalComponent, SelectComponent, SingleFormContainer, type TActionMeta, type TChangeEvent, type TChannel, type TCloseDropdownFunction, type TDragEvent, type TDropdown, type TEnterEvent, type TFile, type TFileImage, type THierarchy, type TIdNum, type TIdStr, type TKeyboadEvent, type TLoadOption, type TMessage, type TMessageFunction, type TMessageQuestion, type TMessageQuestionFunction, type TMouseEvent, type TObject, type TOnChangeValue, type TOption, type TPage, type TPopup, type TPopupContainer, type TPopupFunction, type TPopupFunctionGroup, type TPopupFunctionParam, type TPopupOpenFunction, type TState, type TUser, TabsContainer, TabsContent, TextComponent, Title, UploadComponent, UploadDragDropComponent, type WithRequired, boxBase, capitalize, clearList, currencyNumber, debounce, dropBase, elipsis, formLabel, formatNumber, generateMessage, generateMessageQuestion, getStorage, headTable, multiElipsis, removeStorage, responseWidth, setStorage, thirdElipsis };
|