playbook_ui 5.0.3 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/app/pb_kits/playbook/data/menu.yml +1 -0
- data/app/pb_kits/playbook/packs/samples.js +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_description.md +3 -0
- data/app/pb_kits/playbook/pb_layout/_footer.html.erb +6 -0
- data/app/pb_kits/playbook/pb_layout/_header.html.erb +6 -0
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +33 -1
- data/app/pb_kits/playbook/pb_layout/_layout.scss +48 -3
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.html.erb +19 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.jsx +54 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.md +1 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_content.html.erb +28 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_content.jsx +42 -0
- data/app/pb_kits/playbook/pb_layout/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_layout/docs/index.js +3 -0
- data/app/pb_kits/playbook/pb_layout/footer.rb +19 -0
- data/app/pb_kits/playbook/pb_layout/header.rb +19 -0
- data/app/pb_kits/playbook/pb_layout/layout.rb +9 -4
- data/app/pb_kits/playbook/pb_popover/_popover.scss +6 -0
- data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +13 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb8840e61c52b773111c22632a90f9543ff610609017855691c9cd4e1999315e
|
4
|
+
data.tar.gz: 4abd95023a74be43d334f19bcd57160edbd76f51a3be26733e0e22463413109c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c02a383c9fa07b0892c1ead36815a66cfcf699d5deecee13d109e664affc7e173ddda17b6301f1160cc1cc59c8a01854129f30d14dd12edc16d0c60f032861
|
7
|
+
data.tar.gz: ce596c4e96e0665b56f4c9a4622ca004600c3c613c87329ed0321ebf315fd16fffd1b6220b74bff7fdb23df9f129e4cf65602af1e7880cf70c06080c678cbd61
|
data/README.md
CHANGED
@@ -52,3 +52,15 @@ See [docs/upgrade-guide](./docs/upgrade-guide)
|
|
52
52
|
* [Using a Kit within a Kit](https://github.com/powerhome/playbook/wiki/Using-a-Kit-within-a-Kit)
|
53
53
|
* [Understanding Rails Kit HTML Wrapper](https://github.com/powerhome/playbook/wiki/Understanding-Rails-Kit-HTML-Wrapper)
|
54
54
|
* [Kit Stylesheet](https://github.com/powerhome/playbook/wiki/Kit-Stylesheet)
|
55
|
+
|
56
|
+
### Testing Playbook Kits Locally
|
57
|
+
|
58
|
+
#### Testing React Kits locally
|
59
|
+
1. Inside of your Playbook repository, run `yarn link`.
|
60
|
+
2. Inside of the directory you want to test with playbook, run `yarn link playbook-ui`.
|
61
|
+
3. Run `yarn hmr` in your directory you want to test with playbook, and hard refresh (command + shift + R) your browser.
|
62
|
+
4. Test all the things!
|
63
|
+
5. When finished, inside of the directory you want to test with playbook, run `yarn unlink playbook-ui`.
|
64
|
+
6. Inside of your Playbook repository, run `yarn unlink`.
|
65
|
+
|
66
|
+
Keep in mind: Styles are brought in from playbook through the rails gem, so you will not be able to test scss updates with yarn linking.
|
@@ -11,7 +11,7 @@ import WebpackerReact from 'webpacker-react'
|
|
11
11
|
// Generated file from kit generator.
|
12
12
|
|
13
13
|
import Dashboards from '../../../views/playbook/samples/dashboards/index.jsx'
|
14
|
-
|
14
|
+
import FilterTable from '../../../views/playbook/samples/filter_table/index.jsx'
|
15
15
|
import Registration from '../../../views/playbook/samples/registration/index.jsx'
|
16
16
|
|
17
17
|
WebpackerReact.setup({ Dashboards })
|
@@ -19,7 +19,7 @@ type LayoutPropTypes = {
|
|
19
19
|
size?: "xs" | "sm" | "md" | "base" | "lg" | "xl",
|
20
20
|
variant?: "light" | "dark" | "gradient",
|
21
21
|
transparent?: Boolean,
|
22
|
-
layout?: "sidebar" | "collection" | "kanban",
|
22
|
+
layout?: "sidebar" | "collection" | "kanban" | "content",
|
23
23
|
}
|
24
24
|
|
25
25
|
type LayoutSideProps = {
|
@@ -32,6 +32,16 @@ type LayoutBodyProps = {
|
|
32
32
|
className?: String,
|
33
33
|
}
|
34
34
|
|
35
|
+
type LayoutHeaderProps = {
|
36
|
+
children: Array<React.ReactNode> | React.ReactNode,
|
37
|
+
className?: String,
|
38
|
+
}
|
39
|
+
|
40
|
+
type LayoutFooterProps = {
|
41
|
+
children: Array<React.ReactNode> | React.ReactNode,
|
42
|
+
className?: String,
|
43
|
+
}
|
44
|
+
|
35
45
|
// Side component
|
36
46
|
const Side = (props: LayoutSideProps) => {
|
37
47
|
const { children, className } = props
|
@@ -52,6 +62,26 @@ const Body = (props: LayoutBodyProps) => {
|
|
52
62
|
)
|
53
63
|
}
|
54
64
|
|
65
|
+
// Header component
|
66
|
+
const Header = (props: LayoutHeaderProps) => {
|
67
|
+
const { children, className } = props
|
68
|
+
return (
|
69
|
+
<div className={classnames('layout_header', className, spacing(props))}>
|
70
|
+
{children}
|
71
|
+
</div>
|
72
|
+
)
|
73
|
+
}
|
74
|
+
|
75
|
+
// Footer component
|
76
|
+
const Footer = (props: LayoutFooterProps) => {
|
77
|
+
const { children, className } = props
|
78
|
+
return (
|
79
|
+
<div className={classnames('layout_footer', className, spacing(props))}>
|
80
|
+
{children}
|
81
|
+
</div>
|
82
|
+
)
|
83
|
+
}
|
84
|
+
|
55
85
|
// Main componenet
|
56
86
|
|
57
87
|
const Layout = (props: LayoutPropTypes) => {
|
@@ -129,5 +159,7 @@ const Layout = (props: LayoutPropTypes) => {
|
|
129
159
|
|
130
160
|
Layout.Side = Side
|
131
161
|
Layout.Body = Body
|
162
|
+
Layout.Header = Header
|
163
|
+
Layout.Footer = Footer
|
132
164
|
|
133
165
|
export default Layout
|
@@ -17,7 +17,7 @@ $card-border-radius: $border_rad_lightest;
|
|
17
17
|
&[class*=_collection]{
|
18
18
|
div.layout_body{
|
19
19
|
display: grid;
|
20
|
-
grid-
|
20
|
+
grid-auto-rows: max-content;
|
21
21
|
grid-column-gap: $space_sm;
|
22
22
|
grid-row-gap: $space_sm;
|
23
23
|
grid-template-columns: repeat(4, 1fr);
|
@@ -28,8 +28,24 @@ $card-border-radius: $border_rad_lightest;
|
|
28
28
|
@media screen and (max-width: $screen-xs-min) {
|
29
29
|
grid-template-columns: repeat(1, 1fr);
|
30
30
|
}
|
31
|
-
}
|
32
|
-
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
&[class*=_collection_detail]{
|
35
|
+
display: grid;
|
36
|
+
width: 100%;
|
37
|
+
height: 100%;
|
38
|
+
grid-template-areas:
|
39
|
+
"side-bar collection";
|
40
|
+
grid-template-columns: .25fr 1fr;
|
41
|
+
grid-column-gap: $space_sm;
|
42
|
+
|
43
|
+
@media screen and (max-width: $screen-md-min) {
|
44
|
+
grid-template-areas: "side-bar"
|
45
|
+
"collection";
|
46
|
+
grid-template-columns: 1fr;
|
47
|
+
grid-row-gap: $space_sm;
|
48
|
+
}
|
33
49
|
}
|
34
50
|
|
35
51
|
&[class*=_kanban]{
|
@@ -61,6 +77,35 @@ $card-border-radius: $border_rad_lightest;
|
|
61
77
|
}
|
62
78
|
}
|
63
79
|
|
80
|
+
&[class*=_content]{
|
81
|
+
display: grid;
|
82
|
+
grid-template-columns: repeat(5, 1fr);
|
83
|
+
grid-template-rows: .5fr repeat(3, 1fr) .5fr;
|
84
|
+
grid-column-gap: 0px;
|
85
|
+
grid-row-gap: 0px;
|
86
|
+
grid-template-areas:
|
87
|
+
"h h h h h"
|
88
|
+
"s b b b b"
|
89
|
+
"s b b b b"
|
90
|
+
"s b b b b"
|
91
|
+
"s f f f f";
|
92
|
+
div.layout_header{
|
93
|
+
grid-area: h;
|
94
|
+
padding-bottom: $space_sm;
|
95
|
+
}
|
96
|
+
div.layout_sidebar{
|
97
|
+
grid-area: s;
|
98
|
+
padding-right: $space_sm;
|
99
|
+
}
|
100
|
+
div.layout_body{
|
101
|
+
grid-area: b;
|
102
|
+
}
|
103
|
+
div.layout_footer{
|
104
|
+
grid-area: f;
|
105
|
+
padding-top: $space_sm;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
64
109
|
// For future release as of 6/18/2020
|
65
110
|
&[class*=_kanban_responsive] {
|
66
111
|
display: grid;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= pb_rails("layout", props: {position: "left", size: "sm", collapse: "md", layout: "collection_detail" }) do %>
|
2
|
+
<%= pb_rails("layout/sidebar") do %>
|
3
|
+
<%= pb_rails("card", props: { margin_right: "md", padding: "none" }) do %>
|
4
|
+
<%= pb_rails("nav", props: {title: "Menu", link: "#", padding_top:"md" }) do %>
|
5
|
+
<%= pb_rails("nav/item", props: { text: "Photos", link: "#" }) %>
|
6
|
+
<%= pb_rails("nav/item", props: { text: "Music", link: "#" }) %>
|
7
|
+
<%= pb_rails("nav/item", props: { text: "Video", link: "#", active: true }) %>
|
8
|
+
<%= pb_rails("nav/item", props: { text: "Files", link: "#" }) %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<%= pb_rails("layout/body") do %>
|
14
|
+
<% 25.times do %>
|
15
|
+
<%= pb_rails("card") do %> Card content <% end %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { Card, Layout, Nav, NavItem } from '../../'
|
3
|
+
const Cards = ({ n }) => {
|
4
|
+
const cards = []
|
5
|
+
for (let i = 0; i < n; ++i) {
|
6
|
+
cards.push(<Card>{'Card content'}</Card>)
|
7
|
+
}
|
8
|
+
return (cards)
|
9
|
+
}
|
10
|
+
|
11
|
+
const LayoutCollectionDetail = () => {
|
12
|
+
return (
|
13
|
+
<div>
|
14
|
+
<Layout
|
15
|
+
layout="collection_detail"
|
16
|
+
>
|
17
|
+
<Card padding="none">
|
18
|
+
{
|
19
|
+
<Nav
|
20
|
+
link="#"
|
21
|
+
marginTop="sm"
|
22
|
+
orientation="vertical"
|
23
|
+
title="Menu"
|
24
|
+
>
|
25
|
+
<NavItem
|
26
|
+
link="#"
|
27
|
+
text="Photos"
|
28
|
+
/>
|
29
|
+
<NavItem
|
30
|
+
link="#"
|
31
|
+
text="Music"
|
32
|
+
/>
|
33
|
+
<NavItem
|
34
|
+
active
|
35
|
+
link="#"
|
36
|
+
text="Video"
|
37
|
+
/>
|
38
|
+
<NavItem
|
39
|
+
link="#"
|
40
|
+
text="Files"
|
41
|
+
/>
|
42
|
+
</Nav>
|
43
|
+
}
|
44
|
+
</Card>
|
45
|
+
|
46
|
+
<Layout.Body>
|
47
|
+
<Cards n={16} />
|
48
|
+
</Layout.Body>
|
49
|
+
</Layout>
|
50
|
+
</div>
|
51
|
+
)
|
52
|
+
}
|
53
|
+
|
54
|
+
export default LayoutCollectionDetail
|
@@ -0,0 +1 @@
|
|
1
|
+
The left element on Collection Detail can be used for things such as navigation or secondary content to the element on the right. The right content can be used the same way that you would use Collection. The element on the right should be the primary focus and can be used for repeating elements such as cards.
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<%= pb_rails("layout", props: {layout: "content" }) do %>
|
2
|
+
<%= pb_rails("layout/header") do %>
|
3
|
+
<%= pb_rails("card") do %>
|
4
|
+
Header
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
7
|
+
<%= pb_rails("layout/sidebar") do %>
|
8
|
+
<%= pb_rails("card") do %>
|
9
|
+
Sidebar
|
10
|
+
<br><br>
|
11
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis.
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<%= pb_rails("layout/body") do %>
|
15
|
+
<%= pb_rails("card") do %>
|
16
|
+
Body
|
17
|
+
<br><br>
|
18
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.
|
19
|
+
<br><br>
|
20
|
+
Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.
|
21
|
+
<% end %>
|
22
|
+
<% end %>
|
23
|
+
<%= pb_rails("layout/footer") do %>
|
24
|
+
<%= pb_rails("card") do %>
|
25
|
+
Footer
|
26
|
+
<% end %>
|
27
|
+
<% end %>
|
28
|
+
<% end %>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { Card, Layout } from '../../'
|
3
|
+
|
4
|
+
const LayoutContent = () => {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Layout layout="content">
|
8
|
+
<Layout.Header>
|
9
|
+
<Card>
|
10
|
+
{'Header'}
|
11
|
+
</Card>
|
12
|
+
</Layout.Header>
|
13
|
+
<Layout.Side>
|
14
|
+
<Card>
|
15
|
+
{'Sidebar'}
|
16
|
+
<br />
|
17
|
+
<br />
|
18
|
+
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis.'}
|
19
|
+
</Card>
|
20
|
+
</Layout.Side>
|
21
|
+
<Layout.Body>
|
22
|
+
<Card>
|
23
|
+
{'Body'}
|
24
|
+
<br />
|
25
|
+
<br />
|
26
|
+
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec iaculis, risus a fringilla luctus, sapien eros sodales ex, quis molestie est nulla non turpis. Vestibulum aliquet at ipsum eget posuere. Morbi sed laoreet erat. Sed commodo posuere lectus, at porta nulla ornare a. Suspendisse quam est, sollicitudin ut enim sit amet, commodo placerat enim. Donec laoreet metus ac mauris pellentesque mattis. Pellentesque luctus vel mauris non aliquam. Mauris hendrerit mattis porttitor. Curabitur vehicula justo non ex consectetur commodo. Quisque posuere aliquet quam. Maecenas malesuada magna mauris, ac tempor metus euismod at.'}
|
27
|
+
<br />
|
28
|
+
<br />
|
29
|
+
{'Cras ornare fermentum magna mollis efficitur. Sed vitae nulla vel purus ultrices mollis. Maecenas id nulla id libero faucibus feugiat quis sit amet turpis. In commodo pellentesque risus at fringilla. Integer non interdum leo, non commodo ante. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut mi augue, dignissim at orci vel, egestas aliquam mi. Proin finibus aliquet tempor. Integer cursus, ex quis gravida rhoncus, nisi elit viverra ipsum, non efficitur est ex ac tortor. Praesent vitae odio massa.'}
|
30
|
+
</Card>
|
31
|
+
</Layout.Body>
|
32
|
+
<Layout.Footer>
|
33
|
+
<Card>
|
34
|
+
{'Footer'}
|
35
|
+
</Card>
|
36
|
+
</Layout.Footer>
|
37
|
+
</Layout>
|
38
|
+
</div>
|
39
|
+
)
|
40
|
+
}
|
41
|
+
|
42
|
+
export default LayoutContent
|
@@ -5,7 +5,10 @@ examples:
|
|
5
5
|
- layout_sizes: Sizes
|
6
6
|
- layout_sizes_dark: Sizes Dark
|
7
7
|
- layout_collection: Collection Layout
|
8
|
+
- layout_collection_detail: Collection Detail Layout
|
8
9
|
- layout_kanban: Kanban Layout
|
10
|
+
- layout_content: Content Layout
|
11
|
+
|
9
12
|
|
10
13
|
react:
|
11
14
|
- layout_colors: Colors
|
@@ -13,4 +16,7 @@ examples:
|
|
13
16
|
- layout_sizes: Sizes
|
14
17
|
- layout_sizes_dark: Sizes Dark
|
15
18
|
- layout_collection: Collection Layout
|
19
|
+
- layout_collection_detail: Collection Detail Layout
|
16
20
|
- layout_kanban: Kanban Layout
|
21
|
+
- layout_content: Content Layout
|
22
|
+
|
@@ -5,3 +5,6 @@ export { default as LayoutSizesDark } from './_layout_sizes_dark.jsx'
|
|
5
5
|
export { default as LayoutCollection } from './_layout_collection.jsx'
|
6
6
|
export { default as LayoutKanban } from './_layout_kanban.jsx'
|
7
7
|
export { default as LayoutKanbanResponsive } from './_layout_kanban_responsive.jsx'
|
8
|
+
export { default as LayoutCollectionDetail } from './_layout_collection_detail.jsx'
|
9
|
+
export { default as LayoutContent } from './_layout_content.jsx'
|
10
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module PbLayout
|
5
|
+
class Footer
|
6
|
+
include Playbook::Props
|
7
|
+
|
8
|
+
partial "pb_layout/footer"
|
9
|
+
|
10
|
+
prop :tag, type: Playbook::Props::Enum,
|
11
|
+
values: %w[ul li span div],
|
12
|
+
default: "div"
|
13
|
+
|
14
|
+
def classname
|
15
|
+
generate_classname("layout_footer")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module PbLayout
|
5
|
+
class Header
|
6
|
+
include Playbook::Props
|
7
|
+
|
8
|
+
partial "pb_layout/header"
|
9
|
+
|
10
|
+
prop :tag, type: Playbook::Props::Enum,
|
11
|
+
values: %w[ul li span div],
|
12
|
+
default: "div"
|
13
|
+
|
14
|
+
def classname
|
15
|
+
generate_classname("layout_header")
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -19,12 +19,13 @@ module Playbook
|
|
19
19
|
default: "md"
|
20
20
|
prop :transparent, type: Playbook::Props::Boolean, default: false
|
21
21
|
prop :variant, type: Playbook::Props::Enum,
|
22
|
-
|
23
|
-
|
22
|
+
values: %w[light dark gradient],
|
23
|
+
default: "light"
|
24
24
|
prop :layout, type: Playbook::Props::Enum,
|
25
|
-
values: %w[sidebar collection kanban],
|
25
|
+
values: %w[sidebar collection collection_detail kanban content],
|
26
26
|
default: "sidebar"
|
27
27
|
|
28
|
+
|
28
29
|
prop :responsive, type: Playbook::Props::Boolean, default: false
|
29
30
|
|
30
31
|
def classname
|
@@ -33,6 +34,10 @@ module Playbook
|
|
33
34
|
generate_classname("pb_layout_kit", layout)
|
34
35
|
when "kanban"
|
35
36
|
generate_classname("pb_layout_kit", layout, responsive_class)
|
37
|
+
when "collection_detail"
|
38
|
+
generate_classname("pb_layout_kit", layout )
|
39
|
+
when "content"
|
40
|
+
generate_classname("pb_layout_kit", layout)
|
36
41
|
else
|
37
42
|
first_class = generate_classname("pb_layout_kit_sidebar","size_#{size}", position, variant, transparent_class)
|
38
43
|
[first_class, full_class, collapse_class].reject(&:empty?).join(" ")
|
@@ -58,4 +63,4 @@ module Playbook
|
|
58
63
|
end
|
59
64
|
end
|
60
65
|
end
|
61
|
-
end
|
66
|
+
end
|
@@ -8,6 +8,7 @@
|
|
8
8
|
|
9
9
|
.pb_radio_button {
|
10
10
|
width: 22px;
|
11
|
+
min-width: 22px;
|
11
12
|
height: 22px;
|
12
13
|
border-radius: 1000px;
|
13
14
|
border: 2px solid $border_light;
|
@@ -29,6 +30,9 @@
|
|
29
30
|
}
|
30
31
|
}
|
31
32
|
&[class*=_dark] {
|
33
|
+
.pb_radio_button {
|
34
|
+
border-color: $border_dark;
|
35
|
+
}
|
32
36
|
input:checked ~ .pb_radio_button {
|
33
37
|
border: 6px solid $primary;
|
34
38
|
}
|
@@ -46,6 +46,6 @@
|
|
46
46
|
if (!event.target.dataset.typeaheadExample) return;
|
47
47
|
|
48
48
|
document.querySelector("[data-typeahead-example-selected-option] [data-selected-option]").innerHTML = ""
|
49
|
-
document.querySelector("[data-typeahead-example-selected-option] [data-selected-option]").
|
49
|
+
document.querySelector("[data-typeahead-example-selected-option] [data-selected-option]").innerHTML = event.detail.selected.innerHTML
|
50
50
|
})
|
51
51
|
<% end %>
|
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: 5.0
|
4
|
+
version: 5.2.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: 2020-
|
12
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -749,6 +749,7 @@ files:
|
|
749
749
|
- app/pb_kits/playbook/pb_filter/_filter.html.erb
|
750
750
|
- app/pb_kits/playbook/pb_filter/_filter.jsx
|
751
751
|
- app/pb_kits/playbook/pb_filter/_filter.scss
|
752
|
+
- app/pb_kits/playbook/pb_filter/docs/_description.md
|
752
753
|
- app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb
|
753
754
|
- app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx
|
754
755
|
- app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb
|
@@ -976,6 +977,8 @@ files:
|
|
976
977
|
- app/pb_kits/playbook/pb_label_value/label_value.rb
|
977
978
|
- app/pb_kits/playbook/pb_layout/_body.html.erb
|
978
979
|
- app/pb_kits/playbook/pb_layout/_column.html.erb
|
980
|
+
- app/pb_kits/playbook/pb_layout/_footer.html.erb
|
981
|
+
- app/pb_kits/playbook/pb_layout/_header.html.erb
|
979
982
|
- app/pb_kits/playbook/pb_layout/_layout.html.erb
|
980
983
|
- app/pb_kits/playbook/pb_layout/_layout.jsx
|
981
984
|
- app/pb_kits/playbook/pb_layout/_layout.scss
|
@@ -985,8 +988,13 @@ files:
|
|
985
988
|
- app/pb_kits/playbook/pb_layout/docs/_description.md
|
986
989
|
- app/pb_kits/playbook/pb_layout/docs/_layout_collection.html.erb
|
987
990
|
- app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx
|
991
|
+
- app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.html.erb
|
992
|
+
- app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.jsx
|
993
|
+
- app/pb_kits/playbook/pb_layout/docs/_layout_collection_detail.md
|
988
994
|
- app/pb_kits/playbook/pb_layout/docs/_layout_colors.html.erb
|
989
995
|
- app/pb_kits/playbook/pb_layout/docs/_layout_colors.jsx
|
996
|
+
- app/pb_kits/playbook/pb_layout/docs/_layout_content.html.erb
|
997
|
+
- app/pb_kits/playbook/pb_layout/docs/_layout_content.jsx
|
990
998
|
- app/pb_kits/playbook/pb_layout/docs/_layout_kanban.html.erb
|
991
999
|
- app/pb_kits/playbook/pb_layout/docs/_layout_kanban.jsx
|
992
1000
|
- app/pb_kits/playbook/pb_layout/docs/_layout_kanban_responsive.html.erb
|
@@ -999,6 +1007,8 @@ files:
|
|
999
1007
|
- app/pb_kits/playbook/pb_layout/docs/_layout_transparent.jsx
|
1000
1008
|
- app/pb_kits/playbook/pb_layout/docs/example.yml
|
1001
1009
|
- app/pb_kits/playbook/pb_layout/docs/index.js
|
1010
|
+
- app/pb_kits/playbook/pb_layout/footer.rb
|
1011
|
+
- app/pb_kits/playbook/pb_layout/header.rb
|
1002
1012
|
- app/pb_kits/playbook/pb_layout/layout.rb
|
1003
1013
|
- app/pb_kits/playbook/pb_layout/sidebar.rb
|
1004
1014
|
- app/pb_kits/playbook/pb_legend/_legend.html.erb
|
@@ -1803,8 +1813,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1803
1813
|
- !ruby/object:Gem::Version
|
1804
1814
|
version: '0'
|
1805
1815
|
requirements: []
|
1806
|
-
|
1807
|
-
rubygems_version: 2.7.3
|
1816
|
+
rubygems_version: 3.1.2
|
1808
1817
|
signing_key:
|
1809
1818
|
specification_version: 4
|
1810
1819
|
summary: Playbook Design System
|