-
Notifications
You must be signed in to change notification settings - Fork 1
91 replace input with mui textfield #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
NatLeung96
merged 35 commits into
80-update-widgets-to-use-mui-base
from
91-replace-input-with-mui-textfield
Apr 16, 2025
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
5596f23
Replaced base input with MUI TextField
NatLeung96 f4c0b38
Updated branch with main-dev branch
NatLeung96 ebdb4b8
Updated theme tokens and changed border colours
NatLeung96 1de8ba7
Move static styling to styled API
NatLeung96 338fd16
Added alignment props to parser
NatLeung96 8640e8a
Handle alignment props
NatLeung96 6d2c240
Updated test and created snapshot
NatLeung96 5159245
Removed redundant input component files
NatLeung96 f106025
Removed redundant reference to component file
NatLeung96 6572c5c
Removed redundant horizontalAlignment and verticalAlignment props fro…
NatLeung96 eacf481
Added textAlignV as ChoicePropOpt and removed unnecessary switch stat…
NatLeung96 94ebd6f
Added if-else for vertical alignment
NatLeung96 0fd8d05
Changed default background to teal (#80FFFF)
NatLeung96 5d521d1
Removed redundant border parsing
NatLeung96 f455a35
Changed color of hover and focussed borders to blue
NatLeung96 88af1b9
Added custom border
NatLeung96 ecb81aa
Added multiLine to parser
NatLeung96 ec9ae54
Changed default blue border colour
NatLeung96 02ac247
TextField displays existing PV value if available
NatLeung96 71606cc
Reformatted prop type declaration and disabled cursor when disabled
NatLeung96 882d807
Updated tests, snapshots, and type definitions
NatLeung96 94a836e
Updated slidecontrol test
NatLeung96 eb34c0b
Updated input snapshot
NatLeung96 4244394
Corrected writePV function call
NatLeung96 960d50f
Removed redundant CSS file
NatLeung96 a67d8f1
Added blur on Enter
NatLeung96 4eeb112
Removed comment
NatLeung96 1d4fe41
Got border thicknesses to change on hover and focus
NatLeung96 a1f1f8f
Changed border width values for hover and focussed
NatLeung96 f682060
Updated snapshot
NatLeung96 4c714a3
Reorganised widgetprop definitions and updated test
NatLeung96 e756812
Added useEffect to set initial text value when PV connection is estab…
NatLeung96 cff1723
Updated pvName variable in slideControl
NatLeung96 d9b81b0
Updated slideControl test
NatLeung96 60647dd
Added multiline functionality
NatLeung96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
|
||
| exports[`<Input /> > renders an input 1`] = ` | ||
| <DocumentFragment> | ||
| <div | ||
| class="MuiFormControl-root MuiTextField-root css-1x2hah6-MuiFormControl-root-MuiTextField-root" | ||
| > | ||
| <div | ||
| class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl css-quhxjy-MuiInputBase-root-MuiOutlinedInput-root" | ||
| > | ||
| <input | ||
| aria-invalid="false" | ||
| class="MuiInputBase-input MuiOutlinedInput-input css-16wblaj-MuiInputBase-input-MuiOutlinedInput-input" | ||
| id=":r0:" | ||
| type="text" | ||
| value="hello" | ||
| /> | ||
| <fieldset | ||
| aria-hidden="true" | ||
| class="MuiOutlinedInput-notchedOutline css-1ll44ll-MuiOutlinedInput-notchedOutline" | ||
| > | ||
| <legend | ||
| class="css-w4cd9x" | ||
| > | ||
| <span | ||
| class="notranslate" | ||
| > | ||
| | ||
| </span> | ||
| </legend> | ||
| </fieldset> | ||
| </div> | ||
| </div> | ||
| </DocumentFragment> | ||
| `; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.