diff --git a/frontend/demo/component/basiclayouts/basic-layouts-expanding-items.ts b/frontend/demo/component/basiclayouts/basic-layouts-expanding-items.ts index 1fe6fac262..7cc171cbfd 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-expanding-items.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-expanding-items.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-horizontal-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-horizontal-alignment.ts index cb8632d770..7092352f85 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-horizontal-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-horizontal-alignment.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-individual-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-individual-alignment.ts index 7fac77d49e..4e215773b3 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-individual-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-individual-alignment.ts @@ -1,6 +1,5 @@ import 'Frontend/demo/init'; // hidden-source-line import '@vaadin/horizontal-layout'; -import '@vaadin/text-area'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; import { applyTheme } from 'Frontend/generated/theme'; @@ -21,24 +20,17 @@ export class Example extends LitElement { protected override render() { return html` - + - - - +
Item 1
+
Item 2
+
Item 3
- - + `; } } diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-margin.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-margin.ts index d3b6cc04f6..d55ff0c89c 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-margin.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-margin.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -24,9 +23,9 @@ export class Example extends LitElement {

Horizontal layout without margin:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
@@ -35,9 +34,9 @@ export class Example extends LitElement { - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-padding.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-padding.ts index e13623bc21..d50fc93a86 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-padding.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-padding.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,18 +22,18 @@ export class Example extends LitElement { return html`

Horizontal layout without padding:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3

Horizontal layout with padding:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-spacing-variants.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-spacing-variants.ts index 6f985c89cc..0d89d9c307 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-spacing-variants.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-spacing-variants.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import '@vaadin/radio-group'; import { html, LitElement } from 'lit'; @@ -28,9 +27,9 @@ export class Example extends LitElement { protected override render() { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
Horizontal layout without spacing:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3

Horizontal layout with spacing:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-vertical-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-vertical-alignment.ts index 950c7abac1..de3b2c5858 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-vertical-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-vertical-alignment.ts @@ -1,6 +1,5 @@ import 'Frontend/demo/init'; // hidden-source-line import '@vaadin/horizontal-layout'; -import '@vaadin/text-area'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; import { applyTheme } from 'Frontend/generated/theme'; @@ -21,17 +20,17 @@ export class Example extends LitElement { protected override render() { return html` - + - - - +
Item 1
+
Item 2
+
Item 3
- + `; } } diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-wrapping.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-wrapping.ts index 74afafcbaa..14747b06fa 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-wrapping.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout-wrapping.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,22 +22,22 @@ export class Example extends LitElement { return html`

Horizontal layout without wrapping:

- Button 1 - Button 2 - Button 3 - Button 4 - Button 5 +
Item 1
+
Item 2
+
Item 3
+
Item 4
+
Item 5

Horizontal layout with wrapping:

- Button 1 - Button 2 - Button 3 - Button 4 - Button 5 +
Item 1
+
Item 2
+
Item 3
+
Item 4
+
Item 5
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout.ts b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout.ts index e10fbbf00f..a3f9b3e393 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-horizontal-layout.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-margin.ts b/frontend/demo/component/basiclayouts/basic-layouts-margin.ts index 2c414301ac..aefe36442b 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-margin.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-margin.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; @@ -27,9 +26,9 @@ export class Example extends LitElement {

Vertical layout without margin:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
@@ -39,9 +38,9 @@ export class Example extends LitElement { - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
@@ -50,5 +49,4 @@ export class Example extends LitElement { `; } - // end::snippet[] } diff --git a/frontend/demo/component/basiclayouts/basic-layouts-padding.ts b/frontend/demo/component/basiclayouts/basic-layouts-padding.ts index 3f7c7a270b..ae3afb771a 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-padding.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-padding.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/horizontal-layout'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; @@ -26,9 +25,9 @@ export class Example extends LitElement {

Vertical layout without padding:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
@@ -36,9 +35,9 @@ export class Example extends LitElement { - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-spacing-variants.ts b/frontend/demo/component/basiclayouts/basic-layouts-spacing-variants.ts index b75fdcacdd..9567c35aaa 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-spacing-variants.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-spacing-variants.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/radio-group'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; @@ -32,9 +31,9 @@ export class Example extends LitElement { class="height-4xl" style="align-items: stretch" > - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3

Vertical layout without spacing:

- Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
@@ -36,9 +35,9 @@ export class Example extends LitElement { - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-horizontal-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-horizontal-alignment.ts index 68f76e4eef..2920677be9 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-horizontal-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-horizontal-alignment.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-individual-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-individual-alignment.ts index e050af10d4..e84b84d481 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-individual-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-individual-alignment.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-vertical-alignment.ts b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-vertical-alignment.ts index 876c76afee..039d6b6b7d 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-vertical-alignment.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-vertical-alignment.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -21,15 +20,15 @@ export class Example extends LitElement { protected override render() { return html` - + - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-wrapping.ts b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-wrapping.ts index 20c2ac4c4f..743e7a8e7d 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-wrapping.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout-wrapping.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/vertical-layout'; import '@vaadin/horizontal-layout'; import { html, LitElement } from 'lit'; @@ -29,10 +28,10 @@ export class Example extends LitElement { theme="spacing padding" style="align-items: stretch; height: 200px;" > - Button 1 - Button 2 - Button 3 - Button 4 +
Item 1
+
Item 2
+
Item 3
+
Item 4
@@ -43,10 +42,10 @@ export class Example extends LitElement { style="align-items: stretch; height: 200px;" > - Button 1 - Button 2 - Button 3 - Button 4 +
Item 1
+
Item 2
+
Item 3
+
Item 4
diff --git a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout.ts b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout.ts index 73ccc75a23..07a1c3c2c8 100644 --- a/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout.ts +++ b/frontend/demo/component/basiclayouts/basic-layouts-vertical-layout.ts @@ -1,5 +1,4 @@ import 'Frontend/demo/init'; // hidden-source-line -import '@vaadin/button'; import '@vaadin/vertical-layout'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; @@ -23,9 +22,9 @@ export class Example extends LitElement { return html` - Button 1 - Button 2 - Button 3 +
Item 1
+
Item 2
+
Item 3
`; diff --git a/frontend/demo/component/basiclayouts/react/basic-layouts-expanding-items.tsx b/frontend/demo/component/basiclayouts/react/basic-layouts-expanding-items.tsx index d89fcadae8..66b131dcd8 100644 --- a/frontend/demo/component/basiclayouts/react/basic-layouts-expanding-items.tsx +++ b/frontend/demo/component/basiclayouts/react/basic-layouts-expanding-items.tsx @@ -1,6 +1,6 @@ import { reactExample } from 'Frontend/demo/react-example'; // hidden-source-line import React from 'react'; // hidden-source-line -import { Button, HorizontalLayout } from '@vaadin/react-components'; +import { HorizontalLayout } from '@vaadin/react-components'; import layoutExampleStyle from './layoutExampleStyle'; // hidden-source-line function Example() { @@ -8,9 +8,9 @@ function Example() { <> {/* tag::snippet[] */} - - - +
Item 1
+
Item 2
+
Item 3
{/* end::snippet[] */} diff --git a/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-horizontal-alignment.tsx b/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-horizontal-alignment.tsx index c9c96e9327..0103cd3933 100644 --- a/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-horizontal-alignment.tsx +++ b/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-horizontal-alignment.tsx @@ -1,19 +1,15 @@ import { reactExample } from 'Frontend/demo/react-example'; // hidden-source-line import React from 'react'; -import { Button, HorizontalLayout } from '@vaadin/react-components'; +import { HorizontalLayout } from '@vaadin/react-components'; import layoutExampleStyle from './layoutExampleStyle'; // hidden-source-line function Example() { return ( // tag::snippet[] - - - - + +
Item 1
+
Item 2
+
Item 3
// end::snippet[] ); diff --git a/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-individual-alignment.tsx b/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-individual-alignment.tsx index 7f0ba2c28c..0987633ceb 100644 --- a/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-individual-alignment.tsx +++ b/frontend/demo/component/basiclayouts/react/basic-layouts-horizontal-layout-individual-alignment.tsx @@ -1,6 +1,6 @@ import { reactExample } from 'Frontend/demo/react-example'; // hidden-source-line import React from 'react'; -import { HorizontalLayout, TextArea } from '@vaadin/react-components'; +import { HorizontalLayout } from '@vaadin/react-components'; import layoutExampleStyle from './layoutExampleStyle'; // hidden-source-line function Example() { @@ -9,11 +9,11 @@ function Example() { -