Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

fix(docs): rename input category to form controls (#5686)

rubyycheung046f6ea2baee
diff --git a/.changeset/rename-the-data-input-component-category-to-form-cfkv.md b/.changeset/rename-the-data-input-component-category-to-form-cfkv.md
new file mode 100644
index 0000000000..24e59d57ba
--- /dev/null
+++ b/.changeset/rename-the-data-input-component-category-to-form-cfkv.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/cli': patch
+'@astryxdesign/core': patch
+---
+
+[fix] Rename the Data Input component category to Form Controls
+@rubyycheung
diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.ts
index 2e3f55af9f..f20a23d4fc 100644
--- a/apps/docsite/src/__tests__/data-extraction.test.ts
+++ b/apps/docsite/src/__tests__/data-extraction.test.ts
@@ -1075,6 +1075,8 @@ describe('galleryEagerShowcases', () => {
it('reads the gallery category order out of the page', () => {
expect(categories.length).toBeGreaterThan(5);
expect(categories).toContain('Action');
+ expect(categories).toContain('Form Controls');
+ expect(categories).not.toContain('Data Input');
expect(galleryOrder.length).toBeGreaterThan(50);
});
diff --git a/apps/docsite/src/app/(docs)/components/page.tsx b/apps/docsite/src/app/(docs)/components/page.tsx
index 621e539a08..0399d6e7a4 100644
--- a/apps/docsite/src/app/(docs)/components/page.tsx
+++ b/apps/docsite/src/app/(docs)/components/page.tsx
@@ -36,9 +36,9 @@ const CATEGORIES = [
'Chat',
'Container',
'Content',
- 'Data Input',
'Data Visualization',
'Feedback & Status',
+ 'Form Controls',
'Layout',
'Navigation',
'Overlay',
diff --git a/packages/cli/authoring/doctypes/component/component.doc.mjs b/packages/cli/authoring/doctypes/component/component.doc.mjs
index 41267df932..1d11c5755d 100644
--- a/packages/cli/authoring/doctypes/component/component.doc.mjs
+++ b/packages/cli/authoring/doctypes/component/component.doc.mjs
@@ -66,9 +66,9 @@ export const doc = {
},
{
name: 'category',
- type: "'Action' | 'Chat' | 'Container' | 'Content' | 'Data Input' | 'Data Visualization' | 'Feedback & Status' | 'Layout' | 'Navigation' | 'Overlay' | 'Table & List' | 'Utility'",
+ type: "'Action' | 'Chat' | 'Container' | 'Content' | 'Form Controls' | 'Data Input' | 'Data Visualization' | 'Feedback & Status' | 'Layout' | 'Navigation' | 'Overlay' | 'Table & List' | 'Utility'",
description:
- "Overview-gallery category representing the component's functional role. Independent of `group` (which is for the sidebar).",
+ "Overview-gallery category representing the component's functional role. Independent of `group` (which is for the sidebar). `Data Input` is a deprecated compatibility alias for `Form Controls`.",
},
{
name: 'isHiddenFromOverview',
@@ -186,7 +186,7 @@ export const doc = {
export const docs = {
name: 'Switch',
displayName: 'Switch',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ['toggle', 'switch', 'on off'],
usage: {
description:
diff --git a/packages/cli/authoring/doctypes/component/type.ts b/packages/cli/authoring/doctypes/component/type.ts
index ffc17c5022..8446952682 100644
--- a/packages/cli/authoring/doctypes/component/type.ts
+++ b/packages/cli/authoring/doctypes/component/type.ts
@@ -72,7 +72,8 @@ export interface ComponentBaseDoc {
* - `'Chat'` — conversational UI: messages, composers, layouts
* - `'Container'` — wrappers: cards, carousels, collapsibles
* - `'Content'` — display: text, icons, avatars, code blocks
- * - `'Data Input'` — data entry: text fields, selectors, date pickers
+ * - `'Form Controls'` — data entry: text fields, selectors, date pickers
+ * - `'Data Input'` — deprecated compatibility alias for `'Form Controls'`
* - `'Data Visualization'` — charts, graphs, 3D visualizations
* - `'Feedback & Status'` — progress indication: spinners, banners, badges
* - `'Layout'` — structural: grid, stack, dividers, app shell
@@ -85,6 +86,7 @@ export interface ComponentBaseDoc {
| 'Chat'
| 'Container'
| 'Content'
+ | 'Form Controls'
| 'Data Input'
| 'Data Visualization'
| 'Feedback & Status'
diff --git a/packages/core/src/Calendar/Calendar.doc.mjs b/packages/core/src/Calendar/Calendar.doc.mjs
index 7d5dfd670b..796ff44955 100644
--- a/packages/core/src/Calendar/Calendar.doc.mjs
+++ b/packages/core/src/Calendar/Calendar.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'Calendar',
displayName: 'Calendar',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["calendar","datepicker","date picker","rangepicker","date range","monthview","daypicker"],
usage: {
description:
diff --git a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
index 1e5fa22786..cf44949e7d 100644
--- a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
+++ b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'CheckboxInput',
displayName: 'Checkbox Input',
group: 'Checkbox',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["checkbox","check","toggle","tick","indeterminate","boolean","tristate"],
props: [
{
diff --git a/packages/core/src/CheckboxList/CheckboxList.doc.mjs b/packages/core/src/CheckboxList/CheckboxList.doc.mjs
index 358a7681c0..48efff8be7 100644
--- a/packages/core/src/CheckboxList/CheckboxList.doc.mjs
+++ b/packages/core/src/CheckboxList/CheckboxList.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'CheckboxList',
displayName: 'Checkbox List',
group: 'Checkbox',
- category: 'Data Input',
+ category: 'Form Controls',
isHiddenFromOverview: true,
keywords: ["checkboxlist","checkbox","checkboxgroup","multichoice","multiselect","checklist"],
description: 'Checkbox group container with field integration for label, description, and status.',
diff --git a/packages/core/src/ComplexSelector/ComplexSelector.doc.mjs b/packages/core/src/ComplexSelector/ComplexSelector.doc.mjs
index 3bac2209eb..711218f55b 100644
--- a/packages/core/src/ComplexSelector/ComplexSelector.doc.mjs
+++ b/packages/core/src/ComplexSelector/ComplexSelector.doc.mjs
@@ -15,7 +15,7 @@ export const docs = {
name: 'ComplexSelector',
displayName: 'Complex Selector',
group: 'Selector',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'selector',
'picker',
@@ -214,7 +214,7 @@ export const docsDense = {
name: 'ComplexSelector',
displayName: 'Complex Selector',
group: 'Selector',
- category: 'Data Input',
+ category: 'Form Controls',
description:
'Input/ghost trigger + dialog-popover shell for rich custom selectors. Content gets value/onChange/close/state; content owns semantics. Use focus hooks and evaluate custom content against WCAG 2.2.',
usage: {
diff --git a/packages/core/src/DateInput/DateInput.doc.mjs b/packages/core/src/DateInput/DateInput.doc.mjs
index 921698084b..8dc2bc6d5a 100644
--- a/packages/core/src/DateInput/DateInput.doc.mjs
+++ b/packages/core/src/DateInput/DateInput.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'DateInput',
displayName: 'Date Input',
group: 'DateInput',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'dateinput',
'datepicker',
diff --git a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
index 375c468d57..b7c27fe043 100644
--- a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
+++ b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'DateRangeInput',
displayName: 'Date Range Input',
group: 'DateInput',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'daterangepicker',
'daterange',
diff --git a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
index 8006666295..8e5864e595 100644
--- a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
+++ b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'DateTimeInput',
displayName: 'Date Time Input',
group: 'DateInput',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'datetimepicker',
'datetime',
diff --git a/packages/core/src/Field/Field.doc.mjs b/packages/core/src/Field/Field.doc.mjs
index fa811fd625..3d6eee4444 100644
--- a/packages/core/src/Field/Field.doc.mjs
+++ b/packages/core/src/Field/Field.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'Field',
displayName: 'Field',
group: 'Field',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["field","formfield","formgroup","formcontrol","label","input","required","optional","helpertext","hint"],
playground: {
defaults: {
diff --git a/packages/core/src/FieldStatus/FieldStatus.doc.mjs b/packages/core/src/FieldStatus/FieldStatus.doc.mjs
index d715b7ca9d..b6837b58e5 100644
--- a/packages/core/src/FieldStatus/FieldStatus.doc.mjs
+++ b/packages/core/src/FieldStatus/FieldStatus.doc.mjs
@@ -5,7 +5,7 @@ export const docs = {
name: 'FieldStatus',
displayName: 'Field Status',
group: 'Field',
- category: 'Data Input',
+ category: 'Form Controls',
isHiddenFromOverview: true,
description:
'Status message component for form field validation feedback. Messages are announced to screen readers through persistent live regions (assertive for errors, polite otherwise), so conditional mounting is safe.',
diff --git a/packages/core/src/FileInput/FileInput.doc.mjs b/packages/core/src/FileInput/FileInput.doc.mjs
index 3f21dafe2e..2d7ce1c18c 100644
--- a/packages/core/src/FileInput/FileInput.doc.mjs
+++ b/packages/core/src/FileInput/FileInput.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'FileInput',
displayName: 'File Input',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["fileinput","file","upload","drag","drop","dropzone","attachment","browse"],
props: [
{
diff --git a/packages/core/src/Indicator/Indicator.doc.mjs b/packages/core/src/Indicator/Indicator.doc.mjs
index 79c31e6453..d416f4dd54 100644
--- a/packages/core/src/Indicator/Indicator.doc.mjs
+++ b/packages/core/src/Indicator/Indicator.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'Indicator',
displayName: 'Indicator',
group: 'Indicator',
- category: 'Data Input',
+ category: 'Form Controls',
isHiddenFromOverview: true,
keywords: [
'indicator',
diff --git a/packages/core/src/InputGroup/InputGroup.doc.mjs b/packages/core/src/InputGroup/InputGroup.doc.mjs
index a2c334dd57..124fd4326c 100644
--- a/packages/core/src/InputGroup/InputGroup.doc.mjs
+++ b/packages/core/src/InputGroup/InputGroup.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'InputGroup',
displayName: 'Input Group',
group: 'Field',
- category: 'Data Input',
+ category: 'Form Controls',
isHiddenFromOverview: true,
keywords: [
'inputgroup',
diff --git a/packages/core/src/MultiSelector/MultiSelector.doc.mjs b/packages/core/src/MultiSelector/MultiSelector.doc.mjs
index 9e4f6fb573..dda0742333 100644
--- a/packages/core/src/MultiSelector/MultiSelector.doc.mjs
+++ b/packages/core/src/MultiSelector/MultiSelector.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'MultiSelector',
displayName: 'Multi Selector',
group: 'Selector',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'multiselect',
'checkbox',
diff --git a/packages/core/src/NumberInput/NumberInput.doc.mjs b/packages/core/src/NumberInput/NumberInput.doc.mjs
index c73187dfe2..f4915c8dcd 100644
--- a/packages/core/src/NumberInput/NumberInput.doc.mjs
+++ b/packages/core/src/NumberInput/NumberInput.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'NumberInput',
displayName: 'Number Input',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'numberinput',
'numberfield',
diff --git a/packages/core/src/PowerSearch/PowerSearch.doc.mjs b/packages/core/src/PowerSearch/PowerSearch.doc.mjs
index f5a7f5b5ee..af53a77a8e 100644
--- a/packages/core/src/PowerSearch/PowerSearch.doc.mjs
+++ b/packages/core/src/PowerSearch/PowerSearch.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'PowerSearch',
displayName: 'Power Search',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'powersearch',
'search',
diff --git a/packages/core/src/RadioList/RadioList.doc.mjs b/packages/core/src/RadioList/RadioList.doc.mjs
index 69251d4bd7..313ade7e6a 100644
--- a/packages/core/src/RadioList/RadioList.doc.mjs
+++ b/packages/core/src/RadioList/RadioList.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'RadioList',
displayName: 'Radio List',
group: 'Radio',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["radiolist","radio","radiogroup","radiobutton","optionlist","singlechoice","choicelist"],
theming: {
targets: [
diff --git a/packages/core/src/Selector/Selector.doc.mjs b/packages/core/src/Selector/Selector.doc.mjs
index 6c67d2efa0..4dcb87304d 100644
--- a/packages/core/src/Selector/Selector.doc.mjs
+++ b/packages/core/src/Selector/Selector.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'Selector',
displayName: 'Selector',
group: 'Selector',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'selector',
'select',
diff --git a/packages/core/src/Slider/Slider.doc.mjs b/packages/core/src/Slider/Slider.doc.mjs
index 0d09b6cd8a..37f9be3eba 100644
--- a/packages/core/src/Slider/Slider.doc.mjs
+++ b/packages/core/src/Slider/Slider.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'Slider',
displayName: 'Slider',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["slider","range","slidebar","trackbar","scrubber","knob","thumb","rangeslider"],
playground: {
defaults: {
@@ -364,4 +364,4 @@ export const docsDense = {
labelTooltip: 'Tooltip text for info icon next to label.',
xstyle: 'StyleX layout styles; must be stylex.create() value.',
},
-};
\ No newline at end of file
+};
diff --git a/packages/core/src/Switch/Switch.doc.mjs b/packages/core/src/Switch/Switch.doc.mjs
index ad380bddc1..6992a7e542 100644
--- a/packages/core/src/Switch/Switch.doc.mjs
+++ b/packages/core/src/Switch/Switch.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'Switch',
displayName: 'Switch',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'switch',
'toggle',
diff --git a/packages/core/src/TextArea/TextArea.doc.mjs b/packages/core/src/TextArea/TextArea.doc.mjs
index 06b86aecb9..c9d80150f6 100644
--- a/packages/core/src/TextArea/TextArea.doc.mjs
+++ b/packages/core/src/TextArea/TextArea.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'TextArea',
displayName: 'Text Area',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["textarea","textfield","multiline","comment","message","autoresize","autosize","charlimit"],
props: [
{
diff --git a/packages/core/src/TextInput/TextInput.doc.mjs b/packages/core/src/TextInput/TextInput.doc.mjs
index 271c16a084..51d58fefbb 100644
--- a/packages/core/src/TextInput/TextInput.doc.mjs
+++ b/packages/core/src/TextInput/TextInput.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'TextInput',
displayName: 'Text Input',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["textinput","textfield","input","search","clearable","prefix","suffix","adornment","validation"],
props: [
{
diff --git a/packages/core/src/TimeInput/TimeInput.doc.mjs b/packages/core/src/TimeInput/TimeInput.doc.mjs
index cf953683c1..e235261e2a 100644
--- a/packages/core/src/TimeInput/TimeInput.doc.mjs
+++ b/packages/core/src/TimeInput/TimeInput.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'TimeInput',
displayName: 'Time Input',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'timeinput',
'timepicker',
diff --git a/packages/core/src/Tokenizer/Tokenizer.doc.mjs b/packages/core/src/Tokenizer/Tokenizer.doc.mjs
index ea51c20728..d110408a9f 100644
--- a/packages/core/src/Tokenizer/Tokenizer.doc.mjs
+++ b/packages/core/src/Tokenizer/Tokenizer.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'Tokenizer',
displayName: 'Tokenizer',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ["tokenizer","multiselect","multi-select","chips","tags","combobox","autocomplete","taginput","chipinput"],
props: [
{
diff --git a/packages/core/src/Typeahead/Typeahead.doc.mjs b/packages/core/src/Typeahead/Typeahead.doc.mjs
index e60e323694..e09cd31ae5 100644
--- a/packages/core/src/Typeahead/Typeahead.doc.mjs
+++ b/packages/core/src/Typeahead/Typeahead.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'Typeahead',
displayName: 'Typeahead',
group: 'Typeahead',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'typeahead',
'autocomplete',
diff --git a/packages/lab/src/CodeEditor/CodeEditor.doc.mjs b/packages/lab/src/CodeEditor/CodeEditor.doc.mjs
index 8621165f06..bb77606575 100644
--- a/packages/lab/src/CodeEditor/CodeEditor.doc.mjs
+++ b/packages/lab/src/CodeEditor/CodeEditor.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'CodeEditor',
displayName: 'Code Editor',
group: 'CodeEditor',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: ['code', 'editor', 'syntax', 'highlight', 'input', 'textarea'],
usage: {
diff --git a/packages/lab/src/ListInput/ListInput.doc.mjs b/packages/lab/src/ListInput/ListInput.doc.mjs
index ff81ea7942..35b2843410 100644
--- a/packages/lab/src/ListInput/ListInput.doc.mjs
+++ b/packages/lab/src/ListInput/ListInput.doc.mjs
@@ -6,7 +6,7 @@ export const docs = {
name: 'ListInput',
displayName: 'List Input',
group: 'ListInput',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'listinput',
'list input',
diff --git a/packages/lab/src/TransferList/TransferList.doc.mjs b/packages/lab/src/TransferList/TransferList.doc.mjs
index 4ed9e35494..466f884083 100644
--- a/packages/lab/src/TransferList/TransferList.doc.mjs
+++ b/packages/lab/src/TransferList/TransferList.doc.mjs
@@ -15,7 +15,7 @@ export const docs = {
name: 'TransferListSelector',
displayName: 'Transfer List Selector',
group: 'Selector',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'transfer list',
'dual list',
diff --git a/packages/richtext/src/RichTextEditor.doc.mjs b/packages/richtext/src/RichTextEditor.doc.mjs
index ed995d837f..1ccfcc5564 100644
--- a/packages/richtext/src/RichTextEditor.doc.mjs
+++ b/packages/richtext/src/RichTextEditor.doc.mjs
@@ -5,7 +5,7 @@
export const docs = {
name: 'RichTextEditor',
displayName: 'Rich Text Editor',
- category: 'Data Input',
+ category: 'Form Controls',
keywords: [
'richtext',
'rich text',