playbook_ui_docs 14.17.0.pre.alpha.play2065passphrasewithselect7273 → 14.17.0.pre.alpha.playcdntest7233
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 +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +6 -39
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
- data/dist/playbook-doc.js +1 -1
- metadata +2 -16
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928d266a62ffa1fc328c1015aeebe1c4eac7f81e50b7ad6dcab8ff0036e42f2a
|
4
|
+
data.tar.gz: 7316c6e5e625708083da16241a65f95ac3e52f48d975fdf883e02d56dddfb325
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a4357a462767d5d382b097f358983f59b81f6068ddfb488dfbe3ba4605284f2b694226d042061697f8de24d1b8218ab939a9fe27fe0a209974ebfa5b8ddeba
|
7
|
+
data.tar.gz: fd21ce12213128f57c68c5eca0e28d4975a1e41889a67d4991ef405d01c9d837e5172e837f1c387033ed409bea9902e70934c617e913f961d303090533f2ddaf
|
@@ -30,4 +30,4 @@
|
|
30
30
|
}
|
31
31
|
] %>
|
32
32
|
|
33
|
-
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: {
|
33
|
+
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, responsive: "none", table_props: { container: false, sticky: true }}) %>
|
@@ -37,13 +37,14 @@ const AdvancedTableTableProps = (props) => {
|
|
37
37
|
|
38
38
|
const tableProps = {
|
39
39
|
container: false,
|
40
|
-
|
40
|
+
sticky: true
|
41
41
|
}
|
42
42
|
|
43
43
|
return (
|
44
44
|
<div>
|
45
45
|
<AdvancedTable
|
46
46
|
columnDefinitions={columnDefinitions}
|
47
|
+
responsive="none"
|
47
48
|
tableData={MOCK_DATA}
|
48
49
|
tableProps={tableProps}
|
49
50
|
{...props}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table
|
1
|
+
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `table_props` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table).
|
2
2
|
|
3
|
-
This doc example showcases
|
3
|
+
This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#table-props-sticky-header) doc example below.
|
@@ -1,3 +1,3 @@
|
|
1
1
|
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with its own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `tableProps` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table/react).
|
2
2
|
|
3
|
-
This doc example showcases
|
3
|
+
This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props-sticky-header) doc example below.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
|
1
|
+
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Expand the table above to see this in action.
|
6
|
-
|
7
|
-
A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#sticky-header) doc example above.
|
3
|
+
A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table#table-props) doc example above.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md
CHANGED
@@ -1,7 +1,3 @@
|
|
1
|
-
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
|
1
|
+
Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop. This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Expand the table above to see this in action.
|
6
|
-
|
7
|
-
A sticky header on a nonresponsive table is demonstrated in the ["Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header) doc example above.
|
3
|
+
A sticky header on a nonresponsive table is demonstrated in the ["Table Props"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props) doc example above.
|
@@ -5,8 +5,7 @@ examples:
|
|
5
5
|
- advanced_table_beta_subrow_headers: SubRow Headers
|
6
6
|
- advanced_table_collapsible_trail_rails: Collapsible Trail
|
7
7
|
- advanced_table_table_props: Table Props
|
8
|
-
-
|
9
|
-
- advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
|
8
|
+
- advanced_table_table_props_sticky_header: Table Props Sticky Header
|
10
9
|
- advanced_table_beta_sort: Enable Sorting
|
11
10
|
- advanced_table_responsive: Responsive Tables
|
12
11
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
@@ -26,10 +25,7 @@ examples:
|
|
26
25
|
- advanced_table_collapsible_trail: Collapsible Trail
|
27
26
|
- advanced_table_table_options: Table Options
|
28
27
|
- advanced_table_table_props: Table Props
|
29
|
-
-
|
30
|
-
- advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
|
31
|
-
- advanced_table_sticky_columns: Sticky Columns
|
32
|
-
- advanced_table_sticky_columns_and_header: Sticky Columns with Sticky Header
|
28
|
+
- advanced_table_table_props_sticky_header: Table Props Sticky Header
|
33
29
|
- advanced_table_inline_row_loading: Inline Row Loading
|
34
30
|
- advanced_table_responsive: Responsive Tables
|
35
31
|
- advanced_table_custom_cell: Custom Components for Cells
|
@@ -22,7 +22,4 @@ export { default as AdvancedTableSelectableRowsActions } from './_advanced_table
|
|
22
22
|
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
23
23
|
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
24
24
|
export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
|
25
|
-
export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
|
26
|
-
export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
|
27
|
-
export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
|
28
|
-
export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
|
25
|
+
export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen.jsx'
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
<div>
|
2
|
+
|
2
3
|
<%= pb_rails("form_group") do %>
|
3
4
|
<%= pb_rails("text_input", props: { placeholder: "Enter Artist Name" }) %>
|
4
5
|
<%= pb_rails("select", props: {
|
@@ -16,6 +17,8 @@
|
|
16
17
|
]
|
17
18
|
}) %>
|
18
19
|
<% end %>
|
20
|
+
<br>
|
21
|
+
<br>
|
19
22
|
<%= pb_rails("form_group") do %>
|
20
23
|
<%= pb_rails("select", props: {
|
21
24
|
blank_selection: "Phone",
|
@@ -29,17 +32,4 @@
|
|
29
32
|
id: "phone"
|
30
33
|
}) %>
|
31
34
|
<% end %>
|
32
|
-
|
33
|
-
<%= pb_rails("phone_number_input", props: {
|
34
|
-
id: "phone2"
|
35
|
-
}) %>
|
36
|
-
<%= pb_rails("select", props: {
|
37
|
-
blank_selection: "Phone",
|
38
|
-
options: [
|
39
|
-
{ value: "Cell" },
|
40
|
-
{ value: "Work" },
|
41
|
-
{ value: "Home" },
|
42
|
-
]
|
43
|
-
}) %>
|
44
|
-
<% end %>
|
45
|
-
<% end %>
|
35
|
+
</div>
|
@@ -1,16 +1,11 @@
|
|
1
|
-
import React
|
1
|
+
import React from 'react'
|
2
2
|
|
3
3
|
import FormGroup from '../_form_group'
|
4
4
|
import PhoneNumberInput from '../../pb_phone_number_input/_phone_number_input'
|
5
5
|
import Select from '../../pb_select/_select'
|
6
6
|
import TextInput from '../../pb_text_input/_text_input'
|
7
|
-
import Flex from '../../pb_flex/_flex'
|
8
|
-
import Passphrase from '../../pb_passphrase/_passphrase'
|
9
7
|
|
10
8
|
const FormGroupSelect = (props) => {
|
11
|
-
const [input, setInput] = useState("");
|
12
|
-
const handleChange = (e) => setInput(e.target.value);
|
13
|
-
|
14
9
|
const options = [
|
15
10
|
{ value: 'Country' },
|
16
11
|
{ value: 'Pop' },
|
@@ -30,10 +25,7 @@ const FormGroupSelect = (props) => {
|
|
30
25
|
]
|
31
26
|
|
32
27
|
return (
|
33
|
-
<
|
34
|
-
orientation="column"
|
35
|
-
rowGap="md"
|
36
|
-
>
|
28
|
+
<div>
|
37
29
|
<FormGroup>
|
38
30
|
<TextInput
|
39
31
|
placeholder="Enter Artist Name"
|
@@ -45,43 +37,18 @@ const FormGroupSelect = (props) => {
|
|
45
37
|
{...props}
|
46
38
|
/>
|
47
39
|
</FormGroup>
|
40
|
+
<br />
|
41
|
+
<br />
|
48
42
|
<FormGroup>
|
49
43
|
<Select
|
50
44
|
blankSelection="Phone"
|
51
45
|
options={phoneOptions}
|
52
|
-
|
53
|
-
/>
|
46
|
+
/>
|
54
47
|
<PhoneNumberInput
|
55
48
|
id='default'
|
56
|
-
{...props}
|
57
49
|
/>
|
58
50
|
</FormGroup>
|
59
|
-
|
60
|
-
<PhoneNumberInput
|
61
|
-
id='default-2'
|
62
|
-
{...props}
|
63
|
-
/>
|
64
|
-
<Select
|
65
|
-
blankSelection="Phone"
|
66
|
-
options={phoneOptions}
|
67
|
-
{...props}
|
68
|
-
/>
|
69
|
-
</FormGroup>
|
70
|
-
<FormGroup>
|
71
|
-
<Select
|
72
|
-
blankSelection="Phone"
|
73
|
-
options={phoneOptions}
|
74
|
-
{...props}
|
75
|
-
/>
|
76
|
-
<Passphrase
|
77
|
-
id="my-passphrase"
|
78
|
-
label=""
|
79
|
-
onChange={handleChange}
|
80
|
-
value={input}
|
81
|
-
{...props}
|
82
|
-
/>
|
83
|
-
</FormGroup>
|
84
|
-
</Flex>
|
51
|
+
</div>
|
85
52
|
)
|
86
53
|
}
|
87
54
|
|