|
|
|
@ -1,20 +1,17 @@
|
|
|
|
|
mod group; |
|
|
|
|
mod props; |
|
|
|
|
mod textarea; |
|
|
|
|
|
|
|
|
|
pub use self::props::Props; |
|
|
|
|
pub use self::{group::InputGroup, textarea::TextArea}; |
|
|
|
|
pub use self::{group::InputGroup, props::Props, textarea::TextArea}; |
|
|
|
|
use crate::{prelude::*, render}; |
|
|
|
|
use std::fmt::{Display, Formatter, Result as FmtResult}; |
|
|
|
|
use std::{ |
|
|
|
|
borrow::Cow, |
|
|
|
|
fmt::{Display, Formatter, Result as FmtResult}, |
|
|
|
|
}; |
|
|
|
|
#[cfg(feature = "validate")] |
|
|
|
|
use validator::ValidationErrors; |
|
|
|
|
use yew::prelude::*; |
|
|
|
|
use yew::{html::IntoOptPropValue, prelude::*}; |
|
|
|
|
|
|
|
|
|
mod group; |
|
|
|
|
mod props; |
|
|
|
|
mod textarea; |
|
|
|
|
|
|
|
|
|
#[derive(Clone, PartialEq)] |
|
|
|
|
pub enum InputType { |
|
|
|
|
Text, |
|
|
|
|