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;
|