playbook_ui 12.36.0.pre.alpha.PLAY942collapsiblenav21035 → 12.36.0.pre.alpha.svgiconmethods1043
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/index.js +1 -2
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +13 -15
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +8 -24
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +4 -15
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_animate.html.erb +1 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb +2 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_svg.html.erb +4 -0
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +10 -9
- data/app/pb_kits/playbook/pb_icon/icon.html.erb +3 -3
- data/app/pb_kits/playbook/pb_icon/icon.rb +17 -0
- data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +1 -22
- data/app/pb_kits/playbook/pb_nav/_item.tsx +2 -26
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +79 -59
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom_icons.jsx +6 -4
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_nav/item.rb +1 -5
- data/dist/playbook-rails.js +7 -7
- data/lib/playbook/version.rb +1 -1
- metadata +3 -3
- data/app/pb_kits/playbook/pb_collapsible/useCollapsible.tsx +0 -14
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.36.0.pre.alpha.
|
4
|
+
version: 12.36.0.pre.alpha.svgiconmethods1043
|
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-08-
|
12
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -614,7 +614,6 @@ files:
|
|
614
614
|
- app/pb_kits/playbook/pb_collapsible/docs/example.yml
|
615
615
|
- app/pb_kits/playbook/pb_collapsible/docs/index.js
|
616
616
|
- app/pb_kits/playbook/pb_collapsible/index.js
|
617
|
-
- app/pb_kits/playbook/pb_collapsible/useCollapsible.tsx
|
618
617
|
- app/pb_kits/playbook/pb_contact/_contact.scss
|
619
618
|
- app/pb_kits/playbook/pb_contact/_contact.tsx
|
620
619
|
- app/pb_kits/playbook/pb_contact/contact.html.erb
|
@@ -1190,6 +1189,7 @@ files:
|
|
1190
1189
|
- app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx
|
1191
1190
|
- app/pb_kits/playbook/pb_icon/docs/_icon_sizes.html.erb
|
1192
1191
|
- app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx
|
1192
|
+
- app/pb_kits/playbook/pb_icon/docs/_icon_svg.html.erb
|
1193
1193
|
- app/pb_kits/playbook/pb_icon/docs/example.yml
|
1194
1194
|
- app/pb_kits/playbook/pb_icon/docs/index.js
|
1195
1195
|
- app/pb_kits/playbook/pb_icon/icon.html.erb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import {useState} from 'react';
|
2
|
-
|
3
|
-
const useCollapsible = (initial= true) => {
|
4
|
-
const [collapsed, setCollapsed] = useState(initial)
|
5
|
-
|
6
|
-
const toggle = () => setCollapsed((prev) => !prev)
|
7
|
-
return [
|
8
|
-
collapsed,
|
9
|
-
toggle,
|
10
|
-
setCollapsed as any,
|
11
|
-
]
|
12
|
-
}
|
13
|
-
|
14
|
-
export default useCollapsible
|