docbrown/app
Ridhwana abeff25ec0
BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894)
* refactor: use the DefaultSelectionTemplate to list out the items

* refactor: rename function so that we map it to the deselect item event

* feat: first pass of adding edit functionality

* feat: update the name of the function from clearSelection to clearInput

* feat: setup the edit state by ensuring that we set the editValue and the inputPosition and then use useEffect to monitor changes

* chore: remove the old method in favour of a shared component

* feat: set the order of the items

* refactor: rename handleBlur function name to handleInputBlur

* feat: ensure that the edit field gets resized according to its current input

* feat: oops add inputSizerRef

* feat: when an item is being edited we need to ensure that it gets set back into the correct position and that we clear the previous state

* feat: handle the actual resizing fo the field on an input edit

* feat: use a shared DefaultSelectionTemplate for both the multiautocomplete and the multiinput component

* feat: make the defaultSelectionTemplate customizable based on the variant adn the classname

* feat: pressing backspace will start editing a previous selection if there is one

* feat: read out the selected items as its removed or edited

* feat: pass the regex through as a prop

* feat: move the functions around

* feat: add screen-reader only class

* Update app/javascript/crayons/MultiInput/__stories__/MultiInput.stories.jsx

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>

* Update app/javascript/crayons/MultiInput/MultiInput.jsx

Co-authored-by: Suzanne Aitchison <suzanne@forem.com>

* feat: add the props to JSDoc

Co-authored-by: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2022-06-23 15:41:45 +02:00
..
assets BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894) 2022-06-23 15:41:45 +02:00
controllers Member index: filter by organizations (#17943) 2022-06-21 13:32:50 +01:00
decorators Profile attribute names should be unique and non-empty (#16396) 2022-04-04 12:14:02 -05:00
errors Favoring re-use of authorization error (#16992) 2022-03-24 08:16:28 -04:00
forms
helpers Rename base_roles ui labels (#17938) 2022-06-21 16:17:35 +01:00
javascript BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894) 2022-06-23 15:41:45 +02:00
lib Rename base_roles ui labels (#17938) 2022-06-21 16:17:35 +01:00
liquid_tags Ensuring that embed fallback renders URL (#17680) 2022-05-17 07:43:17 -04:00
mailers "Reply to" and "From" Email addresses for SMTP Configurations (#16499) 2022-02-16 16:14:54 +02:00
models Adding VariantQuery reseed randomization option (#17942) 2022-06-16 15:04:08 -04:00
policies Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
queries Member index: filter by organizations (#17943) 2022-06-21 13:32:50 +01:00
refinements
sanitizers Don't sanitize anchor elements with no href (#16667) 2022-02-22 11:27:38 -06:00
serializers Remove unused methods from User (#16616) 2022-02-18 09:02:17 +07:00
services Rename base_roles ui labels (#17938) 2022-06-21 16:17:35 +01:00
uploaders
validators Remove the "Getting Started" Section from the Config (#16033) 2022-01-20 07:31:35 -07:00
view_objects
views Adding parameter to abtest show page (#17968) 2022-06-22 10:17:43 -04:00
workers Routine Rubopcop lint fixes (#17844) 2022-06-07 10:17:16 -04:00