playbook_ui 13.28.0.pre.alpha.PBNTR297gradientoverlay3029 → 13.28.0.pre.alpha.PLAY888Cardkithighlightoverflowtooltiperror2937

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +3 -3
  3. data/app/pb_kits/playbook/index.js +0 -3
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +4 -14
  9. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +2 -10
  10. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -2
  12. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +1 -4
  13. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -16
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/{_bar_graph_custom_rails.html.erb → _bar_graph_custom.html.erb} +3 -3
  15. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +1 -2
  16. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +1 -1
  17. data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
  18. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -2
  19. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +2 -1
  20. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +3 -9
  21. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +1 -22
  22. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +8 -14
  23. data/app/pb_kits/playbook/pb_collapsible/collapsible.test.js +0 -24
  24. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -7
  25. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -9
  26. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -10
  27. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -2
  28. data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +1 -4
  29. data/app/pb_kits/playbook/pb_gauge/gauge.rb +1 -6
  30. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +2 -8
  31. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -22
  32. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
  33. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +0 -1
  34. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +32 -30
  35. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +2 -0
  36. data/app/pb_kits/playbook/pb_table/_table.tsx +0 -5
  37. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx +32 -33
  38. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.md +1 -1
  39. data/app/pb_kits/playbook/pb_table/docs/{_table_outer_padding.html.erb → _table_alignment_row.html.erb} +7 -7
  40. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx +33 -33
  41. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.md +1 -1
  42. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.html.erb +63 -0
  43. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx +50 -51
  44. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.md +1 -1
  45. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.html.erb +52 -0
  46. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx +38 -37
  47. data/app/pb_kits/playbook/pb_table/docs/example.yml +9 -9
  48. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
  49. data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -1
  50. data/app/pb_kits/playbook/pb_table/table.rb +1 -14
  51. data/app/pb_kits/playbook/pb_table/table.test.js +1 -5
  52. data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +9 -12
  53. data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +1 -6
  54. data/app/pb_kits/playbook/playbook-doc.js +0 -4
  55. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -12
  56. data/dist/menu.yml +2 -7
  57. data/dist/playbook-rails.js +6 -6
  58. data/lib/playbook/classnames.rb +0 -1
  59. data/lib/playbook/forms/builder.rb +0 -1
  60. data/lib/playbook/kit_base.rb +0 -2
  61. data/lib/playbook/version.rb +1 -1
  62. metadata +7 -51
  63. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +0 -40
  64. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.md +0 -3
  65. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +0 -34
  66. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +0 -31
  67. data/app/pb_kits/playbook/pb_bar_graph/barGraph.test.js +0 -31
  68. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.md +0 -2
  69. data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +0 -45
  70. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +0 -53
  71. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +0 -10
  72. data/app/pb_kits/playbook/pb_draggable/_draggable.tsx +0 -53
  73. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +0 -92
  74. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +0 -53
  75. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +0 -159
  76. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +0 -121
  77. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +0 -9
  78. data/app/pb_kits/playbook/pb_draggable/docs/index.js +0 -3
  79. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +0 -65
  80. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +0 -54
  81. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx +0 -57
  82. data/app/pb_kits/playbook/pb_gauge/gauge.test.js +0 -35
  83. data/app/pb_kits/playbook/pb_line_graph/lineGraph.test.js +0 -52
  84. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +0 -12
  85. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +0 -93
  86. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx +0 -40
  87. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +0 -7
  88. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx +0 -36
  89. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md +0 -5
  90. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -4
  91. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -2
  92. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +0 -66
  93. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column_rails.md +0 -2
  94. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.html.erb +0 -34
  95. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.md +0 -2
  96. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.html.erb +0 -54
  97. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.md +0 -2
  98. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.md +0 -1
  99. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.html.erb +0 -53
  100. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.md +0 -1
  101. data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.jsx +0 -76
  102. data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.md +0 -1
  103. data/app/pb_kits/playbook/pb_table/styles/_outer_padding.scss +0 -21
  104. data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +0 -61
  105. data/app/pb_kits/playbook/tokens/_vertical_align.scss +0 -18
  106. data/app/pb_kits/playbook/utilities/_vertical_align.scss +0 -16
  107. data/lib/playbook/forms/builder/dropdown_field.rb +0 -14
  108. data/lib/playbook/vertical_align.rb +0 -37
  109. /data/app/pb_kits/playbook/pb_table/docs/{_table_alignment_column_rails.html.erb → _table_alignment_column.html.erb} +0 -0
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module VerticalAlign
5
- def self.included(base)
6
- base.prop :vertical_align
7
- end
8
-
9
- # rubocop:disable Style/IfInsideElse
10
- def vertical_align_props
11
- selected_props = vertical_align_options.keys.select { |sk| try(sk) }
12
- return nil unless selected_props.present?
13
-
14
- selected_props.map do |k|
15
- vertical_align_value = send(k)
16
- if vertical_align_value.is_a?(Hash)
17
- vertical_align_value.map do |media_size, flex_value|
18
- "vertical_align_#{media_size}_#{flex_value.underscore}" if vertical_align_values.include? flex_value
19
- end
20
- else
21
- "vertical_align_#{vertical_align_value.underscore}" if vertical_align_values.include? vertical_align_value
22
- end
23
- end.compact.join(" ")
24
- end
25
- # rubocop:enable Style/IfInsideElse
26
-
27
- def vertical_align_options
28
- {
29
- vertical_align: "vertical_align",
30
- }
31
- end
32
-
33
- def vertical_align_values
34
- %w[baseline super top middle bottom sub text-top text-bottom]
35
- end
36
- end
37
- end