Introduce TextField by adding the ui_text_field crate (#10361)

There hasn't been a componentized way to create inputs or text fields
thus far due to the innate circular dependency between the `ui` and
`editor` crates. To bypass this issue we are introducing a new
`ui_text_field` crate to specifically handle this component.

`TextField` provides the ability to add stacked or inline labels, as
well as applies a standard visual style to inputs.

Example:

![CleanShot - 2024-04-10 at 11 22
13@2x](https://github.com/zed-industries/zed/assets/1714999/9bf5fc40-5024-4d01-9a8b-fb76f67d7e6e)

We'll continue to evolve this component in the near future and start
using it in the app once we've built out the needed functionality.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Nate Butler
2024-04-10 11:53:25 -04:00
committed by GitHub
co-authored by Marshall Bowers
parent d03f1c4cab
commit 03d853d344
5 changed files with 220 additions and 0 deletions
Generated
+11
View File
@@ -10718,6 +10718,17 @@ dependencies = [
"windows 0.53.0",
]
[[package]]
name = "ui_text_field"
version = "0.1.0"
dependencies = [
"editor",
"gpui",
"settings",
"theme",
"ui",
]
[[package]]
name = "unicase"
version = "2.7.0"