Module
Chameleon.Styled.Elems
- Package
- purescript-chameleon-styled
- Repository
- thought2/purescript-chameleon-styled
#StyleElems Source
class StyleElems :: Row Type -> Row Type -> Constraint
class StyleElems (rowIn :: Row Type) (rowOut :: Row Type) | rowIn -> rowOut where
Members
styleElems' :: forall style. IsStyle style => String -> (Int -> String -> style) -> Record rowIn -> Record rowOut
Instances
(RowToList rowIn rowlist, StyleElemsRL 0 rowlist rowIn rowOut) => StyleElems rowIn rowOut
#styleElems Source
styleElems :: forall rowIn rowOut. StyleElems rowIn rowOut => String -> Record rowIn -> Record rowOut
#StyleElemsRL Source
class StyleElemsRL :: Int -> RowList Type -> Row Type -> Row Type -> Constraint
class StyleElemsRL (index :: Int) (rowlist :: RowList Type) (rowIn :: Row Type) (rowOut :: Row Type) | rowlist rowIn index -> rowOut where
Members
styleElemsRL :: ElemScope -> (Int -> ElemName -> Style) -> Proxy index -> Proxy rowlist -> Record rowIn -> Record rowOut
Instances
StyleElemsRL index Nil row ()
(StyleElemsRL indexPrev rowlistPrev rowIn rowOutPrev, Cons sym typ rowTrash rowIn, Cons sym (Array (Prop a) -> styledElem_) rowOutPrev rowOutTmp, Cons sym_ styledElem_ rowOutTmp rowOut, Append sym "_" sym_, Lacks sym rowOutPrev, Lacks sym_ rowOutTmp, StyleElemsOne typ (Array (Prop a) -> styledElem_), IsSymbol sym, IsSymbol sym_, Add 1 indexPrev index, Reflectable index Int) => StyleElemsRL index (Cons sym typ rowlistPrev) rowIn rowOut
#StyleElemsOne Source
class StyleElemsOne (typ :: Type) (styledElem :: Type) | typ -> styledElem where
Members
styleElemsOne :: ElemName -> ElemScope -> Style -> typ -> styledElem
Instances
(HtmlStyled html) => StyleElemsOne (Array (Prop a) -> html a) (Array (Prop a) -> html a)
(HtmlStyled html) => StyleElemsOne (Array (Prop a) -> Array (html a) -> html a) (Array (Prop a) -> Array (html a) -> html a)
(HtmlStyled html) => StyleElemsOne (Array (Prop a) -> Array (Tuple Key (html a)) -> html a) (Array (Prop a) -> Array (Tuple Key (html a)) -> html a)
(IsStyle style, HtmlStyled html) => StyleElemsOne (Tuple (Array (Prop a) -> html a) style) (Array (Prop a) -> html a)
(IsStyle style, HtmlStyled html) => StyleElemsOne (Record opt -> Tuple (Array (Prop a) -> html a) style) (Record opt -> Array (Prop a) -> html a)
(IsStyle style, HtmlStyled html) => StyleElemsOne (Tuple (Array (Prop a) -> Array (html a) -> html a) style) (Array (Prop a) -> Array (html a) -> html a)
(IsStyle style, HtmlStyled html) => StyleElemsOne (Record opt -> Tuple (Array (Prop a) -> Array (html a) -> html a) style) (Record opt -> Array (Prop a) -> Array (html a) -> html a)
(IsStyle style, HtmlStyled html) => StyleElemsOne (Record opt -> Tuple (Array (Prop a) -> Array (Tuple Key (html a)) -> html a) style) (Record opt -> Array (Prop a) -> Array (Tuple Key (html a)) -> html a)
(IsStyle style, HtmlStyled html, Warn (Text "implicit div")) => StyleElemsOne style (Array (Prop a) -> Array (html a) -> html a)