From d88cfc7e98ae1eda32ffb9b882d8128b029dda53 Mon Sep 17 00:00:00 2001 From: Rohan Chakraborty Date: Thu, 30 Apr 2026 00:49:44 +0530 Subject: [PATCH] refactor(input): rename InputField to Input Renames the InputField component to Input across the codebase, including: - Component, type, and file/directory renames - Updates to consumers (DatePicker, RangePicker, Search, Combobox, Command, ColorPicker, FilterChip) - DatePicker.inputFieldProps -> inputProps; RangePicker.inputFieldsProps -> inputsProps - InputFieldProps -> InputProps - Documentation, demos, playground, and Figma Code Connect updates - V1 migration guide updated to reflect the rename The Base UI Input primitive (@base-ui/react/input) was already in use; no runtime behavior changes. --- apps/www/src/app/examples/page.tsx | 8 +- .../www/src/components/demo/demo-controls.tsx | 4 +- .../components/playground/field-examples.tsx | 10 +-- .../playground/fieldset-examples.tsx | 8 +- .../components/playground/form-examples.tsx | 8 +- apps/www/src/components/playground/index.ts | 2 +- ...-field-examples.tsx => input-examples.tsx} | 18 ++-- .../www/src/content/docs/(overview)/index.mdx | 2 +- .../content/docs/components/calendar/props.ts | 14 ++-- .../content/docs/components/command/index.mdx | 2 +- .../src/content/docs/components/field/demo.ts | 16 ++-- .../content/docs/components/field/index.mdx | 12 +-- .../content/docs/components/fieldset/demo.ts | 24 +++--- .../docs/components/fieldset/index.mdx | 10 +-- .../src/content/docs/components/form/demo.ts | 20 ++--- .../content/docs/components/form/index.mdx | 4 +- .../components/{input-field => input}/demo.ts | 28 +++---- .../{input-field => input}/index.mdx | 28 +++---- .../{input-field => input}/props.ts | 6 +- docs/V1-migration.md | 44 ++++++---- .../components/calendar/date-picker.tsx | 38 ++++----- .../components/calendar/range-picker.tsx | 16 ++-- .../color-picker/color-picker-input.tsx | 6 +- .../components/combobox/combobox-input.tsx | 6 +- .../components/command/command-input.tsx | 6 +- .../filter-chip/filter-chip.module.css | 2 +- .../components/filter-chip/filter-chip.tsx | 6 +- .../raystack/components/input-field/index.tsx | 1 - .../__tests__/input.test.tsx} | 84 +++++++++---------- packages/raystack/components/input/index.tsx | 1 + .../input.module.css} | 0 .../input-field.tsx => input/input.tsx} | 10 +-- .../search/__tests__/search.test.tsx | 4 +- .../raystack/components/search/search.tsx | 8 +- packages/raystack/figma/input.figma.tsx | 10 +-- packages/raystack/index.tsx | 2 +- 36 files changed, 239 insertions(+), 229 deletions(-) rename apps/www/src/components/playground/{input-field-examples.tsx => input-examples.tsx} (62%) rename apps/www/src/content/docs/components/{input-field => input}/demo.ts (84%) rename apps/www/src/content/docs/components/{input-field => input}/index.mdx (71%) rename apps/www/src/content/docs/components/{input-field => input}/props.ts (90%) delete mode 100644 packages/raystack/components/input-field/index.tsx rename packages/raystack/components/{input-field/__tests__/input-field.test.tsx => input/__tests__/input.test.tsx} (79%) create mode 100644 packages/raystack/components/input/index.tsx rename packages/raystack/components/{input-field/input-field.module.css => input/input.module.css} (100%) rename packages/raystack/components/{input-field/input-field.tsx => input/input.tsx} (94%) diff --git a/apps/www/src/app/examples/page.tsx b/apps/www/src/app/examples/page.tsx index b65134762..86ff2dada 100644 --- a/apps/www/src/app/examples/page.tsx +++ b/apps/www/src/app/examples/page.tsx @@ -28,7 +28,7 @@ import { Flex, IconButton, Indicator, - InputField, + Input, Menu, Navbar, Popover, @@ -516,7 +516,7 @@ const Page = () => { - + {/* Button Examples */} @@ -1663,7 +1663,7 @@ const Page = () => { - } width='100%' @@ -1832,7 +1832,7 @@ const Page = () => { - } width='100%' diff --git a/apps/www/src/components/demo/demo-controls.tsx b/apps/www/src/components/demo/demo-controls.tsx index f7978db50..0dc044732 100644 --- a/apps/www/src/components/demo/demo-controls.tsx +++ b/apps/www/src/components/demo/demo-controls.tsx @@ -8,7 +8,7 @@ import { import { Flex, IconButton, - InputField, + Input, Select, Switch, Text @@ -152,7 +152,7 @@ export default function DemoControls({ // For text and number types return (
- - + - + - + @@ -27,7 +27,7 @@ export function FieldExamples() {