playbook_ui_docs 14.16.0.pre.alpha.PLAY1929bracketlayout6957 → 14.16.0.pre.alpha.PLAY1938completetooltipfloatinguitransition6830

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 (24) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
  4. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +11 -0
  5. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +7 -0
  6. data/app/pb_kits/playbook/pb_layout/docs/example.yml +0 -1
  7. data/app/pb_kits/playbook/pb_layout/docs/index.js +0 -1
  8. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  10. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  11. data/dist/playbook-doc.js +1 -1
  12. metadata +4 -14
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.html.erb +0 -39
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.html.erb +0 -33
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md +0 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md +0 -6
  17. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +0 -190
  18. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +0 -5
  19. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx +0 -50
  20. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md +0 -1
  21. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx +0 -59
  22. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +0 -1
  23. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_react.md → _advanced_table_selectable_rows.md} +0 -0
  24. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows_react.md → _advanced_table_selectable_rows_no_subrows.md} +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.16.0.pre.alpha.PLAY1929bracketlayout6957
4
+ version: 14.16.0.pre.alpha.PLAY1938completetooltipfloatinguitransition6830
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-03-28 00:00:00.000000000 Z
12
+ date: 2025-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -75,18 +75,14 @@ files:
75
75
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
76
76
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
77
77
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
78
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.html.erb
79
78
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
79
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
80
80
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
81
81
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
82
82
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
83
83
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
84
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.html.erb
85
84
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx
86
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md
87
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_react.md
88
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md
89
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_react.md
85
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md
90
86
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
91
87
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
92
88
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
@@ -1147,8 +1143,6 @@ files:
1147
1143
  - app/pb_kits/playbook/pb_label_value/docs/example.yml
1148
1144
  - app/pb_kits/playbook/pb_label_value/docs/index.js
1149
1145
  - app/pb_kits/playbook/pb_layout/docs/_description.md
1150
- - app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx
1151
- - app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md
1152
1146
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.html.erb
1153
1147
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.jsx
1154
1148
  - app/pb_kits/playbook/pb_layout/docs/_layout_collection.md
@@ -1945,10 +1939,6 @@ files:
1945
1939
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
1946
1940
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
1947
1941
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
1948
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
1949
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
1950
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
1951
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
1952
1942
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
1953
1943
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
1954
1944
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md
@@ -1,39 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- },
11
- {
12
- accessor: "scheduledMeetings",
13
- label: "Scheduled Meetings",
14
- },
15
- {
16
- accessor: "attendanceRate",
17
- label: "Attendance Rate",
18
- },
19
- {
20
- accessor: "completedClasses",
21
- label: "Completed Classes",
22
- },
23
- {
24
- accessor: "classCompletionRate",
25
- label: "Class Completion Rate",
26
- },
27
- {
28
- accessor: "graduatedStudents",
29
- label: "Graduated Students",
30
- }
31
- ]
32
-
33
- subrow_headers = ["Quarter", "Month", "Day"]
34
- %>
35
-
36
- <%= pb_rails("advanced_table", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, selectable_rows: true }) do %>
37
- <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions, selectable_rows: true }) %>
38
- <%= pb_rails("advanced_table/table_body", props: { id: "selectable_rows", table_data: @table_data_with_id, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all", selectable_rows: true }) %>
39
- <% end %>
@@ -1,33 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- },
11
- {
12
- accessor: "scheduledMeetings",
13
- label: "Scheduled Meetings",
14
- },
15
- {
16
- accessor: "attendanceRate",
17
- label: "Attendance Rate",
18
- },
19
- {
20
- accessor: "completedClasses",
21
- label: "Completed Classes",
22
- },
23
- {
24
- accessor: "classCompletionRate",
25
- label: "Class Completion Rate",
26
- },
27
- {
28
- accessor: "graduatedStudents",
29
- label: "Graduated Students",
30
- }
31
- ] %>
32
-
33
- <%= pb_rails("advanced_table", props: { id: "selectable_rows_no_subrows", table_data: @table_data_no_subrows, column_definitions: column_definitions, selectable_rows: true, enable_toggle_expansion: "none", }) %>
@@ -1 +0,0 @@
1
- `selectable_rows` can also be used with tables without nested row data. Set `enable_toggle_expansion: none` to adjust the Advanced Table styling to fit a table without subrows.
@@ -1,6 +0,0 @@
1
- `selectable_rows` is a boolean prop that if present will add checkboxes to all rows that will allow for selecting rows.
2
-
3
- When a parent row is clicked, it will check all nested children rows, Children rows can be manually checked or unchecked as well.
4
-
5
- __ALERT TO DEVS__: UPDATE THIS PARAGRAPH IN THE FOLLOW UP STORY WHEN CHECKBOX FUNCTIONALITY IS SET PLEASE
6
- The `onRowSelectionChange` prop returns an array of ids of all Rows that have been selected. Open the console on this example and check and uncheck checkboxes to see this is action! __NOTE__: Each object within the `tableData`Array must contain a unique id in order to attach an id to all Rows for this to function.
@@ -1,190 +0,0 @@
1
- import React from 'react'
2
-
3
- import Layout from '../../pb_layout/_layout'
4
- import Flex from '../../pb_flex/_flex'
5
- import Body from '../../pb_body/_body'
6
- import Caption from '../../pb_caption/_caption'
7
- import SectionSeparator from '../../pb_section_separator/_section_separator'
8
-
9
- const LayoutBracket = () => {
10
- return (
11
- <div>
12
- <Layout
13
- layout="bracket"
14
- >
15
- <Layout.RoundLabel>
16
- <Caption>Wild Card</Caption>
17
- <SectionSeparator marginY="sm"/>
18
- </Layout.RoundLabel>
19
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
20
- <Layout.Game>
21
- <Flex justify="between">
22
- <Body>Packers</Body>
23
- <Body>10</Body>
24
- </Flex>
25
- <Flex justify="between">
26
- <Body><strong>Eagles</strong></Body>
27
- <Body>22</Body>
28
- </Flex>
29
- </Layout.Game>
30
- <Layout.Game>
31
- <Flex justify="between">
32
- <Body>Vikings</Body>
33
- <Body>9</Body>
34
- </Flex>
35
- <Flex justify="between">
36
- <Body><strong>Rams</strong></Body>
37
- <Body>27</Body>
38
- </Flex>
39
- </Layout.Game>
40
- <Layout.Game>
41
- <Flex justify="between">
42
- <Body><strong>Lions</strong></Body>
43
- </Flex>
44
- <Flex justify="between">
45
- <Body>BYE</Body>
46
- </Flex>
47
- </Layout.Game>
48
- <Layout.Game>
49
- <Flex justify="between">
50
- <Body><strong>Commanders</strong></Body>
51
- <Body>23</Body>
52
- </Flex>
53
- <Flex justify="between">
54
- <Body>Buccaneers</Body>
55
- <Body>20</Body>
56
- </Flex>
57
- </Layout.Game>
58
- <Layout.Game>
59
- <Flex justify="between">
60
- <Body><strong>Chiefs</strong></Body>
61
- </Flex>
62
- <Flex justify="between">
63
- <Body>BYE</Body>
64
- </Flex>
65
- </Layout.Game>
66
- <Layout.Game>
67
- <Flex justify="between">
68
- <Body>Chargers</Body>
69
- <Body>12</Body>
70
- </Flex>
71
- <Flex justify="between">
72
- <Body><strong>Texans</strong></Body>
73
- <Body>32</Body>
74
- </Flex>
75
- </Layout.Game>
76
- <Layout.Game>
77
- <Flex justify="between">
78
- <Body>Broncos</Body>
79
- <Body>7</Body>
80
- </Flex>
81
- <Flex justify="between">
82
- <Body><strong>Bills</strong></Body>
83
- <Body>31</Body>
84
- </Flex>
85
- </Layout.Game>
86
- <Layout.Game>
87
- <Flex justify="between">
88
- <Body>Steelers</Body>
89
- <Body>14</Body>
90
- </Flex>
91
- <Flex justify="between">
92
- <Body><strong>Ravens</strong></Body>
93
- <Body>28</Body>
94
- </Flex>
95
- </Layout.Game>
96
- </Layout.Round>
97
- <Layout.RoundLabel>
98
- <Caption>Divisional</Caption>
99
- <SectionSeparator marginY="sm"/>
100
- </Layout.RoundLabel>
101
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
102
- <Layout.Game>
103
- <Flex justify="between">
104
- <Body>Rams</Body>
105
- <Body>22</Body>
106
- </Flex>
107
- <Flex justify="between">
108
- <Body><strong>Eagles</strong></Body>
109
- <Body>28</Body>
110
- </Flex>
111
- </Layout.Game>
112
- <Layout.Game>
113
- <Flex justify="between">
114
- <Body><strong>Commanders</strong></Body>
115
- <Body>45</Body>
116
- </Flex>
117
- <Flex justify="between">
118
- <Body>Lions</Body>
119
- <Body>31</Body>
120
- </Flex>
121
- </Layout.Game>
122
- <Layout.Game>
123
- <Flex justify="between">
124
- <Body>Texans</Body>
125
- <Body>14</Body>
126
- </Flex>
127
- <Flex justify="between">
128
- <Body><strong>Chiefs</strong></Body>
129
- <Body>23</Body>
130
- </Flex>
131
- </Layout.Game>
132
- <Layout.Game>
133
- <Flex justify="between">
134
- <Body>Ravens</Body>
135
- <Body>25</Body>
136
- </Flex>
137
- <Flex justify="between">
138
- <Body><strong>Bills</strong></Body>
139
- <Body>27</Body>
140
- </Flex>
141
- </Layout.Game>
142
- </Layout.Round>
143
- <Layout.RoundLabel>
144
- <Caption>Conference</Caption>
145
- <SectionSeparator marginY="sm"/>
146
- </Layout.RoundLabel>
147
- <Layout.Round marginBottom={{ xs: "md", sm: "md" }}>
148
- <Layout.Game>
149
- <Flex justify="between">
150
- <Body>Commanders</Body>
151
- <Body>23</Body>
152
- </Flex>
153
- <Flex justify="between">
154
- <Body><strong>Eagles</strong></Body>
155
- <Body>55</Body>
156
- </Flex>
157
- </Layout.Game>
158
- <Layout.Game>
159
- <Flex justify="between">
160
- <Body>Bills</Body>
161
- <Body>29</Body>
162
- </Flex>
163
- <Flex justify="between">
164
- <Body><strong>Chiefs</strong></Body>
165
- <Body>32</Body>
166
- </Flex>
167
- </Layout.Game>
168
- </Layout.Round>
169
- <Layout.RoundLabel>
170
- <Caption>Super Bowl</Caption>
171
- <SectionSeparator marginY="sm"/>
172
- </Layout.RoundLabel>
173
- <Layout.Round>
174
- <Layout.Game>
175
- <Flex justify="between">
176
- <Body>Chiefs</Body>
177
- <Body>22</Body>
178
- </Flex>
179
- <Flex justify="between">
180
- <Body><strong>Eagles</strong></Body>
181
- <Body>40</Body>
182
- </Flex>
183
- </Layout.Game>
184
- </Layout.Round>
185
- </Layout>
186
- </div>
187
- )
188
- }
189
-
190
- export default LayoutBracket
@@ -1,5 +0,0 @@
1
- Use `<Layout.RoundLabel>`, `<Layout.Round>`, and `<Layout.Game>` to make a bracket layout.
2
-
3
- On mobile devices, `<Layout.RoundLabel>` will display (on desktop these components are hidden) and the bracket will be in one column.
4
-
5
- Ensure that each `<Layout.Game>` maintains a consistent height for the bracket lines to lay out properly.
@@ -1,50 +0,0 @@
1
- import React from 'react'
2
-
3
- import Table from '../../pb_table/_table'
4
-
5
- const TableWithHeaderStyleBorderless = (props) => {
6
- return (
7
- <>
8
- <Table
9
- headerStyle="borderless"
10
- size="sm"
11
- {...props}
12
- >
13
- <thead>
14
- <tr>
15
- <th>{'Column 1'}</th>
16
- <th>{'Column 2'}</th>
17
- <th>{'Column 3'}</th>
18
- <th>{'Column 4'}</th>
19
- <th>{'Column 5'}</th>
20
- </tr>
21
- </thead>
22
- <tbody>
23
- <tr>
24
- <td>{'Value 1'}</td>
25
- <td>{'Value 2'}</td>
26
- <td>{'Value 3'}</td>
27
- <td>{'Value 4'}</td>
28
- <td>{'Value 5'}</td>
29
- </tr>
30
- <tr>
31
- <td>{'Value 1'}</td>
32
- <td>{'Value 2'}</td>
33
- <td>{'Value 3'}</td>
34
- <td>{'Value 4'}</td>
35
- <td>{'Value 5'}</td>
36
- </tr>
37
- <tr>
38
- <td>{'Value 1'}</td>
39
- <td>{'Value 2'}</td>
40
- <td>{'Value 3'}</td>
41
- <td>{'Value 4'}</td>
42
- <td>{'Value 5'}</td>
43
- </tr>
44
- </tbody>
45
- </Table>
46
- </>
47
- )
48
- }
49
-
50
- export default TableWithHeaderStyleBorderless
@@ -1 +0,0 @@
1
- Customize your header by removing the header borders with the `headerStyle="borderless"` prop.
@@ -1,59 +0,0 @@
1
- import React from 'react'
2
-
3
- import Background from '../../pb_background/_background'
4
- import Card from '../../pb_card/_card'
5
- import Table from '../../pb_table/_table'
6
-
7
- const TableWithHeaderStyleFloating = (props) => {
8
- return (
9
- <>
10
- <Card background="light"
11
- {...props}
12
- >
13
- <Table
14
- headerStyle="floating"
15
- size="sm"
16
- {...props}
17
- >
18
- <Table.Head>
19
- <Background backgroundColor="light"
20
- tag="tr"
21
- {...props}
22
- >
23
- <Table.Header>{'Column 1'}</Table.Header>
24
- <Table.Header>{'Column 2'}</Table.Header>
25
- <Table.Header>{'Column 3'}</Table.Header>
26
- <Table.Header>{'Column 4'}</Table.Header>
27
- <Table.Header>{'Column 5'}</Table.Header>
28
- </Background>
29
- </Table.Head>
30
- <Table.Body>
31
- <Table.Row>
32
- <Table.Cell>{'Value 1'}</Table.Cell>
33
- <Table.Cell>{'Value 2'}</Table.Cell>
34
- <Table.Cell>{'Value 3'}</Table.Cell>
35
- <Table.Cell>{'Value 4'}</Table.Cell>
36
- <Table.Cell>{'Value 5'}</Table.Cell>
37
- </Table.Row>
38
- <Table.Row>
39
- <Table.Cell>{'Value 1'}</Table.Cell>
40
- <Table.Cell>{'Value 2'}</Table.Cell>
41
- <Table.Cell>{'Value 3'}</Table.Cell>
42
- <Table.Cell>{'Value 4'}</Table.Cell>
43
- <Table.Cell>{'Value 5'}</Table.Cell>
44
- </Table.Row>
45
- <Table.Row>
46
- <Table.Cell>{'Value 1'}</Table.Cell>
47
- <Table.Cell>{'Value 2'}</Table.Cell>
48
- <Table.Cell>{'Value 3'}</Table.Cell>
49
- <Table.Cell>{'Value 4'}</Table.Cell>
50
- <Table.Cell>{'Value 5'}</Table.Cell>
51
- </Table.Row>
52
- </Table.Body>
53
- </Table>
54
- </Card>
55
- </>
56
- )
57
- }
58
-
59
- export default TableWithHeaderStyleFloating
@@ -1 +0,0 @@
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).