playbook_ui 14.10.0.pre.alpha.PBNTR662stickyrightcolumnreact5160 → 14.10.0.pre.alpha.play1465attempt25272

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +11 -16
  3. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +8 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb +43 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb +58 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +4 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/index.js +143 -95
  10. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +50 -8
  12. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +17 -14
  13. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +78 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +4 -3
  15. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +7 -2
  16. data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +2 -6
  17. data/app/pb_kits/playbook/pb_card/_card.scss +21 -3
  18. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +18 -0
  19. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +40 -0
  20. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +1 -13
  21. data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +64 -1
  22. data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +3 -1
  23. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.html.erb +10 -0
  24. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +42 -0
  25. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.md +3 -0
  26. data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +2 -0
  27. data/app/pb_kits/playbook/pb_section_separator/docs/index.js +1 -0
  28. data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +4 -1
  29. data/app/pb_kits/playbook/pb_skeleton_loading/_skeleton_loading.scss +2 -2
  30. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_description.md +3 -0
  31. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.html.erb +9 -0
  32. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +1 -0
  33. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.html.erb +7 -0
  34. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb +1 -1
  35. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.html.erb +119 -0
  36. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +10 -2
  37. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.html.erb +15 -0
  38. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +6 -2
  39. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width_rails.md +3 -0
  40. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.html.erb +3 -0
  41. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.html.erb +63 -0
  42. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +11 -3
  43. data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +7 -2
  44. data/app/pb_kits/playbook/pb_skeleton_loading/skeleton_loading.html.erb +8 -12
  45. data/app/pb_kits/playbook/pb_skeleton_loading/skeleton_loading.rb +48 -1
  46. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +20 -0
  47. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +8 -1
  48. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +23 -0
  49. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -2
  50. data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +12 -4
  51. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +5 -1
  52. data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
  53. data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
  54. data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +21 -6
  55. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +13 -6
  56. data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -3
  57. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
  58. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +4 -2
  59. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
  60. data/dist/chunks/{_typeahead-aym7Ky_O.js → _typeahead-BhT5aXCY.js} +2 -2
  61. data/dist/chunks/{_weekday_stacked-BZj1pop-.js → _weekday_stacked-DJOTNDSY.js} +1 -1
  62. data/dist/chunks/vendor.js +1 -1
  63. data/dist/menu.yml +1 -1
  64. data/dist/playbook-doc.js +1 -1
  65. data/dist/playbook-rails-react-bindings.js +1 -1
  66. data/dist/playbook-rails.js +1 -1
  67. data/dist/playbook.css +1 -1
  68. data/lib/playbook/version.rb +1 -1
  69. metadata +20 -6
  70. /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_border_radius.md → _skeleton_loading_border_radius_react.md} +0 -0
  71. /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_height_width.md → _skeleton_loading_height_width_react.md} +0 -0
@@ -1,10 +1,14 @@
1
1
  import React from 'react'
2
2
  import { components } from 'react-select'
3
3
 
4
- const ValueContainer = (props: any) => (
4
+ type ValueContainerProps = {
5
+ children: React.ReactNode,
6
+ }
7
+
8
+ const ValueContainer = (props: ValueContainerProps): React.ReactElement => (
5
9
  <components.ValueContainer
6
- className="text_input_value_container"
7
- {...props}
10
+ className="text_input_value_container"
11
+ {...props}
8
12
  />
9
13
  )
10
14
 
@@ -1,3 +1,5 @@
1
+ /* eslint-disable react/no-multi-comp */
2
+
1
3
  import React, { useState } from 'react'
2
4
 
3
5
  import {
@@ -45,8 +45,7 @@ const promiseOptions = (inputValue) =>
45
45
 
46
46
  const TypeaheadWithPillsAsync = (props) => {
47
47
  const [users, setUsers] = useState([])
48
- const handleOnChange = (value) => setUsers(formatUsers(value))
49
- const formatValue = (users) => formatUsers(users)
48
+
50
49
  const formatUsers = (users) => {
51
50
  const results = () => (users.map((user) => {
52
51
  if (Object.keys(user)[0] === 'name' || Object.keys(user)[1] === 'id'){
@@ -58,6 +57,9 @@ const TypeaheadWithPillsAsync = (props) => {
58
57
  return results()
59
58
  }
60
59
 
60
+ const handleOnChange = (value) => setUsers(formatUsers(value))
61
+ const formatValue = (users) => formatUsers(users)
62
+
61
63
  return (
62
64
  <>
63
65
  {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={(props) => (
86
+ valueComponent={({imageUrl, label, territory, type}) => (
87
87
  <User
88
88
  avatar
89
- avatarUrl={props.imageUrl}
90
- name={props.label}
91
- territory={props.territory}
92
- title={props.type}
89
+ avatarUrl={imageUrl}
90
+ name={label}
91
+ territory={territory}
92
+ title={type}
93
93
  />
94
94
  )}
95
95
  {...props}