playbook_ui_docs 13.20.0.pre.alpha.play1247htmloptions2404 → 13.20.0

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.
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
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: playbook_ui
@@ -1490,13 +1490,6 @@ files:
1490
1490
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
1491
1491
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
1492
1492
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
1493
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
1494
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.md
1495
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
1496
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx
1497
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.md
1498
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.html.erb
1499
- - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_rails.md
1500
1493
  - app/pb_kits/playbook/pb_table/docs/example.yml
1501
1494
  - app/pb_kits/playbook/pb_table/docs/index.js
1502
1495
  - app/pb_kits/playbook/pb_text_input/docs/_description.md
@@ -1733,7 +1726,6 @@ files:
1733
1726
  - app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
1734
1727
  - app/pb_kits/playbook/pb_user/docs/_user_default.jsx
1735
1728
  - app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md
1736
- - app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md
1737
1729
  - app/pb_kits/playbook/pb_user/docs/_user_props_table.md
1738
1730
  - app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
1739
1731
  - app/pb_kits/playbook/pb_user/docs/_user_size.jsx
@@ -1786,7 +1778,7 @@ homepage: https://playbook.powerapp.cloud/
1786
1778
  licenses:
1787
1779
  - ISC
1788
1780
  metadata: {}
1789
- post_install_message:
1781
+ post_install_message:
1790
1782
  rdoc_options: []
1791
1783
  require_paths:
1792
1784
  - lib
@@ -1797,12 +1789,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1797
1789
  version: '0'
1798
1790
  required_rubygems_version: !ruby/object:Gem::Requirement
1799
1791
  requirements:
1800
- - - ">"
1792
+ - - ">="
1801
1793
  - !ruby/object:Gem::Version
1802
- version: 1.3.1
1794
+ version: '0'
1803
1795
  requirements: []
1804
1796
  rubygems_version: 3.3.7
1805
- signing_key:
1797
+ signing_key:
1806
1798
  specification_version: 4
1807
1799
  summary: Playbook Design System Docs
1808
1800
  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,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
- ```