@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 @@
|
|
|
1
|
+
export declare function isValidURL(str: string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as useReCaptcha } from './useReCaptcha';
|
|
2
|
+
export { default as useConstructor } from './useConstructor';
|
|
3
|
+
export { default as useAddExternalCSS } from './useAddExternalCSS';
|
|
4
|
+
export { default as useCreateDynamicStyle } from './useCreateDynamicStyle';
|
|
5
|
+
export { default as useCreateStyledStyle } from './useCreateStyledStyle';
|
|
6
|
+
export { default as useOnClickOutside } from './useOnClickOutside';
|
|
7
|
+
export { default as useOnESCKeyDown } from './useOnESCKeyDown';
|
|
8
|
+
export { default as useSingleQuery } from './useSingleQuery';
|
|
9
|
+
export { default as useMultiQuery } from './useMultiQuery';
|
|
10
|
+
export { default as useOnResize } from './useOnResize';
|
|
11
|
+
export { default as useConnectionStatus } from './useConnectionStatus';
|
|
12
|
+
export { default as useComponentSize } from './useComponentSize';
|
|
13
|
+
export { default as useCoreFetch } from './useCoreFetch';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* ADD EXTERNAL CSS
|
|
4
|
+
*
|
|
5
|
+
* Dinamik css dosyalarını yüklemek için kullanılır. Eğer yüklenecek
|
|
6
|
+
* olan css dosyası daha önce eklenmiş ise tekrar yüklemez. Bunu yükleyen
|
|
7
|
+
* component ekrandan silinirse yüklediği yazı da silinir.
|
|
8
|
+
*
|
|
9
|
+
* @param link string
|
|
10
|
+
* @param temporary boolean
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
declare const useAddExternalCSS: (link: string, temporary?: boolean) => void;
|
|
14
|
+
export default useAddExternalCSS;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AxiosProgressEvent, Cancel } from 'axios';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* useCoreFetch
|
|
5
|
+
* --
|
|
6
|
+
*
|
|
7
|
+
* All API routes within the application pass through this class. It filters all
|
|
8
|
+
* responses returned from the API and processes them to their expected state.
|
|
9
|
+
* Then, it returns the success or failure status.
|
|
10
|
+
*
|
|
11
|
+
* Additionally, it retrieves and adds additional information such as language,
|
|
12
|
+
* token, currency, etc., from the user's cookie to API calls.
|
|
13
|
+
*
|
|
14
|
+
* @param changeLogout The function used to log out the user when called from places where
|
|
15
|
+
* context data such as React.Portal cannot be accessed needs to be passed.
|
|
16
|
+
* @param isUserLoggedOut User's logout information.
|
|
17
|
+
*
|
|
18
|
+
* @returns
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
declare const useCoreFetch: () => {
|
|
22
|
+
fetch: ({ action, requestMethod, addOrigin, params, queries, headers, cancelable, onFetched, onError, onCanceled, onProgress, }: {
|
|
23
|
+
action: string;
|
|
24
|
+
requestMethod?: string | undefined;
|
|
25
|
+
addOrigin?: boolean | undefined;
|
|
26
|
+
params?: {} | undefined;
|
|
27
|
+
queries?: {} | undefined;
|
|
28
|
+
headers?: {} | undefined;
|
|
29
|
+
cancelable?: boolean | undefined;
|
|
30
|
+
onFetched?: ((result: any) => void) | undefined;
|
|
31
|
+
onError?: ((err: string, code: number) => void) | undefined;
|
|
32
|
+
onCanceled?: ((message: Cancel) => void) | undefined;
|
|
33
|
+
onProgress?: ((event: AxiosProgressEvent) => void) | undefined;
|
|
34
|
+
}) => Promise<void>;
|
|
35
|
+
cancel: () => void;
|
|
36
|
+
};
|
|
37
|
+
export default useCoreFetch;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IStyledComponent } from 'styled-components';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* styled-component <> gibi kullanılmadığı zaman class içeriğini
|
|
5
|
+
* yazmıyor. Bu kod bunu çözüyor. styled class'ının değerini id'si
|
|
6
|
+
* ile birlikte alıp head'e kayıt ediyor ve component ekrandan
|
|
7
|
+
* kaldırıldığında kendini siliyor.
|
|
8
|
+
*
|
|
9
|
+
* @param styled
|
|
10
|
+
* @param handler
|
|
11
|
+
*/
|
|
12
|
+
declare const useCreateStyledStyle: (styled: IStyledComponent<any, any>, handler: (id: string) => void) => void;
|
|
13
|
+
export default useCreateStyledStyle;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MutableRefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* document objesine event listener ekler ve ref dışarısında
|
|
5
|
+
* herhangi bir alana tıklanıldığında ref'in kapatılmasını sağlar.
|
|
6
|
+
*
|
|
7
|
+
* @param ref
|
|
8
|
+
* @param handler
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
declare const useOnClickOutside: (ref: MutableRefObject<HTMLDivElement | null>, handler: (event: PointerEvent) => void) => void;
|
|
12
|
+
export default useOnClickOutside;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as LockIcon } from './Lock';
|
|
2
|
+
export { default as ArrowIcon } from './Arrow';
|
|
3
|
+
export { default as UploadIcon } from './Upload';
|
|
4
|
+
export { default as BackToTop } from './BackToTop';
|
|
5
|
+
export { default as Checkmark } from './Checkmark';
|
|
6
|
+
export { default as InlineSelectArrow } from './InlineSelectArrow';
|
|
7
|
+
export { default as Trash } from './Trash';
|
|
8
|
+
export { default as ZoomIn } from './ZoomIn';
|
|
9
|
+
export { default as ZoomOut } from './ZoomOut';
|
|
10
|
+
export { default as Picture } from './Picture';
|