playbook_ui 13.18.0 → 13.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_reset.scss +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +5 -4
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/SubRowHeaderRow.tsx +9 -4
  5. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +17 -11
  6. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +29 -5
  7. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +18 -4
  8. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx +3 -4
  9. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +17 -7
  10. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +84 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +58 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md +5 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js +200 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -0
  16. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +4 -1
  17. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +6 -1
  18. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.html.erb +49 -0
  19. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +68 -0
  20. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +1 -0
  21. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +2 -0
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
  23. data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.tsx +3 -1
  24. data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx +3 -1
  25. data/app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.tsx +4 -2
  26. data/app/pb_kits/playbook/pb_filter/Filter/index.tsx +1 -1
  27. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +42 -0
  28. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.jsx +83 -0
  29. data/app/pb_kits/playbook/pb_filter/docs/example.yml +2 -0
  30. data/app/pb_kits/playbook/pb_filter/docs/index.js +1 -0
  31. data/app/pb_kits/playbook/pb_filter/filter.html.erb +2 -2
  32. data/app/pb_kits/playbook/pb_filter/filter.rb +2 -1
  33. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +4 -0
  34. data/app/pb_kits/playbook/pb_form_group/form_group.rb +5 -1
  35. data/dist/menu.yml +1 -1
  36. data/dist/playbook-rails.js +3 -3
  37. data/lib/playbook/version.rb +2 -2
  38. metadata +10 -2
@@ -10,6 +10,7 @@ module Playbook
10
10
  values: %w[default single filter_only sort_only],
11
11
  default: "default"
12
12
  prop :background, type: Playbook::Props::Boolean, default: true
13
+ prop :max_height
13
14
  prop :min_width, default: "auto"
14
15
  prop :placement, type: Playbook::Props::Enum,
15
16
  values: %w[top bottom left right top-start top-end bottom-start bottom-end right-start right-end left-start left-end],
@@ -31,7 +32,7 @@ module Playbook
31
32
  end
32
33
 
33
34
  def wrapper(&block)
34
- if object.background
35
+ if background
35
36
  pb_rails("card", props: { padding: "none" }, &block)
36
37
  else
37
38
  capture(&block)
@@ -57,6 +57,10 @@
57
57
  margin-bottom: 16px;
58
58
  }
59
59
 
60
+ &[class*=rails] > [class^=pb_date_picker_kit] {
61
+ margin-bottom: 0px;
62
+ }
63
+
60
64
  & > [class^=pb_date_picker_kit]:not(:last-child) {
61
65
  .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .flatpickr-wrapper {
62
66
  border-bottom-right-radius: 0;
@@ -7,7 +7,7 @@ module Playbook
7
7
  default: false
8
8
 
9
9
  def classname
10
- generate_classname("pb_form_group_kit", full_width_class)
10
+ generate_classname("pb_form_group_kit", full_width_class) + form_group_rails
11
11
  end
12
12
 
13
13
  private
@@ -15,6 +15,10 @@ module Playbook
15
15
  def full_width_class
16
16
  full_width ? "full" : nil
17
17
  end
18
+
19
+ def form_group_rails
20
+ " rails"
21
+ end
18
22
  end
19
23
  end
20
24
  end
data/dist/menu.yml CHANGED
@@ -55,7 +55,7 @@ kits:
55
55
  - name: "advanced_table"
56
56
  platforms: *react_only
57
57
  description: The Advanced Table can be used to display complex, nested data in a way that allows for expansion and/or sorting.
58
- status: "beta"
58
+ status: "stable"
59
59
  - name: "list"
60
60
  platforms: *web
61
61
  description: Lists display a vertical set of related content.