@edu-tosel/design 1.0.21 → 1.0.22
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/html/widget/EmailInput.js +3 -1
- package/interface/HTMLElement.d.ts +1 -1
- package/package.json +1 -1
- package/version.txt +1 -1
|
@@ -40,5 +40,7 @@ export default function EmailInput({ state, placeholder, options, }) {
|
|
|
40
40
|
? emailCss.true
|
|
41
41
|
: emailCss.false) +
|
|
42
42
|
(isValidEmail(value) && !focused ? emailCss.allTrue : ""), id: id, type: "text", placeholder: placeholder ?? "E-mail을 입력해주세요.", onChange: (e) => setValue(e.target.value), onBlur: handleBlur, onFocus: handleFocus }), value === "" ||
|
|
43
|
-
(!isValidEmail(value) && (_jsx("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3", children: _jsx("span", { className: "text-[#FF8383]", children: "!" }) }))),
|
|
43
|
+
(!isValidEmail(value) && (_jsx("div", { className: "absolute inset-y-0 right-0 flex items-center pr-3", children: _jsx("span", { className: "text-[#FF8383]", children: "!" }) }))), typeof value === "string" &&
|
|
44
|
+
value.length > 5 &&
|
|
45
|
+
!isValidEmail(value) && (_jsx("div", { className: "absolute top-4 left-40 w-60 h-12 bg-black opacity-60 z-100 text-white p-2 text-xs rounded-md shadow-md invisible peer-hover:visible", children: text }))] }));
|
|
44
46
|
}
|
|
@@ -26,7 +26,7 @@ export interface HTMLSelectElement extends HTMLElement {
|
|
|
26
26
|
selectOptions?: [string | number, string][];
|
|
27
27
|
}
|
|
28
28
|
export interface HTMLInputElement extends HTMLElement {
|
|
29
|
-
state: State<string>;
|
|
29
|
+
state: State<string> | State<string | undefined>;
|
|
30
30
|
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
}
|
package/package.json
CHANGED
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.22
|