-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into play-1435-fix-darkmode-collapsible-kit
- Loading branch information
Showing
12 changed files
with
129 additions
and
40 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
5 changes: 5 additions & 0 deletions
5
playbook/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%= pb_rails("form_pill", props: { | ||
icon: "badge-check", | ||
text: "icon and tag", | ||
tabindex: 0, | ||
}) %> |
19 changes: 19 additions & 0 deletions
19
playbook/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_icon.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react' | ||
import FormPill from '../_form_pill' | ||
|
||
const FormPillIcon = (props) => { | ||
return ( | ||
<div> | ||
<FormPill | ||
icon="badge-check" | ||
onClick={() => { | ||
alert('Click!') | ||
}} | ||
tabIndex={0} | ||
text="icon and tag" | ||
{...props} | ||
/> | ||
</div> | ||
) | ||
} | ||
export default FormPillIcon |
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
25 changes: 16 additions & 9 deletions
25
playbook/app/pb_kits/playbook/pb_form_pill/form_pill.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,12 +1,19 @@ | ||
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname + object.size_class, tabindex: object.tabindex, **combined_html_options) do %> | ||
<% if object.name.present? %> | ||
<%= pb_rails("avatar", props: { name: object.name, image_url: object.avatar_url, size: "xs" }) %> | ||
<%= pb_rails("title", props: { text: object.name, size: 4, classname: "pb_form_pill_text" }) %> | ||
<% elsif object.text.present? %> | ||
<%= pb_rails("title", props: { text: object.text, size: 4, classname: "pb_form_pill_tag" }) %> | ||
<% end %> | ||
|
||
<%= pb_rails("body", props: { classname: "pb_form_pill_close" }) do %> | ||
<%= pb_rails("icon", props: { icon: 'times' , fixed_width: true }) %> | ||
<% end %> | ||
<% end %> | ||
<%= pb_rails("title", props: { text: object.name, size: 4, classname: "pb_form_pill_text" }) %> | ||
<% if object.icon.present? %> | ||
<%= pb_rails("icon", props: { classname: "pb_form_pill_icon", icon: object.icon }) %> | ||
<% end %> | ||
<% elsif object.text.present? %> | ||
<% if object.icon.present? %> | ||
<%= pb_rails("icon", props: { classname: "pb_form_pill_icon", icon: object.icon }) %> | ||
<% end %> | ||
<% if object.text.present? %> | ||
<%= pb_rails("title", props: { text: object.text, size: 4, classname: "pb_form_pill_tag" }) %> | ||
<% end %> | ||
<% end %> | ||
<%= pb_rails("body", props: { classname: "pb_form_pill_close" }) do %> | ||
<%= pb_rails("icon", props: { icon: 'times' , fixed_width: true }) %> | ||
<% end %> | ||
<% end %> |
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 |
---|---|---|
|
@@ -2832,15 +2832,15 @@ | |
resolved "https://npm.powerapp.cloud/@powerhome/eslint-config/-/eslint-config-0.1.0.tgz#f1e1151481f51421186ba8caad99fadb24b1fe51" | ||
integrity sha512-8e5DRgnKPbJ+ofAtqjUPZTxcgHg/TVf52WeNqAGBUXSS4QWHemL6fj1n/YHfAIvx3aMUhFwrw2lUNofUocgK3A== | ||
|
||
"@powerhome/[email protected].29": | ||
version "0.0.1-alpha.29" | ||
resolved "https://npm.powerapp.cloud/@powerhome/playbook-icons-react/-/ce27570207d2c1381e225ecb4266cb0c7e391e17#ce27570207d2c1381e225ecb4266cb0c7e391e17" | ||
integrity sha512-GwsEN+rgyJejOCw1a0lwLCwXIjd20F19SiWC3YpzQSPiDYJQ8dCrZeFAt3K0ulttPIzZ0j7rCayN9A0Yy9ISiw== | ||
|
||
"@powerhome/[email protected].29": | ||
version "0.0.1-alpha.29" | ||
resolved "https://npm.powerapp.cloud/@powerhome/playbook-icons/-/a2e3f857e6c0c6a3ca601f391e66a77cc54f759d#a2e3f857e6c0c6a3ca601f391e66a77cc54f759d" | ||
integrity sha512-IqhDXWZe2+Oeggka5thMt0scmQylFVrCDzXlymjwd6uxsjFNiejaUi8sV+rrJ73TTTdCAAOzKLj3K8F4yZcboQ== | ||
"@powerhome/[email protected].32": | ||
version "0.0.1-alpha.32" | ||
resolved "https://npm.powerapp.cloud/@powerhome/playbook-icons-react/-/10baa7174915f72cc78a674cd5565397668546d5#10baa7174915f72cc78a674cd5565397668546d5" | ||
integrity sha512-5YmcZ05OjHBHbCXvGPL7DKhX8cFlAJ4V/iNBNWcXGAhsGkzso/4Fni7a1r4iiId9aEkLMpN32nmKyPwnDlC2AA== | ||
|
||
"@powerhome/[email protected].32": | ||
version "0.0.1-alpha.32" | ||
resolved "https://npm.powerapp.cloud/@powerhome/playbook-icons/-/ecaa507c39b0d19b1779daa1586278a6e5af94cc#ecaa507c39b0d19b1779daa1586278a6e5af94cc" | ||
integrity sha512-YSlm52Ckz8PCjQ+23wD0/QECrQNZoAa9swiG97mhXXym5gQw7tWgJke+U/i3qlzcY5xtOvT2whwAF5co+XzoIw== | ||
|
||
"@powerhome/[email protected]": | ||
version "0.0.1-alpha.6" | ||
|