viewkitjs 0.22.0 → 0.24.0

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 (231) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/package.json +2 -4
  3. package/views/dist/contract.d.ts +6 -289
  4. package/views/dist/contract.js +1 -96
  5. package/views/dist/controls/atoms.d.ts +8 -0
  6. package/views/dist/controls/atoms.js +8 -0
  7. package/views/dist/controls/button/tokens.d.ts +351 -0
  8. package/views/dist/controls/button/tokens.js +90 -0
  9. package/views/dist/controls/checkbox/checkbox.d.ts +28 -0
  10. package/views/dist/controls/checkbox/checkbox.js +15 -0
  11. package/views/dist/controls/checkbox/looks.d.ts +3 -0
  12. package/views/dist/controls/checkbox/looks.js +8 -0
  13. package/views/dist/controls/checkbox/map-checkbox.d.ts +2 -0
  14. package/views/dist/controls/checkbox/map-checkbox.js +5 -0
  15. package/views/dist/controls/checkbox/tokens.d.ts +131 -0
  16. package/views/dist/controls/checkbox/tokens.js +35 -0
  17. package/views/dist/controls/checkbox.css +133 -0
  18. package/views/dist/controls/controls.d.ts +12 -3
  19. package/views/dist/controls/controls.js +13 -1
  20. package/views/dist/controls/field/field.d.ts +94 -0
  21. package/views/dist/controls/field/field.js +46 -0
  22. package/views/dist/controls/field/looks.d.ts +13 -0
  23. package/views/dist/controls/field/looks.js +22 -0
  24. package/views/dist/controls/field/tokens.d.ts +75 -0
  25. package/views/dist/controls/field/tokens.js +21 -0
  26. package/views/dist/controls/field.css +98 -0
  27. package/views/dist/controls/glass-button/glass-button.d.ts +40 -0
  28. package/views/dist/controls/glass-button/glass-button.js +16 -0
  29. package/views/dist/controls/glass-button/looks.d.ts +4 -0
  30. package/views/dist/controls/glass-button/looks.js +4 -0
  31. package/views/dist/controls/glass-button/tokens.d.ts +127 -0
  32. package/views/dist/controls/glass-button/tokens.js +34 -0
  33. package/views/dist/controls/glass-button.css +111 -0
  34. package/views/dist/controls/grip/grip.d.ts +14 -0
  35. package/views/dist/controls/grip/grip.js +9 -0
  36. package/views/dist/controls/index.d.ts +32 -0
  37. package/views/dist/controls/index.js +31 -0
  38. package/views/dist/controls/inline-input/inline-input.d.ts +14 -0
  39. package/views/dist/controls/inline-input/inline-input.js +10 -0
  40. package/views/dist/controls/inline-input/looks.d.ts +3 -0
  41. package/views/dist/controls/inline-input/looks.js +16 -0
  42. package/views/dist/controls/inline-input/tokens.d.ts +79 -0
  43. package/views/dist/controls/inline-input/tokens.js +22 -0
  44. package/views/dist/controls/inline-input.css +78 -0
  45. package/views/dist/controls/input/autofill.d.ts +25 -0
  46. package/views/dist/controls/input/autofill.js +17 -0
  47. package/views/dist/controls/input/input.d.ts +119 -0
  48. package/views/dist/controls/input/input.js +127 -0
  49. package/views/dist/controls/input/looks.d.ts +41 -0
  50. package/views/dist/controls/input/looks.js +48 -0
  51. package/views/dist/controls/input/map-input.d.ts +2 -0
  52. package/views/dist/controls/input/map-input.js +5 -0
  53. package/views/dist/controls/input/tokens.d.ts +171 -0
  54. package/views/dist/controls/input/tokens.js +45 -0
  55. package/views/dist/controls/input.css +381 -0
  56. package/views/dist/controls/internal/anchor.d.ts +16 -0
  57. package/views/dist/controls/internal/anchor.js +8 -0
  58. package/views/dist/controls/internal/close-reason.d.ts +5 -0
  59. package/views/dist/controls/internal/close-reason.js +2 -0
  60. package/views/dist/controls/internal/hold.d.ts +25 -0
  61. package/views/dist/controls/internal/hold.js +81 -0
  62. package/views/dist/controls/internal/icons.d.ts +8 -0
  63. package/views/dist/controls/internal/icons.js +65 -0
  64. package/views/dist/controls/internal/popup-host.d.ts +7 -0
  65. package/views/dist/controls/internal/popup-host.js +10 -0
  66. package/views/dist/controls/internal/read-token.d.ts +6 -0
  67. package/views/dist/controls/internal/read-token.js +11 -0
  68. package/views/dist/controls/internal/reorder.d.ts +44 -0
  69. package/views/dist/controls/internal/reorder.js +83 -0
  70. package/views/dist/controls/internal/scroll.d.ts +11 -0
  71. package/views/dist/controls/internal/scroll.js +14 -0
  72. package/views/dist/controls/kbd/kbd.d.ts +13 -0
  73. package/views/dist/controls/kbd/kbd.js +10 -0
  74. package/views/dist/controls/kbd/looks.d.ts +4 -0
  75. package/views/dist/controls/kbd/looks.js +4 -0
  76. package/views/dist/controls/kbd/tokens.d.ts +47 -0
  77. package/views/dist/controls/kbd/tokens.js +14 -0
  78. package/views/dist/controls/kbd.css +46 -0
  79. package/views/dist/controls/list/tokens.d.ts +139 -0
  80. package/views/dist/controls/list/tokens.js +37 -0
  81. package/views/dist/controls/list.css +188 -0
  82. package/views/dist/controls/menu-list/keys.d.ts +7 -0
  83. package/views/dist/controls/menu-list/keys.js +29 -0
  84. package/views/dist/controls/menu-list/looks.d.ts +4 -0
  85. package/views/dist/controls/menu-list/looks.js +20 -0
  86. package/views/dist/controls/menu-list/menu-list.d.ts +196 -0
  87. package/views/dist/controls/menu-list/menu-list.js +346 -0
  88. package/views/dist/controls/menu-list/tokens.d.ts +187 -0
  89. package/views/dist/controls/menu-list/tokens.js +49 -0
  90. package/views/dist/controls/menu-list.css +259 -0
  91. package/views/dist/controls/number-field/number-field.d.ts +48 -0
  92. package/views/dist/controls/number-field/number-field.js +34 -0
  93. package/views/dist/controls/number-field/tokens.d.ts +47 -0
  94. package/views/dist/controls/number-field/tokens.js +14 -0
  95. package/views/dist/controls/number-field.css +54 -0
  96. package/views/dist/controls/option/atom-tag.d.ts +6 -0
  97. package/views/dist/controls/option/atom-tag.js +6 -0
  98. package/views/dist/controls/option/looks.d.ts +7 -0
  99. package/views/dist/controls/option/looks.js +21 -0
  100. package/views/dist/controls/option/option.d.ts +35 -0
  101. package/views/dist/controls/option/option.js +32 -0
  102. package/views/dist/controls/option/tokens.d.ts +223 -0
  103. package/views/dist/controls/option/tokens.js +58 -0
  104. package/views/dist/controls/option.css +92 -0
  105. package/views/dist/controls/phone-header/header-bar.d.ts +18 -0
  106. package/views/dist/controls/phone-header/header-bar.js +9 -0
  107. package/views/dist/controls/phone-header/looks.d.ts +4 -0
  108. package/views/dist/controls/phone-header/looks.js +4 -0
  109. package/views/dist/controls/phone-header/soft-edge.d.ts +5 -0
  110. package/views/dist/controls/phone-header/soft-edge.js +3 -0
  111. package/views/dist/controls/phone-header/tokens.d.ts +59 -0
  112. package/views/dist/controls/phone-header/tokens.js +17 -0
  113. package/views/dist/controls/phone-header.css +51 -0
  114. package/views/dist/controls/popover/looks.d.ts +4 -0
  115. package/views/dist/controls/popover/looks.js +10 -0
  116. package/views/dist/controls/popover/map-popover.d.ts +3 -0
  117. package/views/dist/controls/popover/map-popover.js +5 -0
  118. package/views/dist/controls/popover/popover.d.ts +74 -0
  119. package/views/dist/controls/popover/popover.js +106 -0
  120. package/views/dist/controls/popover/tokens.d.ts +83 -0
  121. package/views/dist/controls/popover/tokens.js +23 -0
  122. package/views/dist/controls/popover.css +94 -0
  123. package/views/dist/controls/scrollbar/scrollbar.d.ts +10 -0
  124. package/views/dist/controls/scrollbar/scrollbar.js +143 -0
  125. package/views/dist/controls/scrollbar/tokens.d.ts +43 -0
  126. package/views/dist/controls/scrollbar/tokens.js +13 -0
  127. package/views/dist/controls/scrollbar.css +47 -0
  128. package/views/dist/controls/sheet/bottom-sheet.d.ts +98 -0
  129. package/views/dist/controls/sheet/bottom-sheet.js +375 -0
  130. package/views/dist/controls/sheet/forms.d.ts +38 -0
  131. package/views/dist/controls/sheet/forms.js +26 -0
  132. package/views/dist/controls/sheet/looks.d.ts +4 -0
  133. package/views/dist/controls/sheet/looks.js +10 -0
  134. package/views/dist/controls/sheet/map-sheet.d.ts +3 -0
  135. package/views/dist/controls/sheet/map-sheet.js +12 -0
  136. package/views/dist/controls/sheet/spring.d.ts +22 -0
  137. package/views/dist/controls/sheet/spring.js +48 -0
  138. package/views/dist/controls/sheet/tokens.d.ts +143 -0
  139. package/views/dist/controls/sheet/tokens.js +38 -0
  140. package/views/dist/controls/sheet.css +223 -0
  141. package/views/dist/controls/spinner/tokens.d.ts +55 -0
  142. package/views/dist/controls/spinner/tokens.js +16 -0
  143. package/views/dist/controls/status/atom-status-badge.d.ts +10 -0
  144. package/views/dist/controls/status/atom-status-badge.js +13 -0
  145. package/views/dist/controls/status/looks.d.ts +4 -0
  146. package/views/dist/controls/status/looks.js +22 -0
  147. package/views/dist/controls/status/marks.d.ts +26 -0
  148. package/views/dist/controls/status/marks.js +73 -0
  149. package/views/dist/controls/status/status.d.ts +43 -0
  150. package/views/dist/controls/status/status.js +26 -0
  151. package/views/dist/controls/status/tokens.d.ts +407 -0
  152. package/views/dist/controls/status/tokens.js +104 -0
  153. package/views/dist/controls/status.css +164 -0
  154. package/views/dist/controls/switch/looks.d.ts +4 -0
  155. package/views/dist/controls/switch/looks.js +19 -0
  156. package/views/dist/controls/switch/switch.d.ts +15 -0
  157. package/views/dist/controls/switch/switch.js +11 -0
  158. package/views/dist/controls/switch/tokens.d.ts +139 -0
  159. package/views/dist/controls/switch/tokens.js +37 -0
  160. package/views/dist/controls/switch.css +169 -0
  161. package/views/dist/controls/tag/atom-cell-more.d.ts +3 -0
  162. package/views/dist/controls/tag/atom-cell-more.js +5 -0
  163. package/views/dist/controls/tag/looks.d.ts +4 -0
  164. package/views/dist/controls/tag/looks.js +4 -0
  165. package/views/dist/controls/tag/tag.d.ts +25 -0
  166. package/views/dist/controls/tag/tag.js +19 -0
  167. package/views/dist/controls/tag/tokens.d.ts +63 -0
  168. package/views/dist/controls/tag/tokens.js +18 -0
  169. package/views/dist/controls/tag.css +81 -0
  170. package/views/dist/controls/toggle/looks.d.ts +3 -0
  171. package/views/dist/controls/toggle/looks.js +12 -0
  172. package/views/dist/controls/toggle/toggle.d.ts +47 -0
  173. package/views/dist/controls/toggle/toggle.js +23 -0
  174. package/views/dist/controls/toggle/tokens.d.ts +55 -0
  175. package/views/dist/controls/toggle/tokens.js +16 -0
  176. package/views/dist/controls/toggle.css +67 -0
  177. package/views/dist/controls/tokens.d.ts +16 -0
  178. package/views/dist/controls/tokens.js +49 -0
  179. package/views/dist/controls/tooltip/looks.d.ts +4 -0
  180. package/views/dist/controls/tooltip/looks.js +4 -0
  181. package/views/dist/controls/tooltip/map-tooltip.d.ts +3 -0
  182. package/views/dist/controls/tooltip/map-tooltip.js +5 -0
  183. package/views/dist/controls/tooltip/tokens.d.ts +75 -0
  184. package/views/dist/controls/tooltip/tokens.js +21 -0
  185. package/views/dist/controls/tooltip/tooltip.d.ts +54 -0
  186. package/views/dist/controls/tooltip/tooltip.js +78 -0
  187. package/views/dist/controls/tooltip.css +94 -0
  188. package/views/dist/grid/chrome/GridTable.js +21 -19
  189. package/views/dist/grid/chrome/grid-caret-keys.d.ts +7 -0
  190. package/views/dist/grid/chrome/grid-caret-keys.js +22 -0
  191. package/views/dist/grid/chrome/grid-row-window.js +3 -0
  192. package/views/dist/grid/chrome/useGridColumnLayout.d.ts +4 -1
  193. package/views/dist/grid/chrome/useGridColumnLayout.js +17 -2
  194. package/views/dist/grid/chrome/useGridFittedWidths.d.ts +32 -0
  195. package/views/dist/grid/chrome/useGridFittedWidths.js +59 -0
  196. package/views/dist/grid/chrome/useGridKeyboard.js +3 -0
  197. package/views/dist/looks/index.d.ts +16 -0
  198. package/views/dist/looks/index.js +16 -0
  199. package/views/dist/looks/looks.d.ts +10 -9
  200. package/views/dist/looks/pieces.js +38 -2
  201. package/views/dist/model/column-schema.d.ts +3 -2
  202. package/views/dist/model/column-state.d.ts +11 -1
  203. package/views/dist/model/column-state.js +8 -2
  204. package/views/dist/styles.css +2362 -7
  205. package/views/dist/styles.unlayered.css +2362 -7
  206. package/views/docs/contract.md +5 -97
  207. package/views/docs/controls/button.md +93 -0
  208. package/views/docs/controls/checkbox.md +38 -0
  209. package/views/docs/controls/field.md +26 -0
  210. package/views/docs/controls/glass-button.md +37 -0
  211. package/views/docs/controls/inline-input.md +27 -0
  212. package/views/docs/controls/input.md +48 -0
  213. package/views/docs/controls/kbd.md +17 -0
  214. package/views/docs/controls/list.md +40 -0
  215. package/views/docs/controls/menu-list.md +52 -0
  216. package/views/docs/controls/number-field.md +17 -0
  217. package/views/docs/controls/option.md +61 -0
  218. package/views/docs/controls/phone-header.md +20 -0
  219. package/views/docs/controls/popover.md +26 -0
  220. package/views/docs/controls/scrollbar.md +16 -0
  221. package/views/docs/controls/sheet.md +41 -0
  222. package/views/docs/controls/spinner.md +19 -0
  223. package/views/docs/controls/status.md +107 -0
  224. package/views/docs/controls/switch.md +40 -0
  225. package/views/docs/controls/tag.md +21 -0
  226. package/views/docs/controls/toggle.md +19 -0
  227. package/views/docs/controls/tooltip.md +24 -0
  228. package/views/docs/getting-started.md +1 -1
  229. package/views/docs/reference/controls.md +213 -2
  230. package/views/docs/reference/looks.md +70 -3
  231. package/views/docs/reference/views.md +7 -2
@@ -0,0 +1,20 @@
1
+ # The phone header bar's tokens
2
+
3
+ Every name the phone header bar's stylesheet (`phone-header.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-header` | colour | `surface-header` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
8
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
9
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
10
+ | `--vk-blur-xs` | size | `blur-xs` | `4px` |
11
+ | `--vk-blur-sm` | size | `blur-sm` | `8px` |
12
+ | `--vk-blur-md` | size | `blur-md` | `12px` |
13
+ | `--vk-spacing` | size | `spacing` | `4px` |
14
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
15
+ | `--vk-line-height-base` | size | `text-base--line-height` | `1.5` |
16
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
17
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
18
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
19
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
20
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
@@ -0,0 +1,26 @@
1
+ # The Popover's tokens
2
+
3
+ Every name the Popover's stylesheet (`popover.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
9
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
10
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
11
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
12
+ | `--vk-shadow-lg` | shadow | `shadow-lg` | `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` · dark `0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)` |
13
+ | `--vk-shadow-md` | shadow | `shadow-md` | `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` · dark `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` |
14
+ | `--vk-shadow-xl` | shadow | `shadow-xl` | `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` · dark `0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)` |
15
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
16
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
17
+ | `--vk-spacing` | size | `spacing` | `4px` |
18
+ | `--vk-border-width` | size | `border-width` | `1px` |
19
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
20
+ | `--vk-line-height-sm` | size | `text-sm--line-height` | `1.4286` |
21
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
22
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
23
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
24
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
25
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
26
+ | `--vk-ease-in` | motion | `ease-in` | `cubic-bezier(0.4, 0, 1, 1)` |
@@ -0,0 +1,16 @@
1
+ # The Scrollbar's tokens
2
+
3
+ Every name the Scrollbar's stylesheet (`scrollbar.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
8
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
9
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
10
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
11
+ | `--vk-spacing` | size | `spacing` | `4px` |
12
+ | `--vk-scrollbar-size` | size | `scrollbar-size` | `6px` |
13
+ | `--vk-scrollbar-inset` | size | `scrollbar-inset` | `2px` |
14
+ | `--vk-scrollbar-thumb` | colour | `scrollbar-thumb` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
15
+ | `--vk-scrollbar-thumb-hovered` | colour | `scrollbar-thumb-hovered` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
16
+ | `--vk-scrollbar-hold` | motion | `scrollbar-hold` | `1000ms` |
@@ -0,0 +1,41 @@
1
+ # The Sheet's tokens
2
+
3
+ Every name the bottom Sheet's stylesheet (`sheet.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-backdrop-sheet` | colour | `backdrop-sheet` | `hsl(214 30% 10% / 0.3)` · dark `hsl(0 0% 0% / 0.45)` |
8
+ | `--vk-backdrop-sheet-light` | colour | `backdrop-sheet-light` | `hsl(214 30% 10% / 0.15)` · dark `hsl(0 0% 0% / 0.22)` |
9
+ | `--vk-backdrop-stacked` | colour | `backdrop-stacked` | `hsl(214 30% 10% / 0.2)` · dark `hsl(0 0% 0% / 0.3)` |
10
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
11
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
12
+ | `--vk-sheet-handle` | colour | `sheet-handle` | `hsl(210 1% 72%)` · dark `hsl(210 2% 26.5%)` |
13
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
14
+ | `--vk-shadow-2xl` | shadow | `shadow-2xl` | `0 25px 50px -12px rgb(0 0 0 / 0.25)` · dark `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
15
+ | `--vk-radius-2xl` | size | `radius-2xl` | `20px` |
16
+ | `--vk-spacing` | size | `spacing` | `4px` |
17
+ | `--vk-spring-exit` | size | `spring-exit` | `120px` |
18
+ | `--vk-spring-past` | size | `spring-past` | `12px` |
19
+ | `--vk-radius-lg` | size | `radius-lg` | `10px` |
20
+ | `--vk-radius-xl` | size | `radius-xl` | `15px` |
21
+ | `--vk-radius-3xl` | size | `radius-3xl` | `26.67px` |
22
+ | `--vk-radius-4xl` | size | `radius-4xl` | `33.33px` |
23
+ | `--vk-radius-5xl` | size | `radius-5xl` | `40px` |
24
+ | `--vk-layer-drawer` | size | `layer-drawer` | `40` |
25
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
26
+ | `--vk-border-width` | size | `border-width` | `1px` |
27
+ | `--vk-spring-smooth` | motion | `spring-smooth` | `500ms 1` |
28
+ | `--vk-ease-spring-smooth` | motion | `ease-spring-smooth` | `linear(0, 0.0191, 0.0667, 0.1313, 0.2048, 0.2816, 0.3577, 0.4308, 0.4991, 0.562, 0.6189, 0.67, 0.7154, 0.7554, 0.7905, 0.821, 0.8475, 0.8704, 0.89, 0.9069, 0.9213, 0.9336, 0.9441, 0.9529, 0.9605, 0.9668, 0.9722, 0.9767, 0.9805, 0.9837, 0.9864, 0.9887, 0.9905, 0.9921, 0.9934, 0.9945, 0.9955, 0.9962, 0.9969, 0.9974, 0.9978, 0.9982, 0.9985, 0.9988, 0.999, 0.9992, 0.9993, 0.9994, 1)` |
29
+ | `--vk-duration-spring-smooth` | motion | `duration-spring-smooth` | `800ms` |
30
+ | `--vk-spring-quick` | motion | `spring-quick` | `380ms 1` |
31
+ | `--vk-ease-spring-quick` | motion | `ease-spring-quick` | `linear(0, 0.0309, 0.1037, 0.1968, 0.2964, 0.394, 0.4851, 0.5671, 0.6393, 0.7016, 0.7547, 0.7994, 0.8367, 0.8677, 0.8931, 0.914, 0.9309, 0.9447, 0.9558, 0.9648, 0.972, 0.9778, 0.9824, 0.986, 0.989, 0.9913, 0.9931, 0.9946, 0.9957, 0.9967, 0.9974, 0.9979, 0.9984, 0.9987, 0.999, 0.9992, 0.9994, 1)` |
32
+ | `--vk-duration-spring-quick` | motion | `duration-spring-quick` | `608ms` |
33
+ | `--vk-spring-lively` | motion | `spring-lively` | `450ms 0.8` |
34
+ | `--vk-ease-spring-lively` | motion | `ease-spring-lively` | `linear(0, 0.0239, 0.0843, 0.1672, 0.2617, 0.3601, 0.4568, 0.5478, 0.6309, 0.7048, 0.7689, 0.8236, 0.8692, 0.9065, 0.9364, 0.9599, 0.9779, 0.9913, 1.0009, 1.0075, 1.0117, 1.0141, 1.0151, 1.0151, 1.0144, 1.0133, 1.0119, 1.0105, 1.009, 1.0075, 1.0062, 1.005, 1.004, 1.0031, 1.0023, 1.0017, 1.0012, 1.0008, 1)` |
35
+ | `--vk-duration-spring-lively` | motion | `duration-spring-lively` | `633ms` |
36
+ | `--vk-sheet-press-scale` | motion | `sheet-press-scale` | `1.005` |
37
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
38
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
39
+ | `--vk-push-scale` | motion | `push-scale` | `0.94` |
40
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
41
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
@@ -0,0 +1,19 @@
1
+ # The Spinner's tokens
2
+
3
+ Every name the Spinner's and the loading bar's stylesheet (`spinner.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
8
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
9
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
10
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
11
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
12
+ | `--vk-ease-in-out` | motion | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` |
13
+ | `--vk-loading-dim` | motion | `loading-dim` | `0.55` |
14
+ | `--vk-progress-slide` | motion | `progress-slide` | `1400ms` |
15
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
16
+ | `--vk-spacing` | size | `spacing` | `4px` |
17
+ | `--vk-spinner-breath` | motion | `spinner-breath` | `1400ms` |
18
+ | `--vk-spinner-turn` | motion | `spinner-turn` | `2000ms` |
19
+ | `--vk-spinner-turn-reduced` | motion | `spinner-turn-reduced` | `3000ms` |
@@ -0,0 +1,107 @@
1
+ # The Status's tokens
2
+
3
+ Every name the Status's stylesheet (`status.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-amber-700` | colour | `amber-700` | `hsl(25 92% 41%)` |
8
+ | `--vk-blue-700` | colour | `blue-700` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
9
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
10
+ | `--vk-border-accent` | colour | `border-brand` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
11
+ | `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
12
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
13
+ | `--vk-border-info` | colour | `border-information` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
14
+ | `--vk-border-success` | colour | `border-success` | `hsl(149 43% 44.5%)` · dark `hsl(153 64% 32%)` |
15
+ | `--vk-border-warning` | colour | `border-warning` | `hsl(20 63% 57.5%)` · dark `hsl(22 74% 36%)` |
16
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
17
+ | `--vk-brand-100` | colour | `brand-100` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
18
+ | `--vk-brand-200` | colour | `brand-200` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
19
+ | `--vk-brand-400` | colour | `brand-400` | `hsl(218 97% 82%)` · dark `hsl(219 55% 29%)` |
20
+ | `--vk-brand-500` | colour | `brand-500` | `hsl(218 94% 74.5%)` · dark `hsl(219 61% 36.5%)` |
21
+ | `--vk-brand-600` | colour | `brand-600` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
22
+ | `--vk-brand-700` | colour | `brand-700` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
23
+ | `--vk-brand-800` | colour | `brand-800` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
24
+ | `--vk-brand-1000` | colour | `brand-1000` | `hsl(219 72% 29%)` · dark `hsl(218 100% 81%)` |
25
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
26
+ | `--vk-brand-subtlest` | colour | `background-brand-subtlest` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
27
+ | `--vk-danger` | colour | `text-danger` | `hsl(0 81% 58%)` |
28
+ | `--vk-danger-bold` | colour | `background-danger-bold` | `hsl(0 81% 58%)` |
29
+ | `--vk-danger-subtler` | colour | `background-danger-subtler` | `hsl(6 100% 94%)` · dark `hsl(6 27% 14.5%)` |
30
+ | `--vk-danger-subtlest` | colour | `background-danger-subtlest` | `hsl(6 100% 98%)` · dark `hsl(6 13% 10%)` |
31
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
32
+ | `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
33
+ | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
34
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
35
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
36
+ | `--vk-fg-subtlest` | colour | `text-subtlest` | `hsl(210 1% 53.5%)` · dark `hsl(210 3% 53%)` |
37
+ | `--vk-fg-warning-inverse` | colour | `text-warning-inverse` | `hsl(210 6% 7%)` · dark `hsl(210 8% 5%)` |
38
+ | `--vk-green-700` | colour | `green-700` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
39
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
40
+ | `--vk-info` | colour | `text-information` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
41
+ | `--vk-info-bold` | colour | `background-information-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
42
+ | `--vk-info-subtler` | colour | `background-information-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
43
+ | `--vk-info-subtlest` | colour | `background-information-subtlest` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
44
+ | `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
45
+ | `--vk-label-amber-edge` | colour | `label-amber-edge` | `hsl(20 68% 77%)` · dark `hsl(20 54% 24%)` |
46
+ | `--vk-label-amber-fill` | colour | `label-amber-fill` | `hsl(19 72% 92.5%)` · dark `hsl(20 42% 18.5%)` |
47
+ | `--vk-label-amber-soft` | colour | `label-amber-soft` | `hsl(19 74% 97.5%)` · dark `hsl(19 13% 10%)` |
48
+ | `--vk-label-amber-strong` | colour | `label-amber-strong` | `hsl(23 85% 29%)` · dark `hsl(20 90% 76.5%)` |
49
+ | `--vk-label-blue` | colour | `label-blue` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
50
+ | `--vk-label-blue-edge` | colour | `label-blue-edge` | `hsl(218 97% 82%)` · dark `hsl(219 55% 29%)` |
51
+ | `--vk-label-blue-fill` | colour | `label-blue-fill` | `hsl(218 100% 94%)` · dark `hsl(219 46% 21%)` |
52
+ | `--vk-label-blue-soft` | colour | `label-blue-soft` | `hsl(218 100% 98%)` · dark `hsl(218 15% 10%)` |
53
+ | `--vk-label-blue-strong` | colour | `label-blue-strong` | `hsl(219 70% 38%)` · dark `hsl(218 100% 81%)` |
54
+ | `--vk-label-green` | colour | `label-green` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
55
+ | `--vk-label-green-edge` | colour | `label-green-edge` | `hsl(145 41% 71.5%)` · dark `hsl(148 37% 21%)` |
56
+ | `--vk-label-green-fill` | colour | `label-green-fill` | `hsl(143 41% 91%)` · dark `hsl(146 27% 16.5%)` |
57
+ | `--vk-label-green-soft` | colour | `label-green-soft` | `hsl(142 41% 97%)` · dark `hsl(143 7% 9.5%)` |
58
+ | `--vk-label-green-strong` | colour | `label-green-strong` | `hsl(156 87% 21%)` · dark `hsl(146 52% 73.5%)` |
59
+ | `--vk-label-pink` | colour | `label-pink` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
60
+ | `--vk-label-pink-edge` | colour | `label-pink-edge` | `hsl(343 88% 82.5%)` · dark `hsl(339 42% 28%)` |
61
+ | `--vk-label-pink-fill` | colour | `label-pink-fill` | `hsl(345 100% 94.5%)` · dark `hsl(341 34% 20.5%)` |
62
+ | `--vk-label-pink-soft` | colour | `label-pink-soft` | `hsl(345 100% 98%)` · dark `hsl(344 11% 10%)` |
63
+ | `--vk-label-pink-strong` | colour | `label-pink-strong` | `hsl(336 59% 37.5%)` · dark `hsl(342 100% 83.5%)` |
64
+ | `--vk-label-purple` | colour | `label-purple` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
65
+ | `--vk-label-purple-edge` | colour | `label-purple-edge` | `hsl(251 100% 86.5%)` · dark `hsl(256 41% 32.5%)` |
66
+ | `--vk-label-purple-fill` | colour | `label-purple-fill` | `hsl(249 100% 95.5%)` · dark `hsl(254 34% 23.5%)` |
67
+ | `--vk-label-purple-soft` | colour | `label-purple-soft` | `hsl(248 100% 98.5%)` · dark `hsl(249 11% 10.5%)` |
68
+ | `--vk-label-purple-strong` | colour | `label-purple-strong` | `hsl(259 53% 44.5%)` · dark `hsl(251 100% 86%)` |
69
+ | `--vk-label-red` | colour | `label-red` | `hsl(0 81% 58%)` |
70
+ | `--vk-label-red-edge` | colour | `label-red-edge` | `hsl(5 99% 82%)` · dark `hsl(4 45% 28%)` |
71
+ | `--vk-label-red-fill` | colour | `label-red-fill` | `hsl(6 100% 94%)` · dark `hsl(5 37% 20.5%)` |
72
+ | `--vk-label-red-soft` | colour | `label-red-soft` | `hsl(6 100% 98%)` · dark `hsl(6 13% 10%)` |
73
+ | `--vk-label-red-strong` | colour | `label-red-strong` | `hsl(0 59% 39%)` · dark `hsl(6 100% 83%)` |
74
+ | `--vk-label-teal` | colour | `label-teal` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
75
+ | `--vk-label-teal-edge` | colour | `label-teal-edge` | `hsl(196 52% 74.5%)` · dark `hsl(195 42% 22.5%)` |
76
+ | `--vk-label-teal-fill` | colour | `label-teal-fill` | `hsl(196 52% 91.5%)` · dark `hsl(196 32% 17.5%)` |
77
+ | `--vk-label-teal-soft` | colour | `label-teal-soft` | `hsl(196 52% 97%)` · dark `hsl(196 8% 9.5%)` |
78
+ | `--vk-label-teal-strong` | colour | `label-teal-strong` | `hsl(193 82% 26%)` · dark `hsl(196 67% 75.5%)` |
79
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
80
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
81
+ | `--vk-overlay` | colour | `surface-overlay` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
82
+ | `--vk-pink-700` | colour | `pink-700` | `hsl(335 73% 49.5%)` · dark `hsl(335 73% 57.5%)` |
83
+ | `--vk-purple-700` | colour | `purple-700` | `hsl(260 100% 64.5%)` · dark `hsl(260 100% 69%)` |
84
+ | `--vk-raised` | colour | `surface-raised` | `hsl(0 0% 100%)` · dark `hsl(226 10% 10%)` |
85
+ | `--vk-red-700` | colour | `red-700` | `hsl(0 81% 58%)` |
86
+ | `--vk-success` | colour | `text-success` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
87
+ | `--vk-success-bold` | colour | `background-success-bold` | `hsl(158 98% 26%)` · dark `hsl(158 98% 34%)` |
88
+ | `--vk-success-subtler` | colour | `background-success-subtler` | `hsl(143 41% 91%)` · dark `hsl(145 17% 12.5%)` |
89
+ | `--vk-success-subtlest` | colour | `background-success-subtlest` | `hsl(142 41% 97%)` · dark `hsl(143 7% 9.5%)` |
90
+ | `--vk-teal-700` | colour | `teal-700` | `hsl(192 87% 32%)` · dark `hsl(192 87% 40%)` |
91
+ | `--vk-warning` | colour | `text-warning` | `hsl(25 92% 41%)` |
92
+ | `--vk-warning-bold` | colour | `background-warning-bold` | `hsl(25 92% 41%)` |
93
+ | `--vk-warning-subtler` | colour | `background-warning-subtler` | `hsl(19 72% 92.5%)` · dark `hsl(20 29% 13.5%)` |
94
+ | `--vk-warning-subtlest` | colour | `background-warning-subtlest` | `hsl(19 74% 97.5%)` · dark `hsl(19 13% 10%)` |
95
+ | `--vk-border-width` | size | `border-width` | `1px` |
96
+ | `--vk-font-size-base` | size | `text-base` | `16px` |
97
+ | `--vk-font-size-sm` | size | `text-sm` | `14px` |
98
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
99
+ | `--vk-font-weight-bold` | size | `font-weight-bold` | `700` |
100
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
101
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
102
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
103
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
104
+ | `--vk-radius-sm` | size | `radius-sm` | `5px` |
105
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
106
+ | `--vk-spacing` | size | `spacing` | `4px` |
107
+ | `--vk-tracking-wide` | size | `tracking-wide` | `0.025em` |
@@ -0,0 +1,40 @@
1
+ # The Switch's tokens
2
+
3
+ Every name the Switch's stylesheet (`switch.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
8
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
9
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
10
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
11
+ | `--vk-border-input-hovered` | colour | `border-input-hovered` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
12
+ | `--vk-border-subtle` | colour | `border-subtle` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
13
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
14
+ | `--vk-brand-hovered` | colour | `background-brand-bold-hovered` | `hsl(219 70% 46.5%)` · dark `hsl(219 95% 64%)` |
15
+ | `--vk-brand-subtler` | colour | `background-brand-subtler` | `hsl(218 100% 94%)` · dark `hsl(218 32% 14.5%)` |
16
+ | `--vk-danger-bold` | colour | `background-danger-bold` | `hsl(0 81% 58%)` |
17
+ | `--vk-danger-bold-hovered` | colour | `background-danger-bold-hovered` | `hsl(0 59% 49%)` · dark `hsl(3 90% 66.5%)` |
18
+ | `--vk-fg-accent` | colour | `text-brand` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
19
+ | `--vk-fg-disabled` | colour | `text-disabled` | `hsl(210 1% 72%)` · dark `hsl(210 1% 37%)` |
20
+ | `--vk-fg-inverse` | colour | `text-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 95%)` |
21
+ | `--vk-fg-on-brand` | colour | `text-brand-inverse` | `hsl(0 0% 100%)` · dark `hsl(210 8% 5%)` |
22
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
23
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
24
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
25
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
26
+ | `--vk-shadow-md` | shadow | `shadow-md` | `0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)` |
27
+ | `--vk-shadow-sm` | shadow | `shadow-sm` | `0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)` |
28
+ | `--vk-shadow-xs` | shadow | `shadow-xs` | `0 1px 2px 0 rgb(0 0 0 / 0.05)` |
29
+ | `--vk-border-width` | size | `border-width` | `1px` |
30
+ | `--vk-focus-offset` | size | `focus-offset` | `2px` |
31
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
32
+ | `--vk-font-weight-semibold` | size | `font-weight-semibold` | `600` |
33
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
34
+ | `--vk-spacing` | size | `spacing` | `4px` |
35
+ | `--vk-duration-base` | motion | `duration-base` | `200ms` |
36
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
37
+ | `--vk-duration-slow` | motion | `duration-slow` | `300ms` |
38
+ | `--vk-ease-in-out` | motion | `ease-in-out` | `cubic-bezier(0.4, 0, 0.2, 1)` |
39
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
40
+ | `--vk-ease-spring` | motion | `ease-spring` | `cubic-bezier(0.34, 1.56, 0.64, 1)` |
@@ -0,0 +1,21 @@
1
+ # The Tag's tokens
2
+
3
+ Every name the Tag's stylesheet (`tag.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border-bold` | colour | `border-bold` | `hsl(210 1% 82%)` · dark `hsl(210 2% 26.5%)` |
8
+ | `--vk-border-brand` | colour | `border-focused` | `hsl(219 90% 65.5%)` · dark `hsl(219 66% 47%)` |
9
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
10
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
11
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
12
+ | `--vk-border-width` | size | `border-width` | `1px` |
13
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
14
+ | `--vk-focus-width` | size | `focus-width` | `2px` |
15
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
16
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
17
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
18
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
19
+ | `--vk-spacing` | size | `spacing` | `4px` |
20
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
21
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
@@ -0,0 +1,19 @@
1
+ # The Toggle's tokens
2
+
3
+ Every name `toggle.css` reads (beside the Button's `button.css`, which a toggle is drawn as), each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-border` | colour | `border` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
8
+ | `--vk-border-danger` | colour | `border-danger` | `hsl(3 87% 68%)` · dark `hsl(1 55% 46.5%)` |
9
+ | `--vk-border-input` | colour | `border-input` | `hsl(220 3% 86%)` · dark `hsl(220 4% 22%)` |
10
+ | `--vk-brand` | colour | `background-brand-bold` | `hsl(219 87% 54%)` · dark `hsl(219 87% 59.5%)` |
11
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
12
+ | `--vk-fg-subtle` | colour | `text-subtle` | `hsl(0 0% 35%)` · dark `hsl(258 4% 72%)` |
13
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
14
+ | `--vk-hovered` | colour | `surface-hovered` | `hsl(0 0% 96.5%)` · dark `hsl(210 4% 9.5%)` |
15
+ | `--vk-label-amber` | colour | `label-amber` | `hsl(25 92% 41%)` |
16
+ | `--vk-neutral` | colour | `background-neutral` | `hsl(0 0% 94%)` · dark `hsl(225 7% 11%)` |
17
+ | `--vk-neutral-hovered` | colour | `background-neutral-hovered` | `hsl(220 7% 90%)` · dark `hsl(225 7% 15%)` |
18
+ | `--vk-radius-full` | size | `radius-full` | `9999px` |
19
+ | `--vk-spacing` | size | `spacing` | `4px` |
@@ -0,0 +1,24 @@
1
+ # The Tooltip's tokens
2
+
3
+ Every name the Tooltip's stylesheet (`tooltip.css`) reads, each optional: the ready stylesheet declares it at the Outright look's value, and your app declares it to change it. Each stands for one Outright token, which an app on the Outright tokens declares it as. How the names are made, and the controls' other pages: [the controls' tokens](../contract.md#the-controls-tokens).
4
+
5
+ | name | kind | the Outright token | default |
6
+ | ---- | ---- | ------------------ | ------- |
7
+ | `--vk-fg` | colour | `text` | `hsl(210 6% 7%)` · dark `hsl(210 8% 95%)` |
8
+ | `--vk-ground` | colour | `surface` | `hsl(0 0% 100%)` · dark `hsl(210 6% 7%)` |
9
+ | `--vk-border-width` | size | `border-width` | `1px` |
10
+ | `--vk-corner-smoothing` | size | `corner-smoothing` | `0.7` |
11
+ | `--vk-duration-fast` | motion | `duration-fast` | `150ms` |
12
+ | `--vk-ease-out` | motion | `ease-out` | `cubic-bezier(0, 0, 0.2, 1)` |
13
+ | `--vk-font-size-2xs` | size | `text-2xs` | `10px` |
14
+ | `--vk-font-size-xs` | size | `text-xs` | `12px` |
15
+ | `--vk-line-height-xs` | size | `text-xs--line-height` | `1.3333` |
16
+ | `--vk-font-weight-medium` | size | `font-weight-medium` | `500` |
17
+ | `--vk-font-weight-normal` | size | `font-weight-normal` | `400` |
18
+ | `--vk-layer-popup` | size | `layer-popup` | `50` |
19
+ | `--vk-radius-md` | size | `radius-md` | `7.5px` |
20
+ | `--vk-radius-xs` | size | `radius-xs` | `2.5px` |
21
+ | `--vk-spacing` | size | `spacing` | `4px` |
22
+ | `--vk-tooltip-delay` | motion | `tooltip-delay` | `500ms` |
23
+ | `--vk-tooltip-warm` | motion | `tooltip-warm` | `300ms` |
24
+ | `--vk-toast-duration` | motion | `toast-duration` | `4000ms` |
@@ -68,7 +68,7 @@ const DEAL_BINDINGS = bindFields<Deal, typeof DEAL_FIELDS>(DEAL_FIELDS, {
68
68
 
69
69
  ## Make the columns
70
70
 
71
- A column is what the grid draws: a binding plus what only the grid knows, such as its `id` and its starting width in pixels. `columnFrom` derives the column's type, options, format and whether it can be edited from the field and the binding.
71
+ A column is what the grid draws: a binding plus what only the grid knows, such as its `id` and its starting width in pixels. Leave the width out and the grid starts the column as wide as the values it first draws and its header need, up to 320 px, read once the grid is laid out (a grid drawn hidden, in a tab or a step not yet shown, reads them when it shows); a width the person drags is kept over either. `columnFrom` derives the column's type, options, format and whether it can be edited from the field and the binding.
72
72
 
73
73
  ```tsx
74
74
  const columns = [
@@ -4,9 +4,13 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
4
4
 
5
5
  ## The defaults
6
6
 
7
- - `CONTROLS` — the components map's defaults, for each control an app leaves out: today `Button`. An app spreads it first and its own controls after, `components={{ ...CONTROLS, ...own }}`. Its `Button` draws ViewKit's buttons (`variant`, `size`) as the kit's Button's kinds and sizes, and stands a glyph handed before the words as the Button's icon.
7
+ - `CONTROLS` — the components map's defaults, for each control an app leaves out: each control below that fills a slot of the map. An app spreads it first and its own controls after, `components={{ ...CONTROLS, ...own }}`. Its `Button` draws ViewKit's buttons (`variant`, `size`) as the kit's Button's kinds and sizes, and stands a glyph handed before the words as the Button's icon.
8
8
  - `leadingGlyph` — `leadingGlyph(children, glyphs)`: a glyph before a button's words (an svg, or one of the app's icons in `glyphs`) as `{ icon, label }`; a glyph alone, or another component, stays `{ label }`.
9
9
 
10
+ <!-- One block per lane of control moves, each opened by its comment: a move adds its controls' sections inside its own block alone. -->
11
+
12
+ <!-- The actions: the Button, the Spinner -->
13
+
10
14
  ## The Button
11
15
 
12
16
  - `Button` — what a person presses to make something happen, on Base UI's button: `kind`, `size`, `shape`, `loading` (a spinner over the label, which keeps its width; a press does nothing), `icon` and `iconEnd`, and `look`, its own look. Drawn as a link (`render={<a href=… />}`, `nativeButton={false}`) it stays a link. An icon-only one needs an `aria-label`.
@@ -29,8 +33,215 @@ Import from `viewkitjs/views/controls` to draw ViewKit's default controls: the O
29
33
  - `LoadingBar` — a thin bar along the top of what is loading again, which stays where it is, dimmed and out of reach, until it is in.
30
34
  - `LoadingBarProps` — its props.
31
35
 
36
+ <!-- The popups: the Popover, the bottom Sheet, the Tooltip, and what they stand on -->
37
+
38
+ ## What the popups stand on
39
+
40
+ - `Scrollbar` — placed as the very next sibling of what scrolls (`<div class="body">…</div><Scrollbar />`): it keeps what scrolls to up and down only, and hides the browser's bar; `drawn` draws its own thin bar over the right edge while it scrolls, on a computer.
41
+ - `POPUP_HOST` — `data-popup-host`, the attribute that marks where a popup stands: a popup opened inside an element marked with it is put inside that element, so it wears the looks set round it; outside any, the page itself.
42
+ - `popupHostOf` — `popupHostOf(element)`: the nearest popup host round an element, or `undefined`.
43
+ - `Anchor` — where a popup opens from when nothing triggers it: an element, a ref to one, or a point on the page `{ x, y }`.
44
+
45
+ ## The Kbd
46
+
47
+ - `Kbd` — a key to press, drawn as a key: `keys` (one, or several pressed together, side by side), `then` (one after the other), `platform` (`windows` writes Ctrl, Shift and Alt for the Mac's symbols).
48
+ - `KbdProps` — its props.
49
+
50
+ ## The Tooltip
51
+
52
+ - `Tooltip` — the name of a button that shows only an icon, or why something can't be used (`reason`): on hover after its wait, at once on keyboard focus, and on a touch screen a reason on a tap on what's off. What it names is its one child, which takes a ref, with no element round it. `keys` adds a shortcut's keys after the words. Its wait is `--vk-tooltip-delay`, read off what it names (a look set round it reaches it), or `delay` in ms. What it names wears the class `o-tooltip-trigger`. `CONTROLS.Tooltip` draws ViewKit's tooltips with it; it doesn't read a tooltip's `align`, `delayMs` or `className` yet.
53
+ - `TooltipProps` — its props.
54
+ - `TooltipGroup` — tooltips side by side (a toolbar): once one has shown, the next shows at once for its warm time, `--vk-tooltip-warm` read off its first tooltip, or `warm` in ms.
55
+ - `TooltipGroupProps` — its props.
56
+ - `TooltipShown` — the tooltip standing open beside what it names, for a page that shows how it looks.
57
+ - `TOOLTIP_TIMING` — its times in ms where nothing declares them, the Outright look's: `delay`, `warm`, and `tap`, how long a tapped reason stays (`--vk-toast-duration`).
58
+
59
+ ## The Glass button
60
+
61
+ - `GlassButton` — a button made of glass, for a control that floats over a page: 44 round with one icon (`icon`), or a capsule holding a word, an icon and a word, a `count` or a `dot`; `kind` `primary` for what confirms, `danger` for what takes something away; `pressed` for one that is on or off; `size` `sm` (36) for an island on a computer; `render` draws it as a link. Never glass on glass.
62
+ - `GlassButtonProps` — its props: Base UI's button's, with those above.
63
+ - `GlassButtonGroup` — Glass buttons standing together: two apart, each with a lighter shadow, or on one piece of glass, the pill (`pair`, else the frame's `data-glass-button-pair`).
64
+ - `GlassButtonGroupProps` — its props.
65
+
66
+ ## The Popover
67
+
68
+ - `Popover` — what opens from what it belongs to on a computer: a shell that knows nothing of what it holds. It opens from its `trigger`, or from an `anchor` when it is set `open` from outside (an element, a ref to one, or a point on the page); it stands on its `side` and flips or shifts to stay on the screen; a press outside, Escape or focus leaving it closes it and gives focus back, and `onOutsidePress` or `onEscape` returning false keeps it open; it follows what opened it through a scroll and closes once that has scrolled out of the view that clips it. It says why it closed. `CONTROLS.Popover` draws ViewKit's popups with it, `panelData` and `onPanelClick` on its own element; it doesn't read a popup's `chrome` yet.
69
+ - `PopoverProps` — its props.
70
+ - `PopoverAnchor` — where it opens from when it has no trigger.
71
+ - `PopoverChangeDetails` — why it opened or closed, and the event that did it.
72
+ - `PopoverCloseReason` — the reasons, as the components map names them, but a drag.
73
+ - `PopoverTitle` — its title, which names it to a screen reader too.
74
+ - `PopoverDescription` — what it says under its title, quieter.
75
+ - `PopoverClose` — what closes it from inside (`render`, a Button).
76
+
77
+ ## The phone's header bar
78
+
79
+ - `HeaderBar` — the phone's one header row, on a page and in a sheet's head: a `left` place, the `title` (centred, or `titleAt` `left`), an optional `description` under it (drawn by `descriptionRender` when it must be the caller's element), and a `right` place, which is the Glass button group. It stands on the soft edge under Glass, the frame's `data-phone-header-surface` (Glass unless it says `flat`); `--hd-bar-room` says how much room stands over it.
80
+ - `HeaderBarProps` — its props.
81
+ - `SoftEdge` — what a floating head stands on, so what passes under it melts away with no line; what it stands in sets its height and, in `--soft-edge-ground`, its ground.
82
+
83
+ ## The bottom Sheet
84
+
85
+ - `Sheet` — what rises from the bottom of the phone, in a `form` (`full`, `floating`, `blend`, `edge`) and at `stops`, on Base UI's drawer: the drag, focus, Escape and the dim, and a settle on a spring that starts from the finger's speed. What it holds is poured in. `standing` keeps it in its `container`, a screen on a page. It says why it closed. `CONTROLS.Sheet` draws ViewKit's sheets with it, the editor's ✕ (or Back) and ✓ in its head; it doesn't read a sheet's `snap`, a title that isn't words, `description` or `className` yet.
86
+ - `SheetProps` — its props.
87
+ - `SheetChangeDetails` — why it opened or closed.
88
+ - `SheetForm` — `full`, `floating`, `blend` or `edge`.
89
+ - `SheetStop` — a height it rests at: a share of the window up to 1, px above it, or `mark`, measured under what it holds.
90
+ - `STOPS` — the stops a sheet may be given: `small`, `middle` and `full`.
91
+ - `SheetHead` — its head, the phone's header bar under its handle: Glass, its X or Back on the left, or Flat; or `left` and `right` of its own.
92
+ - `SheetHeadProps` — its props.
93
+ - `SheetBody` — what scrolls under its head; at a lower stop a drag raises the sheet instead.
94
+ - `SheetFoot` — its foot, at the screen's foot at every stop.
95
+ - `SheetStep` — one step of a sheet, which a row opens in its place.
96
+ - `SheetButton` — a button in its head: the Glass button under Glass, a quiet Button under Flat.
97
+ - `SheetClose` — a close that is a button of its own (a head's Cancel).
98
+ - `useSheetCloseAll` — closes every sheet open under this one and this one: a choice that finishes the job.
99
+
100
+ <!-- The boxes: the Input, the inline input, the Field, the Toggle, the number field, the Checkbox -->
101
+
102
+ ## The boxes
103
+
104
+ `CONTROLS` fills two slots of the map with them: its `Input` draws ViewKit's text boxes as the Input, bare unless ViewKit asks for its field, sized by its place, its digits lined up for a number's keyboard and autofill off; its `Checkbox` draws ViewKit's tick boxes as the Checkbox, handing on the press that changed it.
105
+
106
+ - `Input` — what a person types into, on Base UI's input: in its field (`chrome` `soft`: in the Soft look) unless `chrome` says `bare`, at `size` (`2xs` to `lg`, `md` 36 the default), `multiline` long text that may `grow` to `maxLines`, start at `minLines` or show `lines`, `numeric` digits, `autofill` on unless said, and `look`, its own look. `combobox` puts it as the box of a Base UI combobox's list.
107
+ - `InputProps` — its props.
108
+ - `InputComboboxProps` — its props as a combobox's box.
109
+ - `InputSize` — `2xs`, `xs`, `sm`, `md`, `lg`.
110
+ - `InputChrome` — how it stands: `field`, `soft`, `bare`.
111
+ - `InputGroup` — a field with something inside it beside the words, its Input the group's bare control; a press anywhere in it but a button puts the cursor in its Input.
112
+ - `InputGroupProps` — its props: `size`, `look`, `chrome`.
113
+ - `InputGroupAddon` — what sits beside the words (`side`: `start`, `end`, `top`, `bottom`), `flush` to stand a Button as the side's other parts do.
114
+ - `InputGroupAddonProps` — its props.
115
+ - `InputGroupButton` — a quiet Button inside the field, an icon-only square when it has no words.
116
+ - `InputGroupSegment` — a segment of a value typed in parts (a day, a month), a spinbutton; `on` draws it on the brand's tint.
117
+ - `InputGroupContext` — the group an Input stands in, for a box that frames its Input as the InputGroup does.
118
+ - `pressGroup` — `pressGroup(event)`: a press on a box holding an Input taken as the InputGroup takes it.
119
+ - `useAutofill` — a hook: `fill(false)` spreads what turns the browser's and the password managers' filling off on a box; `fill()` adds nothing.
120
+ - `offWord` — `offWord(navigator)`: the word that turns autofill off in a browser, `language` in Chromium and Firefox, `off` in WebKit.
121
+ - `autofillOff` — `autofillOff(word)`: what a box carries with its autofill off.
122
+ - `OFF_WORD` — `language`, the word Chromium and Firefox take as "fill nothing here".
123
+ - `InlineInput` — the box a value is typed into where it stands (a grid's cell, a list's row): the Input's bare control, its edge, corners and ground the inline input's options, autofill off unless said.
124
+ - `InlineInputProps` — its props.
125
+ - `InlineInputGroup` — an inline input with something beside the value in one row; its button is `xs`.
126
+ - `InlineInputGroupProps` — its props.
127
+ - `NumberField` — a number typed in, stepped or bounded, on Base UI's number field: the Input's own field with its steppers (or `steppers="arrows"`), `before` and `after` it, `align`, `scrub`; `chrome` `field`, `soft`, `inline` or `bare`.
128
+ - `NumberFieldProps` — its props.
129
+ - `Field` — a field: its `label`, its control, and under it its `note` or its `error` (several shown each once), `orientation`, `quietLabel` and its `form`, the computer's unless said: its place says the phone's where it draws a phone's form.
130
+ - `FieldProps` — its props.
131
+ - `FieldError` — one error, or several.
132
+ - `errorsOf` — `errorsOf(error)`: the errors to show, empty ones left out and the same words once.
133
+ - `ErrorWords` — one error as it is, several as a list.
134
+ - `FieldSet` — fields or choices that answer one question under their own `legend`, with their own note and error; `disabled` reaches every choice in it.
135
+ - `FieldSetProps` — its props.
136
+ - `FieldSeparator` — a line between fields, with a word on it.
137
+ - `FieldRows` — Field rows' card: fields as rows of one card on a phone, or each its own card; `look` its own, whole.
138
+ - `FieldRowsProps` — its props.
139
+ - `FieldRowsRow` — a row of Field rows: its label beside its control (`as`: `label`, `button`, `div`).
140
+ - `FieldRowsRowProps` — its props.
141
+ - `Toggle` — a button that stays on until pressed again, drawn as the Button (`kind` quiet, outline or pill); `iconOn` its filled icon while on, in its `tone`; `readOnly`.
142
+ - `ToggleProps` — its props.
143
+ - `ToggleGroup` — toggles that belong together, one on at a time unless `multiple`; `spacing` 0 joins them.
144
+ - `ToggleGroupProps` — its props.
145
+ - `Checkbox` — picks any number of things, or says yes to one: its `label` and `note` beside it, `row` in a list, `card` drawn as a card.
146
+ - `CheckboxProps` — its props.
147
+ - `CheckboxMark` — the box alone, for a row pressed as a whole.
148
+ - `CheckboxList` — checkboxes in rows in a bordered box, Base UI's checkbox group.
149
+ - `CheckboxListProps` — its props.
150
+
151
+ Their stylesheets are `input.css`, `inline-input.css`, `field.css`, `toggle.css`, `number-field.css` and `checkbox.css`; the Checkbox's words (`o-choice-*`) and the phone's larger press area are drawn by the app's own styles for now. Their phone rules hold below 640px, a window narrower than that, or what stands in a container named `o-phone` narrower than it; the window's copy stands down inside an element marked `data-computer-host` and inside it. Those three are the Outright Showcase's hooks, kept until the controls take their phone line from the app.
152
+
153
+
154
+ <!-- The rows: the Option, the Tag, the Status, the Switch, the menu list -->
155
+
156
+ ## The Option
157
+
158
+ - `Option` — the value of a select or multi-select field: the Tag's chip without its icon, in its own `colour` where a colour look draws one, `size` `md` or `lg` (a phone's row), an `icon` at its start and an `iconEnd`, a `count` ("+2"), a remove button by `onRemove`, and drawn as a link by `render` (never while editing).
159
+ - `OptionProps` — its props.
160
+ - `Options` — a field's values as a record or a list shows them: an Option each, in its colour from `colours`, the first `max` then a count; a dash for none.
161
+
162
+ ## The Tag
163
+
164
+ - `Tag` — a free word someone added to a record, in a plain edge with the tag icon in front: `size` `md` or `sm`, a `count` for the rest, and a remove button by `onRemove`.
165
+ - `TagProps` — its props.
166
+ - `TagCut` — a chip's cut, its first child, which draws its ground and edge under Corner smoothing's Smooth: the Tag's and the Option's.
167
+ - `TagRemove` — a chip's remove button, named "Remove" and its word: the Tag's and the Option's.
168
+
169
+ ## The Status
170
+
171
+ - `Status` — where a record stands on its path: a mark that says how far along, and the word. `place` (a deal's, a run's, a project's health's, or something published's), `quarters` for a step between, `size` `sm` to `xl`, its own `colour`, and for Along the path `step`, `steps`, `at`, `since` and `stale`. Every mark is in it; the frame's `data-status-*` picks one.
172
+ - `StatusProps` — its props.
173
+ - `StatusGlyph` — the mark alone, beside a step's name.
174
+ - `StatusPlace` — every place: `DealPlace`, `RunPlace`, `HealthPlace` and `PublishedPlace`, each a type of its own.
175
+ - `DealPlace` — `start`, `between`, `won`, `lost`, `risk`, `archived`.
176
+ - `RunPlace` — `queued`, `running`, `succeeded`, `failed`, `cancelled`, `skipped`.
177
+ - `HealthPlace` — `on-track`, `at-risk`, `off-track`, `no-update`.
178
+ - `PublishedPlace` — `draft`, `scheduled`, `live`, `paused`, `ended`.
179
+ - `StatusSize` — `sm`, `md` (the default), `lg`, `xl`.
180
+ - `MARKS` — the twelve marks a deal's place is drawn in, in order.
181
+ - `MarkId` — one of `MARKS`.
182
+ - `MarkDrawing` — what a mark draws, in a box 16 high.
183
+ - `markOf` — `markOf(mark, place, quarters?)`: what a mark draws for a place.
184
+ - `isDealPlace` — whether a place is on a deal's path.
185
+ - `stepOf` — `stepOf(place, quarters?)`: a place's step along a deal's path, 1 to 5.
186
+
187
+ ## The Switch
188
+
189
+ - `Switch` — turns a setting on or off, at once, on Base UI's switch: `size` `sm`, `md` or `lg` (on a phone `md` takes `lg`'s), `saving` (its thumb turns and a press does nothing), `locked` (a lock in its thumb) and its two `words`. Give it an `aria-label`, or a label round it.
190
+ - `SwitchProps` — its props: Base UI's switch's, with those above.
191
+
192
+ ## The atoms drawn with them
193
+
194
+ - `CONTROL_ATOMS` — the atoms drawn with the default controls, for an app that takes them: it spreads them over its own, `atoms={{ ...CONTROL_ATOMS, ...own }}`. Taking none keeps ViewKit's own atoms, which need no Base UI. The rows' are `Tag` (a select's value as the Option, in its colour), `StatusBadge` (a status as the Status at its place) and `CellMore` (the rest of a cell's values as the Tag's count).
195
+ - `colourOf` — `colourOf(color)`: a value's colour as ViewKit names it, as the Option's (`gray` is `grey`).
196
+ - `statusPlaceOf` — `statusPlaceOf(slot)`: where a status of a slot stands on the Status's path (`running` and `primary` are a step between).
197
+ - `quartersOf` — `quartersOf(steps, at)`: a step between at its quarters (1, 2 or 3) among the steps between, in their order.
198
+
199
+ ## The menu list
200
+
201
+ - `MenuList` — what you can do with something on a phone, as rows you press, poured into a Sheet: tiles if it has them, then its rows in sections (a separator, a group or a pick starts one), a Close row first by `onClose`, a tick drawn as the Switch or, by `ticks="eye"`, an eye, and rows with a `grip` moved by a hold, then a drag (`onMove`). It owns no way of opening or closing.
202
+ - `MenuListProps` — its props.
203
+ - `MenuListRows` — a menu's rows on a computer, every kind of entry, each level in with its own panel beside it, placed inside a Base UI Menu or ContextMenu popup; `host` is the popup host its levels open in.
204
+ - `MenuListShown` — the same rows standing still on a page: `open` shows a level's rows beside it, `on` a row as under the pointer.
205
+ - `MenuListPanelRows` — a menu's rows in a panel that is no menu (a pane, a popover): one tab stop, ↑ ↓ wrapping, Home, End and a typed letter, Enter and Space press, → presses a row one level in, which `onOpen` hands its holder; `ticks` `box`, `switch` or `eye`; rows with a `grip` moved by it, the pointer or ↑ ↓ on it.
206
+ - `MenuListPanelRowsProps` — its props.
207
+ - `MenuListRow` — a name and its value as one row standing alone, at the list's own height and inset.
208
+ - `MenuScroll` — what scrolls in a menu's panel: its rows alone, the Scrollbar over them.
209
+ - `MenuEntry` — a row of a menu: an action, a link, a tick, a choice or actions one level in, a pick under a heading, a group, a separator.
210
+ - `MenuChoice` — a choice: its value, its name, its mark and its `detail`.
211
+ - `MenuListEntry` — a menu's entry with what a row adds: a `note` under its name, an `end` on its right, a `grip`.
212
+ - `MenuListTile` — one of the few done most, as a tile.
213
+ - `tilesOf` — `tilesOf(entries, allRows?)`: the first four plain actions as tiles when there are three or more, the rest as rows.
214
+ - `menuListRowsOf` — what its rows stand on, as worn around an element.
215
+ - `menuListCloseOf` — whether a Close row stands over its rows, as worn around an element (never under Words).
216
+ - `sheetFormOf` — the sheet its rows want: `floating` under Plain and Words, `edge` otherwise.
217
+ - `useMenuListOption` — one of its options as worn around a frame, kept up to date as it changes.
218
+ - `useMenuListRows` — what its rows stand on, the same way.
219
+ - `rowFor` — `rowFor(key, at, count, off)`: the row ↑, ↓, Home or End goes to, past those that can't be used.
220
+ - `rowStarting` — `rowStarting(names, at, typed, off)`: the next row whose name starts with what was typed.
221
+
222
+ ## What the menu list stands on
223
+
224
+ - `Icon` — a Tabler icon by its name, at stroke 2 in the colour of its words, 15 unless `size` says; a name ending in `-filled` is drawn as a shape.
225
+ - `iconPaths` — an icon's paths, for a control that draws one of its parts itself.
226
+ - `Grip` — the Button a row is moved by, 20 × 24, its six dots faint, the grabbing hand; `label` names what it moves.
227
+ - `GRIP` — its six dots' paths.
228
+ - `GRIP_LOOK` — its own look.
229
+ - `useReorder` — `useReorder({ count, onMove, grip })`: a list's rows moved by their grips, by ↑ and ↓ or the pointer; it hands `gripProps(i)`, `lift(i)` and `dragging`.
230
+ - `useHoldDrag` — `useHoldDrag(root, gripProps, reads, on?)`: a phone's row moved by a hold, then a drag; `reads` reads a row's hold delay and swipe distance off it.
231
+ - `HoldDragProps` — what a held row carries.
232
+ - `HoldReads` — how a held row reads its hold delay, in ms, and how far a finger may move before the press is a swipe, in px.
233
+ - `moved` — `moved(list, from, to)`: a value moved from one place to another.
234
+ - `gapOf` — the gap after a row, on screen.
235
+ - `dragAt` — where a dragged row is, and the place it has passed half a row into.
236
+ - `ReorderDrag` — a drag.
237
+ - `RowEdges` — a row's top and bottom on screen.
238
+
239
+ <!-- The picker's: the Menu, the Select, the Avatar -->
240
+
241
+ <!-- The panels': the Pane, the toolbar button, the Radio, the Modal, the alert dialog, the Toast, the Collapsible, the Alert, the Notice -->
242
+
32
243
  ## The stylesheets
33
244
 
34
- The ready stylesheet (`viewkitjs/views/styles.css`) carries the controls, every token they read declared at the Outright look's value ([the controls' tokens](../contract.md#the-controls-tokens)). An app on the Outright tokens imports them one by one instead, in this order, and declares each token as its own: `viewkitjs/views/controls/smooth.css` (the smooth corner every control's outline stands on), `viewkitjs/views/controls/button.css`, `viewkitjs/views/controls/spinner.css`. Their options and looks are on [`viewkitjs/views/looks`](looks.md).
245
+ The ready stylesheet (`viewkitjs/views/styles.css`) carries the controls, every token they read declared at the Outright look's value ([the controls' tokens](../contract.md#the-controls-tokens)). An app on the Outright tokens imports them one by one instead, and declares each token as its own: `viewkitjs/views/controls/smooth.css` first (the smooth corner every control's outline stands on), then each control's own, `viewkitjs/views/controls/<piece>.css` (the Button's `button.css`, the Spinner's `spinner.css`); each control's names are on its page under `docs/controls/`. Their options and looks are on [`viewkitjs/views/looks`](looks.md).
35
246
 
36
247
  The class names (`o-button`, `o-spinner` and the rest) and the selectors other pieces use to style a Button they hold stay as the Outright kit named them until those pieces move into ViewKit; they are not public.