playbook_ui 12.6.0.pre.alpha.sectionseparator1 → 12.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_docs/kit_example.html.erb +1 -1
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +0 -3
- data/app/pb_kits/playbook/pb_nav/nav.html.erb +1 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +24 -16
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -2
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +7 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.html.erb +1 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +14 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -3
- data/lib/playbook/version.rb +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ffe02f5811c58c2f395f4dc42933e6277b77d392e3cbc9657611b91c9d82617
|
4
|
+
data.tar.gz: b45d5e741b3d219bee86e6f37d8c3c8f7d1f4cbfb482b77fe352acfd703c64ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b86a515a02c0c3cbd155a4840243d2e50bcefca3ed2a34cca2d67078087b0e2db728fae764e01d526f4da9579aa9249fc9ae245ca435b786a8c75b6a7225bf82
|
7
|
+
data.tar.gz: bc734f1f1b3cd1ae6d20754334dc6a5590d77bd393a5bcad9fb73f33d330c8d46b6f5ee6eaae0d1ada5754e4e349cdf2d1b9dd2ff307decace3ed1a5a46a0b0d
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= pb_rails("card", props: { classname: "pb--doc", padding: "none", dark: dark }) do %>
|
2
2
|
<div class="pb--kit-example">
|
3
|
-
<%= pb_rails("caption", props: { text: example_title
|
3
|
+
<%= pb_rails("caption", props: { text: example_title }) %>
|
4
4
|
<br />
|
5
5
|
<%= example %>
|
6
6
|
<br>
|
@@ -14,7 +14,6 @@ type NavProps = {
|
|
14
14
|
children?: React.Node,
|
15
15
|
className?: string | array<string>,
|
16
16
|
data?: object,
|
17
|
-
dark?: boolean,
|
18
17
|
highlight?: boolean,
|
19
18
|
id?: string,
|
20
19
|
onClick?: EventHandler,
|
@@ -30,7 +29,6 @@ const Nav = (props: NavProps) => {
|
|
30
29
|
children,
|
31
30
|
className,
|
32
31
|
data = {},
|
33
|
-
dark = false,
|
34
32
|
highlight = true,
|
35
33
|
id,
|
36
34
|
link = '#',
|
@@ -66,7 +64,6 @@ const Nav = (props: NavProps) => {
|
|
66
64
|
onClick={onClick}
|
67
65
|
>
|
68
66
|
<Caption
|
69
|
-
dark={dark}
|
70
67
|
size="md"
|
71
68
|
text={`${title}`}
|
72
69
|
/>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<% if object.title %>
|
7
7
|
<%= content_tag(:div, class: "pb_nav_list_title") do %>
|
8
8
|
<%= content_tag(:a, class: "pb_nav_list_item_link_text", href: object.link) do %>
|
9
|
-
<%= pb_rails("caption", props: { text: object.title
|
9
|
+
<%= pb_rails("caption", props: { text: object.title }) %>
|
10
10
|
<% end %>
|
11
11
|
<% end %>
|
12
12
|
<% end %>
|
@@ -18,21 +18,19 @@ $section_colors_dark: (
|
|
18
18
|
justify-content: center;
|
19
19
|
align-items: center;
|
20
20
|
position: relative;
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
@each $color_name, $color_value in $section_colors_light {
|
22
|
+
&[class*=_#{$color_name}] {
|
23
|
+
span {
|
24
|
+
display: inline-block;
|
25
|
+
padding: 0 $space_xs;
|
26
|
+
background: #{$color_value};
|
27
|
+
position: relative;
|
28
|
+
z-index: 1;
|
29
|
+
}
|
30
|
+
}
|
30
31
|
}
|
31
32
|
&::after {
|
32
|
-
|
33
|
-
height: 1px;
|
34
|
-
flex: 1;
|
35
|
-
@include section_separator_horizontal;
|
33
|
+
@include section_separator_horizontal(false);
|
36
34
|
}
|
37
35
|
&[class*=_horizontal] {
|
38
36
|
justify-content: center;
|
@@ -48,13 +46,23 @@ $section_colors_dark: (
|
|
48
46
|
// Dark =========================
|
49
47
|
|
50
48
|
&.dark {
|
51
|
-
&::before {
|
52
|
-
@include section_separator_horizontal(true);
|
53
|
-
}
|
54
49
|
&::after {
|
55
50
|
@include section_separator_horizontal(true);
|
56
51
|
}
|
52
|
+
@each $color_name, $color_value in $section_colors_dark {
|
53
|
+
&[class*=_#{$color_name}] {
|
54
|
+
span {
|
55
|
+
display: inline-block;
|
56
|
+
padding: 0 $space_xs;
|
57
|
+
background: #{$color_value};
|
58
|
+
position: relative;
|
59
|
+
z-index: 1;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
57
63
|
&[class*=_vertical] {
|
64
|
+
margin-left: $space_xs;
|
65
|
+
margin-right: $space_xs;
|
58
66
|
&::after {
|
59
67
|
@include section_separator_vertical(true);
|
60
68
|
}
|
@@ -25,7 +25,6 @@ const SectionSeparator = (props: SectionSeparatorProps) => {
|
|
25
25
|
id,
|
26
26
|
orientation = 'horizontal',
|
27
27
|
text,
|
28
|
-
dark = false,
|
29
28
|
variant = 'card',
|
30
29
|
} = props
|
31
30
|
const ariaProps = buildAriaProps(aria)
|
@@ -43,7 +42,7 @@ const SectionSeparator = (props: SectionSeparatorProps) => {
|
|
43
42
|
{
|
44
43
|
text && (
|
45
44
|
<span>
|
46
|
-
<Caption text={text}
|
45
|
+
<Caption text={text} />
|
47
46
|
</span>
|
48
47
|
)
|
49
48
|
}
|
data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.html.erb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<%= pb_rails("section_separator", props: { text: "Title Separator", variant: "background"}) %>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { SectionSeparator } from '../../'
|
3
|
+
|
4
|
+
const SectionSeparatorTextBackground = (props) => {
|
5
|
+
return (
|
6
|
+
<SectionSeparator
|
7
|
+
{...props}
|
8
|
+
text="Title Separator"
|
9
|
+
variant="background"
|
10
|
+
/>
|
11
|
+
)
|
12
|
+
}
|
13
|
+
|
14
|
+
export default SectionSeparatorTextBackground
|
@@ -3,10 +3,12 @@ examples:
|
|
3
3
|
rails:
|
4
4
|
- section_separator_text: Text Separator
|
5
5
|
- section_separator_line: Line Separator
|
6
|
+
- section_separator_text_background: Background Variant
|
6
7
|
- section_separator_vertical: Vertical
|
7
8
|
|
8
9
|
|
9
10
|
react:
|
10
11
|
- section_separator_text: Text Separator
|
11
12
|
- section_separator_line: Line Separator
|
13
|
+
- section_separator_text_background: Background Variant
|
12
14
|
- section_separator_vertical: Vertical
|
@@ -1,3 +1,4 @@
|
|
1
1
|
export { default as SectionSeparatorLine } from './_section_separator_line.jsx'
|
2
2
|
export { default as SectionSeparatorText } from './_section_separator_text.jsx'
|
3
|
+
export { default as SectionSeparatorTextBackground } from './_section_separator_text_background.jsx'
|
3
4
|
export { default as SectionSeparatorVertical } from './_section_separator_vertical.jsx'
|
@@ -4,9 +4,7 @@
|
|
4
4
|
data: object.data,
|
5
5
|
class: object.classname) do %>
|
6
6
|
<% if object.orientation === 'horizontal' %>
|
7
|
-
|
8
|
-
<span><%= pb_rails("caption", props: { text: object.text }) %></span>
|
9
|
-
<%end%>
|
7
|
+
<span><%= pb_rails("caption", props: { text: object.text }) %></span>
|
10
8
|
<% end %>
|
11
9
|
<% if object.orientation === 'vertical' %>
|
12
10
|
<%= pb_rails("flex", props: { orientation: "column"}) do %>
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.6.0
|
4
|
+
version: 12.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-03-
|
12
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1729,6 +1729,8 @@ files:
|
|
1729
1729
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx
|
1730
1730
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.html.erb
|
1731
1731
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx
|
1732
|
+
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.html.erb
|
1733
|
+
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx
|
1732
1734
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.html.erb
|
1733
1735
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx
|
1734
1736
|
- app/pb_kits/playbook/pb_section_separator/docs/example.yml
|
@@ -2439,9 +2441,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2439
2441
|
version: '0'
|
2440
2442
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2441
2443
|
requirements:
|
2442
|
-
- - "
|
2444
|
+
- - ">="
|
2443
2445
|
- !ruby/object:Gem::Version
|
2444
|
-
version:
|
2446
|
+
version: '0'
|
2445
2447
|
requirements: []
|
2446
2448
|
rubygems_version: 3.3.7
|
2447
2449
|
signing_key:
|