Skip to content

Commit

Permalink
0.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Apr 25, 2023
1 parent e00e786 commit 7a1eb62
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 34 deletions.
4 changes: 2 additions & 2 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ node_modules/@types/react/index.d.ts:361

#### Defined in

[src/react/List.tsx:203](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L203)
[src/react/List.tsx:199](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L199)

___

Expand All @@ -58,4 +58,4 @@ ___

#### Defined in

[src/react/List.tsx:140](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L140)
[src/react/List.tsx:138](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L138)
6 changes: 4 additions & 2 deletions docs/interfaces/CustomItemComponentProps.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Interface: CustomItemComponentProps

Props of customized item component.

## Table of contents

### Properties
Expand All @@ -15,7 +17,7 @@

#### Defined in

[src/react/List.tsx:199](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L199)
[src/react/List.tsx:195](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L195)

___

Expand All @@ -25,4 +27,4 @@ ___

#### Defined in

[src/react/List.tsx:200](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L200)
[src/react/List.tsx:196](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L196)
14 changes: 8 additions & 6 deletions docs/interfaces/CustomWindowComponentProps.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Interface: CustomWindowComponentProps

Props of customized scrollable component.

## Table of contents

### Properties
Expand All @@ -19,7 +21,7 @@

#### Defined in

[src/react/List.tsx:102](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L102)
[src/react/List.tsx:100](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L100)

___

Expand All @@ -29,7 +31,7 @@ ___

#### Defined in

[src/react/List.tsx:103](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L103)
[src/react/List.tsx:101](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L101)

___

Expand All @@ -39,7 +41,7 @@ ___

#### Defined in

[src/react/List.tsx:104](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L104)
[src/react/List.tsx:102](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L102)

___

Expand All @@ -49,7 +51,7 @@ ___

#### Defined in

[src/react/List.tsx:105](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L105)
[src/react/List.tsx:103](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L103)

___

Expand All @@ -59,7 +61,7 @@ ___

#### Defined in

[src/react/List.tsx:106](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L106)
[src/react/List.tsx:104](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L104)

___

Expand All @@ -69,4 +71,4 @@ ___

#### Defined in

[src/react/List.tsx:107](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L107)
[src/react/List.tsx:105](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L105)
8 changes: 4 additions & 4 deletions docs/interfaces/ListHandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Get current scrollTop or scrollLeft.

#### Defined in

[src/react/List.tsx:218](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L218)
[src/react/List.tsx:214](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L214)

___

Expand All @@ -36,7 +36,7 @@ Get current scrollHeight or scrollWidth.

#### Defined in

[src/react/List.tsx:222](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L222)
[src/react/List.tsx:218](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L218)

## Methods

Expand All @@ -58,7 +58,7 @@ Scroll to the item specified by index.

#### Defined in

[src/react/List.tsx:227](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L227)
[src/react/List.tsx:223](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L223)

___

Expand All @@ -80,4 +80,4 @@ Scroll to the item specified by offset.

#### Defined in

[src/react/List.tsx:232](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L232)
[src/react/List.tsx:228](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L228)
34 changes: 17 additions & 17 deletions docs/interfaces/ListProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Elements rendered by this component.

#### Defined in

[src/react/List.tsx:242](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L242)
[src/react/List.tsx:238](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L238)

___

Expand All @@ -45,7 +45,7 @@ Item size hint for unmeasured items. It's recommended to specify this prop if it

#### Defined in

[src/react/List.tsx:247](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L247)
[src/react/List.tsx:243](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L243)

___

Expand All @@ -61,7 +61,7 @@ Number of items to render above/below the visible bounds of the list. You can in

#### Defined in

[src/react/List.tsx:252](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L252)
[src/react/List.tsx:248](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L248)

___

Expand All @@ -73,7 +73,7 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver

#### Defined in

[src/react/List.tsx:256](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L256)
[src/react/List.tsx:252](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L252)

___

Expand All @@ -85,7 +85,7 @@ You have to set true if you use this component under `direction: rtl` style.

#### Defined in

[src/react/List.tsx:260](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L260)
[src/react/List.tsx:256](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L256)

___

Expand All @@ -101,7 +101,7 @@ Number of items to be the margin from the end of the scroll. See also [onEndReac

#### Defined in

[src/react/List.tsx:265](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L265)
[src/react/List.tsx:261](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L261)

___

Expand All @@ -113,39 +113,39 @@ Inline style prop to override style of scrollable element.

#### Defined in

[src/react/List.tsx:269](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L269)
[src/react/List.tsx:265](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L265)

___

### element

`Optional` **element**: `ForwardRefExoticComponent`<[`CustomWindowComponentProps`](CustomWindowComponentProps.md) & `RefAttributes`<`any`\>\>

Customized element type for scrollable element.
Customized element type for scrollable element. This element will get [CustomWindowComponentProps](CustomWindowComponentProps.md) as props.

**`Default Value`**

DefaultWindow

#### Defined in

[src/react/List.tsx:274](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L274)
[src/react/List.tsx:270](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L270)

___

### itemElement

`Optional` **itemElement**: `CustomItemComponentOrElement`

Customized element type for item element.
Customized element type for item element. This element will get [CustomItemComponentProps](CustomItemComponentProps.md) as props.

**`Default Value`**

"div"

#### Defined in

[src/react/List.tsx:279](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L279)
[src/react/List.tsx:275](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L275)

___

Expand All @@ -165,7 +165,7 @@ Callback invoked when scrolling reached to the end. The margin from the end is s

#### Defined in

[src/react/List.tsx:283](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L283)
[src/react/List.tsx:279](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L279)

___

Expand All @@ -181,17 +181,17 @@ Callback invoked whenever scroll offset changes.

##### Parameters

| Name | Type |
| :------ | :------ |
| `offset` | `number` |
| Name | Type | Description |
| :------ | :------ | :------ |
| `offset` | `number` | Current scrollTop or scrollLeft. |

##### Returns

`void`

#### Defined in

[src/react/List.tsx:287](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L287)
[src/react/List.tsx:284](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L284)

___

Expand All @@ -211,4 +211,4 @@ Callback invoked when scrolling stops.

#### Defined in

[src/react/List.tsx:291](https://github.com/inokawa/virtua/blob/6085b71/src/react/List.tsx#L291)
[src/react/List.tsx:288](https://github.com/inokawa/virtua/blob/e00e786/src/react/List.tsx#L288)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "virtua",
"version": "0.1.11",
"version": "0.1.12",
"description": "A zero-config, fast and small (3kB) virtual list component for React.",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit 7a1eb62

Please sign in to comment.