tailwind-ux-kit 1.0.74 → 1.0.76
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.
|
@@ -4,6 +4,7 @@ type Shape = "flat" | "rounded" | "pill";
|
|
|
4
4
|
type Status = "default" | "error" | "warning" | "success";
|
|
5
5
|
type FloatingLabelStyle = "filled" | "outlined" | "standard";
|
|
6
6
|
type IconPosition = "start" | "end" | "left" | "right";
|
|
7
|
+
type InputType = "string" | "number" | "numeric" | "decimal" | "alphanumeric" | "alphabetic" | "custom";
|
|
7
8
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
8
9
|
label?: string | React.ReactNode;
|
|
9
10
|
id?: string;
|
|
@@ -22,6 +23,8 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChan
|
|
|
22
23
|
feedback?: string;
|
|
23
24
|
feedbackType?: "valid" | "invalid";
|
|
24
25
|
labelClasses?: string;
|
|
26
|
+
inputType?: InputType;
|
|
27
|
+
inputPattern?: RegExp;
|
|
25
28
|
}
|
|
26
29
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
27
30
|
export default Input;
|
|
@@ -9,7 +9,8 @@ type ModalProps = {
|
|
|
9
9
|
showFloatingClose?: boolean;
|
|
10
10
|
containerClasses?: string;
|
|
11
11
|
disableEscapeClose?: boolean;
|
|
12
|
+
closeBtnStyle?: boolean;
|
|
12
13
|
onClose?: () => void;
|
|
13
14
|
};
|
|
14
|
-
export default function Modal({ id, title, children, standalone, showFloatingClose, containerClasses, onClose, disableEscapeClose, }: ModalProps): ReactElement | null;
|
|
15
|
+
export default function Modal({ id, title, children, standalone, showFloatingClose, containerClasses, onClose, disableEscapeClose, closeBtnStyle, }: ModalProps): ReactElement | null;
|
|
15
16
|
export {};
|