playbook_ui_docs 14.12.0.pre.alpha.testingwithfas5689 → 14.12.0.pre.rc.0

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +0 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md +2 -2
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -7
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -6
  7. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -1
  8. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -1
  9. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb +3 -1
  10. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +0 -7
  11. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb +9 -3
  12. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +0 -1
  13. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +45 -3
  14. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +1 -0
  15. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +16 -9
  16. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +19 -44
  17. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +3 -21
  18. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +21 -16
  19. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +19 -2
  20. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +1 -2
  21. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -1
  22. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md +1 -1
  23. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +1 -3
  24. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  25. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +3 -8
  26. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +1 -4
  27. data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +1 -4
  28. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  29. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +8 -12
  30. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -6
  31. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -2
  32. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +0 -2
  33. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -4
  34. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
  35. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  36. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  37. data/dist/playbook-doc.js +1 -1
  38. metadata +7 -49
  39. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_no_subrows.jsx +0 -50
  40. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb +0 -38
  41. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx +0 -60
  42. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md +0 -5
  43. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +0 -78
  44. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md +0 -1
  45. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx +0 -53
  46. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md +0 -1
  47. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx +0 -52
  48. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.md +0 -1
  49. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +0 -33
  50. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +0 -1
  51. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json +0 -42
  52. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_with_id.json +0 -299
  53. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames.html.erb +0 -13
  54. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_turbo_frames_rails.md +0 -3
  55. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md +0 -5
  56. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb +0 -38
  57. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +0 -3
  58. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +0 -38
  59. data/app/pb_kits/playbook/pb_icon_button/docs/_icon_button_default.html.erb +0 -3
  60. data/app/pb_kits/playbook/pb_icon_button/docs/example.yml +0 -7
  61. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.html.erb +0 -15
  62. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.jsx +0 -24
  63. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_format.md +0 -1
  64. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +0 -74
  65. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +0 -3
  66. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +0 -74
  67. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +0 -3
  68. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.html.erb +0 -47
  69. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md +0 -2
  70. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb +0 -52
  71. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.md +0 -0
  72. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.html.erb +0 -52
  73. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +0 -3
  74. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb +0 -80
  75. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +0 -1
  76. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +0 -46
  77. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask_rails.md +0 -3
  78. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb +0 -19
  79. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx +0 -27
  80. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +0 -1
  81. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_table_props_react.md → _advanced_table_table_props.md} +0 -0
  82. /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible_react.md → _table_with_collapsible.md} +0 -0
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import SelectableIcon from '../_selectable_icon'
3
3
 
4
- const SelectableIconDefault = (props) => {
4
+ const SelectableIconDefault = () => {
5
5
  const [ checkSelected, toggleSelected ] = useState(true)
6
6
  const [ checkUnselected, toggleUnselected ] = useState(false)
7
7
  const [ checkDisabled, toggleDisabled ] = useState(false)
@@ -15,7 +15,6 @@ const SelectableIconDefault = (props) => {
15
15
  inputId={10}
16
16
  onChange={() => toggleSelected(!checkSelected)}
17
17
  text="US Dollar"
18
- {...props}
19
18
  />
20
19
 
21
20
  <SelectableIcon
@@ -24,7 +23,6 @@ const SelectableIconDefault = (props) => {
24
23
  inputId={11}
25
24
  onChange={() => toggleUnselected(!checkUnselected)}
26
25
  text="Euro"
27
- {...props}
28
26
  />
29
27
 
30
28
  <SelectableIcon
@@ -34,7 +32,6 @@ const SelectableIconDefault = (props) => {
34
32
  inputId={12}
35
33
  onChange={() => toggleDisabled(!checkDisabled)}
36
34
  text="Yen"
37
- {...props}
38
35
  />
39
36
  </div>
40
37
  )
@@ -2,7 +2,7 @@ import React, { useState } from 'react'
2
2
 
3
3
  import SelectableIcon from '../_selectable_icon'
4
4
 
5
- const SelectableIconSingleSelect = (props) => {
5
+ const SelectableIconSingleSelect = () => {
6
6
  const [ selectedFormat, toggleFormat ] = useState(null)
7
7
 
8
8
  return (
@@ -17,7 +17,6 @@ const SelectableIconSingleSelect = (props) => {
17
17
  onChange={() => toggleFormat('Cassette')}
18
18
  text="Cassette"
19
19
  value="Cassette"
20
- {...props}
21
20
  />
22
21
 
23
22
  <SelectableIcon
@@ -29,7 +28,6 @@ const SelectableIconSingleSelect = (props) => {
29
28
  onChange={() => toggleFormat('CD')}
30
29
  text="CD"
31
30
  value="CD"
32
- {...props}
33
31
  />
34
32
 
35
33
  <SelectableIcon
@@ -41,7 +39,6 @@ const SelectableIconSingleSelect = (props) => {
41
39
  onChange={() => toggleFormat('Vinyl')}
42
40
  text="Vinyl"
43
41
  value="Vinyl"
44
- {...props}
45
42
  />
46
43
  </div>
47
44
  )
@@ -1,3 +1,3 @@
1
- The `sticky_left_column` 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>`.
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
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 `sticky_left_column`.
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`.
@@ -8,31 +8,27 @@ const TableWithCollapsibleWithCustomContent = (props) => {
8
8
  <Card
9
9
  borderNone
10
10
  borderRadius="none"
11
- color="light"
11
+ color="light"
12
12
  paddingX="xl"
13
13
  paddingY="md"
14
14
  {...props}
15
15
  >
16
- <Body paddingBottom="sm"
16
+ <Body paddingBottom="sm"
17
17
  text="Expanded Custom Layout"
18
18
  {...props}
19
19
  />
20
20
  <Flex justify="between">
21
21
  <Image
22
- size="sm"
23
- url="https://unsplash.it/500/400/?image=634"
22
+ url="https://via.placeholder.com/150"
24
23
  />
25
24
  <Image
26
- size="sm"
27
- url="https://unsplash.it/500/400/?image=634"
25
+ url="https://via.placeholder.com/150"
28
26
  />
29
27
  <Image
30
- size="sm"
31
- url="https://unsplash.it/500/400/?image=634"
28
+ url="https://via.placeholder.com/150"
32
29
  />
33
30
  <Image
34
- size="sm"
35
- url="https://unsplash.it/500/400/?image=634"
31
+ url="https://via.placeholder.com/150"
36
32
  />
37
33
  </Flex>
38
34
  </Card>
@@ -56,7 +52,7 @@ const TableWithCollapsibleWithCustomContent = (props) => {
56
52
 
57
53
  </Table.Head>
58
54
  <Table.Body>
59
- <Table.Row collapsible
55
+ <Table.Row collapsible
60
56
  collapsibleContent={<Content/>}
61
57
  {...props}
62
58
  >
@@ -65,7 +61,7 @@ const TableWithCollapsibleWithCustomContent = (props) => {
65
61
  <Table.Cell>{'Value 3'}</Table.Cell>
66
62
  <Table.Cell>{'Value 4'}</Table.Cell>
67
63
  <Table.Cell>{'Value 5'}</Table.Cell>
68
- <Table.Cell textAlign="right">{
64
+ <Table.Cell textAlign="right">{
69
65
  <Icon
70
66
  color="primary"
71
67
  fixedWidth
@@ -5,8 +5,6 @@ examples:
5
5
  - table_lg: Large
6
6
  - table_sticky: Sticky Header
7
7
  - table_sticky_left_columns: Sticky Left Column
8
- - table_sticky_right_columns: Sticky Right Column
9
- - table_sticky_columns: Sticky Left and Right Columns
10
8
  - table_header: Table Header
11
9
  - table_alignment_row_rails: Row Alignment
12
10
  - table_alignment_column_rails: Cell Alignment
@@ -30,10 +28,6 @@ examples:
30
28
  - table_with_subcomponents_rails: Table with Sub Components (Table Elements)
31
29
  - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
32
30
  - table_outer_padding: Outer Padding
33
- - table_with_collapsible: Table with Collapsible
34
- - table_with_collapsible_with_custom_content_rails: Table with Collapsible with Custom Content
35
- - table_with_collapsible_with_nested_rows_rails: Table with Collapsible with Nested Rows
36
- - table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
37
31
 
38
32
  react:
39
33
  - table_sm: Small
@@ -8,7 +8,6 @@ examples:
8
8
  - text_input_inline: Inline
9
9
  - text_input_no_label: No Label
10
10
  - text_input_options: Input Options
11
- - text_input_mask: Mask
12
11
  react:
13
12
  - text_input_default: Default
14
13
  - text_input_error: With Error
@@ -24,4 +23,4 @@ examples:
24
23
  - text_input_error_swift: With Error
25
24
  - text_input_disabled_swift: Disabled
26
25
  - text_input_add_on_swift: Add On
27
- - text_input_props_swift: ""
26
+ - text_input_props_swift: ""
@@ -1,5 +1,3 @@
1
- /* eslint-disable react/no-multi-comp */
2
-
3
1
  import React, { useState } from 'react'
4
2
 
5
3
  import {
@@ -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={({imageUrl, label, territory, type}) => (
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}
@@ -11,7 +11,6 @@ examples:
11
11
  - typeahead_error_state: Error State
12
12
  - typeahead_margin_bottom: Margin Bottom
13
13
  - typeahead_with_pills_color: With Pills (Custom Color)
14
- - typeahead_truncated_text: Truncated Text
15
14
 
16
15
  react:
17
16
  - typeahead_default: Default
@@ -28,4 +27,3 @@ examples:
28
27
  - typeahead_custom_menu_list: Custom MenuList
29
28
  - typeahead_margin_bottom: Margin Bottom
30
29
  - typeahead_with_pills_color: With Pills (Custom Color)
31
- - typeahead_truncated_text: Truncated Text
@@ -12,4 +12,3 @@ export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
12
12
  export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
13
13
  export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
14
14
  export { default as TypeaheadWithPillsColor } from './_typeahead_with_pills_color.jsx'
15
- export { default as TypeaheadTruncatedText } from './_typeahead_truncated_text.jsx'