@tanrei/mcp 0.0.0-stage → 0.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE +57 -0
- package/README.md +150 -2
- package/bin/tanrei-mcp.js +15 -0
- package/dist/server.js +4515 -0
- package/dist/vocabulary/docs/governance/mimicry-gaps.json +666 -0
- package/dist/vocabulary/packages/tokens-build/generated/component-catalog.json +1825 -0
- package/dist/vocabulary/specs/accordion.spec.json +1 -0
- package/dist/vocabulary/specs/app-bar.spec.json +1 -0
- package/dist/vocabulary/specs/app-shell.spec.json +1 -0
- package/dist/vocabulary/specs/avatar.spec.json +1 -0
- package/dist/vocabulary/specs/badge.spec.json +1 -0
- package/dist/vocabulary/specs/bottom-sheet.spec.json +1 -0
- package/dist/vocabulary/specs/breadcrumbs.spec.json +1 -0
- package/dist/vocabulary/specs/button-group.spec.json +1 -0
- package/dist/vocabulary/specs/button-with-menu.spec.json +1 -0
- package/dist/vocabulary/specs/button.spec.json +1 -0
- package/dist/vocabulary/specs/calendar.spec.json +1 -0
- package/dist/vocabulary/specs/callout.spec.json +1 -0
- package/dist/vocabulary/specs/card.spec.json +1 -0
- package/dist/vocabulary/specs/carousel.spec.json +1 -0
- package/dist/vocabulary/specs/chat-composer.spec.json +1 -0
- package/dist/vocabulary/specs/checkbox-group.spec.json +1 -0
- package/dist/vocabulary/specs/checkbox.spec.json +1 -0
- package/dist/vocabulary/specs/chip-field.spec.json +1 -0
- package/dist/vocabulary/specs/chip.spec.json +1 -0
- package/dist/vocabulary/specs/code-block.spec.json +1 -0
- package/dist/vocabulary/specs/color-field.spec.json +1 -0
- package/dist/vocabulary/specs/color-input.spec.json +1 -0
- package/dist/vocabulary/specs/combobox-field.spec.json +1 -0
- package/dist/vocabulary/specs/combobox.spec.json +1 -0
- package/dist/vocabulary/specs/component.schema.json +1 -0
- package/dist/vocabulary/specs/copy-button.spec.json +1 -0
- package/dist/vocabulary/specs/date-time-picker.spec.json +1 -0
- package/dist/vocabulary/specs/description-list.spec.json +1 -0
- package/dist/vocabulary/specs/dialog.spec.json +1 -0
- package/dist/vocabulary/specs/divider.spec.json +1 -0
- package/dist/vocabulary/specs/drop-zone.spec.json +1 -0
- package/dist/vocabulary/specs/embedded-text-input.spec.json +1 -0
- package/dist/vocabulary/specs/empty-state.spec.json +1 -0
- package/dist/vocabulary/specs/fab-menu.spec.json +1 -0
- package/dist/vocabulary/specs/field-group.spec.json +1 -0
- package/dist/vocabulary/specs/field.spec.json +1 -0
- package/dist/vocabulary/specs/figure.spec.json +1 -0
- package/dist/vocabulary/specs/file-item.spec.json +1 -0
- package/dist/vocabulary/specs/file-picker.spec.json +1 -0
- package/dist/vocabulary/specs/file-upload.spec.json +1 -0
- package/dist/vocabulary/specs/handle.spec.json +1 -0
- package/dist/vocabulary/specs/image-preview.spec.json +1 -0
- package/dist/vocabulary/specs/inline-code.spec.json +1 -0
- package/dist/vocabulary/specs/inventory.json +1 -0
- package/dist/vocabulary/specs/keyboard-shortcut.spec.json +1 -0
- package/dist/vocabulary/specs/link-card.spec.json +1 -0
- package/dist/vocabulary/specs/link.spec.json +1 -0
- package/dist/vocabulary/specs/list-row.spec.json +1 -0
- package/dist/vocabulary/specs/list.spec.json +1 -0
- package/dist/vocabulary/specs/loading-indicator.spec.json +1 -0
- package/dist/vocabulary/specs/main-action-button.spec.json +1 -0
- package/dist/vocabulary/specs/marquee-text.spec.json +1 -0
- package/dist/vocabulary/specs/menu.spec.json +1 -0
- package/dist/vocabulary/specs/menubar.spec.json +1 -0
- package/dist/vocabulary/specs/meter.spec.json +1 -0
- package/dist/vocabulary/specs/modal-layer.spec.json +1 -0
- package/dist/vocabulary/specs/navigation-bar.spec.json +1 -0
- package/dist/vocabulary/specs/navigation-drawer.spec.json +1 -0
- package/dist/vocabulary/specs/number-field.spec.json +1 -0
- package/dist/vocabulary/specs/number-input.spec.json +1 -0
- package/dist/vocabulary/specs/number-ticker.spec.json +1 -0
- package/dist/vocabulary/specs/one-time-code-field.spec.json +1 -0
- package/dist/vocabulary/specs/one-time-code-input.spec.json +1 -0
- package/dist/vocabulary/specs/page-header.spec.json +1 -0
- package/dist/vocabulary/specs/pagination.spec.json +1 -0
- package/dist/vocabulary/specs/popover.spec.json +1 -0
- package/dist/vocabulary/specs/previous-next-links.spec.json +1 -0
- package/dist/vocabulary/specs/progress-indicator.spec.json +1 -0
- package/dist/vocabulary/specs/prose.spec.json +1 -0
- package/dist/vocabulary/specs/radio-button.spec.json +1 -0
- package/dist/vocabulary/specs/radio-group.spec.json +1 -0
- package/dist/vocabulary/specs/rating.spec.json +1 -0
- package/dist/vocabulary/specs/resizable-frame.spec.json +1 -0
- package/dist/vocabulary/specs/scroll-area.spec.json +1 -0
- package/dist/vocabulary/specs/search.spec.json +1 -0
- package/dist/vocabulary/specs/segmented-button.spec.json +1 -0
- package/dist/vocabulary/specs/select-field.spec.json +1 -0
- package/dist/vocabulary/specs/select.spec.json +1 -0
- package/dist/vocabulary/specs/side-sheet.spec.json +1 -0
- package/dist/vocabulary/specs/size-transition.spec.json +1 -0
- package/dist/vocabulary/specs/skeleton.spec.json +1 -0
- package/dist/vocabulary/specs/slider-field.spec.json +1 -0
- package/dist/vocabulary/specs/slider.spec.json +1 -0
- package/dist/vocabulary/specs/snackbar.spec.json +1 -0
- package/dist/vocabulary/specs/split-view.spec.json +1 -0
- package/dist/vocabulary/specs/stepper.spec.json +1 -0
- package/dist/vocabulary/specs/steps.spec.json +1 -0
- package/dist/vocabulary/specs/swatch.spec.json +1 -0
- package/dist/vocabulary/specs/switch.spec.json +1 -0
- package/dist/vocabulary/specs/tab-view.spec.json +1 -0
- package/dist/vocabulary/specs/table-of-contents.spec.json +1 -0
- package/dist/vocabulary/specs/table.spec.json +1 -0
- package/dist/vocabulary/specs/tabs.spec.json +1 -0
- package/dist/vocabulary/specs/tag-group.spec.json +1 -0
- package/dist/vocabulary/specs/tag.spec.json +1 -0
- package/dist/vocabulary/specs/text-field.spec.json +1 -0
- package/dist/vocabulary/specs/text-input.spec.json +1 -0
- package/dist/vocabulary/specs/timeline.spec.json +1 -0
- package/dist/vocabulary/specs/toolbar.spec.json +1 -0
- package/dist/vocabulary/specs/tooltip.spec.json +1 -0
- package/dist/vocabulary/specs/tree-view.spec.json +1 -0
- package/dist/vocabulary/tanrei.config.json +24 -0
- package/dist/vocabulary/tokens/comp/accordion.tokens.json +459 -0
- package/dist/vocabulary/tokens/comp/app-bar.tokens.json +308 -0
- package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
- package/dist/vocabulary/tokens/comp/avatar.tokens.json +199 -0
- package/dist/vocabulary/tokens/comp/badge.tokens.json +101 -0
- package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +326 -0
- package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
- package/dist/vocabulary/tokens/comp/button-group.tokens.json +140 -0
- package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +810 -0
- package/dist/vocabulary/tokens/comp/button.tokens.json +1355 -0
- package/dist/vocabulary/tokens/comp/calendar.tokens.json +500 -0
- package/dist/vocabulary/tokens/comp/callout.tokens.json +510 -0
- package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
- package/dist/vocabulary/tokens/comp/carousel.tokens.json +469 -0
- package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +343 -0
- package/dist/vocabulary/tokens/comp/checkbox.tokens.json +587 -0
- package/dist/vocabulary/tokens/comp/chip.tokens.json +716 -0
- package/dist/vocabulary/tokens/comp/code-block.tokens.json +473 -0
- package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/combobox.tokens.json +756 -0
- package/dist/vocabulary/tokens/comp/copy-button.tokens.json +56 -0
- package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +797 -0
- package/dist/vocabulary/tokens/comp/description-list.tokens.json +203 -0
- package/dist/vocabulary/tokens/comp/dialog.tokens.json +340 -0
- package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -0
- package/dist/vocabulary/tokens/comp/drop-zone.tokens.json +151 -0
- package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +103 -0
- package/dist/vocabulary/tokens/comp/empty-state.tokens.json +154 -0
- package/dist/vocabulary/tokens/comp/field-group.tokens.json +211 -0
- package/dist/vocabulary/tokens/comp/field.tokens.json +308 -0
- package/dist/vocabulary/tokens/comp/figure.tokens.json +269 -0
- package/dist/vocabulary/tokens/comp/file-item.tokens.json +445 -0
- package/dist/vocabulary/tokens/comp/file-picker.tokens.json +282 -0
- package/dist/vocabulary/tokens/comp/file-upload.tokens.json +30 -0
- package/dist/vocabulary/tokens/comp/handle.tokens.json +343 -0
- package/dist/vocabulary/tokens/comp/image-preview.tokens.json +327 -0
- package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
- package/dist/vocabulary/tokens/comp/input-box.tokens.json +1073 -0
- package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/link-card.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/list-row.tokens.json +249 -0
- package/dist/vocabulary/tokens/comp/list.tokens.json +328 -0
- package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +218 -0
- package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +418 -0
- package/dist/vocabulary/tokens/comp/marquee-text.tokens.json +110 -0
- package/dist/vocabulary/tokens/comp/menu.tokens.json +1124 -0
- package/dist/vocabulary/tokens/comp/menubar.tokens.json +279 -0
- package/dist/vocabulary/tokens/comp/meter.tokens.json +173 -0
- package/dist/vocabulary/tokens/comp/modal-layer.tokens.json +69 -0
- package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +448 -0
- package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +1126 -0
- package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
- package/dist/vocabulary/tokens/comp/number-ticker.tokens.json +77 -0
- package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +246 -0
- package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
- package/dist/vocabulary/tokens/comp/pagination.tokens.json +233 -0
- package/dist/vocabulary/tokens/comp/popover.tokens.json +363 -0
- package/dist/vocabulary/tokens/comp/previous-next-links.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +218 -0
- package/dist/vocabulary/tokens/comp/prose.tokens.json +283 -0
- package/dist/vocabulary/tokens/comp/radio-button.tokens.json +413 -0
- package/dist/vocabulary/tokens/comp/rating.tokens.json +230 -0
- package/dist/vocabulary/tokens/comp/resizable-frame.tokens.json +166 -0
- package/dist/vocabulary/tokens/comp/scroll-area.tokens.json +99 -0
- package/dist/vocabulary/tokens/comp/search.tokens.json +761 -0
- package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +414 -0
- package/dist/vocabulary/tokens/comp/select.tokens.json +687 -0
- package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +332 -0
- package/dist/vocabulary/tokens/comp/size-transition.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/skeleton.tokens.json +114 -0
- package/dist/vocabulary/tokens/comp/slider.tokens.json +436 -0
- package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1160 -0
- package/dist/vocabulary/tokens/comp/split-view.tokens.json +52 -0
- package/dist/vocabulary/tokens/comp/stepper.tokens.json +538 -0
- package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
- package/dist/vocabulary/tokens/comp/swatch.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/switch.tokens.json +350 -0
- package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
- package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +429 -0
- package/dist/vocabulary/tokens/comp/table.tokens.json +553 -0
- package/dist/vocabulary/tokens/comp/tabs.tokens.json +1058 -0
- package/dist/vocabulary/tokens/comp/tag-group.tokens.json +68 -0
- package/dist/vocabulary/tokens/comp/tag.tokens.json +551 -0
- package/dist/vocabulary/tokens/comp/text-input.tokens.json +96 -0
- package/dist/vocabulary/tokens/comp/timeline.tokens.json +239 -0
- package/dist/vocabulary/tokens/comp/toolbar.tokens.json +270 -0
- package/dist/vocabulary/tokens/comp/tooltip.tokens.json +391 -0
- package/dist/vocabulary/tokens/comp/tree-view.tokens.json +478 -0
- package/dist/vocabulary/tokens/dial/dial.tokens.json +137 -0
- package/dist/vocabulary/tokens/fidelity/cupertino.fidelity.json +165 -0
- package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +388 -0
- package/dist/vocabulary/tokens/fidelity/reference/androidx-material3.json +144 -0
- package/dist/vocabulary/tokens/fidelity/reference/apple-hig.json +196 -0
- package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
- package/dist/vocabulary/tokens/generated/cupertino/components.json +1749 -0
- package/dist/vocabulary/tokens/generated/cupertino/fidelity.json +162 -0
- package/dist/vocabulary/tokens/generated/m3-like/components.json +1761 -0
- package/dist/vocabulary/tokens/generated/m3-like/fidelity.json +194 -0
- package/dist/vocabulary/tokens/generated/tanrei/components.json +1764 -0
- package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +279 -0
- package/dist/vocabulary/tokens/ref/typeface.tokens.json +116 -0
- package/dist/vocabulary/tokens/schema/icon-set.schema.json +82 -0
- package/dist/vocabulary/tokens/schema/system.schema.json +859 -0
- package/dist/vocabulary/tokens/sys/behavior.tokens.json +184 -0
- package/dist/vocabulary/tokens/sys/color.vocabulary.json +58 -0
- package/dist/vocabulary/tokens/sys/elevation.tokens.json +362 -0
- package/dist/vocabulary/tokens/sys/measure.tokens.json +442 -0
- package/dist/vocabulary/tokens/sys/motion.tokens.json +1421 -0
- package/dist/vocabulary/tokens/sys/scroll-edge.tokens.json +50 -0
- package/dist/vocabulary/tokens/sys/shape.tokens.json +169 -0
- package/dist/vocabulary/tokens/sys/space.tokens.json +256 -0
- package/dist/vocabulary/tokens/sys/state.tokens.json +83 -0
- package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
- package/dist/vocabulary/tokens/systems/core.system.json +1889 -0
- package/dist/vocabulary/tokens/systems/cupertino.system.json +859 -0
- package/dist/vocabulary/tokens/systems/m3-like/comp/fab-menu.tokens.json +499 -0
- package/dist/vocabulary/tokens/systems/m3-like.system.json +1181 -0
- package/dist/vocabulary/tokens/systems/tanrei.system.json +707 -0
- package/dist/vocabulary/tokens/tanrei.resolver.json +400 -0
- package/package.json +52 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"text-input","title":"Text input","summary":"The box people type in — one line, or several that follow the text or are resized by hand; a date or a time entered unit by unit in the locale's form; code held exactly as it is written — with optional icons, a prefix and a suffix, a picker button and, in the looks that float one, its label inside the box. It has no label row and no message: a Field frames it, or the product names it.","level":"base","listing":"advanced","anatomy":[{"id":"container","description":"The box around the input. A stacked or filled input fills it and carries the hover state layer on it; a press anywhere on it focuses the input."},{"id":"active-indicator","description":"The line along the bottom of a filled field; its focused state is thicker and colored.","optional":true},{"id":"outline","description":"The border of an outlined input, which opens a gap where the floated label crosses it; in a stacked input, the line drawn inside the container's edge while it is focused or in error, which takes no layout space. Its focused state is thicker and colored.","optional":true},{"id":"label","description":"In a filled or outlined input, its name drawn inside the box: it rests in the input line while the input is empty and unfocused, and floats above the input once focused or filled. A stacked input draws none: the label above it is the row of the Field that frames it.","optional":true},{"id":"required-asterisk","description":"After the floating label's text, an asterisk, where the Field that frames the input says the control is required and marks it (TXI-50). Kept from assistive technology.","optional":true},{"id":"input","description":"The platform's own text element, which holds the value, the selection and any input-method composition. A date, time or date-time field draws a row of segments in its place. In a code field it is a left-to-right box in the code face that begins at the left in every layout direction, and the part that scrolls sideways while its lines do not wrap."},{"id":"segment","description":"One unit of a date or a time — year, month, day, hour, minute, day period — in the input line of a date, time or date-time field: focusable on its own, stepped, typed into and cleared on its own. The separators between segments are not segments.","optional":true},{"id":"placeholder","description":"A hint shown in the empty input line; never a label. In a date, time or date-time field each empty segment shows its own.","optional":true},{"id":"prefix","description":"Fixed text before the value (a currency sign). Colored by the affix part.","optional":true},{"id":"suffix","description":"Fixed text after the value (a unit). Colored by the affix part.","optional":true},{"id":"leading-icon","description":"An icon at the start of the field.","optional":true},{"id":"trailing-icon","description":"An icon, or the product's icon-only Button, at the end of the field.","optional":true},{"id":"clear-button","description":"An icon-only Button of the text variant at Button's small size showing close, after the trailing icon, that empties the value. Drawn while clearable is true and the value is not empty; its room is kept while clearable is true.","optional":true},{"id":"reveal-button","description":"In a password field, an icon-only toggle Button of the text variant at Button's small size, after the clear button's room, showing visibility while the value is hidden and visibility_off while it is shown; it shows or hides the value.","optional":true},{"id":"picker-button","description":"In a date, time or date-time field, an icon-only Button of the text variant at the end of the container, showing the calendar_month glyph (date, date-time) or the schedule glyph (time); it asks the product to present Calendar or DateTimePicker.","optional":true},{"id":"resize-handle","description":"In a multi-line field that is resized by hand, a Handle of size small in the container's bottom corner at its end edge — a short line while it resizes vertically, an arc while it resizes both ways — that the person drags, or moves from the keyboard, to resize the field. It is drawn by the Handle, never by a glyph of the icon set.","optional":true},{"id":"caret","description":"The insertion point, drawn by the platform in the caret color."},{"id":"entries","description":"What was entered already, inside the container and before the typing part, in lines that wrap: the content of the entries slot. The text input lays it out and draws none of it.","optional":true}],"props":[{"name":"variant","type":"enum","values":["stacked","filled","outlined"],"default":"stacked","description":"Stacked is a filled box that shows focus and error with a line inside its edge and draws no label: the label of the Field that frames it stands above it. Filled and outlined float the label inside the box, marked by a tinted box and a bottom line, or by a border. Use one style per form. A design system may leave some out (the Tanrei system ships stacked only) or add values.","axis":"tanrei.comp.input-box.variant"},{"name":"size","type":"enum","values":["small","medium","large"],"default":"medium","description":"Minimum height of a single-line input's container: stacked 28 / 36 / 52, as tall as a Button of the same size, so that an input and a Button side by side in one row stand as tall as each other; filled and outlined 40 / 48 / 56, which hold the label that floats inside them; all under the default system, and never drawn below sys.target.minimum. Medium and large are for forms; small is for an input in an app bar, a toolbar or a dense row of controls, beside a small select or button. The hit area always meets the minimum target. While it is not set the text input draws the size its nearest container sets — a toolbar's size — and medium where none does (TXI-73); setting it, to medium too, makes it the text input's own.","axis":"tanrei.comp.input-box.size"},{"name":"type","type":"enum","values":["text","email","password","number","search","tel","url","code","date","time","date-time"],"default":"text","description":"What the value is: chooses the keyboard, autocorrection, obscured entry and semantics. code is text written for a machine rather than for a reader — a snippet of configuration, a pattern, an identifier, a query, a key: a left-to-right run in the code face that the platform does not correct, capitalise, check for spelling or complete, on one line or, with multiline, on many. date, time and date-time are entered segment by segment in the locale's numeric form and held as ISO 8601. The value is a string for every type."},{"name":"value","type":"string","default":"","description":"The text in the field; for date, time and date-time, the ISO 8601 form of what its segments give (2026-09-27, 14:30, 2026-09-27T14:30), or empty while a segment is empty or the value is not available."},{"name":"label","type":"string","default":"","description":"Names the input for assistive technology where no Field frames it; a filled or outlined input also draws it, as the label that floats in its box. Inside a Field leave it empty: the Field's label names the input, and is what floats."},{"name":"labelHidden","type":"boolean","default":false,"description":"Does not draw the floating label of a filled or outlined input, which stays the accessible name. Inside a Field, hide the label on the Field. A stacked input draws no label, so this changes nothing there."},{"name":"placeholder","type":"string","default":"","description":"A hint shown while the value is empty and the label is not in the input line (above, floated or hidden). Never a replacement for label. In a code field it is an example of the code and is drawn as code (TXI-53, TXI-54); a hint in words belongs in the supportingText of its Field. Ignored by a date, time or date-time field, whose empty segments each show their own."},{"name":"error","type":"boolean","default":false,"description":"Draws the input in its error condition and exposes it as invalid. A Field sets it from its own error; set it here only where no Field frames the input. What a value means is the product's to validate; the input never sets this itself. A date or time input also enters an error of its own while it is committed half-filled or with a value that is not available (TXI-30)."},{"name":"disabled","type":"boolean","default":false,"description":"Prevents focus, editing and form submission. Inside a Field, disable the Field, so that its label follows."},{"name":"readOnly","type":"boolean","default":false,"description":"The value can be focused, selected and copied, but not changed."},{"name":"clearable","type":"boolean","default":false,"description":"Draws a clear button while the value is not empty, for a field a person often empties whole: a filter, a search, a query. A single-line field of any type but date, time and date-time."},{"name":"clearLabel","type":"string","default":"","description":"The clear button's accessible name, in the product's language (\"Clear\"). Empty reads the product's words. Required while clearable is true.","words":"clearLabel"},{"name":"revealable","type":"boolean","default":false,"description":"Draws a reveal button in a password field, which shows the value as plain text and hides it again, so that a person can check what they typed. Ignored for every other type."},{"name":"revealed","type":"boolean","default":false,"description":"Whether a revealable password field shows its value as plain text. The person changes it with the reveal button (revealChange); the product may set it. It goes back to false when the field's form is submitted or reset, when the type changes and when the field is disabled."},{"name":"revealLabel","type":"string","default":"","description":"The reveal button's accessible name, in the product's language (\"Show password\"): one name for both states, whose pressed state says whether the value is shown. Empty reads the product's words. Required while revealable is true.","words":"revealLabel"},{"name":"multiline","type":"boolean","default":false,"description":"Accepts line breaks and shows several lines, sized as resize says. Ignored for password, date, time and date-time."},{"name":"minRows","type":"number","default":2,"description":"The fewest lines a multi-line field shows: the height of an empty auto-resized field, the starting and smallest height of a manually resized one, and the height of a fixed one."},{"name":"maxRows","type":"number","default":0,"description":"The most lines an auto-resized field grows to before it scrolls, and the tallest a manually resized one can be made; 0 is no limit. Ignored while resize is fixed."},{"name":"resize","type":"enum","values":["auto","manual","fixed"],"default":"auto","description":"How a multi-line field gets its height. auto: it follows the number of lines between minRows and maxRows, with an animated change, and has no handle. manual: it starts at minRows lines and the person resizes it with the handle in its bottom end corner. fixed: it stays at minRows lines, with no handle. Ignored unless multiline."},{"name":"resizeAxis","type":"enum","values":["vertical","both"],"default":"vertical","description":"What the person can resize by hand: the height only, or the height and the width. Ignored unless resize is manual."},{"name":"resizeLabel","type":"string","default":"","description":"The accessible name of the resize handle, in the product's language (\"Resize\"). The product's: Tanrei has no word for it. Empty reads the product's words. Required while the handle is shown.","words":"resizeLabel"},{"name":"wrap","type":"boolean","default":true,"description":"Whether a multi-line code field continues a line that does not fit on following rows (true), or keeps every line of the code on one row and scrolls sideways inside its container (false) — for code whose lines are read as rows: a table of values, a log, a file in which a line break means something. The value is the same either way. Ignored unless type is code and multiline is true: prose always wraps, and a single line always scrolls in its line."},{"name":"maxLength","type":"number","default":0,"description":"The most user-perceived characters the user can enter; 0 is no limit. Ignored for date, time and date-time."},{"name":"counter","type":"boolean","default":false,"description":"Keeps the character count (and maxLength, when set): part of the input's description and announced when typing pauses (TXI-19). The input draws none: a text field gives the count to its Field, which draws it at the end of its supporting row, and a product that frames the input by hand gives it to the Field's countText."},{"name":"counterText","type":"string","words":"characterCountText","default":"","description":"The count said to assistive technology while counter is true and maxLength is greater than 0: the whole sentence in the product's language with three places the input fills — {count} with the characters entered, {limit} with maxLength and {remaining} with how many more can be entered (\"{remaining} characters left\", \"{limit}文字中{count}文字\"). Empty reads the product's words; with neither, the count is said as the digits it is drawn in (\"12/40\"). A sentence that is right for every number, or a prop set per count where the language needs another form for one.","places":[{"name":"count","kind":"number","description":"The number of user-perceived characters in the value."},{"name":"limit","kind":"number","description":"maxLength."},{"name":"remaining","kind":"number","description":"How many more characters can be entered: maxLength less the count."}]},{"name":"counterNoLimitText","type":"string","words":"characterCountNoLimitText","default":"","description":"The count said to assistive technology while counter is true and maxLength is 0: the whole sentence with one place, {count}, filled with the characters entered (\"{count} characters\", \"{count}文字\"). Empty reads the product's words; with neither, the count is said as its digits.","places":[{"name":"count","kind":"number","description":"The number of user-perceived characters in the value."}]},{"name":"prefixText","type":"string","default":"","description":"Fixed text before the value, not part of it. In a code field it is code: drawn in the code face at the left of the value in every layout direction (TXI-53)."},{"name":"suffixText","type":"string","default":"","description":"Fixed text after the value, not part of it. In a code field it is code: drawn in the code face at the right of the value in every layout direction (TXI-53)."},{"name":"autocomplete","type":"string","default":"","description":"The autofill hint, as an HTML autofill field name (email, current-password, new-password, one-time-code, tel, postal-code, …); each platform maps it to its own content type. A code field left without one asks the platform to offer no remembered entry (TXI-55)."},{"name":"locale","type":"string","default":"","description":"A BCP 47 language tag (\"en-US\", \"ja-JP\") for how a date, time or date-time field shows and reads its value: the order of the year, month and day segments, the separators, the clock, the digits and the names of the units. Empty uses the platform's current locale. The calendar is the Gregorian calendar in every locale."},{"name":"min","type":"string","default":"","description":"The earliest value a date, time or date-time field accepts from the person, in its ISO 8601 form; empty for no limit."},{"name":"max","type":"string","default":"","description":"The latest value a date, time or date-time field accepts from the person, in its ISO 8601 form; empty for no limit."},{"name":"disabledDates","type":"strings","default":[],"description":"Dates inside min and max that a date or date-time field does not accept from the person, as ISO 8601 calendar dates — the same list the product gives its DateTimePicker. Ignored by a time field."},{"name":"invalidText","type":"string","default":"","description":"The words for a date, time or date-time input committed with some segments filled and others empty: given to the Field that frames it, which shows them as its error text (TXI-30)."},{"name":"unavailableText","type":"string","default":"","description":"The words for a date, time or date-time input committed with a value before min, after max or, for a date, listed in disabledDates: given to the Field that frames it, which shows them as its error text (TXI-30)."},{"name":"segmentEmptyText","type":"string","default":"","description":"What assistive technology reads as the value of a date or time segment that holds nothing yet, in the product's language (\"Empty\"). The product's: Tanrei has no word for it. Empty reads the product's words; with neither, an empty segment has no value text.","words":"segmentEmptyText"},{"name":"picker","type":"boolean","default":false,"description":"Shows the picker button in a date, time or date-time field. The field presents no picker itself: it emits pickerRequest, and the product presents a DateTimePicker in the matching mode and sets value to what was picked."},{"name":"pickerLabel","type":"string","default":"","description":"The accessible name of the picker button (\"Choose date\"). Required while picker is shown."}],"slots":[{"name":"leading-icon","description":"An icon at the start of the input."},{"name":"trailing-icon","description":"An icon at the end of the input, or the product's own icon-only Button. The clear button and a date or time field's picker button come after it."},{"name":"entries","description":"What was entered already — the product's own elements, or the chips of a component that holds the input (a chip field): laid out inside the box before the typing part, in lines that wrap (TXI-64). The text input gives them no role, no focus order and no key (TXI-66)."}],"events":[{"name":"input","description":"The user changed the value; carries the new value. Emitted for every change, not when the product sets value. A date, time or date-time field emits it when its value changes — when its last segment is filled, a filled field is edited, or it is emptied — not for a segment that leaves the value empty."},{"name":"change","description":"The user committed a changed value (focus left the field, or the action key was pressed in a single-line field); carries the value."},{"name":"action","description":"The user pressed the keyboard's action key (Enter, Return, Go, Search, Done) in a single-line field."},{"name":"pickerRequest","description":"The user activated the picker button of a date, time or date-time field; carries the value, type, min and max. The product presents the picker and sets value to the picked value."},{"name":"entryError","description":"The user committed a date, time or date-time field that is half-filled or whose value is not available; carries the reason (invalid: some segments are empty; unavailable: before min, after max or a listed date) and the text of the row of segments as drawn. The entry error itself is shown by the Field that frames the input (TXI-30)."},{"name":"resizeEnd","description":"The person finished changing the size of a field resized by hand: a drag of its handle ended, or a key or an activation of the handle changed the size (TXI-69). Carries lines, the number of lines the input shows, and width, the field's width in pixels WHILE resizeAxis is both (null otherwise). Not emitted when a change of resize, resizeAxis, minRows or maxRows gives the size back."},{"name":"revealChange","description":"The person showed or hid the value of a password field with the reveal button (TXI-72); carries revealed. Not emitted when the product sets revealed, or when the field hides the value itself (a submitted or reset form, a new type, the field disabled)."}],"states":["enabled","disabled","hovered","focused","error"],"behavior":[{"id":"TXI-1","text":"WHEN the user changes the value — by typing, deleting, pasting, cutting, dictating, autofill or an input method committing text — THE text input SHALL emit input once per change with the new value; WHEN the product sets value THE text input SHALL show it and SHALL NOT emit input or change."},{"id":"TXI-2","text":"WHEN the input loses focus (for a date, time or date-time field, when focus leaves its segments as TXI-43 says), or the user presses the keyboard's action key in a single-line field, with a value different from the one last committed (the value when the input gained focus, or at the last change) THE text input SHALL emit change once with the value."},{"id":"TXI-3","text":"WHEN the user presses the keyboard's action key in a single-line field THE text input SHALL emit action after any change it causes, and on the web, inside a form, SHALL then request the form's submission as a native input does unless action was cancelled; WHILE multiline is true the key SHALL insert a line break and SHALL NOT emit action. The submission SHALL be requested through the form's default button (BTN-30): WHILE the form has a submit button — the platform's own or a Button of type submit — the first of them in document order SHALL be pressed, so that its click is emitted and its name and value are sent, and WHILE that button is disabled nothing SHALL be submitted; only a form with no submit button is asked directly."},{"id":"TXI-4","text":"WHILE an input method is composing text THE text input SHALL leave the composition to the platform's native text element: it SHALL NOT write the value back into the element, trim, truncate, reformat or apply maxLength to it, and SHALL NOT emit change; input during a composition SHALL be the platform's own (marked as composing where the platform marks it), a committed composition SHALL always produce an input, and a value the product sets during a composition SHALL be applied when the composition ends. A composition that ends with the value as it was when the composition began — cancelled by the person, with Escape say, or committing nothing — is not a committed composition: THE text input SHALL emit no input as it ends, because the value did not change (TXI-1), unless the last input during the composition reported another value, when it SHALL emit one input with the value as it now is."},{"id":"TXI-5","text":"WHILE disabled is true — set by the product, or by the Field that frames it (FLD-14) — THE text input SHALL NOT be focusable or editable, SHALL NOT emit input, change or action, SHALL expose the disabled state to assistive technology, SHALL expose its prefix and its suffix as text of the disabled control — still part of the input's description (TXI-15) — so that the exemption WCAG 1.4.3 gives the text of an inactive control applies to them as it does to the value, SHALL be left out of form submission on the web, and SHALL render every part from the disabled component tokens of its variant (of its error parts WHILE error is true)."},{"id":"TXI-6","text":"WHILE hovered or focused THE text input SHALL render its container, active indicator, outline, floating label and its asterisk, input, placeholder, prefix and suffix, icons, caret and opacity, and the widths of its outline and active indicator, from the component tokens of the highest-precedence active state, with precedence focused over hovered; unlike a button, focus gained by pointer or touch SHALL select the focused state, because a field shows where typing will go however it was focused. Selected text SHALL be highlighted in comp.input-box.selection.color and drawn in comp.input-box.selection.content.color in every variant and state."},{"id":"TXI-7","text":"THE text input SHALL show focus by its focused tokens — the focused active indicator or outline is its focus indicator, drawn inside the container's edge by a stacked field (TXI-26) — and SHALL NOT draw the focus ring; WHERE sys.behavior.focus-style is glow it SHALL also draw the glow around the container while focused."},{"id":"TXI-8","text":"WHERE the container is shorter than the minimum target THE text input SHALL extend its hit area vertically to sys.target.touch for touch input and sys.target.pointer for fine pointers, without changing its visual size; a platform that cannot tell the input type SHALL use sys.target.touch. WHEN the user presses anywhere on the input outside an interactive slot element, the clear button, the reveal button, the picker button and the resize handle — the container's padding, a floating label, the prefix, the suffix, a decorative icon — THE text input SHALL focus the input (in a date, time or date-time field, the segment TXI-43 names); it SHALL draw no press answer, because a press on a field is not an action. A press on the label row of the Field that frames it focuses the input too, and is that Field's (FLD-12)."},{"id":"TXI-9","text":"WHEN variant or size names a value that the active design system does not have THE text input SHALL render with the default value's tokens, and in debug builds report the unknown value; WHEN variant names a value the active system has but the text input does not know by name (one a layer added) it SHALL draw no label of its own and draw its edge as a stacked input does (TXI-26), with that value's own tokens; WHEN type names a value the text input does not know it SHALL behave as text and in debug builds report the unknown value."},{"id":"TXI-10","text":"WHILE readOnly is true and disabled is false THE text input SHALL stay focusable, selectable and copyable, SHALL NOT let the user change the value, SHALL NOT emit input or change, SHALL expose the read-only state to assistive technology, SHALL be submitted with its form on the web, and SHALL render as an enabled field, including its hovered and focused states."},{"id":"TXI-11","text":"WHILE error is true — set by the product, or by the Field that frames it (FLD-8) — or an entry error lasts (TXI-30) THE text input SHALL render every part, in every state, from the error parts of its variant (comp.input-box.outlined.error.outline.color and the other error. parts), so that the box itself is marked and not only a text below it, and SHALL expose the invalid state to assistive technology (aria-invalid on the web). THE text input SHALL never set error itself and SHALL show no error text of its own: the words that say what is wrong are the errorText of the Field that frames it, which that Field draws and gives the input as its description (FLD-7, FLD-11)."},{"id":"TXI-13","text":"WHERE variant is filled or outlined, WHILE the input is focused, the value is not empty, or the platform reports the field autofilled, THE text input SHALL show its label floated, and otherwise rest it centred vertically in the container (for an outlined field, the input line) in comp.input-box.label.typescale.medium for size medium (and so on). A filled field floats the label to the top of the container, above the input line; an outlined field floats it onto the outline's top edge, centred on the line, and leaves a gap of comp.input-box.outline.notch-padding in the outline on each side of it. The floated label is drawn in comp.input-box.label.floated-typescale.medium for size medium (and so on). Beside a leading icon, an outlined field's floated label starts at comp.input-box.container.padding-inline.medium for size medium (and so on), over the icon, while its resting label starts at the input text; a filled field's label starts at the input text in both positions. WHEN the label does not fit on one line in the width it is given (a narrow field, a long or translated label, or enlarged text) THE text input SHALL wrap the label rather than cut it, resting and floated, and grow to hold it: a resting label wraps inside the container, which grows to hold its lines; a filled field's floated label takes as many lines as it needs above the input line; an outlined field's floated label sits on the outline's top edge with its last line centred on the line, the field reserving room above its container for the lines above that, and opens the outline's gap by the width of its widest line. The label SHALL never be drawn over the input or the value, and never be cut with an ellipsis, because text enlarged to 200% must lose no content. Neither variant SHALL change height when its label floats: an outlined field keeps the room for the floated lines above the last reserved while its label rests, as a filled field keeps its band (TXI-16). The label it floats SHALL be its accessible name (TXI-23): its own label where it has one, and otherwise the label of the Field that frames it. WHILE labelHidden is true — its own, or that Field's (FLD-25) — or it has no name THE text input SHALL draw no label (TXI-15). WHERE variant is stacked, or a variant laid out as stacked (TXI-9), THE text input SHALL draw no label at all: the label above it is the Field's row (FLD-2)."},{"id":"TXI-14","text":"WHEN the label floats or rests THE text input SHALL move and resize it, and open or close the outline's gap, over comp.input-box.motion.label-duration with comp.input-box.motion.label-easing; WHEN its state changes it SHALL animate colors and widths over the state duration of its size (comp.input-box.motion.state-duration.small, .medium or .large) with comp.input-box.motion.state-easing; WHERE motion is reduced it SHALL make both changes at once."},{"id":"TXI-15","text":"WHILE labelHidden is true or it has no name to float (TXI-13) THE text input SHALL NOT draw the floating label; WHILE the value is empty THE text input SHALL show placeholder only while the label is not in the input line — a stacked input, whose label is the row of its Field; floated; or not drawn — so that the two never overlap, and the segments of a date, time or date-time field SHALL be shown by the same rule (TXI-42); and it SHALL show prefixText before the value, comp.input-box.affix.gap from it, and suffixText at the end of the input line, comp.input-box.affix.gap after the input, both in the input's text style, exactly while the label is not in the input line; while shown, the prefix and suffix SHALL be part of the input's description, so that a unit or currency is read with the value."},{"id":"TXI-16","text":"THE text input SHALL be at least comp.input-box.stacked.container.height.medium tall WHILE variant is stacked (or a variant a design system adds, which is drawn as a stacked box) and at least comp.input-box.container.height.medium tall WHILE variant is filled or outlined, for size medium (and so on), and centre a single input line in it with at least comp.input-box.stacked.container.padding-block.medium above and below it in a stacked field and comp.input-box.container.padding-block.medium in a filled or an outlined field that does not draw its label (and so on) (a multi-line field sets its lines from the top instead, TXI-51); WHILE a filled field draws its label, resting or floated, it SHALL be at least twice comp.input-box.container.padding-block-with-label.medium plus one line of comp.input-box.label.floated-typescale.medium plus one line of comp.input-box.input.typescale.medium tall for size medium (and so on), so that it does not change height when the label floats. It SHALL grow with enlarged text and never clip it, pad its text by comp.input-box.container.padding-inline.medium and an icon by comp.input-box.container.padding-inline-with-icon.medium from the container's edge (and so on), round a stacked or outlined field's four corners and a filled field's top corners by comp.input-box.container.shape and a filled field's bottom corners by comp.input-box.container.shape-bottom, and ease them by sys.shape.corner-smoothing."},{"id":"TXI-17","text":"WHILE multiline is true and type is not password, date, time or date-time THE text input SHALL show its input as lines of comp.input-box.input.typescale.medium for size medium (and so on) and give it the height resize names — auto follows the number of lines (TXI-37, TXI-38), manual is the height the person gives it with its resize handle, starting at minRows lines (TXI-39–TXI-41), and fixed is minRows lines, with no handle, whatever maxRows is — scroll what does not fit, keeping the caret in view, align its floating label, icons, prefix and suffix with the first line, which keeps its place at the top of the container (TXI-51), and insert a line break on Enter; a minRows below 1 SHALL be 1. WHEN resize or resizeAxis names a value the text input does not know it SHALL behave as auto, or as vertical, and in debug builds report the unknown value; WHILE multiline is false it SHALL ignore resize, resizeAxis, minRows, maxRows and wrap; WHILE type is password, date, time or date-time THE text input SHALL stay single-line and in debug builds report a multi-line field of that type."},{"id":"TXI-18","text":"WHILE maxLength is greater than 0 THE text input SHALL refuse a user edit that would make the value longer than maxLength user-perceived characters (grapheme clusters: an emoji, or a letter with its accents, counts once) and shorten a paste to fit; it SHALL NOT cut a composition in progress but apply the limit when the composition is committed, and SHALL NOT shorten a value the product sets."},{"id":"TXI-19","text":"WHILE counter is true THE text input SHALL keep a count: the number of user-perceived characters in the value, counted as TXI-18 counts them — followed by a slash and maxLength WHILE maxLength is greater than 0 — written as digits and that one character, with no word. The count SHALL be part of the input's own description, before the description its Field gives (FLD-11), and WHEN typing pauses for one second THE text input SHALL announce the count once, politely, never on every keystroke — in both, as the product's sentence WHERE it has one: counterText WHILE maxLength is greater than 0, with {count}, {limit} and {remaining} filled, and counterNoLimitText WHILE it is 0, with {count} filled, each from the instance's prop or, WHILE that is empty, from the product's words of the keys characterCountText and characterCountNoLimitText, every number in the current locale's digits; and as the text of digits WHERE it has none, or WHILE the count is greater than maxLength (a value the product set: TXI-18 refuses typing past it), because a sentence of how many are left cannot say that. Another text between braces, and a brace that opens or closes nothing, SHALL be said as written and reported in debug builds. THE text input SHALL NOT draw the count: it SHALL let what holds it read the count, as the text of digits whatever sentence is said, at every moment, and SHALL say that it changed with every change of the value or of maxLength, a value the product sets included — so that a text field gives it to its Field, which draws it at the end of its supporting row (TXF-67, FLD-27), and a product that frames the input by hand gives it to that Field's countText. WHILE nothing draws it THE text input SHALL still keep, describe and announce the count."},{"id":"TXI-20","text":"THE text input SHALL give its input the keyboard and semantics of type: text a general keyboard; email an email keyboard without autocapitalization or autocorrection; password obscured, secure entry without autocorrection, shown as plain text only while it is revealed (TXI-72); number a numeric keyboard with a decimal separator; search a general keyboard whose action key reads as search; tel a phone keypad; url a URL keyboard without autocapitalization or autocorrection; code a general keyboard with nothing the platform would do to prose (TXI-55); date, time and date-time a numeric keypad on each number segment (TXI-45), without autocapitalization, autocorrection or suggestions. The value SHALL be a string for every type: number SHALL NOT parse, round or validate it, and date, time and date-time hold the ISO 8601 form of TXI-28."},{"id":"TXI-21","text":"THE text input SHALL pass autocomplete to the platform as its autofill hint (mapped to the platform's content type where it has one), and WHEN the platform autofills the field it SHALL float the label where its variant floats it (TXI-13) and emit input with the filled value; on the web, a field the browser marks as autofilled SHALL float its label even before the browser exposes the value to script."},{"id":"TXI-22","text":"THE text input SHALL draw an icon in the leading-icon or trailing-icon slot at comp.input-box.icon.size.medium for size medium (and so on), with the family and fill of an unselected icon, sys.icon.weight and an optical size clamped between sys.icon.optical-size.min and sys.icon.optical-size.max, colored by its leading-icon or trailing-icon part and comp.input-box.container.gap.medium from the text (and so on). Every glyph the text input draws — in these slots, in the clear button (TXI-71), in the reveal button (TXI-72) and in the picker button (TXI-32) — SHALL be a glyph of the system's icon set at a step of the sys.icon scale; the text input SHALL draw no mark of its own. An interactive element the product places in a slot SHALL keep its own tokens and be its own focus stop after the input. THE text input SHALL build in no action of its own but the clear button (TXI-71), the reveal button of a password field (TXI-72) and the picker button of a date or time field (TXI-32), and SHALL hide those a platform draws inside its native element (the web's search cancel button and password reveal button)."},{"id":"TXI-23","text":"THE text input SHALL take its name, its description and its required state from the Field that frames it, as every control a Field frames does (FLD-10, FLD-11): the Field's label is its accessible name, whether or not any label is drawn, and the Field's supporting text with, in error, the error text after it its description, after its own (the prefix and the suffix, TXI-15; the count, TXI-19). WHILE label is not empty THE text input SHALL use it as the accessible name instead, for an input no Field frames or one whose visible label is elsewhere. It SHALL never use placeholder as the name, WHILE it has either name THE text input SHALL expose that one alone, over a name the product gives it on the element (aria-label or aria-labelledby); and WHILE it has neither name and the product gives it a name of its own on the element — aria-label, or aria-labelledby naming an element — THE text input SHALL expose that name as its accessible name; IF it has none of the three it SHALL still render and work, and in debug builds SHALL report that it has no accessible name. WHILE its Field says it is required THE text input SHALL expose the required state to assistive technology (and, on the web, a missing value to the form's constraint validation), whichever mark is drawn and where none is; it has no requirement setting of its own, SHALL NOT validate because of one, and SHALL NOT raise an entry error on an empty date for it (TXI-30)."},{"id":"TXI-24","text":"WHEN the layout direction is right-to-left THE text input SHALL mirror its layout — leading icon on the right, trailing icon, clear button, reveal button and picker button on the left, the prefix at the field's start edge and the suffix at its end edge beside a value laid out by its own direction (beside one that is always left-to-right they stand as TXI-67 says), the label floating from the right edge with its asterisk to its left, the resize handle in the container's bottom-left corner, where a drag or an arrow to the left widens a field that resizes both ways — and SHALL lay out the typed text by its own direction: the base direction of the value's first strong character and, WHILE the value is empty or holds no strong character (digits, spaces, punctuation), the layout direction, so that the caret of an empty field and its placeholder stand at the field's start edge. A single-line value SHALL be aligned to the start edge of its own direction (left-to-right text typed into a right-to-left field sits at the left), and in a multiline field each paragraph SHALL take the direction and the alignment of its own first strong character; except that the values of email, url, tel, number and password fields SHALL be laid out left-to-right, aligned to the field's start edge or, beside a prefix, to the prefix (TXI-67), the input line of a code field as one left-to-right row that begins at the left (TXI-53), and the segments of a date, time or date-time field as one left-to-right row at the field's start edge, in the order the locale's own form gives (TXI-42)."},{"id":"TXI-26","text":"WHILE variant is stacked THE text input SHALL draw its container in its container color with no edge at rest (comp.input-box.stacked.outline.color is transparent), and WHILE focused SHALL draw its focused outline color and width as a line inside the container's edge, following its corners, that takes no layout space: the container's size and the places of the input text, the icons, the affixes and the picker button SHALL NOT change as the line appears, thickens or goes, and it SHALL change over the state duration of its size (comp.input-box.motion.state-duration.small, .medium or .large) with comp.input-box.motion.state-easing (TXI-14). WHILE the field is in error — error is true, or the entry error of TXI-30 — it SHALL draw the same inner line at rest, in comp.input-box.stacked.error.outline.color at comp.input-box.outline.width, so that the field itself is marked and not only its text. A hovered stacked field SHALL show the state layer on its container and draw no edge."},{"id":"TXI-28","text":"WHILE type is date, time or date-time THE text input SHALL hold as its value the ISO 8601 form of what its segments give — a calendar date (2026-09-27), a time of day in hours and minutes on the 24-hour clock (14:30), or both joined by T (2026-09-27T14:30), with no time zone — or an empty string (TXI-46), and SHALL show it not as one editable text but as a row of segments in the locale's numeric form (TXI-42), each entered, stepped and cleared on its own (TXI-43–TXI-45). The locale SHALL be locale, or the platform's current locale while locale is empty, and the calendar the Gregorian calendar in every locale. THE text input SHALL ignore placeholder, maxLength, prefixText and suffixText for these types, because every empty segment shows its own placeholder and the row is not free text, and in debug builds SHALL report one that is set."},{"id":"TXI-29","text":"WHEN the user pastes text while a segment of a date, time or date-time field has focus, or dictation or the platform's autofill hands the field text, THE text input SHALL read the whole text, whichever segment has focus: as a date WHEN it holds exactly three groups of digits (ASCII or the locale's) separated by one or more other characters, in the order of the locale's numeric form, or year, month, day WHEN the first group has four digits, with a four-digit year and a month and day that exist in that year, leading zeros optional; as a time WHEN it holds an hour and minutes as two groups of digits separated by one or more other characters, the hour from 0 to 23, or from 1 to 12 WHEN the locale's name for the morning or the afternoon, or a, p, am or pm in any case, comes before or after them; as a date-time WHEN it holds such a date and then such a time, separated by white space, a comma or T. WHEN the text reads as a value of the field's type THE text input SHALL fill every segment from it, move focus to the last segment and emit input as TXI-46 says; WHEN it reads as nothing THE text input SHALL leave every segment as it was. WHEN the user copies while a segment has focus THE text input SHALL put the whole row on the clipboard as drawn — the locale's form, with an empty segment's placeholder left out — and WHEN the user cuts it SHALL do the same and then empty every segment, unless readOnly is true."},{"id":"TXI-30","text":"WHEN the user commits a date, time or date-time field (TXI-43: focus leaves it, or the action key is pressed) WHILE some of its segments are filled and others are empty, or WHILE every segment is filled and what they give is not available (TXI-46), THE text input SHALL keep its segments as they are, emit change if the value changed since the last commit (TXI-2), emit entryError once with the reason — invalid for a field that is not completely filled, unavailable for a date or time before min, after max or listed in disabledDates — and the text of its row of segments as drawn, and enter an entry error: it SHALL render and be exposed exactly as WHILE error is true (TXI-11), and SHALL report the refusal to the Field that frames it with invalidText or unavailableText as its words, which that Field shows in its supporting row and announces (FLD-28: its errorText while that one is empty); WHILE no Field frames it that text SHALL be part of the input's description. The entry error SHALL end with the next edit of a segment or WHEN the product sets value, and THE text input SHALL then withdraw its report; while it lasts, on the web, the field SHALL report badInput for a half-filled row, rangeUnderflow or rangeOverflow for a value before min or after max, and a custom error for a listed date, to the form's constraint validation. A field whose segments are all empty SHALL commit without an entry error, whether or not its Field says it is required (TXI-23)."},{"id":"TXI-31","text":"WHEN the product sets value on a date, time or date-time field THE text input SHALL fill every segment from it — or empty every segment for an empty value, except as TXI-46 keeps a half-filled row — and end any entry error, and SHALL NOT emit input or change (TXI-1) nor check it against min, max and disabledDates, because the field validates what the person enters and the product what it sets; WHEN value, min or max is neither empty nor the ISO 8601 form of the type THE text input SHALL treat it as empty, and an entry of disabledDates that is not an ISO 8601 calendar date as absent, and in debug builds report it, and it SHALL report a min later than max."},{"id":"TXI-32","text":"WHILE type is date, time or date-time, picker is true and readOnly is false THE text input SHALL draw a picker button at the end of its container: an icon-only Button of the text variant and of the Button size with the field's size name (Button's default size for a field size Button does not have), showing the calendar_month glyph for date and date-time and the schedule glyph for time, its glyph centred where a trailing icon's would be, with the trailing-icon slot's content, if any, before it, comp.input-box.container.gap.medium away for size medium (and so on). It SHALL be a Button in every respect — its own tokens, its press, focus ring and target (BTN-5, BTN-8, BTN-9, BTN-10) — named by pickerLabel (an empty pickerLabel reported in debug builds), exposed as opening a dialog (aria-haspopup=\"dialog\" on the web), and a focus stop after the last segment and any interactive slot element; WHILE the field is disabled it SHALL be disabled with it. WHERE type is not date, time or date-time THE text input SHALL ignore picker and, WHILE picker is true, report it in debug builds."},{"id":"TXI-33","text":"WHEN the user activates the picker button THE text input SHALL emit pickerRequest once with the value, type, min and max — the empty value WHILE the row is half-filled or not available, without raising the entry error of TXI-30, because the picker is about to give a whole value — and SHALL NOT itself change the value, move focus or present anything: the product presents the picker — a DateTimePicker whose mode is the field's type (date, time or date-time), a docked one anchored to the field — and that picker returns focus to the picker button when it closes (DTM-4). WHEN the product then sets value to the picked value THE text input SHALL fill its segments as TXI-31 says, without emitting input or change, because the picker's own change already told the product."},{"id":"TXI-34","text":"THE text input SHALL take its layout direction from where it is used — the direction of the nearest ancestor that sets one, and the platform's own where none does — and SHALL have no direction setting of its own; WHEN that direction changes while the text input is shown THE text input SHALL draw itself for the new direction at once, without a motion of its own, keeping its value, its selection and caret, and its focus."},{"id":"TXI-35","text":"WHERE the layout direction is right-to-left THE text input SHALL draw the glyphs of its leading-icon and trailing-icon slots mirrored left to right exactly when the system's icon set marks that glyph's name as mirrored or the product forces mirroring for that use, and unmirrored when the product forbids it: the icon helper mirrors the glyph inside its own box, about the box's vertical centre line, changing neither its place, size, color and fill nor the order TXI-24 gives. THE text input SHALL NOT mirror a glyph itself, and SHALL NOT mirror content the product gives as an image or a view of its own rather than by a glyph's name. The clear button's close (TXI-71), the reveal button's visibility and visibility_off (TXI-72) and the picker button's calendar_month and schedule (TXI-32) are not marked and are never mirrored."},{"id":"TXI-36","text":"THE text input SHALL lay out its floating label, its placeholder, its prefix and its suffix as text of its own direction, isolated from the text around it: each takes the base direction of its first strong character, or the layout direction where it has none, so that a left-to-right word, a number with its sign or unit, a telephone number and an address keep their own order in a right-to-left layout and reorder nothing beside them; THE text input SHALL still place each and align its lines by the layout direction, not by the text's own, except the prefix and the suffix of a value that is always left-to-right, which TXI-67 places. WHILE type is code the placeholder, the prefix and the suffix are code and SHALL be laid out as TXI-53 says instead; the floating label stays as this sentence says."},{"id":"TXI-37","text":"WHILE multiline is true and resize is auto THE text input SHALL place no resize handle and SHALL make its input exactly as tall as its lines of text — a line the text wraps onto counts as a line, and in a code field whose lines do not wrap (TXI-58) only the lines of the code count — never fewer than minRows lines and never more than maxRows lines (no upper limit while maxRows is 0, and exactly minRows lines while maxRows is smaller than minRows); WHILE the text has more lines than maxRows it SHALL scroll inside the input and keep the caret in view, and WHILE every line fits it SHALL show no scrollbar. THE height SHALL follow every cause of a changed number of lines — typing, deleting, pasting, a value the product sets, a changed width, enlarged text — and the container and whatever follows the input in the layout — the supporting row of its Field first — SHALL move with it."},{"id":"TXI-38","text":"WHEN the number of lines an auto-resized field shows changes because its value changed — by the person, or because value was set — THE text input SHALL change its height from the one shown to the new one over comp.text-input.motion.resize-duration with comp.text-input.motion.resize-easing, as one motion: however many lines arrive or leave at once, the height SHALL go from the one shown straight to the end height, which maxRows bounds, and never through a height for each line; a change that arrives while a motion is running SHALL continue from the height then shown to the new end height, and changes SHALL never be queued one after another. At every frame of the motion the first line and everything TXI-51 centres on it SHALL stay where they are, the container's bottom edge and whatever follows the input SHALL move with the height, the line that holds the caret SHALL stay in view, and no scrollbar SHALL be shown WHILE the end height holds every line. THE text input SHALL make the change at once, without that motion, WHEN it is first drawn or drawn again after it was not shown; WHEN the height changes because its width, its text size, minRows or maxRows changed; WHILE a pointer or a touch is held down in its text, so that text under a selection being dragged never moves away from the finger; and WHERE motion is reduced."},{"id":"TXI-39","text":"WHILE multiline is true, resize is manual and disabled is false THE text input SHALL start at minRows lines, SHALL NOT change its height with its content, and SHALL place a Handle in the container's bottom corner at its end edge, its box against both edges, over the text and inside a stacked field's inner line: size small, axis vertical WHILE resizeAxis is vertical and both WHILE it is both, corner bottom-end, and revealed WHILE a fine pointer is over the field or the input has focus (out of sight otherwise until it is used, HDL-23). Everything the handle draws — its line or arc, its box, its states, its focus ring — and its target and resize cursor are the Handle's (HDL-1 to HDL-5, HDL-13, HDL-14, HDL-23): the text input draws no glyph for it and gives it no color of its own, so that it is drawn alike in every variant and in error. WHEN the person drags the handle (its resize, HDL-6) THE text input SHALL follow without motion: vertically, the input's height between minRows lines and maxRows lines (no upper limit while maxRows is 0); and WHILE resizeAxis is both also horizontally, the field's own width, its end edge following the pointer, no wider and no narrower than its layout allows and never narrower than its inline paddings, its icons and sys.target.touch; WHILE resizeAxis is vertical a horizontal movement SHALL change nothing. THE text input SHALL keep the size the person gave it until resize, resizeAxis, minRows or maxRows changes, SHALL wrap its text to a new width and scroll what does not fit, and SHALL NOT select text, move the caret or take focus from the input because of a drag. WHILE readOnly is true the handle SHALL stay, because a person may need more of the text in view; WHILE disabled is true THE text input SHALL keep its size and place no handle."},{"id":"TXI-40","text":"THE text input SHALL leave the handle's hit area and its resize cursor to the Handle (HDL-5): at least sys.target.touch for touch input and sys.target.pointer for fine pointers, centred on the handle's box and reaching past the container's edges where it must, without changing the handle's drawn size or the field's layout. A press that begins inside that area SHALL belong to the handle and SHALL NOT place the caret, the text under it staying reachable from the keyboard and by scrolling."},{"id":"TXI-41","text":"THE text input SHALL make the handle one focus stop after the input, any interactive slot element and the picker button — a window splitter (HDL-8) — and give it the number of lines the input shows as its value, minRows as its min, as its max maxRows or, WHILE maxRows is 0, the greater of the lines shown and the lines the text needs, and resizeLabel as its label; WHILE resizeLabel is empty and the product's words give none it SHALL still render and in debug builds report that the handle has no accessible name. WHEN the handle asks for a step (HDL-9, HDL-10) THE text input SHALL answer it: along the block axis, amount one makes the input one line taller for direction 1 and one line shorter for −1, amount large as many lines as minRows, and amount limit returns it to minRows lines for −1 (Home) and takes it to maxRows lines for 1 (End; WHILE maxRows is 0, to the height that shows every line of the text); along the inline axis, which the handle has WHILE resizeAxis is both, direction 1 (the arrow that points to the field's end edge: Right Arrow in a left-to-right layout, Left Arrow in a right-to-left one) widens the field by one line height of its input text — as many as minRows for amount large — and −1 narrows it by as much, each within the limits of TXI-39. WHEN the handle is activated (HDL-7: a click or a tap that ends where it began, Enter or Space) THE text input SHALL make the input as tall as its text needs, within minRows and maxRows, and WHEN it is already that tall SHALL return it to minRows lines; and WHILE resizeAxis is both the same activation SHALL also make the field as wide as its layout allows — its own maximum width, or the width of its place where it has none — and, WHEN it already is that wide, give it back the width it had before the person resized it, so that neither the height nor the width of a field depends on a drag (WCAG 2.5.7, which a keyboard alone does not meet). A change made from the keyboard or by activation SHALL move as TXI-38 says."},{"id":"TXI-69","text":"WHEN the person has changed the size of a field resized by hand — a drag of its handle ended (its resizeEnd, HDL-6), or a step or an activation of the handle (TXI-41) changed the lines the input shows or the field's width — THE text input SHALL emit resizeEnd once with the lines the input shows and, WHILE resizeAxis is both, the field's width, so that a product can keep the size a person chose; a step or an activation that changed nothing, and a size given back because resize, resizeAxis, minRows or maxRows changed, SHALL emit none."},{"id":"TXI-42","text":"WHILE type is date, time or date-time THE text input SHALL draw in its input line, in place of one text input, one segment for each unit of the value, in the order and with the separators of the locale's numeric form: year, month and day for a date (month, day, year with \"/\" in en-US, \"09/27/2026\"; year, month, day in ja-JP, \"2026/09/27\"; day, month, year with \".\" in de-DE, \"27.09.2026\"); hour and minute, and a day-period segment where the locale's clock is the 12-hour one, for a time (\"2:30 PM\" in en-US, \"14:30\" in ja-JP); and for a date-time the date's segments, the text the locale joins them with, then the time's (\"09/27/2026, 2:30 PM\" in en-US). A filled segment SHALL show its number in the locale's digits — the year with four digits, the month, the day and the minute with two, the hour as the locale writes it — or the locale's name for the morning or the afternoon, in the input's text style and color; an empty segment SHALL show its placeholder in the placeholder color (the focused one as TXI-43 says): yyyy, mm, dd, hh and mm, and for the day period the locale's name for the morning. The separators and the joining text are not segments: they SHALL be drawn in the placeholder color WHILE every segment is empty and in the input color otherwise, SHALL NOT take focus, and SHALL be kept from assistive technology. Each segment SHALL be as wide as the wider of its placeholder and its widest filled form — four digits for a year, two for the month, the day, the hour and the minute, the wider of the locale's two names for a day period — with comp.text-input.segment.padding-inline on each side, whether it is empty, half typed or filled, so that the row never shifts as it fills or empties and no placeholder runs into a separator; a filled number stands at the end of its cell where it is narrower than the cell (an hour of one digit), and every other one in its middle. The row SHALL start where the input text starts, at the field's start edge, and SHALL be laid out left to right in every layout direction, a day-period segment isolated in its own direction."},{"id":"TXI-43","text":"WHILE type is date, time or date-time and disabled is false THE text input SHALL make each segment a focus stop of its own, in the row's order: Tab SHALL move from a segment to the next, and from the last to whatever follows it in the field (an interactive slot element, the picker button), and Shift+Tab the other way; Right Arrow SHALL move focus to the segment drawn to the right and Left Arrow to the one drawn to the left, stopping at the row's ends — the same segments in a right-to-left layout, because the row runs left to right there too. THE text input SHALL count as focused (TXI-6, TXI-7) WHILE any of its segments has focus, and SHALL draw the focused segment as selected text — comp.input-box.selection.color behind it across its width, and its text, the placeholder of an empty segment included, in comp.input-box.selection.content.color — with no caret; no part of the row can be selected on its own. WHEN the user presses a segment THE text input SHALL focus that segment; WHEN the user presses the field anywhere else that TXI-8 gives to the input THE text input SHALL focus the first empty segment, or the last segment WHILE none is empty. Moving focus between its segments, or between them and its picker button, SHALL NOT commit the field: it commits (TXI-2, TXI-30) WHEN focus leaves its segments and its picker button for anything else, or WHEN the action key is pressed on a segment."},{"id":"TXI-44","text":"WHEN the user presses Up Arrow or Down Arrow on a segment, and readOnly is false, THE text input SHALL raise or lower that segment by one within its own range — a year from 1 to 9999, a month from 1 to 12, a day from 1 to the last day of the month that the month and year segments give (31 while the month is empty, 29 for a February whose year is empty), an hour from 0 to 23 or from 1 to 12 by the locale's clock, a minute from 0 to 59, a day period between its two names — wrapping from the last value to the first and back, and changing no other segment, except that a day beyond the last day of a newly chosen month or year SHALL become that last day. On an empty segment either key SHALL fill it with the current date's or time's value for that unit, from the device's clock. Page Up and Page Down SHALL step by 5 years, 2 months, 7 days, 2 hours or 15 minutes, and Home and End SHALL set a month, day, hour or minute to the first and the last value of its range. min, max and disabledDates SHALL NOT limit a step: a value that is not available is refused as a whole (TXI-46), so that a person can pass through a month that is not available on the way to one that is."},{"id":"TXI-45","text":"WHEN the user types a digit — ASCII or the locale's, from a keyboard, a touch keypad or the text an input method commits — on a number segment, and readOnly is false, THE text input SHALL take it as the next digit of that segment's number WHILE the digits typed since the segment took focus still form a number in its range (TXI-44), and SHALL otherwise start the number again with that digit; a segment that holds one digit SHALL show it in its filled form, with its leading zero. WHEN no further digit could extend the number — after two digits of a month, day, hour or minute, after a first digit too large to begin a two-digit value in the range (a month's 2 to 9), after four digits of a year — THE text input SHALL move focus to the next segment, and it SHALL do the same WHEN the user types a character of the separator that follows a segment that is not empty (\"/\", \".\", \"-\", \":\" or a space). On a day-period segment the first letter of the locale's name for the morning or for the afternoon, or a or p in any case, SHALL set it. Backspace or Delete SHALL remove the last digit of the focused segment, or the whole of a day period, and Backspace on a segment that is already empty SHALL move focus to the previous segment without clearing it. A year segment that holds fewer than four digits SHALL count as empty for the value, because a short year is never guessed into a century. THE text input SHALL ignore every other character, SHALL take nothing from an input method while it is composing (TXI-4), and on a touch platform SHALL ask for the numeric keypad while a number segment has focus. WHILE readOnly is true the segments SHALL take focus and be copied from (TXI-29) and SHALL NOT change."},{"id":"TXI-46","text":"WHILE type is date, time or date-time THE text input SHALL have a value other than the empty string only WHILE every segment is filled and the date or time they give is available: not before min, not after max and, for a date or a date-time, its date not listed in disabledDates. WHEN an edit of a segment changes the value — the last empty segment is filled, a segment of a filled row is typed over, stepped or cleared, or what the row gives becomes or stops being available — THE text input SHALL emit input once with the new value (TXI-1); an edit that leaves the value as it was, such as a segment filled while another is still empty, SHALL emit nothing. WHEN the product sets value to what the field's value already is THE text input SHALL leave its segments as they are, so that a product that echoes the empty value back while a person is half-way through a date does not clear what they entered."},{"id":"TXI-47","text":"WHILE type is date, time or date-time THE text input SHALL expose its row of segments as a group named as the input is (TXI-23) and each segment as a spin button: its name the locale's own name for its unit (in English \"year\", \"month\", \"day\", \"hour\", \"minute\" and \"AM/PM\") followed by that name; its minimum and maximum the range TXI-44 gives it; its current value its number, with as its value text the number and the locale's month name for a month (\"9 – September\"), the hour with its day period on a 12-hour clock (\"2 PM\") and the period's name for a day period; and WHILE the segment is empty no current value, and segmentEmptyText as its value text. The description the input has (TXI-23) SHALL be the description of the first segment, and of every segment WHILE the field is in error; every segment SHALL be exposed as invalid WHILE the field is in error (TXI-11, TXI-30), as required WHILE its Field says it is required (TXI-23) and as read-only WHILE readOnly is true, and WHILE disabled is true SHALL be exposed as disabled and left out of the focus order. THE text input SHALL keep the separators, the joining text and the placeholders from assistive technology, and SHALL add no announcement of its own WHEN a segment changes: a spin button's new value is read by the platform."},{"id":"TXI-50","text":"WHERE variant is filled or outlined, WHILE the floating label is drawn (TXI-13) and the Field that frames the input gives it an asterisk as its required mark (FLD-25) THE text input SHALL draw the character \"*\" after the label's text, comp.input-box.requirement.asterisk-gap from it, in the label's text style and at the label's place, resting and floated with it, colored by its required-asterisk part (comp.input-box.outlined.required-asterisk.color for an outlined input; its error. part WHILE the input is in error), and SHALL keep it from assistive technology, because the required state already says it (TXI-23). It SHALL draw no tag: which mark a required control gets is the Field's to say (FLD-6), and a tag named there reaches a floating label as the asterisk. WHILE the floating label is drawn and the Field gives it an optional text (FLD-25) THE text input SHALL draw that text after the label's text, one word space from it, in the label's text style and color, at the label's place, resting and floated with it and wrapping with it, and SHALL keep it from assistive technology, which hears it in the description (FLD-11): a form that marks its optional fields shows which ones may be left out in a label that floats as in one above the box. WHILE no Field frames it, or the Field gives no mark, or the label is not drawn, THE text input SHALL draw no mark."},{"id":"TXI-51","text":"WHILE multiline is true THE text input SHALL align the content of its container to the container's top edge, not to its middle. It SHALL draw the first line of its input at the distance from the top edge at which a single-line field of the same variant, size, label and text size draws its one line (TXI-16): centred half of comp.input-box.stacked.container.height.medium below the top edge in a stacked field and half of comp.input-box.container.height.medium in an outlined field, for size medium (and so on), lower by the band of the label in a filled field that draws its label, and lower where enlarged text makes a single-line field taller. It SHALL centre on that first line the leading and the trailing icon, an interactive element the product placed in a slot, the prefix and the suffix, the first line of the placeholder and the resting label of an outlined field, and SHALL rest a filled field's label where a single-line filled field rests it; every further line SHALL follow below the first, and any height the container has beyond one line — further lines of text, the room minRows asks for, the height a person gave it with the handle — SHALL lie below the first line, never above it. WHEN the container's height changes — by an auto resize and its motion (TXI-38), by the resize handle (TXI-39, TXI-41), or because minRows or maxRows changed — the first line, the label, the icons, the slot elements, the prefix and the suffix SHALL keep their distance from the container's top edge during the change and after it, and SHALL NOT move at any frame of the motion; and the resize handle SHALL stay against the container's bottom edge and its end edge (TXI-39). WHILE the text scrolls inside the input (TXI-37) only the text SHALL move. A multi-line field that shows one line SHALL be drawn exactly as a single-line field of the same variant and size; WHILE multiline is false THE text input SHALL lay out as TXI-16 says, unchanged."},{"id":"TXI-52","text":"THE text input SHALL have no words of its own: it SHALL take resizeLabel, clearLabel, revealLabel and segmentEmptyText from the instance's prop and, WHILE that is empty, from the product's words of the same name, and counterText and counterNoLimitText as TXI-19 says, — the words a product sets once for all its components — and from nowhere else. WHILE neither gives resizeLabel the handle is as TXI-41 says, and WHILE neither gives clearLabel or revealLabel the clear button or the reveal button is as TXI-71 or TXI-72 says: drawn, working and reported. IF neither gives segmentEmptyText THE text input SHALL expose an empty segment with no value and no value text, and in debug builds SHALL report the missing words once. The name of a segment's unit, the month's name and the period's name (TXI-47) are the platform's locale data and not the text input's words; the count (TXI-19) is drawn as digits and a slash, and said as the product's sentence where it has one; and the words of a requirement are the Field's (FLD-24)."},{"id":"TXI-53","text":"WHILE type is code THE text input SHALL lay out its input line — the prefix, the value with its caret and its selection, the placeholder and the suffix — as one left-to-right row in every layout direction (COD-20, ICD-8): the row begins at the left end of the room the input line has between the icons, with the prefix first, the value beside it and the suffix at the row's right end; the value SHALL be aligned to the left, on one line and on many, in a field that is empty and in one that holds anything — never to the field's start edge, which TXI-24 gives the values of email, url, tel, number and password fields and which is the right in a right-to-left layout; the value's base direction left-to-right whatever its first strong character is and whether or not it holds one, so that an empty field, a field that holds only a bracket and a field whose first string is written in a right-to-left script are laid out alike; every line of a multi-line field left-to-right and beginning at the left; the caret of an empty field and its placeholder at the left; and sideways scrolling starting at the left. Text of a right-to-left script inside the code — a string, a comment — SHALL be laid out by the bidirectional algorithm inside its left-to-right line and SHALL reorder nothing outside its own run. WHERE the layout direction is right-to-left THE text input SHALL mirror everything else as TXI-24 says, and nothing of the row: the label floated from the right, the leading icon on the right and the trailing icon on the left of the row, and the resize handle in the container's bottom-left corner; the label row and the supporting row of its Field follow the page too (FLD-18, FLD-21). WHILE the layout direction is right-to-left and resize is manual — the one case in which the resize handle stands in the corner where a line of code begins — THE text input SHALL give the input room after its last line of the handle's box (comp.handle.container.breadth.small), as room the input scrolls through and not as height: the field SHALL be exactly as tall as the same field in a left-to-right layout, and WHEN the input is scrolled to its end the last line SHALL stand wholly above the handle's box. In a left-to-right layout, and while resize is auto or fixed, THE text input SHALL add no such room. WHEN the layout direction changes (TXI-34) the row SHALL keep its direction, its scroll offsets, its selection and its caret."},{"id":"TXI-54","text":"WHILE type is code THE text input SHALL draw the value, the placeholder, the prefix and the suffix in the code face: the family, the weight and the letter spacing of comp.text-input.code.typescale at the font size and the line height of comp.input-box.input.typescale.medium for size medium (and so on), so that a code field is exactly as tall as a text input of its variant and size, sets its first line where that field does (TXI-16, TXI-51) and keeps the text size below which a touch browser zooms into a field. It SHALL draw the characters as they are held — every space kept, at the start, in the middle and at the end of a line; a tab character advancing to the next multiple of comp.text-input.code.tab-size columns of the face; no two characters joined into a ligature; nothing hyphenated, transformed or substituted — and in the colors of its variant and state, unchanged: THE text input SHALL NOT color any part of the code by what it means. The floating label SHALL keep its own text style, and the rows of the Field that frames it theirs."},{"id":"TXI-55","text":"WHILE type is code THE text input SHALL ask its platform to leave the text alone: no spelling or grammar check and no marks of one; no autocorrection; no autocapitalization; no predictive or suggested words; no substitution of typed characters (straight quotation marks for curved ones, hyphens for dashes, two spaces for a full stop and a space, a text replacement of the person's device); no space added or removed around what is pasted or cut; no offer to translate the value; and, WHILE autocomplete is empty, no offer of an earlier entry. It SHALL give touch input a general keyboard — the one that puts ASCII letters and punctuation first where the platform has such a keyboard — SHALL NOT keep the person from another keyboard, script or input method, and SHALL leave a composition to the platform as TXI-4 says, because a string or a comment inside code may be in any language. THE text input SHALL hold the value exactly as it was entered: it SHALL NOT trim it, change its line breaks beyond what TXI-56 says, normalize its characters, parse it or validate it. What the code means, and whether it is well formed, is the product's: the product reads the value, and sets error, and its Field's errorText (TXI-11, FLD-7)."},{"id":"TXI-56","text":"WHEN text is pasted, dropped or dictated into a field whose type is code THE text input SHALL take its plain text alone — no font, size, color, link, list or table of a formatted source — character for character: tab characters, no-break spaces and other spaces as they are, nothing converted to another character, and in a multi-line field every line break of the text as one line break of the value, whichever form the source wrote it in. A single-line field SHALL take a line break in such text as its platform's one-line text element does and SHALL NOT commit, submit or emit action because of one. maxLength SHALL apply as TXI-18 says. WHEN the person copies or cuts from a code field THE text input SHALL put on the clipboard the selected characters of the value alone, with the line breaks of the value and none that wrapping added (TXI-57)."},{"id":"TXI-57","text":"WHILE type is code, multiline is true and wrap is true THE text input SHALL continue a line that does not fit on following rows: it breaks first at the spaces of the line and, where a part with no space is wider than the row, between any two characters; a following row SHALL begin at the left edge of the input, SHALL add no character and no mark, and SHALL NOT change the value, which holds the line breaks of the code alone; and the input SHALL NOT scroll sideways. A row the code wraps onto counts as a line for the field's height (TXI-37). WHILE type is not code, or multiline is false, THE text input SHALL ignore wrap — prose wraps as TXI-17 says and a single line scrolls within its line — and WHILE wrap is false there SHALL report it in debug builds."},{"id":"TXI-58","text":"WHILE type is code, multiline is true and wrap is false THE text input SHALL NOT break a line of the code: WHEN a line is wider than the input THE input SHALL scroll sideways inside the container — by pointer, touch and the wheel, and from the keyboard by moving the caret, which SHALL be kept in view (TXI-37) — beginning at the left, with the input's inline padding after the longest line scrolling with the code so that its last character can be brought clear of the container's edge. Only the code SHALL move (TXI-51): the container and its edge, the floating label, the icons, the prefix and the suffix and the resize handle SHALL keep their places, as do the rows of its Field. The length of a line SHALL change the width of nothing: the field is as wide as its layout makes it whatever it holds, no part of it SHALL count toward the width of the page or of a scrolling region the field stands in, and the page SHALL NOT scroll sideways for it. WHILE resize is auto the field's height SHALL be the lines of the code (TXI-37) and, WHERE the platform draws a sideways scrollbar that takes room, that room besides, so that no line stands under the scrollbar and none is scrolled up or down for its sake; a gesture or a wheel movement up or down over an input that cannot scroll that way SHALL scroll the page. THE input SHALL stay the field's one text stop in the focus order — the scrolling adds none — and the field SHALL show focus as TXI-7 says, on the container, which does not scroll; WHILE readOnly is true the caret SHALL still move and the input still scroll with it (TXI-10)."},{"id":"TXI-59","text":"WHILE type is code THE text input SHALL change what no key does: Tab and Shift+Tab SHALL move focus out of the input as from every text input and SHALL never insert a character or an indent, so that the keyboard is never held in the field; Enter SHALL do what TXI-3 says for a single-line and for a multi-line field, with no indent added to the new line; and no key SHALL insert a matching bracket or quotation mark, change the indent of a selection, or comment a line. A tab character that reaches the value by a paste (TXI-56) or from the product SHALL be kept and drawn as TXI-54 says, and SHALL be removed by Backspace or Delete as one character."},{"id":"TXI-60","text":"WHILE type is code THE text input SHALL be exposed to assistive technology exactly as the text input of its other types is: a text box — a multi-line one WHILE multiline is true — named and described as TXI-23 says, and invalid, required, read-only or disabled as TXI-5, TXI-10, TXI-11 and TXI-23 say. It SHALL add no role, no role description, no word and no announcement for holding code, because Tanrei has no words (TXI-52) and what the field expects is said by the product in the label and the help of its Field; it SHALL expose the value character for character, with no part of it marked as misspelled; it SHALL keep the caret's and the selection's reporting to the platform's text element; and it SHALL NOT announce that a line wrapped or that the input scrolled."},{"id":"TXI-61","text":"WHERE the platform draws with a person's own forced colors THE text input SHALL draw a code field as it draws any field of its variant — its edge, its value and its placeholder in the platform's colors, the focused edge in the platform's highlight color — and nothing more: the code face, not a color, is what tells code from words. WHILE the text size is enlarged a code field SHALL grow with its text as TXI-16 and TXI-37 say, the code face keeping the input's size; at twice the text size in a container 320 wide a multi-line code field SHALL wrap (TXI-57) or scroll inside its container (TXI-58), a single-line one SHALL scroll within its line as every single-line field does, the floating label SHALL wrap (TXI-13), as the rows of its Field do (FLD-16), no content SHALL be cut, and the page SHALL NOT scroll sideways."},{"id":"TXI-62","text":"THE text input SHALL say to the Field that frames it what only the input knows, and SHALL say it again WHEN it changes: that it draws the label itself WHILE its variant floats one (TXI-13), so that the Field draws no label row (FLD-25); how far its text stands from its own start edge — its inline padding and, beside a leading icon, that icon and its gap (TXI-16, TXI-22) — and the padding it keeps at its end edge (TXI-16), so that the Field's supporting row starts and ends there (FLD-26); and an entry error with its words (TXI-30, FLD-28). Its count is not among them: the Field is given a count as words (FLD-27), by what holds the two (TXI-19). It SHALL take from that Field its name, its description and its required, invalid and disabled states (TXI-5, TXI-11, TXI-23), whether the label is hidden (TXI-13) and whether an asterisk follows it (TXI-50), so that a Field and a text input placed by hand are drawn, named, described and marked exactly as a text field is."},{"id":"TXI-63","text":"THE text input SHALL draw no label row above itself, no requirement tag, no help, no error text and no count: those are the rows of the Field that frames it (FLD-2 to FLD-7, FLD-27). WHILE no Field frames it THE text input SHALL be complete as a bare control — its box, the label that floats in it where its variant floats one, everything typed in it, its states and its events — THE text input SHALL be block-level, framed and bare alike: exactly as wide as the place it stands in — the width its layout gives it, which inside a Field is the Field's whole width (FLD-1), so that the box fills its Field — with no width of its own, never the platform's default width for a text element, and never the width of what it holds (TXI-58); the one width it keeps of its own is the one a person gives it with the resize handle (TXI-39). It SHALL be exactly as tall as its container, and the room TXI-13 keeps above an outlined one. A product that wants a narrower box gives it a narrower place."},{"id":"TXI-64","text":"WHILE the entries slot holds content THE text input SHALL lay that content and its typing part out inside the container, between the leading and the trailing parts, in lines from the start edge: each item comp.text-input.entries.gap after the one before, a line comp.text-input.entries.row-gap below the one above, every item centred on the middle of its line, an item that does not fit going whole to the next line and never wider than a line. The typing part SHALL follow the last item on its line and take what is left of it WHILE that is at least comp.text-input.entries.typing-min-width, and otherwise a line of its own. The first line SHALL stand where a single-line input of the same size draws its one line, centred in the size's height (comp.input-box.container.height.medium, and so on) or the block padding (comp.input-box.container.padding-block.medium, and so on) below the container's top where that is more, and the last line as far above its bottom, so that the container is the size's height while one line fits, as every input of a form is, and grows by one line and comp.text-input.entries.row-gap for each line after that. WHILE the text input is read-only and holds no typed text THE typing part SHALL take no room on a line and no line of its own, the entries ending the content, since nothing can be typed there; it SHALL stay focusable and exposed as the text input. WHILE the text input is disabled the typing part SHALL keep its room, so that the field keeps the shape it has when enabled and does not change height when it is enabled again."},{"id":"TXI-65","text":"WHILE the entries slot holds content THE text input SHALL treat itself as not empty for its label: a filled or outlined input floats it (TXI-13), and its placeholder is not shown. WHEN the input first appears holding entries it SHALL draw its label floated in its first frame, without the motion of TXI-14: appearing is no change of the label's place."},{"id":"TXI-66","text":"WHEN the user presses the container outside every item of the entries slot THE text input SHALL treat it as a press on the container (TXI-8). THE text input SHALL give the items of the entries slot no role, no focus order and no key: they are the product's, or those of the component that holds the input."},{"id":"TXI-67","text":"WHILE type is email, url, tel, number or password — a value THE text input lays out left-to-right whatever it holds (TXI-24) — THE text input SHALL treat the prefix, the value and the suffix as one run of writing and SHALL lay the three out in that order along the run's own direction in every layout direction, as the number input does (NMI-39): the run's direction SHALL be that of the first strong character of prefixText and, WHERE prefixText has none, of suffixText — a letter, or a direction mark the product wrote there — and left-to-right WHERE neither has one, so that \"$ 120 USD\", \"https://\" before an address and \"@example.com\" after a name stand in a right-to-left layout as in a left-to-right one, and a unit written in a right-to-left script stands at the value's left. THE text input SHALL decide that direction from prefixText and suffixText alone, never from the value. WHILE prefixText is not empty THE value, and an empty field's placeholder, SHALL stand beside the prefix, at the start of the run, in every layout direction, so that \"https://\" and the address after it read as one string and are not set apart by the width of the field; WHILE it is empty the value SHALL stay aligned to the field's start edge (TXI-24), the suffix after it. The icons, the picker button, the floating label and the paddings SHALL follow the layout. For every other type the value's direction is the person's and may change at any keystroke, so the row SHALL NOT follow it: the prefix stands at the field's start edge and the suffix at its end edge (TXI-24); a code field's row is TXI-53's, and a date, time or date-time field draws no affix (TXI-28)."},{"id":"TXI-68","text":"THE text input SHALL draw its box from the one set of tokens every input box is drawn from, the group comp.input-box (comp.input-box.container.shape, comp.input-box.container.height.medium, and so on): its container, its corners, its edges and their widths, the label that floats in it and the asterisk after it, the typed text and the placeholder, the prefix and the suffix, the icons at either end, the caret and the highlight of selected text, the paddings, the gaps and the least height of its size (a stacked box's from comp.input-box.stacked.container.height.medium and comp.input-box.stacked.container.padding-block.medium for size medium, as tall as a Button of the same size, and a filled or an outlined box's from comp.input-box.container.height.medium and comp.input-box.container.padding-block.medium, and so on), and the colors of each of these in its look, at rest, hovered, focused and disabled, plain and in error. It SHALL have no token of its own for any of them: the tokens of its own group are those of what only a text input draws — the motion of a height that follows its text (TXI-38), a segment of a date or a time (TXI-42), the code face (TXI-53), the entries place (TXI-64) and the gap between two buttons of its own at its end (TXI-71). WHEN a design system or a product sets a token of the box THE text input SHALL follow it, as the select, the combobox, the number input and the color input do, which read the same tokens; no token is held equal to another for this. WHERE one text input is to differ from the other boxes of a product, the token is set for that instance — on its element or on a subtree that holds it, in each platform's way of setting a token for a subtree — and THE text input SHALL draw itself from the value it finds there."},{"id":"TXI-70","text":"WHERE the platform has ARIA attributes (the web), WHEN the product sets an aria- attribute on the host, by the attribute or by the ARIA property that reflects it, THE text input SHALL move it to the data-aria- attribute of the same name, so that the host is no second node with its name, description or state, and SHALL expose it on the element that carries its role — an id reference by the elements it names in the host's tree or a tree around it, an error message as part of the description while the text input is invalid — except those the text input owns (aria-disabled), which it SHALL move and not expose. WHEN the product removes the aria- attribute or its data-aria- twin, or sets the ARIA property that reflects it (ariaLabel, ariaDescribedByElements…) to null, THE text input SHALL take it off that element. WHEN the product sets an aria- attribute the text input owns THE text input SHALL report it in debug builds."},{"id":"TXI-71","text":"WHILE clearable is true, the field is single-line (TXI-17), type is not date, time or date-time, and the text input is neither disabled nor read-only THE text input SHALL keep at the end of its container, after the trailing-icon slot's content (comp.input-box.container.gap.medium after it for size medium, and so on) and before any other button of its own — the reveal button (TXI-72), the picker button (TXI-32) — comp.text-input.container.action-gap before it, the room of a clear button, and SHALL draw the button in that room WHILE the value is not empty: an icon-only Tanrei Button of the text variant at Button's small size showing the glyph close of the system's icon set, not mirrored, its glyph centred where a trailing icon's would be, named by clearLabel, a Button in every respect — its own tokens, its press, focus ring and target (BTN-5, BTN-8, BTN-9, BTN-10) — and a focus stop after the input and any interactive slot element. The room SHALL be kept whether or not the button is drawn, so that the end of the text, the trailing icon and every button after it stay where they are as the value is emptied and filled. A press on the button by pointer or touch SHALL NOT take focus from the input, so that typing goes on where it was and a touch keyboard stays up. WHEN the button is activated THE text input SHALL empty the value, emit input once with the empty value, then commit as TXI-2 does — change once WHILE the empty value differs from the one last committed —, and move focus to the input. WHILE clearable is false THE text input SHALL draw no clear button and keep no room for one: the person empties the field as any text is emptied. WHERE clearable is true in a field that cannot draw the button — a multi-line one, or a date, time or date-time — THE text input SHALL draw none and in debug builds report it. WHILE clearLabel is empty and the product's words give none THE text input SHALL still draw the button, working, and in debug builds report that it has no accessible name."},{"id":"TXI-72","text":"WHILE type is password, revealable is true and the text input is not disabled THE text input SHALL draw a reveal button at the end of its container, after the trailing-icon slot's content (comp.input-box.container.gap.medium after it for size medium, and so on) and after the clear button's room where there is one (comp.text-input.container.action-gap after it): an icon-only Tanrei Button of the text variant at Button's small size that is a toggle (BTN-14), selected exactly WHILE revealed is true, showing the glyph visibility of the system's icon set while the value is hidden and visibility_off while it is shown, not mirrored, its glyph centred where a trailing icon's would be, named by revealLabel — one name for both states, the pressed state saying whether the value is shown (aria-pressed on the web), as a toggle's name does not change with its state —, a Button in every respect — its own tokens, its press, focus ring and target (BTN-5, BTN-8, BTN-9, BTN-10) —, a focus stop after the input, any interactive slot element and the clear button, and never a submit button of any form. WHILE revealed is true THE text input SHALL show the value as plain text, and otherwise obscured: the value, the caret, the selection, the scroll position and any composition SHALL stay as they are when it is shown or hidden, and so SHALL everything else a password field asks of the platform — its autofill hint, no autocorrection, no capitalisation, no spelling check, no suggestions and no remembered entry. A press on the button by pointer or touch SHALL NOT take focus from the input, and activating it by the keyboard SHALL leave focus on the button: focus does not move. WHEN the person activates the button THE text input SHALL toggle revealed and emit revealChange once with the new value, and SHALL emit neither input nor change, because the value did not change. WHEN the form the text input belongs to is submitted or reset, WHEN type changes, and WHEN the text input becomes disabled THE text input SHALL set revealed to false without emitting revealChange, so that a value shown for checking is not left shown, nor stored by the platform as plain text. WHERE type is not password THE text input SHALL ignore revealable and revealed and, WHILE revealable is true, report it in debug builds. WHILE revealLabel is empty and the product's words give none THE text input SHALL still draw the button, working, and in debug builds report that it has no accessible name."},{"id":"TXI-73","text":"WHILE size is not set and a container around the text input sets a size for what it holds — a toolbar's size (TBR-31), or another container that passes its size to a Button (BTN-48), the nearest such container where several do — THE text input SHALL draw its box at that size, its height following the system's height ladder as at a size of its own, and at its nearest size where it has none of that name, in the order extra-small, small, medium, large, extra-large, the larger of two as near; a container whose size is not set SHALL pass none. WHILE size is set THE text input SHALL be drawn at its own size, whatever a container sets. WHEN the size it takes changes — a container's size set, changed or removed, its own size set or removed, or the text input moved into or out of such a container — THE text input SHALL be drawn at the size it now takes at once. It takes a container's size as a Button does because a stacked box and a Button of one size stand as tall as each other: in a small toolbar the box stands as tall as the small Buttons beside it."},{"id":"TXI-74","text":"WHEN the control height (dial.control.height) is N THE text input's default box SHALL be N tall in every look: a medium text input SHALL be drawn at comp.input-box.stacked.container.height.medium WHILE it is stacked and at comp.input-box.container.height.medium WHILE it is outlined or filled, each sys.control.height.medium held at sys.target.minimum, so that it stands as tall as the Buttons beside it; the box's block paddings SHALL give up half of what its height loses below the control height's reference, so that one line of its value still fits, and the pointer and touch targets SHALL still reach beyond a box that is lower than they are. WHILE a filled text input draws its label it holds the floated label above the value's line and SHALL be as tall as TXI-16 gives where that is more than N."}],"accessibility":{"role":"textbox","keyboard":[{"keys":"Tab","action":"Moves focus to the input; further Tabs move to an interactive element in the trailing slot, then to the clear button, then to the reveal button of a password field, then to the picker button, then to the resize handle, where there are any. In a date, time or date-time field Tab visits each segment in turn first. In a code field too: Tab never inserts a character or an indent (TXI-59)."},{"keys":"Typing, Backspace, Delete, arrows, Home, End, selection and clipboard shortcuts","action":"Edit the value as the platform's own text element does (types other than date, time and date-time)."},{"keys":"Enter","action":"In a single-line field, commits the value and emits action (and submits the enclosing form on the web). In a multi-line field, inserts a line break."},{"keys":"Arrow keys, Home, End in a multi-line code field whose lines do not wrap","action":"Move the caret as in any text; the input scrolls sideways to keep it in view (TXI-58)."},{"keys":"Left Arrow, Right Arrow on a segment","action":"Move focus to the segment drawn to the left or to the right (TXI-43)."},{"keys":"Up Arrow, Down Arrow on a segment","action":"Raise or lower the segment by one, wrapping; fill an empty segment from the current date or time (TXI-44)."},{"keys":"Page Up, Page Down, Home, End on a segment","action":"Step by a larger amount; go to the first or the last value of the segment (TXI-44)."},{"keys":"Digits on a segment","action":"Fill the segment and move to the next once it can take no more; the separator's character also moves on (TXI-45)."},{"keys":"Backspace or Delete on a segment","action":"Remove the segment's last digit; Backspace on an empty segment moves to the previous one (TXI-45)."},{"keys":"Paste, copy and cut on a segment","action":"Paste reads a whole date or time into every segment; copy and cut take the whole row (TXI-29)."},{"keys":"Enter or Space on the clear button","action":"Empties the value, emits input and, where the value changed since focus arrived, change, and returns focus to the input (TXI-71)."},{"keys":"Enter or Space on the reveal button","action":"Shows the value of a password field as plain text, or hides it again; focus stays on the button and the value does not change (TXI-72)."},{"keys":"Enter or Space on the picker button","action":"Emits pickerRequest (TXI-33)."},{"keys":"Up Arrow, Down Arrow, Page Up, Page Down, Home, End on the resize handle","action":"Make the field one line shorter or taller (with Shift, or with Page Up and Page Down, as many lines as minRows); return it to minRows or take it to its tallest (TXI-41)."},{"keys":"Left Arrow, Right Arrow on the resize handle","action":"Where the field resizes both ways, narrow or widen it; the arrow toward the end edge widens (TXI-41)."},{"keys":"Enter or Space on the resize handle","action":"Fit the height to the text, or return to minRows when it already fits (TXI-41)."}],"labeling":"The accessible name is the label of the Field that frames the input, or its own label where no Field does; a filled or outlined input draws that name floating, and labelHidden only stops the drawing. The placeholder is never the name. The description is the input's own — the prefix and the suffix while shown, the count while counter is true — followed by what the Field gives: its supporting text with, in error, the error text after it and its optional text. The input is exposed as invalid while error is true, its Field is in error or an entry error lasts; as required while its Field says so, whichever mark is drawn; and as read-only while readOnly is true. A search input is exposed as a search box where the platform has that role. A date, time or date-time input is a group, named as the input is, whose segments are spin buttons named by their unit and that name, with a range, a value and a value text (segmentEmptyText while empty). The clear button is named by clearLabel. The reveal button of a password field is a toggle button named by revealLabel, pressed while the value is shown. The picker button is named by pickerLabel and exposed as opening a dialog. The resize handle is a window splitter named by resizeLabel whose value is the number of lines shown. A code input is the same text box as any other type: no role or word says that it holds code (TXI-60).","minimumTarget":true,"notes":["Text entry happens in the platform's native element: on the web an <input> or <textarea> in the shadow root, with the label, description and invalid state set on that element — not through ElementInternals, which axe cannot see. The host is form-associated: it takes name, submits the value and joins constraint validation. A date, time or date-time field is the one exception: its segments are spin buttons that take digits one unit at a time, as the platforms' own date fields do, because one free text cannot give each unit a name, a range and a step.","Heights are minimums: at 200% text size the field grows, the floated label wraps rather than clips, and the input keeps its line height.","Web: iOS Safari zooms the page into an input whose text is smaller than 16 px. Both default sizes use 16 px text (comp.input-box.input.typescale); a layer that sets a smaller style brings the zoom back.","A trailing action other than clearing and revealing a password (voice input, a copy action) is the product's own icon-only Button, with its own accessible name in the product's language. The field builds in three, each named by the product: the clear button (clearable, clearLabel), the reveal button of a password field (revealable, revealLabel) and a date or time field's picker button (pickerLabel). Clearing is a separate focus stop with a name, not a key: Escape stays the product's and the platform's (it closes what the field stands in), and a person who cannot see the button still hears it after the input.","A date or a time is entered unit by unit: each segment says what it is, shows its own placeholder and cannot hold a value outside its range, so the format never has to be explained or remembered (WCAG 3.3.2), and a whole date can still be pasted. The picker is an alternative, never the only way.","Resizing by hand never depends on a drag (WCAG 2.5.7): the handle is a focus stop that the arrow keys move, and a click, a tap, Enter or Space fits the field to its text. Its hit area meets the minimum target although its line is small (WCAG 2.5.8).","A field that follows its text changes height with a short motion; where motion is reduced it changes at once (WCAG 2.3.3).","How a state looks is a value decision of the active design system; components read the state's tokens and never compute the effect themselves.","The input has no label row and no message of its own: a Field frames it and draws them (FLD-2 to FLD-11, FLD-25 to FLD-28), or the product names it with label where its visible label is elsewhere. Unframed and unnamed, it is reported (TXI-23).","Code is not prose (type code): it is left to right in every language, so a code field's input line keeps that direction and begins at the left while the label, the icons and the messages follow the page (TXI-53); and the platform's help for prose — spelling marks, autocorrection, capitals, curved quotation marks — changes or misreports it, so the field asks for none (TXI-55).","Tab always leaves a code field (WCAG 2.1.2). A field that indents with Tab needs a way out, words that say what it is, and a state that assistive technology is told — an editor's contract, which a product that embeds an editor takes on with it.","A code field whose lines do not wrap scrolls in two directions inside its container; the page never does (WCAG 1.4.10 allows it for content whose lines carry meaning). The caret is how the keyboard scrolls it, so a value that nobody may edit but that must be read whole is readOnly, not disabled, or is a Code block.","A screen reader reads punctuation and capitals in a code field as the person has set it to: the field cannot and does not change that. Color carries nothing in a code field — no part of the code is colored by its meaning — so nothing is lost in forced colors (TXI-61).","Revealing a password lets a person check what they typed instead of typing it twice, which helps everyone who mistypes and those who cannot remember what they entered (WCAG 3.3.8, Accessible Authentication: a field that can be checked supports a password manager's and a person's own entry alike). The button is a toggle with one name and a pressed state, as the WAI-ARIA button pattern asks of a toggle, so that its name does not change under a screen reader's cursor; it never takes focus from the input on a press, so a touch keyboard stays up. A shown value goes back to hidden when its form is submitted, so that a browser does not store it as an ordinary text."]},"tokens":"comp.text-input","fixtures":[{"id":"outlined-empty","props":{"variant":"outlined","label":"Email"}},{"id":"outlined-filled","props":{"variant":"outlined","label":"Email","value":"ada@example.com"}},{"id":"filled-empty","props":{"variant":"filled","label":"Email"}},{"id":"filled-filled","props":{"variant":"filled","label":"Email","value":"ada@example.com"}},{"id":"outlined-large","props":{"variant":"outlined","size":"large","label":"Email","value":"ada@example.com"}},{"id":"filled-large","props":{"variant":"filled","size":"large","label":"Email","value":"ada@example.com"}},{"id":"outlined-label-hidden","props":{"variant":"outlined","type":"search","label":"Search","labelHidden":true,"placeholder":"Search components"}},{"id":"outlined-error","props":{"variant":"outlined","label":"Email","value":"ada@","error":true}},{"id":"filled-error","props":{"variant":"filled","label":"Email","value":"ada@","error":true}},{"id":"outlined-disabled","props":{"variant":"outlined","label":"Email","value":"ada@example.com","disabled":true}},{"id":"filled-disabled","props":{"variant":"filled","label":"Email","value":"ada@example.com","disabled":true}},{"id":"outlined-read-only","props":{"variant":"outlined","label":"Email","value":"ada@example.com","readOnly":true}},{"id":"outlined-icons","props":{"variant":"outlined","label":"Search","value":"tanrei"},"content":"leading-icon=search trailing-icon=close"},{"id":"outlined-affixes","props":{"variant":"outlined","type":"number","label":"Amount","value":"120","prefixText":"$","suffixText":"USD"}},{"id":"outlined-multiline","props":{"variant":"outlined","label":"Message","multiline":true,"minRows":3,"value":"Thanks for the review.\nThe new tokens are in."}},{"id":"filled-multiline","props":{"variant":"filled","label":"Message","multiline":true,"minRows":3,"value":"Thanks for the review.\nThe new tokens are in."}},{"id":"outlined-password","props":{"variant":"outlined","type":"password","label":"Password","value":"correct horse"}},{"id":"outlined-password-revealable","props":{"variant":"outlined","type":"password","label":"Password","value":"correct horse","revealable":true,"revealLabel":"Show password"}},{"id":"stacked-empty","props":{"variant":"stacked","label":"Email"}},{"id":"stacked-filled","props":{"variant":"stacked","label":"Email","value":"ada@example.com"}},{"id":"stacked-placeholder","props":{"variant":"stacked","label":"Email","placeholder":"name@example.com"}},{"id":"stacked-large","props":{"variant":"stacked","size":"large","label":"Email","value":"ada@example.com"}},{"id":"stacked-small","props":{"variant":"stacked","size":"small","label":"Search","value":"tokens"}},{"id":"stacked-error","props":{"variant":"stacked","label":"Email","value":"ada@","error":true}},{"id":"stacked-disabled","props":{"variant":"stacked","label":"Email","value":"ada@example.com","disabled":true}},{"id":"stacked-read-only","props":{"variant":"stacked","label":"Email","value":"ada@example.com","readOnly":true}},{"id":"stacked-icons","props":{"variant":"stacked","label":"Search","value":"tanrei"},"content":"leading-icon=search trailing-icon=close"},{"id":"stacked-clearable","props":{"variant":"stacked","label":"Filter tokens","value":"color","clearable":true,"clearLabel":"Clear filter"},"content":"leading-icon=search"},{"id":"stacked-clearable-empty","props":{"variant":"stacked","label":"Filter tokens","placeholder":"Filter tokens","clearable":true,"clearLabel":"Clear filter"},"content":"leading-icon=search"},{"id":"outlined-clearable","props":{"variant":"outlined","label":"City","value":"Kyoto","clearable":true,"clearLabel":"Clear city"}},{"id":"stacked-affixes","props":{"variant":"stacked","type":"number","label":"Amount","value":"120","prefixText":"$","suffixText":"USD"}},{"id":"stacked-multiline","props":{"variant":"stacked","label":"Message","multiline":true,"minRows":3,"value":"Thanks for the review.\nThe new tokens are in."}},{"id":"stacked-password","props":{"variant":"stacked","type":"password","label":"Password","value":"correct horse"}},{"id":"stacked-password-revealable","props":{"variant":"stacked","type":"password","label":"Password","value":"correct horse","revealable":true,"revealLabel":"Show password"}},{"id":"stacked-password-revealed","props":{"variant":"stacked","type":"password","label":"Password","value":"correct horse","revealable":true,"revealed":true,"revealLabel":"Show password"}},{"id":"stacked-password-revealable-clearable","props":{"variant":"stacked","type":"password","label":"Password","value":"correct horse","revealable":true,"revealLabel":"Show password","clearable":true,"clearLabel":"Clear password"}},{"id":"stacked-date","props":{"variant":"stacked","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27"}},{"id":"stacked-date-empty","props":{"variant":"stacked","type":"date","locale":"en-US","label":"Start date","segmentEmptyText":"Empty"}},{"id":"stacked-date-picker","props":{"variant":"stacked","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27","picker":true,"pickerLabel":"Choose date"}},{"id":"stacked-date-picker-large","props":{"variant":"stacked","size":"large","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27","picker":true,"pickerLabel":"Choose date"}},{"id":"stacked-date-ja","props":{"variant":"stacked","type":"date","locale":"ja-JP","label":"開始日","value":"2026-09-27","picker":true,"pickerLabel":"日付を選択"}},{"id":"stacked-time-picker","props":{"variant":"stacked","type":"time","locale":"en-US","label":"Start time","value":"14:30","picker":true,"pickerLabel":"Choose time"}},{"id":"stacked-date-time-picker","props":{"variant":"stacked","type":"date-time","locale":"en-US","label":"Starts","value":"2026-09-27T14:30","picker":true,"pickerLabel":"Choose date and time"}},{"id":"stacked-date-error","props":{"variant":"stacked","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27","picker":true,"pickerLabel":"Choose date","error":true}},{"id":"stacked-date-disabled","props":{"variant":"stacked","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27","picker":true,"pickerLabel":"Choose date","disabled":true}},{"id":"outlined-date-picker","props":{"variant":"outlined","type":"date","locale":"en-US","label":"Start date","value":"2026-09-27","picker":true,"pickerLabel":"Choose date"}},{"id":"stacked-multiline-auto-grown","props":{"variant":"stacked","label":"Message","multiline":true,"value":"Thanks for the review.\nThe new tokens are in.\nThe web is green.\nThe others follow.\nMore tomorrow."}},{"id":"stacked-multiline-auto-grown-icons","props":{"variant":"stacked","label":"Message","multiline":true,"value":"Thanks for the review.\nThe new tokens are in.\nThe web is green.\nThe others follow.\nMore tomorrow."},"content":"leading-icon=search trailing-icon=close"},{"id":"stacked-multiline-auto-max","props":{"variant":"stacked","label":"Message","multiline":true,"maxRows":3,"value":"Thanks for the review.\nThe new tokens are in.\nThe web is green.\nThe others follow.\nMore tomorrow."}},{"id":"stacked-multiline-manual","props":{"variant":"stacked","label":"Message","multiline":true,"resize":"manual","minRows":3,"resizeLabel":"Resize","value":"Thanks for the review.\nThe new tokens are in."}},{"id":"stacked-multiline-manual-both","props":{"variant":"stacked","label":"Message","multiline":true,"resize":"manual","resizeAxis":"both","minRows":3,"resizeLabel":"Resize","value":"Thanks for the review.\nThe new tokens are in."}},{"id":"stacked-multiline-manual-rtl","direction":"rtl","props":{"variant":"stacked","label":"הודעה","multiline":true,"resize":"manual","resizeAxis":"both","minRows":3,"resizeLabel":"שינוי גודל","value":"תודה על הסקירה."}},{"id":"stacked-multiline-fixed","props":{"variant":"stacked","label":"Message","multiline":true,"resize":"fixed","minRows":3,"value":"Thanks for the review.\nThe new tokens are in.\nThe web is green.\nThe others follow.\nMore tomorrow."}},{"id":"outlined-multiline-manual","props":{"variant":"outlined","label":"Message","multiline":true,"resize":"manual","minRows":3,"resizeLabel":"Resize","value":"Thanks for the review.\nThe new tokens are in."}},{"id":"stacked-time-empty","props":{"variant":"stacked","type":"time","locale":"en-US","label":"Start time","segmentEmptyText":"Empty"}},{"id":"stacked-time-24h","props":{"variant":"stacked","type":"time","locale":"ja-JP","label":"開始時刻","value":"14:30"}},{"id":"stacked-date-rtl","direction":"rtl","props":{"variant":"stacked","type":"date","locale":"he-IL","label":"תאריך התחלה","value":"2026-09-27","picker":true,"pickerLabel":"בחירת תאריך"}},{"id":"stacked-code","props":{"variant":"stacked","type":"code","label":"Pattern","value":"tanrei.comp.button.*.container.color"}},{"id":"stacked-code-empty","props":{"variant":"stacked","type":"code","label":"Pattern","placeholder":"tanrei.comp.*.color"}},{"id":"stacked-code-large","props":{"variant":"stacked","size":"large","type":"code","label":"Pattern","value":"tanrei.comp.button.*.container.color"}},{"id":"stacked-code-affixes","props":{"variant":"stacked","type":"code","label":"Pattern","value":"^sys\\.color\\.","prefixText":"/","suffixText":"/u"}},{"id":"stacked-code-multiline","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"Layer","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}"}},{"id":"stacked-code-multiline-empty","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"Layer","placeholder":"{ \"id\": \"acme\", \"extends\": \"tanrei\" }"}},{"id":"stacked-code-multiline-wrap","props":{"variant":"stacked","type":"code","multiline":true,"label":"Rule","value":"{ \"match\": \"tanrei.comp.button.*.hovered.container.color\", \"$value\": \"{tanrei.sys.color.primary}\", \"reason\": \"One accent.\" }"}},{"id":"stacked-code-multiline-nowrap","props":{"variant":"stacked","type":"code","multiline":true,"wrap":false,"minRows":3,"label":"Rule","value":"{ \"match\": \"tanrei.comp.button.*.hovered.container.color\", \"$value\": \"{tanrei.sys.color.primary}\", \"reason\": \"One accent.\" }\n{ \"match\": \"*\" }"}},{"id":"stacked-code-multiline-tabs","props":{"variant":"stacked","type":"code","multiline":true,"label":"Recipe","value":"build:\n\tpnpm generate\n\t\tpnpm check"}},{"id":"stacked-code-multiline-error","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"Layer","value":"{\n \"id\": \"acme\",\n}","error":true}},{"id":"stacked-code-multiline-manual","props":{"variant":"stacked","type":"code","multiline":true,"wrap":false,"resize":"manual","resizeAxis":"both","minRows":3,"resizeLabel":"Resize","label":"Rule","value":"{ \"match\": \"tanrei.comp.button.*.hovered.container.color\", \"$value\": \"{tanrei.sys.color.primary}\", \"reason\": \"One accent.\" }\n{ \"match\": \"*\" }"}},{"id":"stacked-code-multiline-read-only","props":{"variant":"stacked","type":"code","multiline":true,"wrap":false,"readOnly":true,"label":"Rule","value":"{ \"match\": \"tanrei.comp.button.*.hovered.container.color\", \"$value\": \"{tanrei.sys.color.primary}\", \"reason\": \"One accent.\" }"}},{"id":"stacked-code-multiline-disabled","props":{"variant":"stacked","type":"code","multiline":true,"disabled":true,"label":"Layer","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}"}},{"id":"outlined-code-multiline","props":{"variant":"outlined","type":"code","multiline":true,"minRows":3,"label":"Layer","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}"}},{"id":"filled-code-multiline","props":{"variant":"filled","type":"code","multiline":true,"minRows":3,"label":"Layer","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}"}},{"id":"stacked-code-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","label":"النمط","value":"tanrei.comp.button.*.container.color"}},{"id":"stacked-code-empty-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","label":"النمط","placeholder":"tanrei.comp.*.color"}},{"id":"stacked-code-affixes-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","label":"النمط","value":"^sys\\.color\\.","prefixText":"/","suffixText":"/u"},"content":"leading-icon=search trailing-icon=close"},{"id":"stacked-code-multiline-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"الطبقة","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}","maxLength":200}},{"id":"stacked-code-multiline-empty-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"الطبقة","placeholder":"{ \"id\": \"acme\", \"extends\": \"tanrei\" }"}},{"id":"stacked-code-multiline-brace-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"الطبقة","value":"{"}},{"id":"stacked-code-multiline-arabic-first-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"minRows":3,"label":"المصادر","value":"[\"مرحبا\", \"acme\"]\n// تعليق: comment"}},{"id":"stacked-code-multiline-nowrap-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"wrap":false,"minRows":3,"label":"القاعدة","value":"{ \"match\": \"tanrei.comp.button.*.hovered.container.color\", \"$value\": \"{tanrei.sys.color.primary}\", \"reason\": \"One accent.\" }\n{ \"match\": \"*\" }","error":true}},{"id":"stacked-code-multiline-manual-rtl","direction":"rtl","props":{"variant":"stacked","type":"code","multiline":true,"resize":"manual","resizeAxis":"both","minRows":3,"resizeLabel":"تغيير الحجم","label":"الطبقة","value":"{\n \"id\": \"acme\",\n \"extends\": \"tanrei\"\n}"}},{"id":"stacked-affixes-rtl","direction":"rtl","props":{"variant":"stacked","type":"number","label":"المبلغ","value":"120","prefixText":"$","suffixText":"USD"}},{"id":"stacked-clearable-rtl","direction":"rtl","props":{"variant":"stacked","label":"المدينة","value":"كيوتو","clearable":true,"clearLabel":"مسح المدينة"},"content":"leading-icon=search"},{"id":"stacked-url-prefix-rtl","direction":"rtl","props":{"variant":"stacked","type":"url","label":"الموقع","value":"example.com","prefixText":"https://"}},{"id":"stacked-email-suffix-rtl","direction":"rtl","props":{"variant":"stacked","type":"email","label":"البريد الإلكتروني","value":"noor","suffixText":"@example.com"}},{"id":"stacked-number-unit-own-script-rtl","direction":"rtl","props":{"variant":"stacked","type":"number","label":"الوزن","value":"12","suffixText":"كغم"}},{"id":"stacked-text-suffix-rtl","direction":"rtl","props":{"variant":"stacked","label":"اسم الملف","value":"تقرير","suffixText":".pdf"}}],"platforms":{"web":{"status":"lagging","name":"tanrei-text-input","props":{"variant":"variant","size":"size","type":"type","value":"value","label":"label","labelHidden":"labelHidden","placeholder":"placeholder","error":"error","disabled":"disabled","readOnly":"readOnly","clearable":"clearable","clearLabel":"clearLabel","revealable":"revealable","revealed":"revealed","revealLabel":"revealLabel","multiline":"multiline","minRows":"minRows","maxRows":"maxRows","resize":"resize","resizeAxis":"resizeAxis","resizeLabel":"resizeLabel","wrap":"noWrap","maxLength":"maxLength","counter":"counter","counterText":"counterText","counterNoLimitText":"counterNoLimitText","prefixText":"prefixText","suffixText":"suffixText","autocomplete":"autocomplete","locale":"locale","min":"min","max":"max","disabledDates":"disabledDates","invalidText":"invalidText","unavailableText":"unavailableText","segmentEmptyText":"segmentEmptyText","picker":"picker","pickerLabel":"pickerLabel"},"events":{"input":"input","change":"change","action":"action","pickerRequest":"pickerrequest","entryError":"entryerror","resizeEnd":"resizeend","revealChange":"revealchange"},"parts":{"container":"container","active-indicator":"active-indicator","outline":"outline","label":"label","required-asterisk":"requirement-label","input":"input","segment":"segment","placeholder":{"noBox":"The browser draws the placeholder in the input's text box (::placeholder), and an empty segment draws its own as its ::before: neither has a box of its own to measure."},"prefix":"prefix","suffix":"suffix","leading-icon":"leading-icon","trailing-icon":"trailing-icon","clear-button":"clear-button","reveal-button":"reveal-button","picker-button":"picker-button","resize-handle":"resize-handle","caret":{"noBox":"The browser draws the caret in the input's text: it has no element to measure."},"entries":"entries"},"notes":"The input without the frame: the class `TanreiTextInput`, React `TextInput`. The host is `display: block` and as wide as its place, framed and bare (TXI-63): a Field keeps an inline-level control at its own size, at the start edge, so an inline host would not fill its Field. A form-associated custom element with a shadow root and `delegatesFocus` that takes `name`, submits its value, restores it and reports validity (a missing value while its Field says it is required; for date, time and date-time also badInput, rangeUnderflow and rangeOverflow while an entry error lasts, TXI-30). It renders an `<input>`, or a `<textarea>` while multiline, or the `role=\"group\"` of spin buttons of a date or a time; the `leading-icon` and `trailing-icon` slots are named slots; the clear button is a `<tanrei-button variant=\"text\" size=\"small\">` in the shadow root, in a box of the glyph's size whose `mousedown` is prevented so that a press keeps focus in the input, the reveal button a `<tanrei-button variant=\"text\" size=\"small\" toggle>` in the same kind of box — a toggle never submits a form — whose `change` stays in the shadow root, while revealed the native `<input>` being `type=\"text\"` with the password field's other attributes kept, and the picker button a `<tanrei-button variant=\"text\">`. What the text field's note says of the inner element, of the types, of the segments, of the handle, of `noWrap` (attribute `no-wrap`, the inverse of `wrap`) and of code holds here for this element, with `--tanrei-comp-input-box-*` for the box (TXI-68) and `--tanrei-comp-text-input-*` for what is the text input's own. Parts: `container`, `outline`, `active-indicator`, `label` (the floating label), `requirement-label` (its asterisk), `input`, `segment`, `prefix`, `suffix`, `leading-icon`, `trailing-icon`, `clear-button`, `reveal-button`, `picker-button`, `resize-handle`. The connection with a Field is `tanrei-field-connect` (`src/primitives/field.ts`), in both directions (TXI-62): the control's side gains what it says of itself — `drawsLabel`, `inset: { start, end }` (lengths written by the input from its own tokens and its measured icon boxes), `refusal: { text }` — and the frame's side gains `labelHidden` and `requiredMark` (`asterisk` or `none`) beside the name, the description and the three states; a Field that does not read the three ignores them, and an input no Field answers is drawn as a bare one. The count is not in the exchange: `countText` is a read-only property of the element (the text of TXI-19, empty while `counter` is false), new after each of the element's updates, which a composed element reads as it reads the value and a product reads in its own `input` listener. The routine of TXI-37 and TXI-38 that measures the lines and moves the height is one file, `src/primitives/auto-height.ts`, which draws nothing and reads no token; the web's tests of the height are one suite, so that another element that types on several lines is held to the same behaviour. The name, the description, `aria-invalid`, `aria-required` and `aria-readonly` are written on the inner element, the input's own `label` winning. Attributes are kebab-case (`label-hidden`, `min-rows`, `max-rows`, `prefix-text`, `suffix-text`, `invalid-text`, `unavailable-text`, `clear-label`, `reveal-label`, `picker-label`, `resize-axis`, `resize-label`, `disabled-dates`, `segment-empty-text`, `no-wrap`) except `readonly`, `maxlength`, `autocomplete`, `min` and `max`, which keep HTML's names. `input` and `change` are composed events; `action` is cancelable; `pickerrequest` `entryerror` and `revealchange` are composed CustomEvents whose `detail` carries `{ value, type, min, max }`, `{ reason, text }` and `{ revealed }`. Words: `clear-label`, `reveal-label`, `resize-label` and `segment-empty-text` left empty read the product's words (`setWords()`). For the types email, url, tel, number and password the row of prefix, input and suffix takes the direction TXI-67 gives as its own `dir`; for every other type it keeps the host's. The resize handle is a `<tanrei-handle size=\"small\">` in the shadow root (part `resize-handle`), whose events stay in that root: the element answers them and fires `resizeend`, a composed `CustomEvent` whose `detail` is `{ lines, width }` (`width` null unless `resize-axis` is both)."},"swiftui":{"status":"planned","name":"TanreiTextInput","props":{"variant":"variant","size":"size","type":"type","value":"text","label":"label","labelHidden":"labelsHidden","placeholder":"prompt","error":"error","disabled":"disabled","readOnly":"readOnly","clearable":"clearable","clearLabel":"clearLabel","revealable":"revealable","revealed":"revealed","revealLabel":"revealLabel","multiline":"axis","minRows":"lineLimit","maxRows":"lineLimit","resize":"resize","resizeAxis":"resizeAxis","resizeLabel":"resizeLabel","wrap":"wrap","maxLength":"maxLength","counter":"counter","counterText":"counterText","counterNoLimitText":"counterNoLimitText","prefixText":"prefix","suffixText":"suffix","autocomplete":"textContentType","locale":"locale","min":"min","max":"max","disabledDates":"disabledDates","invalidText":"invalidText","unavailableText":"unavailableText","segmentEmptyText":"segmentEmptyText","picker":"onPickerRequest","pickerLabel":"pickerLabel"},"events":{"input":"text","change":"onCommit","action":"onSubmit","pickerRequest":"onPickerRequest","entryError":"onEntryError","resizeEnd":"onResizeEnd","revealChange":"onRevealChange"},"notes":"Planned: this platform has the text field as one view, the frame and the input together. It owes the input as a view of its own, with the names its text field uses today for these props; the Field around it gives the name, the description and the states through the platform's own channel, and the input says what it draws back up (TXI-62)."},"compose":{"status":"planned","name":"TanreiTextInput","props":{"variant":"variant","size":"size","type":"type","value":"value","label":"label","labelHidden":"labelHidden","placeholder":"placeholder","error":"isError","disabled":"enabled","readOnly":"readOnly","clearable":"clearable","clearLabel":"clearContentDescription","revealable":"revealable","revealed":"revealed","revealLabel":"revealContentDescription","multiline":"singleLine","minRows":"minLines","maxRows":"maxLines","resize":"resize","resizeAxis":"resizeAxis","resizeLabel":"resizeContentDescription","wrap":"softWrap","maxLength":"maxLength","counter":"counter","counterText":"counterText","counterNoLimitText":"counterNoLimitText","prefixText":"prefix","suffixText":"suffix","autocomplete":"contentType","locale":"locale","min":"min","max":"max","disabledDates":"disabledDates","invalidText":"invalidText","unavailableText":"unavailableText","segmentEmptyText":"segmentEmptyText","picker":"onPickerRequest","pickerLabel":"pickerContentDescription"},"events":{"input":"onValueChange","change":"onCommit","action":"keyboardActions","pickerRequest":"onPickerRequest","entryError":"onEntryError","resizeEnd":"onResizeEnd","revealChange":"onRevealedChange"},"notes":"Planned: this platform has the text field as one view, the frame and the input together. It owes the input as a view of its own, with the names its text field uses today for these props; the Field around it gives the name, the description and the states through the platform's own channel, and the input says what it draws back up (TXI-62)."},"flutter":{"status":"planned","name":"TanreiTextInput","props":{"variant":"variant","size":"size","type":"type","value":"controller","label":"labelText","labelHidden":"labelHidden","placeholder":"hintText","error":"isError","disabled":"enabled","readOnly":"readOnly","clearable":"clearable","clearLabel":"clearSemanticLabel","revealable":"revealable","revealed":"revealed","revealLabel":"revealSemanticLabel","multiline":"multiline","minRows":"minLines","maxRows":"maxLines","resize":"resize","resizeAxis":"resizeAxis","resizeLabel":"resizeSemanticLabel","wrap":"softWrap","maxLength":"maxLength","counter":"showCounter","counterText":"counterSemanticText","counterNoLimitText":"counterNoLimitSemanticText","prefixText":"prefixText","suffixText":"suffixText","autocomplete":"autofillHints","locale":"locale","min":"min","max":"max","disabledDates":"disabledDates","invalidText":"invalidText","unavailableText":"unavailableText","segmentEmptyText":"segmentEmptyText","picker":"onPickerRequest","pickerLabel":"pickerSemanticLabel"},"events":{"input":"onChanged","change":"onCommit","action":"onSubmitted","pickerRequest":"onPickerRequest","entryError":"onEntryError","resizeEnd":"onResizeEnd","revealChange":"onRevealChanged"},"notes":"Planned: this platform has the text field as one view, the frame and the input together. It owes the input as a view of its own, with the names its text field uses today for these props; the Field around it gives the name, the description and the states through the platform's own channel, and the input says what it draws back up (TXI-62)."},"react-native":{"status":"planned","name":"TextInput","props":{"variant":"variant","size":"size","type":"type","value":"value","label":"label","labelHidden":"labelHidden","placeholder":"placeholder","error":"error","disabled":"disabled","readOnly":"readOnly","clearable":"clearable","clearLabel":"clearAccessibilityLabel","revealable":"revealable","revealed":"revealed","revealLabel":"revealAccessibilityLabel","multiline":"multiline","minRows":"minRows","maxRows":"maxRows","resize":"resize","resizeAxis":"resizeAxis","resizeLabel":"resizeAccessibilityLabel","wrap":"wrap","maxLength":"maxLength","counter":"counter","counterText":"counterAccessibilityText","counterNoLimitText":"counterNoLimitAccessibilityText","prefixText":"prefix","suffixText":"suffix","autocomplete":"autoComplete","locale":"locale","min":"min","max":"max","disabledDates":"disabledDates","invalidText":"invalidText","unavailableText":"unavailableText","segmentEmptyText":"segmentEmptyText","picker":"onPickerRequest","pickerLabel":"pickerAccessibilityLabel"},"events":{"input":"onChangeText","change":"onEndEditing","action":"onSubmitEditing","pickerRequest":"onPickerRequest","entryError":"onEntryError","resizeEnd":"onResizeEnd","revealChange":"onRevealChange"},"notes":"Planned: this platform has the text field as one view, the frame and the input together. It owes the input as a view of its own, with the names its text field uses today for these props; the Field around it gives the name, the description and the states through the platform's own channel, and the input says what it draws back up (TXI-62). The name is the one React Native's own text input has: a file that needs both imports one under another name."}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"timeline","title":"Timeline","summary":"Sets events out in the order of time — each a marker at the start edge, its time, a title and an optional body, joined to the next by a hairline — and, where the events have one, shows which are done, which is under way and which are still ahead by the marker's shape and in words; an ordered list to read, never a control.","level":"base","listing":"default","anatomy":[{"id":"list","description":"The ordered list itself: one column of events, as wide as its container gives it. It has no fill, no edge, no padding and no state of its own."},{"id":"item","description":"One event: its marker at the start, and beside it its content — a time, a title and a body, each optional. Nothing about an event answers a pointer, a press or focus."},{"id":"marker","description":"What begins an event, centred in a box at the start edge. A small filled dot for an event with no status; a hairline ring holding a glyph where the product names one; and for an event with a status a shape of its own: a ring holding a check for done, a filled circle holding a dot for the one under way, an empty ring for one still ahead. Decorative: the status is given in words."},{"id":"connector","description":"The line from an event's marker to the next event's: the system's one hairline, on the marker column's centre line, kept a small distance from both markers. It shows that the events are one course of time. Decorative. The last event has none.","optional":true},{"id":"time","description":"When the event happened or is due, as the product writes it (\"19 September 2026\", \"09:41\", \"Q3\", \"Wave 1\"): a short line in a quiet color, first in the event's content.","optional":true},{"id":"title","description":"What the event is, in a few words, set at the body's size in a heading weight. Text of its event and not a heading, unless the product gives a heading of its own as the title.","optional":true},{"id":"body","description":"What more there is to say: the product's content. Text placed directly takes the body's text style; long-form blocks are set as prose; a block that is not text takes the body's whole width.","optional":true}],"props":[{"name":"label","type":"string","default":"","description":"The list's accessible name, in the product's language (\"Release history\"). Not drawn. Give one where no heading directly before the timeline already says what it records."},{"name":"size","type":"enum","values":["medium","large"],"default":"medium","description":"The size of the events' text, in prose's two sizes. Medium sets the body in the interface's own text style, for a timeline among controls: a panel, a card, a record's activity. Large sets it in the style for long reading, for a page whose purpose is the text: a changelog, a plan. A timeline inside a prose is given that prose's size. A design system may add values.","axis":"tanrei.comp.timeline.size"}],"items":[{"name":"event","summary":"One event of the timeline: a time, a title, a body, and where the events have them a status and a glyph. Its place comes from the order the product gives the events in.","props":[{"name":"time","type":"string","default":"","description":"When, as the product writes it for its reader, in the product's language, calendar and format (\"19 September 2026\", \"2 hours ago\", \"Q3\", \"Wave 1\"). Drawn first in the event. The timeline does not format, translate or compare it."},{"name":"datetime","type":"string","default":"","description":"The same moment for a machine: a date, a time or a period in the form the platform's time element takes (ISO 8601: \"2026-09-19\", \"2026-09-19T09:41:00Z\"). Not drawn. With it the time is exposed as a time; without it, as text — which is right for a time that is not a moment (\"Wave 1\")."},{"name":"title","type":"string","default":"","description":"What the event is, in a few words. Plain text: read with the event, and not a heading. A title that is a heading of the page is given in the title slot instead."},{"name":"status","type":"enum","values":["none","done","current","upcoming"],"default":"none","description":"Where the event stands, for a timeline whose events have a state: done (finished), current (under way now), upcoming (not begun). None, the default, is an event that simply happened: a log has no statuses. It changes the marker's shape and nothing else; the words are statusLabel's."},{"name":"statusLabel","type":"string","default":"","description":"The status in words, in the product's language (\"Done\", \"In progress\", \"Planned\"), read by assistive technology before the event's time and title and not drawn. Needed with every status but none, unless the event's own text already says it. Ignored while status is none."},{"name":"icon","type":"string","default":"","description":"A glyph of the system's icon set, by name, drawn in the marker in place of the dot, the check or the inner mark (a release's tag, a comment's bubble). Decorative."}],"slots":[{"name":"title","description":"The title as content of the product's own: a heading of the level the page's outline needs (so the event is in the page's table of contents and can be linked to), or text with a link or a tag in it. Drawn in the title's text style whatever its level; its role and level are kept. Takes the place of the title prop."}]}],"states":["enabled"],"behavior":[{"id":"TML-1","text":"THE timeline SHALL lay out its events in one column, in the order they are given, each event a row of two parts: its marker, in a column at the timeline's start edge, and its content — its time, its title and its body, those it has, in that order — beside it. The marker column SHALL be as wide as the marker's box of the size (comp.timeline.marker.height.medium for medium, comp.timeline.marker.height.large for large); every event's content SHALL begin at one edge, comp.timeline.marker.gap after that column, and run to the timeline's end edge. THE timeline SHALL draw no fill, no edge and no elevation of its own and SHALL add no padding around itself."},{"id":"TML-2","text":"THE timeline SHALL separate the end of one event from the beginning of the next by comp.timeline.item.gap, which follows the system's spacing, at every size. THE timeline SHALL keep the order the product gives: it SHALL NOT sort, reverse, group, number, hide, collapse or page its events, and SHALL NOT read their times to do so."},{"id":"TML-3","text":"WHERE an event has a time THE timeline SHALL draw it first in the event's content, as the product wrote it, in the time style of its size (comp.timeline.time.typescale.medium for medium, comp.timeline.time.typescale.large for large) and in comp.timeline.time.color, wrapping and never cut, and SHALL begin what follows it in the event comp.timeline.time.gap below it. WHERE datetime is not empty THE timeline SHALL expose the time as a time whose machine-readable value is datetime, and SHALL NOT draw datetime; WHERE it is empty the time is text. THE timeline SHALL NOT format, translate, shorten or update a time: a time that changes as the clock moves (\"2 hours ago\") is the product's to change."},{"id":"TML-4","text":"WHERE an event has a title THE timeline SHALL draw it after the time, in comp.timeline.title.typescale.medium for medium (comp.timeline.title.typescale.large for large) and the content color of the surface the timeline sits on, SHALL wrap it and never cut it, and SHALL begin the event's body comp.timeline.title.gap below it. A title given as text SHALL be exposed as text of its event and SHALL NOT be a heading; WHERE the product gives the title as content of its own in the event's title slot THE timeline SHALL draw it as any title, in the same text style whatever its level, in place of the title prop, and SHALL change neither its role nor its level, nor the roles of what it holds (a link, a tag). THE timeline SHALL set the title's letter-spacing by the script of its text, as every title is set (PRS-20): no negative letter-spacing WHERE its language is Chinese, Japanese or Korean, and none WHERE its script joins its letters or stacks marks on them."},{"id":"TML-5","text":"THE timeline SHALL draw the content an event is given as that event's body and SHALL give it comp.timeline.body.typescale.medium for medium (comp.timeline.body.typescale.large for large) as the text style its text takes where nothing inside sets another, and no color of its own: its text takes the content color of the surface the timeline sits on. The body SHALL wrap and SHALL never be cut or limited to a number of lines. WHERE the body holds more than one block THE timeline SHALL separate two blocks that follow each other by comp.timeline.body.gap, SHALL lay long-form blocks out as prose of the timeline's size, and SHALL give every block that is not text — a code block, a table, a picture, any component — the body's whole inline size, such a block scrolling inside its own box when its content cannot shrink (PRS-15)."},{"id":"TML-6","text":"THE timeline SHALL draw each event's marker centred in a square box whose side is the marker's box of the size (TML-1), the box at the top of the event with its centre on the centre of the event's first line of text; WHERE the box is taller than that line THE timeline SHALL lower the event's content by half the difference, so that no marker reaches into the space above its event. WHILE an event's status is none and its icon is empty THE marker SHALL be a filled circle of diameter comp.timeline.marker.dot.size in comp.timeline.marker.dot.color, a circle whatever corners a ring has. WHILE its status is none and its icon is not empty THE marker SHALL be a ring — the whole box, with corners comp.timeline.marker.shape, never larger than half the box's side and eased by sys.shape.corner-smoothing, no fill, and an edge comp.timeline.marker.outline.width wide in comp.timeline.marker.outline.color drawn inside the box — holding that glyph at its centre (TML-8). Every marker SHALL be kept from assistive technology."},{"id":"TML-7","text":"WHILE an event's status is done THE timeline SHALL draw its marker as the ring of TML-6 holding the icon set's check glyph, or the event's own glyph where icon is not empty, in comp.timeline.marker.icon.color. WHILE its status is current THE marker SHALL be the whole box filled with comp.timeline.marker.current.container.color, with the ring's corners and no edge, holding a filled circle of diameter comp.timeline.marker.dot.size, or the event's own glyph, in comp.timeline.marker.current.icon.color. WHILE its status is upcoming THE marker SHALL be the ring of TML-6, empty, or holding the event's own glyph in comp.timeline.marker.icon.color. The three SHALL differ in shape and not only in color — a mark in a ring, a filled circle, an empty ring — and a status SHALL change the marker only: the event's time, title, body and connectors are drawn as every other event's. Any number of events may have any status; THE timeline SHALL NOT derive one event's status from another's or from its time."},{"id":"TML-8","text":"WHERE a marker holds a glyph THE timeline SHALL draw it in a box of comp.timeline.marker.icon.size at the centre of the marker, in comp.timeline.marker.icon.color (comp.timeline.marker.current.icon.color on the marker of a current event), with sys.icon.family.unselected and sys.icon.fill.unselected, sys.icon.weight and an optical size clamped between sys.icon.optical-size.min and sys.icon.optical-size.max, and SHALL keep it from assistive technology."},{"id":"TML-9","text":"WHILE an event is followed by another event THE timeline SHALL draw a connector between their two markers: a straight line comp.timeline.connector.thickness thick in comp.timeline.connector.color, on the centre line of the marker column, from comp.timeline.connector.gap below the bottom of the upper marker's box to comp.timeline.connector.gap above the top of the lower marker's box, through the space between the two events, however tall the upper event's content is. THE timeline SHALL draw no connector after the last event and none for a timeline of one event; a connector SHALL take no room in the layout, SHALL never be drawn over a marker or over content, SHALL be the same line between events of any status, and SHALL be kept from assistive technology."},{"id":"TML-10","text":"THE timeline SHALL lay itself out as a block in the flow of its container: it SHALL take the whole inline size the container gives it, with its start edge on the start edge of the text around it; it SHALL bring no outer space of its own (PRS-15: the space between it and its neighbours is its container's), SHALL never be wider than its container, SHALL have no minimum width and no maximum width, and SHALL NOT scroll. WHILE the timeline sits in a prose that keeps a measure THE timeline SHALL take that prose's full width as a block that is not text (PRS-18)."},{"id":"TML-11","text":"THE timeline SHALL NOT take pointer, touch or keyboard input, SHALL NOT take focus or be a stop in the focus order, and SHALL NOT change anything it draws under a pointer, a press or focus: an event has no hovered, focused, pressed, selected or disabled state, a marker is not a control, and the timeline emits no event of its own. What the product places in a title slot or a body — a link, a Button, a tag — takes input by its own spec, and text in a time, a title and a body SHALL remain selectable where the platform lets text be selected."},{"id":"TML-12","text":"THE timeline SHALL be exposed to assistive technology as an ordered list of as many items as it has events, named by label where label is not empty, and each event as one item of that list holding, in this order, its status in words, its time, its title and its body. WHILE an event's status is not none and its statusLabel is not empty THE timeline SHALL expose statusLabel as text before the event's time, set apart so that it is read as a phrase of its own (\"Done, 19 September 2026, …\"), and SHALL NOT draw it; WHILE status is none it SHALL ignore statusLabel. WHILE exactly one event of the timeline has the status current THE timeline SHALL also expose that event as the current item of its list, in the platform's own way; with none or several it SHALL expose no item as current. THE timeline SHALL NOT expose a status in any other way, and SHALL add no role to a time without datetime, to a title given as text or to anything in a body."},{"id":"TML-13","text":"WHEN label, or an event's time, datetime, title, status, statusLabel, icon or body changes, or an event is added, removed or moved, THE timeline SHALL draw and expose the new value at once, without a motion, and SHALL NOT announce the change by itself and SHALL NOT scroll to it."},{"id":"TML-14","text":"WHILE the text size is enlarged THE timeline SHALL grow each time, title and body with it, keep every marker's box at the marker's box of the size and the dot and the glyph at comp.timeline.marker.dot.size and comp.timeline.marker.icon.size, each still centred on its event's first line (TML-6), and keep comp.timeline.marker.gap, the item gap, comp.timeline.time.gap, comp.timeline.title.gap, comp.timeline.body.gap and comp.timeline.connector.gap as they are; it SHALL wrap, set no fixed height on an event, lose no content when the reader raises line height, paragraph spacing, letter spacing or word spacing, and SHALL need no horizontal scrolling at a width of 320 points with text at 200 %, except inside a block that scrolls in its own box (TML-5)."},{"id":"TML-15","text":"WHERE the timeline is placed inside an event's body of another timeline THE timeline SHALL draw itself as a timeline of its own in the body's width, and in debug builds SHALL report that timelines are nested: events inside an event are a list of prose in the body."},{"id":"TML-16","text":"WHERE the platform draws with a person's own forced colors (the web's forced-colors mode, and a platform's equivalent where it has one) THE timeline SHALL draw each dot, each ring, each glyph and each connector in the platform's text color at their own sizes and widths, the marker of a current event as a circle filled with that text color whose inner mark or glyph is in the platform's background color, and each time, title and body in the text color; the three statuses SHALL then still differ by shape (TML-7), and nothing else the timeline draws relies on a fill."},{"id":"TML-17","text":"WHERE the layout direction is right-to-left THE timeline SHALL mirror its two parts and apply its spaces by logical start and end, so that the marker column and the connectors are at the right and each event's content is at its left, beginning at one edge and running to the timeline's left edge."},{"id":"TML-18","text":"THE timeline SHALL take its layout direction from where it is used — the direction of the nearest ancestor that sets one, and the platform's own where none does — and SHALL have no direction setting of its own; WHEN that direction changes while the timeline is shown THE timeline SHALL draw itself for the new direction at once, without a motion of its own, keeping what it shows."},{"id":"TML-19","text":"WHERE the layout direction is right-to-left THE timeline SHALL draw the glyph of a marker mirrored left to right exactly when the system's icon set marks that glyph's name as mirrored or the product forces mirroring for that use, and unmirrored when the product forbids it: the icon helper mirrors the glyph inside its own box, about the box's vertical centre line, changing neither its place, size, color and fill nor the order TML-17 gives. THE timeline SHALL NOT mirror a glyph itself. The dot, the ring and the check are never mirrored."},{"id":"TML-20","text":"THE timeline SHALL lay out an event's time, and a title given as text, each as text of its own direction, isolated from the text around it: it takes the base direction of its first strong character, or the layout direction where it has none, so that a date written in digits, a version and a clock time keep their own order in a right-to-left layout and reorder nothing beside them; THE timeline SHALL still place the time and the title and align their lines by the layout direction, not by the text's own. The body's direction is its content's."},{"id":"TML-21","text":"WHEN size names a value that the active design system does not have THE timeline SHALL render with the default value's tokens, and WHEN an event's status names a value this spec does not have THE timeline SHALL draw that event as for none; in debug builds it SHALL report the unknown value."},{"id":"TML-22","text":"IF the timeline holds no event THE timeline SHALL draw nothing, take no space and expose nothing: what stands in an empty timeline's place is the product's (an empty state). IF an event has neither a time, a title nor a body THE timeline SHALL still draw its marker and count it in the list's items, and in debug builds report that an event is empty. WHILE an event's status is not none and its statusLabel is empty THE timeline SHALL still draw it and in debug builds report that a status is not given in words; IF statusLabel is not empty while status is none THE timeline SHALL ignore it and in debug builds report it."}],"accessibility":{"role":"list","keyboard":[],"labeling":"An ordered list, named by label where the product gives one; where a heading directly before the timeline says what it records, no label is needed. Each event is a list item read as its status in words (statusLabel, where it has a status), its time, its title and its body, in that order. A time with datetime is exposed as a time; the markers and the connector are decorative and hidden. A title is text of its item, or the product's own heading where the product gave one. Where exactly one event is current, it is the list's current item.","minimumTarget":true,"notes":["Not interactive: the timeline takes no input and no focus (TML-11), so there is no target of its own to size and minimumTarget holds trivially. What is pressable inside a title or a body meets the minimum target by its own spec.","A status never rests on color alone (WCAG 1.4.1), and not on shape alone either. For a reader who sees, the three statuses are three shapes (TML-7), which forced colors keep (TML-16); for assistive technology each is statusLabel in words (TML-12). The component cannot tell whether an event's own text already says its status, so giving statusLabel is the product's to check. Where the status matters to every reader (a plan people decide by), show it in words too: a tag in the title or the body.","Order is carried by structure, not by the drawing: the timeline is an ordered list (TML-12), so a reader who does not see the markers and the connector loses nothing, and a missing stylesheet costs only the look.","A time is the product's words (TML-3). \"2 hours ago\" is read as written and goes stale as written; a product that shows relative times also gives datetime, so the exact moment is available to assistive technology and to the platform.","Contrast: the timeline brings no color for a title or a body, so they have the contrast of the content color of the surface they sit on. The time, the dot and a ring's glyph are on-surface-variant, held to 4.5:1 on every surface tone by the token invariants; the current marker's mark is on-primary on primary, held to 4.5:1, and primary on every surface tone is held to 4.5:1, as primary-colored text is, so the filled marker is found on any of them. The ring and the connector are the decorative hairline and are not held to a ratio: an upcoming event's empty ring may be faint, which is why its status is also in words.","A title is not a heading by default: a changelog of forty events would otherwise fill the page's outline. Where the events are the page's sections (one release per section), give each title as a heading in the title slot; its level is the page's, and the timeline does not change it (TML-4).","A timeline does not announce an event that is added (TML-13). A feed that grows while the person watches is the product's to announce, in a live region around or beside the timeline, and its own to decide whether to interrupt.","Text size, text spacing and reflow: TML-14. A long timeline is never cut, collapsed or paged by the component; hiding older events behind a control is the product's, with a Button after the list."]},"tokens":"comp.timeline","fixtures":[{"id":"dated","props":{"label":"Release history"},"items":[{"kind":"event","props":{"time":"22 September 2026","datetime":"2026-09-22","title":"Text styles by level"},"content":"The text styles are named by their level, and every corner can be eased."},{"kind":"event","props":{"time":"21 September 2026","datetime":"2026-09-21","title":"A vocabulary that can be extended"},"content":"A design layer may add a step to a series or a value to an axis, with its reason."},{"kind":"event","props":{"time":"19 September 2026","datetime":"2026-09-19","title":"Development begins"},"content":"The token pipeline, the spec schema and the first spec exist."}]},{"id":"titles-only","props":{"label":"Release history"},"items":[{"kind":"event","props":{"time":"22 September 2026","datetime":"2026-09-22","title":"Text styles by level"}},{"kind":"event","props":{"time":"21 September 2026","datetime":"2026-09-21","title":"A vocabulary that can be extended"}},{"kind":"event","props":{"time":"19 September 2026","datetime":"2026-09-19","title":"Development begins"}}]},{"id":"plan","props":{"label":"Roadmap"},"items":[{"kind":"event","props":{"time":"Wave 0","title":"Foundations","status":"done","statusLabel":"Done"},"content":"Tokens, theming, typography, icons, surfaces and the state primitives."},{"kind":"event","props":{"time":"Wave 1","title":"The controls of day one","status":"done","statusLabel":"Done"},"content":"Buttons, fields, selection controls and the list."},{"kind":"event","props":{"time":"Wave 2","title":"Navigation and overlays","status":"current","statusLabel":"In progress"},"content":"The drawer, tabs, dialogs, menus and sheets."},{"kind":"event","props":{"time":"Wave 3","title":"The specialised pieces","status":"upcoming","statusLabel":"Not started"},"content":"Pickers, the carousel and what a documentation site needs."}]},{"id":"plan-icons","props":{"label":"Order 1042"},"items":[{"kind":"event","props":{"time":"Monday, 09:41","title":"Order placed","status":"done","statusLabel":"Done","icon":"receipt_long"}},{"kind":"event","props":{"time":"Tuesday, 14:05","title":"On its way","status":"current","statusLabel":"In progress","icon":"local_shipping"}},{"kind":"event","props":{"time":"Expected Thursday","title":"Delivered","status":"upcoming","statusLabel":"Not started","icon":"home"}}]},{"id":"icons","props":{"label":"Activity"},"items":[{"kind":"event","props":{"time":"Today, 10:12","title":"Ada commented on the proposal","icon":"chat_bubble"}},{"kind":"event","props":{"time":"Today, 09:30","title":"The checks passed","icon":"check_circle"}},{"kind":"event","props":{"time":"Yesterday","title":"Grace opened the proposal","icon":"edit"}}]},{"id":"large","props":{"label":"Release history","size":"large"},"items":[{"kind":"event","props":{"time":"21 September 2026","datetime":"2026-09-21","title":"A vocabulary that can be extended"},"content":"A design layer may add a step to a series or a value to an axis, with its reason."},{"kind":"event","props":{"time":"19 September 2026","datetime":"2026-09-19","title":"Development begins"},"content":"The token pipeline, the spec schema and the first spec exist."}]},{"id":"large-plan","props":{"label":"Roadmap","size":"large"},"items":[{"kind":"event","props":{"time":"Wave 1","title":"The controls of day one","status":"done","statusLabel":"Done"}},{"kind":"event","props":{"time":"Wave 2","title":"Navigation and overlays","status":"current","statusLabel":"In progress"}},{"kind":"event","props":{"time":"Wave 3","title":"The specialised pieces","status":"upcoming","statusLabel":"Not started"}}]},{"id":"long-bodies","props":{"label":"The history of an account"},"items":[{"kind":"event","props":{"time":"3 March","title":"The account was moved to another owner, who accepted it the same day after reading the terms that apply to shared accounts"},"content":"The export ran on the service and took an hour for a large mailbox; the page could be closed while it ran, and a message arrived at the account's address when the archive was ready. The archive stayed available for seven days."},{"kind":"event","props":{"time":"1 March","title":"The move was asked for"},"content":"An account that is shared with other people can be moved only by the person who opened it; everyone else sees the choice greyed out, with the owner's name beside it, and can ask the owner from there."}]},{"id":"no-time","props":{"label":"What happened"},"items":[{"kind":"event","props":{"title":"The file was uploaded"}},{"kind":"event","props":{"title":"The file was checked"},"content":"No problems were found."},{"kind":"event","props":{},"content":"The file was published to everyone with the link."}]},{"id":"single","props":{"label":"Release history"},"items":[{"kind":"event","props":{"time":"19 September 2026","datetime":"2026-09-19","title":"Development begins"}}]},{"id":"dated-rtl","props":{"label":"سجل الإصدارات"},"items":[{"kind":"event","props":{"time":"٢١ سبتمبر ٢٠٢٦","datetime":"2026-09-21","title":"مفردات قابلة للتوسيع"},"content":"يمكن لطبقة التصميم أن تضيف قيمة إلى محور مع ذكر السبب."},{"kind":"event","props":{"time":"١٩ سبتمبر ٢٠٢٦","datetime":"2026-09-19","title":"بدء التطوير"},"content":"أصبح مسار الرموز ومخطط المواصفات والمواصفة الأولى موجودة."}],"direction":"rtl"},{"id":"plan-rtl","props":{"label":"خارطة الطريق"},"items":[{"kind":"event","props":{"time":"المرحلة ١","title":"عناصر التحكم الأساسية","status":"done","statusLabel":"تم"}},{"kind":"event","props":{"time":"المرحلة ٢","title":"التنقل والطبقات","status":"current","statusLabel":"قيد التنفيذ","icon":"arrow_forward"}},{"kind":"event","props":{"time":"المرحلة ٣","title":"القطع المتخصصة","status":"upcoming","statusLabel":"لم يبدأ"}}],"direction":"rtl"},{"id":"ltr-times-rtl","props":{"label":"سجل الإصدارات"},"items":[{"kind":"event","props":{"time":"2026-09-21","datetime":"2026-09-21","title":"v0.2.0"},"content":"يمكن لطبقة التصميم أن تضيف قيمة إلى محور مع ذكر السبب."},{"kind":"event","props":{"time":"2026-09-19","datetime":"2026-09-19","title":"v0.1.0"},"content":"أصبح مسار الرموز ومخطط المواصفات والمواصفة الأولى موجودة."}],"direction":"rtl"}],"platforms":{"web":{"status":"lagging","name":"tanrei-timeline","props":{"label":"aria-label","size":"data-size"},"items":{"event":{"name":"li","props":{"time":"tanrei-timeline-time","datetime":"datetime","title":"tanrei-timeline-title","status":"data-status","statusLabel":"data-status-label","icon":"tanrei-timeline-marker"},"notes":"An `<li>` of the list. The time is the item's `<time class=\"tanrei-timeline-time\" datetime=\"…\">`, or a `<p>` of that class where it is not a moment. The title is the next child where it is a heading (`h2` to `h6`) or carries `class=\"tanrei-timeline-title\"`: the spec's `title` prop and its title slot are the same element on this platform, told apart by the tag the product chose. Every other child is the body. `data-status` is `done`, `current` or `upcoming`; `data-status-label` carries the words. A glyph is `<span class=\"tanrei-timeline-marker tanrei-icon\" aria-hidden=\"true\">flag</span>` as the item's first child."}},"notes":"It is the form the steps take. A class on the product's own ordered list, not an element — `<ol class=\"tanrei-timeline\" role=\"list\">` with `<li>` children — styled by one optional stylesheet of the package, `@tanrei/web/timeline.css`, whose selectors are wrapped in `:where()` so one class on the product's side wins. The list stays the document's list: it is an ordered list with `<time>` elements before any script runs and for whatever reads the page as built, a renderer's `<ol>` needs one class and no wrapper, and there is nothing to define, so nothing changes place after the page loads; without the stylesheet it is the browser's numbered list of dated paragraphs. `label` is `aria-label` (or `aria-labelledby` naming the heading before it); `data-size=\"large\"` is the size. The marker is the item's `::before` — the dot, the ring, the filled circle with its inner dot, and the done event's check as the icon font's `check` ligature — unless the item's first child is a `.tanrei-timeline-marker`, which then is the marker and holds the glyph through the package's `.tanrei-icon` helper; the connector is the item's `::after`, absolutely placed, with `pointer-events: none`. `list-style: none` removes list semantics in one engine's accessibility tree, which is why the contract writes `role=\"list\"` on the `<ol>`. The status in words (TML-12) is generated content of the item's first text part, `content: attr(data-status-label) \", \"`, clipped out of sight and read with the item; the test of TML-12 is run with a screen reader in each engine, and where an engine does not read it the package's script writes a visually hidden `<span>` instead. The same script, where it is loaded, sets `aria-current=\"true\"` on the item while exactly one has `data-status=\"current\"`, and adds the debug reports of TML-15, TML-21 and TML-22; without it no item is exposed as current, and the words still are. A time and a title are `dir=\"auto\"`-like through `unicode-bidi: plaintext` with physical alignment by `:dir()` (TML-20). TML-6 uses `1lh` of the item's first line. Inside a `.tanrei-prose` the list is not an island (it is a class on an `<ol>`), so prose's own rules keep reaching each body, and `timeline.css` takes back from `prose.css` what a timeline draws itself: the list's inset, its markers, the item gap and the measure on the list. Under `forced-colors: active` the markers and the connector are `CanvasText`, and the current marker a `CanvasText` disc with a `Canvas` mark (TML-16). React: `Timeline` and `TimelineEvent` render the same `<ol>` and `<li>`; `TimelineEvent` takes `time`, `dateTime`, `title` (text, rendered as `<p class=\"tanrei-timeline-title\">`) or a heading child, `status`, `statusLabel` and `icon`."},"swiftui":{"status":"planned","name":"TanreiTimeline","props":{"label":"label","size":"size"},"items":{"event":{"name":"TanreiTimelineEvent","props":{"time":"time","datetime":"date","title":"title","status":"status","statusLabel":"statusLabel","icon":"icon"},"notes":"`TanreiTimelineEvent(title:, time:, date:, status:, statusLabel:, icon:) { body }`; a heading title is the `title:` view builder, marked with the header trait by the product."}},"notes":"`TanreiTimeline(label:, size:) { TanreiTimelineEvent(…) … }`. A `VStack` of rows, not a `List` (no row chrome, no selection). Each event is one accessibility element that contains its children, whose label begins with the status label; `date` is a `Date` handed to the element's accessibility value where the platform has a use for it."},"compose":{"status":"planned","name":"TanreiTimeline","props":{"label":"label","size":"size"},"items":{"event":{"name":"TanreiTimelineEvent","props":{"time":"time","datetime":"dateTime","title":"title","status":"status","statusLabel":"statusDescription","icon":"icon"},"notes":"`TanreiTimelineEvent(title, time, dateTime, status, statusDescription, icon) { body }` inside the timeline's scope."}},"notes":"`TanreiTimeline(label, size) { TanreiTimelineEvent(…) … }`. A `Column` with `collectionInfo` and `collectionItemInfo` semantics, so the events are a list of that many items; the connector is drawn behind the rows with `drawBehind`. No `clickable` and no `focusable` modifier."},"flutter":{"status":"planned","name":"TanreiTimeline","props":{"label":"semanticLabel","size":"size"},"items":{"event":{"name":"TanreiTimelineEvent","props":{"time":"time","datetime":"dateTime","title":"title","status":"status","statusLabel":"statusSemanticLabel","icon":"icon"},"notes":"`TanreiTimelineEvent(title:, time:, dateTime:, status:, statusSemanticLabel:, icon:, child:)`; `titleWidget:` takes a heading of the product's own."}},"notes":"`TanreiTimeline(semanticLabel:, size:, events: [TanreiTimelineEvent(…), …])`. A `Column`, not a `ListView`: the timeline does not scroll (TML-10). The connector is a `CustomPaint` behind the rows. Each event is a `Semantics(container: true)` whose label begins with the status label."},"react-native":{"status":"planned","name":"Timeline","props":{"label":"accessibilityLabel","size":"size"},"items":{"event":{"name":"TimelineEvent","props":{"time":"time","datetime":"dateTime","title":"title","status":"status","statusLabel":"statusAccessibilityLabel","icon":"icon"},"notes":"`<TimelineEvent title=\"…\" time=\"…\" status=\"done\" statusAccessibilityLabel=\"Done\">body</TimelineEvent>`."}},"notes":"`<Timeline accessibilityLabel=\"Release history\">` with `<TimelineEvent>` children; `accessibilityRole=\"list\"` on the container. Each event is one accessible element whose label is composed from the status label, the time and the title. Follows the app's direction where an ancestor's is not known."}}}
|