playbook_ui 13.5.0 → 13.6.0.pre.alpha.play845allkitsbytypes1219

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_body/_body.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.html.erb +12 -0
  5. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx +50 -0
  6. data/app/pb_kits/playbook/pb_body/docs/_body_truncate.md +4 -0
  7. data/app/pb_kits/playbook/pb_body/docs/example.yml +3 -0
  8. data/app/pb_kits/playbook/pb_body/docs/index.js +1 -0
  9. data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -1
  10. data/app/pb_kits/playbook/pb_card/card.rb +1 -1
  11. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -1
  12. data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +26 -22
  13. data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
  14. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb +2 -2
  15. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -1
  16. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -2
  17. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -1
  18. data/app/pb_kits/playbook/pb_file_upload/file_upload.rb +1 -1
  19. data/app/pb_kits/playbook/pb_flex/_flex_item.scss +0 -8
  20. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +1 -4
  21. data/app/pb_kits/playbook/pb_flex/flex_item.rb +1 -9
  22. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +6 -6
  23. data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +1 -1
  24. data/app/pb_kits/playbook/pb_radio/radio.rb +1 -1
  25. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/EditorButton.tsx +3 -1
  26. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/MoreExtensionsDropdown.tsx +2 -0
  27. data/app/pb_kits/playbook/pb_select/select.rb +1 -1
  28. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
  29. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +1 -1
  30. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
  31. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +1 -1
  32. data/app/pb_kits/playbook/pb_source/source.rb +1 -1
  33. data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +31 -27
  34. data/app/pb_kits/playbook/pb_table/docs/_table_header.md +8 -1
  35. data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +20 -1
  36. data/app/pb_kits/playbook/pb_table/table_header.html.erb +23 -49
  37. data/app/pb_kits/playbook/pb_table/table_header.rb +34 -6
  38. data/app/pb_kits/playbook/pb_text_input/text_input.rb +2 -2
  39. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -1
  40. data/app/pb_kits/playbook/pb_title/_title.scss +15 -14
  41. data/app/pb_kits/playbook/pb_title/_title.tsx +4 -4
  42. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +6 -6
  43. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.html.erb +12 -0
  44. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx +53 -0
  45. data/app/pb_kits/playbook/pb_title/docs/_title_truncate.md +4 -0
  46. data/app/pb_kits/playbook/pb_title/docs/example.yml +2 -0
  47. data/app/pb_kits/playbook/pb_title/docs/index.js +1 -0
  48. data/app/pb_kits/playbook/pb_title/title.rb +1 -1
  49. data/app/pb_kits/playbook/pb_toggle/toggle.rb +1 -1
  50. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -1
  51. data/app/pb_kits/playbook/tokens/_overflow.scss +10 -0
  52. data/app/pb_kits/playbook/utilities/_overflow.scss +22 -0
  53. data/app/pb_kits/playbook/utilities/globalProps.ts +23 -8
  54. data/dist/menu.yml +235 -110
  55. data/dist/playbook-rails.js +5 -5
  56. data/lib/playbook/classnames.rb +1 -0
  57. data/lib/playbook/kit_base.rb +4 -2
  58. data/lib/playbook/overflow.rb +33 -0
  59. data/lib/playbook/props/base.rb +1 -1
  60. data/lib/playbook/props/hash.rb +1 -1
  61. data/lib/playbook/version.rb +2 -2
  62. metadata +16 -7
@@ -35,6 +35,7 @@ module Playbook
35
35
  hover_props,
36
36
  border_radius_props,
37
37
  text_align_props,
38
+ overflow_props,
38
39
  ].compact.join(" ")
39
40
  end
40
41
 
@@ -23,6 +23,7 @@ require "playbook/position"
23
23
  require "playbook/hover"
24
24
  require "playbook/border_radius"
25
25
  require "playbook/text_align"
26
+ require "playbook/overflow"
26
27
 
27
28
  module Playbook
28
29
  class KitBase < ViewComponent::Base
@@ -51,10 +52,11 @@ module Playbook
51
52
  include Playbook::Hover
52
53
  include Playbook::BorderRadius
53
54
  include Playbook::TextAlign
55
+ include Playbook::Overflow
54
56
 
55
57
  prop :id
56
- prop :data, type: Playbook::Props::Hash, default: {}
57
- prop :aria, type: Playbook::Props::Hash, default: {}
58
+ prop :data, type: Playbook::Props::HashProp, default: {}
59
+ prop :aria, type: Playbook::Props::HashProp, default: {}
58
60
  prop :children, type: Playbook::Props::Proc
59
61
 
60
62
  def object
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Playbook
4
+ module Overflow
5
+ def self.included(base)
6
+ base.prop :overflow
7
+ base.prop :overflow_x
8
+ base.prop :overflow_y
9
+ end
10
+
11
+ def overflow_values
12
+ %w[visible hidden scroll auto]
13
+ end
14
+
15
+ def overflow_options
16
+ {
17
+ overflow: "overflow",
18
+ overflow_x: "overflow_x",
19
+ overflow_y: "overflow_y",
20
+ }
21
+ end
22
+
23
+ def overflow_props
24
+ selected_props = overflow_options.keys.select { |sk| try(sk) }
25
+ return nil unless selected_props.present?
26
+
27
+ selected_props.map do |k|
28
+ overflow_value = send(k)
29
+ "#{overflow_options[k]}_#{overflow_value}" if overflow_values.include? overflow_value
30
+ end.compact.join(" ")
31
+ end
32
+ end
33
+ end
@@ -20,7 +20,7 @@ module Playbook
20
20
  end
21
21
 
22
22
  def validate!(input_value)
23
- warn("#{kit} Kit: The prop '#{name}' is deprecated and will be removed in a future release!") if deprecated && input_value # TODO: add some color for pop
23
+ # warn("#{kit} Kit: The prop '#{name}' is deprecated and will be removed in a future release!") if deprecated && input_value # TODO: add some color for pop
24
24
 
25
25
  raise(Playbook::Props::Error, "#{kit} prop '#{name}' of type #{inspect.class} is required and needs a value") if required && input_value.nil?
26
26
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Playbook
4
4
  module Props
5
- class Hash < Playbook::Props::Base
5
+ class HashProp < Playbook::Props::Base
6
6
  def validate(value)
7
7
  value.is_a?(::Hash)
8
8
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.4.0"
5
- VERSION = "13.5.0"
4
+ PREVIOUS_VERSION = "13.6.0"
5
+ VERSION = "13.6.0.pre.alpha.play845allkitsbytypes1219"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.5.0
4
+ version: 13.6.0.pre.alpha.play845allkitsbytypes1219
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-09-15 00:00:00.000000000 Z
12
+ date: 2023-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -398,6 +398,9 @@ files:
398
398
  - app/pb_kits/playbook/pb_body/docs/_body_styled.html.erb
399
399
  - app/pb_kits/playbook/pb_body/docs/_body_styled.jsx
400
400
  - app/pb_kits/playbook/pb_body/docs/_body_styled.md
401
+ - app/pb_kits/playbook/pb_body/docs/_body_truncate.html.erb
402
+ - app/pb_kits/playbook/pb_body/docs/_body_truncate.jsx
403
+ - app/pb_kits/playbook/pb_body/docs/_body_truncate.md
401
404
  - app/pb_kits/playbook/pb_body/docs/_description.md
402
405
  - app/pb_kits/playbook/pb_body/docs/_footer.md
403
406
  - app/pb_kits/playbook/pb_body/docs/example.yml
@@ -2281,6 +2284,9 @@ files:
2281
2284
  - app/pb_kits/playbook/pb_title/docs/_title_responsive.html.erb
2282
2285
  - app/pb_kits/playbook/pb_title/docs/_title_responsive.jsx
2283
2286
  - app/pb_kits/playbook/pb_title/docs/_title_responsive.md
2287
+ - app/pb_kits/playbook/pb_title/docs/_title_truncate.html.erb
2288
+ - app/pb_kits/playbook/pb_title/docs/_title_truncate.jsx
2289
+ - app/pb_kits/playbook/pb_title/docs/_title_truncate.md
2284
2290
  - app/pb_kits/playbook/pb_title/docs/example.yml
2285
2291
  - app/pb_kits/playbook/pb_title/docs/index.js
2286
2292
  - app/pb_kits/playbook/pb_title/title.html.erb
@@ -2496,6 +2502,7 @@ files:
2496
2502
  - app/pb_kits/playbook/tokens/_display.scss
2497
2503
  - app/pb_kits/playbook/tokens/_line_height.scss
2498
2504
  - app/pb_kits/playbook/tokens/_opacity.scss
2505
+ - app/pb_kits/playbook/tokens/_overflow.scss
2499
2506
  - app/pb_kits/playbook/tokens/_positioning.scss
2500
2507
  - app/pb_kits/playbook/tokens/_scale.scss
2501
2508
  - app/pb_kits/playbook/tokens/_screen_sizes.scss
@@ -2528,6 +2535,7 @@ files:
2528
2535
  - app/pb_kits/playbook/utilities/_max_width.scss
2529
2536
  - app/pb_kits/playbook/utilities/_mixins.scss
2530
2537
  - app/pb_kits/playbook/utilities/_number_spacing.scss
2538
+ - app/pb_kits/playbook/utilities/_overflow.scss
2531
2539
  - app/pb_kits/playbook/utilities/_positioning.scss
2532
2540
  - app/pb_kits/playbook/utilities/_shadow.scss
2533
2541
  - app/pb_kits/playbook/utilities/_spacing.scss
@@ -2596,6 +2604,7 @@ files:
2596
2604
  - lib/playbook/line_height.rb
2597
2605
  - lib/playbook/number_spacing.rb
2598
2606
  - lib/playbook/order.rb
2607
+ - lib/playbook/overflow.rb
2599
2608
  - lib/playbook/pagination_renderer.rb
2600
2609
  - lib/playbook/pb_doc_helper.rb
2601
2610
  - lib/playbook/pb_forms_helper.rb
@@ -2626,7 +2635,7 @@ homepage: https://playbook.powerapp.cloud/
2626
2635
  licenses:
2627
2636
  - ISC
2628
2637
  metadata: {}
2629
- post_install_message:
2638
+ post_install_message:
2630
2639
  rdoc_options: []
2631
2640
  require_paths:
2632
2641
  - lib
@@ -2637,12 +2646,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2637
2646
  version: '0'
2638
2647
  required_rubygems_version: !ruby/object:Gem::Requirement
2639
2648
  requirements:
2640
- - - ">="
2649
+ - - ">"
2641
2650
  - !ruby/object:Gem::Version
2642
- version: '0'
2651
+ version: 1.3.1
2643
2652
  requirements: []
2644
2653
  rubygems_version: 3.3.7
2645
- signing_key:
2654
+ signing_key:
2646
2655
  specification_version: 4
2647
2656
  summary: Playbook Design System
2648
2657
  test_files: []