playbook_ui_docs 14.17.0.pre.rc.1 → 14.18.0.pre.rc.1

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +90 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +3 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +58 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +6 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +64 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +8 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +55 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +3 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +33 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +3 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -2
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +6 -2
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +6 -2
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +8 -3
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +5 -1
  20. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +35 -0
  21. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +1 -0
  22. data/app/pb_kits/playbook/pb_background/docs/example.yml +1 -0
  23. data/app/pb_kits/playbook/pb_background/docs/index.js +1 -0
  24. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +102 -105
  25. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  26. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +50 -48
  27. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  28. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +110 -0
  29. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +5 -0
  30. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_react.jsx → _draggable_with_table.jsx} +1 -1
  31. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +3 -1
  32. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +9 -6
  33. data/app/pb_kits/playbook/pb_draggable/docs/index.js +4 -1
  34. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +6 -6
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx +6 -6
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +6 -6
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +8 -8
  38. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +15 -5
  39. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +20 -5
  40. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +394 -0
  41. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +5 -0
  42. data/app/pb_kits/playbook/pb_layout/docs/example.yml +1 -0
  43. data/app/pb_kits/playbook/pb_layout/docs/index.js +1 -0
  44. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +63 -0
  45. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +3 -0
  46. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +1 -7
  47. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +39 -0
  48. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +1 -0
  49. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +40 -0
  50. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +5 -0
  51. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +3 -0
  52. data/app/pb_kits/playbook/pb_overlay/docs/index.js +3 -0
  53. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.md +1 -0
  54. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +34 -0
  55. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +1 -0
  56. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +36 -0
  57. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +1 -0
  58. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  59. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  60. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +4 -4
  61. data/dist/playbook-doc.js +1 -1
  62. metadata +41 -14
  63. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_rails.html.erb → _draggable_default.html.erb} +0 -0
  64. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.md → _draggable_default_react.md} +0 -0
  65. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_rails.html.erb → _draggable_multiple_containers.html.erb} +0 -0
  66. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.md → _draggable_multiple_containers_react.md} +0 -0
  67. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_rails.html.erb → _draggable_with_cards.html.erb} +0 -0
  68. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.md → _draggable_with_cards_react.md} +0 -0
  69. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_rails.html.erb → _draggable_with_list.html.erb} +0 -0
  70. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.md → _draggable_with_list_react.md} +0 -0
  71. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_rails.html.erb → _draggable_with_selectable_list.html.erb} +0 -0
  72. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.md → _draggable_with_selectable_list_react.md} +0 -0
  73. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.md → _draggable_with_table_rails.md} +0 -0
@@ -0,0 +1,40 @@
1
+ import React from 'react'
2
+
3
+ import Overlay from '../../pb_overlay/_overlay'
4
+ import Table from '../../pb_table/_table'
5
+
6
+
7
+ const TableExample = () => {
8
+ return (
9
+ <Table size="sm">
10
+ <thead>
11
+ <tr>
12
+ <th>{'Column 1'}</th>
13
+ <th>{'Column 2'}</th>
14
+ <th>{'Column 3'}</th>
15
+ <th>{'Column 4'}</th>
16
+ <th>{'Column 5'}</th>
17
+ </tr>
18
+ </thead>
19
+ <tbody>
20
+ {Array.from({ length: 7 }, (_, index) => (
21
+ <tr key={index}>
22
+ {Array.from({ length: 5 }, (_, columnIndex) => (
23
+ <td key={columnIndex}>{`Value ${columnIndex + 1}`}</td>
24
+ ))}
25
+ </tr>
26
+ ))}
27
+ </tbody>
28
+ </Table>
29
+ )
30
+ }
31
+
32
+ const OverlayLayout = () => (
33
+ <>
34
+ <Overlay layout={{ y: "xl" }}>
35
+ <TableExample />
36
+ </Overlay>
37
+ </>
38
+ )
39
+
40
+ export default OverlayLayout
@@ -0,0 +1,5 @@
1
+ The optional `layout` prop accepts the `position` and `size` of the overlay as a key:value pair.
2
+
3
+ The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
4
+
5
+ The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
@@ -1,6 +1,9 @@
1
1
  examples:
2
2
  react:
3
3
  - overlay_default: Default
4
+ - overlay_gradient_opacity: Gradient & Opacity
5
+ - overlay_color: Color
6
+ - overlay_layout: Layout
4
7
  - overlay_multi_directional: Multi-directional
5
8
  - overlay_vertical_dynamic_multi_directional: Vertical Dynamic Multi-directional
6
9
  - overlay_toggle: Toggle
@@ -1,4 +1,7 @@
1
1
  export { default as OverlayDefault } from './_overlay_default.jsx'
2
+ export { default as OverlayGradientOpacity } from './_overlay_gradient_opacity.jsx'
3
+ export { default as OverlayColor } from './_overlay_color.jsx'
4
+ export { default as OverlayLayout } from './_overlay_layout.jsx'
2
5
  export { default as OverlayMultiDirectional } from './_overlay_multi_directional.jsx'
3
6
  export { default as OverlayToggle } from './_overlay_toggle.jsx'
4
7
  export { default as OverlayVerticalDynamicMultiDirectional } from './_overlay_vertical_dynamic_multi_directional.jsx'
@@ -0,0 +1 @@
1
+ To guarantee the vertical section separator displays properly, please add the `vertical: "stretch"`/`vertical="stretch"` property to the parent container (which is commonly a Flex container). This will stretch the container’s child elements vertically and ensure the section separator appears as expected.
@@ -0,0 +1,34 @@
1
+ <%= pb_rails("table", props: { size: "sm", header_style: "borderless" }) do %>
2
+ <thead>
3
+ <tr>
4
+ <th>Column 1</th>
5
+ <th>Column 2</th>
6
+ <th>Column 3</th>
7
+ <th>Column 4</th>
8
+ <th>Column 5</th>
9
+ </tr>
10
+ </thead>
11
+ <tbody>
12
+ <tr>
13
+ <td>Value 1</td>
14
+ <td>Value 2</td>
15
+ <td>Value 3</td>
16
+ <td>Value 4</td>
17
+ <td>Value 5</td>
18
+ </tr>
19
+ <tr>
20
+ <td>Value 1</td>
21
+ <td>Value 2</td>
22
+ <td>Value 3</td>
23
+ <td>Value 4</td>
24
+ <td>Value 5</td>
25
+ </tr>
26
+ <tr>
27
+ <td>Value 1</td>
28
+ <td>Value 2</td>
29
+ <td>Value 3</td>
30
+ <td>Value 4</td>
31
+ <td>Value 5</td>
32
+ </tr>
33
+ </tbody>
34
+ <% end %>
@@ -0,0 +1 @@
1
+ Customize your header by removing the header borders with the `header_style: "borderless"` prop.
@@ -0,0 +1,36 @@
1
+ <%= pb_rails("card", props: { background: "light" }) do %>
2
+ <%= pb_rails("table", props: { size: "sm", header_style: "floating" }) do %>
3
+ <%= pb_rails("table/table_head") do %>
4
+ <%= pb_rails("background", props: { background_color: "light", tag: "tr" }) do %>
5
+ <%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
6
+ <%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
7
+ <%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
8
+ <%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
9
+ <%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
10
+ <% end %>
11
+ <% end %>
12
+ <%= pb_rails("table/table_body") do %>
13
+ <%= pb_rails("table/table_row") do %>
14
+ <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
15
+ <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
16
+ <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
17
+ <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
18
+ <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
19
+ <% end %>
20
+ <%= pb_rails("table/table_row") do %>
21
+ <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
22
+ <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
23
+ <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
24
+ <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
25
+ <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
26
+ <% end %>
27
+ <%= pb_rails("table/table_row") do %>
28
+ <%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
29
+ <%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
30
+ <%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
31
+ <%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
32
+ <%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
33
+ <% end %>
34
+ <% end %>
35
+ <% end %>
36
+ <% end %>
@@ -0,0 +1 @@
1
+ Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/rails#table-with-background-kit) logic to give your table header a custom background color. Use the `header_style: "floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `background_color` passed to Background kit should match the `background` or `background_color` for the element in which it is nested).
@@ -1 +1 @@
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).
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 `background` or `backgroundColor` for the element in which it is nested).
@@ -37,6 +37,8 @@ examples:
37
37
  - table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
38
38
  - table_with_clickable_rows: Table with Clickable Rows
39
39
  - table_with_selectable_rows: Table with Selectable Rows
40
+ - table_with_header_style_borderless: Header Style Borderless
41
+ - table_with_header_style_floating: Header Style Floating
40
42
 
41
43
  react:
42
44
  - table_sm: Small
@@ -18,18 +18,18 @@ const USERS = [
18
18
  territory: "PHL",
19
19
  },
20
20
  {
21
- name: "Jason Cypret",
22
- title: "Vice President of User Experience",
21
+ name: "Carlos Lima",
22
+ title: "Nitro Developer",
23
23
  territory: "PHL",
24
24
  },
25
25
  {
26
26
  name: "Stephen Marshall",
27
- title: "Senior User Experience Engineer",
27
+ title: "Senior Nitro Developer",
28
28
  territory: "PHL",
29
29
  },
30
30
  {
31
31
  name: "Jasper Furniss",
32
- title: "Senior User Experience Engineer",
32
+ title: "Lead User Experience Engineer",
33
33
  territory: "PHL",
34
34
  },
35
35
  ];