Skip to content

Commit

Permalink
update default slot doc wording
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Feb 12, 2019
1 parent e3e7fba commit e184014
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 89 deletions.
2 changes: 1 addition & 1 deletion core/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { hasShadowDom } from '../../utils/helpers';
import { createColorClasses, openURL } from '../../utils/theme';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot icon-only - Should be used on an icon in a button that has no text.
* @slot start - Content is placed to the left of the button text in LTR, and to the right in RTL.
* @slot end - Content is placed to the right of the button text in LTR, and to the left in RTL.
Expand Down
10 changes: 0 additions & 10 deletions core/src/components/button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,6 @@ This attribute specifies the size of the button. Setting this attribute will cha
| `ionFocus` | Emitted when the button has focus. | `CustomEvent<void>` |


## Slots

| Slot | Description |
| ------------- | --------------------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"end"` | Content is placed to the right of the button text in LTR, and to the left in RTL. |
| `"icon-only"` | Should be used on an icon in a button that has no text. |
| `"start"` | Content is placed to the left of the button text in LTR, and to the right in RTL. |


## CSS Custom Properties

| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/content/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isPlatform } from '../../utils/platform';
import { createColorClasses, hostContext } from '../../utils/theme';

/**
* @slot - Content is placed in the scrollable area if a slot is not provided.
* @slot - Content is placed in the scrollable area if provided without a slot.
* @slot fixed - Should be used for fixed content that should not scroll.
*/
@Component({
Expand Down
8 changes: 0 additions & 8 deletions core/src/components/content/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,6 @@ Type: `Promise<void>`



## Slots

| Slot | Description |
| --------- | ------------------------------------------------------------------- |
| | Content is placed in the scrollable area if a slot is not provided. |
| `"fixed"` | Should be used for fixed content that should not scroll. |


## CSS Custom Properties

| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item-divider/item-divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color, Mode } from '../../interface';
import { createColorClasses } from '../../utils/theme';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot start - Content is placed to the left of the divider text in LTR, and to the right in RTL.
* @slot end - Content is placed to the right of the divider text in LTR, and to the left in RTL.
*/
Expand Down
9 changes: 0 additions & 9 deletions core/src/components/item-divider/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ Item Dividers are block elements that can be used to separate items in a list. T
| `sticky` | `sticky` | When it's set to `true`, the item-divider will stay visible when it reaches the top of the viewport until the next `ion-item-divider` replaces it. This feature relies in `position:sticky`: https://caniuse.com/#feat=css-sticky | `boolean` | `false` |


## Slots

| Slot | Description |
| --------- | ---------------------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"end"` | Content is placed to the right of the divider text in LTR, and to the left in RTL. |
| `"start"` | Content is placed to the left of the divider text in LTR, and to the right in RTL. |


## CSS Custom Properties

| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item-option/item-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color, Mode } from '../../interface';
import { createColorClasses } from '../../utils/theme';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot start - Content is placed to the left of the option text in LTR, and to the right in RTL.
* @slot top - Content is placed above the option text.
* @slot icon-only - Should be used on an icon in an option that has no text.
Expand Down
12 changes: 0 additions & 12 deletions core/src/components/item-option/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ action for the item.
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |


## Slots

| Slot | Description |
| ------------- | --------------------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"bottom"` | Content is placed below the option text. |
| `"end"` | Content is placed to the right of the option text in LTR, and to the left in RTL. |
| `"icon-only"` | Should be used on an icon in an option that has no text. |
| `"start"` | Content is placed to the left of the option text in LTR, and to the right in RTL. |
| `"top"` | Content is placed above the option text. |


## CSS Custom Properties

| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color, CssClassMap, Mode, RouterDirection, StyleEventDetail } from '../
import { createColorClasses, hostContext, openURL } from '../../utils/theme';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot start - Content is placed to the left of the item text in LTR, and to the right in RTL.
* @slot end - Content is placed to the right of the item text in LTR, and to the left in RTL.
*/
Expand Down
9 changes: 0 additions & 9 deletions core/src/components/item/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -721,15 +721,6 @@ Item Inputs
| `type` | `type` | The type of the button. Only used when an `onclick` or `button` property is present. | `"button" \| "reset" \| "submit"` | `'button'` |


## Slots

| Slot | Description |
| --------- | ------------------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"end"` | Content is placed to the right of the item text in LTR, and to the left in RTL. |
| `"start"` | Content is placed to the left of the item text in LTR, and to the right in RTL. |


## CSS Custom Properties

| Name | Description |
Expand Down
8 changes: 0 additions & 8 deletions core/src/components/range/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ left or right of the range.
| `ionFocus` | Emitted when the range has focus. | `CustomEvent<void>` |


## Slots

| Slot | Description |
| --------- | ---------------------------------------------------------------------------------- |
| `"end"` | Content is placed to the right of the range slider in LTR, and to the left in RTL. |
| `"start"` | Content is placed to the left of the range slider in LTR, and to the right in RTL. |


## CSS Custom Properties

| Name | Description |
Expand Down
9 changes: 3 additions & 6 deletions core/src/components/slides/swiper/swiper.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ var win = (typeof window === 'undefined') ? {
} : window; // eslint-disable-line

/**
* Dom7 2.1.3
* Dom7 2.1.2
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
* http://framework7.io/docs/dom.html
*
* Copyright 2019, Vladimir Kharlampidi
* Copyright 2018, Vladimir Kharlampidi
* The iDangero.us
* http://www.idangero.us/
*
* Licensed under MIT
*
* Released on: February 11, 2019
* Released on: September 13, 2018
*/

class Dom7 {
Expand Down Expand Up @@ -361,9 +361,6 @@ function off(...args) {
if (listener && handler.listener === listener) {
el.removeEventListener(event, handler.proxyListener, capture);
handlers.splice(k, 1);
} else if (listener && handler.listener && handler.listener.dom7proxy && handler.listener.dom7proxy === listener) {
el.removeEventListener(event, handler.proxyListener, capture);
handlers.splice(k, 1);
} else if (!listener) {
el.removeEventListener(event, handler.proxyListener, capture);
handlers.splice(k, 1);
Expand Down
9 changes: 0 additions & 9 deletions core/src/components/tabs/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,6 @@ Type: `Promise<boolean>`



## Slots

| Slot | Description |
| ---------- | -------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"bottom"` | Content is placed at the bottom of the screen. |
| `"top"` | Content is placed at the top of the screen. |


----------------------------------------------

*Built with [StencilJS](https://stenciljs.com/)*
2 changes: 1 addition & 1 deletion core/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, Element, Event, EventEmitter, Listen, Method, Prop, State }
import { Config, NavOutlet, RouteID, RouteWrite, TabButtonClickEventDetail } from '../../interface';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot top - Content is placed at the top of the screen.
* @slot bottom - Content is placed at the bottom of the screen.
*/
Expand Down
11 changes: 0 additions & 11 deletions core/src/components/toolbar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,17 +351,6 @@ In `md` mode, the `<ion-header>` will receive a box-shadow on the bottom, and th
| `mode` | `mode` | The mode determines which platform styles to use. | `"ios" \| "md"` | `undefined` |


## Slots

| Slot | Description |
| ------------- | -------------------------------------------------------------------------------------------------------- |
| | Content is placed between the named slots if a slot is not provided. |
| `"end"` | Content is placed to the left of the toolbar text in LTR, and to the right in RTL. |
| `"primary"` | Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode. |
| `"secondary"` | Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode. |
| `"start"` | Content is placed to the left of the toolbar text in LTR, and to the right in RTL. |


## CSS Custom Properties

| Name | Description |
Expand Down
2 changes: 1 addition & 1 deletion core/src/components/toolbar/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Color, Config, CssClassMap, Mode, StyleEventDetail } from '../../interf
import { createColorClasses } from '../../utils/theme';

/**
* @slot - Content is placed between the named slots if a slot is not provided.
* @slot - Content is placed between the named slots if provided without a slot.
* @slot start - Content is placed to the left of the toolbar text in LTR, and to the right in RTL.
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
Expand Down

0 comments on commit e184014

Please sign in to comment.