Skip to content

Commit

Permalink
docs: replace remaining playground v2 with v3
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Nov 25, 2024
1 parent a9577b6 commit 27b2eec
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 35 deletions.
10 changes: 3 additions & 7 deletions packages/documentation/docs/controls/_custom-field_code.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Playground from '@site/src/components/PlaygroundV2';
import Playground from '@site/src/components/PlaygroundV3';
import Props from '@site/docs/auto-generated/ix-custom-field/props.md';
import Events from '@site/docs/auto-generated/ix-custom-field/events.md';
import Tags from '@site/docs/auto-generated/ix-custom-field/tags.md';
Expand All @@ -14,15 +14,11 @@ Custom fields can be used to migrate from the existing input validation (native

#### Basic

<Playground name="custom-field" examplesByName></Playground>
<Playground name="custom-field"></Playground>

#### Validation

<Playground
name="custom-field-validation"
examplesByName
height="24rem"
></Playground>
<Playground name="custom-field-validation" height="24rem"></Playground>

### API

Expand Down
16 changes: 6 additions & 10 deletions packages/documentation/docs/controls/_date-input_code.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Playground from '@site/src/components/PlaygroundV2';
import Playground from '@site/src/components/PlaygroundV3';
import Props from '@site/docs/auto-generated/ix-date-input/props.md';
import Events from '@site/docs/auto-generated/ix-date-input/events.md';

Expand All @@ -8,27 +8,23 @@ import Events from '@site/docs/auto-generated/ix-date-input/events.md';

#### Basic

<Playground name="date-input" height="28rem" examplesByName></Playground>
<Playground name="date-input" height="28rem"></Playground>

#### Disabled

<Playground name="date-input-disabled" examplesByName></Playground>
<Playground name="date-input-disabled"></Playground>

#### Label

<Playground name="date-input-label" height="28rem" examplesByName></Playground>
<Playground name="date-input-label" height="28rem"></Playground>

#### Readonly

<Playground name="date-input-readonly" examplesByName></Playground>
<Playground name="date-input-readonly"></Playground>

#### Validation

<Playground
name="date-input-validation"
height="40rem"
examplesByName
></Playground>
<Playground name="date-input-validation" height="40rem"></Playground>

### API

Expand Down
15 changes: 7 additions & 8 deletions packages/documentation/docs/controls/_input_code.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Playground from '@site/src/components/PlaygroundV2';
import Playground from '@site/src/components/PlaygroundV3';
import Props from '@site/docs/auto-generated/ix-input/props.md';
import Events from '@site/docs/auto-generated/ix-input/events.md';
import Tags from '@site/docs/auto-generated/ix-input/tags.md';
Expand All @@ -9,33 +9,32 @@ import Tags from '@site/docs/auto-generated/ix-input/tags.md';

#### Basic

<Playground name="input" examplesByName></Playground>
<Playground name="input"></Playground>

#### Disabled

<Playground name="input-disabled" examplesByName></Playground>
<Playground name="input-disabled"></Playground>

#### Label

<Playground name="input-label" examplesByName></Playground>
<Playground name="input-label"></Playground>

#### Pattern

<Playground name="input-pattern" examplesByName></Playground>
<Playground name="input-pattern"></Playground>

#### Readonly

<Playground name="input-readonly" examplesByName></Playground>
<Playground name="input-readonly"></Playground>

#### Types

<Playground name="input-types" examplesByName height="24rem"></Playground>
<Playground name="input-types" height="24rem"></Playground>

#### Validation

<Playground
name="input-validation"
examplesByName
height="27rem"

> </Playground>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import Playground, {
SourceCodePreview,
} from '@site/src/components/PlaygroundV2';
import StackblitzEmbedded from '@site/src/components/StackblitzEmbedded';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Props from '@site/docs/auto-generated/ix-validation-tooltip/props.md';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Admonition from '@theme/Admonition';
import Playground, {
SourceCodePreview,
} from '@site/src/components/PlaygroundV2';
import { SourceCodePreview } from '@site/src/components/PlaygroundV2';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import Props from '@site/docs/auto-generated/ix-validation-tooltip/props.md';
Expand Down
4 changes: 1 addition & 3 deletions packages/documentation/docs/controls/layout-auto.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Playground from '@site/src/components/PlaygroundV2';
import Playground from '@site/src/components/PlaygroundV3';
import Props from '@site/docs/auto-generated/ix-layout-auto/props.md';
import Events from '@site/docs/auto-generated/ix-layout-auto/events.md';
import Tags from '@site/docs/auto-generated/ix-layout-auto/tags.md';
Expand All @@ -13,7 +13,6 @@ import Tags from '@site/docs/auto-generated/ix-layout-auto/tags.md';

<Playground
name="layout-auto"
examplesByName
height="14rem"

> </Playground>
Expand All @@ -22,7 +21,6 @@ height="14rem"

<Playground
name="layout-auto-custom"
examplesByName
height="14rem"

> </Playground>
Expand Down

0 comments on commit 27b2eec

Please sign in to comment.