playbook_ui 14.10.0.pre.alpha.play1662cssbargraph5214 → 14.10.0.pre.alpha.play16825244

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +11 -16
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +8 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -3
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb +43 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb +58 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +4 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/index.js +143 -95
  11. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
  12. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +50 -8
  13. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +17 -14
  14. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +78 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +4 -3
  16. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +7 -2
  17. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +2 -6
  18. data/app/pb_kits/playbook/pb_card/_card.scss +21 -3
  19. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +18 -0
  20. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +40 -0
  21. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +5 -5
  22. data/app/pb_kits/playbook/pb_timeline/timeline.rb +6 -6
  23. data/app/pb_kits/playbook/utilities/_gap.scss +29 -0
  24. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
  25. data/app/pb_kits/playbook/utilities/globalProps.ts +18 -9
  26. data/dist/chunks/{_typeahead-gJLWiR0r.js → _typeahead-CbKUtXZa.js} +1 -1
  27. data/dist/chunks/{_weekday_stacked-7XLAG_Yz.js → _weekday_stacked-CNIlTH0K.js} +2 -2
  28. data/dist/chunks/vendor.js +1 -1
  29. data/dist/playbook-doc.js +1 -1
  30. data/dist/playbook-rails-react-bindings.js +1 -1
  31. data/dist/playbook-rails.js +1 -1
  32. data/dist/playbook.css +1 -1
  33. data/lib/playbook/classnames.rb +1 -0
  34. data/lib/playbook/spacing.rb +21 -0
  35. data/lib/playbook/version.rb +1 -1
  36. metadata +7 -5
  37. data/app/pb_kits/playbook/pb_bar_graph/BarGraphStyles.scss +0 -60
@@ -16,6 +16,7 @@ module Playbook
16
16
  width_props,
17
17
  min_width_props,
18
18
  max_width_props,
19
+ gap_props,
19
20
  z_index_props,
20
21
  number_spacing_props,
21
22
  shadow_props,
@@ -3,6 +3,7 @@
3
3
  module Playbook
4
4
  module Spacing
5
5
  def self.included(base)
6
+ base.prop :gap
6
7
  base.prop :margin
7
8
  base.prop :margin_bottom
8
9
  base.prop :margin_left
@@ -52,6 +53,16 @@ module Playbook
52
53
  %w[0% xs sm md lg xl xxl 0 none 100%]
53
54
  end
54
55
 
56
+ def gap_values
57
+ %w[none xxs xs sm md lg xl]
58
+ end
59
+
60
+ def gap_options
61
+ {
62
+ gap: "gap",
63
+ }
64
+ end
65
+
55
66
  def spacing_options
56
67
  {
57
68
  margin: "m",
@@ -146,5 +157,15 @@ module Playbook
146
157
  "width_#{filter_classname(width_value)}" if width_values.include? width_value
147
158
  end.compact.join(" ")
148
159
  end
160
+
161
+ def gap_props
162
+ selected_gap_props = gap_options.keys.select { |sk| try(sk) }
163
+ return nil unless selected_gap_props.present?
164
+
165
+ selected_gap_props.map do |k|
166
+ gap_value = send(k)
167
+ "gap_#{gap_value}" if gap_values.include? gap_value
168
+ end.compact.join(" ")
169
+ end
149
170
  end
150
171
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.10.0"
5
- VERSION = "14.10.0.pre.alpha.play1662cssbargraph5214"
5
+ VERSION = "14.10.0.pre.alpha.play16825244"
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: 14.10.0.pre.alpha.play1662cssbargraph5214
4
+ version: 14.10.0.pre.alpha.play16825244
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: 2025-01-03 00:00:00.000000000 Z
12
+ date: 2025-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -270,8 +270,10 @@ files:
270
270
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
271
271
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb
272
272
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md
273
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb
273
274
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
274
275
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md
276
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
275
277
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
276
278
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
277
279
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx
@@ -415,7 +417,6 @@ files:
415
417
  - app/pb_kits/playbook/pb_badge/docs/_description.md
416
418
  - app/pb_kits/playbook/pb_badge/docs/example.yml
417
419
  - app/pb_kits/playbook/pb_badge/docs/index.js
418
- - app/pb_kits/playbook/pb_bar_graph/BarGraphStyles.scss
419
420
  - app/pb_kits/playbook/pb_bar_graph/_bar_graph.scss
420
421
  - app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx
421
422
  - app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
@@ -3180,6 +3181,7 @@ files:
3180
3181
  - app/pb_kits/playbook/utilities/_display.scss
3181
3182
  - app/pb_kits/playbook/utilities/_flexbox.scss
3182
3183
  - app/pb_kits/playbook/utilities/_focus.scss
3184
+ - app/pb_kits/playbook/utilities/_gap.scss
3183
3185
  - app/pb_kits/playbook/utilities/_height.scss
3184
3186
  - app/pb_kits/playbook/utilities/_hover.scss
3185
3187
  - app/pb_kits/playbook/utilities/_line_height.scss
@@ -3233,8 +3235,8 @@ files:
3233
3235
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3234
3236
  - app/pb_kits/playbook/utilities/text.ts
3235
3237
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3236
- - dist/chunks/_typeahead-gJLWiR0r.js
3237
- - dist/chunks/_weekday_stacked-7XLAG_Yz.js
3238
+ - dist/chunks/_typeahead-CbKUtXZa.js
3239
+ - dist/chunks/_weekday_stacked-CNIlTH0K.js
3238
3240
  - dist/chunks/lazysizes-B7xYodB-.js
3239
3241
  - dist/chunks/lib-B7sgJtGS.js
3240
3242
  - dist/chunks/pb_form_validation-C5Cc0-1v.js
@@ -1,60 +0,0 @@
1
- @import "../tokens/colors";
2
- @import "../tokens/typography";
3
- @import url("https://code.highcharts.com/css/highcharts.css");
4
- // @import "highcharts/css/highcharts";
5
- // @import "highcharts/highcharts.css";
6
-
7
- :root {
8
- --highcharts-color-0: #{$data_1};
9
- --highcharts-color-1: #{$data_2};
10
- --highcharts-color-2: #{$data_3};
11
- --highcharts-color-3: #{$data_4};
12
- --highcharts-color-4: #{$data_5};
13
- --highcharts-color-5: #{$data_6};
14
- --highcharts-color-6: #{$data_7};
15
- --highcharts-color-7: #{$data_8};
16
- }
17
-
18
- .highcharts-title {
19
- font-family: $font_family_base;
20
- font-weight: $bold;
21
- font-size: $heading_3;
22
- color: $text_lt_default;
23
- fill: $text_lt_default;
24
- }
25
-
26
- .highcharts-subtitle {
27
- font-family: $font_family_base;
28
- color: $text_lt_light;
29
- fill: $text_lt_light;
30
- font-weight: $regular;
31
- font-size: $text_base;
32
- }
33
-
34
- .highcharts-yaxis > .highcharts-axis-title {
35
- color: $text_lt_lighter;
36
- fill: $text_lt_lighter;
37
- font-family: $font_family_base;
38
- font-weight: $bold;
39
- font-size: $text_smaller;
40
- }
41
-
42
- .highcharts-axis-labels {
43
- font-family: $font_family_base;
44
- color: $text_lt_lighter;
45
- fill: $text_lt_lighter;
46
- font-weight: $bold;
47
- font-size: $text_smaller;
48
- }
49
-
50
- .highcharts-grid-line {
51
- stroke: $border_light;
52
- }
53
-
54
- .highcharts-point {
55
- border-radius: 3px;
56
- }
57
-
58
- .highcharts-axis-line {
59
- stroke: $border_light;
60
- }