Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs-templates/Accordion.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Accessible Accordion component. It follows the
link_title: Accordion Example Live Demo
js: src/accordion/stories/__js/AccordionBasic.component.jsx
css: src/accordion/stories/AccordionStyled.css
deps: [emotion]
-->

# Props
## Props

<!-- INJECT_PROPS src/accordion -->

### Accessibility
## Accessibility

- `Accordion` extends the accessibility features of
[Composite](https://github.com/reakit/reakit/blob/master/docs/composite/#accessibility).
Expand All @@ -30,11 +31,11 @@ css: src/accordion/stories/AccordionStyled.css
- `AccordionPanel` extends the accessibility features of
[DisclosureContent](https://github.com/reakit/reakit/blob/master/docs/disclosure).

### Composition
## Composition

<!-- INJECT_COMPOSITION src/accordion -->

### Example
## Example

```js
<!-- IMPORT_EXAMPLE src/accordion/stories/__js/AccordionBasic.component.jsx -->
Expand Down
8 changes: 4 additions & 4 deletions docs-templates/Breadcrumb.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ Accessible `Breadcrumb` component that provides the required aria attributes for
it's links. It follows the
[WAI-ARIA Breadcrumb Pattern](https://www.w3.org/TR/wai-aria-practices-1.2/#breadcrumb).

# Props
## Props

<!-- INJECT_PROPS src/breadcrumbs -->

### Accessibilty
## Accessibilty

- `Breadcrumbs` should have `aria-label` or `aria-labelledby` attribute.
- `BreadcrumbLink` should have `aria-current` set to `page` if the currenct page
is loaded.
- `BreadcrumbLink` extends the accessibility features of [Link](#Link).

### Composition
## Composition

<!-- INJECT_COMPOSITION src/breadcrumbs -->

### Example
## Example

```js
<!-- IMPORT_EXAMPLE src/breadcrumbs/stories/__js/Breadcrumbs.component.jsx -->
Expand Down
10 changes: 5 additions & 5 deletions docs-templates/Calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ js: src/calendar/stories/__js/CalendarRange.component.jsx
css: src/calendar/stories/CalendarRange.css
-->

# Props
## Props

<!-- INJECT_PROPS src/calendar -->

# Composition
## Composition

<!-- INJECT_COMPOSITION src/calendar -->

### Example
## Example

#### Base Calendar
### Base Calendar

```js
<!-- IMPORT_EXAMPLE src/calendar/stories/__js/CalendarBase.component.jsx -->
```

#### Range Calendar
### Range Calendar

```js
<!-- IMPORT_EXAMPLE src/calendar/stories/__js/CalendarRange.component.jsx -->
Expand Down
14 changes: 7 additions & 7 deletions docs-templates/DatePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ js: src/datepicker/stories/__js/DateRangePicker.component.jsx
css: src/datepicker/stories/DatePickerRange.css
-->

# Props
## Props

<!-- INJECT_PROPS src/datepicker -->

# Composition
## Composition

<!-- INJECT_COMPOSITION src/datepicker -->

### Example
## Example

#### DatePicker
### DatePicker

```js
<!-- IMPORT_EXAMPLE src/datepicker/stories/__js/DatePicker.component.jsx -->
<!-- IMPORT_EXAMPLE src/datepicker/stories/__js/DatePickerBase.component.jsx -->
```

#### Range Date Picker
### Range Date Picker

```js
<!-- IMPORT_EXAMPLE src/datepicker/stories/__js/DateRangePicker.component.jsx -->
<!-- IMPORT_EXAMPLE src/datepicker/stories/__js/DatePickerRange.component.jsx -->
```
8 changes: 4 additions & 4 deletions docs-templates/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ Accessible `Link` component that provides the required aria role when used under
different compositions. It follows the
[WAI-ARIA Link Pattern](https://www.w3.org/TR/wai-aria-practices-1.2/#link).

# Props
## Props

<!-- INJECT_PROPS src/link -->

### Accessibilty
## Accessibilty

- `Link` has role `link`.

### Composition
## Composition

<!-- INJECT_COMPOSITION src/link -->

### Example
## Example

```js
<!-- IMPORT_EXAMPLE src/link/stories/__js/Link.component.jsx -->
Expand Down
22 changes: 22 additions & 0 deletions docs-templates/drawer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Drawer

Accessible `Drawer` component.

<!-- CODESANDBOX
link_title: Drawer - Open On Sandbox
js: src/drawer/stories/__js/Drawer.component.jsx
-->

## Props

<!-- INJECT_PROPS src/drawer -->

## Composition

<!-- INJECT_COMPOSITION src/drawer -->

## Example

```js
<!-- IMPORT_EXAMPLE src/drawer/stories/__js/Drawer.component.jsx -->
```
23 changes: 23 additions & 0 deletions docs-templates/meter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Meter

Accessible `Meter` component.

<!-- CODESANDBOX
link_title: Meter - Open On Sandbox
js: src/meter/stories/__js/Meter.component.jsx
deps: [emotion]
-->

## Props

<!-- INJECT_PROPS src/meter -->

## Composition

<!-- INJECT_COMPOSITION src/meter -->

## Example

```js
<!-- IMPORT_EXAMPLE src/meter/stories/__js/Meter.component.jsx -->
```
22 changes: 22 additions & 0 deletions docs-templates/number-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## NumberInput

Accessible `NumberInput` component.

<!-- CODESANDBOX
link_title: NumberInput - Open On Sandbox
js: src/number-input/stories/__js/NumberInput.component.jsx
-->

## Props

<!-- INJECT_PROPS src/number-input -->

## Composition

<!-- INJECT_COMPOSITION src/number-input -->

## Example

```js
<!-- IMPORT_EXAMPLE src/number-input/stories/__js/NumberInput.component.jsx -->
```
22 changes: 22 additions & 0 deletions docs-templates/pagination.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Pagination

Accessible `Pagination` component.

<!-- CODESANDBOX
link_title: Pagination - Open On Sandbox
js: src/pagination/stories/__js/Pagination.component.jsx
-->

## Props

<!-- INJECT_PROPS src/pagination -->

## Composition

<!-- INJECT_COMPOSITION src/pagination -->

## Example

```js
<!-- IMPORT_EXAMPLE src/pagination/stories/__js/Pagination.component.jsx -->
```
22 changes: 22 additions & 0 deletions docs-templates/picker-base.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## PickerBase

Accessible `PickerBase` component.

<!-- CODESANDBOX
link_title: PickerBase - Open On Sandbox
js: src/picker-base/stories/__js/PickerBase.component.jsx
-->

## Props

<!-- INJECT_PROPS src/picker-base -->

## Composition

<!-- INJECT_COMPOSITION src/picker-base -->

## Example

```js
<!-- IMPORT_EXAMPLE src/picker-base/stories/__js/PickerBase.component.jsx -->
```
23 changes: 23 additions & 0 deletions docs-templates/progress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Progress

Accessible `Progress` component.

<!-- CODESANDBOX
link_title: Progress - Open On Sandbox
js: src/progress/stories/__js/Progress.component.jsx
deps: [emotion]
-->

## Props

<!-- INJECT_PROPS src/progress -->

## Composition

<!-- INJECT_COMPOSITION src/progress -->

## Example

```js
<!-- IMPORT_EXAMPLE src/progress/stories/__js/LinearProgress.component.jsx -->
```
22 changes: 22 additions & 0 deletions docs-templates/segment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Segment

Accessible `Segment` component.

<!-- CODESANDBOX
link_title: Segment - Open On Sandbox
js: src/segment/stories/__js/Segment.component.jsx
-->

## Props

<!-- INJECT_PROPS src/segment -->

## Composition

<!-- INJECT_COMPOSITION src/segment -->

## Example

```js
<!-- IMPORT_EXAMPLE src/segment/stories/__js/Segment.component.jsx -->
```
23 changes: 23 additions & 0 deletions docs-templates/select.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Select

Accessible `Select` component.

<!-- CODESANDBOX
link_title: Select - Open On Sandbox
js: src/select/stories/__js/Select.component.jsx
css: src/select/stories/Select.css
-->

## Props

<!-- INJECT_PROPS src/select -->

## Composition

<!-- INJECT_COMPOSITION src/select -->

## Example

```js
<!-- IMPORT_EXAMPLE src/select/stories/__js/Select.component.jsx -->
```
23 changes: 23 additions & 0 deletions docs-templates/slider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Slider

Accessible `Slider` component.

<!-- CODESANDBOX
link_title: Slider - Open On Sandbox
js: src/slider/stories/__js/components/Slider.component.jsx
css: src/slider/stories/Slider.css
-->

## Props

<!-- INJECT_PROPS src/slider -->

## Composition

<!-- INJECT_COMPOSITION src/slider -->

## Example

```js
<!-- IMPORT_EXAMPLE src/slider/stories/__js/components/Slider.component.jsx -->
```
23 changes: 23 additions & 0 deletions docs-templates/timepicker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## TimePicker

Accessible `TimePicker` component.

<!-- CODESANDBOX
link_title: TimePicker - Open On Sandbox
js: src/timepicker/stories/__js/TimePicker.component.jsx
css: src/timepicker/stories/TimePicker.css
-->

## Props

<!-- INJECT_PROPS src/timepicker -->

## Composition

<!-- INJECT_COMPOSITION src/timepicker -->

## Example

```js
<!-- IMPORT_EXAMPLE src/timepicker/stories/__js/TimePicker.component.jsx -->
```
16 changes: 16 additions & 0 deletions docs-templates/toast.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Toast

Accessible `Toast` component.

<!-- CODESANDBOX
link_title: Toast - Open On Sandbox
js: src/toast/stories/__js/ToastBasic.component.jsx
utils: src/toast/stories/__js/Utils.component.jsx
css: src/toast/stories/ToastBasic.css
-->

## Example

```js
<!-- IMPORT_EXAMPLE src/toast/stories/__js/ToastBasic.component.jsx -->
```
Loading