docbrown/app/javascript
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
..
.storybook remove storybook addon-links (#17935) 2022-06-16 15:03:47 -04:00
__mocks__ Bump focus-trap from 6.7.3 to 6.8.1 (#17425) 2022-04-27 08:09:21 -06:00
actionsPanel Allow Moderator Role to Unpublish Single Post (#17795) 2022-06-03 12:48:20 -04:00
admin Unpin article should behave more like Pin article (#17798) 2022-06-07 14:18:43 +02:00
analytics Show friendly error message on API fetch failure on stats (#17570) 2022-05-18 16:12:42 +02:00
article-form Add tooltip to cover image button describing optimal image ratio (#17779) 2022-06-02 17:44:34 -04:00
articles refactor(save-btn): migrates class comp to pure comp (#17699) 2022-05-23 16:15:27 +01:00
colorPickers Use the Preact ColorPicker in creator onboarding (#16731) 2022-03-03 08:22:10 +00:00
CommentSubscription Track clicks and views in comments on article page (#17886) 2022-06-21 09:19:55 -05:00
common-prop-types ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
contentDisplayPolicy Accessibility improvements for hide comments modal (#15462) 2021-11-24 09:50:27 +03:00
crayons BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894) 2022-06-23 15:41:45 +02:00
githubRepos [github-repos] Refactor class components to be functional component (#17700) 2022-05-23 16:12:13 +01:00
hooks Replace listings tag component (#16855) 2022-03-30 16:51:40 +01:00
leftSidebar Refactoring cached_followed_tags (#16175) 2022-01-24 19:53:48 -05:00
liquidTags Rework user subscription liquid tag to avoid errors (#16460) 2022-02-15 09:14:03 +00:00
listings [listing-dashboard] Refactor class components to be functional component (#17764) 2022-06-07 11:50:47 +01:00
mobile Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
modCenter [single-article] Refactor class components to be functional component (#17681) 2022-05-26 12:59:06 +01:00
onboarding Enable clickOutsideDeactivates on Onboarding FocusTrap (#17885) 2022-06-13 08:23:46 -06:00
organization fix some prop type errors on the home page (#15314) 2021-11-10 13:47:55 +00:00
packs Member index: Show applied roles filters (#17954) 2022-06-21 16:27:26 +01:00
podcasts Fixed lint:frontend npm script (#15631) 2021-12-02 07:42:30 +00:00
previewCards Add author profile preview cards to feed (#14340) 2021-08-13 10:55:43 +07:00
profileDropdown Removing a JS message about connect (#16982) 2022-03-23 12:30:59 -04:00
profilePreviewCards Generator updates (#16339) 2022-01-28 12:20:30 +01:00
readingList Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
responseTemplates Trusted users can view & use moderator response templates (#17867) 2022-06-16 14:05:49 +02:00
runtimeBanner Refactor runtime to webpacker JS (#17142) 2022-04-07 15:39:38 +01:00
Search Storybook updates (#15848) 2022-01-14 11:06:23 +01:00
searchableItemList Reading list: fix broken pagination (#14031) 2021-06-22 08:24:23 +02:00
shared/components BETA version 2 of the Storybook Multi Input (Editing and Accessibility) (#17894) 2022-06-23 15:41:45 +02:00
sidebar-widget Refactoring SidebarWidget and sidebarUser (#10887) 2021-02-03 17:47:54 +00:00
Snackbar Migrate faker dependency to supported upstream (#16037) 2022-01-10 15:00:48 -06:00
topNavigation Updating header with new Crayons buttons (#15653) 2021-12-09 16:41:18 +01:00
utilities Reusable user admin modals (#17763) 2022-06-02 09:52:26 -06:00
.eslintrc.js ✂️✂️ Removed the pusher-js dependency ✂️✂️ (#16597) 2022-02-15 11:50:54 -05:00
netlify.toml Update storybook node version (#16106) 2022-01-14 08:00:39 -05:00
routes.js.erb [15-minute fix] Add js-routes gem (#15133) 2021-11-01 10:08:15 +07:00