playbook_ui 14.17.0.pre.alpha.PBNTR925railstablecustomheaders7163 → 14.17.0.pre.alpha.alphaforaudiences7167

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b5ba2772d0847398c164bd526c5a9dbf067d4807b8fdd2c5a0c46bd0321e262
4
- data.tar.gz: 2170b362b15a77b3047faced6ca4d3ead6b579bed5afae1ac95f641a24a13336
3
+ metadata.gz: 2d4e1505953fc9d8679af10f4517e1db1910b806f2540bcba412afbaca8eb912
4
+ data.tar.gz: e1ec597e443b273d2037e5e0a572a9ca8f52ce25fb3754ccbc24edebd969377b
5
5
  SHA512:
6
- metadata.gz: 18e34ac57c425bd9db05e845ef3d3b2922b953141d0d136f0ab8e960d42b8974cc350b0d05d29404e88fa7652db2e6c5975832348051baf24581728063e77840
7
- data.tar.gz: 48b4ecf9f8326f20675af3af4449439477fbc9a39e07a34ab4c57e495cb9f038b98c1fb2a8b75756bcfcc453b1f77c467b56869ca67dd0b9592dd796991e0913
6
+ metadata.gz: c5e5f58405349fa05f6942b377efee9d7c845c74dfbbe1009fe28e9c50459871f1dcc0e23f9a4bc2e190493ef648fce14e3b06bd0e697fa8a07114c95068c219
7
+ data.tar.gz: 84723e76ae32724c3926bf9ac0a7b9b048ae640635f982ca9126ae99fdbd97528215d7c7dd563e739d9a3718787a98f31ce31729a725080466de72ffb50cbf61
@@ -1 +1 @@
1
- Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/react#table-with-background-kit) logic to give your table header a custom background color. Use the `headerStyle="floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `backgroundColor` passed to Background kit should match the `background` or `backgroundColor` for the element in which it is nested).
1
+ Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/react#table-with-background-kit) logic to give your table header a custom background color. Use the `headerStyle="floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `backgroundColor` passed to Background kit should match the `backgroundColor` for the element in which it is nested).
@@ -37,8 +37,6 @@ examples:
37
37
  - table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
38
38
  - table_with_clickable_rows: Table with Clickable Rows
39
39
  - table_with_selectable_rows: Table with Selectable Rows
40
- - table_with_header_style_borderless: Header Style Borderless
41
- - table_with_header_style_floating: Header Style Floating
42
40
 
43
41
  react:
44
42
  - table_sm: Small
@@ -37,16 +37,13 @@ module Playbook
37
37
  prop :outer_padding, type: Playbook::Props::Enum,
38
38
  values: ["none", "xxs", "xs", "sm", "md", "lg", "xl", nil],
39
39
  default: nil
40
- prop :header_style, type: Playbook::Props::Enum,
41
- values: %w[default borderless floating],
42
- default: "default"
43
40
 
44
41
  def classname
45
42
  generate_classname(
46
43
  "pb_table", "table-#{size}", single_line_class, dark_class,
47
44
  disable_hover_class, container_class, data_table_class, sticky_class, sticky_left_column_class,
48
45
  sticky_right_column_class, collapse_class, vertical_border_class, striped_class, outer_padding_class,
49
- "table-responsive-#{responsive}", header_style_class, separator: " "
46
+ "table-responsive-#{responsive}", separator: " "
50
47
  )
51
48
  end
52
49
 
@@ -126,15 +123,6 @@ module Playbook
126
123
  outer_padding.present? ? "outer_padding_#{space_css_name}#{outer_padding}" : nil
127
124
  end
128
125
  end
129
-
130
- def header_style_class
131
- case header_style
132
- when "borderless"
133
- "header-borderless"
134
- when "floating"
135
- "header-floating"
136
- end
137
- end
138
126
  end
139
127
  end
140
128
  end
@@ -26,12 +26,9 @@ module Playbook
26
26
  prop :tag, type: Playbook::Props::Enum,
27
27
  values: %w[table div],
28
28
  default: "table"
29
- prop :header_style, type: Playbook::Props::Enum,
30
- values: %w[default borderless floating],
31
- default: "default"
32
29
 
33
30
  def classname
34
- generate_classname("pb_table_header_kit", align_class, header_style_class) + tag_class
31
+ generate_classname("pb_table_header_kit", align_class) + tag_class
35
32
  end
36
33
 
37
34
  def tag_class
@@ -109,15 +106,6 @@ module Playbook
109
106
  end
110
107
  active_item
111
108
  end
112
-
113
- def header_style_class
114
- case header_style
115
- when "borderless"
116
- "header-borderless"
117
- when "floating"
118
- "header-floating"
119
- end
120
- end
121
109
  end
122
110
  end
123
111
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.17.0"
5
- VERSION = "14.17.0.pre.alpha.PBNTR925railstablecustomheaders7163"
5
+ VERSION = "14.17.0.pre.alpha.alphaforaudiences7167"
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.17.0.pre.alpha.PBNTR925railstablecustomheaders7163
4
+ version: 14.17.0.pre.alpha.alphaforaudiences7167
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -2867,13 +2867,9 @@ files:
2867
2867
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2868
2868
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2869
2869
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2870
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2871
2870
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2872
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
2873
2871
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
2874
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
2875
2872
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
2876
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
2877
2873
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
2878
2874
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
2879
2875
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -1,34 +0,0 @@
1
- <%= pb_rails("table", props: { size: "sm", header_style: "borderless" }) 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>Value 1</td>
14
- <td>Value 2</td>
15
- <td>Value 3</td>
16
- <td>Value 4</td>
17
- <td>Value 5</td>
18
- </tr>
19
- <tr>
20
- <td>Value 1</td>
21
- <td>Value 2</td>
22
- <td>Value 3</td>
23
- <td>Value 4</td>
24
- <td>Value 5</td>
25
- </tr>
26
- <tr>
27
- <td>Value 1</td>
28
- <td>Value 2</td>
29
- <td>Value 3</td>
30
- <td>Value 4</td>
31
- <td>Value 5</td>
32
- </tr>
33
- </tbody>
34
- <% end %>
@@ -1 +0,0 @@
1
- Customize your header by removing the header borders with the `header_style: "borderless"` prop.
@@ -1,36 +0,0 @@
1
- <%= pb_rails("card", props: { background: "light" }) do %>
2
- <%= pb_rails("table", props: { size: "sm", header_style: "floating" }) do %>
3
- <%= pb_rails("table/table_head") do %>
4
- <%= pb_rails("background", props: { background_color: "light", tag: "tr" }) do %>
5
- <%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
6
- <%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
7
- <%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
8
- <%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
9
- <%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
10
- <% end %>
11
- <% end %>
12
- <%= pb_rails("table/table_body") do %>
13
- <%= pb_rails("table/table_row") do %>
14
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
15
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
16
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
17
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
18
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
19
- <% end %>
20
- <%= pb_rails("table/table_row") do %>
21
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
22
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
23
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
24
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
25
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
26
- <% end %>
27
- <%= pb_rails("table/table_row") do %>
28
- <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
29
- <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
30
- <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
31
- <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
32
- <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
33
- <% end %>
34
- <% end %>
35
- <% end %>
36
- <% end %>
@@ -1 +0,0 @@
1
- Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/rails#table-with-background-kit) logic to give your table header a custom background color. Use the `header_style: "floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `background_color` passed to Background kit should match the `background` or `background_color` for the element in which it is nested).