@inntechcorp/it-design 2.0.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 +37 -0
- package/dist/accordion/index.d.ts +14 -0
- package/dist/accordion/item/Item.d.ts +3 -0
- package/dist/accordion/item/styled.components.d.ts +7 -0
- package/dist/accordion/submenu/SubMenu.d.ts +2 -0
- package/dist/accordion/submenu/styled.components.d.ts +11 -0
- package/dist/alert/alert.style.error.d.ts +4 -0
- package/dist/alert/alert.style.info.d.ts +4 -0
- package/dist/alert/alert.style.success.d.ts +4 -0
- package/dist/alert/alert.style.warning.d.ts +4 -0
- package/dist/alert/index.d.ts +6 -0
- package/dist/alert/styled.d.ts +9 -0
- package/dist/alink/index.d.ts +2 -0
- package/dist/alink/styled.d.ts +5 -0
- package/dist/back-top/index.d.ts +1 -0
- package/dist/back-top/styled.components.d.ts +6 -0
- package/dist/button/button.style.SVG.d.ts +4 -0
- package/dist/button/button.style.circle.d.ts +4 -0
- package/dist/button/button.style.default.d.ts +4 -0
- package/dist/button/button.style.filled.d.ts +4 -0
- package/dist/button/button.style.ghost.d.ts +4 -0
- package/dist/button/button.style.icon.d.ts +5 -0
- package/dist/button/button.style.link.d.ts +4 -0
- package/dist/button/button.style.outline.d.ts +4 -0
- package/dist/button/button.style.size.d.ts +4 -0
- package/dist/button/button.style.solid.d.ts +4 -0
- package/dist/button/button.style.strecth.d.ts +4 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/styled.components.d.ts +15 -0
- package/dist/checkbox/group/index.d.ts +4 -0
- package/dist/checkbox/group/styled.d.ts +3 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/checkbox/styled.d.ts +9 -0
- package/dist/context/ITDContext.d.ts +23 -0
- package/dist/enums/enum.d.ts +41 -0
- package/dist/form/context/FormContext.d.ts +32 -0
- package/dist/form/context/FormStore.d.ts +11 -0
- package/dist/form/control/Control.d.ts +6 -0
- package/dist/form/control/styled.d.ts +3 -0
- package/dist/form/group/Group.d.ts +16 -0
- package/dist/form/group/styled.components.d.ts +5 -0
- package/dist/form/index.d.ts +20 -0
- package/dist/form/item/Item.d.ts +18 -0
- package/dist/form/validation/TCIdentity.d.ts +1 -0
- package/dist/form/validation/Validator.d.ts +14 -0
- package/dist/form/wrapper/FormWrapper.d.ts +15 -0
- package/dist/helpers/array/ChunkArray.d.ts +7 -0
- package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +1 -0
- package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +1 -0
- package/dist/helpers/binary/FormatBytes.d.ts +1 -0
- package/dist/helpers/binary/GetTypeByFileType.d.ts +2 -0
- package/dist/helpers/checker/CheckFileURL.d.ts +1 -0
- package/dist/helpers/checker/FileChecker.d.ts +7 -0
- package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +1 -0
- package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +1 -0
- package/dist/helpers/css/FindSelector.d.ts +1 -0
- package/dist/helpers/currency/ConvertCurrency.d.ts +1 -0
- package/dist/helpers/currency/GetByCurrency.d.ts +1 -0
- package/dist/helpers/currency/GetCurrencyFormat.d.ts +1 -0
- package/dist/helpers/currency/GetCurrencySymbol.d.ts +1 -0
- package/dist/helpers/currency/GetDecimalByCurrency.d.ts +1 -0
- package/dist/helpers/index.d.ts +22 -0
- package/dist/helpers/json/IsValidJSON.d.ts +1 -0
- package/dist/helpers/math/AddZero.d.ts +1 -0
- package/dist/helpers/promise/Wait.d.ts +1 -0
- package/dist/helpers/remover/RemoveUnits.d.ts +1 -0
- package/dist/helpers/string/UniUpperCase.d.ts +6 -0
- package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +4 -0
- package/dist/helpers/theme/UpdateThemeStyle.d.ts +5 -0
- package/dist/helpers/url/ValidURL.d.ts +1 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/useAddExternalCSS.d.ts +14 -0
- package/dist/hooks/useComponentSize.d.ts +6 -0
- package/dist/hooks/useConnectionStatus.d.ts +10 -0
- package/dist/hooks/useConstructor.d.ts +11 -0
- package/dist/hooks/useCoreFetch.d.ts +37 -0
- package/dist/hooks/useCreateDynamicStyle.d.ts +10 -0
- package/dist/hooks/useCreateStyledStyle.d.ts +13 -0
- package/dist/hooks/useMultiQuery.d.ts +7 -0
- package/dist/hooks/useOnClickOutside.d.ts +12 -0
- package/dist/hooks/useOnESCKeyDown.d.ts +10 -0
- package/dist/hooks/useOnResize.d.ts +10 -0
- package/dist/hooks/useReCaptcha.d.ts +7 -0
- package/dist/hooks/useSingleQuery.d.ts +3 -0
- package/dist/icons/Arrow.d.ts +6 -0
- package/dist/icons/BackToTop.d.ts +6 -0
- package/dist/icons/Checkmark.d.ts +6 -0
- package/dist/icons/InlineSelectArrow.d.ts +6 -0
- package/dist/icons/Lock.d.ts +6 -0
- package/dist/icons/Picture.d.ts +6 -0
- package/dist/icons/Trash.d.ts +6 -0
- package/dist/icons/Upload.d.ts +6 -0
- package/dist/icons/ZoomIn.d.ts +6 -0
- package/dist/icons/ZoomOut.d.ts +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/index.cjs.js +971 -0
- package/dist/index.d.mts +73 -0
- package/dist/index.d.ts +1120 -0
- package/dist/index.esm.js +971 -0
- package/dist/input/index.d.ts +9 -0
- package/dist/input/styled.components.d.ts +36 -0
- package/dist/modal/container/ModalContainer.d.ts +12 -0
- package/dist/modal/container/styled.components.d.ts +6 -0
- package/dist/modal/context/ModalContext.d.ts +64 -0
- package/dist/modal/index.d.ts +14 -0
- package/dist/modal/modal/Modal.d.ts +9 -0
- package/dist/modal/modal/styled.components.d.ts +24 -0
- package/dist/notification/context/NotificationsContext.d.ts +8 -0
- package/dist/notification/index.d.ts +14 -0
- package/dist/result/index.d.ts +15 -0
- package/dist/result/styled.components.d.ts +17 -0
- package/dist/select/index.d.ts +10 -0
- package/dist/select/menu/Menu.d.ts +13 -0
- package/dist/select/menu/styled.components.d.ts +12 -0
- package/dist/select/option/Option.d.ts +16 -0
- package/dist/select/option/styled.components.d.ts +6 -0
- package/dist/select/style.settings.d.ts +17 -0
- package/dist/select/styled.components.d.ts +5 -0
- package/dist/select/toggle/Toggle.d.ts +17 -0
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +9 -0
- package/dist/select/toggle/label/floating/styled.components.d.ts +9 -0
- package/dist/select/toggle/label/single/SingleLabel.d.ts +8 -0
- package/dist/select/toggle/label/single/styled.components.d.ts +7 -0
- package/dist/select/toggle/styled.components.d.ts +29 -0
- package/dist/spin/index.d.ts +8 -0
- package/dist/spin/styled.components.d.ts +10 -0
- package/dist/stories/Accordion.d.ts +6 -0
- package/dist/stories/Accordion.stories.d.ts +20 -0
- package/dist/stories/Alert.d.ts +2 -0
- package/dist/stories/Alert.stories.d.ts +21 -0
- package/dist/stories/Button.d.ts +3 -0
- package/dist/stories/Button.stories.d.ts +27 -0
- package/dist/stories/ButtonIcon.d.ts +2 -0
- package/dist/stories/Checkbox.d.ts +2 -0
- package/dist/stories/Checkbox.stories.d.ts +21 -0
- package/dist/stories/CheckboxGroup.d.ts +2 -0
- package/dist/stories/CheckboxGroup.stories.d.ts +21 -0
- package/dist/stories/Form.d.ts +2 -0
- package/dist/stories/Form.stories.d.ts +20 -0
- package/dist/stories/Header.d.ts +3 -0
- package/dist/stories/Header.stories.d.ts +19 -0
- package/dist/stories/Input.d.ts +3 -0
- package/dist/stories/Input.stories.d.ts +22 -0
- package/dist/stories/ModalManager.d.ts +3 -0
- package/dist/stories/ModalManager.stories.d.ts +21 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.stories.d.ts +13 -0
- package/dist/stories/Upload.d.ts +2 -0
- package/dist/stories/Upload.stories.d.ts +20 -0
- package/dist/stories/root/index.d.ts +6 -0
- package/dist/switch/index.d.ts +4 -0
- package/dist/switch/styled.d.ts +6 -0
- package/dist/tinyscrollbar/index.d.ts +7 -0
- package/dist/tinyscrollbar/scroll.styled.d.ts +3 -0
- package/dist/tinyscrollbar/styled.components.d.ts +7 -0
- package/dist/types/AccordionItemProps.d.ts +8 -0
- package/dist/types/AccordionProps.d.ts +12 -0
- package/dist/types/AccordionSubMenuProps.d.ts +17 -0
- package/dist/types/AlertProps.d.ts +11 -0
- package/dist/types/ButtonProps.d.ts +41 -0
- package/dist/types/CheckboxProps.d.ts +38 -0
- package/dist/types/ChildrenProps.d.ts +1 -0
- package/dist/types/FormProps.d.ts +50 -0
- package/dist/types/ITDImperativeFuncProps.d.ts +10 -0
- package/dist/types/InputProps.d.ts +33 -0
- package/dist/types/ModalProps.d.ts +190 -0
- package/dist/types/NotificationsProps.d.ts +9 -0
- package/dist/types/SelectProps.d.ts +25 -0
- package/dist/types/SingleQueryProps.d.ts +6 -0
- package/dist/types/SwitchProps.d.ts +10 -0
- package/dist/types/UploadProps.d.ts +41 -0
- package/dist/upload/index.d.ts +14 -0
- package/dist/upload/styled.d.ts +40 -0
- package/package.json +183 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { InputProps, ITDImperativeFuncProps } from '../index';
|
|
3
|
+
/**
|
|
4
|
+
* https://github.com/sanniassin/react-input-mask
|
|
5
|
+
* http://sanniassin.github.io/react-input-mask/demo.html
|
|
6
|
+
* https://dev.to/adrianbdesigns/let-s-create-a-floating-label-input-with-html-and-css-only-4mo8
|
|
7
|
+
*/
|
|
8
|
+
declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<ITDImperativeFuncProps>>;
|
|
9
|
+
export default Input;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const Content: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Middle: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const IconsWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
declare const Prefix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const Suffix: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const Locked: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
declare const AddonBefore: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, never>> & string;
|
|
12
|
+
declare const AddonAfter: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, never>> & string;
|
|
15
|
+
declare const LockIconWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
16
|
+
className: any;
|
|
17
|
+
height: any;
|
|
18
|
+
width: any;
|
|
19
|
+
}, never>> & string & Omit<({ className, height, width }: {
|
|
20
|
+
className: any;
|
|
21
|
+
height: any;
|
|
22
|
+
width: any;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
24
|
+
declare const ErrorTooltip: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
25
|
+
declare const ErrorBorder: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
26
|
+
declare const HiddenVisually: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
27
|
+
declare const Success: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
28
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
29
|
+
}, never>> & string;
|
|
30
|
+
declare const Warning: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
31
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
+
}, never>> & string;
|
|
33
|
+
declare const Failed: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
34
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
35
|
+
}, never>> & string;
|
|
36
|
+
export { Wrapper, Middle, Content, Prefix, Suffix, Locked, AddonBefore, AddonAfter, IconsWrapper, LockIconWrapper, ErrorTooltip, ErrorBorder, HiddenVisually, Success, Warning, Failed };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactPortal } from "react";
|
|
2
|
+
import { ModalProps } from "types/ModalProps";
|
|
3
|
+
import { ModalContainerProps } from "../context/ModalContext";
|
|
4
|
+
type ContainerExtraProps = {
|
|
5
|
+
/**
|
|
6
|
+
* All modals shown or to be shown.
|
|
7
|
+
*/
|
|
8
|
+
modals: ModalProps[];
|
|
9
|
+
};
|
|
10
|
+
type ModalType = ModalContainerProps & ContainerExtraProps;
|
|
11
|
+
declare const ModalContainer: ({ onShowModal, onRemoveModal, onModalEvent, modals }: ModalType) => ReactPortal | null;
|
|
12
|
+
export default ModalContainer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$show: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export { Wrapper, Overlay };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalState } from "enums/enum";
|
|
3
|
+
import { ModalProps } from "types/ModalProps";
|
|
4
|
+
export type ModalContextType = {
|
|
5
|
+
/**
|
|
6
|
+
* Opens a new modal with the provided information of the modal to be opened.
|
|
7
|
+
*
|
|
8
|
+
* @param data Contains the desired parameters for opening a new modal `ModalProps`.
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
showModal: (data: ModalProps) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Dismisses the currently open modal with the ID of the modal to be closed.
|
|
14
|
+
*
|
|
15
|
+
* @param id ID of the modal to be dismissed.
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
removeModal: (id: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
removeAllModals: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Triggered whenever any event related to modals occurs.
|
|
26
|
+
*/
|
|
27
|
+
modalEvent: {
|
|
28
|
+
event: ModalState;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Returns whether a modal is visible or not.
|
|
33
|
+
*
|
|
34
|
+
* @param id The visibility information of the desired modal with its ID.
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
isVisible: (id: string) => boolean;
|
|
38
|
+
};
|
|
39
|
+
export type ModalContainerProps = {
|
|
40
|
+
/**
|
|
41
|
+
* Called when another modal is requested to be shown from within a modal.
|
|
42
|
+
*
|
|
43
|
+
* @param data Contains the desired parameters for opening a new modal `ModalProps`.
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
onShowModal: (data: ModalProps) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Called when it's requested to dismiss an open modal.
|
|
49
|
+
*
|
|
50
|
+
* @param id ID of the modal to be dismissed.
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
53
|
+
onRemoveModal: (id: string) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Called on any event related to modals.
|
|
56
|
+
*
|
|
57
|
+
* @param event The modal event that occurred.
|
|
58
|
+
* @param id The ID of the modal.
|
|
59
|
+
* @returns
|
|
60
|
+
*/
|
|
61
|
+
onModalEvent: (event: ModalState, id: string) => void;
|
|
62
|
+
};
|
|
63
|
+
declare const ModalContext: import("react").Context<ModalContextType>;
|
|
64
|
+
export default ModalContext;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModalContextType } from "./context/ModalContext";
|
|
2
|
+
export declare const ModalProvider: ({ children }: {
|
|
3
|
+
children: any;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Use Modal hook.
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
declare const useModal: () => ModalContextType;
|
|
10
|
+
declare const ModalManager: {
|
|
11
|
+
useModal: () => ModalContextType;
|
|
12
|
+
};
|
|
13
|
+
export { useModal };
|
|
14
|
+
export default ModalManager;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ModalProps } from 'types/ModalProps';
|
|
3
|
+
import { ModalContainerProps } from '../context/ModalContext';
|
|
4
|
+
type ModalExtraProps = {
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
};
|
|
7
|
+
type ModalType = ModalProps & ModalContainerProps & ModalExtraProps;
|
|
8
|
+
declare const Modal: FC<ModalType>;
|
|
9
|
+
export default Modal;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const ModalInnerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const ModalBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$width: string;
|
|
6
|
+
}>> & string;
|
|
7
|
+
declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const ModalInnerContentBefore: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$padding?: string | undefined;
|
|
10
|
+
}>> & string;
|
|
11
|
+
declare const ModalInnerContentAfter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
12
|
+
$padding?: string | undefined;
|
|
13
|
+
}>> & string;
|
|
14
|
+
declare const ModalInnerContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
$padding?: string | undefined;
|
|
16
|
+
}>> & string;
|
|
17
|
+
declare const ModalHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
18
|
+
declare const ModalFooter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
20
|
+
declare const ModalEnter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
21
|
+
declare const ModalEnterActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
22
|
+
declare const ModalExit: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
23
|
+
declare const ModalExitActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
24
|
+
export { Wrapper, ModalInnerWrapper, ModalBody, ModalContent, ModalInnerContent, ModalInnerContentBefore, ModalInnerContentAfter, ModalHeader, ModalFooter, CloseButton, ModalEnter, ModalEnterActive, ModalExit, ModalExitActive };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NotificationsProps } from "../../index";
|
|
3
|
+
export type NotificationContextType = {
|
|
4
|
+
addNotification: (notification: NotificationsProps) => void;
|
|
5
|
+
removeNotification: (id: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const NotificationContext: import("react").Context<NotificationContextType>;
|
|
8
|
+
export default NotificationContext;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NotificationContextType } from "./context/NotificationsContext.jsx";
|
|
2
|
+
export declare const NotificationProvider: ({ children }: {
|
|
3
|
+
children: any;
|
|
4
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/**
|
|
6
|
+
* Use Modal hook.
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
declare const useNotifications: () => NotificationContextType;
|
|
10
|
+
declare const Notification: {
|
|
11
|
+
useNotifications: () => NotificationContextType;
|
|
12
|
+
};
|
|
13
|
+
export { useNotifications };
|
|
14
|
+
export default Notification;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ResultProps = {
|
|
2
|
+
image: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
extra?: JSX.Element | null;
|
|
7
|
+
footer?: JSX.Element | null;
|
|
8
|
+
fill?: boolean;
|
|
9
|
+
autoCenter?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const Result: {
|
|
12
|
+
({ image, title, description, extra, footer, type, fill, autoCenter }: ResultProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default Result;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
3
|
+
declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$autoCenter: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
+
$fill: string;
|
|
8
|
+
$autoCenter: boolean;
|
|
9
|
+
$type: string;
|
|
10
|
+
}>> & string;
|
|
11
|
+
declare const ImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
declare const Extras: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
declare const Footer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
declare const Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
declare const ContentDescription: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
17
|
+
export { Wrapper, ContentWrapper, Content, ImageWrapper, Extras, Footer, Body, Title, ContentDescription };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RefAttributes, ForwardRefExoticComponent, PropsWithoutRef } from 'react';
|
|
2
|
+
import Option from './option/Option';
|
|
3
|
+
import { ITDImperativeFuncProps, SelectProps } from '../index';
|
|
4
|
+
type SelectSubComponentProps = {
|
|
5
|
+
Option: typeof Option;
|
|
6
|
+
};
|
|
7
|
+
type SelectComponentProps = ForwardRefExoticComponent<PropsWithoutRef<SelectProps> & RefAttributes<ITDImperativeFuncProps>> & SelectSubComponentProps;
|
|
8
|
+
declare const Select: SelectComponentProps;
|
|
9
|
+
export { Option };
|
|
10
|
+
export default Select;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
|
+
type MenuProps = {
|
|
3
|
+
value: string | number | [];
|
|
4
|
+
position: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
mode: string;
|
|
7
|
+
children: ChildrenProps;
|
|
8
|
+
onChange: (value: string | string[] | number | number[], label?: string) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default function Menu({ value, position, direction, mode, isOpen, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import TinyScrollbar from '../../tinyscrollbar';
|
|
3
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const BodyWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
5
|
+
className: string;
|
|
6
|
+
children: import("../../types/ChildrenProps").ChildrenProps;
|
|
7
|
+
}, never>> & string & Omit<typeof TinyScrollbar, keyof import("react").Component<any, {}, any>>;
|
|
8
|
+
declare const ModalEnter: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
declare const ModalEnterActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
declare const ModalExit: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
declare const ModalExitActive: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export { Wrapper, BodyWrapper, ModalEnter, ModalEnterActive, ModalExit, ModalExitActive };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
type OptionsProps = {
|
|
4
|
+
icon?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
mode?: string;
|
|
8
|
+
checked?: false;
|
|
9
|
+
onChange?: (value: string, checked: boolean, children: ChildrenProps) => null;
|
|
10
|
+
children?: ChildrenProps;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
13
|
+
({ icon, image, value, mode, checked, onChange, children }: OptionsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
}>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
3
|
+
declare const ImageWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const PreIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const Single: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export { Wrapper, ImageWrapper, PreIcon, Single };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const getImageSizeBySize: (size: string) => {
|
|
2
|
+
width: string;
|
|
3
|
+
height: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const getOptionSizeBySize: (size: string) => {
|
|
6
|
+
padding: string;
|
|
7
|
+
height: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const getSelectSizeBySize: (size: string) => {
|
|
10
|
+
padding: string;
|
|
11
|
+
height: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const getFontSizeBySize: (size: string) => {
|
|
14
|
+
fontSize: string;
|
|
15
|
+
lineHeight: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$size: string;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export { Wrapper };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SelectOptionProps } from '../../index';
|
|
2
|
+
type ToggleProps = {
|
|
3
|
+
label: string | number | [];
|
|
4
|
+
value: string | number | [];
|
|
5
|
+
errorMessage: string;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
locked: boolean;
|
|
8
|
+
labelType: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
image: string;
|
|
12
|
+
size: string;
|
|
13
|
+
selected: SelectOptionProps;
|
|
14
|
+
onChange: (open: boolean) => void;
|
|
15
|
+
};
|
|
16
|
+
declare const Toggle: ({ label, value, errorMessage, isOpen, locked, labelType, placeholder, icon, image, size, selected, onChange }: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Toggle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type FloatingLabelProps = {
|
|
2
|
+
id?: string;
|
|
3
|
+
value: string | number | [];
|
|
4
|
+
label: string | number | [];
|
|
5
|
+
placeholder: string;
|
|
6
|
+
size: string;
|
|
7
|
+
};
|
|
8
|
+
declare const FloatingLabel: ({ id, value, label, placeholder, size }: FloatingLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default FloatingLabel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
4
|
+
declare const InputLabel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
5
|
+
declare const HiddenVisually: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
6
|
+
declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
7
|
+
$size: string;
|
|
8
|
+
}>> & string;
|
|
9
|
+
export { Wrapper, Label, InputWrapper, HiddenVisually, InputLabel };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type SingleLabelProps = {
|
|
2
|
+
value: string | number | [];
|
|
3
|
+
label: string | number | [];
|
|
4
|
+
placeholder: string | number;
|
|
5
|
+
size: string;
|
|
6
|
+
};
|
|
7
|
+
declare const SingleLabel: ({ value, label, placeholder, size }: SingleLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default SingleLabel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const InputWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
4
|
+
declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
+
$size: string;
|
|
6
|
+
}>> & string;
|
|
7
|
+
export { Wrapper, Label, InputWrapper };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$open: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
declare const PreIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
declare const Success: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}, never>> & string;
|
|
11
|
+
declare const Warning: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
12
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
13
|
+
}, never>> & string;
|
|
14
|
+
declare const Failed: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
15
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
16
|
+
}, never>> & string;
|
|
17
|
+
declare const LockIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<{
|
|
18
|
+
className: any;
|
|
19
|
+
height: any;
|
|
20
|
+
width: any;
|
|
21
|
+
}, never>> & string & Omit<({ className, height, width }: {
|
|
22
|
+
className: any;
|
|
23
|
+
height: any;
|
|
24
|
+
width: any;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
26
|
+
declare const Suffix: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
+
declare const ErrorTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
28
|
+
declare const ErrorBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
29
|
+
export { Wrapper, Suffix, Label, Icon, PreIcon, ErrorTooltip, ErrorBorder, Success, Warning, Failed, LockIconWrapper };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const SpinWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$size: string;
|
|
5
|
+
}>> & string;
|
|
6
|
+
declare const Spinner: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
declare const ChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
8
|
+
$updating: boolean;
|
|
9
|
+
}>> & string;
|
|
10
|
+
export { Wrapper, Spinner, ChildrenWrapper, SpinWrapper };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onChange: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Primary: Story;
|
|
18
|
+
export declare const Secondary: Story;
|
|
19
|
+
export declare const Large: Story;
|
|
20
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Info: Story;
|
|
18
|
+
export declare const InfoWithoutTitle: Story;
|
|
19
|
+
export declare const Warning: Story;
|
|
20
|
+
export declare const Success: Story;
|
|
21
|
+
export declare const Error: Story;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Solid: Story;
|
|
19
|
+
export declare const Filled: Story;
|
|
20
|
+
export declare const Outline: Story;
|
|
21
|
+
export declare const Ghost: Story;
|
|
22
|
+
export declare const Link: Story;
|
|
23
|
+
export declare const Circle: Story;
|
|
24
|
+
export declare const CircleLoading: Story;
|
|
25
|
+
export declare const Loading: Story;
|
|
26
|
+
export declare const Disabled: Story;
|
|
27
|
+
export declare const Small: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Info: Story;
|
|
18
|
+
export declare const InfoWithoutTitle: Story;
|
|
19
|
+
export declare const Warning: Story;
|
|
20
|
+
export declare const Success: Story;
|
|
21
|
+
export declare const Error: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Info: Story;
|
|
18
|
+
export declare const InfoWithoutTitle: Story;
|
|
19
|
+
export declare const Warning: Story;
|
|
20
|
+
export declare const Success: Story;
|
|
21
|
+
export declare const Error: Story;
|