Commit 2d50b59
authored
[LG-5098] feat(CodeEditor): adds custom search panel (#3186)
* feat(SearchForm): add SearchForm component
* feat(SearchForm): implement SearchForm component with toggle functionality and styling
- Added the SearchForm component to the CodeEditor, featuring a toggle button for expanding and collapsing the search input.
- Integrated LeafyGreen UI components for consistent styling and functionality.
- Created a new story for SearchForm in Storybook to demonstrate its usage and appearance.
- Updated CodeEditor to include the SearchForm, enhancing user interaction capabilities.
* refactor(CodeEditor): add back in panel import
* refactor(SearchForm): further correct styling
* WIP
* refactor(SearchForm): Further correct styling
* make top row height more dynamic
* fix top section height
* WIP
* Fix width styling
* Fix box shadow
* Add find functionality
* Remove unnecessary space
* Add find selected index rendering
* Add replace functionality
* Fix keyboard shortcuts
* rename SearchForm to SearchPanel
* fix top padding
* Allow search panel to be disabled
* fix dep array
* only load search module when needed
* fix darkmode and font size
* fix deps
* Fix focus and imports
* prevent panel from overflowing editor
* add filter menu
* pull out all handler
* add search panel tests
* fix tests
* changeset
* remove unused styles
* update changeset
* ignore react client TS issue
* add non-panel style
* fix dep arr
* Fix react 17 bug
* Copilot feedback
* Missed copilot feedback
* CR first pass
* Update search match background to match Code highlight
* Fix R17 import
* Revert "Update search match background to match Code highlight"
This reverts commit 6bf2b88.
* Fix darkmode implementation
* Fix search panel sizing
* Extract search logic into hook
* Remove unused variables
* Reapply "Update search match background to match Code highlight"
This reverts commit ec510e5.
* Possible color pallette for find
* Remove 'all' option
* Fix build?
* Add require v import comment
* Fix hook logic
* refactor(SearchPanel): update selected index handling to use searchQuery parameter for improved accuracy
* fix(SearchPanel): remove TypeScript error suppression for ref prop in TextInput component
* fix(SearchPanel): adjust positioning and add right border to enhance layout1 parent 090b547 commit 2d50b59
File tree
18 files changed
+1256
-54
lines changed- .changeset
- packages/code-editor
- src
- CodeEditor
- hooks
- extensions
- SearchPanel
18 files changed
+1256
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
| |||
0 commit comments