Skip to content
Permalink
Browse files

feat(combobox): Add new grouped variant (#3050)

* feat(combobox): Add grouped combobox variant

* Feature parity

* Revert changed files that shouldnt have changed

* Fix regressions and cleaned up jsx files

* Add new TOC

* Cleanup, add documentation, update snapshots

* docs(combobox): Base combobox docs first pass

* docs(combobox) autocomplete docs first pass

* Autocomplete and lookup docs and fixes to listbox focused options

* Start Grouped Combobox by adding aria-controls and updateing the entity switcher label

* Wrap docblock examples in <Example />, apply unique IDs to all combobox and listbox

* Add tests for combobox

* Update snapshots

* Update IDs on grouped example

* Update snapshots

* Update snapshots

* Update snapshots

* Fix VNU

* Update snapshots

* Update snapshots and documentation
  • Loading branch information...
brandonferrua committed Feb 8, 2018
1 parent 9bc8b0d commit 6c79edde3aa5a4a2ad7ac3afe2ab5e40b1d08616
Showing with 43,165 additions and 441 deletions.
  1. +640 −0 test/__tests__/__snapshots__/Combobox_Autocomplete.json
  2. +640 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Displaying_Options.json
  3. +704 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Displaying_options_based_on_user_input.json
  4. +614 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Entity.json
  5. +614 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Entity_Displaying_options.json
  6. +1,001 −0 .../__tests__/__snapshots__/Combobox_Autocomplete_Entity_Displaying_options_based_on_user_input.json
  7. +629 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Entity_Keyboard_interactions.json
  8. +1,054 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Entity_Multiple_Selection.json
  9. +686 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Entity_Single_selection.json
  10. +650 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Keyboard_interactions.json
  11. +1,025 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Multiple_selections.json
  12. +729 −0 test/__tests__/__snapshots__/Combobox_Autocomplete_Selecting_an_option.json
  13. +1,255 −0 test/__tests__/__snapshots__/Combobox_Base.json
  14. +1,260 −0 test/__tests__/__snapshots__/Combobox_Displaying_Options.json
  15. +2,197 −0 test/__tests__/__snapshots__/Combobox_Grouped.json
  16. +3,853 −0 test/__tests__/__snapshots__/Combobox_Grouped_Collapsed_pills.json
  17. +3,815 −0 test/__tests__/__snapshots__/Combobox_Grouped_Expanded_pills.json
  18. +912 −0 test/__tests__/__snapshots__/Combobox_Grouped_Options.json
  19. +1,865 −0 test/__tests__/__snapshots__/Combobox_Grouped_Scoping_text_variant.json
  20. +2,637 −0 test/__tests__/__snapshots__/Combobox_Grouped_Selecting_options.json
  21. +2,637 −0 test/__tests__/__snapshots__/Combobox_Grouped_User_inptu_with_selections_made.json
  22. +2,247 −0 test/__tests__/__snapshots__/Combobox_Grouped_User_input.json
  23. +1,265 −0 test/__tests__/__snapshots__/Combobox_Handling_focus.json
  24. +1,288 −0 test/__tests__/__snapshots__/Combobox_Multiple_Selections.json
  25. +1,594 −0 test/__tests__/__snapshots__/Combobox_Multiple_selection_closed.json
  26. +78 −0 test/__tests__/__snapshots__/Combobox_Selecting_an_Option.json
  27. +1,284 −0 test/__tests__/__snapshots__/Combobox_Single_Selection.json
  28. +1 −1 test/__tests__/__snapshots__/Global_Header_Notification_With_playground.json
  29. +2 −2 test/__tests__/__snapshots__/Global_Header_Search_Active_State.json
  30. +1 −1 test/__tests__/__snapshots__/Global_Header_Search_Default_State.json
  31. +1 −1 test/__tests__/__snapshots__/Global_Header_Search_Expanded_State.json
  32. +1 −1 test/__tests__/__snapshots__/base_global_header.json
  33. +1 −1 ui/components/app-launcher/__tests__/__snapshots__/renders_a_default_app_launcher.json
  34. +1 −1 ui/components/app-launcher/__tests__/__snapshots__/renders_a_dropped_app_launcher.json
  35. +1 −1 ui/components/app-launcher/__tests__/__snapshots__/renders_a_grabbed_app_launcher.json
  36. +1 −1 ui/components/app-launcher/__tests__/__snapshots__/renders_a_moved_app_launcher.json
  37. +1 −1 ui/components/app-launcher/__tests__/__snapshots__/renders_a_search_app_launcher.json
  38. +62 −0 ..._tests__/__snapshots__/render_combobox_render_autocomplete_combobox_with_mutliple_selections.json
  39. +46 −0 ...x/__tests__/__snapshots__/render_combobox_render_autocomplete_combobox_with_single_selection.json
  40. +40 −0 ...ponents/combobox/__tests__/__snapshots__/render_combobox_render_autocomplete_entity_combobox.json
  41. +65 −0 ..._/render_combobox_render_autocomplete_entity_combobox_displaying_options_based_on_user_input.json
  42. +64 −0 ..._/__snapshots__/render_combobox_render_autocomplete_entity_combobox_with_mutliple_selections.json
  43. +44 −0 ...ts__/__snapshots__/render_combobox_render_autocomplete_entity_combobox_with_single_selection.json
  44. +75 −0 ui/components/combobox/__tests__/__snapshots__/render_combobox_render_base_combobox.json
  45. +46 −0 ...__/__snapshots__/render_combobox_render_combobox_with_displaying_options_based_on_user_input.json
  46. +128 −0 ui/components/combobox/__tests__/__snapshots__/render_combobox_render_grouped_combobox.json
  47. +133 −0 ...__snapshots__/render_combobox_render_grouped_combobox_displaying_options_based_on_user_input.json
  48. +220 −0 ..._snapshots__/render_combobox_render_grouped_combobox_with_selections_made_in_collapsed_state.json
  49. +218 −0 ...__snapshots__/render_combobox_render_grouped_combobox_with_selections_made_in_expanded_state.json
  50. +93 −0 ...obox/__tests__/__snapshots__/render_combobox_render_multiple_selections_in_a_closed_combobox.json
  51. +76 −0 ...combobox/__tests__/__snapshots__/render_combobox_render_single_selection_in_an_open_combobox.json
  52. +40 −0 ui/components/combobox/__tests__/__snapshots__/render_combobox_renders_autocomplete_combobox.json
  53. +54 −0 ui/components/combobox/__tests__/__snapshots__/render_combobox_renders_groups_in_a_listbox.json
  54. +40 −0 ...mponents/combobox/__tests__/__snapshots__/render_deprecated_combobox_renders_a_base_combobox.json
  55. +63 −0 ..._snapshots__/render_deprecated_combobox_renders_a_base_combobox_with_closed_options_selected.json
  56. +40 −0 ...mbobox/__tests__/__snapshots__/render_deprecated_combobox_renders_a_base_combobox_with_focus.json
  57. +40 −0 ...ts__/__snapshots__/render_deprecated_combobox_renders_a_base_combobox_with_open_item_focused.json
  58. +48 −0 .../combobox/__tests__/__snapshots__/render_deprecated_combobox_renders_a_multi_entity_combobox.json
  59. +48 −0 ..._tests__/__snapshots__/render_deprecated_combobox_renders_a_multi_entity_combobox_with_focus.json
  60. +71 −0 ...s__/render_deprecated_combobox_renders_a_multi_entity_combobox_with_focused_options_selected.json
  61. +48 −0 ...napshots__/render_deprecated_combobox_renders_a_multi_entity_combobox_with_open_item_focused.json
  62. +48 −0 ...snapshots__/render_deprecated_combobox_renders_a_multi_entity_combobox_with_options_selected.json
  63. +41 −0 ...ents/combobox/__tests__/__snapshots__/render_deprecated_combobox_renders_a_readonly_combobox.json
  64. +56 −0 ...shots__/render_deprecated_combobox_renders_a_readonly_combobox_with_closed_option_s_selected.json
  65. +41 −0 ...apshots__/render_deprecated_combobox_renders_a_readonly_combobox_with_closed_option_selected.json
  66. +41 −0 ...ox/__tests__/__snapshots__/render_deprecated_combobox_renders_a_readonly_combobox_with_focus.json
  67. +41 −0 .../__snapshots__/render_deprecated_combobox_renders_a_readonly_combobox_with_open_item_focused.json
  68. +41 −0 ...apshots__/render_deprecated_combobox_renders_a_readonly_combobox_with_open_option_s_selected.json
  69. +41 −0 ...snapshots__/render_deprecated_combobox_renders_a_readonly_combobox_with_open_option_selected.json
  70. +40 −0 ...ests__/__snapshots__/render_deprecated_combobox_renders_an_inline_combobox_open_item_focused.json
  71. +40 −0 ...box/__tests__/__snapshots__/render_deprecated_combobox_renders_an_inline_combobox_with_focus.json
  72. +40 −0 ...mbobox/__tests__/__snapshots__/render_deprecated_combobox_renders_an_inline_listbox_combobox.json
  73. +45 −0 ...__/render_deprecated_combobox_renders_an_inline_listbox_combobox_with_closed_option_selected.json
  74. +63 −0 .../render_deprecated_combobox_renders_an_inline_listbox_combobox_with_focused_options_selected.json
  75. +63 −0 ...pshots__/render_deprecated_combobox_renders_an_inline_listbox_combobox_with_options_selected.json
  76. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_base_combobox.json
  77. +3 −3 ...onents/combobox/__tests__/__snapshots__/renders_a_base_combobox_with_closed_options_selected.json
  78. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_base_combobox_with_focus.json
  79. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_base_combobox_with_open_item_focused.json
  80. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_multi_entity_combobox.json
  81. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_multi_entity_combobox_with_focus.json
  82. +3 −3 ...mbobox/__tests__/__snapshots__/renders_a_multi_entity_combobox_with_focused_options_selected.json
  83. +1 −1 ...ents/combobox/__tests__/__snapshots__/renders_a_multi_entity_combobox_with_open_item_focused.json
  84. +3 −3 ...nents/combobox/__tests__/__snapshots__/renders_a_multi_entity_combobox_with_options_selected.json
  85. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_readonly_combobox.json
  86. +3 −3 ...s/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_closed_option_s_selected.json
  87. +1 −1 ...nts/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_closed_option_selected.json
  88. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_focus.json
  89. +1 −1 ...mponents/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_open_item_focused.json
  90. +1 −1 ...nts/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_open_option_s_selected.json
  91. +1 −1 ...nents/combobox/__tests__/__snapshots__/renders_a_readonly_combobox_with_open_option_selected.json
  92. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_an_inline_combobox_open_item_focused.json
  93. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_an_inline_combobox_with_focus.json
  94. +1 −1 ui/components/combobox/__tests__/__snapshots__/renders_an_inline_listbox_combobox.json
  95. +1 −1 ...bobox/__tests__/__snapshots__/renders_an_inline_listbox_combobox_with_closed_option_selected.json
  96. +7 −7 ...box/__tests__/__snapshots__/renders_an_inline_listbox_combobox_with_focused_options_selected.json
  97. +7 −7 ...ts/combobox/__tests__/__snapshots__/renders_an_inline_listbox_combobox_with_options_selected.json
  98. +910 −365 ui/components/combobox/__tests__/index.spec.js
  99. +203 −17 ui/components/combobox/base/_index.scss
  100. +1,012 −0 ui/components/combobox/docs.mdx
  101. +375 −0 ui/components/combobox/index.jsx
  102. +62 −0 ui/components/combobox/listbox-of-pills/index.jsx
  103. +359 −0 ui/components/combobox/listbox/index.jsx
  104. +1 −0 ui/components/combobox/multi-entity/_index.scss
  105. +39 −0 ui/components/combobox/object-switcher/data.js
  106. +125 −0 ui/components/combobox/object-switcher/index.jsx
  107. +398 −0 ui/components/combobox/snapshots.data.js
  108. +1 −1 ui/components/global-header/__tests__/__snapshots__/renders_a_global_header.json
  109. +1 −0 ui/components/input/base/_index.scss
  110. +2 −1 ui/components/menus/dropdown/_index.scss
  111. +6 −2 ui/components/pills/listbox-of-pill-options/example.jsx
  112. +2 −2 ui/components/rich-text-editor/__tests__/__snapshots__/renders_an_RTE_toolbar_in_a_narrow_space.json

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 6c79edd

Please sign in to comment.
You can’t perform that action at this time.