Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Combine All @elastic/eui Imports in the EUI Docs Demo JS Tab (#…
…5533) * Update NPM version * Delete package-lock.json * Update yarn.lock * Update package.json * Update package.json * Replaced the EuiFilterSearch component with the EuiSelectable component for the MultiSelect example for Filter Group in the docs * Remove comments and add a meaningful aria message to EuiSelectable in MultiSelect Filter Group example * Updated the login within _utils.js to combine all EUI imports when preparing source JS for the Demo JS code tab in the EUI Docs * Had to remove changes to the fiter_group_multi that weren't supposed to be in this branch * Better regex to identify only eui imports * Updated the consolidation logic for EUI imports to move each import to its own line * Re-pushing commit responsbile for breaking up EUI imports into their own lines for formatting * Updated the regex pattern of the renderedCode function within _utils.js to take out the removal of the new line at the end of the pattern responsible for combining EUI imports * Updated the template string used to display imports and rendered code to remove additional space that was added to the end of the code block * Added functionality to format non-Eui imports in _utils.js. Also updated the Eui formating functionality to account for and format Eui import statements that only import a single component/function/utility * Update src-docs/src/components/guide_section/_utils.js Co-authored-by: Constance <constancecchen@users.noreply.github.com> * Handle PR comments: Remove logic to fomrat non-EUI imports Add a helper to check the line length of combined imports to determine if the statement should be wrapped to new lines or if the statement should stay on a single line. * Updated _utils.js to standardize spacing between all imports. Each import (EUI and non-EUI) will have a single new line breaking them up. * Removed a rouge console statement * Removed the helper function for checking the line length of EUI imports and added that logic directly to the main method to prevent code duplication Co-authored-by: Chandler Prall <chandler.prall@gmail.com> Co-authored-by: Constance <constancecchen@users.noreply.github.com>
- Loading branch information