@inntechcorp/it-design 2.2.68 → 2.2.70

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.
@@ -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": {
@@ -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": {
@@ -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: string;
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 = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
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 "../index";
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?: ButtonContentPosition;
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;
@@ -1,3 +1,4 @@
1
- export type ITDSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
2
- export type ITDSizeSlug = "xs" | "sm" | "md" | "df" | "lg" | "xlg";
3
- export type ITDPosition = "left" | "right";
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): "df" | "x-small" | "small" | "medium" | "default" | "large" | "x-large";
3
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): ComponentSizes;
@@ -1,2 +1,3 @@
1
+ import { ComponentSizesSlug } from "enums/enum";
1
2
  import { ITDSize } from "../index";
2
- export default function GetSizeSlugBySize(size: ITDSize): "xs" | "sm" | "md" | "df" | "lg" | "xlg";
3
+ export default function GetSizeSlugBySize(size: ITDSize): ComponentSizesSlug;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.2.68",
3
+ "version": "2.2.70",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",