playbook_ui 13.19.0.pre.alpha.PBNTR200addadvancedtablekitdarkmodestyles2346 → 13.19.0.pre.alpha.PBNTR207tabledivsupport2245

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CollapsibleTrail.tsx +1 -6
  3. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -2
  4. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +0 -30
  6. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +4 -7
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.md +1 -1
  12. data/app/pb_kits/playbook/pb_icon/_icon.tsx +16 -28
  13. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb +11 -5
  14. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +18 -44
  15. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.md +8 -4
  16. data/app/pb_kits/playbook/pb_icon/icon.html.erb +4 -6
  17. data/app/pb_kits/playbook/pb_icon/icon.rb +10 -27
  18. data/app/pb_kits/playbook/pb_nav/_subtle_mixin.scss +0 -4
  19. data/app/pb_kits/playbook/pb_table/_table.tsx +67 -86
  20. data/app/pb_kits/playbook/pb_table/docs/_table_div.html.erb +26 -26
  21. data/app/pb_kits/playbook/pb_table/docs/_table_div.jsx +26 -27
  22. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -5
  23. data/app/pb_kits/playbook/pb_table/styles/_all.scss +1 -0
  24. data/app/pb_kits/playbook/pb_table/styles/_content.scss +3 -3
  25. data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +15 -15
  26. data/app/pb_kits/playbook/pb_table/styles/_div_support.scss +22 -0
  27. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +3 -3
  28. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +11 -11
  29. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +15 -15
  30. data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +15 -15
  31. data/app/pb_kits/playbook/pb_table/styles/_reset.scss +3 -3
  32. data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
  33. data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +4 -4
  34. data/app/pb_kits/playbook/pb_table/styles/_sticky_header.scss +2 -2
  35. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +4 -4
  36. data/app/pb_kits/playbook/pb_table/styles/_structure.scss +8 -22
  37. data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +7 -7
  38. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +14 -14
  39. data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +2 -2
  40. data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +15 -15
  41. data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +3 -3
  42. data/app/pb_kits/playbook/pb_table/table.html.erb +3 -1
  43. data/app/pb_kits/playbook/pb_table/table_header.html.erb +39 -49
  44. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -8
  45. data/app/pb_kits/playbook/pb_table/table_row.html.erb +7 -17
  46. data/app/pb_kits/playbook/pb_table/table_row.rb +1 -8
  47. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -9
  48. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +0 -20
  49. data/app/pb_kits/playbook/pb_user/docs/_user_props_table.md +1 -2
  50. data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -1
  51. data/dist/playbook-rails.js +2 -2
  52. data/lib/playbook/version.rb +1 -1
  53. metadata +3 -13
  54. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb +0 -34
  55. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md +0 -7
  56. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +0 -34
  57. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md +0 -3
  58. data/app/pb_kits/playbook/pb_table/table_body.html.erb +0 -17
  59. data/app/pb_kits/playbook/pb_table/table_body.rb +0 -15
  60. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +0 -17
  61. data/app/pb_kits/playbook/pb_table/table_cell.rb +0 -17
  62. data/app/pb_kits/playbook/pb_table/table_head.html.erb +0 -17
  63. data/app/pb_kits/playbook/pb_table/table_head.rb +0 -15
  64. data/app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md +0 -30
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.19.0"
5
- VERSION = "13.19.0.pre.alpha.PBNTR200addadvancedtablekitdarkmodestyles2346"
5
+ VERSION = "13.19.0.pre.alpha.PBNTR207tabledivsupport2245"
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: 13.19.0.pre.alpha.PBNTR200addadvancedtablekitdarkmodestyles2346
4
+ version: 13.19.0.pre.alpha.PBNTR207tabledivsupport2245
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-03-12 00:00:00.000000000 Z
12
+ date: 2024-02-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2289,10 +2289,6 @@ files:
2289
2289
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
2290
2290
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
2291
2291
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
2292
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb
2293
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
2294
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
2295
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md
2296
2292
  - app/pb_kits/playbook/pb_table/docs/example.yml
2297
2293
  - app/pb_kits/playbook/pb_table/docs/index.js
2298
2294
  - app/pb_kits/playbook/pb_table/index.ts
@@ -2300,6 +2296,7 @@ files:
2300
2296
  - app/pb_kits/playbook/pb_table/styles/_all.scss
2301
2297
  - app/pb_kits/playbook/pb_table/styles/_content.scss
2302
2298
  - app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss
2299
+ - app/pb_kits/playbook/pb_table/styles/_div_support.scss
2303
2300
  - app/pb_kits/playbook/pb_table/styles/_headers.scss
2304
2301
  - app/pb_kits/playbook/pb_table/styles/_hover.scss
2305
2302
  - app/pb_kits/playbook/pb_table/styles/_mobile.scss
@@ -2319,12 +2316,6 @@ files:
2319
2316
  - app/pb_kits/playbook/pb_table/table.html.erb
2320
2317
  - app/pb_kits/playbook/pb_table/table.rb
2321
2318
  - app/pb_kits/playbook/pb_table/table.test.js
2322
- - app/pb_kits/playbook/pb_table/table_body.html.erb
2323
- - app/pb_kits/playbook/pb_table/table_body.rb
2324
- - app/pb_kits/playbook/pb_table/table_cell.html.erb
2325
- - app/pb_kits/playbook/pb_table/table_cell.rb
2326
- - app/pb_kits/playbook/pb_table/table_head.html.erb
2327
- - app/pb_kits/playbook/pb_table/table_head.rb
2328
2319
  - app/pb_kits/playbook/pb_table/table_header.html.erb
2329
2320
  - app/pb_kits/playbook/pb_table/table_header.rb
2330
2321
  - app/pb_kits/playbook/pb_table/table_row.html.erb
@@ -2653,7 +2644,6 @@ files:
2653
2644
  - app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
2654
2645
  - app/pb_kits/playbook/pb_user/docs/_user_default.jsx
2655
2646
  - app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md
2656
- - app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md
2657
2647
  - app/pb_kits/playbook/pb_user/docs/_user_props_table.md
2658
2648
  - app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
2659
2649
  - app/pb_kits/playbook/pb_user/docs/_user_size.jsx
@@ -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,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,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,17 +0,0 @@
1
- <% if object.tag == "table" %>
2
- <%= content_tag(:tbody,
3
- aria: object.aria,
4
- class: object.classname,
5
- data: object.data,
6
- id: object.id) do %>
7
- <%= content.presence %>
8
- <% end %>
9
- <% else %>
10
- <%= content_tag(:div,
11
- aria: object.aria,
12
- class: object.classname,
13
- data: object.data,
14
- id: object.id) do %>
15
- <%= content.presence %>
16
- <% end %>
17
- <% end %>
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbTable
5
- class TableBody < Playbook::KitBase
6
- prop :tag, type: Playbook::Props::Enum,
7
- values: %w[table div],
8
- default: "table"
9
-
10
- def classname
11
- generate_classname("pb_table_tbody")
12
- end
13
- end
14
- end
15
- end
@@ -1,17 +0,0 @@
1
- <% if object.tag == "table" %>
2
- <%= content_tag(:td,
3
- aria: object.aria,
4
- class: object.classname,
5
- data: object.data,
6
- id: object.id) do %>
7
- <%= content.presence || object.text %>
8
- <% end %>
9
- <% else %>
10
- <%= content_tag(:div,
11
- aria: object.aria,
12
- class: object.classname,
13
- data: object.data,
14
- id: object.id) do %>
15
- <%= content.presence || object.text %>
16
- <% end %>
17
- <% end %>
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbTable
5
- class TableCell < Playbook::KitBase
6
- prop :tag, type: Playbook::Props::Enum,
7
- values: %w[table div],
8
- default: "table"
9
- prop :text, type: Playbook::Props::String,
10
- default: ""
11
-
12
- def classname
13
- generate_classname("pb_table_td")
14
- end
15
- end
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- <% if object.tag == "table" %>
2
- <%= content_tag(:thead,
3
- aria: object.aria,
4
- class: object.classname,
5
- data: object.data,
6
- id: object.id) do %>
7
- <%= content.presence %>
8
- <% end %>
9
- <% else %>
10
- <%= content_tag(:div,
11
- aria: object.aria,
12
- class: object.classname,
13
- data: object.data,
14
- id: object.id) do %>
15
- <%= content.presence %>
16
- <% end %>
17
- <% end %>
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbTable
5
- class TableHead < Playbook::KitBase
6
- prop :tag, type: Playbook::Props::Enum,
7
- values: %w[table div],
8
- default: "table"
9
-
10
- def classname
11
- generate_classname("pb_table_thead")
12
- end
13
- end
14
- end
15
- end
@@ -1,30 +0,0 @@
1
- ![user-presence-indicator)](https://github.com/powerhome/playbook/assets/112719604/96ee8408-2e21-4aaf-ae65-9f023515cf8d)
2
-
3
- ```swift
4
- VStack(alignment: .leading, spacing: Spacing.small) {
5
- PBUser(
6
- name: name,
7
-
8
- image: img,
9
- size: .small,
10
- territory: "PHL",
11
- title: title,
12
- status: .online
13
- )
14
- PBUser(
15
- name: name,
16
- image: img,
17
- territory: "PHL",
18
- title: title,
19
- status: .away
20
- )
21
- PBUser(
22
- name: name,
23
- image: img,
24
- size: .large,
25
- territory: "PHL",
26
- title: title,
27
- status: .offline
28
- )
29
- }
30
- ```