-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(web-twig): Extend Stack component #JALL-107
- Loading branch information
Showing
13 changed files
with
180 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
packages/web-twig/src/Resources/components/Stack/Stack.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/web-twig/src/Resources/components/Stack/stories/StackV1NoDefaultGapBlocks.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="docs-Section"> | ||
|
||
<h3 class="docs-Heading">Stacked Blocks</h3> | ||
|
||
<Stack elementType="ul"> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> |
15 changes: 15 additions & 0 deletions
15
...s/Stack/stories/StackV1NoDefaultGapBlocksWithInnerAndOuterDividersAndVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="docs-Section"> | ||
|
||
<h3 class="docs-Heading">Stacked Blocks with Inner and Outer Dividers and Vertical Spacing</h3> | ||
|
||
<Stack elementType="ul" hasSpacing hasMiddleDividers hasTopDivider hasBottomDivider> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> |
15 changes: 15 additions & 0 deletions
15
...omponents/Stack/stories/StackV1NoDefaultGapBlocksWithInnerDividersAndVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="docs-Section"> | ||
|
||
<h3 class="docs-Heading">Stacked Blocks with Inner Dividers and Vertical Spacing</h3> | ||
|
||
<Stack elementType="ul" hasSpacing hasMiddleDividers> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> |
15 changes: 15 additions & 0 deletions
15
...nents/Stack/stories/StackV1NoDefaultGapBlocksWithInnerDividersWithoutVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="docs-Section"> | ||
|
||
<h3 class="docs-Heading">Stacked Blocks with Vertical Spacing</h3> | ||
|
||
<Stack elementType="ul" hasMiddleDividers> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> |
15 changes: 15 additions & 0 deletions
15
.../src/Resources/components/Stack/stories/StackV1NoDefaultGapBlocksWithVerticalSpacing.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="docs-Section"> | ||
|
||
<h3 class="docs-Heading">Stacked Blocks with Vertical Spacing</h3> | ||
|
||
<Stack elementType="ul" hasSpacing> | ||
{% for i in 1..3 %} | ||
<li> | ||
<div class="docs-Box"> | ||
Block {{ i }} | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</Stack> | ||
|
||
</section> |
19 changes: 19 additions & 0 deletions
19
...s/__snapshots__/ComponentsSnapshotTest__test with data set stackWithDividers.twig__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title></title> | ||
</head> | ||
<body> | ||
<div class="Stack Stack--hasBottomDivider Stack--hasMiddleDividers Stack--hasTopDivider"> | ||
<div> | ||
Block 1 | ||
</div> | ||
<div> | ||
Block 2 | ||
</div> | ||
<div> | ||
Block 3 | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
25 changes: 25 additions & 0 deletions
25
...ots__/ComponentsSnapshotTest__test with data set stackWithDividersAndSpacers.twig__1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title></title> | ||
</head> | ||
<body> | ||
<ul class="Stack Stack--hasBottomDivider Stack--hasMiddleDividers Stack--hasSpacing Stack--hasTopDivider"> | ||
<li> | ||
<div> | ||
List item 1 | ||
</div> | ||
</li> | ||
<li> | ||
<div> | ||
List item 1 | ||
</div> | ||
</li> | ||
<li> | ||
<div> | ||
List item 1 | ||
</div> | ||
</li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
<li> | ||
<div>List item 1</div> | ||
</li> | ||
</Stack> | ||
</Stack> |
5 changes: 5 additions & 0 deletions
5
packages/web-twig/tests/components-fixtures/stackWithDividers.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Stack hasBottomDivider hasMiddleDividers hasTopDivider> | ||
<div>Block 1</div> | ||
<div>Block 2</div> | ||
<div>Block 3</div> | ||
</Stack> |
11 changes: 11 additions & 0 deletions
11
packages/web-twig/tests/components-fixtures/stackWithDividersAndSpacers.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Stack elementType="ul" hasBottomDivider hasMiddleDividers hasTopDivider hasSpacing> | ||
<li> | ||
<div>List item 1</div> | ||
</li> | ||
<li> | ||
<div>List item 1</div> | ||
</li> | ||
<li> | ||
<div>List item 1</div> | ||
</li> | ||
</Stack> |