@inntechcorp/it-design 2.2.68 → 2.2.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/enums/enum.d.ts +20 -0
- package/dist/index.cjs.js +269 -269
- package/dist/index.d.mts +14 -2
- package/dist/index.d.ts +40 -9
- package/dist/index.esm.js +352 -352
- package/dist/locales/en/itd.json +6 -0
- package/dist/locales/itd.json +6 -0
- package/dist/locales/tr/itd.json +6 -0
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +2 -1
- package/dist/types/AlertProps.d.ts +2 -1
- package/dist/types/ButtonProps.d.ts +2 -3
- package/dist/types/ITDProps.d.ts +4 -3
- package/dist/utils/GetSizeBySizeSlug.d.ts +2 -1
- package/dist/utils/GetSizeSlugBySize.d.ts +2 -1
- package/package.json +1 -1
package/dist/locales/en/itd.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"confirmPassword": "Confirm password",
|
|
12
12
|
"typeYourNoteHere": "Type your note here",
|
|
13
13
|
"selectGender": "Select Gender",
|
|
14
|
+
"selectCurrency": "Select Currency",
|
|
14
15
|
"selectLanguage": "Select Language",
|
|
15
16
|
"selectCountry": "Select Country",
|
|
16
17
|
"birthday": "Birthday",
|
|
@@ -23,6 +24,11 @@
|
|
|
23
24
|
"languages": {
|
|
24
25
|
"turkish": "Turkish",
|
|
25
26
|
"english": "English"
|
|
27
|
+
},
|
|
28
|
+
"currencies": {
|
|
29
|
+
"TRY": "Turkish Lira",
|
|
30
|
+
"EUR": "Euro",
|
|
31
|
+
"USD": "Dollar"
|
|
26
32
|
}
|
|
27
33
|
},
|
|
28
34
|
"buttons": {
|
package/dist/locales/itd.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"confirmPassword": "Şifre tekrar",
|
|
12
12
|
"typeYourNoteHere": "Notunuzu buraya yazınız",
|
|
13
13
|
"selectGender": "Cinsiyet Seçin",
|
|
14
|
+
"selectCurrency": "Para Birimi Seçin",
|
|
14
15
|
"selectLanguage": "Dil Seçin",
|
|
15
16
|
"selectCountry": "Ülke Seçin",
|
|
16
17
|
"birthday": "Doğum Tarihi",
|
|
@@ -23,6 +24,11 @@
|
|
|
23
24
|
"languages": {
|
|
24
25
|
"turkish": "Türkçe",
|
|
25
26
|
"english": "İngilizce"
|
|
27
|
+
},
|
|
28
|
+
"currencies": {
|
|
29
|
+
"TRY": "Türk Lirası",
|
|
30
|
+
"EUR": "Euro",
|
|
31
|
+
"USD": "Dolar"
|
|
26
32
|
}
|
|
27
33
|
},
|
|
28
34
|
"buttons": {
|
package/dist/locales/tr/itd.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"confirmPassword": "Şifre tekrar",
|
|
12
12
|
"typeYourNoteHere": "Notunuzu buraya yazınız",
|
|
13
13
|
"selectGender": "Cinsiyet Seçin",
|
|
14
|
+
"selectCurrency": "Para Birimi Seçin",
|
|
14
15
|
"selectLanguage": "Dil Seçin",
|
|
15
16
|
"selectCountry": "Ülke Seçin",
|
|
16
17
|
"birthday": "Doğum Tarihi",
|
|
@@ -23,6 +24,11 @@
|
|
|
23
24
|
"languages": {
|
|
24
25
|
"turkish": "Türkçe",
|
|
25
26
|
"english": "İngilizce"
|
|
27
|
+
},
|
|
28
|
+
"currencies": {
|
|
29
|
+
"TRY": "Türk Lirası",
|
|
30
|
+
"EUR": "Euro",
|
|
31
|
+
"USD": "Dolar"
|
|
26
32
|
}
|
|
27
33
|
},
|
|
28
34
|
"buttons": {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { SelectValue } from 'types/SelectProps';
|
|
2
2
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
import { ITDSize } from 'types/ITDProps';
|
|
3
4
|
type FloatingLabelProps = {
|
|
4
5
|
id?: string;
|
|
5
6
|
value?: SelectValue | null;
|
|
6
7
|
label?: ChildrenProps;
|
|
7
8
|
placeholder: string;
|
|
8
|
-
size:
|
|
9
|
+
size: ITDSize;
|
|
9
10
|
};
|
|
10
11
|
declare const FloatingLabel: ({ id, size, value, label, placeholder }: FloatingLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default FloatingLabel;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ChildrenProps } from "./ChildrenProps";
|
|
3
|
+
import { ComponentSizes } from "enums/enum";
|
|
3
4
|
export type AlertProps = {
|
|
4
5
|
type?: AlertType;
|
|
5
6
|
size?: AlertSize;
|
|
@@ -9,4 +10,4 @@ export type AlertProps = {
|
|
|
9
10
|
children?: ChildrenProps;
|
|
10
11
|
};
|
|
11
12
|
export type AlertType = "success" | "info" | "warning" | "error";
|
|
12
|
-
export type AlertSize =
|
|
13
|
+
export type AlertSize = ComponentSizes.X_SMALL | ComponentSizes.SMALL | ComponentSizes.MEDIUM | ComponentSizes.DEFAULT | ComponentSizes.LARGE | ComponentSizes.X_LARGE;
|
|
@@ -2,7 +2,7 @@ import { DetailedHTMLProps, HTMLAttributes, MouseEvent } from "react";
|
|
|
2
2
|
import { ChildrenProps } from "./ChildrenProps";
|
|
3
3
|
import { IStyledComponent } from "styled-components";
|
|
4
4
|
import { Substitute } from "styled-components/dist/types";
|
|
5
|
-
import { ITDSize } from "
|
|
5
|
+
import { ITDSize, ITDPosition } from "./ITDProps";
|
|
6
6
|
export type ButtonProps = {
|
|
7
7
|
id?: string;
|
|
8
8
|
disabled?: boolean;
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = {
|
|
|
11
11
|
strecth?: boolean;
|
|
12
12
|
circle?: boolean;
|
|
13
13
|
justify?: string;
|
|
14
|
-
contentPosition?:
|
|
14
|
+
contentPosition?: ITDPosition;
|
|
15
15
|
type?: ButtonType;
|
|
16
16
|
variant?: ButtonVariant;
|
|
17
17
|
state?: ButtonState;
|
|
@@ -26,7 +26,6 @@ export type ButtonProps = {
|
|
|
26
26
|
export type ButtonType = "button" | "submit" | "reset";
|
|
27
27
|
export type ButtonVariant = "default" | "solid" | "filled" | "outline" | "ghost" | "link" | "statable" | "custom";
|
|
28
28
|
export type ButtonState = "primary" | "secondary" | "request" | "approve" | "reject" | "pending" | "requested" | string | null;
|
|
29
|
-
export type ButtonContentPosition = "left" | "right";
|
|
30
29
|
export type StyledElementProps = IStyledComponent<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any>>;
|
|
31
30
|
export interface IIcon {
|
|
32
31
|
$useIconPadding?: boolean;
|
package/dist/types/ITDProps.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
1
|
+
import { ComponentPositions, ComponentSizes, ComponentSizesSlug } from "enums/enum";
|
|
2
|
+
export type ITDSize = ComponentSizes | "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|
|
3
|
+
export type ITDSizeSlug = ComponentSizesSlug | "xs" | "sm" | "md" | "df" | "lg" | "xlg";
|
|
4
|
+
export type ITDPosition = ComponentPositions | "left" | "right";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import { ComponentSizes } from "enums/enum";
|
|
1
2
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug):
|
|
3
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): ComponentSizes;
|