-
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): Introduce ActionLayout component #DS-1311
- Loading branch information
Showing
8 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/README.md
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,4 @@ | ||
# UNSTABLE ActionLayout | ||
|
||
⚠️ This component is UNSTABLE. It may significantly change at any point in the future. | ||
Please use it with caution. |
9 changes: 9 additions & 0 deletions
9
...eb-twig/src/Resources/components/UNSTABLE_ActionLayout/UNSTABLE_ActionLayout.stories.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,9 @@ | ||
{% extends 'layout/plain.html.twig' %} | ||
|
||
{% block content %} | ||
|
||
<DocsSection title="Default" stackAlignment="stretch"> | ||
{% include '@components/UNSTABLE_ActionLayout/stories/ActionLayoutDefault.twig' %} | ||
</DocsSection> | ||
|
||
{% endblock %} |
6 changes: 6 additions & 0 deletions
6
packages/web-twig/src/Resources/components/UNSTABLE_ActionLayout/UNSTABLE_ActionLayout.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,6 @@ | ||
{# Class names #} | ||
{%- set _rootClassName = _spiritClassPrefix ~ 'UNSTABLE_ActionLayout' -%} | ||
|
||
<div class="{{ _rootClassName }}"> | ||
{% block content %}{% endblock %} | ||
</div> |
5 changes: 5 additions & 0 deletions
5
...ources/components/UNSTABLE_ActionLayout/__tests__/__fixtures__/UNSTABLE_ActionLayout.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 @@ | ||
<!-- Render with all props --> | ||
<UNSTABLE_ActionLayout> | ||
<ButtonLink href="#" color="primary">Primary Button</ButtonLink> | ||
<ButtonLink href="#" color="secondary">Secondary Button</ButtonLink> | ||
</UNSTABLE_ActionLayout> |
12 changes: 12 additions & 0 deletions
12
...onents/UNSTABLE_ActionLayout/__tests__/__snapshots__/UNSTABLE_ActionLayout.twig.snap.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,12 @@ | ||
<!DOCTYPE html> | ||
<!-- Render with all props --><html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title> | ||
</title> | ||
</head> | ||
<body> | ||
<div class="UNSTABLE_ActionLayout"> | ||
<a class="Button Button--primary Button--medium" href="#">Primary Button</a> <a class="Button Button--secondary Button--medium" href="#">Secondary Button</a> | ||
</div> | ||
</body> | ||
</html> |
4 changes: 4 additions & 0 deletions
4
.../web-twig/src/Resources/components/UNSTABLE_ActionLayout/stories/ActionLayoutDefault.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,4 @@ | ||
<UNSTABLE_ActionLayout> | ||
<ButtonLink href="#" color="primary">Primary Button</ButtonLink> | ||
<ButtonLink href="#" color="secondary">Secondary Button</ButtonLink> | ||
</UNSTABLE_ActionLayout> |
1 change: 1 addition & 0 deletions
1
packages/web-twig/src/Resources/twig-components/unstable_ActionLayout.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 @@ | ||
{% extends '@spirit/UNSTABLE_ActionLayout/UNSTABLE_ActionLayout.twig' %} |
Binary file added
BIN
+11.7 KB
...o-components-compare.spec.ts-snapshots/unstable-actionlayout-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.