@bigbinary/neetoui 4.0.10 → 4.0.12
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/CHANGELOG.md +8 -0
- package/formik.js +1 -1
- package/index.d.ts +12 -7
- package/index.js +1 -1
- package/layouts.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ interface PopupProps {
|
|
|
44
44
|
|
|
45
45
|
interface PopupContentProps {
|
|
46
46
|
className?: string;
|
|
47
|
+
children?: React.ReactNode;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export type ModalProps = PopupProps & { size?: "small" | "medium" | "large" };
|
|
@@ -122,6 +123,8 @@ export type AvatarProps = {
|
|
|
122
123
|
isSquare?: boolean;
|
|
123
124
|
status?: "online" | "idle" | "offline";
|
|
124
125
|
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
126
|
+
showTooltip?: boolean;
|
|
127
|
+
tooltipProps?: TooltipProps;
|
|
125
128
|
className?: string;
|
|
126
129
|
} & React.DetailedHTMLProps<
|
|
127
130
|
React.HTMLAttributes<HTMLSpanElement>,
|
|
@@ -254,7 +257,12 @@ export interface EmailInputProps {
|
|
|
254
257
|
[key: string]: any;
|
|
255
258
|
}
|
|
256
259
|
|
|
257
|
-
export
|
|
260
|
+
export interface InputProps
|
|
261
|
+
extends React.DetailedHTMLProps<
|
|
262
|
+
React.InputHTMLAttributes<HTMLInputElement>,
|
|
263
|
+
HTMLInputElement
|
|
264
|
+
> {
|
|
265
|
+
[key: string]: any;
|
|
258
266
|
size?: "small" | "medium" | "large";
|
|
259
267
|
label?: string;
|
|
260
268
|
error?: string;
|
|
@@ -266,10 +274,7 @@ export type InputProps = {
|
|
|
266
274
|
nakedInput?: boolean;
|
|
267
275
|
contentSize?: number;
|
|
268
276
|
required?: boolean;
|
|
269
|
-
}
|
|
270
|
-
React.InputHTMLAttributes<HTMLInputElement>,
|
|
271
|
-
HTMLInputElement
|
|
272
|
-
> & { [key: string]: any };
|
|
277
|
+
}
|
|
273
278
|
|
|
274
279
|
export type LabelProps = {
|
|
275
280
|
className?: string;
|
|
@@ -544,8 +549,8 @@ export const Toastr: {
|
|
|
544
549
|
success: ToastrFunction;
|
|
545
550
|
error: (
|
|
546
551
|
message: React.ReactNode | Error,
|
|
547
|
-
buttonLabel
|
|
548
|
-
onClick
|
|
552
|
+
buttonLabel?: React.ReactNode,
|
|
553
|
+
onClick?: () => void
|
|
549
554
|
) => void;
|
|
550
555
|
warning: ToastrFunction;
|
|
551
556
|
};
|