playbook_ui 12.36.0.pre.alpha.PLAY942collapsiblenav21035 → 12.36.0.pre.alpha.svgiconmethods1059
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_badge/docs/_badge_colors_swift.md +33 -0
- data/app/pb_kits/playbook/pb_badge/docs/_badge_default_swift.md +9 -0
- data/app/pb_kits/playbook/pb_badge/docs/_badge_notification_swift.md +9 -0
- data/app/pb_kits/playbook/pb_badge/docs/_badge_props_swift.md +6 -0
- data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded_swift.md +9 -0
- data/app/pb_kits/playbook/pb_badge/docs/example.yml +7 -0
- 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/app/pb_kits/playbook/pb_pill/docs/_pill_default_swift.md +5 -0
- data/app/pb_kits/playbook/pb_pill/docs/_pill_props_swift.md +5 -0
- data/app/pb_kits/playbook/pb_pill/docs/_pill_variants_swift.md +10 -0
- data/app/pb_kits/playbook/pb_pill/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment_swift.md +16 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_swift.md +18 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_default_swift.md +15 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_error_swift.md +14 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_orientation_swift.md +15 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_padding_swift.md +31 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_props_swift.md +10 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_spacing_swift.md +36 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_subtitle_swift.md +13 -0
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +11 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align_swift.md +45 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default_swift.md +26 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_swift.md +25 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_props_swift.md +10 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md +67 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_swift.md +19 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/example.yml +8 -0
- data/dist/playbook-rails.js +7 -7
- data/lib/playbook/version.rb +1 -1
- metadata +26 -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.svgiconmethods1059
|
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-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -342,12 +342,17 @@ files:
|
|
342
342
|
- app/pb_kits/playbook/pb_badge/badge.test.js
|
343
343
|
- app/pb_kits/playbook/pb_badge/docs/_badge_colors.html.erb
|
344
344
|
- app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx
|
345
|
+
- app/pb_kits/playbook/pb_badge/docs/_badge_colors_swift.md
|
345
346
|
- app/pb_kits/playbook/pb_badge/docs/_badge_default.html.erb
|
346
347
|
- app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx
|
348
|
+
- app/pb_kits/playbook/pb_badge/docs/_badge_default_swift.md
|
347
349
|
- app/pb_kits/playbook/pb_badge/docs/_badge_notification.html.erb
|
348
350
|
- app/pb_kits/playbook/pb_badge/docs/_badge_notification.jsx
|
351
|
+
- app/pb_kits/playbook/pb_badge/docs/_badge_notification_swift.md
|
352
|
+
- app/pb_kits/playbook/pb_badge/docs/_badge_props_swift.md
|
349
353
|
- app/pb_kits/playbook/pb_badge/docs/_badge_rounded.html.erb
|
350
354
|
- app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx
|
355
|
+
- app/pb_kits/playbook/pb_badge/docs/_badge_rounded_swift.md
|
351
356
|
- app/pb_kits/playbook/pb_badge/docs/_description.md
|
352
357
|
- app/pb_kits/playbook/pb_badge/docs/example.yml
|
353
358
|
- app/pb_kits/playbook/pb_badge/docs/index.js
|
@@ -614,7 +619,6 @@ files:
|
|
614
619
|
- app/pb_kits/playbook/pb_collapsible/docs/example.yml
|
615
620
|
- app/pb_kits/playbook/pb_collapsible/docs/index.js
|
616
621
|
- app/pb_kits/playbook/pb_collapsible/index.js
|
617
|
-
- app/pb_kits/playbook/pb_collapsible/useCollapsible.tsx
|
618
622
|
- app/pb_kits/playbook/pb_contact/_contact.scss
|
619
623
|
- app/pb_kits/playbook/pb_contact/_contact.tsx
|
620
624
|
- app/pb_kits/playbook/pb_contact/contact.html.erb
|
@@ -1190,6 +1194,7 @@ files:
|
|
1190
1194
|
- app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx
|
1191
1195
|
- app/pb_kits/playbook/pb_icon/docs/_icon_sizes.html.erb
|
1192
1196
|
- app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx
|
1197
|
+
- app/pb_kits/playbook/pb_icon/docs/_icon_svg.html.erb
|
1193
1198
|
- app/pb_kits/playbook/pb_icon/docs/example.yml
|
1194
1199
|
- app/pb_kits/playbook/pb_icon/docs/index.js
|
1195
1200
|
- app/pb_kits/playbook/pb_icon/icon.html.erb
|
@@ -1667,11 +1672,14 @@ files:
|
|
1667
1672
|
- app/pb_kits/playbook/pb_pill/docs/_description.md
|
1668
1673
|
- app/pb_kits/playbook/pb_pill/docs/_pill_default.html.erb
|
1669
1674
|
- app/pb_kits/playbook/pb_pill/docs/_pill_default.jsx
|
1675
|
+
- app/pb_kits/playbook/pb_pill/docs/_pill_default_swift.md
|
1670
1676
|
- app/pb_kits/playbook/pb_pill/docs/_pill_example.html.erb
|
1671
1677
|
- app/pb_kits/playbook/pb_pill/docs/_pill_example.jsx
|
1672
1678
|
- app/pb_kits/playbook/pb_pill/docs/_pill_example.md
|
1679
|
+
- app/pb_kits/playbook/pb_pill/docs/_pill_props_swift.md
|
1673
1680
|
- app/pb_kits/playbook/pb_pill/docs/_pill_variants.html.erb
|
1674
1681
|
- app/pb_kits/playbook/pb_pill/docs/_pill_variants.jsx
|
1682
|
+
- app/pb_kits/playbook/pb_pill/docs/_pill_variants_swift.md
|
1675
1683
|
- app/pb_kits/playbook/pb_pill/docs/example.yml
|
1676
1684
|
- app/pb_kits/playbook/pb_pill/docs/index.js
|
1677
1685
|
- app/pb_kits/playbook/pb_pill/pill.html.erb
|
@@ -1756,14 +1764,23 @@ files:
|
|
1756
1764
|
- app/pb_kits/playbook/pb_radio/docs/_footer.md
|
1757
1765
|
- app/pb_kits/playbook/pb_radio/docs/_radio_alignment.html.erb
|
1758
1766
|
- app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx
|
1767
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_alignment_swift.md
|
1759
1768
|
- app/pb_kits/playbook/pb_radio/docs/_radio_custom.html.erb
|
1760
1769
|
- app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx
|
1770
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_custom_swift.md
|
1761
1771
|
- app/pb_kits/playbook/pb_radio/docs/_radio_default.html.erb
|
1762
1772
|
- app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx
|
1773
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_default_swift.md
|
1763
1774
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.html.erb
|
1764
1775
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.jsx
|
1765
1776
|
- app/pb_kits/playbook/pb_radio/docs/_radio_error.md
|
1777
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_error_swift.md
|
1766
1778
|
- app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb
|
1779
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_orientation_swift.md
|
1780
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_padding_swift.md
|
1781
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_props_swift.md
|
1782
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_spacing_swift.md
|
1783
|
+
- app/pb_kits/playbook/pb_radio/docs/_radio_subtitle_swift.md
|
1767
1784
|
- app/pb_kits/playbook/pb_radio/docs/example.yml
|
1768
1785
|
- app/pb_kits/playbook/pb_radio/docs/index.js
|
1769
1786
|
- app/pb_kits/playbook/pb_radio/radio.html.erb
|
@@ -2193,14 +2210,20 @@ files:
|
|
2193
2210
|
- app/pb_kits/playbook/pb_timestamp/docs/_time_stamp_default.md
|
2194
2211
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.html.erb
|
2195
2212
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.jsx
|
2213
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align_swift.md
|
2196
2214
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.html.erb
|
2197
2215
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
|
2216
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default_swift.md
|
2198
2217
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb
|
2199
2218
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx
|
2219
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed_swift.md
|
2220
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_props_swift.md
|
2200
2221
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.html.erb
|
2201
2222
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx
|
2223
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones_swift.md
|
2202
2224
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.html.erb
|
2203
2225
|
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.jsx
|
2226
|
+
- app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_swift.md
|
2204
2227
|
- app/pb_kits/playbook/pb_timestamp/docs/example.yml
|
2205
2228
|
- app/pb_kits/playbook/pb_timestamp/docs/index.js
|
2206
2229
|
- app/pb_kits/playbook/pb_timestamp/timestamp.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
|