playbook_ui 13.28.0.pre.alpha.PLAY13592980 → 13.28.0.pre.alpha.dialogturbostreameventlistener3017

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -3
  3. data/app/pb_kits/playbook/index.js +2 -0
  4. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +4 -1
  5. data/app/pb_kits/playbook/pb_bar_graph/barGraph.test.js +31 -0
  6. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +16 -0
  7. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx +5 -2
  8. data/app/pb_kits/playbook/pb_circle_chart/circleChart.test.js +45 -0
  9. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +16 -0
  10. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +53 -0
  11. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +14 -8
  12. data/app/pb_kits/playbook/pb_collapsible/collapsible.test.js +24 -0
  13. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +7 -1
  14. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +9 -1
  15. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +2 -3
  16. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +10 -0
  17. data/app/pb_kits/playbook/pb_draggable/_draggable.tsx +53 -0
  18. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +92 -0
  19. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx +53 -0
  20. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx +159 -0
  21. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx +121 -0
  22. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +9 -0
  23. data/app/pb_kits/playbook/pb_draggable/docs/index.js +3 -0
  24. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +65 -0
  25. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +54 -0
  26. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx +57 -0
  27. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -2
  28. data/app/pb_kits/playbook/pb_gauge/gauge.test.js +35 -0
  29. data/app/pb_kits/playbook/pb_icon/icon.rb +2 -3
  30. data/app/pb_kits/playbook/pb_line_graph/_line_graph.tsx +4 -1
  31. data/app/pb_kits/playbook/pb_line_graph/lineGraph.test.js +52 -0
  32. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +16 -0
  33. data/app/pb_kits/playbook/pb_table/_table.tsx +5 -0
  34. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx +33 -32
  35. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column.md +1 -1
  36. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_column_rails.md +2 -0
  37. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx +33 -33
  38. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row.md +1 -1
  39. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.html.erb +34 -0
  40. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.md +2 -0
  41. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx +51 -50
  42. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.md +1 -1
  43. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.html.erb +54 -0
  44. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.md +2 -0
  45. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx +37 -38
  46. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.md +1 -0
  47. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.html.erb +53 -0
  48. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.md +1 -0
  49. data/app/pb_kits/playbook/pb_table/docs/{_table_alignment_row.html.erb → _table_outer_padding.html.erb} +7 -7
  50. data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.jsx +76 -0
  51. data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.md +1 -0
  52. data/app/pb_kits/playbook/pb_table/docs/example.yml +9 -9
  53. data/app/pb_kits/playbook/pb_table/docs/index.js +1 -0
  54. data/app/pb_kits/playbook/pb_table/styles/_all.scss +1 -0
  55. data/app/pb_kits/playbook/pb_table/styles/_outer_padding.scss +21 -0
  56. data/app/pb_kits/playbook/pb_table/table.rb +14 -1
  57. data/app/pb_kits/playbook/pb_table/table.test.js +5 -1
  58. data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +61 -0
  59. data/app/pb_kits/playbook/playbook-doc.js +2 -0
  60. data/app/pb_kits/playbook/tokens/_vertical_align.scss +18 -0
  61. data/app/pb_kits/playbook/utilities/_vertical_align.scss +16 -0
  62. data/app/pb_kits/playbook/utilities/globalProps.ts +12 -1
  63. data/dist/menu.yml +5 -2
  64. data/dist/playbook-rails.js +6 -6
  65. data/lib/playbook/classnames.rb +1 -0
  66. data/lib/playbook/kit_base.rb +2 -0
  67. data/lib/playbook/version.rb +1 -1
  68. data/lib/playbook/vertical_align.rb +37 -0
  69. metadata +35 -6
  70. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.html.erb +0 -63
  71. data/app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.html.erb +0 -52
  72. /data/app/pb_kits/playbook/pb_table/docs/{_table_alignment_column.html.erb → _table_alignment_column_rails.html.erb} +0 -0
@@ -41,6 +41,7 @@ module Playbook
41
41
  top_props,
42
42
  right_props,
43
43
  bottom_props,
44
+ vertical_align_props,
44
45
  ].compact.join(" ")
45
46
  end
46
47
 
@@ -29,6 +29,7 @@ require "playbook/left"
29
29
  require "playbook/top"
30
30
  require "playbook/right"
31
31
  require "playbook/bottom"
32
+ require "playbook/vertical_align"
32
33
 
33
34
  module Playbook
34
35
  include ActionView::Helpers
@@ -65,6 +66,7 @@ module Playbook
65
66
  include Playbook::Top
66
67
  include Playbook::Right
67
68
  include Playbook::Bottom
69
+ include Playbook::VerticalAlign
68
70
 
69
71
  prop :id
70
72
  prop :data, type: Playbook::Props::HashProp, default: {}
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.28.0"
5
- VERSION = "13.28.0.pre.alpha.PLAY13592980"
5
+ VERSION = "13.28.0.pre.alpha.dialogturbostreameventlistener3017"
6
6
  end
@@ -0,0 +1,37 @@
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
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.28.0.pre.alpha.PLAY13592980
4
+ version: 13.28.0.pre.alpha.dialogturbostreameventlistener3017
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: 2024-05-28 00:00:00.000000000 Z
12
+ date: 2024-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -399,6 +399,7 @@ files:
399
399
  - app/pb_kits/playbook/pb_badge/docs/index.js
400
400
  - app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss
401
401
  - app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx
402
+ - app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
402
403
  - app/pb_kits/playbook/pb_bar_graph/barGraphSettings.js
403
404
  - app/pb_kits/playbook/pb_bar_graph/bar_graph.html.erb
404
405
  - app/pb_kits/playbook/pb_bar_graph/bar_graph.rb
@@ -631,6 +632,7 @@ files:
631
632
  - app/pb_kits/playbook/pb_circle_chart/ChartsTypes.ts
632
633
  - app/pb_kits/playbook/pb_circle_chart/_circle_chart.scss
633
634
  - app/pb_kits/playbook/pb_circle_chart/_circle_chart.tsx
635
+ - app/pb_kits/playbook/pb_circle_chart/circleChart.test.js
634
636
  - app/pb_kits/playbook/pb_circle_chart/circle_chart.html.erb
635
637
  - app/pb_kits/playbook/pb_circle_chart/circle_chart.rb
636
638
  - app/pb_kits/playbook/pb_circle_chart/docs/_circle_chart_block.html.erb
@@ -673,6 +675,7 @@ files:
673
675
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_footer.md
674
676
  - app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml
675
677
  - app/pb_kits/playbook/pb_circle_icon_button/docs/index.js
678
+ - app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap
676
679
  - app/pb_kits/playbook/pb_collapsible/_collapsible.scss
677
680
  - app/pb_kits/playbook/pb_collapsible/_collapsible.tsx
678
681
  - app/pb_kits/playbook/pb_collapsible/_helper_functions.ts
@@ -1069,6 +1072,17 @@ files:
1069
1072
  - app/pb_kits/playbook/pb_distribution_bar/docs/index.js
1070
1073
  - app/pb_kits/playbook/pb_docs/kit_example.html.erb
1071
1074
  - app/pb_kits/playbook/pb_docs/kit_example.rb
1075
+ - app/pb_kits/playbook/pb_draggable/_draggable.scss
1076
+ - app/pb_kits/playbook/pb_draggable/_draggable.tsx
1077
+ - app/pb_kits/playbook/pb_draggable/context/index.tsx
1078
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
1079
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
1080
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
1081
+ - app/pb_kits/playbook/pb_draggable/docs/example.yml
1082
+ - app/pb_kits/playbook/pb_draggable/docs/index.js
1083
+ - app/pb_kits/playbook/pb_draggable/draggable.test.jsx
1084
+ - app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx
1085
+ - app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx
1072
1086
  - app/pb_kits/playbook/pb_dropdown/_dropdown.scss
1073
1087
  - app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
1074
1088
  - app/pb_kits/playbook/pb_dropdown/context/index.tsx
@@ -1334,6 +1348,7 @@ files:
1334
1348
  - app/pb_kits/playbook/pb_gauge/docs/index.js
1335
1349
  - app/pb_kits/playbook/pb_gauge/gauge.html.erb
1336
1350
  - app/pb_kits/playbook/pb_gauge/gauge.rb
1351
+ - app/pb_kits/playbook/pb_gauge/gauge.test.js
1337
1352
  - app/pb_kits/playbook/pb_hashtag/_hashtag.scss
1338
1353
  - app/pb_kits/playbook/pb_hashtag/_hashtag.tsx
1339
1354
  - app/pb_kits/playbook/pb_hashtag/docs/_description.md
@@ -1632,6 +1647,7 @@ files:
1632
1647
  - app/pb_kits/playbook/pb_line_graph/docs/_line_graph_legend_position.md
1633
1648
  - app/pb_kits/playbook/pb_line_graph/docs/example.yml
1634
1649
  - app/pb_kits/playbook/pb_line_graph/docs/index.js
1650
+ - app/pb_kits/playbook/pb_line_graph/lineGraph.test.js
1635
1651
  - app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js
1636
1652
  - app/pb_kits/playbook/pb_line_graph/line_graph.html.erb
1637
1653
  - app/pb_kits/playbook/pb_line_graph/line_graph.rb
@@ -2330,17 +2346,22 @@ files:
2330
2346
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb
2331
2347
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx
2332
2348
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.md
2333
- - app/pb_kits/playbook/pb_table/docs/_table_alignment_column.html.erb
2334
2349
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_column.jsx
2335
2350
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_column.md
2336
- - app/pb_kits/playbook/pb_table/docs/_table_alignment_row.html.erb
2351
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_column_rails.html.erb
2352
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_column_rails.md
2337
2353
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_row.jsx
2338
2354
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_row.md
2339
- - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.html.erb
2355
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.html.erb
2356
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_row_rails.md
2340
2357
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.jsx
2341
2358
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data.md
2342
- - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.html.erb
2359
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.html.erb
2360
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_data_rails.md
2343
2361
  - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.jsx
2362
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row.md
2363
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.html.erb
2364
+ - app/pb_kits/playbook/pb_table/docs/_table_alignment_shift_row_rails.md
2344
2365
  - app/pb_kits/playbook/pb_table/docs/_table_container.html.erb
2345
2366
  - app/pb_kits/playbook/pb_table/docs/_table_container.jsx
2346
2367
  - app/pb_kits/playbook/pb_table/docs/_table_data_table.html.erb
@@ -2366,6 +2387,9 @@ files:
2366
2387
  - app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb
2367
2388
  - app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx
2368
2389
  - app/pb_kits/playbook/pb_table/docs/_table_one_action.md
2390
+ - app/pb_kits/playbook/pb_table/docs/_table_outer_padding.html.erb
2391
+ - app/pb_kits/playbook/pb_table/docs/_table_outer_padding.jsx
2392
+ - app/pb_kits/playbook/pb_table/docs/_table_outer_padding.md
2369
2393
  - app/pb_kits/playbook/pb_table/docs/_table_responsive_table.html.erb
2370
2394
  - app/pb_kits/playbook/pb_table/docs/_table_responsive_table.jsx
2371
2395
  - app/pb_kits/playbook/pb_table/docs/_table_side_highlight.html.erb
@@ -2410,6 +2434,7 @@ files:
2410
2434
  - app/pb_kits/playbook/pb_table/styles/_hover.scss
2411
2435
  - app/pb_kits/playbook/pb_table/styles/_mobile.scss
2412
2436
  - app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss
2437
+ - app/pb_kits/playbook/pb_table/styles/_outer_padding.scss
2413
2438
  - app/pb_kits/playbook/pb_table/styles/_reset.scss
2414
2439
  - app/pb_kits/playbook/pb_table/styles/_side_highlight.scss
2415
2440
  - app/pb_kits/playbook/pb_table/styles/_single-line.scss
@@ -2709,6 +2734,7 @@ files:
2709
2734
  - app/pb_kits/playbook/pb_treemap_chart/docs/_treemap_chart_tooltip.md
2710
2735
  - app/pb_kits/playbook/pb_treemap_chart/docs/example.yml
2711
2736
  - app/pb_kits/playbook/pb_treemap_chart/docs/index.js
2737
+ - app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js
2712
2738
  - app/pb_kits/playbook/pb_treemap_chart/treemap_chart.html.erb
2713
2739
  - app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb
2714
2740
  - app/pb_kits/playbook/pb_typeahead/_typeahead.scss
@@ -2850,6 +2876,7 @@ files:
2850
2876
  - app/pb_kits/playbook/tokens/_titles.scss
2851
2877
  - app/pb_kits/playbook/tokens/_transition.scss
2852
2878
  - app/pb_kits/playbook/tokens/_typography.scss
2879
+ - app/pb_kits/playbook/tokens/_vertical_align.scss
2853
2880
  - app/pb_kits/playbook/tokens/exports/_border_radius.scss
2854
2881
  - app/pb_kits/playbook/tokens/exports/_colors.scss
2855
2882
  - app/pb_kits/playbook/tokens/exports/_line_height.scss
@@ -2880,6 +2907,7 @@ files:
2880
2907
  - app/pb_kits/playbook/utilities/_spacing.scss
2881
2908
  - app/pb_kits/playbook/utilities/_text_align.scss
2882
2909
  - app/pb_kits/playbook/utilities/_truncate.scss
2910
+ - app/pb_kits/playbook/utilities/_vertical_align.scss
2883
2911
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_content.scss
2884
2912
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_items.scss
2885
2913
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_self.scss
@@ -2979,6 +3007,7 @@ files:
2979
3007
  - lib/playbook/top.rb
2980
3008
  - lib/playbook/truncate.rb
2981
3009
  - lib/playbook/version.rb
3010
+ - lib/playbook/vertical_align.rb
2982
3011
  - lib/playbook/z_index.rb
2983
3012
  - lib/playbook_ui.rb
2984
3013
  homepage: https://playbook.powerapp.cloud/
@@ -1,63 +0,0 @@
1
- <%= pb_rails("table") do %>
2
- <thead>
3
- <tr>
4
- <th>&nbsp;</th>
5
- <th>Price</th>
6
- </tr>
7
- </thead>
8
- <tbody>
9
- <tr>
10
- <td shift="down">Total</td>
11
- <td>
12
- $12
13
- <br/>
14
- $46
15
- <br/>
16
- $25
17
- <br/>
18
- -------
19
- <br/>
20
- $83
21
- </td>
22
- </tr>
23
- </tbody>
24
- <% end %>
25
- <br/>
26
- <%= pb_rails("table") do %>
27
- <thead>
28
- <tr>
29
- <th>Espresso Drinks</th>
30
- <th>Ingredients</th>
31
- </tr>
32
- </thead>
33
- <tbody>
34
- <tr>
35
- <td shift="up">Cappuccino</td>
36
- <td>
37
- Espresso
38
- <br/>
39
- Steamed Milk
40
- <br/>
41
- Milk Foam
42
- </td>
43
- </tr>
44
- <tr>
45
- <td shift="up">Macchiato</td>
46
- <td>
47
- Espresso
48
- <br/>
49
- Steamed Milk
50
- </td>
51
- </tr>
52
- <tr>
53
- <td shift="up">Mocha</td>
54
- <td>
55
- Espresso
56
- <br/>
57
- Hot Chocolate
58
- <br/>
59
- Steamed Milk
60
- </td>
61
- </tr>
62
- </tbody>
63
- <% end %>
@@ -1,52 +0,0 @@
1
- <%= pb_rails("table") do %>
2
- <thead>
3
- <tr>
4
- <th>Column 1</th>
5
- <th>Column 2</th>
6
- <th>Column 3</th>
7
- <th>Column 4</th>
8
- <th>Column 5</th>
9
- </tr>
10
- </thead>
11
- <tbody>
12
- <tr>
13
- <td>
14
- Value 1a
15
- <br/>
16
- Value 1a
17
- <br/>
18
- Value 1a
19
- </td>
20
- <td>Value 2a</td>
21
- <td>Value 3a</td>
22
- <td>Value 4a</td>
23
- <td>Value 5a</td>
24
- </tr>
25
- <tr shift="middle">
26
- <td>
27
- Value 1b
28
- <br/>
29
- Value 1b
30
- <br/>
31
- Value 1b
32
- </td>
33
- <td>Value 2b</td>
34
- <td>Value 3b</td>
35
- <td>Value 4b</td>
36
- <td>Value 5b</td>
37
- </tr>
38
- <tr shift="down">
39
- <td>
40
- Value 1c
41
- <br/>
42
- Value 1c
43
- <br/>
44
- Value 1c
45
- </td>
46
- <td>Value 2c</td>
47
- <td>Value 3c</td>
48
- <td>Value 4c</td>
49
- <td>Value 5c</td>
50
- </tr>
51
- </tbody>
52
- <% end %>