playbook_ui 14.24.0.pre.alpha.PLAY1972validatemissingareacodeandrepeatcountrycode9457 → 14.24.0.pre.alpha.PLAY1984responsivegapprops9652

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +8 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -2
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +56 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +60 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +3 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx +57 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md +1 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +3 -1
  11. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +10 -1
  12. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +2 -0
  13. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb +24 -0
  14. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md +3 -0
  15. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +1 -0
  16. data/app/pb_kits/playbook/pb_dropdown/index.js +3 -0
  17. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +2 -2
  18. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb +22 -0
  19. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx +43 -0
  20. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md +1 -0
  21. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
  22. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
  23. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +2 -1
  24. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -1
  25. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +6 -0
  26. data/app/pb_kits/playbook/pb_flex/_flex.tsx +9 -6
  27. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +12 -1
  28. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +26 -1
  29. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md +11 -0
  30. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md +11 -0
  31. data/app/pb_kits/playbook/pb_flex/flex.rb +6 -12
  32. data/app/pb_kits/playbook/pb_pagination/_pagination.test.jsx +212 -0
  33. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +8 -1
  34. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +112 -0
  35. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md +3 -0
  36. data/app/pb_kits/playbook/pb_pagination/docs/example.yml +1 -0
  37. data/app/pb_kits/playbook/pb_pagination/docs/index.js +1 -0
  38. data/app/pb_kits/playbook/utilities/_gap.scss +12 -24
  39. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +2 -0
  40. data/app/pb_kits/playbook/utilities/globalProps.ts +28 -4
  41. data/dist/chunks/{_line_graph-qk_BN_J0.js → _line_graph-B9yItXkt.js} +1 -1
  42. data/dist/chunks/_typeahead-Mbp0CWgZ.js +6 -0
  43. data/dist/chunks/{_weekday_stacked-svceGyvR.js → _weekday_stacked-C-5U1QRT.js} +3 -3
  44. data/dist/chunks/vendor.js +1 -1
  45. data/dist/menu.yml +1 -1
  46. data/dist/playbook-doc.js +1 -1
  47. data/dist/playbook-rails-react-bindings.js +1 -1
  48. data/dist/playbook-rails.js +1 -1
  49. data/dist/playbook.css +1 -1
  50. data/lib/playbook/classnames.rb +2 -0
  51. data/lib/playbook/spacing.rb +53 -1
  52. data/lib/playbook/version.rb +1 -1
  53. metadata +19 -6
  54. data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +0 -9
  55. data/dist/chunks/_typeahead-ZLTFtAoW.js +0 -6
@@ -17,6 +17,8 @@ module Playbook
17
17
  min_width_props,
18
18
  max_width_props,
19
19
  gap_props,
20
+ column_gap_props,
21
+ row_gap_props,
20
22
  z_index_props,
21
23
  number_spacing_props,
22
24
  shadow_props,
@@ -4,6 +4,8 @@ module Playbook
4
4
  module Spacing
5
5
  def self.included(base)
6
6
  base.prop :gap
7
+ base.prop :column_gap
8
+ base.prop :row_gap
7
9
  base.prop :margin
8
10
  base.prop :margin_bottom
9
11
  base.prop :margin_left
@@ -63,6 +65,18 @@ module Playbook
63
65
  }
64
66
  end
65
67
 
68
+ def column_gap_options
69
+ {
70
+ column_gap: "column_gap",
71
+ }
72
+ end
73
+
74
+ def row_gap_options
75
+ {
76
+ row_gap: "row_gap",
77
+ }
78
+ end
79
+
66
80
  def spacing_options
67
81
  {
68
82
  margin: "m",
@@ -164,7 +178,45 @@ module Playbook
164
178
 
165
179
  selected_gap_props.map do |k|
166
180
  gap_value = send(k)
167
- "gap_#{gap_value}" if gap_values.include? gap_value
181
+ if gap_value.is_a?(Hash)
182
+ gap_value.map do |media_size, gap_spacing_value|
183
+ "gap_#{media_size}_#{gap_spacing_value.underscore}" if gap_values.include?(gap_spacing_value.to_s)
184
+ end
185
+ elsif gap_values.include?(gap_value.to_s)
186
+ "gap_#{gap_value.underscore}"
187
+ end
188
+ end.compact.join(" ")
189
+ end
190
+
191
+ def column_gap_props
192
+ selected_column_gap_props = column_gap_options.keys.select { |sk| try(sk) }
193
+ return nil unless selected_column_gap_props.present?
194
+
195
+ selected_column_gap_props.map do |k|
196
+ column_gap_value = send(k)
197
+ if column_gap_value.is_a?(Hash)
198
+ column_gap_value.map do |media_size, column_gap_spacing_value|
199
+ "column_gap_#{media_size}_#{column_gap_spacing_value.underscore}" if gap_values.include?(column_gap_spacing_value.to_s)
200
+ end
201
+ elsif gap_values.include?(column_gap_value.to_s)
202
+ "column_gap_#{column_gap_value.underscore}"
203
+ end
204
+ end.compact.join(" ")
205
+ end
206
+
207
+ def row_gap_props
208
+ selected_row_gap_props = row_gap_options.keys.select { |sk| try(sk) }
209
+ return nil unless selected_row_gap_props.present?
210
+
211
+ selected_row_gap_props.map do |k|
212
+ row_gap_value = send(k)
213
+ if row_gap_value.is_a?(Hash)
214
+ row_gap_value.map do |media_size, row_gap_spacing_value|
215
+ "row_gap_#{media_size}_#{row_gap_spacing_value.underscore}" if gap_values.include?(row_gap_spacing_value.to_s)
216
+ end
217
+ elsif gap_values.include?(row_gap_value.to_s)
218
+ "row_gap_#{row_gap_value.underscore}"
219
+ end
168
220
  end.compact.join(" ")
169
221
  end
170
222
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.24.0"
5
- VERSION = "14.24.0.pre.alpha.PLAY1972validatemissingareacodeandrepeatcountrycode9457"
5
+ VERSION = "14.24.0.pre.alpha.PLAY1984responsivegapprops9652"
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.24.0.pre.alpha.PLAY1972validatemissingareacodeandrepeatcountrycode9457
4
+ version: 14.24.0.pre.alpha.PLAY1984responsivegapprops9652
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-08-06 00:00:00.000000000 Z
12
+ date: 2025-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -352,6 +352,10 @@ files:
352
352
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading_react.md
353
353
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.html.erb
354
354
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx
355
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx
356
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md
357
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.jsx
358
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row.md
355
359
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx
356
360
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md
357
361
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx
@@ -812,6 +816,8 @@ files:
812
816
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx
813
817
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb
814
818
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx
819
+ - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.html.erb
820
+ - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_input_options.md
815
821
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.html.erb
816
822
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx
817
823
  - app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.md
@@ -1573,6 +1579,9 @@ files:
1573
1579
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
1574
1580
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md
1575
1581
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md
1582
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.html.erb
1583
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.jsx
1584
+ - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_no_icon.md
1576
1585
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb
1577
1586
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.jsx
1578
1587
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md
@@ -1596,7 +1605,8 @@ files:
1596
1605
  - app/pb_kits/playbook/pb_flex/docs/_flex_default.md
1597
1606
  - app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb
1598
1607
  - app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
1599
- - app/pb_kits/playbook/pb_flex/docs/_flex_gap.md
1608
+ - app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md
1609
+ - app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md
1600
1610
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.html.erb
1601
1611
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx
1602
1612
  - app/pb_kits/playbook/pb_flex/docs/_flex_inline.md
@@ -2388,11 +2398,14 @@ files:
2388
2398
  - app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_percentage.tsx
2389
2399
  - app/pb_kits/playbook/pb_overlay/subcomponents/_overlay_token.tsx
2390
2400
  - app/pb_kits/playbook/pb_pagination/_pagination.scss
2401
+ - app/pb_kits/playbook/pb_pagination/_pagination.test.jsx
2391
2402
  - app/pb_kits/playbook/pb_pagination/_pagination.tsx
2392
2403
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default.html.erb
2393
2404
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx
2394
2405
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md
2395
2406
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md
2407
+ - app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx
2408
+ - app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control_react.md
2396
2409
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx
2397
2410
  - app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md
2398
2411
  - app/pb_kits/playbook/pb_pagination/docs/data.js
@@ -3635,9 +3648,9 @@ files:
3635
3648
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3636
3649
  - app/pb_kits/playbook/utilities/text.ts
3637
3650
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3638
- - dist/chunks/_line_graph-qk_BN_J0.js
3639
- - dist/chunks/_typeahead-ZLTFtAoW.js
3640
- - dist/chunks/_weekday_stacked-svceGyvR.js
3651
+ - dist/chunks/_line_graph-B9yItXkt.js
3652
+ - dist/chunks/_typeahead-Mbp0CWgZ.js
3653
+ - dist/chunks/_weekday_stacked-C-5U1QRT.js
3641
3654
  - dist/chunks/lazysizes-B7xYodB-.js
3642
3655
  - dist/chunks/lib-CY5ZPzic.js
3643
3656
  - dist/chunks/pb_form_validation-D3b0JKHH.js
@@ -1,9 +0,0 @@
1
- ##### Prop
2
-
3
- * `gap` | `row_gap` | `rowGap` | `column_gap` | `columnGap` | **Type**: String | **Values**: xxs | xs | sm | md | lg | xl | none
4
-
5
- - Setting the gap prop sets the row_gap || rowGap and the column_gap || columnGap props to the same size and creates equal space within a flex container.
6
-
7
- - Setting the row_gap || rowGap prop creates space between rows in a flex container.
8
-
9
- - Setting the column_gap || columnGap prop creates space between columns in a flex container.