Skip to content

Commit 66516de

Browse files
authored
feat: version playground examples and docs (#2667)
1 parent 0b1a89c commit 66516de

File tree

5,128 files changed

+152569
-21761
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,128 files changed

+152569
-21761
lines changed

Diff for: docs/api/accordion.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@ Accordions provide collapsible sections in your content to reduce vertical space
2222

2323
## Basic Usage
2424

25-
import Basic from '@site/static/usage/accordion/basic/index.md';
25+
import Basic from '@site/static/usage/v7/accordion/basic/index.md';
2626

2727
<Basic />
2828

2929
## Toggle Accordions
3030

3131
Which accordion is open is controlled by setting the `value` property on `ion-accordion-group`. Setting this property allows developers to programmatically expand or collapse certain accordions.
3232

33-
import Toggle from '@site/static/usage/accordion/toggle/index.md';
33+
import Toggle from '@site/static/usage/v7/accordion/toggle/index.md';
3434

3535
<Toggle />
3636

3737
## Listen for Accordion State Changes
3838

3939
Developers can listen for the `ionChange` event to be notified when accordions expand or collapse.
4040

41-
import ListenChanges from '@site/static/usage/accordion/listen-changes/index.md';
41+
import ListenChanges from '@site/static/usage/v7/accordion/listen-changes/index.md';
4242

4343
<ListenChanges />
4444

4545
## Multiple Accordions
4646

4747
Developers can allow multiple accordions to be open at once with the `multiple` property.
4848

49-
import Multiple from '@site/static/usage/accordion/multiple/index.md';
49+
import Multiple from '@site/static/usage/v7/accordion/multiple/index.md';
5050

5151
<Multiple />
5252

@@ -56,15 +56,15 @@ import Multiple from '@site/static/usage/accordion/multiple/index.md';
5656

5757
Individual accordions can be disabled with the `disabled` property on `ion-accordion`.
5858

59-
import DisableIndividual from '@site/static/usage/accordion/disable/individual/index.md';
59+
import DisableIndividual from '@site/static/usage/v7/accordion/disable/individual/index.md';
6060

6161
<DisableIndividual />
6262

6363
### Accordion Group
6464

6565
The accordion group can be disabled with the `disabled` property on `ion-accordion-group`.
6666

67-
import DisableGroup from '@site/static/usage/accordion/disable/group/index.md';
67+
import DisableGroup from '@site/static/usage/v7/accordion/disable/group/index.md';
6868

6969
<DisableGroup />
7070

@@ -74,15 +74,15 @@ import DisableGroup from '@site/static/usage/accordion/disable/group/index.md';
7474

7575
Individual accordions can be disabled with the `readonly` property on `ion-accordion`.
7676

77-
import ReadonlyIndividual from '@site/static/usage/accordion/readonly/individual/index.md';
77+
import ReadonlyIndividual from '@site/static/usage/v7/accordion/readonly/individual/index.md';
7878

7979
<ReadonlyIndividual />
8080

8181
### Accordion Group
8282

8383
The accordion group can be disabled with the `readonly` property on `ion-accordion-group`.
8484

85-
import ReadonlyGroup from '@site/static/usage/accordion/readonly/group/index.md';
85+
import ReadonlyGroup from '@site/static/usage/v7/accordion/readonly/group/index.md';
8686

8787
<ReadonlyGroup />
8888

@@ -106,7 +106,7 @@ There are two built in expansion styles: `compact` and `inset`. This expansion s
106106

107107
When `expand="inset"`, the accordion group is given a border radius. On `md` mode, the entire accordion will shift down when it is opened.
108108

109-
import ExpansionStyles from '@site/static/usage/accordion/customization/expansion-styles/index.md';
109+
import ExpansionStyles from '@site/static/usage/v7/accordion/customization/expansion-styles/index.md';
110110

111111
<ExpansionStyles />
112112

@@ -130,7 +130,7 @@ ion-accordion.accordion-expanded ion-item[slot="header"] {
130130
}
131131
```
132132

133-
import AdvancedExpansionStyles from '@site/static/usage/accordion/customization/advanced-expansion-styles/index.md';
133+
import AdvancedExpansionStyles from '@site/static/usage/v7/accordion/customization/advanced-expansion-styles/index.md';
134134

135135
<AdvancedExpansionStyles />
136136

@@ -142,15 +142,15 @@ If you would like to manage the icon yourself or use an icon that is not an `ion
142142

143143
Regardless of which option you choose, the icon will automatically be rotated when you expand or collapse the accordion.
144144

145-
import Icons from '@site/static/usage/accordion/customization/icons/index.md';
145+
import Icons from '@site/static/usage/v7/accordion/customization/icons/index.md';
146146

147147
<Icons />
148148

149149
### Theming
150150

151151
Since `ion-accordion` acts as a shell around the header and content elements, you can easily theme the accordion however you would like. You can theme the header by targeting the slotted `ion-item`. Since you are using `ion-item`, you also have access to all of the [ion-item CSS Variables](./item#css-custom-properties) and [ion-item Shadow Parts](./item#css-shadow-parts). Theming the content is also easily achieved by targeting the element that is in the `content` slot.
152152

153-
import Theming from '@site/static/usage/accordion/customization/theming/index.md';
153+
import Theming from '@site/static/usage/v7/accordion/customization/theming/index.md';
154154

155155
<Theming />
156156

@@ -160,7 +160,7 @@ import Theming from '@site/static/usage/accordion/customization/theming/index.md
160160

161161
By default, animations are enabled when expanding or collapsing an accordion item. Animations will be automatically disabled when the `prefers-reduced-motion` media query is supported and set to `reduce`. For browsers that do not support this, animations can be disabled by setting the `animated` config in your Ionic Framework app.
162162

163-
import AccessibilityAnimations from '@site/static/usage/accordion/accessibility/animations/index.md';
163+
import AccessibilityAnimations from '@site/static/usage/v7/accordion/accessibility/animations/index.md';
164164

165165
<AccessibilityAnimations />
166166

Diff for: docs/api/action-sheet.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
2020

2121
An Action Sheet is a dialog that displays a set of options. It appears on top of the app's content, and must be manually dismissed by the user before they can resume interaction with the app. Destructive options are made obvious in `ios` mode. There are multiple ways to dismiss the action sheet, including tapping the backdrop or hitting the escape key on desktop.
2222

23-
import Basic from '@site/static/usage/action-sheet/basic/index.md';
23+
import Basic from '@site/static/usage/v7/action-sheet/basic/index.md';
2424

2525
<Basic />
2626

@@ -50,15 +50,15 @@ We recommend passing a custom class to `cssClass` in the `create` method and usi
5050
}
5151
```
5252

53-
import Styling from '@site/static/usage/action-sheet/theming/styling/index.md';
53+
import Styling from '@site/static/usage/v7/action-sheet/theming/styling/index.md';
5454

5555
<Styling />
5656

5757
### CSS Custom Properties
5858

5959
Any of the defined [CSS Custom Properties](#css-custom-properties-1) can be used to style the Action Sheet without needing to target individual elements.
6060

61-
import CssCustomProperties from '@site/static/usage/action-sheet/theming/css-properties/index.md';
61+
import CssCustomProperties from '@site/static/usage/v7/action-sheet/theming/css-properties/index.md';
6262

6363
<CssCustomProperties />
6464

Diff for: docs/api/alert.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ An Alert is a dialog that presents users with information or collects informatio
2828

2929
### Controller
3030

31-
import Controller from '@site/static/usage/alert/presenting/controller/index.md';
31+
import Controller from '@site/static/usage/v7/alert/presenting/controller/index.md';
3232

3333
<Controller />
3434

@@ -105,7 +105,7 @@ In the array of `buttons`, each button includes properties for its `text`, and o
105105

106106
Optionally, a `role` property can be added to a button, such as `cancel`. If a `cancel` role is on one of the buttons, then if the alert is dismissed by tapping the backdrop, then it will fire the handler from the button with a cancel role.
107107

108-
import Buttons from '@site/static/usage/alert/buttons/index.md';
108+
import Buttons from '@site/static/usage/v7/alert/buttons/index.md';
109109

110110
<Buttons />
111111

@@ -116,13 +116,13 @@ Alerts can also include several different inputs whose data can be passed back t
116116

117117
### Text Inputs Example
118118

119-
import TextInputs from '@site/static/usage/alert/inputs/text-inputs/index.md';
119+
import TextInputs from '@site/static/usage/v7/alert/inputs/text-inputs/index.md';
120120

121121
<TextInputs />
122122

123123
### Radio Example
124124

125-
import Radios from '@site/static/usage/alert/inputs/radios/index.md';
125+
import Radios from '@site/static/usage/v7/alert/inputs/radios/index.md';
126126

127127
<Radios />
128128

@@ -152,7 +152,7 @@ Any of the defined [CSS Custom Properties](#css-custom-properties) can be used t
152152
}
153153
```
154154

155-
import Customization from '@site/static/usage/alert/customization/index.md';
155+
import Customization from '@site/static/usage/v7/alert/customization/index.md';
156156

157157
<Customization />
158158

Diff for: docs/api/avatar.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ Avatars can be used by themselves or inside of any element. If placed inside of
2424

2525
## Basic Usage
2626

27-
import Basic from '@site/static/usage/avatar/basic/index.md';
27+
import Basic from '@site/static/usage/v7/avatar/basic/index.md';
2828

2929
<Basic />
3030

3131
## Chip Avatar
3232

33-
import Chip from '@site/static/usage/avatar/chip/index.md';
33+
import Chip from '@site/static/usage/v7/avatar/chip/index.md';
3434

3535
<Chip />
3636

3737
## Item Avatar
3838

39-
import Item from '@site/static/usage/avatar/item/index.md';
39+
import Item from '@site/static/usage/v7/avatar/item/index.md';
4040

4141
<Item />
4242

4343
## Theming
4444

4545
### CSS Custom Properties
4646

47-
import CSSProps from '@site/static/usage/avatar/theming/css-properties/index.md';
47+
import CSSProps from '@site/static/usage/v7/avatar/theming/css-properties/index.md';
4848

4949
<CSSProps />
5050

Diff for: docs/api/backdrop.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Backdrops are full screen components that overlay other components. They are use
1818

1919
The backdrop is transparent by default. The backdrop will prevent clicking or tapping on the content behind it.
2020

21-
import Basic from '@site/static/usage/backdrop/basic/index.md';
21+
import Basic from '@site/static/usage/v7/backdrop/basic/index.md';
2222

2323
<Basic />
2424

@@ -28,7 +28,7 @@ The backdrop can be customized by assigning CSS properties directly to the backd
2828

2929
Content can be displayed above the backdrop by setting a `z-index` on the content, higher than the backdrop (defaults to `2`).
3030

31-
import Styling from '@site/static/usage/backdrop/styling/index.md';
31+
import Styling from '@site/static/usage/v7/backdrop/styling/index.md';
3232

3333
<Styling />
3434

Diff for: docs/api/badge.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ Badges are inline block elements that usually appear near another element. Typic
2121

2222
## Basic Usage
2323

24-
import Basic from '@site/static/usage/badge/basic/index.md';
24+
import Basic from '@site/static/usage/v7/badge/basic/index.md';
2525

2626
<Basic />
2727

2828
## Theming
2929

3030
### Colors
3131

32-
import Colors from '@site/static/usage/badge/theming/colors/index.md';
32+
import Colors from '@site/static/usage/v7/badge/theming/colors/index.md';
3333

3434
<Colors />
3535

3636
### CSS Properties
3737

38-
import CSSProps from '@site/static/usage/badge/theming/css-properties/index.md';
38+
import CSSProps from '@site/static/usage/v7/badge/theming/css-properties/index.md';
3939

4040
<CSSProps />
4141

Diff for: docs/api/breadcrumbs.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ Breadcrumbs are navigation items that are used to indicate where a user is on an
1818

1919
## Basic Usage
2020

21-
import Basic from '@site/static/usage/breadcrumbs/basic/index.md';
21+
import Basic from '@site/static/usage/v7/breadcrumbs/basic/index.md';
2222

2323
<Basic />
2424

2525
## Using Icons
2626

2727
### Icons on Items
2828

29-
import IconsOnItems from '@site/static/usage/breadcrumbs/icons/icons-on-items/index.md';
29+
import IconsOnItems from '@site/static/usage/v7/breadcrumbs/icons/icons-on-items/index.md';
3030

3131
<IconsOnItems />
3232

3333
### Custom Separators
3434

35-
import CustomSeparators from '@site/static/usage/breadcrumbs/icons/custom-separators/index.md';
35+
import CustomSeparators from '@site/static/usage/v7/breadcrumbs/icons/custom-separators/index.md';
3636

3737
<CustomSeparators />
3838

@@ -42,45 +42,45 @@ import CustomSeparators from '@site/static/usage/breadcrumbs/icons/custom-separa
4242

4343
If there are more items than the value of `maxItems`, the breadcrumbs will be collapsed. By default, only the first and last items will be shown.
4444

45-
import MaxItems from '@site/static/usage/breadcrumbs/collapsing-items/max-items/index.md';
45+
import MaxItems from '@site/static/usage/v7/breadcrumbs/collapsing-items/max-items/index.md';
4646

4747
<MaxItems />
4848

4949
### Items Before or After Collapse
5050

5151
Once the items are collapsed, the number of items to show can be controlled by the `itemsBeforeCollapse` and `itemsAfterCollapse` properties.
5252

53-
import ItemsBeforeAfter from '@site/static/usage/breadcrumbs/collapsing-items/items-before-after/index.md';
53+
import ItemsBeforeAfter from '@site/static/usage/v7/breadcrumbs/collapsing-items/items-before-after/index.md';
5454

5555
<ItemsBeforeAfter />
5656

5757
### Collapsed Indicator Click -- Expand Breadcrumbs
5858

5959
Clicking the collapsed indicator will fire the `ionCollapsedClick` event. This can be used to, for example, expand the breadcrumbs.
6060

61-
import ExpandOnClick from '@site/static/usage/breadcrumbs/collapsing-items/expand-on-click/index.md';
61+
import ExpandOnClick from '@site/static/usage/v7/breadcrumbs/collapsing-items/expand-on-click/index.md';
6262

6363
<ExpandOnClick />
6464

6565
### Collapsed Indicator Click -- Present Popover
6666

6767
The `ionCollapsedClick` event can also be used to present an overlay (in this case, an `ion-popover`) showing the hidden breadcrumbs.
6868

69-
import PopoverOnClick from '@site/static/usage/breadcrumbs/collapsing-items/popover-on-click/index.md';
69+
import PopoverOnClick from '@site/static/usage/v7/breadcrumbs/collapsing-items/popover-on-click/index.md';
7070

7171
<PopoverOnClick />
7272

7373
## Theming
7474

7575
### Colors
7676

77-
import Colors from '@site/static/usage/breadcrumbs/theming/colors/index.md';
77+
import Colors from '@site/static/usage/v7/breadcrumbs/theming/colors/index.md';
7878

7979
<Colors />
8080

8181
### CSS Custom Properties
8282

83-
import CSSProps from '@site/static/usage/breadcrumbs/theming/css-properties/index.md';
83+
import CSSProps from '@site/static/usage/v7/breadcrumbs/theming/css-properties/index.md';
8484

8585
<CSSProps />
8686

0 commit comments

Comments
 (0)