dfh-ui-library 1.2.53 → 1.2.55
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/FormElements/ImageInput/ImageInput.d.ts +4 -0
- package/dist/cjs/types/components/FormElements/ImageInput/index.d.ts +1 -0
- package/dist/cjs/types/components/FormElements/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/shared/models/components/common.model.d.ts +65 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/FormElements/ImageInput/ImageInput.d.ts +4 -0
- package/dist/esm/types/components/FormElements/ImageInput/index.d.ts +1 -0
- package/dist/esm/types/components/FormElements/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/shared/models/components/common.model.d.ts +65 -2
- package/dist/index.d.ts +68 -3
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./ImageInput";
|
|
@@ -1,7 +1,7 @@
|
|
|
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, RadioButton, IconInput, } from "./FormElements";
|
|
4
|
+
export { Input, Select, CheckBox, Label, InputValidation, Textarea, RadioButton, IconInput, ImageInput, } from "./FormElements";
|
|
5
5
|
export { default as Card } from "./Card";
|
|
6
6
|
export { default as ComponentProvider } from "./ComponentProvider";
|
|
7
7
|
export { default as Logo } from "./Logo";
|
|
@@ -88,8 +88,8 @@ export interface IFormProps {
|
|
|
88
88
|
formContainerClasses?: string;
|
|
89
89
|
}
|
|
90
90
|
export interface TabNavigationProps extends AdditionalClassesProp {
|
|
91
|
-
navigationData
|
|
92
|
-
navItemClick?: () => void;
|
|
91
|
+
navigationData: any[];
|
|
92
|
+
navItemClick?: (url?: string) => void;
|
|
93
93
|
isEnableLogout?: boolean;
|
|
94
94
|
handleLogout?: () => void;
|
|
95
95
|
userImage?: string;
|
|
@@ -122,6 +122,69 @@ export interface ImagePreviewProps {
|
|
|
122
122
|
isSmall?: boolean;
|
|
123
123
|
bgColor?: string;
|
|
124
124
|
}
|
|
125
|
+
export interface ImageInputProps {
|
|
126
|
+
imageUrl?: string;
|
|
127
|
+
isImage?: boolean;
|
|
128
|
+
type?: InputType;
|
|
129
|
+
/**
|
|
130
|
+
* Set new variant of the input
|
|
131
|
+
*/
|
|
132
|
+
inputVariant?: "default" | "large";
|
|
133
|
+
/**
|
|
134
|
+
* Set Input name
|
|
135
|
+
*/
|
|
136
|
+
id?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Set Input name
|
|
139
|
+
*/
|
|
140
|
+
labelName?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Set the Label Type
|
|
143
|
+
*/
|
|
144
|
+
labelType?: LableTypes;
|
|
145
|
+
/**
|
|
146
|
+
* Set Input label name
|
|
147
|
+
*/
|
|
148
|
+
label?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Ser Error message
|
|
151
|
+
*/
|
|
152
|
+
error?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Ser Error message
|
|
155
|
+
*/
|
|
156
|
+
isBorderedError?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
159
|
+
*/
|
|
160
|
+
wrapperClass?: string | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Optional for additional classes
|
|
163
|
+
*/
|
|
164
|
+
additionalClasses?: string | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Enable read only
|
|
167
|
+
*/
|
|
168
|
+
readonly?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* LabelClasses
|
|
171
|
+
*/
|
|
172
|
+
labelClasses?: string | undefined;
|
|
173
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
174
|
+
placeholder?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Set label only
|
|
177
|
+
*/
|
|
178
|
+
onlyLabel?: boolean | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* inner span Classes
|
|
181
|
+
*/
|
|
182
|
+
labelSpanClasses?: string;
|
|
183
|
+
isAdditionalErrorInput?: boolean;
|
|
184
|
+
additionalErrorClasses?: string;
|
|
185
|
+
readOnly?: boolean;
|
|
186
|
+
value?: string;
|
|
187
|
+
}
|
|
125
188
|
export interface CustomDatePickerProps {
|
|
126
189
|
selectedDate: Date | null;
|
|
127
190
|
onChange: (date: Date | null) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,8 @@ interface AdditionalClassesProp$1 {
|
|
|
56
56
|
additionalClasses?: string | undefined;
|
|
57
57
|
}
|
|
58
58
|
interface TabNavigationProps extends AdditionalClassesProp$1 {
|
|
59
|
-
navigationData
|
|
60
|
-
navItemClick?: () => void;
|
|
59
|
+
navigationData: any[];
|
|
60
|
+
navItemClick?: (url?: string) => void;
|
|
61
61
|
isEnableLogout?: boolean;
|
|
62
62
|
handleLogout?: () => void;
|
|
63
63
|
userImage?: string;
|
|
@@ -81,6 +81,69 @@ interface ImagePreviewProps {
|
|
|
81
81
|
isSmall?: boolean;
|
|
82
82
|
bgColor?: string;
|
|
83
83
|
}
|
|
84
|
+
interface ImageInputProps {
|
|
85
|
+
imageUrl?: string;
|
|
86
|
+
isImage?: boolean;
|
|
87
|
+
type?: InputType;
|
|
88
|
+
/**
|
|
89
|
+
* Set new variant of the input
|
|
90
|
+
*/
|
|
91
|
+
inputVariant?: "default" | "large";
|
|
92
|
+
/**
|
|
93
|
+
* Set Input name
|
|
94
|
+
*/
|
|
95
|
+
id?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Set Input name
|
|
98
|
+
*/
|
|
99
|
+
labelName?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Set the Label Type
|
|
102
|
+
*/
|
|
103
|
+
labelType?: LableTypes;
|
|
104
|
+
/**
|
|
105
|
+
* Set Input label name
|
|
106
|
+
*/
|
|
107
|
+
label?: string | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Ser Error message
|
|
110
|
+
*/
|
|
111
|
+
error?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Ser Error message
|
|
114
|
+
*/
|
|
115
|
+
isBorderedError?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Set Wrapper classes, new classes will overide the existing default classes
|
|
118
|
+
*/
|
|
119
|
+
wrapperClass?: string | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* Optional for additional classes
|
|
122
|
+
*/
|
|
123
|
+
additionalClasses?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Enable read only
|
|
126
|
+
*/
|
|
127
|
+
readonly?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* LabelClasses
|
|
130
|
+
*/
|
|
131
|
+
labelClasses?: string | undefined;
|
|
132
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
133
|
+
placeholder?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Set label only
|
|
136
|
+
*/
|
|
137
|
+
onlyLabel?: boolean | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* inner span Classes
|
|
140
|
+
*/
|
|
141
|
+
labelSpanClasses?: string;
|
|
142
|
+
isAdditionalErrorInput?: boolean;
|
|
143
|
+
additionalErrorClasses?: string;
|
|
144
|
+
readOnly?: boolean;
|
|
145
|
+
value?: string;
|
|
146
|
+
}
|
|
84
147
|
interface CustomDatePickerProps {
|
|
85
148
|
selectedDate: Date | null;
|
|
86
149
|
onChange: (date: Date | null) => void;
|
|
@@ -575,6 +638,8 @@ declare const Textarea: React$1.FC<IInputProps>;
|
|
|
575
638
|
*/
|
|
576
639
|
declare const IconInput: FC<IHookFormsInputProps>;
|
|
577
640
|
|
|
641
|
+
declare const ImageInput: React$1.FC<ImageInputProps>;
|
|
642
|
+
|
|
578
643
|
/**
|
|
579
644
|
* Primary UI component for user interaction
|
|
580
645
|
*/
|
|
@@ -662,4 +727,4 @@ declare const useSchemaProcessor: ({ schema, externalSetComponents, }: UseSchema
|
|
|
662
727
|
componentsRtn: IComponent[] | undefined;
|
|
663
728
|
};
|
|
664
729
|
|
|
665
|
-
export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, Card, Checkbox as CheckBox, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, Heading, IconInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, PhoneNumberInput, RadioButton, Row, SearchDropdownWithButton, Select, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes };
|
|
730
|
+
export { Breadcrumb, type BtnOptionDropdown, Button, ButtonGroup, Card, Checkbox as CheckBox, DFHFormProvider as ComponentProvider, CustomFileInput, CustomDatePicker as DatePicker, DialogBox, type DropdownSearchProps, Heading, IconInput, ImageInput, ImagePreview, Input, type InputType, InputValidation, Label, LoadingSpinner, Logo, type LogoProps, Message, type MessageProps, Modal, NavBar, PhoneNumberInput, RadioButton, Row, SearchDropdownWithButton, Select, TagSelect as TagDropdown, TagSelect, Textarea, Tooltip, Typhography, useSchemaProcessor as UseSchemaProcessor, type VariantTypes };
|