Skip to content

Commit

Permalink
feat: update docs (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneslumpe authored Nov 14, 2018
1 parent 86dd9fd commit 7ef03ec
Show file tree
Hide file tree
Showing 16 changed files with 276 additions and 27 deletions.
10 changes: 8 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

# styled-props
# @johanneslumpe/styled-props

## External modules
## Index

### External modules

* ["display"](modules/_display_.md)
* ["flex"](modules/_flex_.md)
* ["index"](modules/_index_.md)
* ["style"](modules/_style_.md)
* ["textColor"](modules/_textcolor_.md)
* ["types"](modules/_types_.md)

---
Expand Down
30 changes: 30 additions & 0 deletions docs/interfaces/_display_.idisplayprops.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[@johanneslumpe/styled-props](../README.md) > ["display"](../modules/_display_.md) > [IDisplayProps](../interfaces/_display_.idisplayprops.md)

# Interface: IDisplayProps

## Type parameters
#### T
## Hierarchy

**IDisplayProps**

## Index

### Properties

* [display](_display_.idisplayprops.md#display)

---

## Properties

<a id="display"></a>

### display

**● display**: *`T`*

*Defined in [display.ts:6](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/display.ts#L6)*

___

30 changes: 30 additions & 0 deletions docs/interfaces/_flex_.iflexprops.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[@johanneslumpe/styled-props](../README.md) > ["flex"](../modules/_flex_.md) > [IFlexProps](../interfaces/_flex_.iflexprops.md)

# Interface: IFlexProps

## Type parameters
#### T
## Hierarchy

**IFlexProps**

## Index

### Properties

* [flex](_flex_.iflexprops.md#flex)

---

## Properties

<a id="flex"></a>

### flex

**● flex**: *`T`*

*Defined in [flex.ts:6](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/flex.ts#L6)*

___

30 changes: 30 additions & 0 deletions docs/interfaces/_textcolor_.itextcolorprops.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[@johanneslumpe/styled-props](../README.md) > ["textColor"](../modules/_textcolor_.md) > [ITextColorProps](../interfaces/_textcolor_.itextcolorprops.md)

# Interface: ITextColorProps

## Type parameters
#### T
## Hierarchy

**ITextColorProps**

## Index

### Properties

* [textColor](_textcolor_.itextcolorprops.md#textcolor)

---

## Properties

<a id="textcolor"></a>

### textColor

**● textColor**: *`T`*

*Defined in [textColor.ts:5](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/textColor.ts#L5)*

___

4 changes: 2 additions & 2 deletions docs/interfaces/_types_.ibasecssvalue.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [IBaseCssValue](../interfaces/_types_.ibasecssvalue.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [IBaseCssValue](../interfaces/_types_.ibasecssvalue.md)

# Interface: IBaseCssValue

Expand All @@ -24,7 +24,7 @@

**● base**: *[T]()*

*Defined in [types.ts:5](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L5)*
*Defined in [types.ts:5](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L5)*

The base css value, without any media queries applied

Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/_types_.ibreakpointtheme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [IBreakpointTheme](../interfaces/_types_.ibreakpointtheme.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [IBreakpointTheme](../interfaces/_types_.ibreakpointtheme.md)

# Interface: IBreakpointTheme

Expand Down Expand Up @@ -26,7 +26,7 @@
**● theme**: * `T` & `object`
*

*Defined in [types.ts:36](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L36)*
*Defined in [types.ts:36](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L36)*

___

2 changes: 1 addition & 1 deletion docs/interfaces/_types_.idictionary.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [IDictionary](../interfaces/_types_.idictionary.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [IDictionary](../interfaces/_types_.idictionary.md)

# Interface: IDictionary

Expand Down
24 changes: 19 additions & 5 deletions docs/interfaces/_types_.istyleoptions.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [IStyleOptions](../interfaces/_types_.istyleoptions.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [IStyleOptions](../interfaces/_types_.istyleoptions.md)

# Interface: IStyleOptions

## Type parameters
#### P
#### T
#### K : `Extract`<`keyof T`, `string`>
## Hierarchy

**IStyleOptions**
Expand All @@ -13,6 +14,7 @@

### Properties

* [arrayResolver](_types_.istyleoptions.md#arrayresolver)
* [cssProp](_types_.istyleoptions.md#cssprop)
* [prop](_types_.istyleoptions.md#prop)
* [themeProp](_types_.istyleoptions.md#themeprop)
Expand All @@ -21,13 +23,25 @@

## Properties

<a id="arrayresolver"></a>

### `<Optional>` arrayResolver

**● arrayResolver**: * `undefined` &#124; `function`
*

*Defined in [types.ts:69](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L69)*

The resolver to be used for array values

___
<a id="cssprop"></a>

### cssProp

**● cssProp**: *`string`*

*Defined in [types.ts:50](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L50)*
*Defined in [types.ts:54](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L54)*

The css property this function should map to

Expand All @@ -38,7 +52,7 @@ ___

**● prop**: *`Extract`<`keyof P`, `string`>*

*Defined in [types.ts:54](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L54)*
*Defined in [types.ts:59](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L59)*

The property of the component's props to read from

Expand All @@ -47,9 +61,9 @@ ___

### `<Optional>` themeProp

**● themeProp**: *`Extract`<`keyof T`, `string`>*
**● themeProp**: *[K]()*

*Defined in [types.ts:58](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L58)*
*Defined in [types.ts:64](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L64)*

The property within the theme to map the `prop` value to

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/_types_.istyles.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [IStyles](../interfaces/_types_.istyles.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [IStyles](../interfaces/_types_.istyles.md)

# Interface: IStyles

Expand Down
4 changes: 2 additions & 2 deletions docs/interfaces/_types_.itheme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["types"](../modules/_types_.md) > [ITheme](../interfaces/_types_.itheme.md)
[@johanneslumpe/styled-props](../README.md) > ["types"](../modules/_types_.md) > [ITheme](../interfaces/_types_.itheme.md)

# Interface: ITheme

Expand All @@ -25,7 +25,7 @@
**● theme**: * `T` & `object`
*

*Defined in [types.ts:32](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/types.ts#L32)*
*Defined in [types.ts:32](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/types.ts#L32)*

___

36 changes: 36 additions & 0 deletions docs/modules/_display_.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[@johanneslumpe/styled-props](../README.md) > ["display"](../modules/_display_.md)

# External module: "display"

## Index

### Interfaces

* [IDisplayProps](../interfaces/_display_.idisplayprops.md)

### Functions

* [display](_display_.md#display)

---

## Functions

<a id="display"></a>

### `<Const>` display

**display**T,Theme,Breakpoints(): `styleImplementation`

*Defined in [display.ts:9](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/display.ts#L9)*

**Type parameters:**

#### T
#### Theme
#### Breakpoints

**Returns:** `styleImplementation`

___

36 changes: 36 additions & 0 deletions docs/modules/_flex_.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[@johanneslumpe/styled-props](../README.md) > ["flex"](../modules/_flex_.md)

# External module: "flex"

## Index

### Interfaces

* [IFlexProps](../interfaces/_flex_.iflexprops.md)

### Functions

* [flex](_flex_.md#flex)

---

## Functions

<a id="flex"></a>

### `<Const>` flex

**flex**T,Theme,Breakpoints(): `styleImplementation`

*Defined in [flex.ts:9](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/flex.ts#L9)*

**Type parameters:**

#### T
#### Theme
#### Breakpoints

**Returns:** `styleImplementation`

___

8 changes: 8 additions & 0 deletions docs/modules/_index_.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[@johanneslumpe/styled-props](../README.md) > ["index"](../modules/_index_.md)

# External module: "index"

## Index

---

28 changes: 23 additions & 5 deletions docs/modules/_style_.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[styled-props](../README.md) > ["style"](../modules/_style_.md)
[@johanneslumpe/styled-props](../README.md) > ["style"](../modules/_style_.md)

# External module: "style"

Expand All @@ -12,6 +12,7 @@

### Functions

* [DEFAULT_ARRAY_RESOLVER](_style_.md#default_array_resolver)
* [style](_style_.md#style)

---
Expand All @@ -24,7 +25,7 @@

**● BASE_EMPTY_INDEXED_OBJECT**: *[IDictionary](../interfaces/_types_.idictionary.md)<`any`>* = BASE_EMPTY_OBJECT

*Defined in [style.ts:10](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/style.ts#L10)*
*Defined in [style.ts:4](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/style.ts#L4)*

___
<a id="base_empty_object"></a>
Expand All @@ -33,7 +34,7 @@ ___

**● BASE_EMPTY_OBJECT**: *`object`*

*Defined in [style.ts:9](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/style.ts#L9)*
*Defined in [style.ts:3](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/style.ts#L3)*

#### Type declaration

Expand All @@ -44,19 +45,36 @@ ___

**● BREAKPOINTS_BASE_VALUE_KEY**: *"base"* = "base"

*Defined in [style.ts:11](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/style.ts#L11)*
*Defined in [style.ts:5](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/style.ts#L5)*

___

## Functions

<a id="default_array_resolver"></a>

### `<Const>` DEFAULT_ARRAY_RESOLVER

**DEFAULT_ARRAY_RESOLVER**(value: *`Array`< `string` &#124; `number`>*): `string`

*Defined in [style.ts:7](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/style.ts#L7)*

**Parameters:**

| Param | Type |
| ------ | ------ |
| value | `Array`< `string` &#124; `number`> |

**Returns:** `string`

___
<a id="style"></a>

### style

**style**P,T,B(__namedParameters: *`object`*): `styleImplementation`

*Defined in [style.ts:13](https://github.com/johanneslumpe/styled-props/blob/892c9ca/src/style.ts#L13)*
*Defined in [style.ts:10](https://github.com/johanneslumpe/styled-props/blob/86dd9fd/src/style.ts#L10)*

**Type parameters:**

Expand Down
Loading

0 comments on commit 7ef03ec

Please # to comment.