@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.
Files changed (174) hide show
  1. package/README.md +37 -0
  2. package/dist/accordion/index.d.ts +14 -0
  3. package/dist/accordion/item/Item.d.ts +3 -0
  4. package/dist/accordion/item/styled.components.d.ts +7 -0
  5. package/dist/accordion/submenu/SubMenu.d.ts +2 -0
  6. package/dist/accordion/submenu/styled.components.d.ts +11 -0
  7. package/dist/alert/alert.style.error.d.ts +4 -0
  8. package/dist/alert/alert.style.info.d.ts +4 -0
  9. package/dist/alert/alert.style.success.d.ts +4 -0
  10. package/dist/alert/alert.style.warning.d.ts +4 -0
  11. package/dist/alert/index.d.ts +6 -0
  12. package/dist/alert/styled.d.ts +9 -0
  13. package/dist/alink/index.d.ts +2 -0
  14. package/dist/alink/styled.d.ts +5 -0
  15. package/dist/back-top/index.d.ts +1 -0
  16. package/dist/back-top/styled.components.d.ts +6 -0
  17. package/dist/button/button.style.SVG.d.ts +4 -0
  18. package/dist/button/button.style.circle.d.ts +4 -0
  19. package/dist/button/button.style.default.d.ts +4 -0
  20. package/dist/button/button.style.filled.d.ts +4 -0
  21. package/dist/button/button.style.ghost.d.ts +4 -0
  22. package/dist/button/button.style.icon.d.ts +5 -0
  23. package/dist/button/button.style.link.d.ts +4 -0
  24. package/dist/button/button.style.outline.d.ts +4 -0
  25. package/dist/button/button.style.size.d.ts +4 -0
  26. package/dist/button/button.style.solid.d.ts +4 -0
  27. package/dist/button/button.style.strecth.d.ts +4 -0
  28. package/dist/button/index.d.ts +3 -0
  29. package/dist/button/styled.components.d.ts +15 -0
  30. package/dist/checkbox/group/index.d.ts +4 -0
  31. package/dist/checkbox/group/styled.d.ts +3 -0
  32. package/dist/checkbox/index.d.ts +10 -0
  33. package/dist/checkbox/styled.d.ts +9 -0
  34. package/dist/context/ITDContext.d.ts +23 -0
  35. package/dist/enums/enum.d.ts +41 -0
  36. package/dist/form/context/FormContext.d.ts +32 -0
  37. package/dist/form/context/FormStore.d.ts +11 -0
  38. package/dist/form/control/Control.d.ts +6 -0
  39. package/dist/form/control/styled.d.ts +3 -0
  40. package/dist/form/group/Group.d.ts +16 -0
  41. package/dist/form/group/styled.components.d.ts +5 -0
  42. package/dist/form/index.d.ts +20 -0
  43. package/dist/form/item/Item.d.ts +18 -0
  44. package/dist/form/validation/TCIdentity.d.ts +1 -0
  45. package/dist/form/validation/Validator.d.ts +14 -0
  46. package/dist/form/wrapper/FormWrapper.d.ts +15 -0
  47. package/dist/helpers/array/ChunkArray.d.ts +7 -0
  48. package/dist/helpers/aspectratio/DetermineNewHeight.d.ts +1 -0
  49. package/dist/helpers/aspectratio/DetermineNewWidth.d.ts +1 -0
  50. package/dist/helpers/binary/FormatBytes.d.ts +1 -0
  51. package/dist/helpers/binary/GetTypeByFileType.d.ts +2 -0
  52. package/dist/helpers/checker/CheckFileURL.d.ts +1 -0
  53. package/dist/helpers/checker/FileChecker.d.ts +7 -0
  54. package/dist/helpers/country/GetCountryCodeByCurrencyCode.d.ts +1 -0
  55. package/dist/helpers/country/GetCountryCodeByLanguage.d.ts +1 -0
  56. package/dist/helpers/css/FindSelector.d.ts +1 -0
  57. package/dist/helpers/currency/ConvertCurrency.d.ts +1 -0
  58. package/dist/helpers/currency/GetByCurrency.d.ts +1 -0
  59. package/dist/helpers/currency/GetCurrencyFormat.d.ts +1 -0
  60. package/dist/helpers/currency/GetCurrencySymbol.d.ts +1 -0
  61. package/dist/helpers/currency/GetDecimalByCurrency.d.ts +1 -0
  62. package/dist/helpers/index.d.ts +22 -0
  63. package/dist/helpers/json/IsValidJSON.d.ts +1 -0
  64. package/dist/helpers/math/AddZero.d.ts +1 -0
  65. package/dist/helpers/promise/Wait.d.ts +1 -0
  66. package/dist/helpers/remover/RemoveUnits.d.ts +1 -0
  67. package/dist/helpers/string/UniUpperCase.d.ts +6 -0
  68. package/dist/helpers/theme/AddDefaultThemeStyle.d.ts +4 -0
  69. package/dist/helpers/theme/UpdateThemeStyle.d.ts +5 -0
  70. package/dist/helpers/url/ValidURL.d.ts +1 -0
  71. package/dist/hooks/index.d.ts +13 -0
  72. package/dist/hooks/useAddExternalCSS.d.ts +14 -0
  73. package/dist/hooks/useComponentSize.d.ts +6 -0
  74. package/dist/hooks/useConnectionStatus.d.ts +10 -0
  75. package/dist/hooks/useConstructor.d.ts +11 -0
  76. package/dist/hooks/useCoreFetch.d.ts +37 -0
  77. package/dist/hooks/useCreateDynamicStyle.d.ts +10 -0
  78. package/dist/hooks/useCreateStyledStyle.d.ts +13 -0
  79. package/dist/hooks/useMultiQuery.d.ts +7 -0
  80. package/dist/hooks/useOnClickOutside.d.ts +12 -0
  81. package/dist/hooks/useOnESCKeyDown.d.ts +10 -0
  82. package/dist/hooks/useOnResize.d.ts +10 -0
  83. package/dist/hooks/useReCaptcha.d.ts +7 -0
  84. package/dist/hooks/useSingleQuery.d.ts +3 -0
  85. package/dist/icons/Arrow.d.ts +6 -0
  86. package/dist/icons/BackToTop.d.ts +6 -0
  87. package/dist/icons/Checkmark.d.ts +6 -0
  88. package/dist/icons/InlineSelectArrow.d.ts +6 -0
  89. package/dist/icons/Lock.d.ts +6 -0
  90. package/dist/icons/Picture.d.ts +6 -0
  91. package/dist/icons/Trash.d.ts +6 -0
  92. package/dist/icons/Upload.d.ts +6 -0
  93. package/dist/icons/ZoomIn.d.ts +6 -0
  94. package/dist/icons/ZoomOut.d.ts +6 -0
  95. package/dist/icons/index.d.ts +10 -0
  96. package/dist/index.cjs.js +971 -0
  97. package/dist/index.d.mts +73 -0
  98. package/dist/index.d.ts +1120 -0
  99. package/dist/index.esm.js +971 -0
  100. package/dist/input/index.d.ts +9 -0
  101. package/dist/input/styled.components.d.ts +36 -0
  102. package/dist/modal/container/ModalContainer.d.ts +12 -0
  103. package/dist/modal/container/styled.components.d.ts +6 -0
  104. package/dist/modal/context/ModalContext.d.ts +64 -0
  105. package/dist/modal/index.d.ts +14 -0
  106. package/dist/modal/modal/Modal.d.ts +9 -0
  107. package/dist/modal/modal/styled.components.d.ts +24 -0
  108. package/dist/notification/context/NotificationsContext.d.ts +8 -0
  109. package/dist/notification/index.d.ts +14 -0
  110. package/dist/result/index.d.ts +15 -0
  111. package/dist/result/styled.components.d.ts +17 -0
  112. package/dist/select/index.d.ts +10 -0
  113. package/dist/select/menu/Menu.d.ts +13 -0
  114. package/dist/select/menu/styled.components.d.ts +12 -0
  115. package/dist/select/option/Option.d.ts +16 -0
  116. package/dist/select/option/styled.components.d.ts +6 -0
  117. package/dist/select/style.settings.d.ts +17 -0
  118. package/dist/select/styled.components.d.ts +5 -0
  119. package/dist/select/toggle/Toggle.d.ts +17 -0
  120. package/dist/select/toggle/label/floating/FloatingLabel.d.ts +9 -0
  121. package/dist/select/toggle/label/floating/styled.components.d.ts +9 -0
  122. package/dist/select/toggle/label/single/SingleLabel.d.ts +8 -0
  123. package/dist/select/toggle/label/single/styled.components.d.ts +7 -0
  124. package/dist/select/toggle/styled.components.d.ts +29 -0
  125. package/dist/spin/index.d.ts +8 -0
  126. package/dist/spin/styled.components.d.ts +10 -0
  127. package/dist/stories/Accordion.d.ts +6 -0
  128. package/dist/stories/Accordion.stories.d.ts +20 -0
  129. package/dist/stories/Alert.d.ts +2 -0
  130. package/dist/stories/Alert.stories.d.ts +21 -0
  131. package/dist/stories/Button.d.ts +3 -0
  132. package/dist/stories/Button.stories.d.ts +27 -0
  133. package/dist/stories/ButtonIcon.d.ts +2 -0
  134. package/dist/stories/Checkbox.d.ts +2 -0
  135. package/dist/stories/Checkbox.stories.d.ts +21 -0
  136. package/dist/stories/CheckboxGroup.d.ts +2 -0
  137. package/dist/stories/CheckboxGroup.stories.d.ts +21 -0
  138. package/dist/stories/Form.d.ts +2 -0
  139. package/dist/stories/Form.stories.d.ts +20 -0
  140. package/dist/stories/Header.d.ts +3 -0
  141. package/dist/stories/Header.stories.d.ts +19 -0
  142. package/dist/stories/Input.d.ts +3 -0
  143. package/dist/stories/Input.stories.d.ts +22 -0
  144. package/dist/stories/ModalManager.d.ts +3 -0
  145. package/dist/stories/ModalManager.stories.d.ts +21 -0
  146. package/dist/stories/Page.d.ts +3 -0
  147. package/dist/stories/Page.stories.d.ts +13 -0
  148. package/dist/stories/Upload.d.ts +2 -0
  149. package/dist/stories/Upload.stories.d.ts +20 -0
  150. package/dist/stories/root/index.d.ts +6 -0
  151. package/dist/switch/index.d.ts +4 -0
  152. package/dist/switch/styled.d.ts +6 -0
  153. package/dist/tinyscrollbar/index.d.ts +7 -0
  154. package/dist/tinyscrollbar/scroll.styled.d.ts +3 -0
  155. package/dist/tinyscrollbar/styled.components.d.ts +7 -0
  156. package/dist/types/AccordionItemProps.d.ts +8 -0
  157. package/dist/types/AccordionProps.d.ts +12 -0
  158. package/dist/types/AccordionSubMenuProps.d.ts +17 -0
  159. package/dist/types/AlertProps.d.ts +11 -0
  160. package/dist/types/ButtonProps.d.ts +41 -0
  161. package/dist/types/CheckboxProps.d.ts +38 -0
  162. package/dist/types/ChildrenProps.d.ts +1 -0
  163. package/dist/types/FormProps.d.ts +50 -0
  164. package/dist/types/ITDImperativeFuncProps.d.ts +10 -0
  165. package/dist/types/InputProps.d.ts +33 -0
  166. package/dist/types/ModalProps.d.ts +190 -0
  167. package/dist/types/NotificationsProps.d.ts +9 -0
  168. package/dist/types/SelectProps.d.ts +25 -0
  169. package/dist/types/SingleQueryProps.d.ts +6 -0
  170. package/dist/types/SwitchProps.d.ts +10 -0
  171. package/dist/types/UploadProps.d.ts +41 -0
  172. package/dist/upload/index.d.ts +14 -0
  173. package/dist/upload/styled.d.ts +40 -0
  174. package/package.json +183 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ *
4
+ *
5
+ */
6
+ export default function UniUpperCase(value?: string, lang?: string): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ *
3
+ */
4
+ export default function AddDefaultThemeStyle(): void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ *
3
+ * @param {*} theme
4
+ */
5
+ export default function UpdateThemeStyle(theme: string): void;
@@ -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,6 @@
1
+ import { RefObject } from "react";
2
+ declare const useComponentSize: (comRef: RefObject<any>) => {
3
+ width: number;
4
+ height: number;
5
+ }[];
6
+ export default useComponentSize;
@@ -0,0 +1,10 @@
1
+ /**
2
+ *
3
+ * window objesine event listener ekler ve
4
+ * kullanıcı online ve offline olduğunda çağrılır.
5
+ *
6
+ * @param {*} handler
7
+ *
8
+ */
9
+ declare const useConnectionStatus: (handler: (event: Event) => void) => void;
10
+ export default useConnectionStatus;
@@ -0,0 +1,11 @@
1
+ /**
2
+ *
3
+ * This hook acting like a class constructor.
4
+ *
5
+ * @param {*} callBack
6
+ *
7
+ * @returns
8
+ *
9
+ */
10
+ declare const useConstructor: (callBack?: () => void) => void;
11
+ export default useConstructor;
@@ -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,10 @@
1
+ /**
2
+ *
3
+ *
4
+ *
5
+ * @param {*} id
6
+ * @param {*} style
7
+ * @param {*} handler
8
+ */
9
+ declare const useCreateDynamicStyle: (style: {}, handler: (id: string) => void, id?: string) => void;
10
+ export default useCreateDynamicStyle;
@@ -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,7 @@
1
+ declare const useMultiQuery: () => {
2
+ set: (queries?: {
3
+ type: string;
4
+ value: string;
5
+ }[]) => void;
6
+ };
7
+ export default useMultiQuery;
@@ -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
+ /**
2
+ *
3
+ * document objesine event listener ekler ve ESC tuşuna basıldığında
4
+ * çağrılır.
5
+ *
6
+ * @param {*} handler
7
+ *
8
+ */
9
+ declare const useOnESCKeyDown: (handler: (event: Event) => void) => void;
10
+ export default useOnESCKeyDown;
@@ -0,0 +1,10 @@
1
+ /**
2
+ *
3
+ * window objesine event listener ekler ve
4
+ * sayfa resize olduğunda çağrılır.
5
+ *
6
+ * @param {*} handler
7
+ *
8
+ */
9
+ declare const useOnResize: (handler: (event: Event) => void) => void;
10
+ export default useOnResize;
@@ -0,0 +1,7 @@
1
+ type Nullable<T> = T | null;
2
+ type THandler = Nullable<(value: string | null) => void>;
3
+ declare const useReCaptcha: (handler: THandler) => {
4
+ loadReCaptcha: (key: string) => void;
5
+ executeReCaptcha: () => void;
6
+ };
7
+ export default useReCaptcha;
@@ -0,0 +1,3 @@
1
+ import { SingleQueryProps } from "../index";
2
+ declare const useSingleQuery: () => SingleQueryProps;
3
+ export default useSingleQuery;
@@ -0,0 +1,6 @@
1
+ declare const Arrow: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Arrow;
@@ -0,0 +1,6 @@
1
+ declare const BackToTop: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height: any;
4
+ width: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default BackToTop;
@@ -0,0 +1,6 @@
1
+ declare const Checkmark: ({ className, height, width }: {
2
+ className: any;
3
+ height: any;
4
+ width: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Checkmark;
@@ -0,0 +1,6 @@
1
+ declare const InlineSelectArrow: ({ className, height, width }: {
2
+ className: any;
3
+ height: any;
4
+ width: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default InlineSelectArrow;
@@ -0,0 +1,6 @@
1
+ declare const Lock: ({ className, height, width }: {
2
+ className: any;
3
+ height: any;
4
+ width: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Lock;
@@ -0,0 +1,6 @@
1
+ declare const Picture: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Picture;
@@ -0,0 +1,6 @@
1
+ declare const Trash: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Trash;
@@ -0,0 +1,6 @@
1
+ declare const Upload: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default Upload;
@@ -0,0 +1,6 @@
1
+ declare const ZoomIn: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default ZoomIn;
@@ -0,0 +1,6 @@
1
+ declare const ZoomOut: ({ className, height, width }: {
2
+ className?: string | undefined;
3
+ height?: number | undefined;
4
+ width?: number | undefined;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default ZoomOut;
@@ -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';