Skip to content

Commit

Permalink
docs: rename legacy component examples to legacy examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jul-lam committed Dec 9, 2024
1 parent 5d06b85 commit a2d9ec7
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ height="35rem"
noMargin>
</Playground>

### Examples
### Legacy Examples

#### Basic

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/docs/legacy/_map-navigation_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ height="35rem"
noMargin>
</Playground>

### Examples
### Legacy Examples

#### Basic

Expand Down
20 changes: 8 additions & 12 deletions packages/documentation/docs/legacy/checkbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ import LatestTags from '@site/src/components/Tags';

# Checkbox

<LatestTags url={'/docs/controls/checkbox'} hasDeprecatedAncestor={false} deprecationVersion='2.6.0'></LatestTags>
<LatestTags
url={'/docs/controls/checkbox'}
hasDeprecatedAncestor={false}
deprecationVersion="2.6.0"
></LatestTags>

## Examples
## Legacy Examples

### Basic

<Playground
name="checkbox"
height="8rem"
/>
<Playground name="checkbox" height="8rem" />

### Indeterminate

<Playground
name="checkbox-indeterminate"
height="8rem"
hideInitalCodePreview
/>

<Playground name="checkbox-indeterminate" height="8rem" hideInitalCodePreview />
40 changes: 12 additions & 28 deletions packages/documentation/docs/legacy/input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,38 @@ import Playground from '@site/src/components/PlaygroundV3';

# Input

<LatestTags url={'/docs/controls/input'} hasDeprecatedAncestor={false} deprecationVersion='2.6.0'></LatestTags>
<LatestTags
url={'/docs/controls/input'}
hasDeprecatedAncestor={false}
deprecationVersion="2.6.0"
></LatestTags>

## Examples
## Legacy Examples

### Basic

<Playground name="input-legacy" />


### Disabled

<Playground
name="input-legacy-disabled"
hideInitalCodePreview
/>
<Playground name="input-legacy-disabled" hideInitalCodePreview />

### Readonly

<Playground
name="input-legacy-readonly"
hideInitalCodePreview
/>
<Playground name="input-legacy-readonly" hideInitalCodePreview />

### With icon

<Playground
name="input-legacy-with-icon"
hideInitalCodePreview
/>
<Playground name="input-legacy-with-icon" hideInitalCodePreview />

### Label placement

<Playground
name="input-legacy-labels"
hideInitalCodePreview
/>
<Playground name="input-legacy-labels" hideInitalCodePreview />

### Input types

<Playground
name="input-legacy-types"
height="15rem"
hideInitalCodePreview
/>
<Playground name="input-legacy-types" height="15rem" hideInitalCodePreview />

### Search

<Playground
name="input-legacy-search"
hideInitalCodePreview
/>
<Playground name="input-legacy-search" hideInitalCodePreview />
12 changes: 7 additions & 5 deletions packages/documentation/docs/legacy/radiobutton.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import LatestTags from '@site/src/components/Tags';

# Radio button

<LatestTags url={'/docs/controls/radio'} hasDeprecatedAncestor={false} deprecationVersion='2.6.0'></LatestTags>
<LatestTags
url={'/docs/controls/radio'}
hasDeprecatedAncestor={false}
deprecationVersion="2.6.0"
></LatestTags>

## Examples
## Legacy Examples

### Basic

<Playground
name="radio-button"
/>
<Playground name="radio-button" />
25 changes: 9 additions & 16 deletions packages/documentation/docs/legacy/textarea.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,20 @@ import LatestTags from '@site/src/components/Tags';

# Textarea

<LatestTags url={'/docs/controls/textarea'} hasDeprecatedAncestor={false} deprecationVersion='2.6.0'></LatestTags>
<LatestTags
url={'/docs/controls/textarea'}
hasDeprecatedAncestor={false}
deprecationVersion="2.6.0"
></LatestTags>

## Examples
## Legacy Examples

### Basic

<Playground
name="textarea"
height="12rem"
/>
<Playground name="textarea" height="12rem" />
### Disabled

<Playground
name="textarea-disabled"
height="12rem"
hideInitalCodePreview
/>
<Playground name="textarea-disabled" height="12rem" hideInitalCodePreview />
### Readonly

<Playground
name="textarea-readonly"
height="12rem"
hideInitalCodePreview
/>
<Playground name="textarea-readonly" height="12rem" hideInitalCodePreview />
17 changes: 9 additions & 8 deletions packages/documentation/docs/legacy/validation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ import Props from './../auto-generated/ix-validation-tooltip/props.md';

# Form validation

<LatestTags url={'/docs/controls/forms/forms-validation'} hasDeprecatedAncestor={false} deprecationVersion='2.6.0'></LatestTags>
<LatestTags
url={'/docs/controls/forms/forms-validation'}
hasDeprecatedAncestor={false}
deprecationVersion="2.6.0"
></LatestTags>

<br/>
<br/>
<br />
<br />

For the validation `@siemens/ix` use the validation concept of [bootstrap](https://getbootstrap.com/docs/5.2/forms/validation/).
The difference is that the validation tooltip is implemented as `@siemens/ix` [tooltip](#properties-tooltip)

In the following examples section you will find different implementations of a form validation.

## Examples
## Legacy Examples

### Basic

<Playground
name="validation"
height="22rem"
/>
<Playground name="validation" height="22rem" />

## API

Expand Down

0 comments on commit a2d9ec7

Please sign in to comment.