playbook_ui_docs 14.17.0.pre.alpha.PLAY2040removeunnecessarystickytableclasses7300 → 14.17.0.pre.alpha.PLAY20267223

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -5
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  11. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  12. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -1
  14. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -2
  15. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  16. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
  17. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  18. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  19. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  20. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  21. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  22. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +1 -3
  23. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +1 -3
  24. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +1 -3
  25. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -3
  26. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  27. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  28. data/dist/playbook-doc.js +1 -1
  29. metadata +2 -22
  30. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
  31. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
  32. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
  33. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
  34. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
  35. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
  36. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  37. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  38. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +0 -54
  39. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +0 -3
  40. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  41. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  42. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  43. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  44. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  45. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  46. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  47. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  48. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  49. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95b1ffffd04d0f52985d2753d9782ede5d406f3d8c499ed87be1778f4dbec8ae
4
- data.tar.gz: 26533980f4d953a0a9b9fd1fa3ff6ab0e533abe8bc1bb714ce221a56f4929c17
3
+ metadata.gz: 64b4be8c2e4c9114486d9ff358008e3c106e7cc6003f1bd3fa28397467771dbc
4
+ data.tar.gz: 7f156246e737078a61e6a2da41cbede51efed88e9b5726e7b3772a078e6fd253
5
5
  SHA512:
6
- metadata.gz: ecdbb65ee9cc8ba3a9195bf93a43b7960eef0d0266a7c6636f68347c0871eb372435d84f884afea5aa4ef32a8e6521af107803dfd417a2eeb409e6ce0097875e
7
- data.tar.gz: 8ad1efd4bf01caf640dbc5ed45bacfe8a67165a51e98faa9758c272fb36ff425ced04a6df681b29d2e8a68839a8531db21076cb97a0228545eb2a2ed3e5ee8bf
6
+ metadata.gz: 3d62e9465b0bec13c52d3ae27bbb4e88512146b5857f839c07711b3b23b7d11b5239d48d3fb5af48937b08d249d1bd9bd2856f89c9a53017d54071df34fd0053
7
+ data.tar.gz: 4b64a03780c80f024867b7ef3be42ef1df32db0f7602c8ee94c44d9dc8356a9f85aa059f7ead6d27376c62ed579b5ba060f555fac1844f0a0c4643a8b06c7d38
@@ -47,7 +47,7 @@ const AdvancedTableStickyColumns = (props) => {
47
47
  <AdvancedTable
48
48
  columnDefinitions={columnDefinitions}
49
49
  responsive="none"
50
- stickyLeftColumn={["year"]}
50
+ stickyLeftColumn={["year", "newEnrollments"]}
51
51
  tableData={MOCK_DATA}
52
52
  {...props}
53
53
  />
@@ -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: { vertical_border: true, container: false }}) %>
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
- verticalBorder: true
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/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 `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/react).
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 the use of two table props, including how to render the vertical borders between columns.
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 the use of two table props, including how to render the vertical borders between columns.
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.
@@ -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
- **NOTE**: 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.
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.
@@ -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
- **NOTE**: 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.
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
- - advanced_table_sticky_header_rails: Sticky Header
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,8 @@ 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
- - advanced_table_sticky_header: Sticky Header
30
- - advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
31
28
  - advanced_table_sticky_columns: Sticky Columns
32
- - advanced_table_sticky_columns_and_header: Sticky Columns with Sticky Header
29
+ - advanced_table_table_props_sticky_header: Table Props Sticky Header
33
30
  - advanced_table_inline_row_loading: Inline Row Loading
34
31
  - advanced_table_responsive: Responsive Tables
35
32
  - advanced_table_custom_cell: Custom Components for Cells
@@ -23,6 +23,4 @@ export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_tabl
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
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'
26
+ export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
@@ -19,4 +19,3 @@ examples:
19
19
  - background_status_subtle: Status Subtle
20
20
  - background_category: Category
21
21
  - background_size: Size
22
- - background_overlay: Overlay
@@ -6,4 +6,3 @@ export { default as BackgroundStatus } from './_background_status.jsx'
6
6
  export { default as BackgroundStatusSubtle } from './_background_status_subtle.jsx'
7
7
  export { default as BackgroundCategory } from './_background_category.jsx'
8
8
  export { default as BackgroundSize } from './_background_size.jsx'
9
- export { default as BackgroundOverlay } from './_background_overlay.jsx'
@@ -6,4 +6,3 @@ examples:
6
6
  react:
7
7
  - copy_button_default: Default
8
8
  - copy_button_from: Copy From
9
- - copy_button_hook: Copy Hook
@@ -1,3 +1,2 @@
1
1
  export { default as CopyButtonDefault } from './_copy_button_default.jsx'
2
- export { default as CopyButtonFrom } from './_copy_button_from.jsx'
3
- export { default as CopyButtonHook } from './_copy_button_hook.jsx'
2
+ export { default as CopyButtonFrom } from './_copy_button_from.jsx'
@@ -1,4 +1,5 @@
1
- <%= pb_rails("flex", props: {orientation: "column", row_gap:"md"}) do %>
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
- <%= pb_rails("form_group") do %>
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>
@@ -4,7 +4,6 @@ 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
7
 
9
8
  const FormGroupSelect = (props) => {
10
9
  const options = [
@@ -26,10 +25,7 @@ const FormGroupSelect = (props) => {
26
25
  ]
27
26
 
28
27
  return (
29
- <Flex
30
- orientation="column"
31
- rowGap="md"
32
- >
28
+ <div>
33
29
  <FormGroup>
34
30
  <TextInput
35
31
  placeholder="Enter Artist Name"
@@ -41,29 +37,18 @@ const FormGroupSelect = (props) => {
41
37
  {...props}
42
38
  />
43
39
  </FormGroup>
40
+ <br />
41
+ <br />
44
42
  <FormGroup>
45
43
  <Select
46
44
  blankSelection="Phone"
47
45
  options={phoneOptions}
48
- {...props}
49
- />
46
+ />
50
47
  <PhoneNumberInput
51
48
  id='default'
52
- {...props}
53
49
  />
54
50
  </FormGroup>
55
- <FormGroup>
56
- <PhoneNumberInput
57
- id='default-2'
58
- {...props}
59
- />
60
- <Select
61
- blankSelection="Phone"
62
- options={phoneOptions}
63
- {...props}
64
- />
65
- </FormGroup>
66
- </Flex>
51
+ </div>
67
52
  )
68
53
  }
69
54