From 2925f3d33c947c773f83a74ae3342d5c07920a8e Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 8 Jul 2024 17:05:30 -0400 Subject: [PATCH] Rename `ui_text_field` crate to `ui_input` (#13949) This PR renames the `ui_text_field` crate to `ui_input` to make it a bit more generic. We'll likely end up with multiple kinds of input components in this crate. Release Notes: - N/A --- Cargo.lock | 4 ++-- Cargo.toml | 4 ++-- crates/recent_projects/Cargo.toml | 2 +- crates/recent_projects/src/dev_servers.rs | 2 +- crates/{ui_text_field => ui_input}/Cargo.toml | 4 ++-- crates/{ui_text_field => ui_input}/LICENSE-GPL | 0 .../src/ui_text_field.rs => ui_input/src/ui_input.rs} | 0 7 files changed, 8 insertions(+), 8 deletions(-) rename crates/{ui_text_field => ui_input}/Cargo.toml (84%) rename crates/{ui_text_field => ui_input}/LICENSE-GPL (100%) rename crates/{ui_text_field/src/ui_text_field.rs => ui_input/src/ui_input.rs} (100%) diff --git a/Cargo.lock b/Cargo.lock index 650e49080a..8385e0adb2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8539,7 +8539,7 @@ dependencies = [ "task", "terminal_view", "ui", - "ui_text_field", + "ui_input", "util", "workspace", ] @@ -11738,7 +11738,7 @@ dependencies = [ ] [[package]] -name = "ui_text_field" +name = "ui_input" version = "0.1.0" dependencies = [ "editor", diff --git a/Cargo.toml b/Cargo.toml index 5dfcb9d1e2..3561c95f7a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -108,7 +108,7 @@ members = [ "crates/time_format", "crates/title_bar", "crates/ui", - "crates/ui_text_field", + "crates/ui_input", "crates/util", "crates/vcs_menu", "crates/vim", @@ -259,7 +259,7 @@ theme_selector = { path = "crates/theme_selector" } time_format = { path = "crates/time_format" } title_bar = { path = "crates/title_bar" } ui = { path = "crates/ui" } -ui_text_field = { path = "crates/ui_text_field" } +ui_input = { path = "crates/ui_input" } util = { path = "crates/util" } vcs_menu = { path = "crates/vcs_menu" } vim = { path = "crates/vim" } diff --git a/crates/recent_projects/Cargo.toml b/crates/recent_projects/Cargo.toml index b454501788..c8975b15a8 100644 --- a/crates/recent_projects/Cargo.toml +++ b/crates/recent_projects/Cargo.toml @@ -31,7 +31,7 @@ smol.workspace = true task.workspace = true terminal_view.workspace = true ui.workspace = true -ui_text_field.workspace = true +ui_input.workspace = true util.workspace = true workspace.workspace = true diff --git a/crates/recent_projects/src/dev_servers.rs b/crates/recent_projects/src/dev_servers.rs index 2f7c0d9be2..96968510c0 100644 --- a/crates/recent_projects/src/dev_servers.rs +++ b/crates/recent_projects/src/dev_servers.rs @@ -31,7 +31,7 @@ use ui::{ prelude::*, Indicator, List, ListHeader, ListItem, Modal, ModalFooter, ModalHeader, RadioWithLabel, Tooltip, }; -use ui_text_field::{FieldLabelLayout, TextField}; +use ui_input::{FieldLabelLayout, TextField}; use util::ResultExt; use workspace::{notifications::DetachAndPromptErr, AppState, ModalView, Workspace, WORKSPACE_DB}; diff --git a/crates/ui_text_field/Cargo.toml b/crates/ui_input/Cargo.toml similarity index 84% rename from crates/ui_text_field/Cargo.toml rename to crates/ui_input/Cargo.toml index a9b6161a93..a71c039736 100644 --- a/crates/ui_text_field/Cargo.toml +++ b/crates/ui_input/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ui_text_field" +name = "ui_input" version = "0.1.0" edition = "2021" publish = false @@ -9,7 +9,7 @@ license = "GPL-3.0-or-later" workspace = true [lib] -path = "src/ui_text_field.rs" +path = "src/ui_input.rs" [dependencies] editor.workspace = true diff --git a/crates/ui_text_field/LICENSE-GPL b/crates/ui_input/LICENSE-GPL similarity index 100% rename from crates/ui_text_field/LICENSE-GPL rename to crates/ui_input/LICENSE-GPL diff --git a/crates/ui_text_field/src/ui_text_field.rs b/crates/ui_input/src/ui_input.rs similarity index 100% rename from crates/ui_text_field/src/ui_text_field.rs rename to crates/ui_input/src/ui_input.rs