@tanrei/mcp 0.1.0-next.0 → 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.
Files changed (224) hide show
  1. package/NOTICE +4 -5
  2. package/README.md +21 -6
  3. package/bin/tanrei-mcp.js +3 -3
  4. package/dist/server.js +2218 -711
  5. package/dist/vocabulary/docs/governance/mimicry-gaps.json +95 -21
  6. package/dist/vocabulary/packages/tokens-build/generated/component-catalog.json +1825 -0
  7. package/dist/vocabulary/specs/accordion.spec.json +1 -0
  8. package/dist/vocabulary/specs/app-bar.spec.json +1 -0
  9. package/dist/vocabulary/specs/app-shell.spec.json +1 -0
  10. package/dist/vocabulary/specs/avatar.spec.json +1 -0
  11. package/dist/vocabulary/specs/badge.spec.json +1 -0
  12. package/dist/vocabulary/specs/bottom-sheet.spec.json +1 -0
  13. package/dist/vocabulary/specs/breadcrumbs.spec.json +1 -0
  14. package/dist/vocabulary/specs/button-group.spec.json +1 -0
  15. package/dist/vocabulary/specs/button-with-menu.spec.json +1 -0
  16. package/dist/vocabulary/specs/button.spec.json +1 -0
  17. package/dist/vocabulary/specs/calendar.spec.json +1 -0
  18. package/dist/vocabulary/specs/callout.spec.json +1 -0
  19. package/dist/vocabulary/specs/card.spec.json +1 -0
  20. package/dist/vocabulary/specs/carousel.spec.json +1 -0
  21. package/dist/vocabulary/specs/chat-composer.spec.json +1 -0
  22. package/dist/vocabulary/specs/checkbox-group.spec.json +1 -0
  23. package/dist/vocabulary/specs/checkbox.spec.json +1 -0
  24. package/dist/vocabulary/specs/chip-field.spec.json +1 -0
  25. package/dist/vocabulary/specs/chip.spec.json +1 -0
  26. package/dist/vocabulary/specs/code-block.spec.json +1 -0
  27. package/dist/vocabulary/specs/color-field.spec.json +1 -0
  28. package/dist/vocabulary/specs/color-input.spec.json +1 -0
  29. package/dist/vocabulary/specs/combobox-field.spec.json +1 -0
  30. package/dist/vocabulary/specs/combobox.spec.json +1 -0
  31. package/dist/vocabulary/specs/component.schema.json +1 -0
  32. package/dist/vocabulary/specs/copy-button.spec.json +1 -0
  33. package/dist/vocabulary/specs/date-time-picker.spec.json +1 -0
  34. package/dist/vocabulary/specs/description-list.spec.json +1 -0
  35. package/dist/vocabulary/specs/dialog.spec.json +1 -0
  36. package/dist/vocabulary/specs/divider.spec.json +1 -0
  37. package/dist/vocabulary/specs/drop-zone.spec.json +1 -0
  38. package/dist/vocabulary/specs/embedded-text-input.spec.json +1 -0
  39. package/dist/vocabulary/specs/empty-state.spec.json +1 -0
  40. package/dist/vocabulary/specs/fab-menu.spec.json +1 -0
  41. package/dist/vocabulary/specs/field-group.spec.json +1 -0
  42. package/dist/vocabulary/specs/field.spec.json +1 -0
  43. package/dist/vocabulary/specs/figure.spec.json +1 -0
  44. package/dist/vocabulary/specs/file-item.spec.json +1 -0
  45. package/dist/vocabulary/specs/file-picker.spec.json +1 -0
  46. package/dist/vocabulary/specs/file-upload.spec.json +1 -0
  47. package/dist/vocabulary/specs/handle.spec.json +1 -0
  48. package/dist/vocabulary/specs/image-preview.spec.json +1 -0
  49. package/dist/vocabulary/specs/inline-code.spec.json +1 -0
  50. package/dist/vocabulary/specs/inventory.json +1 -0
  51. package/dist/vocabulary/specs/keyboard-shortcut.spec.json +1 -0
  52. package/dist/vocabulary/specs/link-card.spec.json +1 -0
  53. package/dist/vocabulary/specs/link.spec.json +1 -0
  54. package/dist/vocabulary/specs/list-row.spec.json +1 -0
  55. package/dist/vocabulary/specs/list.spec.json +1 -0
  56. package/dist/vocabulary/specs/loading-indicator.spec.json +1 -0
  57. package/dist/vocabulary/specs/main-action-button.spec.json +1 -0
  58. package/dist/vocabulary/specs/marquee-text.spec.json +1 -0
  59. package/dist/vocabulary/specs/menu.spec.json +1 -0
  60. package/dist/vocabulary/specs/menubar.spec.json +1 -0
  61. package/dist/vocabulary/specs/meter.spec.json +1 -0
  62. package/dist/vocabulary/specs/modal-layer.spec.json +1 -0
  63. package/dist/vocabulary/specs/navigation-bar.spec.json +1 -0
  64. package/dist/vocabulary/specs/navigation-drawer.spec.json +1 -0
  65. package/dist/vocabulary/specs/number-field.spec.json +1 -0
  66. package/dist/vocabulary/specs/number-input.spec.json +1 -0
  67. package/dist/vocabulary/specs/number-ticker.spec.json +1 -0
  68. package/dist/vocabulary/specs/one-time-code-field.spec.json +1 -0
  69. package/dist/vocabulary/specs/one-time-code-input.spec.json +1 -0
  70. package/dist/vocabulary/specs/page-header.spec.json +1 -0
  71. package/dist/vocabulary/specs/pagination.spec.json +1 -0
  72. package/dist/vocabulary/specs/popover.spec.json +1 -0
  73. package/dist/vocabulary/specs/previous-next-links.spec.json +1 -0
  74. package/dist/vocabulary/specs/progress-indicator.spec.json +1 -0
  75. package/dist/vocabulary/specs/prose.spec.json +1 -0
  76. package/dist/vocabulary/specs/radio-button.spec.json +1 -0
  77. package/dist/vocabulary/specs/radio-group.spec.json +1 -0
  78. package/dist/vocabulary/specs/rating.spec.json +1 -0
  79. package/dist/vocabulary/specs/resizable-frame.spec.json +1 -0
  80. package/dist/vocabulary/specs/scroll-area.spec.json +1 -0
  81. package/dist/vocabulary/specs/search.spec.json +1 -0
  82. package/dist/vocabulary/specs/segmented-button.spec.json +1 -0
  83. package/dist/vocabulary/specs/select-field.spec.json +1 -0
  84. package/dist/vocabulary/specs/select.spec.json +1 -0
  85. package/dist/vocabulary/specs/side-sheet.spec.json +1 -0
  86. package/dist/vocabulary/specs/size-transition.spec.json +1 -0
  87. package/dist/vocabulary/specs/skeleton.spec.json +1 -0
  88. package/dist/vocabulary/specs/slider-field.spec.json +1 -0
  89. package/dist/vocabulary/specs/slider.spec.json +1 -0
  90. package/dist/vocabulary/specs/snackbar.spec.json +1 -0
  91. package/dist/vocabulary/specs/split-view.spec.json +1 -0
  92. package/dist/vocabulary/specs/stepper.spec.json +1 -0
  93. package/dist/vocabulary/specs/steps.spec.json +1 -0
  94. package/dist/vocabulary/specs/swatch.spec.json +1 -0
  95. package/dist/vocabulary/specs/switch.spec.json +1 -0
  96. package/dist/vocabulary/specs/tab-view.spec.json +1 -0
  97. package/dist/vocabulary/specs/table-of-contents.spec.json +1 -0
  98. package/dist/vocabulary/specs/table.spec.json +1 -0
  99. package/dist/vocabulary/specs/tabs.spec.json +1 -0
  100. package/dist/vocabulary/specs/tag-group.spec.json +1 -0
  101. package/dist/vocabulary/specs/tag.spec.json +1 -0
  102. package/dist/vocabulary/specs/text-field.spec.json +1 -0
  103. package/dist/vocabulary/specs/text-input.spec.json +1 -0
  104. package/dist/vocabulary/specs/timeline.spec.json +1 -0
  105. package/dist/vocabulary/specs/toolbar.spec.json +1 -0
  106. package/dist/vocabulary/specs/tooltip.spec.json +1 -0
  107. package/dist/vocabulary/specs/tree-view.spec.json +1 -0
  108. package/dist/vocabulary/tanrei.config.json +2 -1
  109. package/dist/vocabulary/tokens/comp/accordion.tokens.json +70 -47
  110. package/dist/vocabulary/tokens/comp/app-bar.tokens.json +99 -2
  111. package/dist/vocabulary/tokens/comp/app-shell.tokens.json +1 -1
  112. package/dist/vocabulary/tokens/comp/avatar.tokens.json +17 -5
  113. package/dist/vocabulary/tokens/comp/badge.tokens.json +2 -1
  114. package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +143 -73
  115. package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +3 -3
  116. package/dist/vocabulary/tokens/comp/button-group.tokens.json +26 -4
  117. package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +256 -28
  118. package/dist/vocabulary/tokens/comp/button.tokens.json +275 -22
  119. package/dist/vocabulary/tokens/comp/calendar.tokens.json +28 -18
  120. package/dist/vocabulary/tokens/comp/callout.tokens.json +55 -299
  121. package/dist/vocabulary/tokens/comp/card.tokens.json +3 -3
  122. package/dist/vocabulary/tokens/comp/carousel.tokens.json +70 -10
  123. package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +37 -3
  124. package/dist/vocabulary/tokens/comp/checkbox.tokens.json +18 -22
  125. package/dist/vocabulary/tokens/comp/chip.tokens.json +67 -16
  126. package/dist/vocabulary/tokens/comp/code-block.tokens.json +15 -1
  127. package/dist/vocabulary/tokens/comp/combobox.tokens.json +202 -33
  128. package/dist/vocabulary/tokens/comp/copy-button.tokens.json +19 -2
  129. package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +66 -35
  130. package/dist/vocabulary/tokens/comp/description-list.tokens.json +45 -23
  131. package/dist/vocabulary/tokens/comp/dialog.tokens.json +95 -35
  132. package/dist/vocabulary/tokens/comp/drop-zone.tokens.json +151 -0
  133. package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +2 -2
  134. package/dist/vocabulary/tokens/comp/field-group.tokens.json +21 -1
  135. package/dist/vocabulary/tokens/comp/field.tokens.json +33 -4
  136. package/dist/vocabulary/tokens/comp/figure.tokens.json +56 -2
  137. package/dist/vocabulary/tokens/comp/file-item.tokens.json +4 -4
  138. package/dist/vocabulary/tokens/comp/file-picker.tokens.json +3 -3
  139. package/dist/vocabulary/tokens/comp/file-upload.tokens.json +2 -7
  140. package/dist/vocabulary/tokens/comp/handle.tokens.json +343 -0
  141. package/dist/vocabulary/tokens/comp/image-preview.tokens.json +53 -23
  142. package/dist/vocabulary/tokens/comp/input-box.tokens.json +161 -26
  143. package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +5 -3
  144. package/dist/vocabulary/tokens/comp/link-card.tokens.json +24 -4
  145. package/dist/vocabulary/tokens/comp/link.tokens.json +3 -3
  146. package/dist/vocabulary/tokens/comp/list-row.tokens.json +249 -0
  147. package/dist/vocabulary/tokens/comp/list.tokens.json +106 -225
  148. package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +13 -3
  149. package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +96 -23
  150. package/dist/vocabulary/tokens/comp/marquee-text.tokens.json +110 -0
  151. package/dist/vocabulary/tokens/comp/menu.tokens.json +248 -43
  152. package/dist/vocabulary/tokens/comp/menubar.tokens.json +63 -12
  153. package/dist/vocabulary/tokens/comp/meter.tokens.json +173 -0
  154. package/dist/vocabulary/tokens/comp/modal-layer.tokens.json +69 -0
  155. package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +5 -36
  156. package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +478 -122
  157. package/dist/vocabulary/tokens/comp/number-input.tokens.json +2 -2
  158. package/dist/vocabulary/tokens/comp/number-ticker.tokens.json +77 -0
  159. package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +22 -7
  160. package/dist/vocabulary/tokens/comp/pagination.tokens.json +118 -79
  161. package/dist/vocabulary/tokens/comp/popover.tokens.json +84 -13
  162. package/dist/vocabulary/tokens/comp/previous-next-links.tokens.json +194 -0
  163. package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +14 -4
  164. package/dist/vocabulary/tokens/comp/prose.tokens.json +16 -0
  165. package/dist/vocabulary/tokens/comp/radio-button.tokens.json +16 -20
  166. package/dist/vocabulary/tokens/comp/rating.tokens.json +230 -0
  167. package/dist/vocabulary/tokens/comp/resizable-frame.tokens.json +166 -0
  168. package/dist/vocabulary/tokens/comp/scroll-area.tokens.json +99 -0
  169. package/dist/vocabulary/tokens/comp/search.tokens.json +144 -58
  170. package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +75 -21
  171. package/dist/vocabulary/tokens/comp/select.tokens.json +168 -34
  172. package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +60 -13
  173. package/dist/vocabulary/tokens/comp/size-transition.tokens.json +49 -0
  174. package/dist/vocabulary/tokens/comp/skeleton.tokens.json +5 -2
  175. package/dist/vocabulary/tokens/comp/slider.tokens.json +11 -10
  176. package/dist/vocabulary/tokens/comp/snackbar.tokens.json +81 -255
  177. package/dist/vocabulary/tokens/comp/split-view.tokens.json +52 -0
  178. package/dist/vocabulary/tokens/comp/stepper.tokens.json +538 -0
  179. package/dist/vocabulary/tokens/comp/swatch.tokens.json +208 -0
  180. package/dist/vocabulary/tokens/comp/switch.tokens.json +19 -18
  181. package/dist/vocabulary/tokens/comp/tab-view.tokens.json +5 -5
  182. package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +58 -33
  183. package/dist/vocabulary/tokens/comp/table.tokens.json +141 -30
  184. package/dist/vocabulary/tokens/comp/tabs.tokens.json +132 -44
  185. package/dist/vocabulary/tokens/comp/tag-group.tokens.json +15 -4
  186. package/dist/vocabulary/tokens/comp/tag.tokens.json +32 -8
  187. package/dist/vocabulary/tokens/comp/text-input.tokens.json +18 -88
  188. package/dist/vocabulary/tokens/comp/timeline.tokens.json +15 -19
  189. package/dist/vocabulary/tokens/comp/toolbar.tokens.json +121 -6
  190. package/dist/vocabulary/tokens/comp/tooltip.tokens.json +8 -32
  191. package/dist/vocabulary/tokens/comp/tree-view.tokens.json +136 -51
  192. package/dist/vocabulary/tokens/dial/dial.tokens.json +23 -3
  193. package/dist/vocabulary/tokens/fidelity/cupertino.fidelity.json +165 -0
  194. package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +215 -5
  195. package/dist/vocabulary/tokens/fidelity/reference/androidx-material3.json +144 -0
  196. package/dist/vocabulary/tokens/fidelity/reference/apple-hig.json +196 -0
  197. package/dist/vocabulary/tokens/generated/cupertino/components.json +1749 -0
  198. package/dist/vocabulary/tokens/generated/cupertino/fidelity.json +162 -0
  199. package/dist/vocabulary/tokens/generated/m3-like/components.json +1761 -0
  200. package/dist/vocabulary/tokens/generated/m3-like/fidelity.json +182 -12
  201. package/dist/vocabulary/tokens/generated/tanrei/components.json +1764 -0
  202. package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +2 -1
  203. package/dist/vocabulary/tokens/schema/system.schema.json +324 -35
  204. package/dist/vocabulary/tokens/sys/behavior.tokens.json +66 -1
  205. package/dist/vocabulary/tokens/sys/measure.tokens.json +105 -21
  206. package/dist/vocabulary/tokens/sys/motion.tokens.json +474 -2
  207. package/dist/vocabulary/tokens/sys/scroll-edge.tokens.json +50 -0
  208. package/dist/vocabulary/tokens/sys/shape.tokens.json +1 -1
  209. package/dist/vocabulary/tokens/sys/state.tokens.json +16 -3
  210. package/dist/vocabulary/tokens/sys/typescale.tokens.json +5 -5
  211. package/dist/vocabulary/tokens/systems/core.system.json +1889 -0
  212. package/dist/vocabulary/tokens/systems/cupertino.system.json +298 -79
  213. package/dist/vocabulary/tokens/{comp → systems/m3-like/comp}/fab-menu.tokens.json +5 -15
  214. package/dist/vocabulary/tokens/systems/m3-like.system.json +451 -125
  215. package/dist/vocabulary/tokens/systems/tanrei.system.json +619 -321
  216. package/dist/vocabulary/tokens/tanrei.resolver.json +48 -6
  217. package/package.json +22 -6
  218. package/dist/vocabulary/tokens/AGENTS.md +0 -15
  219. package/dist/vocabulary/tokens/comp/navigation-rail.tokens.json +0 -254
  220. package/dist/vocabulary/tokens/fidelity/m3-expressive-like.fidelity.json +0 -68
  221. package/dist/vocabulary/tokens/fidelity/reference/androidx-material3-buttons.json +0 -67
  222. package/dist/vocabulary/tokens/generated/m3-expressive-like/fidelity.json +0 -99
  223. package/dist/vocabulary/tokens/systems/m3-expressive-like.system.json +0 -83
  224. package/dist/vocabulary/tokens/vocabulary.lock.json +0 -7052
@@ -0,0 +1 @@
1
+ {"name":"side-sheet","title":"Side sheet","summary":"Shows supplementary content or a secondary task in a panel at the end edge, beside the content on a wide screen or over it on a compact one, with a headline, a close button and actions: optional beside the content, at least one over it.","level":"composed","listing":"default","builtFrom":["modal-layer"],"anatomy":[{"id":"container","description":"The panel at the end edge, the full height of its parent (standard) or of the window (modal). Standard: part of the layout. Modal: above the content, the corners that face the content rounded. Its color reaches under the system insets at its end, top and bottom."},{"id":"outline","description":"The start edge of a standard sheet, which sets it apart from the content beside it."},{"id":"scrim","description":"The modal layer's scrim (MDL-1): it dims everything behind a modal sheet; a press on it asks the sheet to close.","optional":true},{"id":"header","description":"The row at the top that holds the headline and the close button. It stays in place while the content scrolls.","optional":true},{"id":"headline","description":"What the sheet is about (\"Filters\"). It is the sheet's accessible name.","optional":true},{"id":"close-button","description":"An icon-only Button of the size comp.side-sheet.close-button.size names (small in the default system) showing the close glyph at the end of the header, in the variant comp.side-sheet.close-button.variant names (tonal in the default system), as every host's close button is. The sheet places it and chooses its variant; everything else it reads from Button's own tokens.","optional":true},{"id":"content","description":"Whatever the product puts in the sheet. The sheet insets it, hands it a content color and scrolls it between the header and the actions; it does not lay it out."},{"id":"divider","description":"Hairlines across the sheet: above the actions, drawn while there are actions; and below the header, drawn whenever the header is in the default system, or only while the content is scrolled away from its top under dividerVisibility scroll.","optional":true},{"id":"actions","description":"Tanrei Buttons at the bottom of the sheet, each marked confirming or dismissive, laid out as a full-width Button group: a row the actions share equally, or a column when they do not fit. A Button whose variant the product did not set is tonal in the default system. At least one in a modal sheet; optional in a standard one.","optional":true}],"props":[{"name":"variant","type":"enum","values":["standard","modal"],"default":"standard","description":"Standard sits beside the content and takes its width in the layout (a layout region); modal slides over the content with a scrim and holds focus until it closes (a modal overlay). One product uses both: standard where the window is wide enough, modal where it is not. A design system may add values.","axis":"tanrei.comp.side-sheet.variant"},{"name":"open","type":"boolean","default":false,"description":"Whether the sheet is shown: for a standard sheet, whether it takes its place in the layout; for a modal one, whether it is presented. The product opens it, and closes it in answer to close; on SwiftUI, where it is a binding, the sheet writes false itself."},{"name":"headline","type":"string","default":"","description":"What the sheet is about, drawn in its header and used as its accessible name. Required."},{"name":"closable","type":"boolean","default":true,"description":"Draws the close button at the end of the header. True by default, in both variants: a standard sheet has no other way for the person to close it, and a modal one shows a way out where the person reads. Set it to false only where the product's own control, or one of the sheet's actions, closes the sheet."},{"name":"closeLabel","type":"string","default":"","description":"The close button's accessible name (\"Close filters\"). Required while closable is true, which is the default.","words":"closeLabel"},{"name":"dividerVisibility","type":"enum","values":["auto","always","scroll"],"default":"auto","description":"When the divider below the header is drawn. always: whenever the header is drawn, at rest as well as while the content is scrolled, as the divider above the actions always is. scroll: only while the content is scrolled away from its top. auto takes comp.side-sheet.divider.visibility, the design system's answer (always in the default system)."}],"items":[{"name":"action","summary":"One action at the foot of the sheet: a Tanrei Button, placed by the sheet as a full-width Button group places its items and given the sheet's variant unless the product set one.","component":"button","props":[{"name":"variant","type":"string","default":"","description":"The Button's variant (filled, tonal, elevated, outlined, text, or one a system added). Empty, the default: the sheet gives it the variant comp.side-sheet.actions.variant names, tonal in the default system (SSH-17). Set it to give one action another look."},{"name":"disabled","type":"boolean","default":false,"description":"As the Button's disabled. A disabled action keeps its place and its share of the width."},{"name":"destructive","type":"boolean","default":false,"description":"As the Button's destructive: the action deletes or discards something a person may not get back (Delete, Discard, Remove member). The sheet leaves it as set and gives it no look of its own (SSH-17): the Button draws it in the error role at its variant's emphasis (BTN-40). Its label still says what it deletes (BTN-42)."},{"name":"confirming","type":"boolean","default":false,"description":"The action completes the task (Apply, Save, Show results). Placed at the end of a row and at the top of a column (BGR-13, BGR-14). It decides the place only, never the look (BGR-19)."},{"name":"dismissive","type":"boolean","default":false,"description":"The action backs out of the task (Cancel, Discard changes). Placed at the start of a row and at the bottom of a column (BGR-13, BGR-14). It decides the place only, never the look (BGR-19)."}],"slots":[{"name":"label","description":"The Button's label, as its default slot. A fixture item's content is this label."}],"events":[{"name":"click","description":"The action was activated, as the Button's click. The sheet does not close by itself (SSH-18)."}]}],"slots":[{"name":"default","description":"The content, below the header. A fixture's content string is plain text, which takes sys.typescale.body in the content color (SSH-10)."},{"name":"actions","description":"The action items: Tanrei Buttons, each marked confirming or dismissive; at least one in a modal sheet (SSH-16). The sheet places them (SSH-11) and gives those without a variant its own (SSH-17). A fixture fills it through its items."}],"events":[{"name":"close","description":"The sheet asks to be closed: its close button, or for a modal sheet a press on the scrim, Escape, the platform's back or a drag toward its edge. Carries which of these it was, named close, scrim, escape, back or drag (in the platform's casing)."}],"states":["enabled"],"behavior":[{"id":"SSH-1","text":"WHILE variant is standard THE side sheet SHALL take its width in the layout at the end of the row the product places it in WHILE open is true, and no width and no presence to assistive technology or focus WHILE open is false; WHEN open changes it SHALL slide in or out at the end edge while the content beside it resizes, over comp.side-sheet.motion.enter-duration with comp.side-sheet.motion.enter-easing when opening and comp.side-sheet.motion.exit-duration with comp.side-sheet.motion.exit-easing when closing, and at once where motion is reduced. A standard sheet SHALL draw no scrim, SHALL NOT keep focus inside it, SHALL let Tab and Shift+Tab move focus out of it without closing it, and SHALL ignore Escape, the platform's back and drags (a standard sheet is a layout region, not an overlay)."},{"id":"SSH-2","text":"WHEN open becomes true WHILE variant is modal THE side sheet SHALL slide in over the content on its modal layer from its own width beyond the window's end edge, whole and unscaled whatever sys.behavior.appearance says (a sheet slides from its edge), fading the layer's scrim in comp.side-sheet.scrim.color and comp.side-sheet.scrim.blur in over the rest of the window in step with it, over the same duration and curve (MDL-1, MDL-7), over comp.side-sheet.motion.enter-duration with comp.side-sheet.motion.enter-easing; WHEN open becomes false it SHALL slide out the same way past the end edge from wherever it is drawn, over comp.side-sheet.motion.exit-duration with comp.side-sheet.motion.exit-easing, taking the scrim away at once (MOT-8) and keeping the sheet drawn until the slide ends, WHILE the sheet and the scrim leave neither taking pointer input, so that a press reaches the page, which is no longer inert (MOT-7). A slide turned round SHALL go on from where it has got to. WHERE motion is reduced it SHALL only fade in and out in place without sliding, and the scrim in with it, over sys.motion.role.reduced, or appear and disappear at once on a platform whose reduced-motion setting removes every animation (Android's). WHEN a modal sheet is mounted with open true it SHALL appear without its motion while the document has not yet been first painted, and with it when it is mounted after that. WHILE it is open THE side sheet SHALL make everything behind it inert and keep focus inside it, as its modal layer does (MDL-2, MDL-4)."},{"id":"SSH-3","text":"WHEN open changes from false to true THE side sheet SHALL move focus to the element in it that the product marked for initial focus (the platform's own mark, named in the platform notes) or, without one, to its container, so that assistive technology reads the headline first; WHEN it closes while focus is inside it THE side sheet SHALL return focus to the element that had it when the sheet opened — or, WHERE a standard sheet opened under a modal surface it is not inside, to the element that had focus before that surface opened — or, where that element no longer exists or cannot take focus, to the platform's default. Focus SHALL move when the sheet opens or closes, not when its motion ends. This holds for both variants (a modal sheet moves and returns focus as its modal layer does, MDL-3, MDL-5); a standard sheet mounted with open true SHALL NOT move focus, and a modal sheet mounted with open true SHALL move focus in as if it had just opened, because it makes everything behind it unfocusable and focus must be somewhere it can reach."},{"id":"SSH-4","text":"WHILE variant is modal and the sheet is open, WHEN the user presses the scrim, presses Escape, uses the platform's back, as its modal layer answers them (MDL-6), or drags the sheet toward its end edge past half its width or flings it that way, THE side sheet SHALL emit close exactly once with the reason scrim, escape, back or drag; a drag SHALL follow the finger or pointer once it passes the platform's touch slop, and a released drag that does not ask to close SHALL slide the sheet back over comp.side-sheet.motion.enter-duration with comp.side-sheet.motion.enter-easing (at once where motion is reduced). The fling, the touch slop and the stillness after which a release is no fling are those BSH-9 names for the bottom sheet: the platform's own, or 0.5 points per millisecond, 8 points and 40 milliseconds where the platform names none."},{"id":"SSH-5","text":"WHILE closable is true THE side sheet SHALL draw at the end of its header an icon-only Button of the size comp.side-sheet.close-button.size names showing the close glyph and named by closeLabel, in the variant comp.side-sheet.close-button.variant names, given through the channel a Button reads from the component that places it, and otherwise unrestyled: it reads Button's own tokens, answers hover, focus and press as any Button does and keeps its own minimum target (BTN-5); WHEN the user activates it THE side sheet SHALL emit close exactly once with the reason close, in either variant. WHILE closable is true and closeLabel is empty it SHALL still draw the button, and in debug builds report that the button has no accessible name."},{"id":"SSH-6","text":"WHEN the side sheet has emitted close THE side sheet SHALL be closed through its binding where open is one (SwiftUI), and by the product setting open to false where open is a plain value (web, Compose, Flutter, React Native); a released drag that asked to close SHALL hold where it left the sheet for one frame, then slide out from there IF open has become false, or slide back IF open is still true (the product declined to close it)."},{"id":"SSH-7","text":"THE side sheet SHALL be comp.side-sheet.container.width wide beside the end system inset — WHILE variant is modal never wider than the window less sys.target.touch, so that a strip of scrim stays pressable — and the full height of its parent (standard) or of the window (modal), filled with its variant's container color (comp.side-sheet.container.color.standard or comp.side-sheet.container.color.modal), raised by its variant's elevation (comp.side-sheet.container.elevation.standard, comp.side-sheet.container.elevation.modal), with the corners at its start edge rounded by its variant's shape (comp.side-sheet.container.shape.standard, comp.side-sheet.container.shape.modal) eased by sys.shape.corner-smoothing (0 is a quarter circle, 0.6 the iOS continuous corner; a platform with only the OS curve draws it for any amount above 0) and square corners at its end edge, and edged at its start by comp.side-sheet.outline.width of its variant's outline color (comp.side-sheet.outline.color.standard, comp.side-sheet.outline.color.modal); right-to-left layouts SHALL put it at the left edge, mirrored."},{"id":"SSH-8","text":"THE side sheet SHALL lay out, top to bottom: WHILE headline is not empty or closable is true, the header, a row at least comp.side-sheet.header.height high holding the headline from comp.side-sheet.container.padding-inline after the start edge and, WHILE closable is true, the close button ending comp.side-sheet.header.padding-inline-end before the end edge, comp.side-sheet.header.gap after the headline, both centred in the row; then the content, inset by comp.side-sheet.container.padding-inline from the start and end edges, starting comp.side-sheet.content.padding-block-start below the header, so that its first line keeps clear of the header and its divider, or, without one, comp.side-sheet.container.padding-block below the top edge; then, WHILE the sheet has at least one action, the divider and the actions pinned to the bottom (SSH-11), or else comp.side-sheet.container.padding-block of space below the content. It SHALL extend its container under the system insets at its end, top and bottom and place the header, content and actions inside them."},{"id":"SSH-9","text":"WHILE headline is not empty THE side sheet SHALL draw it in comp.side-sheet.headline.typescale and comp.side-sheet.headline.color, wrapping onto more lines rather than truncating and growing the header with it, and SHALL expose it as a heading. THE side sheet SHALL set the headline'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":"SSH-10","text":"THE side sheet SHALL hand its content comp.side-sheet.content.color as the platform's inherited foreground (the web's inherited color, SwiftUI's foreground style, Compose's content color, Flutter's default text and icon style, React Native's Tanrei text context); plain text given as content, where the platform must style it, SHALL take sys.typescale.body. WHILE the content is taller than the room between the header and the actions THE side sheet SHALL scroll it there, keeping the header and the actions in place, and SHALL let assistive technology and keyboard focus scroll it."},{"id":"SSH-11","text":"WHILE the sheet has at least one action THE side sheet SHALL draw a divider of comp.side-sheet.divider.width in comp.side-sheet.divider.color across its full width below the content, whether or not the content scrolls, and below it lay out its actions as a standard Button group lays out its items (BGR-12 to BGR-19), comp.side-sheet.actions.gap apart, comp.side-sheet.container.padding-inline from each side edge and comp.side-sheet.actions.padding-block above and below them, in the order the group gives them — dismissive at the start and confirming at the end of a row, confirming on top and dismissive at the bottom of a column, unflagged actions between them in the order given — with focus and reading order following that order (BGR-15). WHILE comp.side-sheet.actions.arrangement is fill it SHALL make them a full-width group across the sheet's inner width, the actions sharing a row equally (BGR-17) or each as wide as the column; WHILE it is start it SHALL keep them at their own widths, the row aligned to the start edge, and a column as wide as its widest action and aligned to the start. It SHALL place them in a row WHILE every action's label fits its share on one line (fill) or the row at its own widths fits the inner width (start), and otherwise in a column, re-deciding when the sheet's width or the text size changes. WHEN the layout direction is right-to-left it SHALL place them as a Button group places them right to left (BGR-8). It SHALL hide the divider from assistive technology."},{"id":"SSH-12","text":"THE side sheet SHALL expose its container, WHILE variant is modal, as its modal layer's modal dialog (MDL-10) named by headline and, WHILE variant is standard, as a complementary region named by headline (the web's aside landmark); WHILE headline is empty it SHALL still render, and in debug builds report that it has no accessible name."},{"id":"SSH-13","text":"WHEN variant names a value that the active design system does not have THE side sheet SHALL render with the default value's tokens, and in debug builds report the unknown value."},{"id":"SSH-14","text":"WHILE the text size is enlarged THE side sheet SHALL keep its width, grow its header with the headline (its height is a minimum), scroll its content (SSH-10), stack its actions once a label no longer fits its share (SSH-11), and SHALL NOT scale the close button beyond what the Button itself does."},{"id":"SSH-15","text":"WHEN a dialog, a menu or another modal sheet opens from a modal side sheet THE side sheet SHALL stay below it, become inert with the rest of the window, and on the other overlay's closing receive back the focus that overlay returns, as its modal layer does (MDL-8, MDL-9); Escape SHALL dismiss only the topmost overlay. WHEN two modal side sheets open in the same update, one after the other, THE side sheet SHALL stack them in the order they open, as if the later had opened from the earlier: focus SHALL go into the later one only, the later SHALL return focus on closing to the element the earlier moves focus to as it opens (SSH-3), and the earlier, closed after it, SHALL return focus to the element that had it before either opened."},{"id":"SSH-16","text":"WHILE variant is modal, IF the sheet opens with no action THE side sheet SHALL still open and lay out its other parts, and in debug builds SHALL report as an error that a modal side sheet must offer at least one action; a platform whose modal sheet has an API of its own that can require an action (a required, non-empty builder or list of actions) SHALL require it there, and one that can count its actions only when the sheet opens SHALL count them then. WHILE variant is standard THE side sheet SHALL accept having no action and report nothing, and SHALL then draw neither the divider above the actions nor the actions (SSH-8)."},{"id":"SSH-17","text":"WHILE an action's variant is empty THE side sheet SHALL give that Button the variant comp.side-sheet.actions.variant names, through the channel a Button reads from the component that places it, so that the Button renders from that variant's tokens and states as it would with the variant set; WHILE an action's variant is set THE side sheet SHALL leave it as set. THE side sheet SHALL NOT change an action's size or tokens, and SHALL NOT change its look or emphasis for its confirming or dismissive (BGR-19)."},{"id":"SSH-18","text":"WHEN the user activates an action THE side sheet SHALL let the Button emit its own click and SHALL NOT close, emit close or otherwise answer it itself, whether the action is confirming, dismissive or neither; the product closes the sheet from the action's handler, as it does in answer to close."},{"id":"SSH-19","text":"WHILE the header is drawn THE side sheet SHALL draw a divider of comp.side-sheet.divider.width in comp.side-sheet.divider.color across its full width below the header, hidden from assistive technology: WHILE its divider visibility (SSH-23) is always, at rest as well as while the content is scrolled, as the divider above the actions is drawn whether or not the content scrolls (SSH-11); WHILE it is scroll, only WHILE the content is scrolled away from its top. WHILE there is no header it SHALL draw none there. It SHALL show and hide this divider at once, without motion."},{"id":"SSH-20","text":"WHILE the on-screen keyboard covers the bottom of the sheet THE side sheet SHALL keep its header in place, raise its divider and actions to sit directly above the keyboard, scroll the content in the room left between them, and scroll the focused element into that room; WHEN the keyboard hides it SHALL return the actions to the bottom edge. It SHALL move them as the platform moves content for its keyboard, and at once where motion is reduced."},{"id":"SSH-21","text":"THE side sheet 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 side sheet is shown THE side sheet SHALL draw itself for the new direction at once, without a motion of its own, keeping its open state and its focus."},{"id":"SSH-22","text":"THE side sheet SHALL lay out its headline 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 side sheet SHALL still place the headline and align its lines by the layout direction, not by the text's own."},{"id":"SSH-23","text":"THE side sheet SHALL draw the divider below its header (SSH-19) as its dividerVisibility names: WHILE dividerVisibility is auto, as comp.side-sheet.divider.visibility names, which follows sys.behavior.divider-visibility unless a design system sets the side sheet apart; WHILE dividerVisibility is always or scroll, as that value names, whatever the tokens say. WHEN dividerVisibility, or the token it follows, changes THE side sheet SHALL draw the other form at once, moving no part and keeping the scroll position and focus; WHEN dividerVisibility names a value the side sheet does not define THE side sheet SHALL treat it as auto and in debug builds report the unknown value. A platform that cannot draw a choice SHALL fall back to the first value, always, and state that in its README."},{"id":"SSH-24","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 side sheet 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 its container (SSH-12) — its dialog WHILE variant is modal, its complementary region otherwise — an id reference by the elements it names in the host's tree or a tree around it, a description after its own. WHILE headline is not empty it is the container's name, over a name given so; WHILE headline is empty, a name given so is the container's name and SHALL NOT be reported as having none in debug builds. 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 side sheet SHALL take it off that element."}],"accessibility":{"role":"dialog","keyboard":[{"keys":"Tab / Shift+Tab","action":"Moves focus through the close button, the content's focusable elements and the actions, in that order, the actions in the order they are placed (BGR-15). In an open modal sheet it wraps and never leaves the sheet; from an open standard sheet it moves on to the content, and the sheet stays open."},{"keys":"Enter or Space","action":"Activates the focused close button (close, reason close) or action (its click; the sheet does not close by itself, SSH-18). The sheet adds no default action to Enter."},{"keys":"Escape","action":"Asks an open modal sheet to close (close, reason escape); with stacked overlays, only the topmost. A standard sheet ignores it."}],"labeling":"The headline is the sheet's accessible name and is exposed as a heading: the modal dialog's name, or the standard sheet's complementary region's. The close button is named by closeLabel. Each action is named by its own label; confirming and dismissive are not announced, and the actions are read in the order they are placed (BGR-15). The dividers are decorative.","minimumTarget":true,"notes":["The sheet has no target of its own; its close button and its actions are Tanrei Buttons, which meet the minimum target themselves (BTN-5). comp.side-sheet.actions.gap keeps each action's whole target in a column in the default system.","A modal sheet offers at least one action (SSH-16): it holds focus until the person is done, so a person using a screen reader or a switch finds a way to finish the task where they finish reading it, not only a way out. The close button, Escape, back and the scrim still dismiss it. A standard sheet sits beside the content, which the person keeps working in, so it may have no action.","Placement is by task, not by code order: in a row the dismissive action is at the start and the confirming one at the end; in a column the confirming one is on top. Focus and screen readers follow the placed order.","Dragging is never the only way (WCAG 2.5.7): a modal sheet also closes with its close button, Escape, back or a press on the scrim.","The standard form is a layout region, not an overlay: opening it moves focus in and closing it returns focus, and focus leaving it never closes it. The modal form is a modal overlay. The web presents it with a modal <dialog> element (showModal gives inertness and the top layer; its cancel event is cancelled and becomes close with the reason escape); Compose draws it in a window of its own (a Dialog, as TanreiDialog and the modal drawer are) and Flutter as a controlled overlay in a Stack over the page, each with a scrim, trapping focus and answering back; SwiftUI presents it as the dialog is, with a full-screen cover on iOS; React Native presents it in a transparent Modal.","Opening a modal sheet by a swipe from the screen edge is left out, as for the drawer: the product opens it from a button."]},"tokens":"comp.side-sheet","fixtures":[{"id":"standard","props":{"open":true,"headline":"Filters","closable":true,"closeLabel":"Close filters"},"content":"Show results from the last 30 days with every selected label."},{"id":"standard-actions","props":{"open":true,"headline":"Filters","closable":false},"content":"Show results from the last 30 days with every selected label.","items":[{"kind":"action","props":{},"content":"Reset"},{"kind":"action","props":{"confirming":true},"content":"Apply"}]},{"id":"modal","props":{"variant":"modal","open":true,"headline":"Filters","closable":true,"closeLabel":"Close filters"},"content":"Show results from the last 30 days with every selected label.","items":[{"kind":"action","props":{"dismissive":true},"content":"Cancel"},{"kind":"action","props":{"confirming":true},"content":"Apply"}]},{"id":"modal-single-action","props":{"variant":"modal","open":true,"headline":"Filters","closable":true,"closeLabel":"Close filters"},"content":"Show results from the last 30 days with every selected label.","items":[{"kind":"action","props":{"confirming":true},"content":"Show results"}]},{"id":"modal-stacked","props":{"variant":"modal","open":true,"headline":"Edit profile","closable":true,"closeLabel":"Close profile editor"},"content":"Your name and photo are shown to everyone in the workspace.","items":[{"kind":"action","props":{"dismissive":true},"content":"Discard changes"},{"kind":"action","props":{"confirming":true},"content":"Save and continue"}]},{"id":"action-variants","props":{"variant":"modal","open":true,"headline":"Filters","closable":true,"closeLabel":"Close filters"},"content":"Show results from the last 30 days with every selected label.","items":[{"kind":"action","props":{"variant":"text","dismissive":true},"content":"Cancel"},{"kind":"action","props":{"variant":"filled","confirming":true},"content":"Apply"}]},{"id":"destructive-action","props":{"variant":"modal","open":true,"headline":"Saved filter","closable":true,"closeLabel":"Close saved filter"},"content":"“Overdue invoices” is shown in the sidebar of everyone on the team.","items":[{"kind":"action","props":{"dismissive":true},"content":"Cancel"},{"kind":"action","props":{"destructive":true,"confirming":true},"content":"Delete filter"}]}],"platforms":{"web":{"status":"lagging","name":"tanrei-side-sheet","props":{"variant":"variant","open":"open","headline":"headline","closable":"notClosable","closeLabel":"closeLabel","dividerVisibility":"dividerVisibility"},"events":{"close":"close"},"parts":{"container":"container","outline":"outline","scrim":"container@backdrop","header":"header","headline":"headline","close-button":"close-button","content":"content","divider":"divider","actions":"actions"},"notes":"`closable` is its inverse, the boolean property `notClosable` (attribute `not-closable`), false by default, as the chip's `removable` is: an HTML boolean attribute cannot default to true, and a property has its attribute's name. `closeLabel` is the `close-label` attribute. `close` is a CustomEvent whose `detail.reason` is `close`, `scrim`, `escape`, `back` or `drag`; the product sets `open` to false from it. Slots: default and `actions`. The actions are laid out by the button group's placement (BGR-13 to BGR-17) inside the shadow root: the sheet's shadow root uses manual slot assignment, assigns its content children to the default slot, and assigns each action to one of three action slots in the order of the orientation, so focus and the accessibility tree follow the placed order (BGR-15); CSS `order` is not used. Modal: a `<dialog>` in the shadow root opened with `showModal()`, its `::backdrop` the scrim. Standard: an `<aside>` named by the headline, placed by the product as the last item of a flex row; its width animates. The close button is a `<tanrei-button>` in the shadow root, icon-only (the close glyph in its `icon` slot, its `label` from `close-label`), whose variant comes from the resolved comp.side-sheet.close-button.variant through the internal controller the group gives its items. The `autofocus` attribute on a slotted element marks initial focus. Debug builds (`import.meta.env.DEV` or the package's dev export) report a modal sheet opened with no assigned action (SSH-16). The keyboard's room (SSH-20) is the `visualViewport`'s height. Insets are `env(safe-area-inset-*)`. Snapshot harness: a 720 × 480 viewport with a `surface` page; the standard sheet at the end of a row whose other child fills the rest of the width; the modal sheet opened by `open`, the screenshot being the viewport. `dividerVisibility` is the `divider-visibility` attribute (`auto`, `always`, `scroll`); `auto` reads `--tanrei-comp-side-sheet-divider-visibility` from the cascade with a style query, and where the browser has none the sheet writes the name it read on its header when it renders.","items":{"action":{"name":"tanrei-button","props":{"variant":"variant","disabled":"disabled","destructive":"destructive","confirming":"confirming","dismissive":"dismissive"},"events":{"click":"click"},"notes":"A `tanrei-button` child with `slot=\"actions\"`: its label is its content. `confirming` and `dismissive` are boolean attributes that the sheet reads, as the button group does. A Button without a `variant` attribute takes the sheet's variant through the internal controller the group already gives its items (SSH-17); the attribute, once written, wins."}}},"swiftui":{"status":"lagging","name":"TanreiSideSheet","props":{"variant":"variant","open":"isPresented","headline":"headline","closable":"closable","closeLabel":"closeLabel","dividerVisibility":"dividerVisibility"},"events":{"close":"onClose"},"notes":"Lagging: ships the earlier revision — a standard icon button to close, the actions a row from the start edge in the order given, optional in both variants, 8 apart. The target: standard `TanreiSideSheet(_ headline:, isPresented: Binding<Bool>, closable:, closeLabel:, initialFocus:, onClose:) { content } actions: { … }`, a view the product places at the end of an `HStack`, with `actions:` optional. Modal: the modifier `.tanreiSideSheet(_ headline:, isPresented:, …, content:, actions:)` on the view it covers, with `actions:` a required builder whose subviews the sheet counts through a variadic view, reporting an empty one in debug builds (SSH-16); presented as `tanreiDialog` is (on iOS `.fullScreenCover` with a clear presentation background and the system transition off; Tanrei draws the scrim, the sheet and the drag), and on macOS, which has no full-screen cover, as an overlay of the modified view with the modal trait. Both lay out the actions with the button group's `Layout`. Closing writes false to `isPresented` and then calls `onClose` with the reason. The close button is an icon-only `TanreiButton` whose variant the sheet sets from its token. Initial focus is `.defaultFocus`, or an `@AccessibilityFocusState` binding the product passes as `initialFocus` (without it, VoiceOver starts at the headline); Escape is `.onKeyPress(.escape)` and the escape gesture `.accessibilityAction(.escape)`. The keyboard's safe area lifts the actions (SSH-20). Snapshot harness: renders `TanreiSideSheetSurface` (the sheet and, for a modal sheet, the scrim) in place in a 720 × 480 frame over a `surface` page. Not yet: the headline's letter-spacing by the script of its text (SSH-9, PRS-20). Not built on this platform yet: `dividerVisibility` (auto, always, scroll; SSH-23) — the divider below the header is still drawn only while the content is scrolled from its top, as `scroll` does. Not built on this platform yet: the scrim of a modal sheet taken away at once as it begins to close (SSH-2, MOT-8).","items":{"action":{"name":"TanreiButton","props":{"variant":"variant","disabled":"disabled","destructive":"role","confirming":"tanreiGroupPlacement(.confirming)","dismissive":"tanreiGroupPlacement(.dismissive)"},"events":{"click":"action"},"notes":"A `TanreiButton` in the `actions:` builder. The flags are the button group's `.tanreiGroupPlacement(_:)` modifier (one enum: both cannot be set). A Button created with `variant: nil` reads the sheet's variant from an environment value the sheet sets (internal to the package)."}}},"compose":{"status":"lagging","name":"TanreiSideSheet","props":{"variant":"variant","open":"visible","headline":"headline","closable":"closable","closeLabel":"closeLabel","dividerVisibility":"dividerVisibility"},"events":{"close":"onClose"},"notes":"Lagging: ships the earlier revision — a standard icon button to close, the actions a row from the start edge in the order given, optional in both variants, 8 apart. The target: `TanreiSideSheet(visible, onClose: (TanreiSheetCloseReason) -> Unit, headline, variant, closable, closeLabel, initialFocus: FocusRequester?, actions: (@Composable () -> Unit)?, content)`; the caller sets `visible` to false from `onClose`. The actions lambda's receiver is the button group's scope, not `RowScope`, so the flags are its `Modifier.confirming()` and `Modifier.dismissive()` and no inert `weight` or `align` is offered. Its `Layout` sees the actions' measurables and, for a modal sheet, reports none in debug builds (SSH-16); `variant` is a parameter, so the type cannot require actions for the modal form alone. Standard: a composable the product places at the end of a `Row`; its width animates. Modal: drawn in a `Dialog` window of its own, as `TanreiDialog` and the modal drawer are, with the window's own dim off (Tanrei draws the scrim); the window traps focus, answers back and hides the content behind from TalkBack, and the sheet sets a pane title from the headline. The close button is an icon-only `TanreiButton` whose variant the sheet sets from its token. The keyboard's room is `WindowInsets.ime` (SSH-20). Snapshot harness: renders `TanreiSideSheetContent` (the sheet and, for a modal sheet, the scrim) in place in a 720 × 480 dp box over a `surface` page. Not yet: the headline's letter-spacing by the script of its text (SSH-9, PRS-20). Not built on this platform yet: `dividerVisibility` (auto, always, scroll; SSH-23) — the divider below the header is still drawn only while the content is scrolled from its top, as `scroll` does. Not built on this platform yet: the scrim of a modal sheet taken away at once as it begins to close (SSH-2, MOT-8).","items":{"action":{"name":"TanreiButton","props":{"variant":"variant","disabled":"enabled","destructive":"destructive","confirming":"Modifier.confirming()","dismissive":"Modifier.dismissive()"},"events":{"click":"onClick"},"notes":"A `TanreiButton` in the `actions` lambda, whose receiver is the button group's scope, so the flags are its `Modifier.confirming()` and `Modifier.dismissive()`. `enabled` is disabled's inverse. `variant: TanreiButtonVariant? = null` takes the sheet's from a `CompositionLocal` (internal to the library)."}}},"flutter":{"status":"lagging","name":"TanreiSideSheet","props":{"variant":"variant","open":"open","headline":"headline","closable":"showCloseButton","closeLabel":"closeButtonSemanticLabel","dividerVisibility":"dividerVisibility"},"events":{"close":"onClose"},"notes":"Lagging: ships the earlier revision — a standard icon button to close, the actions a row from the start edge in the order given, optional in both variants, 8 apart. The target: `TanreiSideSheet(variant:, open:, onClose: ValueChanged<TanreiSheetCloseReason>, headline:, showCloseButton:, closeButtonSemanticLabel:, actions: [...], child:)`, controlled: the caller sets `open` to false from `onClose`. A modal sheet asserts `actions` non-empty when it opens (SSH-16); the actions are laid out with the button group's render object. Standard: placed at the end of a `Row`. Modal: a controlled overlay in a `Stack` over the page, as the modal navigation drawer, with its own scrim and slide, a `FocusScope` that keeps focus in, the page's semantics blocked, back through `PopScope` and Escape through `Shortcuts`/`Actions`. The close button is an icon-only `TanreiButton` whose variant the sheet sets from its token; the headline is wrapped in `Semantics(header: true)`. The keyboard's room is `MediaQuery.viewInsetsOf(context).bottom` (SSH-20). Snapshot harness: a golden of the whole 720 × 480 surface over a `surface` page. Not yet: the headline's letter-spacing by the script of its text (SSH-9, PRS-20). Not built on this platform yet: `dividerVisibility` (auto, always, scroll; SSH-23) — the divider below the header is still drawn only while the content is scrolled from its top, as `scroll` does. Not built on this platform yet: the scrim of a modal sheet taken away at once as it begins to close (SSH-2, MOT-8).","items":{"action":{"name":"TanreiButton","props":{"variant":"variant","disabled":"onPressed","destructive":"isDestructiveAction","confirming":"TanreiButtonGroupItem.placement","dismissive":"TanreiButtonGroupItem.placement"},"events":{"click":"onPressed"},"notes":"A `TanreiButton` in `actions:`; a null `onPressed` disables it. The flags are the button group's `TanreiButtonGroupItem(placement:, child:)` (one enum: both cannot be set). A Button with `variant: null` takes the sheet's from an `InheritedWidget` (internal to the package)."}}},"react-native":{"status":"lagging","name":"SideSheet","props":{"variant":"variant","open":"open","headline":"headline","closable":"closable","closeLabel":"closeLabel","dividerVisibility":"dividerVisibility"},"events":{"close":"onClose"},"notes":"Lagging: ships the earlier revision — a standard icon button to close, the actions a row from the start edge in the order given, optional in both variants, 8 apart. The target: controlled: `open`, `onClose(reason)`; the caller sets `open` to false from it. `actions` is a React node (a `Button` or a fragment of them); development builds report it empty when a modal sheet opens (SSH-16); the types cannot tie it to `variant`. The content is `children`. Standard: a `View` the product places at the end of a row (`flexDirection: 'row'`). Modal: presented in a transparent `Modal` with `animationType=\"none\"`, `statusBarTranslucent` and `navigationBarTranslucent`; `onRequestClose` (Android back, and Escape on a hardware keyboard) is close with the reason `back` or `escape`. Drags with `PanResponder`. The close button is an icon-only `Button` whose variant the sheet sets from its token; the headline has the `header` role. The keyboard's height comes from `Keyboard` events (SSH-20). Insets come from the sheet's own `insets` prop, falling back to `TanreiProvider`'s `insets`; the package takes no safe-area dependency. Snapshot harness: renders `SideSheetSurface` in place in a 720 × 480 view over a `surface` page. The initial-focus mark is an `initialFocusRef` prop, as on the bottom sheet and the dialog (SSH-3). Not yet: the headline's letter-spacing by the script of its text (SSH-9, PRS-20). Not built on this platform yet: `dividerVisibility` (auto, always, scroll; SSH-23) — the divider below the header is still drawn only while the content is scrolled from its top, as `scroll` does. Not built on this platform yet: the scrim of a modal sheet taken away at once as it begins to close (SSH-2, MOT-8).","items":{"action":{"name":"Button","props":{"variant":"variant","disabled":"disabled","destructive":"destructive","confirming":"confirming","dismissive":"dismissive"},"events":{"click":"onPress"},"notes":"A `Button` in the `actions` prop. `confirming` and `dismissive` are props the sheet reads from its actions, as the button group reads them. A Button with no `variant` takes the sheet's from a React context (internal to the package)."}}}}}
@@ -0,0 +1 @@
1
+ {"name":"size-transition","title":"Size transition","summary":"Wraps content whose size changes — a message that grows, a section that gains a line, a panel that loses a row — and moves its own size to the content's new size as one motion, so that what stands after it moves smoothly instead of jumping, while the edge it is anchored to stays still.","level":"base","listing":"default","anatomy":[{"id":"box","description":"The size transition itself: a box with no look of its own, laid out where it stands, whose size along its axis is the one that moves. It clips what lies beyond it while it moves."},{"id":"content","description":"Whatever the product puts in it, laid out at its own natural size and fixed to the box's anchor edge. It is measured, never scaled or stretched."}],"props":[{"name":"axis","type":"enum","values":["block","inline","both"],"default":"block","description":"Which of its sizes follows the content. block: its height in a horizontal writing mode (the size across lines); its width is the layout's. inline: its width (the size along a line); its height is the layout's. both: both sizes."},{"name":"anchor","type":"enum","values":["start","end","center"],"default":"start","description":"Which edge stays still while the box grows or shrinks. start: the block-start edge (the top) for block, the inline-start edge for inline, so that a growing box uncovers what is new below or after and never moves the first line. end: the opposite edges, for a box docked at its container's end that grows upward (a composer above the keyboard). center: both edges move by half."},{"name":"duration","type":"number","default":null,"description":"How long one change takes, in milliseconds, used as given for every distance. Null, the default, takes the system's answer, which grows with the distance moved (SZT-3). Set it only where one place needs another tempo than every other size transition of the product."},{"name":"disabled","type":"boolean","default":false,"description":"Makes the box follow its content's size at once, without a motion: for a change the person should not watch (a list replaced by a search's results) or a stretch of time in which the content changes at every frame."}],"slots":[{"name":"default","description":"The content whose size the box follows. Any content: text, a list, another component.","fixture":"text"}],"events":[{"name":"settle","description":"The box's size has come to rest after a change, by a motion or at once: emitted once per change, after the last frame, with the box's new width and height in the platform's layout units. A motion that is turned round or retargeted (SZT-2) emits once, at its final rest."}],"states":["enabled"],"behavior":[{"id":"SZT-1","text":"WHEN the size transition is first drawn THE size transition SHALL take its content's size along its axis in its first frame, without a motion, as every component draws its first frame at rest (MOT-3); content that arrives or changes before that frame is drawn is part of the first frame."},{"id":"SZT-2","text":"WHEN its content's size along its axis changes after the first frame THE size transition SHALL move its own size in the layout, at every frame, from the size it shows to the new one, over the duration SZT-3 gives with comp.size-transition.motion.easing, so that what stands after it moves with it; WHEN the content changes again during the motion THE size transition SHALL go on from the size then shown towards the newest size as one motion, never jumping to the old target or restarting from the old size (MOT-2)."},{"id":"SZT-3","text":"WHILE duration is null THE size transition SHALL take the duration of a change from the distance its size moves: comp.size-transition.motion.duration for a distance of up to comp.size-transition.motion.distance-step, plus comp.size-transition.motion.duration-step for each further distance-step begun, and never more than comp.size-transition.motion.duration-max; WHILE duration is a number THE size transition SHALL take that many milliseconds for every distance, 0 meaning at once. The duration of a retargeted motion SHALL be computed from the distance between the size shown and the newest size."},{"id":"SZT-4","text":"WHILE its size differs from its content's THE size transition SHALL clip what lies beyond its box and keep the content fixed to the edge anchor names, mirrored for inline in a right-to-left layout: WHILE anchor is start a growing box SHALL uncover what is new at its block-end (or inline-end) edge and never move its first line, WHILE anchor is end it SHALL uncover what is new at its start edge, the content moving with its end edge, and WHILE anchor is center both edges SHALL move by half the change."},{"id":"SZT-5","text":"WHILE it moves THE size transition SHALL scroll nothing — neither itself nor its content nor an ancestor — to bring a part of the content into view, also WHILE an element inside it has focus, and SHALL leave focus, the caret and a selection where they are (MOT-5)."},{"id":"SZT-6","text":"WHEN its content's size changes because the room the layout gives it changed — the window or a pane was resized or turned, the text size changed, the layout direction changed — THE size transition SHALL take the new size at once, so that it never lags behind a person resizing the window; and WHILE a size transition inside its content is moving THE size transition SHALL follow its content at every frame, so that two nested motions move as one and do not compound."},{"id":"SZT-7","text":"WHERE motion is reduced THE size transition SHALL take every new size at once, as size changes are made where motion is reduced (MOT-6), and SHALL still emit settle once per change."},{"id":"SZT-8","text":"WHILE disabled is true THE size transition SHALL follow its content's size at once; WHEN disabled becomes true during a motion THE size transition SHALL take the newest size at once and emit settle."},{"id":"SZT-9","text":"WHILE the size transition is not drawn — hidden, outside a view that is shown, or in an app in the background — THE size transition SHALL take every new size at once, and WHEN it is drawn again it SHALL show its content's size without a motion."},{"id":"SZT-10","text":"THE size transition SHALL expose nothing of its own to assistive technology — no role, no name, no state — and SHALL NOT be a focus stop: its content is read and reached as if the box were not there, including content that the box clips during a motion."},{"id":"SZT-11","text":"WHEN its size has come to rest after a change, by a motion or at once, THE size transition SHALL emit settle exactly once, after the last frame, with its new width and height; it SHALL emit nothing WHEN its content changes without changing its size along its axis."},{"id":"SZT-12","text":"THE size transition SHALL draw nothing of its own — no color, edge, shadow, corner or padding — and SHALL take, on the axes it does not follow, the size its layout gives it; WHILE axis is both it SHALL follow the content's width and height together in one motion of one duration, computed from the larger of the two distances (SZT-3)."},{"id":"SZT-13","text":"THE size transition SHALL take its layout direction from where it is used and SHALL have no direction setting of its own; WHEN axis or anchor names a value it does not define THE size transition SHALL use the default value and in debug builds report the unknown value; WHILE duration is a negative number or not a finite number THE size transition SHALL treat it as null and in debug builds report it."}],"accessibility":{"role":"none (a generic container that exposes nothing of its own)","keyboard":[],"labeling":"The size transition names nothing and is not named; its content keeps its own names, roles and order.","minimumTarget":true,"notes":["It takes no input, so it has no target of its own; its content keeps its own hit areas.","A size change is a motion in the sense of WCAG 2.3.3 (animation from interactions): where motion is reduced it happens at once (SZT-7). The opacity of the content is never changed by this component.","Content that the box clips while it moves stays in the reading and focus order: a person who tabs into it during the motion reaches it, and nothing scrolls to show it (SZT-5) — the motion ends within comp.size-transition.motion.duration-max.","Browsers count an element moved by a layout change as a layout shift unless a person's input preceded it within a short window. Moving what follows over a motion does not remove it from that count; it removes the jump a person sees. Measure layout shift in a product's own pages."]},"tokens":"comp.size-transition","fixtures":[{"id":"block","props":{},"content":"The quarterly report is ready. Three sections were added since the last version: costs, staffing and the plan for the next quarter."},{"id":"inline","props":{"axis":"inline"},"content":"Saved"},{"id":"anchor-end","props":{"anchor":"end"},"content":"A reply that grew to a second line keeps its last line where it was."},{"id":"anchor-center","props":{"anchor":"center"},"content":"A notice in the middle of its panel grows from its middle."},{"id":"both","props":{"axis":"both"},"content":"Uploading 3 files"},{"id":"rtl-inline","props":{"axis":"inline"},"content":"تم الحفظ","direction":"rtl"}],"platforms":{"web":{"status":"alpha","name":"tanrei-size-transition","props":{"axis":"axis","anchor":"anchor","duration":"duration","disabled":"disabled"},"events":{"settle":"settle"},"parts":{"box":"host","content":"slot"},"notes":"`<tanrei-size-transition axis=\"block\" anchor=\"start\">…</tanrei-size-transition>`, built on the package's size-motion primitive (`AnimatedSize`). The shadow root holds a box and, in it, a wrapper around the slot at its natural size. A resize observer of the wrapper sees a change of the content's size after layout and before the frame is painted; the box then moves from the size the last frame drew to the new one in pixels, with a CSS transition, clipped with `overflow: clip` (never `hidden`, which lets a focused descendant scroll the box). The box is a flex container that justifies the wrapper to the anchor's edge (`flex-start`, `flex-end`, `center`), so that the content is laid out at its own size and overflows the edge that moves; justification follows the direction, so the inline axis mirrors in right-to-left. `interpolate-size: allow-keywords` is not used: it is experimental and not Baseline. SZT-6: a change of the window's size, of the box's own inline size (the room it is given, for axis block), of its font size or of its direction is applied at once, as is any change while a size transition in its content carries `data-resizing` (the host carries it while it moves). `settle` is a CustomEvent that does not bubble, whose `detail` is `{ width, height }` in CSS pixels; a run that is retargeted ends with the run that replaced it. `duration` is a number property, the `duration` attribute parsed as the tooltip's delays are (an empty attribute is not a number). The host is `display: block` (axis inline or both: `display: inline-block`), as large as the box."},"swiftui":{"status":"planned","name":"TanreiSizeTransition","props":{"axis":"axis","anchor":"anchor","duration":"duration","disabled":"isDisabled"},"events":{"settle":"onSettle"},"notes":"A container view that measures its content with a geometry reader and animates its frame with `withAnimation` on the measured size, `.clipped()`, aligned by anchor; reduced motion from `accessibilityReduceMotion`."},"compose":{"status":"planned","name":"TanreiSizeTransition","props":{"axis":"axis","anchor":"anchor","duration":"durationMillis","disabled":"enabled"},"events":{"settle":"onSettle"},"notes":"A Box with `Modifier.animateContentSize(animationSpec, alignment)` and `clipToBounds()`; `enabled` is the inverse of disabled. The spec of SZT-3 is computed from the measured distance before each animation."},"flutter":{"status":"planned","name":"TanreiSizeTransition","props":{"axis":"axis","anchor":"anchor","duration":"duration","disabled":"disabled"},"events":{"settle":"onSettle"},"notes":"Built on `AnimatedSize` with `alignment` from anchor and `clipBehavior: Clip.hardEdge`; the duration of SZT-3 is set from the size the child reports before the animation starts."},"react-native":{"status":"planned","name":"SizeTransition","props":{"axis":"axis","anchor":"anchor","duration":"duration","disabled":"disabled"},"events":{"settle":"onSettle"},"notes":"A View that measures its child with `onLayout` and animates its own height or width with Reanimated, `overflow: 'hidden'` (React Native has no `clip` distinction)."}}}
@@ -0,0 +1 @@
1
+ {"name":"skeleton","title":"Skeleton","summary":"Stands where content will be while it loads: quiet placeholders in the shape of what is coming — lines of text, a block, a circle — that keep the box the content will take, in a region that says once that it is busy.","level":"base","listing":"default","anatomy":[{"id":"container","description":"The region that stands in the content's place: a block as wide as the place it stands in and as tall as what it holds, with no fill, no edge, no padding and no elevation. It is what assistive technology is told about, once, and it carries no state: a skeleton takes no input."},{"id":"placeholder","description":"A quiet filled shape in the place of one piece of the content: one or more lines of text, a block (a picture, a card, a control) or a circle (a person's picture, a round mark). It has the size the content will have and says nothing by itself."}],"props":[{"name":"label","type":"string","default":"","description":"What is loading, in the product's language (\"Loading projects\"): the name assistive technology is given for the whole skeleton, once. Never drawn. Left empty, it reads the product's words; Tanrei ships none of its own. Not read while decorative is true.","words":"loadingLabel"},{"name":"decorative","type":"boolean","default":false,"description":"Whether something else already says this wait: a loading indicator beside it, a status text, a region the product itself exposes as busy and names. True keeps the whole skeleton from assistive technology, so that one wait is said once; it changes nothing that is drawn."},{"name":"showDelay","type":"number","default":null,"description":"How long, in milliseconds, this skeleton waits from the moment it is inserted before it is drawn and exposed to assistive technology; 0 shows it as it is inserted. Null takes comp.skeleton.motion.show-delay, the system's answer for every skeleton. Set it to 0 where the skeleton is part of the first presentation of a page or a view, which has nothing else to show; leave it where content is fetched in a view that is already there."}],"items":[{"name":"placeholder","summary":"One shape in the place of one piece of the content: lines of text, a block or a circle.","props":[{"name":"shape","type":"enum","values":["text","block","circle"],"default":"text","description":"What the placeholder stands for. Text is one or more lines of the text style in effect where it stands. Block is a box: a picture, a card, a control, a row. Circle is a round box: a person's picture, a round mark."},{"name":"lines","type":"number","default":1,"description":"For text: how many lines the text will take, a whole number of 1 or more. The placeholder is exactly that many line boxes high. Not read for a block or a circle."},{"name":"inlineSize","type":"number","default":null,"description":"The placeholder's size along the line, in points. Null leaves it to the layout: the whole inline size of its place for text and for a block, the side of the square for a circle. A size the product's own layout gives the placeholder (a share of a row, a track of a grid) is used as it is and needs no prop."},{"name":"blockSize","type":"number","default":null,"description":"The placeholder's size across the line, in points: the height of a block, and the side of a circle. Null is one line of the text style in effect, or the size the product's own layout gives. Not read for text, whose height is its lines."}]}],"states":["enabled"],"behavior":[{"id":"SKL-1","text":"THE skeleton SHALL lay itself out as a block that takes the whole inline size of the place it stands in and is as tall as what it holds: it SHALL lay out the placeholders that stand directly in it in one column, in the order given, each at its own size and at the start edge, comp.skeleton.container.gap apart, and SHALL leave placeholders that stand inside a layout of the product's own (a row, a grid, a card's own structure) to that layout, changing neither their place nor their size. THE skeleton SHALL draw no fill, no edge and no elevation, SHALL bring no padding and no outer space of its own, SHALL set no height of its own and SHALL NOT scroll or clip."},{"id":"SKL-2","text":"THE skeleton SHALL draw each placeholder as one box, or for text one box a line, filled with comp.skeleton.placeholder.color, with the corners of its shape (comp.skeleton.placeholder.shape.text for each line of text, comp.skeleton.placeholder.shape.block for a block, comp.skeleton.placeholder.shape.circle for a circle), never larger than half the box's smaller side, and with no edge, no elevation, no shadow and nothing inside it. THE skeleton SHALL lay the fill over whatever stands behind the placeholder, as the fill's color is given — a translucent fill composited over the surface the skeleton stands on, never flattened against one surface of its own choosing — and SHALL cover each point of a placeholder with it once, never twice where two of its boxes or bars meet. THE skeleton SHALL draw nothing else: no glyph, no mark, no text, and never its label."},{"id":"SKL-3","text":"WHILE a placeholder's shape is text THE skeleton SHALL size it by the text style in effect where it stands — the style text placed there would be drawn in, and sys.typescale.body where the platform has no such style and the product gave none: the placeholder SHALL be exactly as tall as lines line boxes of that style, and in each line box THE skeleton SHALL draw one bar as tall as the style's font size, centred in the line box. Each bar SHALL be as long as the placeholder's inline size (inlineSize, else the whole inline size of its place), except that WHILE lines is 2 or more the last bar SHALL be comp.skeleton.placeholder.last-line-inline-size of that size, from the start edge. The placeholder SHALL NOT read blockSize."},{"id":"SKL-4","text":"WHILE a placeholder's shape is block THE skeleton SHALL draw one box whose inline size is inlineSize, else the size the product's layout gives it, else the whole inline size of its place, and whose block size is blockSize, else the size the product's layout gives it (a stretched cell, a ratio the product set), else one line box of the text style in effect where it stands (SKL-3). The block SHALL NOT read lines."},{"id":"SKL-5","text":"WHILE a placeholder's shape is circle THE skeleton SHALL draw one square box whose side is blockSize, else inlineSize, else the size the product's layout gives it, else one line box of the text style in effect where it stands (SKL-3), and SHALL draw it round. WHERE the place is narrower than the side THE skeleton SHALL make the square as large as the place allows and keep it square: a circle is never drawn as an oval. The circle SHALL NOT read lines."},{"id":"SKL-6","text":"THE skeleton SHALL keep the box of every placeholder, and so its own, unchanged from the moment it is inserted to the moment it is removed — while it waits to be shown (SKL-7), while it is shown and while it stirs (SKL-12) — and SHALL NOT guess what is coming: it draws the placeholders the product gave, in the sizes the product gave, and nothing of the content. That the content takes the box its placeholders held is the product's to arrange, by placing each placeholder where its content will be and as that content will be placed."},{"id":"SKL-7","text":"WHEN the skeleton is inserted into a view THE skeleton SHALL wait for its show delay (SKL-9) before it is shown, and WHILE it waits SHALL draw nothing, SHALL run no animation, SHALL be absent from the accessibility tree (no role, no name, no busy state), and SHALL still take the box it takes when shown (SKL-1 to SKL-5), so that nothing around it moves when it appears; a show delay of 0 SHALL show it as it is inserted."},{"id":"SKL-8","text":"WHEN its show delay ends THE skeleton SHALL be shown: it SHALL draw its placeholders at once, at their resting opacity and without an entrance of their own, expose itself as SKL-15 says without announcing itself (SKL-16), and start the animation of SKL-12 at the beginning of a pulse."},{"id":"SKL-9","text":"THE skeleton SHALL take its show delay from showDelay, a number of milliseconds used as given (the motion dial does not scale it). WHILE showDelay is null THE skeleton SHALL use comp.skeleton.motion.show-delay in its place; IF showDelay is negative or not a finite number THE skeleton SHALL use the token likewise and in debug builds report the value it ignored."},{"id":"SKL-10","text":"THE skeleton SHALL treat its show delay as a waiting time, not motion: WHERE motion is reduced it SHALL keep it, on every platform, including one whose reduced-motion setting removes every animation; and it SHALL keep counting it while the skeleton cannot be seen (scrolled out of view, in a hidden view), because the delay measures the wait, not what is seen."},{"id":"SKL-11","text":"WHEN the skeleton is removed before its show delay ends THE skeleton SHALL have drawn, exposed and announced nothing, and WHEN it is removed while shown it SHALL disappear at once, without a motion of its own: how the content enters is the content's. WHEN it is inserted again THE skeleton SHALL wait its whole show delay again; hiding it without removing it (a hidden ancestor, scrolling) SHALL neither restart nor pause the delay (SKL-10). WHEN showDelay changes while the delay is running THE skeleton SHALL finish the running delay as it started and use the new value from its next insertion."},{"id":"SKL-12","text":"WHILE the skeleton is shown THE skeleton SHALL stir as comp.skeleton.motion.animation names, without end. pulse SHALL ease the opacity of every placeholder's fill from its resting value to comp.skeleton.placeholder.dim-opacity of it over comp.skeleton.motion.dim-duration with comp.skeleton.motion.dim-easing and back over the same time on the same curve, every placeholder of the skeleton in step with the others. wave SHALL put each point of each placeholder through the same fall and return, each point later than the skeleton's start edge by a share of one whole pulse equal to its distance from that edge over the skeleton's inline size, so that one dimmer band travels from the start edge to the end edge through all the placeholders as through one surface. none SHALL leave the placeholders still at their resting opacity. In every manner THE skeleton SHALL change the fill's opacity only: no box moves, grows or changes shape, and nothing brighter than the resting fill is drawn."},{"id":"SKL-13","text":"WHERE reduced motion is requested THE skeleton SHALL NOT stir, whatever comp.skeleton.motion.animation names: it SHALL draw its placeholders still, at their resting opacity. The shapes, the label and the busy state still say that the place is waiting, and the show delay is kept (SKL-10)."},{"id":"SKL-14","text":"WHILE the skeleton is not visible (scrolled out of view, in a hidden view, or in an app in the background) THE skeleton SHALL NOT run its animation, and SHALL resume it when it becomes visible."},{"id":"SKL-15","text":"WHILE the skeleton is shown and decorative is false THE skeleton SHALL expose itself to assistive technology as one element: the progressbar role with label as its name, no current value, and the platform's busy or indeterminate state. THE skeleton SHALL expose nothing of what it holds: no placeholder, no count of placeholders or of lines, and nothing of a layout the product placed in it."},{"id":"SKL-16","text":"THE skeleton SHALL NOT be focusable and SHALL NOT be a stop in the focus order, SHALL NOT announce itself when it is shown, when it changes or when it is removed, and SHALL NOT move keyboard or screen-reader focus. Saying that the content has arrived, where the product wants it said, is the product's, as it is beside a loading indicator."},{"id":"SKL-17","text":"WHILE decorative is true THE skeleton SHALL keep itself and everything it holds from assistive technology — no role, no name, no busy state — and SHALL draw, wait and stir as it otherwise would. A skeleton that stands inside another skeleton SHALL behave as decorative whatever its prop says: one wait is said once."},{"id":"SKL-18","text":"THE skeleton SHALL take its name from label, and WHILE label is empty from the product's words (the key loadingLabel); it has no words of its own in any language. WHILE both are empty and decorative is false THE skeleton SHALL still be drawn and still be exposed as SKL-15 says, without a name, and in debug builds report once that a skeleton has no label, naming the prop."},{"id":"SKL-19","text":"THE skeleton SHALL NOT take pointer, touch or keyboard input and SHALL NOT change anything it draws under a pointer, a press or focus: it has no hovered, focused, pressed, selected or disabled state and draws no state layer and no focus indicator. Whatever the product places in it besides placeholders SHALL be drawn as given, SHALL take no input and no focus, and SHALL NOT be exposed to assistive technology: a skeleton holds the shape of content, never content."},{"id":"SKL-20","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 skeleton SHALL draw each placeholder, and each line of a text placeholder, as the outline of its shape, sys.border.hairline wide and inside its box, in the platform's text color, with no fill, and SHALL NOT stir: a fill is not drawn in that mode, and a placeholder that vanished would leave a blank place that says nothing."},{"id":"SKL-21","text":"WHILE the text size is enlarged THE skeleton SHALL grow its text placeholders with the text style they stand in, and every placeholder whose size is a line box with them, so that the skeleton still holds the box the enlarged content will take; it SHALL keep a size given as inlineSize or blockSize as given, SHALL never draw a placeholder wider than its place, SHALL keep its gap, and SHALL need no horizontal scrolling at a width of 320 points with text at 200 %."},{"id":"SKL-22","text":"WHERE the layout direction is right-to-left THE skeleton SHALL place its placeholders at the right edge, begin the shortened last bar of a text placeholder (SKL-3) and every placeholder narrower than its place at the right, and run a wave from the right edge to the left; a block and a circle are otherwise drawn as they are in a left-to-right layout."},{"id":"SKL-23","text":"THE skeleton 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 skeleton is shown THE skeleton SHALL draw itself for the new direction at once, without a motion of its own, keeping its place in its animation."},{"id":"SKL-24","text":"WHEN label, decorative or a placeholder's shape, lines, inlineSize or blockSize changes, or a placeholder is added or removed, while the skeleton waits or is shown THE skeleton SHALL draw and expose the new value at once, without a motion, without an announcement, and without restarting its show delay or its animation. THE skeleton SHALL neither show nor hide itself and SHALL NOT know when the content arrives: the product puts the skeleton in the content's place when the wait starts and takes it away when the wait ends, whatever the wait ends in."},{"id":"SKL-25","text":"WHEN a placeholder's shape names a value this spec does not have THE skeleton SHALL draw it as text; IF its lines is less than 1 or not a finite number THE skeleton SHALL use 1, and SHALL use the whole number below a lines that is not whole; IF its inlineSize or blockSize is negative or not a finite number THE skeleton SHALL treat it as null; WHEN comp.skeleton.motion.animation names a manner the skeleton does not know THE skeleton SHALL pulse. In each case it SHALL report the value it ignored in debug builds."},{"id":"SKL-26","text":"IF the skeleton holds no placeholder THE skeleton SHALL draw nothing, take no space and expose nothing, and in debug builds report that a skeleton holds no placeholder: a busy region with no shape in it is a blank place, and a wait whose shape is not known is a loading indicator's."}],"accessibility":{"role":"progressbar","keyboard":[],"labeling":"label is the accessible name of the whole skeleton: what is loading. Once shown, the skeleton is one element — a progressbar with no value, in the platform's busy (indeterminate) state — and its placeholders are hidden; during its show delay, and while decorative is true, it is not exposed at all. It is exposed exactly as a loading indicator is, because it says the same thing: something is loading here.","minimumTarget":true,"notes":["Not interactive: the skeleton takes no input and is never focusable (SKL-16, SKL-19), so there is no target of its own to size and minimumTarget holds trivially.","One wait, said once. Every placeholder of a region belongs to one skeleton with one label; a skeleton inside another is silent (SKL-17). Where the same wait is already said — a loading indicator in a status row, a status text, a region the product itself marks busy and names — set decorative, or the wait is read twice.","The skeleton does not announce that it appeared, and does not announce that the content arrived (SKL-16): it is removed with its busy state. Where arrival should be heard (results in answer to a search, a list that was asked for), the product says so through its own live region or the status text of the component that asked; a view that simply opens with its content needs no announcement.","A wait shorter than the show delay shows and exposes nothing (SKL-7): no shapes that flash for a sighted person, and no progressbar that appears and vanishes for a screen-reader user.","Nothing a person should read or use goes inside a skeleton: what it holds is kept from input and from assistive technology (SKL-19). A heading that is already known, a button that already works, stand outside it.","The fill is decoration, held to no contrast ratio: comp.skeleton.placeholder.color is a low-emphasis fill. It is a layer of the content color laid over the surface beneath (on-surface at a tenth of its opacity in the root layer), not a surface tone, so a placeholder stands off every surface step by the same quiet step, the highest container step included: a tone chosen against one surface is lost on the surface of that tone. The wait is never said by the fill alone: the label says it to assistive technology, and forced colors draw every placeholder as an outline (SKL-20).","Motion: a pulse dims the fill by half and returns in 2 seconds in the default system, far below the three-per-second flash threshold; nothing moves and nothing brightens. Reduced motion stops it entirely (SKL-13): a large region that pulses is more than a small mark that does, and the shapes already say that the place is waiting.","A skeleton that never ends tells a lie. The product replaces it with the content, with an empty state where nothing came, or with a callout of the error status where loading failed, and sets its own limit on the wait; a task that takes many seconds, or whose progress can be measured, is a progress indicator's.","Text size, text spacing and reflow: SKL-21. A text placeholder follows the text style it stands in, so it grows with the reader's text size; a size given in points does not."]},"tokens":"comp.skeleton","fixtures":[{"id":"text","props":{"label":"Loading the title","showDelay":0},"items":[{"kind":"placeholder","props":{}}]},{"id":"text-lines","props":{"label":"Loading the article","showDelay":0},"items":[{"kind":"placeholder","props":{"lines":3}}]},{"id":"text-lines-on-container-highest","props":{"label":"Loading the article","showDelay":0},"items":[{"kind":"placeholder","props":{"lines":3}}],"surface":"surface-container-highest"},{"id":"text-short","props":{"label":"Loading the name","showDelay":0},"items":[{"kind":"placeholder","props":{"inlineSize":120}}]},{"id":"block","props":{"label":"Loading the picture","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"block","blockSize":160}}]},{"id":"block-sized","props":{"label":"Loading the action","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"block","inlineSize":96,"blockSize":40}}]},{"id":"block-line","props":{"label":"Loading the row","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"block"}}]},{"id":"circle","props":{"label":"Loading the person","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"circle","blockSize":40}}]},{"id":"circle-line","props":{"label":"Loading the mark","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"circle"}}]},{"id":"person","props":{"label":"Loading the author","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"circle","blockSize":40}},{"kind":"placeholder","props":{"inlineSize":160}},{"kind":"placeholder","props":{"lines":2}}]},{"id":"card","props":{"label":"Loading the project","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"block","blockSize":160}},{"kind":"placeholder","props":{"inlineSize":200}},{"kind":"placeholder","props":{"lines":3}},{"kind":"placeholder","props":{"shape":"block","inlineSize":96,"blockSize":40}}]},{"id":"decorative","props":{"decorative":true,"showDelay":0},"items":[{"kind":"placeholder","props":{"lines":2}}]},{"id":"waiting","props":{"label":"Loading the article"},"items":[{"kind":"placeholder","props":{"lines":3}}]},{"id":"long-text","props":{"label":"Loading the whole of the release notes for the version that was published this morning, with every change to the tokens and to the components","showDelay":0},"items":[{"kind":"placeholder","props":{"inlineSize":240}},{"kind":"placeholder","props":{"lines":12}}]},{"id":"text-lines-rtl","props":{"label":"جارٍ تحميل المقال","showDelay":0},"items":[{"kind":"placeholder","props":{"lines":3}}],"direction":"rtl"},{"id":"person-rtl","props":{"label":"جارٍ تحميل الكاتب","showDelay":0},"items":[{"kind":"placeholder","props":{"shape":"circle","blockSize":40}},{"kind":"placeholder","props":{"inlineSize":160}},{"kind":"placeholder","props":{"lines":2}}],"direction":"rtl"}],"platforms":{"web":{"status":"lagging","name":"tanrei-skeleton","props":{"label":"label","decorative":"decorative","showDelay":"showDelay"},"items":{"placeholder":{"name":"span","props":{"shape":"data-shape","lines":"data-lines","inlineSize":"inline-size","blockSize":"block-size"},"notes":"The product's own element with `class=\"tanrei-skeleton-placeholder\"` — a `<span>`, or a `<div>` where it is a block's child — empty, so that it has nothing to expose. `data-shape` is `text` (the default, and what a missing or unknown value draws), `block` or `circle`; `data-lines` the number of lines. `inlineSize` and `blockSize` are the CSS properties `inline-size` and `block-size` on the element (in its `style`, or by a rule of the product's): a number of the spec is that many CSS pixels, and any other length, a percentage or an `aspect-ratio` the product writes there is a size its layout gives (SKL-4). The text style is the inherited `font`, so the placeholder goes where the text will be — inside the heading, the paragraph or the cell — and is `1lh` high a line."}},"parts":{"container":"host","placeholder":".tanrei-skeleton-placeholder"},"notes":"Form: the light-DOM form a component around the product's own elements takes. `<tanrei-skeleton label=\"Loading projects\">` is a custom element with **no shadow root** around the product's own layout and its placeholders, and one stylesheet, `@tanrei/web/skeleton.css`, draws everything — the column and its gap, the placeholders, the show delay, the animation, reduced motion and forced colors — with selectors that start at `tanrei-skeleton` and at the placeholder's class, wrapped in `:where()`. **This is the point of the form: a skeleton is what a page shows before its script has run**, so it must be whole before the element is defined and where script never runs; a shadow root would draw nothing until the module arrived, which is the wait the skeleton is for. The show delay without script is an animation with a delay (`animation: <appear> 0s linear var(--tanrei-comp-skeleton-motion-show-delay) both` from `visibility: hidden`), so the box is held and nothing is drawn or exposed until it ends (SKL-7); the `show-delay` attribute sets a custom property the stylesheet reads, and attribute selectors cover `show-delay=\"0\"` before definition. pulse is an opacity animation of the placeholders with `animation-direction: alternate`; wave is one mask or background gradient sized to the host and positioned per placeholder (`background-attachment` does not serve here; the element measures the placeholders' offsets and writes them as custom properties once defined, and before definition a wave is drawn as a pulse — say so in the docs); reduced motion (`prefers-reduced-motion: reduce` or the root's `data-tanrei-motion=\"reduce\"`) removes the animation and keeps the delay (SKL-10, SKL-13); `forced-colors: active` replaces the fill with an outline in `CanvasText` (SKL-20). The choice of manner reaches the stylesheet as the custom property that carries its name, read by a style query or, where those are missing, by the element. A text placeholder of several lines is one element `calc(var(--lines) * 1lh)` high whose bars are drawn as backgrounds; whether the bars can have eased corners and a shortened last bar from CSS alone in three engines, or need the element to write one child a line once defined, is the build's to find out — the box must be the same either way. What the element adds once defined, and only then: `role=\"progressbar\"`, `aria-busy=\"true\"` and `aria-label` on the host when the delay ends, unless `decorative` or nested (then `aria-hidden=\"true\"`); `inert` on the host, so that nothing inside takes focus or is read (SKL-19); pausing the animation while the host is not visible (SKL-14); the debug reports. A page that must be right before its script runs, or without it, writes `role`, `aria-busy` and `aria-label` on the element itself, and the element leaves what it finds; the placeholders are empty elements and expose nothing either way. The React wrapper renders the element around its children. Where script never runs the skeleton never ends unless the server replaces it: a product whose content arrives only by script gives the content, or a sentence, in `<noscript>`."},"swiftui":{"status":"planned","name":"TanreiSkeleton","props":{"label":"label","decorative":"isDecorative","showDelay":"showDelay"},"items":{"placeholder":{"name":"TanreiSkeletonPlaceholder","props":{"shape":"shape","lines":"lines","inlineSize":"width","blockSize":"height"},"notes":"`TanreiSkeletonPlaceholder(.text, lines: 3)`, `TanreiSkeletonPlaceholder(.circle, height: 40)`; a `.frame` or an `.aspectRatio` the product applies is a size its layout gives. The text style is the font of the environment (`.font(...)` on an ancestor), measured with the reader's text size."}},"notes":"Proposed spelling, for the platform's agent to settle. `TanreiSkeleton(\"Loading projects\", isDecorative:, showDelay:) { … }`, a view builder that holds placeholders directly (stacked, SKL-1) or inside the product's own stacks and grids. Not the platform's own redaction of a view, whose look is the platform's and which needs the real view to exist: the same idea drawn from Tanrei's tokens. Exposed as one accessibility element with the label, the progress trait's indeterminate form (`updatesFrequently` is not set) and its children ignored; `accessibilityHidden` while decorative or waiting. `accessibilityReduceMotion` stops the animation; the show delay is a task, not an animation. Not built on this platform yet: the stage color a fixture's surface names, which the text-lines-on-container-highest fixture draws on."},"compose":{"status":"planned","name":"TanreiSkeleton","props":{"label":"label","decorative":"decorative","showDelay":"showDelay"},"items":{"placeholder":{"name":"TanreiSkeletonPlaceholder","props":{"shape":"shape","lines":"lines","inlineSize":"width","blockSize":"height"},"notes":"`TanreiSkeletonPlaceholder(shape, lines, width, height, modifier)` inside the skeleton's scope; a size from `modifier` is a size the layout gives. The text style is `LocalTextStyle`, measured with the font scale."}},"notes":"`TanreiSkeleton(label, decorative, showDelay) { … }`, a column scope. `clearAndSetSemantics { contentDescription = label; progressBarRangeInfo = ProgressBarRangeInfo.Indeterminate }` once shown, and `clearAndSetSemantics { }` with `invisibleToUser()` while decorative or waiting. The animation reads the system's animator duration scale: where it is 0 the placeholders are still, and the show delay is a coroutine delay that the scale does not shorten (SKL-10). Not built on this platform yet: the stage color a fixture's surface names, which the text-lines-on-container-highest fixture draws on."},"flutter":{"status":"planned","name":"TanreiSkeleton","props":{"label":"label","decorative":"decorative","showDelay":"showDelay"},"items":{"placeholder":{"name":"TanreiSkeletonPlaceholder","props":{"shape":"shape","lines":"lines","inlineSize":"width","blockSize":"height"},"notes":"`TanreiSkeletonPlaceholder.text(lines: 3)`, `.block(height: 160)`, `.circle(size: 40)`; inside an `Expanded`, a `SizedBox` or an `AspectRatio` it takes that size. The text style is `DefaultTextStyle`, with `MediaQuery.textScalerOf`."}},"notes":"`TanreiSkeleton(label: …, decorative:, showDelay:, children: […])`, or `child:` for a layout of the product's own. `Semantics(label: label, excludeSemantics: true)` with the progress indicator's indeterminate semantics once shown; `ExcludeSemantics` and `IgnorePointer` around everything it holds. `MediaQuery.disableAnimationsOf` stops the animation; the show delay is a `Timer`. Not built on this platform yet: the stage color a fixture's surface names, which the text-lines-on-container-highest fixture draws on."},"react-native":{"status":"planned","name":"Skeleton","props":{"label":"label","decorative":"decorative","showDelay":"showDelay"},"items":{"placeholder":{"name":"SkeletonPlaceholder","props":{"shape":"shape","lines":"lines","inlineSize":"width","blockSize":"height"},"notes":"`<SkeletonPlaceholder shape=\"text\" lines={3} />`; `style` gives a size the layout gives (`flex`, a percentage, `aspectRatio`). React Native has no inherited text style, so the product passes one of Tanrei's text styles as `textStyle`, and the body style is used where it gives none (SKL-3)."}},"notes":"`<Skeleton label=\"Loading projects\">…</Skeleton>`. `accessible`, `accessibilityRole=\"progressbar\"`, `accessibilityLabel` and `accessibilityState={{ busy: true }}` once shown; `importantForAccessibility=\"no-hide-descendants\"` and `accessibilityElementsHidden` while decorative or waiting; `pointerEvents=\"none\"`. `AccessibilityInfo.isReduceMotionEnabled` stops the animation. Follows the app's direction where an ancestor's is not known. Not built on this platform yet: the stage color a fixture's surface names, which the text-lines-on-container-highest fixture draws on."}}}
@@ -0,0 +1 @@
1
+ {"name":"slider-field","title":"Slider field","summary":"Lets people choose a value, or a range of values, on a scale under a label that says what is set and what it is set to, with a line of help and the reason a value was refused: a Field and a Slider as one component.","level":"composed","listing":"default","builtFrom":["field","slider"],"anatomy":[{"id":"field","description":"The Field itself: the label row with its label glyph, its requirement mark and, at its end, the value text; and the supporting row with the help and the error text. Drawn by the Field from the Field's tokens. A member: it frames the component."},{"id":"slider","description":"The Slider itself, as the Field's one control: its track, active track, handles, stop dots, state layer, value indicator and focus ring, drawn by the Slider from the Slider's tokens. A member: it holds the component's value."}],"props":[{"name":"label","from":"field.label","note":"Drawn above the track and, for one handle, its accessible name. While range is true it is the visible name of the pair, and each handle is named by startLabel and endLabel (SLF-5)."},{"name":"labelHidden","from":"field.labelHidden","note":"The label row takes the value text with it (FLD-29)."},{"name":"supportingText","from":"field.supportingText"},{"name":"errorText","from":"field.errorText"},{"name":"error","from":"field.error","note":"A slider has no error condition of its own to draw (FLD-8): the track and the handles stay as they are, and each handle is exposed as invalid."},{"name":"disabled","from":"field.disabled","note":"The one disabled of the slider field: the Field passes it to the Slider (FLD-14, SLD-20), whose own disabled is not a prop here, so that the label and the value text always follow."},{"name":"required","from":"field.required"},{"name":"optional","from":"field.optional"},{"name":"requiredMark","from":"field.requiredMark"},{"name":"requiredText","from":"field.requiredText"},{"name":"optionalText","from":"field.optionalText"},{"name":"value","from":"slider.value"},{"name":"startValue","from":"slider.startValue"},{"name":"range","from":"slider.range"},{"name":"min","from":"slider.min"},{"name":"max","from":"slider.max"},{"name":"step","from":"slider.step"},{"name":"origin","from":"slider.origin"},{"name":"stops","from":"slider.stops"},{"name":"size","from":"slider.size","note":"Changes nothing of the frame."},{"name":"valueIndicator","from":"slider.valueIndicator","note":"While always, the field keeps room between the label row and the track for the value indicator (SLF-15)."},{"name":"valueText","from":"slider.valueText","note":"Also drawn at the end of the label row (SLF-3)."},{"name":"startValueText","from":"slider.startValueText"},{"name":"startLabel","from":"slider.startLabel"},{"name":"endLabel","from":"slider.label","note":"The Slider's label under the name of the handle it names, because label is the visible name here. Read only while range is true, and required then (SLF-5)."},{"name":"valueHidden","type":"boolean","default":false,"description":"Does not draw the value at the end of the label row. For a slider set by feel, whose number means nothing to the person (a volume, a brightness). The handle still says its value to assistive technology, and valueIndicator still shows it."}],"slots":[{"name":"label-icon","from":"field.label-icon"}],"events":[{"name":"input","from":"slider.input"},{"name":"change","from":"slider.change"}],"states":["enabled","disabled","hovered","focused","pressed","error"],"behavior":[{"id":"SLF-1","text":"THE slider field SHALL be a Field whose one control is a Slider — the two components themselves, each drawn from its own tokens in every state and behaving by its own sentences (FLD-1 to FLD-24, FLD-29, FLD-30 and FLD-34; SLD-1 to SLD-26 and SLD-30) — and SHALL draw nothing of its own, have no token of its own, and give neither member a look, a state or a size that the member does not have where it stands alone."},{"id":"SLF-2","text":"THE slider field SHALL give each member the value of every prop that is that member's, at once and whenever it changes, and SHALL hold none back: the Field takes label, labelHidden, supportingText, errorText, error, disabled, required, optional, requiredMark, requiredText, optionalText and the glyph of the label-icon slot; the Slider takes value, startValue, range, min, max, step, origin, stops, size, valueIndicator, valueText, startValueText, startLabel and, as its own label, endLabel. THE slider field SHALL give the Slider no orientation, so that the track always runs along the line (SLD-21), and SHALL NOT set the Slider's own disabled: the Field disables its control (FLD-14)."},{"id":"SLF-3","text":"WHILE valueHidden is false THE slider field SHALL give the Field, as its value text (FLD-29), the words the Slider gives its handle as that handle's value (SLD-18): WHILE range is false the only handle's; WHILE range is true the start handle's, an en dash with a space on each side, and the end handle's, each of the two an isolated run and the two in reading order, so that in a right-to-left layout the start's words stand at the right of the dash as the start handle stands at the right of the track. THE slider field SHALL NOT write a number, a unit or a word itself. WHILE valueHidden is true THE slider field SHALL give the Field no value text."},{"id":"SLF-4","text":"WHEN a value changes — at every input of a drag, by a key, by assistive technology, because the product set value or startValue, or because min, max or step changed what the Slider draws (SLD-22) — or valueText, startValueText or the product's function for a value changes, THE slider field SHALL show the new value text in the same frame in which the handle is drawn at its new place, without a motion and without an announcement of its own: the handle says its value to assistive technology itself (SLD-19), and the Field keeps the drawn text from it (FLD-30)."},{"id":"SLF-5","text":"WHILE range is false THE slider field SHALL have its handle named by label, as the Field names its control (FLD-10). WHILE range is true THE slider field SHALL have the start handle named by startLabel and the end handle by endLabel (SLD-19), which should each hold the words of label so that what is seen is in what is heard, and WHILE either is empty SHALL have that handle named by label and in debug builds report that a handle of a range has no name of its own. THE slider field SHALL have every handle described by the text the supporting row shows, with optionalText while optional is true (FLD-11), and exposed as invalid while error is true (FLD-8); WHILE required is true it SHALL have every handle exposed as required where the platform's slider has such a state and, where it has none (the web's slider role), SHALL have requiredText added to the handle's description instead."},{"id":"SLF-6","text":"THE slider field SHALL hold value and startValue as its own and report them as the Slider does: WHEN the Slider emits input or change THE slider field SHALL emit the same event exactly once, carrying value and, for a range, startValue (SLD-2 to SLD-4), with its own value and startValue already equal to what the event carries; WHEN the product sets value or startValue THE slider field SHALL emit nothing (SLD-16). WHERE the platform has forms THE slider field SHALL be the one control the form sees — it carries the name, submits what the Slider submits, is reset and restored as the Slider is, and submits nothing WHILE disabled is true — and neither member SHALL be a second one."},{"id":"SLF-7","text":"THE slider field SHALL add no stop to the focus order and handle no key: its only focus stops are the Slider's handles, in the Slider's order (SLD-5), and every key is the Slider's (SLD-3). WHEN focus is given to the slider field itself, or the person presses the label row (FLD-12), THE slider field SHALL move focus to the only handle and, WHILE range is true, to the start handle, and SHALL change no value."},{"id":"SLF-8","text":"WHILE disabled is true THE slider field SHALL be a disabled Field holding a disabled Slider (FLD-14, SLD-20): no handle takes focus or changes, no event is emitted, the value indicator is not shown, and the label, the requirement mark, the supporting row and the value text are drawn from the Field's disabled tokens; THE slider field SHALL keep the value text drawn, because what a disabled control is set to is still read."},{"id":"SLF-9","text":"WHILE the text size is enlarged THE slider field SHALL grow as the Field grows (FLD-16) and SHALL leave the Slider's track, handles and hit area as they are (SLD-7); at 200% in a width of 320 no text SHALL be cut, lie over another part or need scrolling in two directions: the label wraps beside the value text, and a value text too wide to share the label's line moves whole to a line of its own (FLD-29)."},{"id":"SLF-10","text":"THE slider field SHALL take its layout direction from where it is used and have no direction setting of its own, and its two members SHALL take the same one (FLD-19, SLD-25). WHERE the layout direction is right-to-left the frame and the track mirror together — the label row starts at the right with the value text at its left end (FLD-18), the track runs from the right (min) to the left (max) and the arrow keys follow it (SLD-21) — and the words of a value SHALL NOT be mirrored: each is laid out as text of its own direction (FLD-21, SLD-26), so that a number keeps its digits, its sign and its unit in their own order."},{"id":"SLF-11","text":"WHERE the platform draws with a person's own forced colors THE slider field SHALL add nothing and remove nothing: the Field draws its texts as FLD-17 says and the Slider its track and handles as it does standing alone, and the error SHALL still be carried by the words of errorText and by the invalid state of each handle (FLD-8), never by a color."},{"id":"SLF-12","text":"THE slider field SHALL be, in what is drawn and in what assistive technology is told, exactly what a Field holding a Slider is when a product writes the two by hand with the same props and gives the Field the same value text, which is the one prop of a member the slider field fills itself: every fixture of the slider field and its twin among the Field's fixtures are the same picture, with the same names, descriptions, values and states, and a difference is a defect of the slider field."},{"id":"SLF-13","text":"THE slider field SHALL be a block as wide as its place in the layout, with no width of its own, and its Slider SHALL fill it from the start edge to the end edge, as a Slider standing in a Field does (FLD-1); the label row and the supporting row are as wide as the track's box."},{"id":"SLF-14","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 slider field 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 slider field is invalid — except those the slider field owns (aria-label, aria-labelledby, aria-disabled), which it SHALL move and not expose: its name is label (SLF-5). 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 slider field SHALL take it off that element. WHEN the product sets an aria- attribute the slider field owns THE slider field SHALL report it in debug builds."},{"id":"SLF-15","text":"WHILE valueIndicator is always THE slider field SHALL keep room between its label row and the track for each handle's value indicator, as its Field keeps it above its Slider (FLD-34, SLD-30): every value indicator SHALL lie below the label row, comp.field.label.gap from it, and above its handle, over neither, at every size, for one handle and for a range, in either layout direction, and WHILE labelHidden is true inside the slider field's own box. WHILE valueIndicator is none or active THE slider field SHALL keep no such room: the track's box stands comp.field.label.gap below the label row."}],"accessibility":{"role":"slider","keyboard":[{"keys":"Tab / Shift+Tab","action":"Moves focus to the handle — for a range to the start handle, then the end handle — and on from it: the stops are the Slider's, and the slider field adds none (SLF-7)."},{"keys":"Every other key","action":"The Slider's own, as its spec's keyboard table says (SLD-3). The slider field handles no key."}],"labeling":"The slider field has no role of its own: assistive technology meets the Slider's handles, each a slider (SLD-19), What the slider field ties together (SLF-5): label is the accessible name of the only handle; a range's two handles are named by startLabel and endLabel; the supporting text with, in error, the error text after it is every handle's description, with optionalText while optional is true; every handle is invalid while error is true and required, or described by requiredText where the role has no required state, while required is true. Each handle's value is said in the words of SLD-18 — valueText, or what the product's function writes, or the platform's number — and the same words are drawn at the end of the label row, where they are kept from assistive technology so that a value is not read twice (FLD-30).","minimumTarget":true,"notes":["Everything else is a member's and is said in its spec: the Field's rows, requirement marks, error announcement and press on the label (FLD-2 to FLD-12); the Slider's roles, value limits, target size and contrast (SLD-7, SLD-19 and its accessibility notes).","A value a person cannot read is a value only some people are told. The handle says its value to assistive technology, and a track does not say it to the eye; the value text at the end of the label row is drawn unless valueHidden says the number means nothing to the person.","A number with a unit is words, and the words are the product's: valueText for a value the product writes itself, or one function from a value to its words, given once, which the Slider asks at every change (SLD-18). The slider field writes none, and joins a range's two with an en dash, which is a mark.","A slider always has a value, so required does not mean \"not empty\" here: a product that marks every control of a form as required or optional marks this one too, and says with error and errorText what it refuses (a level of 0, a range too narrow).","Dragging is never the only way (WCAG 2.5.7): a press on the track moves the handle to it, and the keys step it (SLD-2, SLD-3). A value that must be entered exactly is a number field, alone or beside a slider.","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."]},"tokens":"comp.field","fixtures":[{"id":"default","props":{"label":"Volume","value":40}},{"id":"supporting","props":{"label":"Volume","supportingText":"Applies to alerts and media.","value":40}},{"id":"value-words","props":{"label":"Text size","min":50,"max":200,"step":10,"value":120,"valueText":"120 %"}},{"id":"value-hidden","props":{"label":"Volume","value":40,"valueHidden":true}},{"id":"value-indicator","props":{"label":"Volume","value":40,"valueIndicator":"always"}},{"id":"range","props":{"label":"Price","range":true,"startValue":20,"value":60,"startLabel":"Minimum price","endLabel":"Maximum price"}},{"id":"range-words","props":{"label":"Price","supportingText":"Per night, before taxes.","range":true,"min":0,"max":500,"startValue":100,"value":300,"startValueText":"$100","valueText":"$300","startLabel":"Minimum price","endLabel":"Maximum price"}},{"id":"required","props":{"label":"Volume","required":true,"requiredText":"Required","value":40}},{"id":"optional","props":{"label":"Volume","optional":true,"optionalText":"Optional","value":40}},{"id":"required-asterisk","props":{"label":"Volume","required":true,"requiredMark":"asterisk","value":40}},{"id":"error","props":{"label":"Volume","supportingText":"Applies to alerts and media.","error":true,"errorText":"Choose a level above 0.","value":0}},{"id":"required-error","props":{"label":"Volume","required":true,"requiredText":"Required","error":true,"errorText":"Choose a level above 0.","value":0}},{"id":"error-without-text","props":{"label":"Volume","supportingText":"Applies to alerts and media.","error":true,"value":0}},{"id":"disabled","props":{"label":"Volume","supportingText":"Applies to alerts and media.","disabled":true,"value":40}},{"id":"label-hidden","props":{"label":"Volume","labelHidden":true,"supportingText":"Applies to alerts and media.","value":40}},{"id":"label-icon","props":{"label":"Volume","value":40},"slots":{"label-icon":"volume_up"}},{"id":"long-label","props":{"label":"How loud alerts, calls and media are played when this device is connected to a speaker, a car or a pair of headphones that reports its own level","required":true,"requiredText":"Required","supportingText":"A level the connected device cannot play is lowered to the nearest one it can, and the change is shown here the next time the device connects.","value":40}},{"id":"long-value-text","props":{"label":"Yearly income before tax","range":true,"min":0,"max":20000000,"step":100000,"startValue":3400000,"value":12500000,"startValueText":"3,400,000","valueText":"12,500,000","startLabel":"Lowest yearly income","endLabel":"Highest yearly income"}},{"id":"required-ja","props":{"label":"音量","required":true,"requiredText":"必須","supportingText":"通知とメディアに適用されます。","value":40}},{"id":"error-ja","props":{"label":"音量","required":true,"requiredText":"必須","error":true,"errorText":"0 より大きい値を選んでください。","value":0}},{"id":"rtl","props":{"label":"مستوى الصوت","required":true,"requiredText":"مطلوب","supportingText":"ينطبق على التنبيهات والوسائط.","value":40},"slots":{"label-icon":"volume_up"},"direction":"rtl"},{"id":"error-rtl","props":{"label":"עוצמת קול","optional":true,"optionalText":"רשות","error":true,"errorText":"יש לבחור רמה מעל 0.","value":0},"direction":"rtl"},{"id":"range-rtl","props":{"label":"السعر","range":true,"min":0,"max":500,"startValue":100,"value":300,"startValueText":"$100","valueText":"$300","startLabel":"أدنى سعر","endLabel":"أعلى سعر"},"direction":"rtl"}],"platforms":{"web":{"status":"lagging","name":"tanrei-slider-field","props":{"label":"label","labelHidden":"labelHidden","supportingText":"supportingText","errorText":"errorText","error":"error","disabled":"disabled","required":"required","optional":"optional","requiredMark":"requiredMark","requiredText":"requiredText","optionalText":"optionalText","value":"value","startValue":"startValue","range":"range","min":"min","max":"max","step":"step","origin":"origin","stops":"stops","size":"size","valueIndicator":"valueIndicator","valueText":"valueText","startValueText":"startValueText","startLabel":"startLabel","endLabel":"endLabel","valueHidden":"valueHidden"},"events":{"input":"input","change":"change"},"parts":{"field":"field","slider":"slider"},"notes":"Class `TanreiSliderField`; React `SliderField`. A custom element with a shadow root that holds its members' own elements, composed as every field element is: `<tanrei-field>` in the shadow root, and in its default slot one `<tanrei-slider>` with no `label` of its own while `range` is false; the host's `label-icon` slot is passed on to the Field's. The host is `display: block` and as wide as its place (SLF-13). What differs here: (1) `static formAssociated = true` on the host, which carries `name`, submits what the Slider submits (the value; for a range the start value and then the value under the same name), and resets and restores it — the inner Slider has no `name` and is outside the form; (2) the shadow root does not delegate focus, because a press on the help or the error text must do nothing (FLD-12): `focus()` is overridden to go to the first handle, and the Slider's own shadow root delegates as before; (3) `input` and `change` leave the shadow root once each with the host as their target, after the host's `value` and `startValue` are set; (4) `exportparts` gives the Slider's documented parts under their own names and the Field's under theirs, with the two members' hosts as the parts `field` and `slider`, and the host has no other part of its own; (5) the host writes the Field's `value-text` from the Slider's value text at every `input`, in the same task, and joins a range's two in two `<bdi>` runs with an en dash between; (6) `formatValue` is a property of the host, never an attribute, `((value: number) => string) | null`, null by default, handed to the Slider (`field.formatValue = (value) => percent.format(value / 100)`). Attributes are kebab-case and are the members': `label-hidden`, `supporting-text`, `error-text`, `required-mark`, `required-text`, `optional-text`, `start-value`, `value-indicator`, `value-text`, `start-value-text`, `start-label`, and `end-label`, `value-hidden`. No custom property of a member is written by the host: a token set on the host for one instance (`--tanrei-comp-field-…`, `--tanrei-comp-slider-…`) reaches the member by inheritance. Words: `required-text` and `optional-text` left empty read `setWords()`, as the Field's do. One level down, the same picture and the same tree: `<tanrei-field label=\"Volume\" value-text=\"40\"><tanrei-slider name=\"volume\" value=\"40\"></tanrei-slider></tanrei-field>`, with the product writing `value-text` at each `input`. With scripting off nothing of it is drawn and nothing is submitted, as for every control with a shadow root."},"swiftui":{"status":"planned","name":"TanreiSliderField","props":{"label":"label","labelHidden":"labelsHidden","supportingText":"supportingText","errorText":"errorText","error":"error","disabled":"disabled","required":"isRequired","optional":"isOptional","requiredMark":"requiredMark","requiredText":"requiredText","optionalText":"optionalText","value":"value","startValue":"value","range":"value","min":"bounds","max":"bounds","step":"step","origin":"origin","stops":"showsStops","size":"size","valueIndicator":"valueIndicator","valueText":"valueText","startValueText":"startValueText","startLabel":"startLabel","endLabel":"endLabel","valueHidden":"valueHidden"},"events":{"input":"value","change":"onCommit"},"notes":"Planned. Not built on this platform yet, nor is this platform's Field: `TanreiSliderField(_ label:, value: Binding<Double>, in bounds: ClosedRange<Double> = 0...100, step:, supportingText:, errorText:, error:, required:, optional:, format: ((Double) -> String)? = nil)`, a view whose body is `TanreiField(label, valueText: …) { TanreiSlider(value: $value, in: bounds, …) }`; a range is the initializer whose `value` is a `Binding<ClosedRange<Double>>` and which takes `startLabel` and `endLabel`. `labelHidden` follows `.labelsHidden()` and `disabled` follows `.disabled(_:)`, as the Field's do. One field set apart: `.tanreiTheme(_:)` on the view."},"compose":{"status":"planned","name":"TanreiSliderField","props":{"label":"label","labelHidden":"labelHidden","supportingText":"supportingText","errorText":"errorText","error":"isError","disabled":"enabled","required":"required","optional":"optional","requiredMark":"requiredMark","requiredText":"requiredText","optionalText":"optionalText","value":"value","startValue":"value","range":"value","min":"valueRange","max":"valueRange","step":"step","origin":"origin","stops":"showStops","size":"size","valueIndicator":"valueIndicator","valueText":"stateDescription","startValueText":"startStateDescription","startLabel":"startContentDescription","endLabel":"endContentDescription","valueHidden":"valueHidden"},"events":{"input":"onValueChange","change":"onValueChangeFinished"},"notes":"Planned. Not built on this platform yet, nor is this platform's Field: `TanreiSliderField(label = \"Volume\", value = volume, onValueChange = { volume = it }, valueRange = 0f..100f, supportingText = …, isError = …, format: ((Float) -> String)? = null)`, a composable that calls `TanreiField(label, valueText = …) { TanreiSlider(…) }`; a range is the overload whose `value` is a `ClosedFloatingPointRange<Float>`. `enabled` is the inverse flag. The Slider's names are kept for what is its own (`stateDescription`), though the slider field also draws that text. One field set apart: `TanreiTheme(…) { }` around the call."},"flutter":{"status":"planned","name":"TanreiSliderField","props":{"label":"labelText","labelHidden":"labelHidden","supportingText":"helperText","errorText":"errorText","error":"isError","disabled":"enabled","required":"required","optional":"optional","requiredMark":"requiredMark","requiredText":"requiredText","optionalText":"optionalText","value":"value","startValue":"start","range":"range","min":"min","max":"max","step":"step","origin":"origin","stops":"showStops","size":"size","valueIndicator":"valueIndicator","valueText":"semanticValue","startValueText":"startSemanticValue","startLabel":"startSemanticLabel","endLabel":"endSemanticLabel","valueHidden":"valueHidden"},"events":{"input":"onChanged","change":"onChangeEnd"},"notes":"Planned. Not built on this platform yet, nor is this platform's Field: `TanreiSliderField(labelText: 'Volume', value: volume, onChanged: (v) => …, helperText: …, errorText: …, isError: …, format: (double value) => …)`, a widget that builds `TanreiField(labelText:, valueText:, child: TanreiSlider(…))`; a range is the named constructor `TanreiSliderField.range(start:, end:, onChanged: (start, end) {…})`. `enabled` is the inverse flag; a null `onChanged` also disables it, as the Slider's does. One field set apart: a `TanreiTheme` widget around it."},"react-native":{"status":"planned","name":"SliderField","props":{"label":"label","labelHidden":"labelHidden","supportingText":"supportingText","errorText":"errorText","error":"error","disabled":"disabled","required":"required","optional":"optional","requiredMark":"requiredMark","requiredText":"requiredText","optionalText":"optionalText","value":"value","startValue":"startValue","range":"range","min":"minimumValue","max":"maximumValue","step":"step","origin":"origin","stops":"stops","size":"size","valueIndicator":"valueIndicator","valueText":"valueText","startValueText":"startValueText","startLabel":"startAccessibilityLabel","endLabel":"endAccessibilityLabel","valueHidden":"valueHidden"},"events":{"input":"onValueChange","change":"onSlidingComplete"},"notes":"Planned. Not built on this platform yet, nor is this platform's Field: `<SliderField label=\"Volume\" value={volume} onValueChange={setVolume} supportingText=\"…\" formatValue={(value) => …} />`, a component that renders `<Field label valueText={…}><Slider … /></Field>`; a range adds `range` and `startValue`, and both callbacks receive `(value, startValue)`. One field set apart: a provider around it."}}}
@@ -0,0 +1 @@
1
+ {"name":"slider","title":"Slider","summary":"Lets people choose a value, or a range of values, from a continuous or stepped scale by dragging a handle along a track.","level":"base","listing":"default","anatomy":[{"id":"track","description":"The line the handle travels along: the whole range from min to max. Drawn in the track color where it is not active."},{"id":"active-track","description":"The part of the track from the origin to the value, or between the two handles of a range, drawn over the track."},{"id":"handle","description":"The part the person drags, one per value: in Tanrei a circle (its width along the track equals its height across it) with a fill and an outline of its own, a narrow upright bar where a system says so."},{"id":"handle-outline","description":"The ring drawn over the handle's fill, inside its edge, so the handle keeps its size however wide the ring is: a wider ring leaves a smaller disc of fill. None where its width is 0.","optional":true},{"id":"container","description":"The round state layer centered on a handle, moving with it. It carries hover, focus and press and is invisible at rest."},{"id":"stop-indicator","description":"A dot on the track's midline, half the track's thickness across in Tanrei: at an end of the handle's travel that lies on the track, and at every step while stops is true.","optional":true},{"id":"value-indicator","description":"A small label beside a handle that shows its value while the handle is pressed or focused, or always.","optional":true},{"id":"focus-ring","description":"Gap-then-ring indicator around the handle that has keyboard focus."}],"props":[{"name":"size","type":"enum","values":["small","medium","large"],"default":"small","description":"The track's weight and the stop dots' size (and, where a system says so, the handle's height). Small is the everyday slider; medium and large give a prominent control (a volume or brightness slider) more weight. The hit area always meets the minimum target. A design system may add values.","axis":"tanrei.comp.slider.size"},{"name":"orientation","type":"enum","values":["horizontal","vertical"],"default":"horizontal","description":"Horizontal runs from the inline start (min) to the inline end (max); vertical runs from the bottom (min) to the top (max)."},{"name":"value","type":"number","default":0,"description":"The value of the only handle, or of a range's end handle."},{"name":"startValue","type":"number","default":0,"description":"The value of a range's start handle. Ignored while range is false."},{"name":"range","type":"boolean","default":false,"description":"Draws two handles, choosing the range from startValue to value (a price filter)."},{"name":"min","type":"number","default":0,"description":"The lowest value, at the track's start."},{"name":"max","type":"number","default":100,"description":"The highest value, at the track's end."},{"name":"step","type":"number","default":0,"description":"0 is continuous. Above 0 the slider is discrete: its values are min plus whole multiples of step, up to max."},{"name":"origin","type":"number","default":null,"description":"Where the active track starts. Null starts it at min. A value inside the range makes a centered slider (a balance control) whose active track grows toward either side. Ignored while range is true."},{"name":"stops","type":"boolean","default":false,"description":"Draws a stop dot at every value a discrete slider can take. Meant for a few steps; ignored while step is 0."},{"name":"valueIndicator","type":"enum","values":["none","active","always"],"default":"none","description":"Whether a handle shows its value beside it: never, while it is pressed or has keyboard focus, or all the time."},{"name":"disabled","type":"boolean","default":false,"description":"Prevents interaction and removes the handles from the focus order."},{"name":"label","type":"string","default":"","description":"Names the slider (a range's end handle) for assistive technology. Never drawn: a visible label is the product's text next to the slider, in the same words. Required."},{"name":"startLabel","type":"string","default":"","description":"Names a range's start handle (\"Minimum price\"). Required while range is true."},{"name":"valueText","type":"string","default":"","description":"The value as words (\"40 %\", \"3 stars\"), spoken and shown by the value indicator in place of the number. For a range, the end handle's."},{"name":"startValueText","type":"string","default":"","description":"The start handle's valueText, for a range."}],"events":[{"name":"input","description":"The person changed a value; carries value and, for a range, startValue. Emitted for every change during a drag, not when the product sets a value."},{"name":"change","description":"The person finished changing a value (the press ended, or a key or assistive-technology adjustment was made); carries value and, for a range, startValue. Always after the input it follows."}],"states":["enabled","disabled","hovered","focused","pressed"],"behavior":[{"id":"SLD-1","text":"THE slider SHALL keep value (and, while range is true, startValue) between min and max; WHILE step is greater than 0 it SHALL take only min plus whole multiples of step that do not exceed max, snapping to the nearest, and WHILE step is 0 any value between min and max."},{"id":"SLD-2","text":"WHEN the person presses the slider by pointer or touch — the track, a handle, or the space around them — THE slider SHALL move the handle nearer the press (for a range whose handles meet, the one that can move toward the press) to the value under it and, WHILE the press moves, SHALL make the handle follow it along the track, clamped to the handle's range and snapped to step; it SHALL emit input once for each value change and, WHEN the press ends with a value other than the one it started with, change once after the last input. On touch the handle SHALL move once the press has travelled along the track by the platform's touch slop, or when a press that did not move ends; a press that first travels across the track by the slop SHALL be left to an enclosing scroll view and SHALL change nothing."},{"id":"SLD-3","text":"WHILE a handle has keyboard focus THE slider SHALL increase its value by one keyboard step with Right Arrow or Up Arrow and decrease it with Left Arrow or Down Arrow (Right and Left swapped in a right-to-left horizontal slider), by ten keyboard steps with Page Up and Page Down, and set it to the lowest and highest value it can take with Home and End; the keyboard step is step, or one hundredth of max − min while step is 0. Each key press that changes the value SHALL emit input and then change once; a key press that changes nothing SHALL emit nothing."},{"id":"SLD-4","text":"WHEN assistive technology increments or decrements a handle (a vertical swipe on an adjustable element, the platform's increment and decrement actions) THE slider SHALL change its value by one keyboard step, and WHEN it sets a value directly where the platform allows that THE slider SHALL clamp and snap it; either SHALL emit input and then change once."},{"id":"SLD-5","text":"WHILE range is true THE slider SHALL draw a start handle at startValue and an end handle at value, SHALL stop each handle at the other's value so that the two may meet but never cross, and SHALL make each handle its own Tab stop, the start handle first, and its own element for assistive technology."},{"id":"SLD-6","text":"WHILE range is false THE slider SHALL draw the active track between origin (min while origin is null, and origin clamped to the range) and value, on whichever side of origin value lies; WHILE range is true it SHALL draw the active track between startValue and value."},{"id":"SLD-7","text":"THE slider SHALL be as long along its axis as its layout gives it and, across it, as thick as the larger of comp.slider.container.size and comp.slider.handle.height.small for size small (and so on for each size); it SHALL extend its hit area across its axis to sys.target.touch for touch input and sys.target.pointer for fine pointers without changing that size (a platform that cannot tell the input type SHALL use sys.target.touch), the whole slider being the hit area, and a handle drawn smaller than the target SHALL NOT make the hit area smaller. It SHALL draw the track comp.slider.track.thickness.small thick for size small (and so on), centered across the axis and inset from each end of the slider by half of comp.slider.container.size, so that a handle and its state layer stay inside the slider at min and max; a handle's center SHALL travel between the two points half the track's thickness in from the track's ends, concentric with its rounded ends."},{"id":"SLD-8","text":"THE slider SHALL draw the track in comp.slider.standard.track.color and the active track over it in comp.slider.standard.active-track.color. WHILE comp.slider.track.gap is 0 the track and the active track SHALL run under each handle and meet at its center, so that nothing lies between the active track and the handle; WHILE it is above 0 they SHALL stop that far from each side of each handle, measured from the handle's edge. The pieces SHALL be rounded by comp.slider.track.shape.small for size small (and so on), clamped to half the thickness, at the track's two ends and, WHILE comp.slider.track.gap is above 0, beside a handle; they SHALL be square where two pieces meet (under a handle while the gap is 0, and at an origin inside the travel). It SHALL draw each handle centered on the track's midline, comp.slider.standard.handle.width along the axis and comp.slider.handle.height.small across it for size small (and so on), rounded by comp.slider.handle.shape clamped to half its smaller side, painted as SLD-24 says, above the tracks — each part from the tokens of the state SLD-11 names."},{"id":"SLD-9","text":"THE slider SHALL draw a dot of comp.slider.stop-indicator.size.small for size small (and so on) centered on the track's midline at each end of the handles' travel that lies on the track rather than on the active track, and WHILE stops is true and step is greater than 0 also at every value the slider can take; a dot SHALL be drawn in comp.slider.standard.stop-indicator.color where it lies on the track and in comp.slider.standard.active-stop-indicator.color where it lies on the active track, SHALL NOT be drawn where a handle or its track gap covers it, and a size of 0 SHALL draw none."},{"id":"SLD-10","text":"THE slider SHALL draw each handle's container, a shape of comp.slider.container.size on each side with corners comp.slider.container.shape, centered on the handle and moving with it, filled with comp.slider.standard.container.color from the handle's state, behind the handle and above the tracks; it may extend beyond the track without affecting layout, and a size of 0 SHALL draw none."},{"id":"SLD-11","text":"WHILE a handle is hovered, keyboard-focused or pressed THE slider SHALL render that handle and its container from the component tokens of that handle's highest-precedence active state, with precedence pressed over focused over hovered, and the tracks, stop dots and opacity from the highest-precedence state of any of its handles; a handle is hovered while a fine pointer is over the slider and that handle is the one a press there would move; focus gained by pointer or touch SHALL NOT select the focused state. WHEN the colors change between states THE slider SHALL animate them over comp.slider.motion.state-duration with comp.slider.motion.state-easing, and at once where motion is reduced."},{"id":"SLD-12","text":"WHEN a handle receives keyboard focus THE slider SHALL show the focus ring around that handle without animation; focus gained by pointer or touch SHALL NOT show it."},{"id":"SLD-13","text":"WHEN the slider is pressed by pointer or touch THE slider SHALL show the pressed state of the handle the press moves without delay, SHALL keep it for as long as the press lasts, and SHALL keep it visible for at least sys.motion.duration.press-hold, even when the press ends sooner."},{"id":"SLD-14","text":"WHILE pressed THE slider SHALL answer as sys.behavior.pressed-feedback names: overlay applies the pressed tokens to the whole container at once; ripple grows the pressed state layer from the point of contact (from the center for keyboard activation); dim applies the pressed opacity to the whole control and draws no state layer; none draws no answer to the press. Under ripple and dim only the container color stays with the state under the press; handle, tracks, stop dots, opacity and shape still come from the pressed tokens. Under none every part stays with the state under the press. The ripple grows over comp.slider.motion.feedback-duration with comp.slider.motion.state-easing, fades over comp.slider.motion.state-duration with comp.slider.motion.state-easing once the press has ended and press-hold has passed, and appears whole where motion is reduced. The slider's point of contact is the pressed handle's center, because the handle moves to the press."},{"id":"SLD-15","text":"THE slider SHALL ease its container, handle and track corners by sys.shape.corner-smoothing (0 is a quarter circle, 0.6 the iOS continuous corner; a platform with only the OS curve draws it for any amount above 0) and show its keyboard focus as sys.behavior.focus-style names (ring or glow); a platform that cannot draw a choice SHALL fall back to the first value and state that in its README."},{"id":"SLD-16","text":"WHEN a value changes by a key, by assistive technology, by a press on the track that did not drag, or because the product set it, THE slider SHALL move the handle and the active track to it over comp.slider.motion.value-duration with comp.slider.motion.value-easing; WHILE a press drags a handle, the handle SHALL follow the press without delay; WHERE motion is reduced every change SHALL be shown at once. WHEN the product sets value or startValue THE slider SHALL NOT emit input or change."},{"id":"SLD-17","text":"WHILE valueIndicator is always, or valueIndicator is active and a handle is pressed or has keyboard focus, THE slider SHALL draw that handle's value indicator comp.slider.value-indicator.offset beyond the handle's outer edge across the axis — above the handle in a horizontal slider, at its inline start in a vertical one; for a round handle beyond the top of its circle, outline included, which lies half of comp.slider.handle.height.small from the track's midline for size small (and so on) — with its center on the handle's center along the axis, shifted along the axis only as far as it must to stay inside the window: the handle's value text on one line in comp.slider.value-indicator.label.typescale and comp.slider.value-indicator.label.color, centered in a container of comp.slider.value-indicator.container.color at least comp.slider.value-indicator.container.height high and as wide as the text plus comp.slider.value-indicator.container.padding-inline on each side but never narrower than it is high, rounded by comp.slider.value-indicator.container.shape. The value indicator SHALL be drawn above neighbouring content and above the handle and its container, without affecting the slider's layout (a Field around it keeps room for one that is always shown, SLD-30) or being clipped by the slider or by any of its ancestors (SLD-28), SHALL take no focus and no input (a read overlay), SHALL be hidden from assistive technology, and SHALL fade in and out over comp.slider.motion.state-duration with comp.slider.motion.state-easing, at once where motion is reduced."},{"id":"SLD-18","text":"THE slider SHALL give each handle a value text: valueText for the only handle and a range's end handle, startValueText for a range's start handle; or, while that is empty, what the product's own function writes for that handle's value, WHERE the product gave the slider such a function in the platform's idiom; or, with neither, the value formatted as a number in the platform's locale with as many fraction digits as the keyboard step has, at most two; the value indicator SHALL show it and assistive technology SHALL read it as the handle's value. THE slider SHALL ask the function again at every change of a value and WHEN the function itself changes, SHALL take an empty answer as no answer, and SHALL announce nothing for a change of the words alone."},{"id":"SLD-19","text":"THE slider SHALL expose each handle as a slider (the adjustable trait on Apple platforms) named by label, or by startLabel for a range's start handle, with its value, its value text, the lowest and highest value it can take (for a range, bounded by the other handle), its orientation and its disabled state; the tracks, stop dots, container and value indicator SHALL be hidden from assistive technology. WHILE a handle's label (label, or startLabel for a range's start handle) is not empty THE slider SHALL expose it as that handle's accessible name, over a name the product gives the slider on the element (aria-label or aria-labelledby). WHILE label is empty and the product gives the slider a name of its own on the element — aria-label, or aria-labelledby naming an element — THE slider SHALL expose that name on each handle whose own label is empty. WHILE label is empty and the product gives it none, or range is true and startLabel is empty, THE slider SHALL still render, and in debug builds report that a handle has no accessible name: one name of the product's does not tell a range's two handles apart."},{"id":"SLD-20","text":"WHILE disabled is true THE slider SHALL NOT change a value or emit input or change, SHALL NOT be focusable, SHALL show no value indicator, SHALL expose the disabled state to assistive technology, and SHALL render its container, handles, tracks, stop dots and opacity from the disabled component tokens."},{"id":"SLD-21","text":"WHILE orientation is vertical THE slider SHALL run its track from the bottom (min) to the top (max), be as tall as its layout gives it, and lay out every part SLD-7 to SLD-17 name turned a quarter turn; WHEN the layout direction is right-to-left THE slider SHALL run a horizontal track from the right (min) to the left (max), mirroring the active track, the stop dots and the arrow keys (SLD-3), and SHALL NOT mirror a vertical slider. WHILE a value indicator is drawn in a right-to-left layout THE slider SHALL keep it centred on its handle and shift it along the axis only as far as it must to stay inside the window, away from whichever edge of the window it would cross, as in left-to-right (SLD-17): the shift is physical and is not mirrored."},{"id":"SLD-22","text":"IF value, startValue or origin lies outside min and max, or off a step, THE slider SHALL draw and expose it clamped and snapped without emitting input or change; IF startValue is greater than value while range is true THE slider SHALL draw both handles at value; IF max is not greater than min THE slider SHALL draw its handles at the track's start and take no input; IF step is below 0 THE slider SHALL treat it as 0. In debug builds it SHALL report each of these."},{"id":"SLD-23","text":"WHEN size names a value that the active design system does not have, or orientation or valueIndicator a value the component does not define, THE slider SHALL render with the default value (small, horizontal, none), and in debug builds report the unknown value."},{"id":"SLD-24","text":"THE slider SHALL fill the whole shape of each handle with comp.slider.standard.handle.color and draw the handle's outline over the fill, comp.slider.handle-outline.width wide inside the handle's edge, in comp.slider.standard.handle-outline.color, so that the outline never changes the handle's width or height and a width of 0 draws none; it SHALL raise the handle by comp.slider.standard.handle.elevation. The parts under a handle (the tracks where they meet, a stop dot, the container) SHALL show through it only as far as its fill is translucent."},{"id":"SLD-25","text":"THE slider 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 slider is shown THE slider SHALL draw itself for the new direction at once, without a motion of its own, keeping its values and its focus, each value indicator placed again by the new direction."},{"id":"SLD-26","text":"THE slider SHALL lay out a handle's value text in its value indicator 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 slider SHALL still place the indicator and align its lines by the layout direction, not by the text's own."},{"id":"SLD-27","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 slider 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 (every handle carries them) — 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 slider is invalid — except those the slider 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 slider SHALL take it off that element. WHEN the product sets an aria- attribute the slider owns THE slider SHALL report it in debug builds."},{"id":"SLD-28","text":"WHILE a value indicator is drawn THE slider SHALL draw it in the platform's overlay layer, not in the slider's own place among its neighbours, so that no ancestor that clips its content clips it and no neighbour, whatever its stacking order, covers it, placed against its handle as SLD-17 says and moved with the handle in the same frame (while it is dragged, while its value motion runs, and while the page or an ancestor scrolls or is resized). WHILE its handle is not drawn (the slider, or an ancestor, hidden or not shown) or is scrolled out of sight THE slider SHALL NOT draw the value indicator; WHEN the handle is drawn again THE slider SHALL draw it again, above any overlay that was opened while it was not drawn (a dialog or a popover the slider stands in)."},{"id":"SLD-29","text":"WHILE a value indicator is drawn and an ancestor of the slider changes only how the slider is drawn, not how it is laid out (a transform that scales it), THE slider SHALL draw the indicator at the overlay layer's own size, not scaled by that ancestor, and SHALL place it against the handle where the handle is drawn: centred on the handle along the axis, comp.slider.value-indicator.offset beyond the handle's drawn outer edge, as SLD-17 says. WHILE the content around the slider is magnified, so that it is laid out larger (the platform's content magnification, such as a page or text zoom), THE slider SHALL draw the indicator magnified with it and its offset from the handle magnified alike, centred on the handle and shifted along the axis only as far as it must to stay inside the window."},{"id":"SLD-30","text":"WHILE valueIndicator is always and orientation is horizontal THE slider SHALL say to a Field that frames it how far its value indicator reaches above the slider's own box, so that the field keeps that room above it (FLD-34): half of comp.slider.handle.height.small for size small (and so on), plus comp.slider.value-indicator.offset, plus the indicator's height (comp.slider.value-indicator.container.height, or its one line of text in comp.slider.value-indicator.label.typescale where that is taller), less half the slider's thickness (SLD-7), and 0 where that is below 0. It SHALL say so WHILE it is disabled too, when no indicator is drawn (SLD-20), so that disabling the slider moves nothing around it. WHILE valueIndicator is none or active, or orientation is vertical, it SHALL say nothing. Standing alone THE slider SHALL keep its own size (SLD-7) whatever valueIndicator is: the room above it is its layout's, as the fixtures' stage leaves it."},{"id":"SLD-31","text":"WHEN the control height (dial.control.height) is N THE horizontal slider SHALL be N thick wherever its handle is no taller: each handle's container SHALL be drawn at comp.slider.container.size, which is sys.control.height.medium, and the slider SHALL be as thick as the larger of it and the handle's height (SLD-7), so that a slider stands as tall as the Buttons and fields beside it, at every size. The track (comp.slider.track.thickness.small, and so on for each size) and the handle (comp.slider.handle.height.small, and so on, and comp.slider.standard.handle.width) are the body of the slider and the sign of its value, sized for the eye and no control on a row: they SHALL keep their own sizes at every control height, the track still inset from each end by half of the container (SLD-7). The hit area SHALL still meet the minimum target (SLD-7)."}],"accessibility":{"role":"slider","keyboard":[{"keys":"Tab / Shift+Tab","action":"Moves focus to the handle, and for a range to the start handle, then the end handle."},{"keys":"Right Arrow / Up Arrow","action":"Increases the focused handle's value by one keyboard step (Right Arrow decreases it in a right-to-left horizontal slider)."},{"keys":"Left Arrow / Down Arrow","action":"Decreases the value by one keyboard step (Left Arrow increases it in a right-to-left horizontal slider)."},{"keys":"Page Up / Page Down","action":"Increases or decreases the value by ten keyboard steps."},{"keys":"Home / End","action":"Sets the value to the lowest or highest the handle can take."}],"labeling":"label names the slider, or a range's end handle; startLabel names a range's start handle. Neither is drawn: a visible label is the product's text beside the slider, in the same words. valueText replaces the spoken number (\"40 %\", \"3 stars\"). The tracks, stop dots, state layer and value indicator are decorative.","minimumTarget":true,"notes":["Each handle is one slider for assistive technology: role slider with aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext and aria-orientation on the web; the adjustable trait with an accessibility value on Apple platforms (a vertical swipe increments and decrements); a range with a current value and the set-progress action on Android; a slider semantics node with increase and decrease actions in Flutter; role adjustable with accessibilityValue and increment and decrement actions in React Native.","A range is two sliders, the WAI-ARIA multi-thumb pattern: each handle's lowest and highest value is bounded by the other handle, so a screen reader announces the range each can still reach.","The value is read from the handle and the active track. The handle must be told apart from each thing it lies on — the track, the active track and the surface behind the slider — by its outline (comp.slider.standard.handle-outline.color, where comp.slider.handle-outline.width is above 0) or by its fill (comp.slider.standard.handle.color), at 3:1 or more; comp.slider.standard.active-track.color must stay at least 3:1 against the track and the surface. In the default system the outline carries it against the track and the surface, and the fill against the active track. A faint track keeps its end visible by the stop dot at the end of the travel (SLD-9).","The handle may be drawn smaller than the minimum target (20 against 36 in the default system): the whole slider takes the press across its axis at the target's size (SLD-7), so every handle keeps its whole target, a range's two handles included, and no target is reported larger than the area that takes the press.","Text size does not change the slider: it has no text of its own except the value indicator, which grows with the text.","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."]},"tokens":"comp.slider","fixtures":[{"id":"continuous","props":{"value":40,"label":"Volume"}},{"id":"continuous-on-container-highest","props":{"value":40,"label":"Volume"},"surface":"surface-container-highest"},{"id":"discrete-stops","props":{"value":30,"step":10,"stops":true,"label":"Brightness"}},{"id":"range","props":{"range":true,"startValue":20,"value":60,"label":"Maximum price","startLabel":"Minimum price"}},{"id":"centered","props":{"min":-50,"max":50,"origin":0,"value":20,"label":"Balance"}},{"id":"value-indicator","props":{"value":40,"valueIndicator":"always","label":"Volume"}},{"id":"medium","props":{"size":"medium","value":40,"label":"Volume"}},{"id":"large","props":{"size":"large","value":40,"label":"Volume"}},{"id":"vertical","props":{"orientation":"vertical","value":60,"label":"Volume"}},{"id":"disabled","props":{"value":40,"disabled":true,"label":"Volume"}},{"id":"disabled-stops","props":{"value":60,"step":20,"stops":true,"disabled":true,"label":"Brightness"}}],"platforms":{"web":{"status":"lagging","name":"tanrei-slider","props":{"size":"size","orientation":"orientation","value":"value","startValue":"startValue","range":"range","min":"min","max":"max","step":"step","origin":"origin","stops":"stops","valueIndicator":"valueIndicator","disabled":"disabled","label":"label","startLabel":"startLabel","valueText":"valueText","startValueText":"startValueText"},"events":{"input":"input","change":"change"},"parts":{"track":"track","active-track":"active-track","handle":"handle","handle-outline":"handle@outline","container":"container","stop-indicator":"stop-indicator","value-indicator":"value-indicator","focus-ring":"handle@focus-ring"},"notes":"Attributes are kebab-case (`start-value`, `value-indicator`, `start-label`, `value-text`, `start-value-text`). Each handle is an element with `role=\"slider\"` and its aria-value attributes, `aria-orientation` and `aria-label` in the shadow root (not `ElementInternals`, which axe cannot see). Not `<input type=\"range\">`: it has one handle, no gap, no stop dots, and its parts cannot be styled alike in every engine. The handle's outline is its box's border with `box-sizing: border-box`, over its background (the fill), so it keeps its width and height (SLD-24); while track.gap is 0 the two pieces of the tracks meet at the handle's center under it (SLD-8). Form-associated: it takes `name` and submits value (a range submits startValue, then value, under the same name), and it sets its own `value` and `startValue` before firing `input` and `change`, as a native control does. Snapshot harness: the stages of SLD-7. The product's function for a value's words (SLD-18) is `formatValue`, a property and never an attribute: `((value: number) => string) | null`, null by default; it is asked for each handle at every change of a value and when the property itself is set."},"swiftui":{"status":"lagging","name":"TanreiSlider","props":{"size":"size","orientation":"orientation","value":"value","startValue":"value","range":"value","min":"bounds","max":"bounds","step":"step","origin":"origin","stops":"showsStops","valueIndicator":"valueIndicator","disabled":"disabled","label":"label","startLabel":"startLabel","valueText":"valueText","startValueText":"startValueText"},"events":{"input":"value","change":"onCommit"},"notes":"`Slider` idiom: `TanreiSlider(_ label:, value: Binding<Double>, in bounds: ClosedRange<Double> = 0...100, step:)`; a range is the initializer whose `value` is a `Binding<ClosedRange<Double>>` (lower bound startValue, upper bound value) and which also takes `startLabel`. Every change writes the binding, which is the input event. `onCommit` is Tanrei's own parameter, called when a change is finished (SLD-2, SLD-3, SLD-4), as the text field's is; SwiftUI's `onEditingChanged` reports a drag's start and end, not a change. SwiftUI's own `Slider` is not used: its track and handle cannot take the tokens. Each handle is an adjustable element (`.accessibilityAdjustableAction`, `.accessibilityValue`); `disabled` follows `.disabled(_:)`. Lagging: ships an earlier form of the slider — a solid round handle, tracks cut at the handle's edge (square there while track.gap is 0), one stop-dot size for every size. It does not draw yet: the handle's fill and outline (SLD-24), the tracks meeting under the handle while track.gap is 0 (SLD-8), the stop dot per size (SLD-9) and the value indicator's placement over a round handle (SLD-17). Not built on this platform yet: the product's function for a value's words (SLD-18) is a `format: ((Double) -> String)? = nil` parameter. Not built on this platform yet: the stage color a fixture's surface names, which the continuous-on-container-highest fixture draws on."},"compose":{"status":"lagging","name":"TanreiSlider","props":{"size":"size","orientation":"orientation","value":"value","startValue":"value","range":"value","min":"valueRange","max":"valueRange","step":"step","origin":"origin","stops":"showStops","valueIndicator":"valueIndicator","disabled":"enabled","label":"contentDescription","startLabel":"startContentDescription","valueText":"stateDescription","startValueText":"startStateDescription"},"events":{"input":"onValueChange","change":"onValueChangeFinished"},"notes":"Compose idiom (as `Slider` and `RangeSlider`): `TanreiSlider(value: Float, onValueChange, modifier, enabled, valueRange: ClosedFloatingPointRange<Float> = 0f..100f, step: Float = 0f, onValueChangeFinished, …)`; a range is the overload whose `value` is a `ClosedFloatingPointRange<Float>` (start and end) and which also takes `startContentDescription` and `startStateDescription`. `step` is a size, not Material's count of `steps`. State hoisting: the caller moves `value` from `onValueChange`. `enabled` is the inverse flag. Each handle has Compose's slider semantics (`progressBarRangeInfo` and `setProgress`), with `stateDescription` as its value text. Lagging: ships an earlier form of the slider — a solid round handle with its shape clipped out of the tracks, one stop-dot size for every size. It does not draw yet: the handle's fill and outline (SLD-24), the tracks meeting under the handle while track.gap is 0 (SLD-8), the stop dot per size (SLD-9) and the value indicator's placement over a round handle (SLD-17). Not built on this platform yet: the product's function for a value's words (SLD-18) is a `format: ((Float) -> String)? = null` parameter. Not built on this platform yet: the stage color a fixture's surface names, which the continuous-on-container-highest fixture draws on."},"flutter":{"status":"lagging","name":"TanreiSlider","props":{"size":"size","orientation":"orientation","value":"value","startValue":"start","range":"range","min":"min","max":"max","step":"step","origin":"origin","stops":"showStops","valueIndicator":"valueIndicator","disabled":"onChanged","label":"semanticLabel","startLabel":"startSemanticLabel","valueText":"semanticValue","startValueText":"startSemanticValue"},"events":{"input":"onChanged","change":"onChangeEnd"},"notes":"Flutter idiom (as `Slider`): `TanreiSlider(value:, onChanged:, onChangeEnd:, min: 0, max: 100, step: 0, …)`, with `step` a size rather than Material's `divisions`; a range is the named constructor `TanreiSlider.range(start:, end:, onChanged: (start, end) {…}, …)`, since Flutter's `RangeValues` belongs to Material. A null `onChanged` disables it. `orientation` is Flutter's `Axis`. Each handle is a `Semantics(slider: true, value:, increasedValue:, decreasedValue:, onIncrease:, onDecrease:)` node; the widgets library draws everything else. Lagging: ships an earlier form of the slider — a solid round handle, tracks cut at the handle's edge and rounded there (a notch between the round end and the handle), one stop-dot size for every size. It does not draw yet: the handle's fill and outline (SLD-24), the tracks meeting under the handle while track.gap is 0 (SLD-8), the stop dot per size (SLD-9) and the value indicator's placement over a round handle (SLD-17). Not built on this platform yet: the product's function for a value's words (SLD-18) is `format: String Function(double)?`. Not built on this platform yet: the stage color a fixture's surface names, which the continuous-on-container-highest fixture draws on."},"react-native":{"status":"lagging","name":"Slider","props":{"size":"size","orientation":"orientation","value":"value","startValue":"startValue","range":"range","min":"minimumValue","max":"maximumValue","step":"step","origin":"origin","stops":"stops","valueIndicator":"valueIndicator","disabled":"disabled","label":"accessibilityLabel","startLabel":"startAccessibilityLabel","valueText":"valueText","startValueText":"startValueText"},"events":{"input":"onValueChange","change":"onSlidingComplete"},"notes":"Controlled, in the community slider's idiom (`value`, `minimumValue`, `maximumValue`, `step`, `onValueChange`, `onSlidingComplete`), without depending on it: React Native has no slider in its core. A range adds `range` and `startValue`, and both callbacks receive `(value, startValue)`. Each handle is a view with `accessibilityRole=\"adjustable\"`, `accessibilityValue` (`{ min, max, now, text }`) and the increment and decrement accessibility actions; the drag is a `the touch responder props (onStartShouldSetResponder and the rest)` that yields to an enclosing `ScrollView` as SLD-2 says. The arrow keys work where a hardware keyboard is attached, as the tabs row's do. Lagging: ships an earlier form of the slider — a solid round handle, tracks cut at the handle's edge and rounded there (a notch between the round end and the handle), one stop-dot size for every size. It does not draw yet: the handle's fill and outline (SLD-24), the tracks meeting under the handle while track.gap is 0 (SLD-8), the stop dot per size (SLD-9) and the value indicator's placement over a round handle (SLD-17). Not built on this platform yet: the product's function for a value's words (SLD-18) is a `formatValue` prop, `(value: number) => string`. Not built on this platform yet: the stage color a fixture's surface names, which the continuous-on-container-highest fixture draws on."}}}