playbook_ui 13.20.0.pre.alpha.play1247htmloptions2404 → 13.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/index.js +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +1 -6
  4. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -2
  6. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -45
  7. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
  8. data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -2
  9. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +1 -2
  10. data/app/pb_kits/playbook/pb_background/background.html.erb +1 -2
  11. data/app/pb_kits/playbook/pb_badge/badge.html.erb +1 -2
  12. data/app/pb_kits/playbook/pb_body/body.html.erb +1 -2
  13. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +1 -2
  14. data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +1 -2
  15. data/app/pb_kits/playbook/pb_button/button.html.erb +1 -2
  16. data/app/pb_kits/playbook/pb_button/button.rb +3 -2
  17. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +1 -2
  18. data/app/pb_kits/playbook/pb_caption/caption.html.erb +1 -2
  19. data/app/pb_kits/playbook/pb_card/card.html.erb +1 -2
  20. data/app/pb_kits/playbook/pb_card/card_body.html.erb +1 -2
  21. data/app/pb_kits/playbook/pb_card/card_header.html.erb +1 -2
  22. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -3
  23. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +1 -2
  24. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +1 -2
  25. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +1 -2
  26. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +1 -2
  27. data/app/pb_kits/playbook/pb_contact/contact.html.erb +1 -2
  28. data/app/pb_kits/playbook/pb_currency/currency.html.erb +1 -2
  29. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +1 -2
  30. data/app/pb_kits/playbook/pb_date/date.html.erb +1 -2
  31. data/app/pb_kits/playbook/pb_date/docs/_date_alignment_swift.md +6 -26
  32. data/app/pb_kits/playbook/pb_date/docs/_date_default_swift.md +8 -27
  33. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -3
  34. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +1 -2
  35. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +1 -2
  36. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +1 -2
  37. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +1 -2
  38. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +2 -3
  39. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +1 -2
  40. data/app/pb_kits/playbook/pb_detail/detail.html.erb +1 -2
  41. data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +1 -2
  42. data/app/pb_kits/playbook/pb_dialog/dialog_body.html.erb +2 -3
  43. data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +1 -2
  44. data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +2 -3
  45. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +1 -2
  46. data/app/pb_kits/playbook/pb_filter/filter.html.erb +1 -2
  47. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +1 -2
  48. data/app/pb_kits/playbook/pb_flex/flex.html.erb +1 -2
  49. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +1 -2
  50. data/app/pb_kits/playbook/pb_form_group/form_group.html.erb +1 -2
  51. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +2 -2
  52. data/app/pb_kits/playbook/pb_hashtag/hashtag.html.erb +1 -2
  53. data/app/pb_kits/playbook/pb_highlight/highlight.html.erb +1 -2
  54. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.html.erb +1 -2
  55. data/app/pb_kits/playbook/pb_icon/icon.html.erb +1 -2
  56. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +1 -2
  57. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +1 -2
  58. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +1 -2
  59. data/app/pb_kits/playbook/pb_image/image.html.erb +1 -2
  60. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +1 -2
  61. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +2 -3
  62. data/app/pb_kits/playbook/pb_layout/body.html.erb +1 -2
  63. data/app/pb_kits/playbook/pb_layout/footer.html.erb +1 -2
  64. data/app/pb_kits/playbook/pb_layout/header.html.erb +1 -2
  65. data/app/pb_kits/playbook/pb_layout/item.html.erb +1 -2
  66. data/app/pb_kits/playbook/pb_layout/layout.html.erb +1 -2
  67. data/app/pb_kits/playbook/pb_layout/sidebar.html.erb +1 -2
  68. data/app/pb_kits/playbook/pb_legend/legend.html.erb +1 -2
  69. data/app/pb_kits/playbook/pb_list/item.html.erb +1 -2
  70. data/app/pb_kits/playbook/pb_list/list.html.erb +1 -2
  71. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -2
  72. data/app/pb_kits/playbook/pb_message/docs/_description.md +1 -1
  73. data/app/pb_kits/playbook/pb_message/message.html.erb +1 -2
  74. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +2 -3
  75. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.html.erb +1 -2
  76. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +1 -2
  77. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +1 -2
  78. data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +0 -4
  79. data/app/pb_kits/playbook/pb_nav/item.html.erb +2 -4
  80. data/app/pb_kits/playbook/pb_nav/nav.html.erb +1 -2
  81. data/app/pb_kits/playbook/pb_online_status/online_status.html.erb +1 -2
  82. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -2
  83. data/app/pb_kits/playbook/pb_passphrase/passphrase.html.erb +1 -1
  84. data/app/pb_kits/playbook/pb_person/person.html.erb +1 -2
  85. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +1 -2
  86. data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -2
  87. data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -2
  88. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +1 -2
  89. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +1 -2
  90. data/app/pb_kits/playbook/pb_progress_step/progress_step.html.erb +1 -2
  91. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.html.erb +1 -2
  92. data/app/pb_kits/playbook/pb_radio/radio.html.erb +1 -2
  93. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +1 -2
  94. data/app/pb_kits/playbook/pb_select/select.html.erb +1 -2
  95. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -2
  96. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb +1 -2
  97. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb +1 -2
  98. data/app/pb_kits/playbook/pb_selectable_list/selectable_list.html.erb +1 -2
  99. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +1 -2
  100. data/app/pb_kits/playbook/pb_source/source.html.erb +1 -2
  101. data/app/pb_kits/playbook/pb_star_rating/star_rating.html.erb +1 -2
  102. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +1 -2
  103. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +1 -2
  104. data/app/pb_kits/playbook/pb_table/_table.tsx +0 -13
  105. data/app/pb_kits/playbook/pb_table/_table_row.tsx +47 -0
  106. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +25 -24
  107. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -6
  108. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  109. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +2 -2
  110. data/app/pb_kits/playbook/pb_table/styles/_structure.scss +2 -4
  111. data/app/pb_kits/playbook/pb_table/table.html.erb +2 -4
  112. data/app/pb_kits/playbook/pb_table/table.test.js +1 -142
  113. data/app/pb_kits/playbook/pb_table/table_header.html.erb +38 -50
  114. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -8
  115. data/app/pb_kits/playbook/pb_table/table_row.html.erb +6 -18
  116. data/app/pb_kits/playbook/pb_table/table_row.rb +1 -8
  117. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -9
  118. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +0 -20
  119. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +1 -2
  120. data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -2
  121. data/app/pb_kits/playbook/pb_time/time.html.erb +1 -2
  122. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +2 -3
  123. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +1 -2
  124. data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -2
  125. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +1 -2
  126. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +1 -2
  127. data/app/pb_kits/playbook/pb_title/title.html.erb +2 -3
  128. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +1 -2
  129. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +1 -2
  130. data/app/pb_kits/playbook/pb_toggle/toggle.html.erb +1 -2
  131. data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +1 -2
  132. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -2
  133. data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +1 -2
  134. data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -1
  135. data/app/pb_kits/playbook/pb_user/user.html.erb +1 -2
  136. data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +1 -2
  137. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +1 -2
  138. data/app/pb_kits/playbook/utilities/_positioning.scss +7 -48
  139. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -23
  140. data/dist/playbook-rails.js +6 -6
  141. data/lib/playbook/classnames.rb +0 -4
  142. data/lib/playbook/kit_base.rb +0 -26
  143. data/lib/playbook/version.rb +2 -2
  144. metadata +8 -31
  145. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx +0 -47
  146. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md +0 -7
  147. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +0 -34
  148. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx +0 -48
  149. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md +0 -3
  150. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.html.erb +0 -34
  151. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.md +0 -7
  152. data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +0 -64
  153. data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +0 -66
  154. data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +0 -64
  155. data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +0 -66
  156. data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +0 -74
  157. data/app/pb_kits/playbook/pb_table/subcomponents/index.tsx +0 -5
  158. data/app/pb_kits/playbook/pb_table/table_body.html.erb +0 -19
  159. data/app/pb_kits/playbook/pb_table/table_body.rb +0 -15
  160. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +0 -19
  161. data/app/pb_kits/playbook/pb_table/table_cell.rb +0 -17
  162. data/app/pb_kits/playbook/pb_table/table_head.html.erb +0 -19
  163. data/app/pb_kits/playbook/pb_table/table_head.rb +0 -15
  164. data/app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md +0 -30
  165. data/lib/playbook/bottom.rb +0 -33
  166. data/lib/playbook/left.rb +0 -33
  167. data/lib/playbook/right.rb +0 -33
  168. data/lib/playbook/top.rb +0 -33
@@ -37,10 +37,6 @@ module Playbook
37
37
  text_align_props,
38
38
  overflow_props,
39
39
  truncate_props,
40
- left_props,
41
- top_props,
42
- right_props,
43
- bottom_props,
44
40
  ].compact.join(" ")
45
41
  end
46
42
 
@@ -25,10 +25,6 @@ require "playbook/border_radius"
25
25
  require "playbook/text_align"
26
26
  require "playbook/overflow"
27
27
  require "playbook/truncate"
28
- require "playbook/left"
29
- require "playbook/top"
30
- require "playbook/right"
31
- require "playbook/bottom"
32
28
 
33
29
  module Playbook
34
30
  class KitBase < ViewComponent::Base
@@ -59,36 +55,14 @@ module Playbook
59
55
  include Playbook::TextAlign
60
56
  include Playbook::Overflow
61
57
  include Playbook::Truncate
62
- include Playbook::Left
63
- include Playbook::Top
64
- include Playbook::Right
65
- include Playbook::Bottom
66
58
 
67
59
  prop :id
68
60
  prop :data, type: Playbook::Props::HashProp, default: {}
69
61
  prop :aria, type: Playbook::Props::HashProp, default: {}
70
- prop :html_options, type: Playbook::Props::HashProp, default: {}
71
62
  prop :children, type: Playbook::Props::Proc
72
63
 
73
64
  def object
74
65
  self
75
66
  end
76
-
77
- def combined_html_options
78
- default_html_options.merge(html_options.deep_merge(data_attributes))
79
- end
80
-
81
- private
82
-
83
- def default_html_options
84
- {}
85
- end
86
-
87
- def data_attributes
88
- {
89
- data: data,
90
- aria: aria,
91
- }.transform_keys { |key| key.to_s.gsub("_", "-") }
92
- end
93
67
  end
94
68
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "13.20.0"
5
- VERSION = "13.20.0.pre.alpha.play1247htmloptions2404"
4
+ PREVIOUS_VERSION = "13.19.0"
5
+ VERSION = "13.20.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.20.0.pre.alpha.play1247htmloptions2404
4
+ version: 13.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-20 00:00:00.000000000 Z
12
+ date: 2024-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2222,6 +2222,7 @@ files:
2222
2222
  - app/pb_kits/playbook/pb_stat_value/stat_value.test.js
2223
2223
  - app/pb_kits/playbook/pb_table/_table.scss
2224
2224
  - app/pb_kits/playbook/pb_table/_table.tsx
2225
+ - app/pb_kits/playbook/pb_table/_table_row.tsx
2225
2226
  - app/pb_kits/playbook/pb_table/docs/_description.md
2226
2227
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb
2227
2228
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx
@@ -2288,13 +2289,6 @@ files:
2288
2289
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
2289
2290
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
2290
2291
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
2291
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
2292
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
2293
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
2294
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx
2295
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md
2296
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.html.erb
2297
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.md
2298
2292
  - app/pb_kits/playbook/pb_table/docs/example.yml
2299
2293
  - app/pb_kits/playbook/pb_table/docs/index.js
2300
2294
  - app/pb_kits/playbook/pb_table/index.ts
@@ -2318,21 +2312,9 @@ files:
2318
2312
  - app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss
2319
2313
  - app/pb_kits/playbook/pb_table/styles/_variables.scss
2320
2314
  - app/pb_kits/playbook/pb_table/styles/_vertical_border.scss
2321
- - app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx
2322
- - app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx
2323
- - app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx
2324
- - app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx
2325
- - app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx
2326
- - app/pb_kits/playbook/pb_table/subcomponents/index.tsx
2327
2315
  - app/pb_kits/playbook/pb_table/table.html.erb
2328
2316
  - app/pb_kits/playbook/pb_table/table.rb
2329
2317
  - app/pb_kits/playbook/pb_table/table.test.js
2330
- - app/pb_kits/playbook/pb_table/table_body.html.erb
2331
- - app/pb_kits/playbook/pb_table/table_body.rb
2332
- - app/pb_kits/playbook/pb_table/table_cell.html.erb
2333
- - app/pb_kits/playbook/pb_table/table_cell.rb
2334
- - app/pb_kits/playbook/pb_table/table_head.html.erb
2335
- - app/pb_kits/playbook/pb_table/table_head.rb
2336
2318
  - app/pb_kits/playbook/pb_table/table_header.html.erb
2337
2319
  - app/pb_kits/playbook/pb_table/table_header.rb
2338
2320
  - app/pb_kits/playbook/pb_table/table_row.html.erb
@@ -2661,7 +2643,6 @@ files:
2661
2643
  - app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
2662
2644
  - app/pb_kits/playbook/pb_user/docs/_user_default.jsx
2663
2645
  - app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md
2664
- - app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md
2665
2646
  - app/pb_kits/playbook/pb_user/docs/_user_props_table.md
2666
2647
  - app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
2667
2648
  - app/pb_kits/playbook/pb_user/docs/_user_size.jsx
@@ -2810,7 +2791,6 @@ files:
2810
2791
  - lib/playbook/align_items.rb
2811
2792
  - lib/playbook/align_self.rb
2812
2793
  - lib/playbook/border_radius.rb
2813
- - lib/playbook/bottom.rb
2814
2794
  - lib/playbook/classnames.rb
2815
2795
  - lib/playbook/cursor.rb
2816
2796
  - lib/playbook/display.rb
@@ -2836,7 +2816,6 @@ files:
2836
2816
  - lib/playbook/justify_self.rb
2837
2817
  - lib/playbook/kit_base.rb
2838
2818
  - lib/playbook/kit_resolver.rb
2839
- - lib/playbook/left.rb
2840
2819
  - lib/playbook/line_height.rb
2841
2820
  - lib/playbook/number_spacing.rb
2842
2821
  - lib/playbook/order.rb
@@ -2861,11 +2840,9 @@ files:
2861
2840
  - lib/playbook/props/percentage.rb
2862
2841
  - lib/playbook/props/proc.rb
2863
2842
  - lib/playbook/props/string.rb
2864
- - lib/playbook/right.rb
2865
2843
  - lib/playbook/shadow.rb
2866
2844
  - lib/playbook/spacing.rb
2867
2845
  - lib/playbook/text_align.rb
2868
- - lib/playbook/top.rb
2869
2846
  - lib/playbook/truncate.rb
2870
2847
  - lib/playbook/version.rb
2871
2848
  - lib/playbook/z_index.rb
@@ -2874,7 +2851,7 @@ homepage: https://playbook.powerapp.cloud/
2874
2851
  licenses:
2875
2852
  - ISC
2876
2853
  metadata: {}
2877
- post_install_message:
2854
+ post_install_message:
2878
2855
  rdoc_options: []
2879
2856
  require_paths:
2880
2857
  - lib
@@ -2885,12 +2862,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2885
2862
  version: '0'
2886
2863
  required_rubygems_version: !ruby/object:Gem::Requirement
2887
2864
  requirements:
2888
- - - ">"
2865
+ - - ">="
2889
2866
  - !ruby/object:Gem::Version
2890
- version: 1.3.1
2867
+ version: '0'
2891
2868
  requirements: []
2892
2869
  rubygems_version: 3.3.7
2893
- signing_key:
2870
+ signing_key:
2894
2871
  specification_version: 4
2895
2872
  summary: Playbook Design System
2896
2873
  test_files: []
@@ -1,47 +0,0 @@
1
- import React from 'react'
2
-
3
- import Table from '../_table'
4
-
5
- const TableWithSubcomponents = (props) => {
6
- return (
7
- <Table
8
- size="sm"
9
- {...props}
10
- >
11
- <Table.Head>
12
- <Table.Row>
13
- <Table.Header>{'Column 1'}</Table.Header>
14
- <Table.Header>{'Column 2'}</Table.Header>
15
- <Table.Header>{'Column 3'}</Table.Header>
16
- <Table.Header>{'Column 4'}</Table.Header>
17
- <Table.Header>{'Column 5'}</Table.Header>
18
- </Table.Row>
19
- </Table.Head>
20
- <Table.Body>
21
- <Table.Row>
22
- <Table.Cell>{'Value 1'}</Table.Cell>
23
- <Table.Cell>{'Value 2'}</Table.Cell>
24
- <Table.Cell>{'Value 3'}</Table.Cell>
25
- <Table.Cell>{'Value 4'}</Table.Cell>
26
- <Table.Cell>{'Value 5'}</Table.Cell>
27
- </Table.Row>
28
- <Table.Row>
29
- <Table.Cell>{'Value 1'}</Table.Cell>
30
- <Table.Cell>{'Value 2'}</Table.Cell>
31
- <Table.Cell>{'Value 3'}</Table.Cell>
32
- <Table.Cell>{'Value 4'}</Table.Cell>
33
- <Table.Cell>{'Value 5'}</Table.Cell>
34
- </Table.Row>
35
- <Table.Row>
36
- <Table.Cell>{'Value 1'}</Table.Cell>
37
- <Table.Cell>{'Value 2'}</Table.Cell>
38
- <Table.Cell>{'Value 3'}</Table.Cell>
39
- <Table.Cell>{'Value 4'}</Table.Cell>
40
- <Table.Cell>{'Value 5'}</Table.Cell>
41
- </Table.Row>
42
- </Table.Body>
43
- </Table>
44
- )
45
- }
46
-
47
- export default TableWithSubcomponents
@@ -1,7 +0,0 @@
1
- You can optionally build your table using our sub-components, which map to their respective html table elements:
2
-
3
- `Table.Head` = `thead`
4
- `Table.Body` = `tbody`
5
- `Table.Row` = `tr`
6
- `Table.Header` = `th`
7
- `Table.Cell` = `td`
@@ -1,34 +0,0 @@
1
- <%= pb_rails("table", props: { size: "sm", tag:"div" }) do %>
2
- <%= pb_rails("table/table_head", props: {tag:"div"}) do %>
3
- <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
4
- <%= pb_rails("table/table_header", props: { text: "Column 1", tag:"div"}) %>
5
- <%= pb_rails("table/table_header", props: { text: "Column 2", tag:"div"}) %>
6
- <%= pb_rails("table/table_header", props: { text: "Column 3", tag:"div"}) %>
7
- <%= pb_rails("table/table_header", props: { text: "Column 4", tag:"div"}) %>
8
- <%= pb_rails("table/table_header", props: { text: "Column 5", tag:"div"}) %>
9
- <% end %>
10
- <% end %>
11
- <%= pb_rails("table/table_body", props: {tag:"div"}) do %>
12
- <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
13
- <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
14
- <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
15
- <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
16
- <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
17
- <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
18
- <% end %>
19
- <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
20
- <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
21
- <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
22
- <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
23
- <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
24
- <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
25
- <% end %>
26
- <%= pb_rails("table/table_row", props: {tag:"div"}) do %>
27
- <%= pb_rails("table/table_cell", props: { text: "Value 1", tag:"div"}) %>
28
- <%= pb_rails("table/table_cell", props: { text: "Value 2", tag:"div"}) %>
29
- <%= pb_rails("table/table_cell", props: { text: "Value 3", tag:"div"}) %>
30
- <%= pb_rails("table/table_cell", props: { text: "Value 4", tag:"div"}) %>
31
- <%= pb_rails("table/table_cell", props: { text: "Value 5", tag:"div"}) %>
32
- <% end %>
33
- <% end %>
34
- <% end %>
@@ -1,48 +0,0 @@
1
- import React from 'react'
2
-
3
- import Table from '../_table'
4
-
5
- const TableWithSubcomponentsAsDivs = (props) => {
6
- return (
7
- <Table
8
- size="sm"
9
- tag="div"
10
- {...props}
11
- >
12
- <Table.Head tag="div">
13
- <Table.Row tag="div">
14
- <Table.Header tag="div">{'Column 1'}</Table.Header>
15
- <Table.Header tag="div">{'Column 2'}</Table.Header>
16
- <Table.Header tag="div">{'Column 3'}</Table.Header>
17
- <Table.Header tag="div">{'Column 4'}</Table.Header>
18
- <Table.Header tag="div">{'Column 5'}</Table.Header>
19
- </Table.Row>
20
- </Table.Head>
21
- <Table.Body tag="div">
22
- <Table.Row tag="div">
23
- <Table.Cell tag="div">{'Value 1'}</Table.Cell>
24
- <Table.Cell tag="div">{'Value 2'}</Table.Cell>
25
- <Table.Cell tag="div">{'Value 3'}</Table.Cell>
26
- <Table.Cell tag="div">{'Value 4'}</Table.Cell>
27
- <Table.Cell tag="div">{'Value 5'}</Table.Cell>
28
- </Table.Row>
29
- <Table.Row tag="div">
30
- <Table.Cell tag="div">{'Value 1'}</Table.Cell>
31
- <Table.Cell tag="div">{'Value 2'}</Table.Cell>
32
- <Table.Cell tag="div">{'Value 3'}</Table.Cell>
33
- <Table.Cell tag="div">{'Value 4'}</Table.Cell>
34
- <Table.Cell tag="div">{'Value 5'}</Table.Cell>
35
- </Table.Row>
36
- <Table.Row>
37
- <Table.Cell tag="div">{'Value 1'}</Table.Cell>
38
- <Table.Cell tag="div">{'Value 2'}</Table.Cell>
39
- <Table.Cell tag="div">{'Value 3'}</Table.Cell>
40
- <Table.Cell tag="div">{'Value 4'}</Table.Cell>
41
- <Table.Cell tag="div">{'Value 5'}</Table.Cell>
42
- </Table.Row>
43
- </Table.Body>
44
- </Table>
45
- )
46
- }
47
-
48
- export default TableWithSubcomponentsAsDivs
@@ -1,3 +0,0 @@
1
- Optionally build your table with divs by passing `div` to the `tag` prop of all* your sub-components.
2
-
3
- *NOTE: The `tag` prop defaults to `table`, which returns html elements. If divs are desired, sub-components must be used and all table elements, including the initial kit call, must use `div` as their `tag` in order for the table to render properly.
@@ -1,34 +0,0 @@
1
- <%= pb_rails("table", props: { size: "sm" }) do %>
2
- <%= pb_rails("table/table_head") do %>
3
- <%= pb_rails("table/table_row") do %>
4
- <%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
5
- <%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
6
- <%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
7
- <%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
8
- <%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
9
- <% end %>
10
- <% end %>
11
- <%= pb_rails("table/table_body") do %>
12
- <%= pb_rails("table/table_row") do %>
13
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
14
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
15
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
16
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
17
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
18
- <% end %>
19
- <%= pb_rails("table/table_row") do %>
20
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
21
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
22
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
23
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
24
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
25
- <% end %>
26
- <%= pb_rails("table/table_row") do %>
27
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
28
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
29
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
30
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
31
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
32
- <% end %>
33
- <% end %>
34
- <% end %>
@@ -1,7 +0,0 @@
1
- You can optionally build your table using our sub-components, which map to their respective html table elements:
2
-
3
- `table_head` = `thead`
4
- `table_body` = `tbody`
5
- `table_row` = `tr`
6
- `table_header` = `th`
7
- `table_cell` = `td`
@@ -1,64 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import {
4
- buildAriaProps,
5
- buildDataProps,
6
- buildHtmlProps,
7
- } from "../../utilities/props";
8
- import { globalProps } from "../../utilities/globalProps";
9
-
10
- type TableBodyPropTypes = {
11
- aria?: { [key: string]: string };
12
- children: React.ReactNode[] | React.ReactNode;
13
- className: string;
14
- data?: { [key: string]: string };
15
- htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
16
- id?: string;
17
- tag?: "table" | "div";
18
- };
19
-
20
- const TableBody = (props: TableBodyPropTypes) => {
21
- const {
22
- aria = {},
23
- children,
24
- className,
25
- data = {},
26
- htmlOptions = {},
27
- id,
28
- tag = "table",
29
- } = props;
30
-
31
- const ariaProps = buildAriaProps(aria);
32
- const dataProps = buildDataProps(data);
33
- const htmlProps = buildHtmlProps(htmlOptions);
34
- const classes = classnames("pb_table_tbody", globalProps(props), className);
35
- const isTableTag = tag === "table";
36
-
37
- return (
38
- <>
39
- {isTableTag ? (
40
- <tbody
41
- {...ariaProps}
42
- {...dataProps}
43
- {...htmlProps}
44
- className={classes}
45
- id={id}
46
- >
47
- {children}
48
- </tbody>
49
- ) : (
50
- <div
51
- {...ariaProps}
52
- {...dataProps}
53
- {...htmlProps}
54
- className={classes}
55
- id={id}
56
- >
57
- {children}
58
- </div>
59
- )}
60
- </>
61
- );
62
- };
63
-
64
- export default TableBody;
@@ -1,66 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import {
4
- buildAriaProps,
5
- buildDataProps,
6
- buildHtmlProps,
7
- } from "../../utilities/props";
8
- import { globalProps } from "../../utilities/globalProps";
9
-
10
- type TableCellPropTypes = {
11
- aria?: { [key: string]: string };
12
- children: React.ReactNode[] | React.ReactNode;
13
- className: string;
14
- data?: { [key: string]: string };
15
- htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
16
- id?: string;
17
- tag?: "table" | "div";
18
- text?: string
19
- };
20
-
21
- const TableCell = (props: TableCellPropTypes) => {
22
- const {
23
- aria = {},
24
- children,
25
- className,
26
- data = {},
27
- htmlOptions = {},
28
- id,
29
- tag = "table",
30
- text,
31
- } = props;
32
-
33
- const ariaProps = buildAriaProps(aria);
34
- const dataProps = buildDataProps(data);
35
- const htmlProps = buildHtmlProps(htmlOptions);
36
- const classes = classnames("pb_table_td", globalProps(props), className);
37
- const isTableTag = tag === "table";
38
-
39
- return (
40
- <>
41
- {isTableTag ? (
42
- <td
43
- {...ariaProps}
44
- {...dataProps}
45
- {...htmlProps}
46
- className={classes}
47
- id={id}
48
- >
49
- {text || children}
50
- </td>
51
- ) : (
52
- <div
53
- {...ariaProps}
54
- {...dataProps}
55
- {...htmlProps}
56
- className={classes}
57
- id={id}
58
- >
59
- {text || children}
60
- </div>
61
- )}
62
- </>
63
- );
64
- };
65
-
66
- export default TableCell;
@@ -1,64 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import {
4
- buildAriaProps,
5
- buildDataProps,
6
- buildHtmlProps,
7
- } from "../../utilities/props";
8
- import { globalProps } from "../../utilities/globalProps";
9
-
10
- type TableHeadPropTypes = {
11
- aria?: { [key: string]: string };
12
- children: React.ReactNode[] | React.ReactNode;
13
- className: string;
14
- data?: { [key: string]: string };
15
- htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
16
- id?: string;
17
- tag?: "table" | "div";
18
- };
19
-
20
- const TableHead = (props: TableHeadPropTypes) => {
21
- const {
22
- aria = {},
23
- children,
24
- className,
25
- data = {},
26
- htmlOptions = {},
27
- id,
28
- tag = "table",
29
- } = props;
30
-
31
- const ariaProps = buildAriaProps(aria);
32
- const dataProps = buildDataProps(data);
33
- const htmlProps = buildHtmlProps(htmlOptions);
34
- const classes = classnames("pb_table_thead", globalProps(props), className);
35
- const isTableTag = tag === "table";
36
-
37
- return (
38
- <>
39
- {isTableTag ? (
40
- <thead
41
- {...ariaProps}
42
- {...dataProps}
43
- {...htmlProps}
44
- className={classes}
45
- id={id}
46
- >
47
- {children}
48
- </thead>
49
- ) : (
50
- <div
51
- {...ariaProps}
52
- {...dataProps}
53
- {...htmlProps}
54
- className={classes}
55
- id={id}
56
- >
57
- {children}
58
- </div>
59
- )}
60
- </>
61
- );
62
- };
63
-
64
- export default TableHead;
@@ -1,66 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import {
4
- buildAriaProps,
5
- buildDataProps,
6
- buildHtmlProps,
7
- } from "../../utilities/props";
8
- import { globalProps } from "../../utilities/globalProps";
9
-
10
- type TableHeaderPropTypes = {
11
- aria?: { [key: string]: string };
12
- children: React.ReactNode[] | React.ReactNode;
13
- className: string;
14
- data?: { [key: string]: string };
15
- htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
16
- id?: string;
17
- tag?: "table" | "div";
18
- text?: string;
19
- };
20
-
21
- const TableHeader = (props: TableHeaderPropTypes) => {
22
- const {
23
- aria = {},
24
- children,
25
- className,
26
- data = {},
27
- htmlOptions = {},
28
- id,
29
- tag = "table",
30
- text
31
- } = props;
32
-
33
- const ariaProps = buildAriaProps(aria);
34
- const dataProps = buildDataProps(data);
35
- const htmlProps = buildHtmlProps(htmlOptions);
36
- const classes = classnames("pb_table_th", globalProps(props), className);
37
- const isTableTag = tag === "table";
38
-
39
- return (
40
- <>
41
- {isTableTag ? (
42
- <th
43
- {...ariaProps}
44
- {...dataProps}
45
- {...htmlProps}
46
- className={classes}
47
- id={id}
48
- >
49
- {text || children}
50
- </th>
51
- ) : (
52
- <div
53
- {...ariaProps}
54
- {...dataProps}
55
- {...htmlProps}
56
- className={classes}
57
- id={id}
58
- >
59
- {text || children}
60
- </div>
61
- )}
62
- </>
63
- );
64
- };
65
-
66
- export default TableHeader;