-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAY-1397] Support Aliasing for Playbook-icons (#3479)
**What does this PR do?** A clear and concise description with your runway ticket url. https://runway.powerhrg.com/backlog_items/PLAY-1397 Support aliasing for rails & react with a single JSON file as a source of truth inside of Playbook. **Screenshots:** Screenshots to visualize your addition/change **How to test?** Steps to confirm the desired behavior: 1. For react, go to beta/icons. 2. For rails, go to kits/icon/rails #### Checklist: - [ ] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [ ] **DEPLOY** I have added the `milano` label to show I'm ready for a review. - [ ] **TESTS** I have added test coverage to my code.
- Loading branch information
1 parent
6556b71
commit c32dc2c
Showing
11 changed files
with
156 additions
and
65 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
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
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
7 changes: 6 additions & 1 deletion
7
playbook/app/pb_kits/playbook/pb_icon/docs/_icon_default.html.erb
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
<%= pb_rails("icon", props: { icon: "user", fixed_width: true }) %> | ||
<%= pb_rails("icon", props: { icon: "angles-down", fixed_width: true }) %> | ||
<%= pb_rails("icon", props: { icon: "circle-arrow-right", fixed_width: true }) %> | ||
<%= pb_rails("icon", props: { icon: "arrow-circle-right", fixed_width: true }) %> | ||
<%= pb_rails("caption", props: { text: "Font Awesome (no alias & not in our Playbook-icons lib)", margin_y: "md" }) %> | ||
<%= pb_rails("icon", props: { icon: "elephant", fixed_width: true }) %> |
26 changes: 21 additions & 5 deletions
26
playbook/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx
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
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,39 @@ | ||
{ | ||
"aliases": { | ||
"arrow-alt-circle-right": "circle-right", | ||
"angles-down": "angle-double-down", | ||
"arrow-alt-down": "down", | ||
"arrow-alt-up": "up", | ||
"arrow-right-long": "long-arrow-right", | ||
"arrow-to-bottom": "arrow-down-to-line", | ||
"arrows-h": "arrows-left-right", | ||
"calendar-days": "calendar-alt", | ||
"circle-arrow-right": "arrow-circle-right", | ||
"clock-rotate-left": "history", | ||
"close": [ | ||
"times", | ||
"xmark" | ||
], | ||
"ellipsis-h": "ellipsis", | ||
"exclamation-circle": "circle-exclamation", | ||
"external-link": "arrow-up-right-from-square", | ||
"file-lines": "file-alt", | ||
"gear": "cog", | ||
"home": "house", | ||
"info-circle": "circle-info", | ||
"map-o": "map", | ||
"message": "comment-alt", | ||
"minus-circle": "circle-minus", | ||
"money": "money-bill", | ||
"mouse-pointer": "arrow-pointer", | ||
"nitro": "nitro-n", | ||
"play-circle": "circle-play", | ||
"plus-circle": "circle-plus", | ||
"plus-square": "square-plus", | ||
"powergon": "powergon-p", | ||
"question-circle": "circle-question", | ||
"roofing": "product-roofing", | ||
"shelves": "inventory", | ||
"th-list": "table-list" | ||
} | ||
} |
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 @@ | ||
declare module 'js-yaml' |
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