@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
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Inn.Tech Design V1 #
|
|
2
|
+
|
|
3
|
+
Config
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
The design library developed for Inn.Tech websites.
|
|
7
|
+
|
|
8
|
+
Thanks!
|
|
9
|
+
|
|
10
|
+
## Warning ##
|
|
11
|
+
|
|
12
|
+
If you get an error like this;
|
|
13
|
+
`[!] (plugin styles) Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer`
|
|
14
|
+
`lib/multiselect/style.module.scss`
|
|
15
|
+
|
|
16
|
+
You must use this command on terminal:
|
|
17
|
+
`export NODE_OPTIONS=--no-experimental-fetch`
|
|
18
|
+
|
|
19
|
+
## Authors ##
|
|
20
|
+
|
|
21
|
+
**Ali
|
|
22
|
+
|
|
23
|
+
## Copyright and license ##
|
|
24
|
+
|
|
25
|
+
Copyright 2024 Inn.Tech LLC.
|
|
26
|
+
|
|
27
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
28
|
+
you may not use this work except in compliance with the License.
|
|
29
|
+
You may obtain a copy of the License in the LICENSE file, or at:
|
|
30
|
+
|
|
31
|
+
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
32
|
+
|
|
33
|
+
Unless required by applicable law or agreed to in writing, software
|
|
34
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
35
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
36
|
+
See the License for the specific language governing permissions and
|
|
37
|
+
limitations under the License.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import SubMenu from './submenu/SubMenu';
|
|
3
|
+
import Item from './item/Item';
|
|
4
|
+
import { AccordionProps } from '../index';
|
|
5
|
+
type AccordionMenuSubComponents = {
|
|
6
|
+
SubMenu: typeof SubMenu;
|
|
7
|
+
Item: typeof Item;
|
|
8
|
+
};
|
|
9
|
+
type AccordionMenuProps = AccordionProps & {
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Accordion: FunctionComponent<AccordionMenuProps> & AccordionMenuSubComponents;
|
|
13
|
+
export { SubMenu };
|
|
14
|
+
export default Accordion;
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
$itemHeight: number;
|
|
4
|
+
$isActive: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
declare const Arrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export { Wrapper, Arrow };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AccordionSubMenuProps } from '../../index';
|
|
2
|
+
export default function SubMenu({ id, link, icon, title, isSelected, useLink, onlyOne, subMenuLinkArrow, subMenuHeight, itemHeight, iconSize, arrowSize, onChange, children }: AccordionSubMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 Icon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$size: number;
|
|
5
|
+
}>> & string;
|
|
6
|
+
declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, never>> & string;
|
|
7
|
+
declare const Arrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
|
|
8
|
+
declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$height: number;
|
|
10
|
+
}>> & string;
|
|
11
|
+
export { Wrapper, Title, Icon, Content, Arrow };
|
|
@@ -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 Title: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
4
|
+
declare const Description: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
5
|
+
declare const Texts: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
6
|
+
$noTitle: boolean;
|
|
7
|
+
}>> & string;
|
|
8
|
+
declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export { Wrapper, IconWrapper, Title, Description, Texts };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NavigationLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLAnchorElement | null) => void) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
|
|
4
|
+
}, never>> & string & Omit<import("react").ForwardRefExoticComponent<import("react-router-dom").NavLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, keyof import("react").Component<any, {}, any>>;
|
|
5
|
+
export { NavigationLink };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function BackTop(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 Show: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
4
|
+
$show: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export { Wrapper, Show };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ButtonProps } from '../index';
|
|
2
|
+
declare const Button: ({ id, disabled, loading, selected, circle, strecth, justify, contentPosition, type, variant, size, state, icon, href, target, className, children, onClick }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IIcon, ISVG } from 'types/ButtonProps';
|
|
3
|
+
declare const Icon: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IIcon>> & string;
|
|
4
|
+
declare const Element: 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>, keyof IIcon> & IIcon, "ref"> & {
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
|
+
}, never>> & string;
|
|
7
|
+
declare const SVG: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ISVG>> & string;
|
|
8
|
+
declare const Image: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & Omit<import("react").MemoExoticComponent<(props: any) => import("react/jsx-runtime").JSX.Element>, keyof import("react").Component<any, {}, any>>;
|
|
9
|
+
declare const Hide: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
10
|
+
$loading: string;
|
|
11
|
+
}>> & string;
|
|
12
|
+
declare const ClickButton: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IIcon>> & string;
|
|
13
|
+
declare const Link: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, IIcon>> & string;
|
|
14
|
+
declare const A: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, IIcon>> & string;
|
|
15
|
+
export { SVG, Hide, Element, Image, ClickButton, Link, A, Icon };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CheckboxGroupProps, ITDImperativeFuncProps } from '../../index';
|
|
3
|
+
declare const CheckboxGroup: import("react").ForwardRefExoticComponent<CheckboxGroupProps & import("react").RefAttributes<ITDImperativeFuncProps>>;
|
|
4
|
+
export default CheckboxGroup;
|
|
@@ -0,0 +1,3 @@
|
|
|
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
|
+
export { Wrapper };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
2
|
+
import CheckboxGroup from './group/index';
|
|
3
|
+
import { CheckboxProps, ITDImperativeFuncProps } from '../index';
|
|
4
|
+
type CheckboxSubComponentProps = {
|
|
5
|
+
Group: typeof CheckboxGroup;
|
|
6
|
+
};
|
|
7
|
+
type CheckboxComponentProps = ForwardRefExoticComponent<PropsWithoutRef<CheckboxProps> & RefAttributes<ITDImperativeFuncProps>> & CheckboxSubComponentProps;
|
|
8
|
+
declare const Checkbox: CheckboxComponentProps;
|
|
9
|
+
export { CheckboxGroup };
|
|
10
|
+
export default Checkbox;
|
|
@@ -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").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
3
|
+
declare const CheckboxInnerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Checkmark: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
5
|
+
$isChecked: boolean;
|
|
6
|
+
}>> & string;
|
|
7
|
+
declare const CheckboxInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
8
|
+
declare const ErrorTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
9
|
+
export { Wrapper, CheckboxInnerWrapper, CheckboxInput, Checkmark, ErrorTooltip };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChildrenProps } from "types/ChildrenProps";
|
|
3
|
+
export type ITDContextType = {
|
|
4
|
+
theme: string;
|
|
5
|
+
brokenImage: string;
|
|
6
|
+
dummyTeamImage: string;
|
|
7
|
+
dateFormat: string;
|
|
8
|
+
language: string;
|
|
9
|
+
locale: string;
|
|
10
|
+
changeTheme: (value: string) => void;
|
|
11
|
+
changeBrokenImage: (value: string) => void;
|
|
12
|
+
changeDummyTeamImage: (value: string) => void;
|
|
13
|
+
changeDateFormat: (value: string) => void;
|
|
14
|
+
changeLocale: (value: string) => void;
|
|
15
|
+
changeLanguage: (value: string) => void;
|
|
16
|
+
};
|
|
17
|
+
export type ITDProviderProps = {
|
|
18
|
+
theme: string;
|
|
19
|
+
children: ChildrenProps;
|
|
20
|
+
};
|
|
21
|
+
declare const ITDContext: import("react").Context<ITDContextType>;
|
|
22
|
+
export declare const ITDProvider: (props: ITDProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default ITDContext;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare enum ModalState {
|
|
2
|
+
NOT_SHOW = "modal-not-show",
|
|
3
|
+
ENTERED = "modal-entered",
|
|
4
|
+
EXITED = "modal-exited",
|
|
5
|
+
OK_CLICK = "modal-ok-button-click",
|
|
6
|
+
CANCEL_CLICK = "modal-cancel-button-click",
|
|
7
|
+
CLOSE_CLICK = "modal-close-button-click",
|
|
8
|
+
OUTSIDE_CLICK = "modal-outside-click",
|
|
9
|
+
ESC_CLICK = "modal-esc-click",
|
|
10
|
+
ALL_REMOVED = "modal-all-removed"
|
|
11
|
+
}
|
|
12
|
+
export declare enum FileTypes {
|
|
13
|
+
SVG = "image/svg+xml",
|
|
14
|
+
PNG = "image/png",
|
|
15
|
+
JPG = "image/jpeg",
|
|
16
|
+
GIF = "image/gif",
|
|
17
|
+
PDF = "application/pdf",
|
|
18
|
+
OTF = "font/otf"
|
|
19
|
+
}
|
|
20
|
+
export declare enum FileExtensions {
|
|
21
|
+
SVG = ".svg",
|
|
22
|
+
PNG = ".png",
|
|
23
|
+
JPG = ".jpeg",
|
|
24
|
+
GIF = ".gif",
|
|
25
|
+
PDF = ".pdf",
|
|
26
|
+
OTF = ".otf"
|
|
27
|
+
}
|
|
28
|
+
export declare enum FormValidations {
|
|
29
|
+
REQUIRED = "required",
|
|
30
|
+
TYPE = "type"
|
|
31
|
+
}
|
|
32
|
+
export declare enum FormValidationTypes {
|
|
33
|
+
MIN_LENGTH = "minLength",
|
|
34
|
+
MAX_LENGTH = "maxLength",
|
|
35
|
+
EXACT_LENGTH = "exactLength",
|
|
36
|
+
SAME = "same",
|
|
37
|
+
TC_IDENTITY = "TCIdentity",
|
|
38
|
+
PASSWORD = "password",
|
|
39
|
+
EMAIL = "email",
|
|
40
|
+
USERNAME = "username"
|
|
41
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormValueProps, ITDImperativeFuncProps, FormItemProps } from "../../index";
|
|
3
|
+
export type FormContextType = {
|
|
4
|
+
register: (item: FormItemProps) => void;
|
|
5
|
+
hasField: (name: string) => boolean;
|
|
6
|
+
getValues: () => {};
|
|
7
|
+
getFieldValue: (name: string) => FormValueProps;
|
|
8
|
+
getFieldValueByName: (name: string) => FormValueProps;
|
|
9
|
+
getFieldInstance: (name: string) => ITDImperativeFuncProps | null;
|
|
10
|
+
getFields: () => {
|
|
11
|
+
[key: string]: FormItemProps;
|
|
12
|
+
};
|
|
13
|
+
getFieldsInstance: () => {};
|
|
14
|
+
setName: (name: string) => void;
|
|
15
|
+
setInitialValues: (initialFields: {}, update?: boolean, validation?: boolean) => {};
|
|
16
|
+
setInvalidField: (name: string, message: string) => void;
|
|
17
|
+
setInvalidFields: (names: [], message: string) => void;
|
|
18
|
+
setFieldValue: (name: string, value: FormValueProps) => void;
|
|
19
|
+
setFieldValueByName: (name: string, value: FormValueProps, update: boolean, validation: boolean) => void;
|
|
20
|
+
setFieldError: (name: string, message: string, validation?: boolean) => void;
|
|
21
|
+
removeFieldError: (name: string) => void;
|
|
22
|
+
updateField: (name: string, value: FormValueProps, update: boolean, valid: boolean) => void;
|
|
23
|
+
isFormValid: () => boolean;
|
|
24
|
+
isFieldsValid: (names: string[]) => boolean;
|
|
25
|
+
isFieldValid: (name: string) => boolean;
|
|
26
|
+
resetFields: (update: boolean, validation: boolean) => void;
|
|
27
|
+
removeFields: () => void;
|
|
28
|
+
formId: string;
|
|
29
|
+
updated: {};
|
|
30
|
+
};
|
|
31
|
+
declare const FormContext: import("react").Context<FormContextType>;
|
|
32
|
+
export default FormContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FieldUpdateProps } from "../../index";
|
|
2
|
+
import { FormContextType } from "./FormContext";
|
|
3
|
+
export type FormStoreProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
onUpdate?: (values: {}) => void;
|
|
6
|
+
onFieldUpdate?: (update: FieldUpdateProps) => void;
|
|
7
|
+
onReset?: () => void;
|
|
8
|
+
useQueryString?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function FormStore({ name, useQueryString, onUpdate, onReset, onFieldUpdate, }: FormStoreProps): FormContextType;
|
|
11
|
+
export default FormStore;
|
|
@@ -0,0 +1,3 @@
|
|
|
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
|
+
export { Wrapper };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* FORM FIELD GROUP
|
|
5
|
+
*
|
|
6
|
+
* @param className
|
|
7
|
+
* @param children
|
|
8
|
+
* @returns
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export type GroupProps = {
|
|
12
|
+
className?: string;
|
|
13
|
+
gap?: number;
|
|
14
|
+
children?: ChildrenProps;
|
|
15
|
+
};
|
|
16
|
+
export default function Group({ gap, className, children }: GroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
+
$gap: number;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export { Wrapper };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
|
|
2
|
+
import Group from './group/Group';
|
|
3
|
+
import Control from './control/Control';
|
|
4
|
+
import Item from './item/Item';
|
|
5
|
+
import { FormContextType } from './context/FormContext';
|
|
6
|
+
import { FormStoreProps } from './context/FormStore';
|
|
7
|
+
import { FormProps } from '../index';
|
|
8
|
+
type FormSubComponentProps = {
|
|
9
|
+
Item: typeof Item;
|
|
10
|
+
Group: typeof Group;
|
|
11
|
+
Control: typeof Control;
|
|
12
|
+
useForm: () => FormContextType;
|
|
13
|
+
useFormAPI: FormStoreProps;
|
|
14
|
+
};
|
|
15
|
+
type FormComponentProps = ForwardRefExoticComponent<PropsWithoutRef<FormProps> & RefAttributes<FormContextType>> & FormSubComponentProps;
|
|
16
|
+
declare const Form: FormComponentProps;
|
|
17
|
+
declare const useFormAPI: () => FormContextType;
|
|
18
|
+
declare const useForm: () => FormContextType;
|
|
19
|
+
export { Item, Group, Control, useForm, useFormAPI };
|
|
20
|
+
export default Form;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
import { FormRuleProps, ITDImperativeFuncProps } from '../../index';
|
|
4
|
+
export type ItemProps = {
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
rules?: FormRuleProps[];
|
|
10
|
+
mask?: string | null;
|
|
11
|
+
locked?: boolean;
|
|
12
|
+
dependency?: string;
|
|
13
|
+
reset?: [];
|
|
14
|
+
query?: string;
|
|
15
|
+
children: ChildrenProps;
|
|
16
|
+
};
|
|
17
|
+
declare const Item: import("react").ForwardRefExoticComponent<ItemProps & import("react").RefAttributes<ITDImperativeFuncProps>>;
|
|
18
|
+
export default Item;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function TCIdentity(identity: string): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FormRuleProps, FormValueProps } from "../../index";
|
|
2
|
+
declare const Validator: {
|
|
3
|
+
(): void;
|
|
4
|
+
checkPassword: (value: string) => boolean;
|
|
5
|
+
checkEmail: (value: string) => boolean;
|
|
6
|
+
checkMinLength: (value: string, length: number) => boolean;
|
|
7
|
+
checkMaxLength: (value: string, length: number) => boolean;
|
|
8
|
+
checkExactLength: (value: string, length: number) => boolean;
|
|
9
|
+
checkRequired: (value: FormValueProps) => boolean;
|
|
10
|
+
checkSame: (value: string, targetValue: string) => boolean;
|
|
11
|
+
checkTCIdentity: (value: string) => boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare function CheckValidations(rules: FormRuleProps[], value: FormValueProps, getFieldValue: (name: string) => FormValueProps): string[];
|
|
14
|
+
export default Validator;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
type FormWrapperProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
initialValues?: {};
|
|
7
|
+
useQueryString?: boolean;
|
|
8
|
+
onUpdate?: (values: {}) => void;
|
|
9
|
+
onFinish?: (values: {}) => void;
|
|
10
|
+
onFinishFailed?: (values: {}) => void;
|
|
11
|
+
onValidated?: (validate: boolean) => void;
|
|
12
|
+
children: ChildrenProps;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<FormWrapperProps & import("react").RefAttributes<unknown>>>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DetermineNewHeight(originalHeight: number, originalWidth: number, newWidth: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function DetermineNewWidth(originalHeight: number, originalWidth: number, newHeight: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FormatBytes(bytes: number, decimals?: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CheckFileURL(url: string): false | Promise<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetCountryCodeByCurrencyCode(currency?: string): "tr" | "eu" | "en" | "uk";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetCountryCodeByLanguage(language: string): "tur" | "usa" | "language_not_found";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FindSelector(searchClassName: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function ConvertCurrency(balance: number, currency: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetByCurrency(value: number, symbol?: boolean, currency?: string): string | number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetCurrencyFormat(value: string, currency?: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetCurrencySymbol(currency?: string): "₺" | "$" | "€" | "?";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function GetDecimalByCurrency(currency?: string): "," | ".";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { default as DetermineNewHeight } from './aspectratio/DetermineNewHeight';
|
|
2
|
+
export { default as DetermineNewWidth } from './aspectratio/DetermineNewWidth';
|
|
3
|
+
export { default as FindSelector } from './css/FindSelector';
|
|
4
|
+
export { default as GetCountryCodeByCurrencyCode } from './country/GetCountryCodeByCurrencyCode';
|
|
5
|
+
export { default as GetCountryCodeByLanguage } from './country/GetCountryCodeByLanguage';
|
|
6
|
+
export { default as ConvertCurrency } from './currency/ConvertCurrency';
|
|
7
|
+
export { default as GetByCurrency } from './currency/GetByCurrency';
|
|
8
|
+
export { default as GetCurrencyFormat } from './currency/GetCurrencyFormat';
|
|
9
|
+
export { default as GetCurrencySymbol } from './currency/GetCurrencySymbol';
|
|
10
|
+
export { default as GetDecimalByCurrency } from './currency/GetDecimalByCurrency';
|
|
11
|
+
export { default as AddDefaultThemeStyle } from './theme/AddDefaultThemeStyle';
|
|
12
|
+
export { default as UpdateThemeStyle } from './theme/UpdateThemeStyle';
|
|
13
|
+
export { default as IsValidJSON } from './json/IsValidJSON';
|
|
14
|
+
export { default as AddZero } from './math/AddZero';
|
|
15
|
+
export { default as RemoveUnits } from './remover/RemoveUnits';
|
|
16
|
+
export { default as ChunkArray } from './array/ChunkArray';
|
|
17
|
+
export { default as FileChecker } from './checker/FileChecker';
|
|
18
|
+
export { default as CheckFileURL } from './checker/CheckFileURL';
|
|
19
|
+
export { default as UniUpperCase } from './string/UniUpperCase';
|
|
20
|
+
export { default as FormatBytes } from './binary/FormatBytes';
|
|
21
|
+
export { default as GetTypeByFileType } from './binary/GetTypeByFileType';
|
|
22
|
+
export { default as Wait } from './promise/Wait';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function IsValidJSON(item: string | {}): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AddZero(num: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Wait(milliseconds: number): Promise<unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function RemoveUnits(value: string): number;
|