playbook_ui 13.11.0 → 13.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +3 -1
  3. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.html.erb +22 -0
  4. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.md +3 -0
  5. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.html.erb +40 -0
  6. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.md +1 -0
  7. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +2 -0
  8. data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
  9. data/app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md +7 -0
  10. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_swift.md +7 -0
  11. data/app/pb_kits/playbook/pb_icon/docs/_icon_flip_swift.md +11 -0
  12. data/app/pb_kits/playbook/pb_icon/docs/_icon_props_swift.md +8 -0
  13. data/app/pb_kits/playbook/pb_icon/docs/_icon_rotate_swift.md +11 -0
  14. data/app/pb_kits/playbook/pb_icon/docs/_icon_sizes_swift.md +46 -0
  15. data/app/pb_kits/playbook/pb_icon/docs/example.yml +8 -0
  16. data/app/pb_kits/playbook/pb_image/docs/_image_props_swift.md +7 -0
  17. data/app/pb_kits/playbook/pb_image/docs/_rounded_image_swift.md +47 -0
  18. data/app/pb_kits/playbook/pb_image/docs/_size_image_swift.md +47 -0
  19. data/app/pb_kits/playbook/pb_image/docs/_size_none_image_swift.md +15 -0
  20. data/app/pb_kits/playbook/pb_image/docs/example.yml +5 -0
  21. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_default_swift.md +11 -0
  22. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_swift.md +72 -0
  23. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_details_swift.md +41 -0
  24. data/app/pb_kits/playbook/pb_label_value/docs/_label_value_props_swift.md +11 -0
  25. data/app/pb_kits/playbook/pb_label_value/docs/example.yml +6 -0
  26. data/app/pb_kits/playbook/pb_message/docs/_message_default_swift.md +57 -0
  27. data/app/pb_kits/playbook/pb_message/docs/_message_props_swift.md +12 -0
  28. data/app/pb_kits/playbook/pb_message/docs/example.yml +4 -0
  29. data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +4 -4
  30. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +26 -2
  31. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +1 -17
  32. data/app/pb_kits/playbook/pb_table/table_header.html.erb +4 -3
  33. data/app/pb_kits/playbook/pb_table/table_header.rb +28 -5
  34. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +25 -9
  35. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
  36. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default_react.jsx +0 -2
  37. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.jsx +0 -1
  38. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx +0 -1
  39. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.jsx +0 -1
  40. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb +1 -1
  41. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.html.erb +39 -0
  42. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.md +5 -0
  43. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx +45 -0
  44. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.md +3 -0
  45. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +3 -0
  46. data/app/pb_kits/playbook/pb_tooltip/docs/index.js +1 -0
  47. data/app/pb_kits/playbook/pb_tooltip/index.js +6 -0
  48. data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +2 -1
  49. data/app/pb_kits/playbook/pb_tooltip/tooltip.test.jsx +34 -0
  50. data/app/pb_kits/playbook/playbook-doc.js +1 -1
  51. data/dist/playbook-rails.js +3 -3
  52. data/lib/playbook/pb_doc_helper.rb +2 -21
  53. data/lib/playbook/version.rb +2 -2
  54. metadata +26 -3
  55. data/app/pb_kits/playbook/pb_dawg/docs/example.yml +0 -9
@@ -33,9 +33,9 @@ module Playbook
33
33
  kits.each do |kit|
34
34
  if kit.is_a?(Hash)
35
35
  nav_hash_array(kit).each do |sub_kit|
36
- display_kits << render_pb_doc_kit(sub_kit, type, limit_examples, false, dark_mode) if pb_doc_has_kit_type?(sub_kit, type)
36
+ display_kits << render_pb_doc_kit(sub_kit, type, limit_examples, false, dark_mode)
37
37
  end
38
- elsif pb_doc_has_kit_type?(kit, type)
38
+ else
39
39
  display_kits << render_pb_doc_kit(kit, type, limit_examples, false, dark_mode)
40
40
  end
41
41
  end
@@ -92,25 +92,6 @@ module Playbook
92
92
  end
93
93
  end
94
94
 
95
- def pb_doc_has_kit_type?(kit, type = "rails")
96
- case type
97
- when "rails"
98
- extension = "erb"
99
- query_string = extension
100
- when "react"
101
- extension = "jsx"
102
- query_string = extension
103
- when "swift"
104
- extension = "md"
105
- query_string = "_swift"
106
- end
107
-
108
- pb_doc_kit_path(kit, "docs")
109
- .glob("**/*.#{extension}")
110
- .any? { |path| path.basename.to_s.include?(query_string) }
111
- .present?
112
- end
113
-
114
95
  def pb_doc_render_clickable_title(kit, type)
115
96
  url = "#"
116
97
  begin
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.10.0"
5
- VERSION = "13.11.0"
4
+ PREVIOUS_VERSION = "13.11.1"
5
+ VERSION = "13.12.0"
6
6
  end
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: 13.11.0
4
+ version: 13.12.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-11-10 00:00:00.000000000 Z
12
+ date: 2023-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -638,6 +638,10 @@ files:
638
638
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.md
639
639
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb
640
640
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx
641
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.html.erb
642
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls.md
643
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.html.erb
644
+ - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_external_controls_multiple.md
641
645
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.html.erb
642
646
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx
643
647
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.md
@@ -881,7 +885,6 @@ files:
881
885
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_footer.md
882
886
  - app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml
883
887
  - app/pb_kits/playbook/pb_date_year_stacked/docs/index.js
884
- - app/pb_kits/playbook/pb_dawg/docs/example.yml
885
888
  - app/pb_kits/playbook/pb_detail/_detail.scss
886
889
  - app/pb_kits/playbook/pb_detail/_detail.tsx
887
890
  - app/pb_kits/playbook/pb_detail/_detail_mixins.scss
@@ -1218,23 +1221,29 @@ files:
1218
1221
  - app/pb_kits/playbook/pb_icon/docs/_icon_animate.md
1219
1222
  - app/pb_kits/playbook/pb_icon/docs/_icon_border.html.erb
1220
1223
  - app/pb_kits/playbook/pb_icon/docs/_icon_border.jsx
1224
+ - app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md
1221
1225
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb
1222
1226
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx
1223
1227
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.md
1224
1228
  - app/pb_kits/playbook/pb_icon/docs/_icon_default.html.erb
1225
1229
  - app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx
1230
+ - app/pb_kits/playbook/pb_icon/docs/_icon_default_swift.md
1226
1231
  - app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.html.erb
1227
1232
  - app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.jsx
1228
1233
  - app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.md
1229
1234
  - app/pb_kits/playbook/pb_icon/docs/_icon_flip.html.erb
1230
1235
  - app/pb_kits/playbook/pb_icon/docs/_icon_flip.jsx
1236
+ - app/pb_kits/playbook/pb_icon/docs/_icon_flip_swift.md
1237
+ - app/pb_kits/playbook/pb_icon/docs/_icon_props_swift.md
1231
1238
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.html.erb
1232
1239
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.jsx
1233
1240
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.md
1234
1241
  - app/pb_kits/playbook/pb_icon/docs/_icon_rotate.html.erb
1235
1242
  - app/pb_kits/playbook/pb_icon/docs/_icon_rotate.jsx
1243
+ - app/pb_kits/playbook/pb_icon/docs/_icon_rotate_swift.md
1236
1244
  - app/pb_kits/playbook/pb_icon/docs/_icon_sizes.html.erb
1237
1245
  - app/pb_kits/playbook/pb_icon/docs/_icon_sizes.jsx
1246
+ - app/pb_kits/playbook/pb_icon/docs/_icon_sizes_swift.md
1238
1247
  - app/pb_kits/playbook/pb_icon/docs/example.yml
1239
1248
  - app/pb_kits/playbook/pb_icon/docs/index.js
1240
1249
  - app/pb_kits/playbook/pb_icon/icon.html.erb
@@ -1297,8 +1306,12 @@ files:
1297
1306
  - app/pb_kits/playbook/pb_image/docs/_default_image.html.erb
1298
1307
  - app/pb_kits/playbook/pb_image/docs/_default_image.jsx
1299
1308
  - app/pb_kits/playbook/pb_image/docs/_description.md
1309
+ - app/pb_kits/playbook/pb_image/docs/_image_props_swift.md
1300
1310
  - app/pb_kits/playbook/pb_image/docs/_rounded_image.html.erb
1301
1311
  - app/pb_kits/playbook/pb_image/docs/_rounded_image.jsx
1312
+ - app/pb_kits/playbook/pb_image/docs/_rounded_image_swift.md
1313
+ - app/pb_kits/playbook/pb_image/docs/_size_image_swift.md
1314
+ - app/pb_kits/playbook/pb_image/docs/_size_none_image_swift.md
1302
1315
  - app/pb_kits/playbook/pb_image/docs/_transition_image.html.erb
1303
1316
  - app/pb_kits/playbook/pb_image/docs/_transition_image.jsx
1304
1317
  - app/pb_kits/playbook/pb_image/docs/_transition_image.md
@@ -1327,11 +1340,15 @@ files:
1327
1340
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_default.html.erb
1328
1341
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_default.jsx
1329
1342
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_default.md
1343
+ - app/pb_kits/playbook/pb_label_value/docs/_label_value_default_swift.md
1330
1344
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_details.html.erb
1331
1345
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_details.jsx
1332
1346
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_details.md
1333
1347
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.html.erb
1334
1348
  - app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples.jsx
1349
+ - app/pb_kits/playbook/pb_label_value/docs/_label_value_details_examples_swift.md
1350
+ - app/pb_kits/playbook/pb_label_value/docs/_label_value_details_swift.md
1351
+ - app/pb_kits/playbook/pb_label_value/docs/_label_value_props_swift.md
1335
1352
  - app/pb_kits/playbook/pb_label_value/docs/example.yml
1336
1353
  - app/pb_kits/playbook/pb_label_value/docs/index.js
1337
1354
  - app/pb_kits/playbook/pb_label_value/label_value.html.erb
@@ -1502,11 +1519,13 @@ files:
1502
1519
  - app/pb_kits/playbook/pb_message/docs/_message_default.html.erb
1503
1520
  - app/pb_kits/playbook/pb_message/docs/_message_default.jsx
1504
1521
  - app/pb_kits/playbook/pb_message/docs/_message_default.md
1522
+ - app/pb_kits/playbook/pb_message/docs/_message_default_swift.md
1505
1523
  - app/pb_kits/playbook/pb_message/docs/_message_hover.html.erb
1506
1524
  - app/pb_kits/playbook/pb_message/docs/_message_hover.jsx
1507
1525
  - app/pb_kits/playbook/pb_message/docs/_message_mentions.html.erb
1508
1526
  - app/pb_kits/playbook/pb_message/docs/_message_mentions.jsx
1509
1527
  - app/pb_kits/playbook/pb_message/docs/_message_mentions.md
1528
+ - app/pb_kits/playbook/pb_message/docs/_message_props_swift.md
1510
1529
  - app/pb_kits/playbook/pb_message/docs/_message_timestamp.html.erb
1511
1530
  - app/pb_kits/playbook/pb_message/docs/_message_timestamp.jsx
1512
1531
  - app/pb_kits/playbook/pb_message/docs/example.yml
@@ -2394,6 +2413,10 @@ files:
2394
2413
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_margin.md
2395
2414
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.html.erb
2396
2415
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_selectors.md
2416
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.html.erb
2417
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip.md
2418
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.jsx
2419
+ - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_show_tooltip_react.md
2397
2420
  - app/pb_kits/playbook/pb_tooltip/docs/_tooltip_with_icon_circle.html.erb
2398
2421
  - app/pb_kits/playbook/pb_tooltip/docs/example.yml
2399
2422
  - app/pb_kits/playbook/pb_tooltip/docs/index.js
@@ -1,9 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - dawg_default: Default
5
-
6
-
7
- react:
8
- - dawg_default: Default
9
-