playbook_ui 12.33.1.pre.alpha.PLAY933navkitcollapsible994 → 12.34.0.pre.alpha.fixdialogcloseevents1003
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_button/_button.scss +32 -0
- data/app/pb_kits/playbook/pb_button/_button.tsx +78 -26
- data/app/pb_kits/playbook/pb_button/button.html.erb +17 -0
- data/app/pb_kits/playbook/pb_button/button.rb +18 -2
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb +30 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +47 -0
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.md +3 -0
- data/app/pb_kits/playbook/pb_button/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_button/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +4 -6
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +11 -19
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +14 -27
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +2 -7
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.rb +7 -2
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.md +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_collapsible/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_collapsible/index.js +3 -3
- data/app/pb_kits/playbook/pb_collapsible/types.d.ts +1 -0
- data/app/pb_kits/playbook/pb_dialog/dialogHelper.js +7 -4
- data/app/pb_kits/playbook/pb_icon/_icon.scss +4 -0
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -2
- data/app/pb_kits/playbook/pb_icon/icon.html.erb +1 -1
- data/app/pb_kits/playbook/pb_nav/_item.tsx +49 -98
- data/app/pb_kits/playbook/pb_nav/_nav.scss +0 -1
- data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +11 -9
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_nav/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_nav/item.html.erb +12 -34
- data/app/pb_kits/playbook/pb_nav/item.rb +0 -5
- data/dist/playbook-rails.js +6 -6
- data/lib/playbook/version.rb +2 -2
- metadata +6 -10
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +0 -25
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.html.erb +0 -10
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +0 -19
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.md +0 -2
- data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +0 -6
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.html.erb +0 -24
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +0 -83
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom_icons.jsx +0 -86
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.
|
4
|
+
version: 12.34.0.pre.alpha.fixdialogcloseevents1003
|
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-07-
|
12
|
+
date: 2023-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -442,6 +442,9 @@ files:
|
|
442
442
|
- app/pb_kits/playbook/pb_button/docs/_button_loading.md
|
443
443
|
- app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
|
444
444
|
- app/pb_kits/playbook/pb_button/docs/_button_options.jsx
|
445
|
+
- app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb
|
446
|
+
- app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
|
447
|
+
- app/pb_kits/playbook/pb_button/docs/_button_reaction.md
|
445
448
|
- app/pb_kits/playbook/pb_button/docs/_button_size.html.erb
|
446
449
|
- app/pb_kits/playbook/pb_button/docs/_button_size.jsx
|
447
450
|
- app/pb_kits/playbook/pb_button/docs/_button_size.md
|
@@ -586,7 +589,6 @@ files:
|
|
586
589
|
- app/pb_kits/playbook/pb_circle_icon_button/docs/index.js
|
587
590
|
- app/pb_kits/playbook/pb_collapsible/_collapsible.scss
|
588
591
|
- app/pb_kits/playbook/pb_collapsible/_collapsible.tsx
|
589
|
-
- app/pb_kits/playbook/pb_collapsible/_helper_functions.ts
|
590
592
|
- app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx
|
591
593
|
- app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx
|
592
594
|
- app/pb_kits/playbook/pb_collapsible/collapsible.html.erb
|
@@ -602,15 +604,13 @@ files:
|
|
602
604
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.md
|
603
605
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb
|
604
606
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx
|
605
|
-
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.html.erb
|
606
|
-
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx
|
607
|
-
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.md
|
608
607
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.html.erb
|
609
608
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.jsx
|
610
609
|
- app/pb_kits/playbook/pb_collapsible/docs/_collapsible_size.md
|
611
610
|
- app/pb_kits/playbook/pb_collapsible/docs/example.yml
|
612
611
|
- app/pb_kits/playbook/pb_collapsible/docs/index.js
|
613
612
|
- app/pb_kits/playbook/pb_collapsible/index.js
|
613
|
+
- app/pb_kits/playbook/pb_collapsible/types.d.ts
|
614
614
|
- app/pb_kits/playbook/pb_contact/_contact.scss
|
615
615
|
- app/pb_kits/playbook/pb_contact/_contact.tsx
|
616
616
|
- app/pb_kits/playbook/pb_contact/contact.html.erb
|
@@ -1502,7 +1502,6 @@ files:
|
|
1502
1502
|
- app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb
|
1503
1503
|
- app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb
|
1504
1504
|
- app/pb_kits/playbook/pb_nav/_bold_mixin.scss
|
1505
|
-
- app/pb_kits/playbook/pb_nav/_collapsible_nav.scss
|
1506
1505
|
- app/pb_kits/playbook/pb_nav/_horizontal_nav.scss
|
1507
1506
|
- app/pb_kits/playbook/pb_nav/_item.tsx
|
1508
1507
|
- app/pb_kits/playbook/pb_nav/_nav.scss
|
@@ -1521,9 +1520,6 @@ files:
|
|
1521
1520
|
- app/pb_kits/playbook/pb_nav/docs/_bold_vertical_nav.jsx
|
1522
1521
|
- app/pb_kits/playbook/pb_nav/docs/_borderless_nav.html.erb
|
1523
1522
|
- app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx
|
1524
|
-
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.html.erb
|
1525
|
-
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx
|
1526
|
-
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom_icons.jsx
|
1527
1523
|
- app/pb_kits/playbook/pb_nav/docs/_default_nav.html.erb
|
1528
1524
|
- app/pb_kits/playbook/pb_nav/docs/_default_nav.jsx
|
1529
1525
|
- app/pb_kits/playbook/pb_nav/docs/_description.md
|
@@ -1,25 +0,0 @@
|
|
1
|
-
export const showElement = (elem: any) => {
|
2
|
-
elem.style.display = 'block';
|
3
|
-
const height = elem.scrollHeight + 'px'; // Get its height
|
4
|
-
elem.style.height = height; // Update the max-height
|
5
|
-
elem.classList.add('is-visible')
|
6
|
-
// Once the transition is complete, remove the inline max-height so the content can scale responsively
|
7
|
-
window.setTimeout(() => {
|
8
|
-
elem.style.height = '';
|
9
|
-
}, 300);
|
10
|
-
};
|
11
|
-
|
12
|
-
export const hideElement = (elem:any) => {
|
13
|
-
elem.style.height = elem.scrollHeight + 'px';
|
14
|
-
|
15
|
-
window.setTimeout(() => {
|
16
|
-
elem.style.height = '0';
|
17
|
-
elem.style.paddingTop = '0';
|
18
|
-
elem.style.paddingBottom = '0';
|
19
|
-
}, 1);
|
20
|
-
|
21
|
-
// When the transition is complete, hide it
|
22
|
-
window.setTimeout(() => {
|
23
|
-
elem.classList.remove('is-visible');
|
24
|
-
}, 300);
|
25
|
-
};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%= pb_rails("collapsible", props: { name: "custom-icons-example" }) do %>
|
2
|
-
<%= pb_rails("collapsible/collapsible_main", props: { padding: "md", name: "custom-icons-main", icon: ["plus", "minus"]}) do %>
|
3
|
-
<%= pb_rails("body", props: { text: "Main Section"}) %>
|
4
|
-
<% end %>
|
5
|
-
<%= pb_rails("collapsible/collapsible_content", props: { padding: "md" }) do %>
|
6
|
-
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.
|
7
|
-
<br><br>
|
8
|
-
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.
|
9
|
-
<% end %>
|
10
|
-
<% end %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Collapsible } from '../..'
|
3
|
-
|
4
|
-
const CollapsibleIcons = () => (
|
5
|
-
<Collapsible icon={['plus','minus']}>
|
6
|
-
<Collapsible.Main>
|
7
|
-
<div>{'Main Section'}</div>
|
8
|
-
</Collapsible.Main>
|
9
|
-
<Collapsible.Content>
|
10
|
-
<div>
|
11
|
-
{
|
12
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In vel erat sed purus hendrerit viverra. Duis et vestibulum metus. Sed consequat ut ante non vehicula. Etiam nunc massa, pharetra vel quam id, posuere rhoncus quam. Quisque imperdiet arcu enim, nec aliquet justo auctor eget. Curabitur in metus nec nunc rhoncus faucibus vitae ac elit. Nulla facilisi. Vestibulum quis pretium nulla. Nulla ut accumsan velit. Duis varius urna sed sem tempor, sit amet fermentum nibh auctor. Praesent lorem arcu, egestas non ante quis, placerat pellentesque lectus.Vestibulum lacinia ipsum quis venenatis tristique. Vivamus suscipit, libero eu fringilla egestas, orci urna commodo arcu, vel gravida turpis ipsum molestie nibh. Donec cursus eu ante sagittis ultrices. Phasellus id sagittis risus. Mauris dapibus neque faucibus, tempor ligula vel, cursus ante. Donec faucibus gravida porta. Nullam egestas est quis aliquam feugiat. Sed eget metus diam. Cras eget placerat libero.'
|
13
|
-
}
|
14
|
-
</div>
|
15
|
-
</Collapsible.Content>
|
16
|
-
</Collapsible>
|
17
|
-
)
|
18
|
-
|
19
|
-
export default CollapsibleIcons
|
@@ -1,2 +0,0 @@
|
|
1
|
-
##### Prop
|
2
|
-
This kit uses 'chevron-up' and 'chevron-down' icons as default for the toggle icons. To customize these icons, use the `icon` prop to pass in an array of two icons, the first will render when the collapisble is closed and the second will render when the collapsible is open. In this example, we are using `icon: ['plus','minus']`
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<%= pb_rails("nav", props: { variant: "subtle" }) do %>
|
2
|
-
<%= pb_rails("nav/item", props: { text: "Overview", link: "#", collapsible: true, icon_left:"city" }) do %>
|
3
|
-
<%= pb_rails("nav", props: { variant: "subtle" }) do %>
|
4
|
-
<%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
|
5
|
-
<%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
|
6
|
-
<%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
<%= pb_rails("nav/item", props: { text: "Albums", link: "#", active: true, collapsible: true, icon_left: "theater-masks" }) do %>
|
10
|
-
<%= pb_rails("nav", props: { variant: "subtle" }) do %>
|
11
|
-
<%= pb_rails("nav/item", props: { text: "Entertainment", link: "#" }) %>
|
12
|
-
<%= pb_rails("nav/item", props: { text: "Food", link: "#" }) %>
|
13
|
-
<%= pb_rails("nav/item", props: { text: "Style", link: "#" }) %>
|
14
|
-
<% end %>
|
15
|
-
<% end %>
|
16
|
-
<%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", collapsible: true, icon_left: "city" }) do %>
|
17
|
-
<%= pb_rails("nav", props: { variant: "subtle" }) do %>
|
18
|
-
<%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
|
19
|
-
<%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
|
20
|
-
<%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
|
21
|
-
<% end %>
|
22
|
-
<% end %>
|
23
|
-
<% end %>
|
24
|
-
|
@@ -1,83 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
|
3
|
-
import Nav from "../_nav";
|
4
|
-
import NavItem from "../_item";
|
5
|
-
|
6
|
-
const CollapsibleNav = (props) => {
|
7
|
-
return (
|
8
|
-
<Nav variant="subtle">
|
9
|
-
<NavItem
|
10
|
-
collapsible
|
11
|
-
iconLeft="city"
|
12
|
-
link="#"
|
13
|
-
text="Overview"
|
14
|
-
{...props}
|
15
|
-
>
|
16
|
-
<NavItem
|
17
|
-
link="#"
|
18
|
-
text="City"
|
19
|
-
{...props}
|
20
|
-
/>
|
21
|
-
<NavItem
|
22
|
-
link="#"
|
23
|
-
text="People"
|
24
|
-
{...props}
|
25
|
-
/>
|
26
|
-
<NavItem
|
27
|
-
link="#"
|
28
|
-
text="Business"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
</NavItem>
|
32
|
-
<NavItem
|
33
|
-
active
|
34
|
-
collapsible
|
35
|
-
iconLeft="theater-masks"
|
36
|
-
link="#"
|
37
|
-
text="Albums"
|
38
|
-
{...props}
|
39
|
-
>
|
40
|
-
<NavItem
|
41
|
-
link="#"
|
42
|
-
text="Entertainment"
|
43
|
-
{...props}
|
44
|
-
/>
|
45
|
-
<NavItem
|
46
|
-
link="#"
|
47
|
-
text="Food"
|
48
|
-
{...props}
|
49
|
-
/>
|
50
|
-
<NavItem
|
51
|
-
link="#"
|
52
|
-
text="Style"
|
53
|
-
{...props}
|
54
|
-
/>
|
55
|
-
</NavItem>
|
56
|
-
<NavItem
|
57
|
-
collapsible
|
58
|
-
iconLeft="city"
|
59
|
-
link="#"
|
60
|
-
text="Similar Artists"
|
61
|
-
{...props}
|
62
|
-
>
|
63
|
-
<NavItem
|
64
|
-
link="#"
|
65
|
-
text="City"
|
66
|
-
{...props}
|
67
|
-
/>
|
68
|
-
<NavItem
|
69
|
-
link="#"
|
70
|
-
text="People"
|
71
|
-
{...props}
|
72
|
-
/>
|
73
|
-
<NavItem
|
74
|
-
link="#"
|
75
|
-
text="Business"
|
76
|
-
{...props}
|
77
|
-
/>
|
78
|
-
</NavItem>
|
79
|
-
</Nav>
|
80
|
-
);
|
81
|
-
};
|
82
|
-
|
83
|
-
export default CollapsibleNav;
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
|
3
|
-
import Nav from "../_nav";
|
4
|
-
import NavItem from "../_item";
|
5
|
-
|
6
|
-
const CollapsibleNavCustomIcons = (props) => {
|
7
|
-
return (
|
8
|
-
<Nav variant="subtle">
|
9
|
-
<NavItem
|
10
|
-
collapsible
|
11
|
-
iconLeft="city"
|
12
|
-
iconRight={["chevron-down", "chevron-up"]}
|
13
|
-
link="#"
|
14
|
-
text="Overview"
|
15
|
-
{...props}
|
16
|
-
>
|
17
|
-
<NavItem
|
18
|
-
link="#"
|
19
|
-
text="City"
|
20
|
-
{...props}
|
21
|
-
/>
|
22
|
-
<NavItem
|
23
|
-
link="#"
|
24
|
-
text="People"
|
25
|
-
{...props}
|
26
|
-
/>
|
27
|
-
<NavItem
|
28
|
-
link="#"
|
29
|
-
text="Business"
|
30
|
-
{...props}
|
31
|
-
/>
|
32
|
-
</NavItem>
|
33
|
-
<NavItem
|
34
|
-
active
|
35
|
-
collapsible
|
36
|
-
iconLeft="theater-masks"
|
37
|
-
iconRight={["chevron-down", "chevron-up"]}
|
38
|
-
link="#"
|
39
|
-
text="Albums"
|
40
|
-
{...props}
|
41
|
-
>
|
42
|
-
<NavItem
|
43
|
-
link="#"
|
44
|
-
text="Entertainment"
|
45
|
-
{...props}
|
46
|
-
/>
|
47
|
-
<NavItem
|
48
|
-
link="#"
|
49
|
-
text="Food"
|
50
|
-
{...props}
|
51
|
-
/>
|
52
|
-
<NavItem
|
53
|
-
link="#"
|
54
|
-
text="Style"
|
55
|
-
{...props}
|
56
|
-
/>
|
57
|
-
</NavItem>
|
58
|
-
<NavItem
|
59
|
-
collapsible
|
60
|
-
iconLeft="city"
|
61
|
-
iconRight={["chevron-down", "chevron-up"]}
|
62
|
-
link="#"
|
63
|
-
text="Similar Artists"
|
64
|
-
{...props}
|
65
|
-
>
|
66
|
-
<NavItem
|
67
|
-
link="#"
|
68
|
-
text="City"
|
69
|
-
{...props}
|
70
|
-
/>
|
71
|
-
<NavItem
|
72
|
-
link="#"
|
73
|
-
text="People"
|
74
|
-
{...props}
|
75
|
-
/>
|
76
|
-
<NavItem
|
77
|
-
link="#"
|
78
|
-
text="Business"
|
79
|
-
{...props}
|
80
|
-
/>
|
81
|
-
</NavItem>
|
82
|
-
</Nav>
|
83
|
-
);
|
84
|
-
};
|
85
|
-
|
86
|
-
export default CollapsibleNavCustomIcons;
|