-
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-1682
- Loading branch information
Showing
42 changed files
with
832 additions
and
90 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
10 changes: 10 additions & 0 deletions
10
playbook/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.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,10 @@ | ||
<%= pb_rails("section_separator", props: { text: "Default Separator" }) %> | ||
<%= pb_rails("section_separator", props: { color: "primary", text: "Primary Separator" }) %> | ||
<%= pb_rails("section_separator", props: { color: "primary", line_style: "dashed", text: "Primary Dashed Separator" }) %> | ||
<%= pb_rails("section_separator", props: { color: "primary" }) do %> | ||
<%= pb_rails("flex", props: { padding: "xs" }) do %> | ||
<%= pb_rails("icon", props: { color: "primary", icon: "arrow-down" }) %> | ||
<%= pb_rails("detail", props: { text: "Children", size: "sm", color: "link" }) %> | ||
<% end %> | ||
<% end %> | ||
|
42 changes: 42 additions & 0 deletions
42
playbook/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.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,42 @@ | ||
import React from "react" | ||
import { SectionSeparator, Flex, Detail, Icon } from "playbook-ui" | ||
|
||
const children = ( | ||
<Flex padding="xs"> | ||
<Icon color="primary" | ||
icon="arrow-down" | ||
/> | ||
<Detail | ||
color="link" | ||
size="sm" | ||
text="Children" | ||
/> | ||
</Flex> | ||
) | ||
|
||
const SectionSeparatorColor = (props) => { | ||
return ( | ||
<div> | ||
<SectionSeparator text="Default Separator" | ||
{...props} | ||
/> | ||
<SectionSeparator color="primary" | ||
text="Primary Separator" | ||
{...props} | ||
/> | ||
<SectionSeparator | ||
color="primary" | ||
lineStyle="dashed" | ||
text="Primary Dashed Separator" | ||
{...props} | ||
/> | ||
<SectionSeparator color="primary" | ||
{...props} | ||
> | ||
{children} | ||
</SectionSeparator> | ||
</div> | ||
) | ||
} | ||
|
||
export default SectionSeparatorColor |
3 changes: 3 additions & 0 deletions
3
...book/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.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,3 @@ | ||
Pass "primary" to the `color` prop to change any section separator color. | ||
|
||
**NOTE:** Passing `children` overrides any content provided via the `text` prop. The `color` prop does not affect the `text` prop's color, and the color of `children` is determined by the children's individual props. For greater control over text color customization, consider using a separator with `children`. |
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
4 changes: 2 additions & 2 deletions
4
playbook/app/pb_kits/playbook/pb_skeleton_loading/_skeleton_loading.scss
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
3 changes: 3 additions & 0 deletions
3
playbook/app/pb_kits/playbook/pb_skeleton_loading/docs/_description.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,3 @@ | ||
The Skeleton Loading kit can be used an intermediate loading state to give users a visual indication that content is loading. | ||
|
||
**Please Note**: this kit is not meant to be integrated interally within other Playbook kits as a loading prop; rather, it can be used to create a composite of the section/kit/page with loading intermediataries, as demonstrated in the the "example component" doc examples. |
9 changes: 9 additions & 0 deletions
9
...ok/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.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,9 @@ | ||
<%= pb_rails("flex", props: { justify: "evenly" }) do %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "xl", height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "lg", height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "md", height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "xs", height: "50px", width: "100px"}) %> | ||
<%= pb_rails("skeleton_loading", props: { border_radius: "none", height: "50px", width: "100px"}) %> | ||
<% end %> |
1 change: 1 addition & 0 deletions
1
...kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.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 @@ | ||
The `border_radius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/visual_guidelines/border_radius) tokens, with `sm` as default. |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
playbook/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.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,7 @@ | ||
<%= pb_rails("card", props: { border_none: true }) do %> | ||
<%= pb_rails("skeleton_loading") %> | ||
<% end %> | ||
|
||
<%= pb_rails("card", props: { background: "light", border_none: true }) do %> | ||
<%= pb_rails("skeleton_loading", props: { color: "white" }) %> | ||
<% end %> |
2 changes: 1 addition & 1 deletion
2
playbook/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_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 @@ | ||
<%= pb_rails("skeleton_loading") %> | ||
<%= pb_rails("skeleton_loading") %> |
Oops, something went wrong.