playbook_ui_docs 14.10.0.pre.alpha.play1465attempt25272 → 14.10.0.pre.alpha.play1662cssbargraph5193
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +0 -18
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +0 -40
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +2 -10
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +2 -6
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +3 -11
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +2 -7
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +1 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
- data/dist/playbook-doc.js +1 -1
- metadata +4 -22
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb +0 -43
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb +0 -58
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.html.erb +0 -10
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +0 -42
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_description.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.html.erb +0 -9
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.html.erb +0 -7
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.html.erb +0 -119
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.html.erb +0 -15
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width_rails.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.html.erb +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.html.erb +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +0 -88
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +0 -87
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +0 -5
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_border_radius_react.md → _skeleton_loading_border_radius.md} +0 -0
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_height_width_react.md → _skeleton_loading_height_width.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7119ca26238f90df496bdd0b13e7972f8016e20d13d9610cdda2ef0cdb153c06
|
4
|
+
data.tar.gz: f01616ecd7feabf0c5a276a487345dd5acfe9c06ff8ddb9698c793f2b402d8b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f899c83ccbeb19d33df131f4e5d73d1bc94755dc92d1507fbf71018d11f87bbd7dc408d716e2f482097e7e21169275f73bf17533f236027281c79388cb13ed
|
7
|
+
data.tar.gz: b3d038942441794b803e8bf71044bf17bec6d1159da4b0c59dcde455868f817ff247fe9810d6c468d5d0173463d953de7a0c1163488a5f25e4d787fd40b3b956
|
@@ -49,9 +49,11 @@
|
|
49
49
|
label: "Graduated Students",
|
50
50
|
}
|
51
51
|
]
|
52
|
+
|
53
|
+
subrow_headers = ["Quarter", "Month", "Day"]
|
52
54
|
%>
|
53
55
|
|
54
56
|
<%= pb_rails("advanced_table", props: { table_data: @table_data, column_definitions: column_definitions }) do %>
|
55
57
|
<%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
|
56
|
-
<%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, enable_toggle_expansion: "all" }) %>
|
58
|
+
<%= pb_rails("advanced_table/table_body", props: { id: "beta_sort", table_data: @table_data, column_definitions: column_definitions, subrow_headers: subrow_headers, enable_toggle_expansion: "all" }) %>
|
57
59
|
<% end %>
|
@@ -1,13 +1,10 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
3
|
- advanced_table_beta: Default (Required Props)
|
4
|
-
|
4
|
+
- advanced_table_beta_subrow_headers: SubRow Headers
|
5
5
|
- advanced_table_collapsible_trail_rails: Collapsible Trail
|
6
6
|
- advanced_table_beta_sort: Enable Sorting
|
7
7
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
8
|
-
- advanced_table_column_headers: Multi-Header Columns
|
9
|
-
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
10
|
-
|
11
8
|
|
12
9
|
react:
|
13
10
|
- advanced_table_default: Default (Required Props)
|
@@ -88,21 +88,3 @@
|
|
88
88
|
Body
|
89
89
|
<% end %>
|
90
90
|
<% end %>
|
91
|
-
|
92
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
93
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "success_subtle" }) do %>
|
94
|
-
<%= pb_rails("body", props: { text: "Success Subtle" }) %>
|
95
|
-
<% end %>
|
96
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
97
|
-
Body
|
98
|
-
<% end %>
|
99
|
-
<% end %>
|
100
|
-
|
101
|
-
<%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
|
102
|
-
<%= pb_rails("card/card_header", props: { padding: "sm", header_color: "error_subtle" }) do %>
|
103
|
-
<%= pb_rails("body", props: { text: "Error Subtle"}) %>
|
104
|
-
<% end %>
|
105
|
-
<%= pb_rails("card/card_body", props: { padding: "md" }) do %>
|
106
|
-
Body
|
107
|
-
<% end %>
|
108
|
-
<% end %>
|
@@ -231,46 +231,6 @@ const CardHeader = (props) => {
|
|
231
231
|
/>
|
232
232
|
</Card.Body>
|
233
233
|
</Card>
|
234
|
-
|
235
|
-
<Card
|
236
|
-
{...props}
|
237
|
-
marginBottom='sm'
|
238
|
-
padding="none"
|
239
|
-
>
|
240
|
-
<Card.Header
|
241
|
-
headerColor="success_subtle"
|
242
|
-
>
|
243
|
-
<Body
|
244
|
-
text="Success Subtle"
|
245
|
-
/>
|
246
|
-
</Card.Header>
|
247
|
-
<Card.Body>
|
248
|
-
<Body
|
249
|
-
{...props}
|
250
|
-
text="Body"
|
251
|
-
/>
|
252
|
-
</Card.Body>
|
253
|
-
</Card>
|
254
|
-
|
255
|
-
<Card
|
256
|
-
{...props}
|
257
|
-
marginBottom='sm'
|
258
|
-
padding="none"
|
259
|
-
>
|
260
|
-
<Card.Header
|
261
|
-
headerColor="error_subtle"
|
262
|
-
>
|
263
|
-
<Body
|
264
|
-
text="Error Subtle"
|
265
|
-
/>
|
266
|
-
</Card.Header>
|
267
|
-
<Card.Body>
|
268
|
-
<Body
|
269
|
-
{...props}
|
270
|
-
text="Body"
|
271
|
-
/>
|
272
|
-
</Card.Body>
|
273
|
-
</Card>
|
274
234
|
</>
|
275
235
|
)
|
276
236
|
}
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- section_separator_text: Text Separator
|
7
7
|
- section_separator_vertical: Vertical
|
8
8
|
- section_separator_children: Children
|
9
|
-
- section_separator_color: Color
|
10
9
|
|
11
10
|
react:
|
12
11
|
- section_separator_line: Line Separator
|
@@ -14,7 +13,6 @@ examples:
|
|
14
13
|
- section_separator_text: Text Separator
|
15
14
|
- section_separator_vertical: Vertical
|
16
15
|
- section_separator_children: Children
|
17
|
-
- section_separator_color: Color
|
18
16
|
|
19
17
|
swift:
|
20
18
|
- section_separator_line_swift: Line Separator
|
@@ -3,4 +3,3 @@ export { default as SectionSeparatorText } from './_section_separator_text.jsx'
|
|
3
3
|
export { default as SectionSeparatorVertical } from './_section_separator_vertical.jsx'
|
4
4
|
export { default as SectionSeparatorDashed } from './_section_separator_dashed.jsx'
|
5
5
|
export { default as SectionSeparatorChildren } from './_section_separator_children.jsx'
|
6
|
-
export { default as SectionSeparatorColor } from './_section_separator_color.jsx'
|
@@ -1 +1 @@
|
|
1
|
-
<%= pb_rails("skeleton_loading") %>
|
1
|
+
<%= pb_rails("skeleton_loading") %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react';
|
2
2
|
import { Button, Card, Filter, Flex, Select, SkeletonLoading, TextInput } from "playbook-ui";
|
3
3
|
|
4
4
|
const SortingChangeCallback = (sortOptions) => {
|
@@ -6,8 +6,7 @@ const SortingChangeCallback = (sortOptions) => {
|
|
6
6
|
}
|
7
7
|
|
8
8
|
const SkeletonLoadingFilter = (props) => {
|
9
|
-
const
|
10
|
-
const toggleLoading = () => setIsLoading((prev) => !prev)
|
9
|
+
const isLoading = true
|
11
10
|
|
12
11
|
const options = [
|
13
12
|
{ value: 'USA' },
|
@@ -19,13 +18,6 @@ const SkeletonLoadingFilter = (props) => {
|
|
19
18
|
|
20
19
|
return (
|
21
20
|
<div>
|
22
|
-
<Button
|
23
|
-
marginBottom="md"
|
24
|
-
onClick={toggleLoading}
|
25
|
-
variant="secondary"
|
26
|
-
>
|
27
|
-
{isLoading ? "Show Filter" : "Show Skeleton Loading"}
|
28
|
-
</Button>
|
29
21
|
<div>
|
30
22
|
{isLoading ? (
|
31
23
|
<Card
|
@@ -17,11 +17,9 @@ const SkeletonLoadingHeightWidth = (props) => (
|
|
17
17
|
width="50px"
|
18
18
|
{...props}
|
19
19
|
/>
|
20
|
-
<Card
|
21
|
-
height='200px'
|
20
|
+
<Card htmlOptions={{ style: { height: '200px', width: '100%' }}}
|
22
21
|
marginBottom="md"
|
23
22
|
padding="none"
|
24
|
-
width='100%'
|
25
23
|
{...props}
|
26
24
|
>
|
27
25
|
<SkeletonLoading
|
@@ -32,10 +30,8 @@ const SkeletonLoadingHeightWidth = (props) => (
|
|
32
30
|
{...props}
|
33
31
|
/>
|
34
32
|
</Card>
|
35
|
-
<Card
|
36
|
-
height='200px'
|
33
|
+
<Card htmlOptions={{ style: { height: '200px', width: '100%' }}}
|
37
34
|
padding="none"
|
38
|
-
width='100%'
|
39
35
|
{...props}
|
40
36
|
>
|
41
37
|
<SkeletonLoading
|
@@ -1,19 +1,11 @@
|
|
1
|
-
import React
|
2
|
-
import {
|
1
|
+
import React from 'react';
|
2
|
+
import { Flex, SkeletonLoading, User } from "playbook-ui";
|
3
3
|
|
4
4
|
const SkeletonLoadingUser = (props) => {
|
5
|
-
const
|
6
|
-
const toggleLoading = () => setIsLoading((prev) => !prev)
|
5
|
+
const isLoading = true
|
7
6
|
|
8
7
|
return (
|
9
8
|
<div>
|
10
|
-
<Button
|
11
|
-
marginBottom="md"
|
12
|
-
onClick={toggleLoading}
|
13
|
-
variant="secondary"
|
14
|
-
>
|
15
|
-
{isLoading ? "Show User" : "Show Skeleton Loading"}
|
16
|
-
</Button>
|
17
9
|
<div>
|
18
10
|
{isLoading ? (
|
19
11
|
<Flex alignItems="center">
|
@@ -1,13 +1,8 @@
|
|
1
1
|
examples:
|
2
2
|
|
3
3
|
rails:
|
4
|
-
- skeleton_loading_default: Default
|
5
|
-
|
6
|
-
- skeleton_loading_layout: Layout
|
7
|
-
- skeleton_loading_border_radius: Border Radius
|
8
|
-
- skeleton_loading_height_width: Height & Width
|
9
|
-
- skeleton_loading_user: User Component Example
|
10
|
-
- skeleton_loading_filter: Filter Component Example
|
4
|
+
# - skeleton_loading_default: Default
|
5
|
+
|
11
6
|
|
12
7
|
react:
|
13
8
|
- skeleton_loading_default: Default
|
@@ -1,3 +1 @@
|
|
1
1
|
The `stickyLeftColumn` prop expects an array of the column ids you want to be sticky. Make sure to add the corresponding id to the `<th>` and `<td>`.
|
2
|
-
|
3
|
-
Please ensure that unique ids are used for all columns across multiple tables. Using the same columns ids on multiple tables can lead to issues when using the `stickyLeftColumn`.
|
@@ -1,5 +1,2 @@
|
|
1
1
|
The `stickyLeftColumn` prop expects an array of the column ids you want to be sticky. Make sure to add the corresponding id to the `<th>` and `<td>`.
|
2
|
-
|
3
|
-
If you are using the sub-component variant, then you will pass the id to `<Table.Header>` and `<Table.Cell>`
|
4
|
-
|
5
|
-
Please ensure that unique ids are used for all columns across multiple tables. Using the same columns ids on multiple tables can lead to issues when using `stickyLeftColumn` prop.
|
2
|
+
If you are using the sub-component variant, then you will pass the id to `<Table.Header>` and `<Table.Cell>`
|
@@ -45,7 +45,8 @@ const promiseOptions = (inputValue) =>
|
|
45
45
|
|
46
46
|
const TypeaheadWithPillsAsync = (props) => {
|
47
47
|
const [users, setUsers] = useState([])
|
48
|
-
|
48
|
+
const handleOnChange = (value) => setUsers(formatUsers(value))
|
49
|
+
const formatValue = (users) => formatUsers(users)
|
49
50
|
const formatUsers = (users) => {
|
50
51
|
const results = () => (users.map((user) => {
|
51
52
|
if (Object.keys(user)[0] === 'name' || Object.keys(user)[1] === 'id'){
|
@@ -57,9 +58,6 @@ const TypeaheadWithPillsAsync = (props) => {
|
|
57
58
|
return results()
|
58
59
|
}
|
59
60
|
|
60
|
-
const handleOnChange = (value) => setUsers(formatUsers(value))
|
61
|
-
const formatValue = (users) => formatUsers(users)
|
62
|
-
|
63
61
|
return (
|
64
62
|
<>
|
65
63
|
{users && users.length > 0 && (
|
@@ -83,13 +83,13 @@ const TypeaheadWithPillsAsyncCustomOptions = (props) => {
|
|
83
83
|
onChange={handleOnChange}
|
84
84
|
onMultiValueClick={handleOnMultiValueClick}
|
85
85
|
placeholder="type the name of a Github user"
|
86
|
-
valueComponent={(
|
86
|
+
valueComponent={(props) => (
|
87
87
|
<User
|
88
88
|
avatar
|
89
|
-
avatarUrl={imageUrl}
|
90
|
-
name={label}
|
91
|
-
territory={territory}
|
92
|
-
title={type}
|
89
|
+
avatarUrl={props.imageUrl}
|
90
|
+
name={props.label}
|
91
|
+
territory={props.territory}
|
92
|
+
title={props.type}
|
93
93
|
/>
|
94
94
|
)}
|
95
95
|
{...props}
|