dfh-ui-library 1.1.7 → 1.1.8
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/cjs/index.js +11 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +2 -2
- package/dist/cjs/types/components/Card/Card.d.ts +7 -0
- package/dist/cjs/types/components/Card/Card.test.d.ts +1 -0
- package/dist/cjs/types/components/Card/index.d.ts +1 -0
- package/dist/cjs/types/components/FormElements/CheckBox/CheckBox.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Input/Input.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/InputValidation/InputValidation.d.ts +2 -11
- package/dist/cjs/types/components/FormElements/Label/Label.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/RadioButton/RadioButton.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/cjs/types/components/FormElements/Select/Select.handler.d.ts +3 -0
- package/dist/cjs/types/components/FormElements/Textarea/Textarea.d.ts +3 -45
- package/dist/cjs/types/components/Media/Icon/Icon.d.ts +2 -2
- package/dist/cjs/types/components/Typho/Typho.d.ts +37 -0
- package/dist/cjs/types/components/Typhography/Typhography.d.ts +2 -2
- package/dist/cjs/types/components/index.d.ts +2 -1
- package/dist/cjs/types/constants/index.d.ts +3 -0
- package/dist/cjs/types/shared/configs/customClasses.d.ts +83 -0
- package/dist/cjs/types/shared/models/components/base.model.d.ts +86 -12
- package/dist/cjs/types/shared/models/components/common.model.d.ts +16 -6
- package/dist/esm/index.js +11 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +2 -2
- package/dist/esm/types/components/Card/Card.d.ts +7 -0
- package/dist/esm/types/components/Card/Card.test.d.ts +1 -0
- package/dist/esm/types/components/Card/index.d.ts +1 -0
- package/dist/esm/types/components/FormElements/CheckBox/CheckBox.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Input/Input.d.ts +2 -2
- package/dist/esm/types/components/FormElements/InputValidation/InputValidation.d.ts +2 -11
- package/dist/esm/types/components/FormElements/Label/Label.d.ts +2 -2
- package/dist/esm/types/components/FormElements/RadioButton/RadioButton.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Select/Select.d.ts +2 -2
- package/dist/esm/types/components/FormElements/Select/Select.handler.d.ts +3 -0
- package/dist/esm/types/components/FormElements/Textarea/Textarea.d.ts +3 -45
- package/dist/esm/types/components/Media/Icon/Icon.d.ts +2 -2
- package/dist/esm/types/components/Typho/Typho.d.ts +37 -0
- package/dist/esm/types/components/Typhography/Typhography.d.ts +2 -2
- package/dist/esm/types/components/index.d.ts +2 -1
- package/dist/esm/types/constants/index.d.ts +3 -0
- package/dist/esm/types/shared/configs/customClasses.d.ts +83 -0
- package/dist/esm/types/shared/models/components/base.model.d.ts +86 -12
- package/dist/esm/types/shared/models/components/common.model.d.ts +16 -6
- package/dist/index.d.ts +306 -351
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
declare const Button: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, onClick, }:
|
|
2
|
+
import { IButtonProps } from "../../shared/models/components/base.model";
|
|
3
|
+
declare const Button: ({ type, isDisabled, buttonLabel, iconType, iconColor, iconAlignment, isIconEnabled, variants, additionalClasses, iconClass, onClick, }: IButtonProps) => React.JSX.Element;
|
|
4
4
|
export default Button;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./Card";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
declare const Checkbox: React.FC<
|
|
2
|
+
import { ICheckboxProps } from "../../../shared/models/components/base.model";
|
|
3
|
+
declare const Checkbox: React.FC<ICheckboxProps>;
|
|
4
4
|
export default Checkbox;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IHookFormsInputProps } from "../../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component for user interaction
|
|
5
5
|
*/
|
|
6
|
-
declare const Input: FC<
|
|
6
|
+
declare const Input: FC<IHookFormsInputProps>;
|
|
7
7
|
export default Input;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Set validation message
|
|
5
|
-
*/
|
|
6
|
-
message?: string | undefined;
|
|
7
|
-
/**
|
|
8
|
-
* Optional for additional classes
|
|
9
|
-
*/
|
|
10
|
-
additionalClasses?: string | undefined;
|
|
11
|
-
}
|
|
2
|
+
import { IInputValidationProps } from "../../../shared/models/components/common.model";
|
|
12
3
|
/**
|
|
13
4
|
* Primary UI component for user interaction
|
|
14
5
|
*/
|
|
15
|
-
declare const InputValidation: React.FC<
|
|
6
|
+
declare const InputValidation: React.FC<IInputValidationProps>;
|
|
16
7
|
export default InputValidation;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ILabelProps } from "../../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component for user interaction
|
|
5
5
|
*/
|
|
6
|
-
declare const Label: React.FC<
|
|
6
|
+
declare const Label: React.FC<ILabelProps>;
|
|
7
7
|
export default Label;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IRadioProps } from "../../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component for user interaction
|
|
5
5
|
*/
|
|
6
|
-
declare const RadioButton: React.FC<
|
|
6
|
+
declare const RadioButton: React.FC<IRadioProps>;
|
|
7
7
|
export default RadioButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ISelectProps } from "../../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component for user interaction
|
|
5
5
|
*/
|
|
6
|
-
declare const Select: React.FC<
|
|
6
|
+
declare const Select: React.FC<ISelectProps>;
|
|
7
7
|
export default Select;
|
|
@@ -1,49 +1,7 @@
|
|
|
1
|
-
import React
|
|
2
|
-
|
|
3
|
-
interface InputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Set Input type
|
|
6
|
-
*/
|
|
7
|
-
type?: InputType;
|
|
8
|
-
/**
|
|
9
|
-
* Set Input name
|
|
10
|
-
*/
|
|
11
|
-
name: string;
|
|
12
|
-
/**
|
|
13
|
-
* Set the Label Type
|
|
14
|
-
*/
|
|
15
|
-
labelType?: "default" | "black" | "smallSelect";
|
|
16
|
-
/**
|
|
17
|
-
* Set Input label name
|
|
18
|
-
*/
|
|
19
|
-
label?: string | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Ser Error message
|
|
22
|
-
*/
|
|
23
|
-
error?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Set Wrapper classes, new classes will overide the existing default classes
|
|
26
|
-
*/
|
|
27
|
-
wrapperClass?: string | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Optional for additional classes
|
|
30
|
-
*/
|
|
31
|
-
additionalClasses?: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Enable read only
|
|
34
|
-
*/
|
|
35
|
-
readonly?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* LabelClasses
|
|
38
|
-
*/
|
|
39
|
-
labelClasses?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Set label only
|
|
42
|
-
*/
|
|
43
|
-
onlyLabel?: boolean;
|
|
44
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IInputProps } from "../../../shared/models/components/base.model";
|
|
45
3
|
/**
|
|
46
4
|
* Primary UI component for user interaction
|
|
47
5
|
*/
|
|
48
|
-
declare const Textarea: React.FC<
|
|
6
|
+
declare const Textarea: React.FC<IInputProps>;
|
|
49
7
|
export default Textarea;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { IIconProps } from "../../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component for user interaction
|
|
5
5
|
*
|
|
@@ -7,5 +7,5 @@ import { IconProps } from "../../../shared/models/components/base.model";
|
|
|
7
7
|
*
|
|
8
8
|
* File Path : "src/components/core/Media/Icons/Icons.tsx"
|
|
9
9
|
*/
|
|
10
|
-
declare const Icon: React.FC<
|
|
10
|
+
declare const Icon: React.FC<IIconProps>;
|
|
11
11
|
export default Icon;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type TyphoTypes = "p" | "span" | "strong" | "em" | "div" | undefined;
|
|
3
|
+
type TyphoColorTypes = "white" | "gray" | "gray720" | "black" | "black650" | "blue" | "inherit" | string;
|
|
4
|
+
type TyphoFontSizeTypes = "h1" | "14s" | "8s" | "9s" | "10s" | "11s" | "12s" | "16s" | "17s" | "18s" | "20s" | "24s" | "26s" | "32s" | "42s" | "48s" | "54s" | "80s" | undefined;
|
|
5
|
+
type TyhoFontWeightTypes = "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black";
|
|
6
|
+
interface ITyphoProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Set element node of the content wrapper
|
|
10
|
+
*/
|
|
11
|
+
type?: TyphoTypes;
|
|
12
|
+
/**
|
|
13
|
+
* Set font-color of the content
|
|
14
|
+
*/
|
|
15
|
+
color?: TyphoColorTypes;
|
|
16
|
+
/**
|
|
17
|
+
* Set font-size of the content
|
|
18
|
+
*/
|
|
19
|
+
size?: TyphoFontSizeTypes;
|
|
20
|
+
/**
|
|
21
|
+
* Set font-weight of the content
|
|
22
|
+
*/
|
|
23
|
+
weight?: TyhoFontWeightTypes;
|
|
24
|
+
/**
|
|
25
|
+
* Optional for additional classes
|
|
26
|
+
*/
|
|
27
|
+
additionalClasses?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Set content and child nodes
|
|
30
|
+
*/
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Primary UI component for user interaction
|
|
35
|
+
*/
|
|
36
|
+
declare const Typho: React.FC<ITyphoProps>;
|
|
37
|
+
export default Typho;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ITyphographyProps } from "../../shared/models/components/base.model";
|
|
3
3
|
/**
|
|
4
4
|
* Primary UI component
|
|
5
5
|
*/
|
|
6
|
-
declare const Typhography: ({ type, component, color, additionalClasses, children, onClick, ...rest }:
|
|
6
|
+
declare const Typhography: ({ type, component, color, additionalClasses, children, onClick, ...rest }: ITyphographyProps) => React.JSX.Element;
|
|
7
7
|
export default Typhography;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "../index.css";
|
|
2
2
|
export { default as Button } from "./Button";
|
|
3
3
|
export { default as Typhography } from "./Typhography";
|
|
4
|
-
export { Input, Select, CheckBox, Label, InputValidation, Textarea, } from "./FormElements";
|
|
4
|
+
export { Input, Select, CheckBox, Label, InputValidation, Textarea, RadioButton, } from "./FormElements";
|
|
5
|
+
export { default as Card } from "./Card";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const Classes: {
|
|
2
|
+
wrapper: {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
heading: {
|
|
6
|
+
white: string;
|
|
7
|
+
gray: string;
|
|
8
|
+
dark: string;
|
|
9
|
+
h1: string;
|
|
10
|
+
h2: string;
|
|
11
|
+
h3: string;
|
|
12
|
+
h4: string;
|
|
13
|
+
h5: string;
|
|
14
|
+
h6: string;
|
|
15
|
+
};
|
|
16
|
+
message: {
|
|
17
|
+
common: string;
|
|
18
|
+
error: string;
|
|
19
|
+
success: string;
|
|
20
|
+
warning: string;
|
|
21
|
+
neutral: string;
|
|
22
|
+
highlight: string;
|
|
23
|
+
};
|
|
24
|
+
card: {
|
|
25
|
+
common: string;
|
|
26
|
+
lightGray: string;
|
|
27
|
+
lightGrayHalf: string;
|
|
28
|
+
gray: string;
|
|
29
|
+
white: string;
|
|
30
|
+
black: string;
|
|
31
|
+
whiteBorder: string;
|
|
32
|
+
};
|
|
33
|
+
button: {
|
|
34
|
+
default: string;
|
|
35
|
+
common: string;
|
|
36
|
+
disabled: string;
|
|
37
|
+
blackLarge: string;
|
|
38
|
+
blackMedium: string;
|
|
39
|
+
blackMediumH36: string;
|
|
40
|
+
blackSmall: string;
|
|
41
|
+
blackExtraSmall: string;
|
|
42
|
+
sentButton: string;
|
|
43
|
+
smallButtonGray: string;
|
|
44
|
+
};
|
|
45
|
+
inputValidation: {
|
|
46
|
+
error: string;
|
|
47
|
+
};
|
|
48
|
+
image: {
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
icon: {
|
|
52
|
+
white: string;
|
|
53
|
+
black: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare enum LableClasses {
|
|
57
|
+
default = "text-black-600 text-14s font-normal",
|
|
58
|
+
black = "text-black-900 text-14s font-normal",
|
|
59
|
+
blackSmall = "text-black-960 text-12s font-normal",
|
|
60
|
+
smallSelect = "text-14s font-normal text-black-900"
|
|
61
|
+
}
|
|
62
|
+
export declare enum SelectClasses {
|
|
63
|
+
default = "form-select h-40 border border-solid border-gray-180 rounded-lg text-black appearence-none placeholderColor-gray shadow-input",
|
|
64
|
+
small = "form-select h-8 border border-gray-160 border-solid text-13s text-black-760 rounded-[3px] appearence-none placeholderColor-gray shadow-none",
|
|
65
|
+
wrapper = "flex w-full flex-col relative",
|
|
66
|
+
error = "absolute top-[100%]"
|
|
67
|
+
}
|
|
68
|
+
export declare enum InputClasses {
|
|
69
|
+
default = "form-input h-[42px] border border-solid border-grey-100 rounded-lg text-black placeholderColor-gray text-14s text-grey-900 px-4",
|
|
70
|
+
readonly = "form-input text-black opacity-60 !outline-0 !border-none",
|
|
71
|
+
wrapper = "flex w-full flex-col relative mb-4",
|
|
72
|
+
error = "relative pt-1",
|
|
73
|
+
large = "form-input w-full h-14 border border-solid border-black-925 rounded-lg text-black placeholderColor-gray350 text-base shadow-none font-normal"
|
|
74
|
+
}
|
|
75
|
+
export declare enum TypoClasess {
|
|
76
|
+
white = "text-white",
|
|
77
|
+
black = "text-black-900",
|
|
78
|
+
blue = "text-blue",
|
|
79
|
+
gray = "text-gray-220",
|
|
80
|
+
gray720 = "text-gray-720",
|
|
81
|
+
black650 = "text-black-650",
|
|
82
|
+
inherit = "text-inherit"
|
|
83
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputHTMLAttributes, SelectHTMLAttributes } from "react";
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
1
|
+
import { InputHTMLAttributes, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
2
|
+
import { IAdditionalClassesProp, IChildrenProp, IIconTypeProp, AlignmentType, IOnClickEventProps, TyphoTypes, TyphoComponents, IconHoverColorTypes, MessageTypes } from "./common.model";
|
|
3
|
+
export interface IButtonProps extends IChildrenProp, IAdditionalClassesProp, IIconTypeProp, IOnClickEventProps {
|
|
4
4
|
/**
|
|
5
5
|
* Set the button type
|
|
6
6
|
*/
|
|
@@ -30,7 +30,7 @@ export interface ButtonProps extends ChildrenProp, AdditionalClassesProp, IconTy
|
|
|
30
30
|
*/
|
|
31
31
|
iconClass?: string;
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface ITyphographyProps extends IChildrenProp, IAdditionalClassesProp {
|
|
34
34
|
/**
|
|
35
35
|
* Set element type
|
|
36
36
|
*/
|
|
@@ -45,7 +45,7 @@ export interface TyphographyProps extends ChildrenProp, AdditionalClassesProp {
|
|
|
45
45
|
color?: string;
|
|
46
46
|
onClick?: () => void;
|
|
47
47
|
}
|
|
48
|
-
export interface
|
|
48
|
+
export interface IIconProps extends IAdditionalClassesProp, IIconTypeProp {
|
|
49
49
|
/**
|
|
50
50
|
* Optional | Set Icon Text
|
|
51
51
|
*/
|
|
@@ -65,7 +65,7 @@ export interface IconProps extends AdditionalClassesProp, IconTypeProp {
|
|
|
65
65
|
onClick?: any;
|
|
66
66
|
}
|
|
67
67
|
type InputType = "text" | "email" | "password" | "name" | "date";
|
|
68
|
-
export interface
|
|
68
|
+
export interface IHookFormsInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
69
69
|
/**
|
|
70
70
|
* Set Input type
|
|
71
71
|
*/
|
|
@@ -131,14 +131,14 @@ export interface HookFormsInputProps extends InputHTMLAttributes<HTMLInputElemen
|
|
|
131
131
|
isAdditionalErrorInput?: boolean;
|
|
132
132
|
fullError?: boolean;
|
|
133
133
|
}
|
|
134
|
-
export interface
|
|
134
|
+
export interface ICheckboxProps {
|
|
135
135
|
onChange?: (checked: boolean) => void;
|
|
136
136
|
checked?: boolean;
|
|
137
137
|
id?: any;
|
|
138
138
|
label?: string;
|
|
139
139
|
}
|
|
140
140
|
export type LABELTYPE = "default" | "black" | "smallSelect" | "blackSmall" | undefined;
|
|
141
|
-
export interface
|
|
141
|
+
export interface ILabelProps {
|
|
142
142
|
/**
|
|
143
143
|
* Set the Label Type
|
|
144
144
|
*/
|
|
@@ -164,7 +164,7 @@ export interface LabelProps {
|
|
|
164
164
|
*/
|
|
165
165
|
labelSpanClasses?: string;
|
|
166
166
|
}
|
|
167
|
-
export interface
|
|
167
|
+
export interface IRadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
168
168
|
/**
|
|
169
169
|
* Set Input name
|
|
170
170
|
*/
|
|
@@ -181,15 +181,19 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
181
181
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
182
182
|
isDeafult?: boolean;
|
|
183
183
|
}
|
|
184
|
-
|
|
184
|
+
interface IOption {
|
|
185
|
+
displayName: string;
|
|
186
|
+
}
|
|
187
|
+
export type selectType = "small" | "medium";
|
|
188
|
+
export interface ISelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
185
189
|
/**
|
|
186
190
|
* Type
|
|
187
191
|
*/
|
|
188
|
-
selectType?:
|
|
192
|
+
selectType?: selectType;
|
|
189
193
|
/**
|
|
190
194
|
* Set Input type
|
|
191
195
|
*/
|
|
192
|
-
options?:
|
|
196
|
+
options?: IOption[];
|
|
193
197
|
/**
|
|
194
198
|
* Set Input name
|
|
195
199
|
*/
|
|
@@ -225,4 +229,74 @@ export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
|
225
229
|
updateInputValue?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
226
230
|
defaultValue?: string;
|
|
227
231
|
}
|
|
232
|
+
export interface IMessageProps extends IChildrenProp, IAdditionalClassesProp, IOnClickEventProps {
|
|
233
|
+
/**
|
|
234
|
+
* Message title
|
|
235
|
+
*/
|
|
236
|
+
title?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Select message type
|
|
239
|
+
*/
|
|
240
|
+
type?: MessageTypes;
|
|
241
|
+
/**
|
|
242
|
+
* Button Label
|
|
243
|
+
*/
|
|
244
|
+
buttonLabel?: string;
|
|
245
|
+
}
|
|
246
|
+
export interface IInputProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
247
|
+
/**
|
|
248
|
+
* Set Input type
|
|
249
|
+
*/
|
|
250
|
+
type?: InputType;
|
|
251
|
+
/**
|
|
252
|
+
* Set Input name
|
|
253
|
+
*/
|
|
254
|
+
name: string;
|
|
255
|
+
/**
|
|
256
|
+
* Set the Label Type
|
|
257
|
+
*/
|
|
258
|
+
labelType?: "default" | "black" | "smallSelect";
|
|
259
|
+
/**
|
|
260
|
+
* Set Input label name
|
|
261
|
+
*/
|
|
262
|
+
label?: string | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* Ser Error message
|
|
265
|
+
*/
|
|
266
|
+
error?: string;
|
|
267
|
+
/**
|
|
268
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
269
|
+
*/
|
|
270
|
+
wrapperClass?: string | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Optional for additional classes
|
|
273
|
+
*/
|
|
274
|
+
additionalClasses?: string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Enable read only
|
|
277
|
+
*/
|
|
278
|
+
readonly?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* LabelClasses
|
|
281
|
+
*/
|
|
282
|
+
labelClasses?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Set label only
|
|
285
|
+
*/
|
|
286
|
+
onlyLabel?: boolean;
|
|
287
|
+
}
|
|
288
|
+
export interface ICardProps {
|
|
289
|
+
/**
|
|
290
|
+
* Set button type
|
|
291
|
+
*/
|
|
292
|
+
cardType?: "lightGray" | "lightGrayHalf" | "gray" | "white" | "black" | "whiteBorder";
|
|
293
|
+
/**
|
|
294
|
+
* Optional for additional classes
|
|
295
|
+
*/
|
|
296
|
+
additionalClasses?: string | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* Nested child elements and contents
|
|
299
|
+
*/
|
|
300
|
+
children?: React.ReactNode;
|
|
301
|
+
}
|
|
228
302
|
export {};
|
|
@@ -3,13 +3,13 @@ export type AlignmentType = "center" | "left" | "right";
|
|
|
3
3
|
export type IconColorTypes = "white" | "black-900" | "gray-220" | "gray-720" | "inherit" | "gray-300" | string;
|
|
4
4
|
export type IconHoverColorTypes = "white" | "black-900" | "gray-220" | "inherit";
|
|
5
5
|
export type IconType = "Home" | "Info" | "Email" | "RightArrow" | "DropDown" | "DropDownArrow" | "WhiteArrow" | "TrashIcon" | "AddNewitemIcon" | "OkIcon" | "EditIcon" | "Delete" | "AddIcon" | "RemoveTrashIcon" | "RoundTickIcon" | "ValidationWarningIcon" | "WarningIcon" | "NeturalIcon" | "SuccessIcon" | string;
|
|
6
|
-
export interface
|
|
6
|
+
export interface IChildrenProp {
|
|
7
7
|
/**
|
|
8
8
|
* Se the child node and element;
|
|
9
9
|
*/
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface IIconTypeProp {
|
|
13
13
|
/**
|
|
14
14
|
* Set icon type
|
|
15
15
|
*/
|
|
@@ -19,21 +19,31 @@ export interface IconTypeProp {
|
|
|
19
19
|
*/
|
|
20
20
|
iconColor?: IconColorTypes;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface IAdditionalClassesProp {
|
|
23
23
|
/**
|
|
24
24
|
* Optional | Set the additional classes
|
|
25
25
|
*/
|
|
26
26
|
additionalClasses?: string | undefined;
|
|
27
27
|
}
|
|
28
|
-
export interface
|
|
28
|
+
export interface IDataTestIdProp {
|
|
29
29
|
/**
|
|
30
30
|
* Set the id for unti testing
|
|
31
31
|
*/
|
|
32
32
|
data_testid?: string;
|
|
33
33
|
}
|
|
34
|
-
export interface
|
|
34
|
+
export interface IOnClickEventProps {
|
|
35
35
|
onClick?: () => void;
|
|
36
36
|
}
|
|
37
|
-
export type TyphoTypes = "h1" | "h1Bold" | "h1ExtraBold" | "h2" | "h2Bold" | "h2ExtraBold" | "h10" | "h10Bold" | "h10ExtraBold" | "h6" | "h6Bold" | "h6ExtraBold" | "header1" | "header2" | "label1" | "label2";
|
|
37
|
+
export type TyphoTypes = "h1" | "h1Bold" | "h1ExtraBold" | "h2" | "h2Bold" | "h2ExtraBold" | "h10" | "h10Bold" | "h10ExtraBold" | "h6" | "h6Bold" | "h6ExtraBold" | "header1" | "header2" | "label1" | "label2" | "p";
|
|
38
38
|
export type TyphoComponents = "p" | "span" | "em" | "div" | undefined;
|
|
39
39
|
export type MessageTypes = "warning" | "success" | "error" | "disabled" | "highlight" | "nutral";
|
|
40
|
+
export interface IInputValidationProps {
|
|
41
|
+
/**
|
|
42
|
+
* Set validation message
|
|
43
|
+
*/
|
|
44
|
+
message?: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Optional for additional classes
|
|
47
|
+
*/
|
|
48
|
+
additionalClasses?: string | undefined;
|
|
49
|
+
}
|