UNPKG

yashwant-component

Version:
369 lines (298 loc) 8.94 kB
.Input-module_inputWrapper__lCMQf { position: relative; width: 100%; max-width: 300px; /* Adjust as needed */ } .Input-module_inputContainer1__4WiCj { display: flex; align-items: center; gap: 0.05rem; } .Input-module_inputContainer2__8HstR { display: flex; position: relative; align-items: center; border: 2px solid #ccc; border-radius: 4px; padding: 0.5rem; transition: border-color 0.3s, box-shadow 0.3s; } .Input-module_inputField__-1PAN { width: 100%; border: none; outline: none; background: transparent; font-size: 1rem; } .Input-module_prefix__jPomb, .Input-module_suffix__zI8IG { padding: 0 0.5rem; } .Input-module_clearButton__5Q-Tn { background: #006db5; cursor: pointer; color: white; border: none; border-radius: 10%; height: 2rem; margin-left: 0.5rem; } .Input-module_label__0wjiO { margin-bottom: 0.5rem; } .Input-module_helpText__UDf3M, .Input-module_characterCount__FpoqY { font-size: 0.85rem; color: #666; } .Input-module_validationMessage__wphZP { margin-top: 0.25rem; } /* Improved Floating label styles */ .Input-module_floating__C2zLs { position: relative; } .Input-module_floating__C2zLs .Input-module_inputField__-1PAN { padding: 1.25rem 0.5rem 0.5rem; font-size: 1rem; } .Input-module_floating__C2zLs .Input-module_floatingLabel__3MYgh { position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 1rem; color: #777; pointer-events: none; transition: all 0.2s ease-out; } .Input-module_floating__C2zLs.Input-module_focus__KPeOx .Input-module_floatingLabel__3MYgh, .Input-module_floating__C2zLs .Input-module_inputField__-1PAN:not(:placeholder-shown) ~ .Input-module_floatingLabel__3MYgh { top: 0.5rem; font-size: 0.75rem; color: #007bff; transform: translateY(0); } /* State styles */ .Input-module_inputContainer2__8HstR.Input-module_hover__WlB11 { border-color: #4a4a4a; } .Input-module_inputContainer2__8HstR.Input-module_focus__KPeOx { border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); } .Input-module_inputContainer2__8HstR.Input-module_disabled__o82Il { background-color: #e9ecef; pointer-events: none; opacity: 0.6; cursor: not-allowed; } .Input-module_inputContainer2__8HstR.Input-module_readOnly__K5PuH { background-color: #f8f9fa; cursor: not-allowed; } .Input-module_inputContainer2__8HstR.Input-module_error__EF02- { border-color: #dc3545; } .Input-module_inputContainer2__8HstR.Input-module_success__WOQYl { border-color: #1cc143; } .Input-module_loader__n5uvK { border: 2px solid #f3f3f3; border-top: 2px solid #006db5; border-radius: 50%; width: 16px; height: 16px; animation: Input-module_spin__BMJkj 1s linear infinite; display: inline-block; margin-left: 0.5rem; } @keyframes Input-module_spin__BMJkj { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .Input-module_countryCode__AtKPM { border: none; outline: none; background-color: transparent; font-size: 1rem; padding: 0.3rem; border-right: 2px solid #ccc; margin-right: 0.5rem; } .Input-module_countryCode__AtKPM:focus { border-color: #007bff; } .Input-module_telephoneInputContainer__7yuRH { display: flex; align-items: center; gap: 0.5rem; } .Input-module_telephoneInputContainer__7yuRH input[type="tel"] { flex: 1; border: none; outline: none; } .Input-module_icon__s4Rzs { display: flex; align-items: center; margin-right: 0.5rem; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR { background-color: #333; color: #f0f0f0; border-color: #555; } .Input-module_darkMode__aF-R2 .Input-module_inputField__-1PAN { color: #f0f0f0; } .Input-module_darkMode__aF-R2 .Input-module_prefix__jPomb, .Input-module_darkMode__aF-R2 .Input-module_suffix__zI8IG { color: #aaa; } .Input-module_darkMode__aF-R2 .Input-module_label__0wjiO { color: #f0f0f0; } .Input-module_darkMode__aF-R2 .Input-module_helpText__UDf3M, .Input-module_darkMode__aF-R2 .Input-module_characterCount__FpoqY { color: #aaa; } .Input-module_darkMode__aF-R2 .Input-module_clearButton__5Q-Tn { background: #0056b3; } .Input-module_darkMode__aF-R2 .Input-module_floating__C2zLs .Input-module_floatingLabel__3MYgh { color: #aaa; } .Input-module_darkMode__aF-R2 .Input-module_floating__C2zLs.Input-module_focus__KPeOx .Input-module_floatingLabel__3MYgh, .Input-module_darkMode__aF-R2 .Input-module_floating__C2zLs .Input-module_inputField__-1PAN:not(:placeholder-shown) ~ .Input-module_floatingLabel__3MYgh { color: #4da3ff; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_hover__WlB11 { border-color: #777; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_focus__KPeOx { border-color: #4da3ff; box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.25); } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_disabled__o82Il { background-color: #444; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_readOnly__K5PuH { background-color: #3a3a3a; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_error__EF02- { border-color: #ff6b6b; } .Input-module_darkMode__aF-R2 .Input-module_inputContainer2__8HstR.Input-module_success__WOQYl { border-color: #51cf66; } .Input-module_darkMode__aF-R2 .Input-module_loader__n5uvK { border: 2px solid #444; border-top: 2px solid #4da3ff; } .Input-module_darkMode__aF-R2 .Input-module_countryCode__AtKPM { border-right-color: #555; } .Input-module_darkMode__aF-R2 .Input-module_countryCode__AtKPM:focus { border-color: #4da3ff; } .Input-module_characterCount__FpoqY { position: absolute; right: 0; bottom: -1.5rem; font-size: 0.75rem; color: #666; } .Input-module_darkMode__aF-R2 .Input-module_characterCount__FpoqY { color: #aaa; } .Input-module_outlined__NRK-2 { border: 2px solid #ccc; transition: border-color 0.3s; } .Input-module_outlined__NRK-2:hover { border-color: #999; } .Input-module_outlined__NRK-2.Input-module_focus__KPeOx { border-color: #007bff; } .Input-module_outlined__NRK-2.Input-module_error__EF02- { border-color: #dc3545; } .Input-module_outlined__NRK-2.Input-module_success__WOQYl { border-color: #28a745; } /* Filled Input */ .Input-module_filled__ufTtG { background-color: #f0f0f0; border: none; border-bottom: 2px solid #ccc; transition: background-color 0.3s, border-color 0.3s; } .Input-module_filled__ufTtG:hover { background-color: #e8e8e8; } .Input-module_filled__ufTtG.Input-module_focus__KPeOx { background-color: #e0e0e0; border-bottom-color: #007bff; } .Input-module_filled__ufTtG.Input-module_error__EF02- { border-bottom-color: #dc3545; } .Input-module_filled__ufTtG.Input-module_success__WOQYl { border-bottom-color: #28a745; } /* Underlined Input */ .Input-module_underlined__4oFEJ { border: none; border-bottom: 2px solid #ccc; border-radius: 0; padding-left: 0; padding-right: 0; transition: border-color 0.3s; } .Input-module_underlined__4oFEJ:hover { border-bottom-color: #999; } .Input-module_underlined__4oFEJ.Input-module_focus__KPeOx { border-bottom-color: #007bff; } .Input-module_underlined__4oFEJ.Input-module_error__EF02- { border-bottom-color: #dc3545; } .Input-module_underlined__4oFEJ.Input-module_success__WOQYl { border-bottom-color: #28a745; } /* Rounded Input */ .Input-module_rounded__J7urE { border-radius: 20px; } /* Dark Mode Styles */ .Input-module_darkMode__aF-R2 .Input-module_outlined__NRK-2 { border-color: #555; } .Input-module_darkMode__aF-R2 .Input-module_outlined__NRK-2:hover { border-color: #777; } .Input-module_darkMode__aF-R2 .Input-module_outlined__NRK-2.Input-module_focus__KPeOx { border-color: #4da3ff; } .Input-module_darkMode__aF-R2 .Input-module_filled__ufTtG { background-color: #444; border-bottom-color: #555; } .Input-module_darkMode__aF-R2 .Input-module_filled__ufTtG:hover { background-color: #4a4a4a; } .Input-module_darkMode__aF-R2 .Input-module_filled__ufTtG.Input-module_focus__KPeOx { background-color: #505050; border-bottom-color: #4da3ff; } .Input-module_darkMode__aF-R2 .Input-module_underlined__4oFEJ { border-bottom-color: #555; } .Input-module_darkMode__aF-R2 .Input-module_underlined__4oFEJ:hover { border-bottom-color: #777; } .Input-module_darkMode__aF-R2 .Input-module_underlined__4oFEJ.Input-module_focus__KPeOx { border-bottom-color: #4da3ff; } /*# sourceMappingURL=index.css.map */