Link

Overview


Table of contents


CssProperties (type alias)

Css Property Basic type

All Property will extend it

Signature

export type CssProperties = object

Added in v0.2.0

CssTheme (type alias)

Theme Basic type

All Theme will extend it

Signature

export type CssTheme = object

Added in v0.2.0

Node (type alias)

The base Node Key is css selector Value is css value

Signature

export type Node<T extends CssProperties> = Record<string, T>

Example


'': {
color: 'red',
},
':focus': {
color: '1',
},
':focus:active': {
margin: 5,
},
':focus:disable': {
margin: 5,
},
':focus:active:disable': {
color: 'blue'
}

Added in v0.2.0

ThemeNode (type alias)

The Type contains Node and Theme

Signature

export type ThemeNode<O extends CssProperties, T extends CssTheme> = { data: Node<O>; theme?: T }

Added in v0.2.0

chainNode (function)

chain Node to Node

Signature


export const chainNode = <B extends CssProperties>(m: Monoid<Node<B>> = getMonoid()) =>
    <A extends CssProperties>
        (f: (key: string, value: A) => Node<B>) => (a: Node<A>): Node<B> => ...

Added in v0.2.0

map (export)

Signature

typeof R.map

Added in v0.2.0

mapWithIndex (export)

Signature

typeof R.mapWithIndex

Added in v0.2.0

record (export)

Signature


FunctorWithIndex1<"Record", string> & Foldable1<"Record"> & TraversableWithIndex1<"Record", string> & Compactable1<"Record"> & FilterableWithIndex1<"Record", string> & Witherable1<"Record"> & FoldableWithIndex1<"Record", string>

Added in v0.2.0

reduce (export)

Signature

;<A, B>(b: B, f: (b: B, a: A) => B) => (fa: Record<string, A>) => B

Added in v0.2.0

reduceRight (export)

Signature

;<A, B>(b: B, f: (a: A, b: B) => B) => (fa: Record<string, A>) => B

Added in v0.2.0

reduceRightWithIndex (export)

Signature

typeof R.reduceRightWithIndex

Added in v0.2.0

reduceWithIndex (export)

Signature

typeof R.reduceWithIndex

Added in v0.2.0