@tanrei/web 0.0.0-stage → 0.1.0-next.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 (781) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +58 -0
  3. package/README.md +9743 -2
  4. package/custom-elements.json +86072 -0
  5. package/dist/THIRD_PARTY_LICENSES.md +136 -0
  6. package/dist/accordion.css +812 -0
  7. package/dist/app-shell.css +493 -0
  8. package/dist/avatar.css +80 -0
  9. package/dist/breadcrumbs.css +511 -0
  10. package/dist/callout.css +65 -0
  11. package/dist/code.css +595 -0
  12. package/dist/components/accordion/accordion.d.ts +197 -0
  13. package/dist/components/accordion/accordion.js +763 -0
  14. package/dist/components/accordion/accordion.js.map +1 -0
  15. package/dist/components/app-bar/app-bar.d.ts +107 -0
  16. package/dist/components/app-bar/app-bar.js +295 -0
  17. package/dist/components/app-bar/app-bar.js.map +1 -0
  18. package/dist/components/app-bar/app-bar.styles.d.ts +12 -0
  19. package/dist/components/app-bar/app-bar.styles.js +223 -0
  20. package/dist/components/app-bar/app-bar.styles.js.map +1 -0
  21. package/dist/components/app-shell/app-shell.d.ts +220 -0
  22. package/dist/components/app-shell/app-shell.js +677 -0
  23. package/dist/components/app-shell/app-shell.js.map +1 -0
  24. package/dist/components/avatar/avatar.d.ts +162 -0
  25. package/dist/components/avatar/avatar.js +390 -0
  26. package/dist/components/avatar/avatar.js.map +1 -0
  27. package/dist/components/avatar/avatar.styles.d.ts +9 -0
  28. package/dist/components/avatar/avatar.styles.js +258 -0
  29. package/dist/components/avatar/avatar.styles.js.map +1 -0
  30. package/dist/components/badge/badge.d.ts +59 -0
  31. package/dist/components/badge/badge.js +176 -0
  32. package/dist/components/badge/badge.js.map +1 -0
  33. package/dist/components/badge/badge.styles.d.ts +1 -0
  34. package/dist/components/badge/badge.styles.js +106 -0
  35. package/dist/components/badge/badge.styles.js.map +1 -0
  36. package/dist/components/bottom-sheet/bottom-sheet.d.ts +207 -0
  37. package/dist/components/bottom-sheet/bottom-sheet.js +724 -0
  38. package/dist/components/bottom-sheet/bottom-sheet.js.map +1 -0
  39. package/dist/components/bottom-sheet/bottom-sheet.styles.d.ts +1 -0
  40. package/dist/components/bottom-sheet/bottom-sheet.styles.js +393 -0
  41. package/dist/components/bottom-sheet/bottom-sheet.styles.js.map +1 -0
  42. package/dist/components/breadcrumbs/breadcrumbs.d.ts +176 -0
  43. package/dist/components/breadcrumbs/breadcrumbs.js +638 -0
  44. package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
  45. package/dist/components/breadcrumbs/breadcrumbs.styles.d.ts +1 -0
  46. package/dist/components/breadcrumbs/breadcrumbs.styles.js +225 -0
  47. package/dist/components/breadcrumbs/breadcrumbs.styles.js.map +1 -0
  48. package/dist/components/button/button.d.ts +280 -0
  49. package/dist/components/button/button.js +530 -0
  50. package/dist/components/button/button.js.map +1 -0
  51. package/dist/components/button/button.styles.d.ts +20 -0
  52. package/dist/components/button/button.styles.js +328 -0
  53. package/dist/components/button/button.styles.js.map +1 -0
  54. package/dist/components/button-group/button-group.d.ts +124 -0
  55. package/dist/components/button-group/button-group.js +287 -0
  56. package/dist/components/button-group/button-group.js.map +1 -0
  57. package/dist/components/button-group/button-group.styles.d.ts +1 -0
  58. package/dist/components/button-group/button-group.styles.js +220 -0
  59. package/dist/components/button-group/button-group.styles.js.map +1 -0
  60. package/dist/components/button-with-menu/button-with-menu.d.ts +224 -0
  61. package/dist/components/button-with-menu/button-with-menu.js +635 -0
  62. package/dist/components/button-with-menu/button-with-menu.js.map +1 -0
  63. package/dist/components/button-with-menu/button-with-menu.styles.d.ts +15 -0
  64. package/dist/components/button-with-menu/button-with-menu.styles.js +418 -0
  65. package/dist/components/button-with-menu/button-with-menu.styles.js.map +1 -0
  66. package/dist/components/calendar/calendar.d.ts +380 -0
  67. package/dist/components/calendar/calendar.js +1619 -0
  68. package/dist/components/calendar/calendar.js.map +1 -0
  69. package/dist/components/calendar/calendar.styles.d.ts +11 -0
  70. package/dist/components/calendar/calendar.styles.js +412 -0
  71. package/dist/components/calendar/calendar.styles.js.map +1 -0
  72. package/dist/components/callout/callout.d.ts +157 -0
  73. package/dist/components/callout/callout.js +436 -0
  74. package/dist/components/callout/callout.js.map +1 -0
  75. package/dist/components/callout/callout.styles.d.ts +13 -0
  76. package/dist/components/callout/callout.styles.js +383 -0
  77. package/dist/components/callout/callout.styles.js.map +1 -0
  78. package/dist/components/card/card.d.ts +108 -0
  79. package/dist/components/card/card.js +235 -0
  80. package/dist/components/card/card.js.map +1 -0
  81. package/dist/components/card/card.styles.d.ts +9 -0
  82. package/dist/components/card/card.styles.js +170 -0
  83. package/dist/components/card/card.styles.js.map +1 -0
  84. package/dist/components/carousel/carousel-geometry.d.ts +178 -0
  85. package/dist/components/carousel/carousel-geometry.js +356 -0
  86. package/dist/components/carousel/carousel-geometry.js.map +1 -0
  87. package/dist/components/carousel/carousel.d.ts +401 -0
  88. package/dist/components/carousel/carousel.js +1352 -0
  89. package/dist/components/carousel/carousel.js.map +1 -0
  90. package/dist/components/carousel/carousel.styles.d.ts +4 -0
  91. package/dist/components/carousel/carousel.styles.js +475 -0
  92. package/dist/components/carousel/carousel.styles.js.map +1 -0
  93. package/dist/components/chat-composer/chat-composer.d.ts +482 -0
  94. package/dist/components/chat-composer/chat-composer.js +1374 -0
  95. package/dist/components/chat-composer/chat-composer.js.map +1 -0
  96. package/dist/components/chat-composer/chat-composer.styles.d.ts +9 -0
  97. package/dist/components/chat-composer/chat-composer.styles.js +308 -0
  98. package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
  99. package/dist/components/checkbox/checkbox.d.ts +135 -0
  100. package/dist/components/checkbox/checkbox.js +296 -0
  101. package/dist/components/checkbox/checkbox.js.map +1 -0
  102. package/dist/components/checkbox/checkbox.styles.d.ts +13 -0
  103. package/dist/components/checkbox/checkbox.styles.js +226 -0
  104. package/dist/components/checkbox/checkbox.styles.js.map +1 -0
  105. package/dist/components/checkbox-group/checkbox-group.d.ts +199 -0
  106. package/dist/components/checkbox-group/checkbox-group.js +500 -0
  107. package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
  108. package/dist/components/chip/chip.d.ts +176 -0
  109. package/dist/components/chip/chip.js +376 -0
  110. package/dist/components/chip/chip.js.map +1 -0
  111. package/dist/components/chip/chip.styles.d.ts +10 -0
  112. package/dist/components/chip/chip.styles.js +465 -0
  113. package/dist/components/chip/chip.styles.js.map +1 -0
  114. package/dist/components/chip-field/chip-field.d.ts +315 -0
  115. package/dist/components/chip-field/chip-field.js +887 -0
  116. package/dist/components/chip-field/chip-field.js.map +1 -0
  117. package/dist/components/code-block/code-block.before.d.ts +2 -0
  118. package/dist/components/code-block/code-block.before.js +193 -0
  119. package/dist/components/code-block/code-block.before.js.map +1 -0
  120. package/dist/components/code-block/code-block.d.ts +268 -0
  121. package/dist/components/code-block/code-block.js +1009 -0
  122. package/dist/components/code-block/code-block.js.map +1 -0
  123. package/dist/components/code-block/code-block.light.d.ts +50 -0
  124. package/dist/components/code-block/code-block.light.js +287 -0
  125. package/dist/components/code-block/code-block.light.js.map +1 -0
  126. package/dist/components/code-block/code-block.lines.d.ts +49 -0
  127. package/dist/components/code-block/code-block.lines.js +75 -0
  128. package/dist/components/code-block/code-block.lines.js.map +1 -0
  129. package/dist/components/code-block/code-block.styles.d.ts +8 -0
  130. package/dist/components/code-block/code-block.styles.js +212 -0
  131. package/dist/components/code-block/code-block.styles.js.map +1 -0
  132. package/dist/components/color-field/color-field.d.ts +120 -0
  133. package/dist/components/color-field/color-field.js +182 -0
  134. package/dist/components/color-field/color-field.js.map +1 -0
  135. package/dist/components/color-input/color-input.d.ts +302 -0
  136. package/dist/components/color-input/color-input.js +748 -0
  137. package/dist/components/color-input/color-input.js.map +1 -0
  138. package/dist/components/color-input/color-input.styles.d.ts +22 -0
  139. package/dist/components/color-input/color-input.styles.js +373 -0
  140. package/dist/components/color-input/color-input.styles.js.map +1 -0
  141. package/dist/components/color-input/color-text.d.ts +48 -0
  142. package/dist/components/color-input/color-text.js +77 -0
  143. package/dist/components/color-input/color-text.js.map +1 -0
  144. package/dist/components/combobox/combobox.d.ts +387 -0
  145. package/dist/components/combobox/combobox.js +1108 -0
  146. package/dist/components/combobox/combobox.js.map +1 -0
  147. package/dist/components/combobox/combobox.styles.d.ts +26 -0
  148. package/dist/components/combobox/combobox.styles.js +497 -0
  149. package/dist/components/combobox/combobox.styles.js.map +1 -0
  150. package/dist/components/combobox-field/combobox-field.d.ts +159 -0
  151. package/dist/components/combobox-field/combobox-field.js +280 -0
  152. package/dist/components/combobox-field/combobox-field.js.map +1 -0
  153. package/dist/components/copy-button/copy-button.d.ts +112 -0
  154. package/dist/components/copy-button/copy-button.js +237 -0
  155. package/dist/components/copy-button/copy-button.js.map +1 -0
  156. package/dist/components/copy-button/copy-button.styles.d.ts +1 -0
  157. package/dist/components/copy-button/copy-button.styles.js +62 -0
  158. package/dist/components/copy-button/copy-button.styles.js.map +1 -0
  159. package/dist/components/date-time-picker/date-time-picker.d.ts +603 -0
  160. package/dist/components/date-time-picker/date-time-picker.js +2537 -0
  161. package/dist/components/date-time-picker/date-time-picker.js.map +1 -0
  162. package/dist/components/date-time-picker/date-time-picker.styles.d.ts +1 -0
  163. package/dist/components/date-time-picker/date-time-picker.styles.js +842 -0
  164. package/dist/components/date-time-picker/date-time-picker.styles.js.map +1 -0
  165. package/dist/components/description-list/description-list.d.ts +133 -0
  166. package/dist/components/description-list/description-list.js +395 -0
  167. package/dist/components/description-list/description-list.js.map +1 -0
  168. package/dist/components/dialog/dialog.d.ts +140 -0
  169. package/dist/components/dialog/dialog.js +440 -0
  170. package/dist/components/dialog/dialog.js.map +1 -0
  171. package/dist/components/dialog/dialog.styles.d.ts +1 -0
  172. package/dist/components/dialog/dialog.styles.js +306 -0
  173. package/dist/components/dialog/dialog.styles.js.map +1 -0
  174. package/dist/components/divider/divider.d.ts +112 -0
  175. package/dist/components/divider/divider.js +331 -0
  176. package/dist/components/divider/divider.js.map +1 -0
  177. package/dist/components/divider/divider.styles.d.ts +6 -0
  178. package/dist/components/divider/divider.styles.js +183 -0
  179. package/dist/components/divider/divider.styles.js.map +1 -0
  180. package/dist/components/embedded-text-input/embedded-text-input.d.ts +246 -0
  181. package/dist/components/embedded-text-input/embedded-text-input.js +673 -0
  182. package/dist/components/embedded-text-input/embedded-text-input.js.map +1 -0
  183. package/dist/components/embedded-text-input/embedded-text-input.styles.d.ts +1 -0
  184. package/dist/components/embedded-text-input/embedded-text-input.styles.js +204 -0
  185. package/dist/components/embedded-text-input/embedded-text-input.styles.js.map +1 -0
  186. package/dist/components/empty-state/empty-state.d.ts +132 -0
  187. package/dist/components/empty-state/empty-state.js +333 -0
  188. package/dist/components/empty-state/empty-state.js.map +1 -0
  189. package/dist/components/empty-state/empty-state.styles.d.ts +11 -0
  190. package/dist/components/empty-state/empty-state.styles.js +218 -0
  191. package/dist/components/empty-state/empty-state.styles.js.map +1 -0
  192. package/dist/components/fab-menu/fab-menu.d.ts +240 -0
  193. package/dist/components/fab-menu/fab-menu.js +605 -0
  194. package/dist/components/fab-menu/fab-menu.js.map +1 -0
  195. package/dist/components/fab-menu/fab-menu.styles.d.ts +21 -0
  196. package/dist/components/fab-menu/fab-menu.styles.js +427 -0
  197. package/dist/components/fab-menu/fab-menu.styles.js.map +1 -0
  198. package/dist/components/field/field.d.ts +165 -0
  199. package/dist/components/field/field.js +399 -0
  200. package/dist/components/field/field.js.map +1 -0
  201. package/dist/components/field/field.styles.d.ts +2 -0
  202. package/dist/components/field/field.styles.js +177 -0
  203. package/dist/components/field/field.styles.js.map +1 -0
  204. package/dist/components/field-group/field-group.d.ts +122 -0
  205. package/dist/components/field-group/field-group.js +246 -0
  206. package/dist/components/field-group/field-group.js.map +1 -0
  207. package/dist/components/field-group/field-group.styles.d.ts +7 -0
  208. package/dist/components/field-group/field-group.styles.js +28 -0
  209. package/dist/components/field-group/field-group.styles.js.map +1 -0
  210. package/dist/components/figure/figure.d.ts +152 -0
  211. package/dist/components/figure/figure.js +435 -0
  212. package/dist/components/figure/figure.js.map +1 -0
  213. package/dist/components/file-item/file-item.d.ts +232 -0
  214. package/dist/components/file-item/file-item.js +665 -0
  215. package/dist/components/file-item/file-item.js.map +1 -0
  216. package/dist/components/file-item/file-item.styles.d.ts +2 -0
  217. package/dist/components/file-item/file-item.styles.js +582 -0
  218. package/dist/components/file-item/file-item.styles.js.map +1 -0
  219. package/dist/components/file-picker/file-picker.d.ts +221 -0
  220. package/dist/components/file-picker/file-picker.js +588 -0
  221. package/dist/components/file-picker/file-picker.js.map +1 -0
  222. package/dist/components/file-picker/file-picker.styles.d.ts +2 -0
  223. package/dist/components/file-picker/file-picker.styles.js +303 -0
  224. package/dist/components/file-picker/file-picker.styles.js.map +1 -0
  225. package/dist/components/file-upload/file-upload.d.ts +353 -0
  226. package/dist/components/file-upload/file-upload.js +939 -0
  227. package/dist/components/file-upload/file-upload.js.map +1 -0
  228. package/dist/components/file-upload/file-upload.styles.d.ts +1 -0
  229. package/dist/components/file-upload/file-upload.styles.js +91 -0
  230. package/dist/components/file-upload/file-upload.styles.js.map +1 -0
  231. package/dist/components/image-preview/image-preview.d.ts +336 -0
  232. package/dist/components/image-preview/image-preview.js +1510 -0
  233. package/dist/components/image-preview/image-preview.js.map +1 -0
  234. package/dist/components/image-preview/image-preview.styles.d.ts +1 -0
  235. package/dist/components/image-preview/image-preview.styles.js +418 -0
  236. package/dist/components/image-preview/image-preview.styles.js.map +1 -0
  237. package/dist/components/keyboard-shortcut/keyboard-shortcut.d.ts +94 -0
  238. package/dist/components/keyboard-shortcut/keyboard-shortcut.js +285 -0
  239. package/dist/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -0
  240. package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.d.ts +11 -0
  241. package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js +155 -0
  242. package/dist/components/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -0
  243. package/dist/components/link-card/link-card.d.ts +156 -0
  244. package/dist/components/link-card/link-card.js +713 -0
  245. package/dist/components/link-card/link-card.js.map +1 -0
  246. package/dist/components/list/list.d.ts +430 -0
  247. package/dist/components/list/list.js +1230 -0
  248. package/dist/components/list/list.js.map +1 -0
  249. package/dist/components/list/list.styles.d.ts +3 -0
  250. package/dist/components/list/list.styles.js +334 -0
  251. package/dist/components/list/list.styles.js.map +1 -0
  252. package/dist/components/loading-indicator/loading-indicator.d.ts +83 -0
  253. package/dist/components/loading-indicator/loading-indicator.js +195 -0
  254. package/dist/components/loading-indicator/loading-indicator.js.map +1 -0
  255. package/dist/components/loading-indicator/loading-indicator.styles.d.ts +6 -0
  256. package/dist/components/loading-indicator/loading-indicator.styles.js +124 -0
  257. package/dist/components/loading-indicator/loading-indicator.styles.js.map +1 -0
  258. package/dist/components/main-action-button/main-action-button.d.ts +95 -0
  259. package/dist/components/main-action-button/main-action-button.js +202 -0
  260. package/dist/components/main-action-button/main-action-button.js.map +1 -0
  261. package/dist/components/main-action-button/main-action-button.styles.d.ts +10 -0
  262. package/dist/components/main-action-button/main-action-button.styles.js +285 -0
  263. package/dist/components/main-action-button/main-action-button.styles.js.map +1 -0
  264. package/dist/components/menu/menu.d.ts +813 -0
  265. package/dist/components/menu/menu.js +2061 -0
  266. package/dist/components/menu/menu.js.map +1 -0
  267. package/dist/components/menu/menu.styles.d.ts +18 -0
  268. package/dist/components/menu/menu.styles.js +587 -0
  269. package/dist/components/menu/menu.styles.js.map +1 -0
  270. package/dist/components/menubar/menubar.d.ts +477 -0
  271. package/dist/components/menubar/menubar.js +1677 -0
  272. package/dist/components/menubar/menubar.js.map +1 -0
  273. package/dist/components/menubar/menubar.styles.d.ts +43 -0
  274. package/dist/components/menubar/menubar.styles.js +379 -0
  275. package/dist/components/menubar/menubar.styles.js.map +1 -0
  276. package/dist/components/navigation-bar/navigation-bar.d.ts +239 -0
  277. package/dist/components/navigation-bar/navigation-bar.js +544 -0
  278. package/dist/components/navigation-bar/navigation-bar.js.map +1 -0
  279. package/dist/components/navigation-bar/navigation-bar.styles.d.ts +21 -0
  280. package/dist/components/navigation-bar/navigation-bar.styles.js +320 -0
  281. package/dist/components/navigation-bar/navigation-bar.styles.js.map +1 -0
  282. package/dist/components/navigation-drawer/navigation-drawer.d.ts +627 -0
  283. package/dist/components/navigation-drawer/navigation-drawer.js +1917 -0
  284. package/dist/components/navigation-drawer/navigation-drawer.js.map +1 -0
  285. package/dist/components/navigation-drawer/navigation-drawer.styles.d.ts +40 -0
  286. package/dist/components/navigation-drawer/navigation-drawer.styles.js +934 -0
  287. package/dist/components/navigation-drawer/navigation-drawer.styles.js.map +1 -0
  288. package/dist/components/number-field/number-field.d.ts +147 -0
  289. package/dist/components/number-field/number-field.js +252 -0
  290. package/dist/components/number-field/number-field.js.map +1 -0
  291. package/dist/components/number-input/number-input.d.ts +347 -0
  292. package/dist/components/number-input/number-input.js +929 -0
  293. package/dist/components/number-input/number-input.js.map +1 -0
  294. package/dist/components/number-input/number-input.styles.d.ts +22 -0
  295. package/dist/components/number-input/number-input.styles.js +395 -0
  296. package/dist/components/number-input/number-input.styles.js.map +1 -0
  297. package/dist/components/number-input/number-text.d.ts +74 -0
  298. package/dist/components/number-input/number-text.js +230 -0
  299. package/dist/components/number-input/number-text.js.map +1 -0
  300. package/dist/components/one-time-code-field/one-time-code-field.d.ts +94 -0
  301. package/dist/components/one-time-code-field/one-time-code-field.js +135 -0
  302. package/dist/components/one-time-code-field/one-time-code-field.js.map +1 -0
  303. package/dist/components/one-time-code-input/code-text.d.ts +51 -0
  304. package/dist/components/one-time-code-input/code-text.js +145 -0
  305. package/dist/components/one-time-code-input/code-text.js.map +1 -0
  306. package/dist/components/one-time-code-input/one-time-code-input.d.ts +219 -0
  307. package/dist/components/one-time-code-input/one-time-code-input.js +710 -0
  308. package/dist/components/one-time-code-input/one-time-code-input.js.map +1 -0
  309. package/dist/components/one-time-code-input/one-time-code-input.styles.d.ts +8 -0
  310. package/dist/components/one-time-code-input/one-time-code-input.styles.js +323 -0
  311. package/dist/components/one-time-code-input/one-time-code-input.styles.js.map +1 -0
  312. package/dist/components/option/option.d.ts +51 -0
  313. package/dist/components/option/option.js +75 -0
  314. package/dist/components/option/option.js.map +1 -0
  315. package/dist/components/page-header/page-header.d.ts +97 -0
  316. package/dist/components/page-header/page-header.js +258 -0
  317. package/dist/components/page-header/page-header.js.map +1 -0
  318. package/dist/components/popover/popover.d.ts +217 -0
  319. package/dist/components/popover/popover.js +616 -0
  320. package/dist/components/popover/popover.js.map +1 -0
  321. package/dist/components/popover/popover.styles.d.ts +8 -0
  322. package/dist/components/popover/popover.styles.js +299 -0
  323. package/dist/components/popover/popover.styles.js.map +1 -0
  324. package/dist/components/progress-indicator/progress-indicator.d.ts +76 -0
  325. package/dist/components/progress-indicator/progress-indicator.js +165 -0
  326. package/dist/components/progress-indicator/progress-indicator.js.map +1 -0
  327. package/dist/components/progress-indicator/progress-indicator.styles.d.ts +7 -0
  328. package/dist/components/progress-indicator/progress-indicator.styles.js +271 -0
  329. package/dist/components/progress-indicator/progress-indicator.styles.js.map +1 -0
  330. package/dist/components/radio-button/radio-button.d.ts +149 -0
  331. package/dist/components/radio-button/radio-button.js +370 -0
  332. package/dist/components/radio-button/radio-button.js.map +1 -0
  333. package/dist/components/radio-button/radio-button.styles.d.ts +8 -0
  334. package/dist/components/radio-button/radio-button.styles.js +190 -0
  335. package/dist/components/radio-button/radio-button.styles.js.map +1 -0
  336. package/dist/components/radio-group/radio-group.d.ts +188 -0
  337. package/dist/components/radio-group/radio-group.js +380 -0
  338. package/dist/components/radio-group/radio-group.js.map +1 -0
  339. package/dist/components/search/search.d.ts +569 -0
  340. package/dist/components/search/search.js +1801 -0
  341. package/dist/components/search/search.js.map +1 -0
  342. package/dist/components/search/search.styles.d.ts +15 -0
  343. package/dist/components/search/search.styles.js +967 -0
  344. package/dist/components/search/search.styles.js.map +1 -0
  345. package/dist/components/segmented-button/segmented-button.d.ts +183 -0
  346. package/dist/components/segmented-button/segmented-button.js +483 -0
  347. package/dist/components/segmented-button/segmented-button.js.map +1 -0
  348. package/dist/components/segmented-button/segmented-button.styles.d.ts +19 -0
  349. package/dist/components/segmented-button/segmented-button.styles.js +400 -0
  350. package/dist/components/segmented-button/segmented-button.styles.js.map +1 -0
  351. package/dist/components/select/select.d.ts +259 -0
  352. package/dist/components/select/select.js +702 -0
  353. package/dist/components/select/select.js.map +1 -0
  354. package/dist/components/select/select.styles.d.ts +27 -0
  355. package/dist/components/select/select.styles.js +359 -0
  356. package/dist/components/select/select.styles.js.map +1 -0
  357. package/dist/components/select-field/select-field.d.ts +141 -0
  358. package/dist/components/select-field/select-field.js +234 -0
  359. package/dist/components/select-field/select-field.js.map +1 -0
  360. package/dist/components/side-sheet/side-sheet.d.ts +190 -0
  361. package/dist/components/side-sheet/side-sheet.js +592 -0
  362. package/dist/components/side-sheet/side-sheet.js.map +1 -0
  363. package/dist/components/side-sheet/side-sheet.styles.d.ts +9 -0
  364. package/dist/components/side-sheet/side-sheet.styles.js +352 -0
  365. package/dist/components/side-sheet/side-sheet.styles.js.map +1 -0
  366. package/dist/components/skeleton/skeleton.d.ts +157 -0
  367. package/dist/components/skeleton/skeleton.js +550 -0
  368. package/dist/components/skeleton/skeleton.js.map +1 -0
  369. package/dist/components/slider/slider.d.ts +235 -0
  370. package/dist/components/slider/slider.js +792 -0
  371. package/dist/components/slider/slider.js.map +1 -0
  372. package/dist/components/slider/slider.styles.d.ts +6 -0
  373. package/dist/components/slider/slider.styles.js +492 -0
  374. package/dist/components/slider/slider.styles.js.map +1 -0
  375. package/dist/components/slider-field/slider-field.d.ts +150 -0
  376. package/dist/components/slider-field/slider-field.js +269 -0
  377. package/dist/components/slider-field/slider-field.js.map +1 -0
  378. package/dist/components/snackbar/snackbar.d.ts +237 -0
  379. package/dist/components/snackbar/snackbar.js +607 -0
  380. package/dist/components/snackbar/snackbar.js.map +1 -0
  381. package/dist/components/snackbar/snackbar.styles.d.ts +10 -0
  382. package/dist/components/snackbar/snackbar.styles.js +510 -0
  383. package/dist/components/snackbar/snackbar.styles.js.map +1 -0
  384. package/dist/components/switch/switch.d.ts +161 -0
  385. package/dist/components/switch/switch.js +470 -0
  386. package/dist/components/switch/switch.js.map +1 -0
  387. package/dist/components/switch/switch.styles.d.ts +3 -0
  388. package/dist/components/switch/switch.styles.js +440 -0
  389. package/dist/components/switch/switch.styles.js.map +1 -0
  390. package/dist/components/tab-view/tab-view.d.ts +303 -0
  391. package/dist/components/tab-view/tab-view.js +917 -0
  392. package/dist/components/tab-view/tab-view.js.map +1 -0
  393. package/dist/components/tab-view/tab-view.styles.d.ts +19 -0
  394. package/dist/components/tab-view/tab-view.styles.js +85 -0
  395. package/dist/components/tab-view/tab-view.styles.js.map +1 -0
  396. package/dist/components/table/table.d.ts +386 -0
  397. package/dist/components/table/table.js +1320 -0
  398. package/dist/components/table/table.js.map +1 -0
  399. package/dist/components/table-of-contents/table-of-contents.d.ts +227 -0
  400. package/dist/components/table-of-contents/table-of-contents.js +963 -0
  401. package/dist/components/table-of-contents/table-of-contents.js.map +1 -0
  402. package/dist/components/table-of-contents/table-of-contents.styles.d.ts +1 -0
  403. package/dist/components/table-of-contents/table-of-contents.styles.js +243 -0
  404. package/dist/components/table-of-contents/table-of-contents.styles.js.map +1 -0
  405. package/dist/components/tabs/tabs.d.ts +800 -0
  406. package/dist/components/tabs/tabs.js +2183 -0
  407. package/dist/components/tabs/tabs.js.map +1 -0
  408. package/dist/components/tabs/tabs.styles.d.ts +47 -0
  409. package/dist/components/tabs/tabs.styles.js +595 -0
  410. package/dist/components/tabs/tabs.styles.js.map +1 -0
  411. package/dist/components/tag/tag.d.ts +77 -0
  412. package/dist/components/tag/tag.js +143 -0
  413. package/dist/components/tag/tag.js.map +1 -0
  414. package/dist/components/tag/tag.styles.d.ts +13 -0
  415. package/dist/components/tag/tag.styles.js +215 -0
  416. package/dist/components/tag/tag.styles.js.map +1 -0
  417. package/dist/components/tag-group/tag-group.d.ts +110 -0
  418. package/dist/components/tag-group/tag-group.js +298 -0
  419. package/dist/components/tag-group/tag-group.js.map +1 -0
  420. package/dist/components/tag-group/tag-group.styles.d.ts +8 -0
  421. package/dist/components/tag-group/tag-group.styles.js +66 -0
  422. package/dist/components/tag-group/tag-group.styles.js.map +1 -0
  423. package/dist/components/text-field/text-field.d.ts +159 -0
  424. package/dist/components/text-field/text-field.js +272 -0
  425. package/dist/components/text-field/text-field.js.map +1 -0
  426. package/dist/components/text-input/text-input-segments.d.ts +93 -0
  427. package/dist/components/text-input/text-input-segments.js +233 -0
  428. package/dist/components/text-input/text-input-segments.js.map +1 -0
  429. package/dist/components/text-input/text-input.d.ts +683 -0
  430. package/dist/components/text-input/text-input.js +2120 -0
  431. package/dist/components/text-input/text-input.js.map +1 -0
  432. package/dist/components/text-input/text-input.styles.d.ts +27 -0
  433. package/dist/components/text-input/text-input.styles.js +1071 -0
  434. package/dist/components/text-input/text-input.styles.js.map +1 -0
  435. package/dist/components/toolbar/toolbar.d.ts +123 -0
  436. package/dist/components/toolbar/toolbar.js +336 -0
  437. package/dist/components/toolbar/toolbar.js.map +1 -0
  438. package/dist/components/toolbar/toolbar.styles.d.ts +10 -0
  439. package/dist/components/toolbar/toolbar.styles.js +156 -0
  440. package/dist/components/toolbar/toolbar.styles.js.map +1 -0
  441. package/dist/components/tooltip/tooltip-placement.d.ts +22 -0
  442. package/dist/components/tooltip/tooltip-placement.js +15 -0
  443. package/dist/components/tooltip/tooltip-placement.js.map +1 -0
  444. package/dist/components/tooltip/tooltip.d.ts +267 -0
  445. package/dist/components/tooltip/tooltip.js +902 -0
  446. package/dist/components/tooltip/tooltip.js.map +1 -0
  447. package/dist/components/tooltip/tooltip.styles.d.ts +7 -0
  448. package/dist/components/tooltip/tooltip.styles.js +240 -0
  449. package/dist/components/tooltip/tooltip.styles.js.map +1 -0
  450. package/dist/components/tree-view/tree-view.d.ts +264 -0
  451. package/dist/components/tree-view/tree-view.js +1228 -0
  452. package/dist/components/tree-view/tree-view.js.map +1 -0
  453. package/dist/description-list.css +337 -0
  454. package/dist/empty-state.css +70 -0
  455. package/dist/figure.css +381 -0
  456. package/dist/generated/icon-sets.d.ts +9 -0
  457. package/dist/generated/icon-sets.js +18 -0
  458. package/dist/generated/icon-sets.js.map +1 -0
  459. package/dist/generated/words.d.ts +161 -0
  460. package/dist/generated/words.js +91 -0
  461. package/dist/generated/words.js.map +1 -0
  462. package/dist/highlight/grammars/css.d.ts +3 -0
  463. package/dist/highlight/grammars/css.js +56 -0
  464. package/dist/highlight/grammars/css.js.map +1 -0
  465. package/dist/highlight/grammars/dart.d.ts +3 -0
  466. package/dist/highlight/grammars/dart.js +53 -0
  467. package/dist/highlight/grammars/dart.js.map +1 -0
  468. package/dist/highlight/grammars/javascript.d.ts +4 -0
  469. package/dist/highlight/grammars/javascript.js +119 -0
  470. package/dist/highlight/grammars/javascript.js.map +1 -0
  471. package/dist/highlight/grammars/json.d.ts +3 -0
  472. package/dist/highlight/grammars/json.js +19 -0
  473. package/dist/highlight/grammars/json.js.map +1 -0
  474. package/dist/highlight/grammars/kotlin.d.ts +3 -0
  475. package/dist/highlight/grammars/kotlin.js +46 -0
  476. package/dist/highlight/grammars/kotlin.js.map +1 -0
  477. package/dist/highlight/grammars/markup.d.ts +3 -0
  478. package/dist/highlight/grammars/markup.js +45 -0
  479. package/dist/highlight/grammars/markup.js.map +1 -0
  480. package/dist/highlight/grammars/shared.d.ts +25 -0
  481. package/dist/highlight/grammars/shared.js +37 -0
  482. package/dist/highlight/grammars/shared.js.map +1 -0
  483. package/dist/highlight/grammars/shell.d.ts +3 -0
  484. package/dist/highlight/grammars/shell.js +48 -0
  485. package/dist/highlight/grammars/shell.js.map +1 -0
  486. package/dist/highlight/grammars/swift.d.ts +3 -0
  487. package/dist/highlight/grammars/swift.js +46 -0
  488. package/dist/highlight/grammars/swift.js.map +1 -0
  489. package/dist/highlight/grammars/typescript.d.ts +2 -0
  490. package/dist/highlight/grammars/typescript.js +5 -0
  491. package/dist/highlight/grammars/typescript.js.map +1 -0
  492. package/dist/highlight/index.d.ts +104 -0
  493. package/dist/highlight/index.js +331 -0
  494. package/dist/highlight/index.js.map +1 -0
  495. package/dist/icons.css +107 -0
  496. package/dist/icons.d.ts +2 -0
  497. package/dist/icons.js +10 -0
  498. package/dist/icons.js.map +1 -0
  499. package/dist/index.d.ts +85 -0
  500. package/dist/index.js +100 -0
  501. package/dist/index.js.map +1 -0
  502. package/dist/link-card.css +678 -0
  503. package/dist/link.css +728 -0
  504. package/dist/link.d.ts +21 -0
  505. package/dist/link.js +594 -0
  506. package/dist/link.js.map +1 -0
  507. package/dist/links/index.d.ts +136 -0
  508. package/dist/links/index.js +404 -0
  509. package/dist/links/index.js.map +1 -0
  510. package/dist/links/node/address.js +154 -0
  511. package/dist/links/node/cli.js +102 -0
  512. package/dist/links/node/fetcher.js +267 -0
  513. package/dist/links/node/head.js +278 -0
  514. package/dist/links/node/index.d.ts +164 -0
  515. package/dist/links/node/index.js +26 -0
  516. package/dist/links/node/links.js +275 -0
  517. package/dist/links/node/lock.js +86 -0
  518. package/dist/links/node/mark.js +71 -0
  519. package/dist/links/node/options.js +120 -0
  520. package/dist/links/node/pictures.js +265 -0
  521. package/dist/links/node/refresh.js +28 -0
  522. package/dist/menu.css +97 -0
  523. package/dist/menubar.css +69 -0
  524. package/dist/page-header.css +324 -0
  525. package/dist/pagination.css +410 -0
  526. package/dist/pagination.d.ts +6 -0
  527. package/dist/pagination.js +256 -0
  528. package/dist/pagination.js.map +1 -0
  529. package/dist/primitives/actions.d.ts +75 -0
  530. package/dist/primitives/actions.js +142 -0
  531. package/dist/primitives/actions.js.map +1 -0
  532. package/dist/primitives/after-click.d.ts +8 -0
  533. package/dist/primitives/after-click.js +21 -0
  534. package/dist/primitives/after-click.js.map +1 -0
  535. package/dist/primitives/anchored.d.ts +134 -0
  536. package/dist/primitives/anchored.js +425 -0
  537. package/dist/primitives/anchored.js.map +1 -0
  538. package/dist/primitives/arc.d.ts +13 -0
  539. package/dist/primitives/arc.js +49 -0
  540. package/dist/primitives/arc.js.map +1 -0
  541. package/dist/primitives/arrow.d.ts +47 -0
  542. package/dist/primitives/arrow.js +159 -0
  543. package/dist/primitives/arrow.js.map +1 -0
  544. package/dist/primitives/auto-height.d.ts +56 -0
  545. package/dist/primitives/auto-height.js +150 -0
  546. package/dist/primitives/auto-height.js.map +1 -0
  547. package/dist/primitives/autofocus.d.ts +11 -0
  548. package/dist/primitives/autofocus.js +26 -0
  549. package/dist/primitives/autofocus.js.map +1 -0
  550. package/dist/primitives/availability.d.ts +32 -0
  551. package/dist/primitives/availability.js +122 -0
  552. package/dist/primitives/availability.js.map +1 -0
  553. package/dist/primitives/axes.d.ts +45 -0
  554. package/dist/primitives/axes.js +72 -0
  555. package/dist/primitives/axes.js.map +1 -0
  556. package/dist/primitives/behavior.d.ts +14 -0
  557. package/dist/primitives/behavior.js +19 -0
  558. package/dist/primitives/behavior.js.map +1 -0
  559. package/dist/primitives/calendar-date.d.ts +79 -0
  560. package/dist/primitives/calendar-date.js +135 -0
  561. package/dist/primitives/calendar-date.js.map +1 -0
  562. package/dist/primitives/composed.d.ts +144 -0
  563. package/dist/primitives/composed.js +303 -0
  564. package/dist/primitives/composed.js.map +1 -0
  565. package/dist/primitives/default-button.d.ts +49 -0
  566. package/dist/primitives/default-button.js +270 -0
  567. package/dist/primitives/default-button.js.map +1 -0
  568. package/dist/primitives/description.d.ts +18 -0
  569. package/dist/primitives/description.js +18 -0
  570. package/dist/primitives/description.js.map +1 -0
  571. package/dist/primitives/destination.d.ts +259 -0
  572. package/dist/primitives/destination.js +651 -0
  573. package/dist/primitives/destination.js.map +1 -0
  574. package/dist/primitives/direction.d.ts +23 -0
  575. package/dist/primitives/direction.js +90 -0
  576. package/dist/primitives/direction.js.map +1 -0
  577. package/dist/primitives/disabled-while-focused.d.ts +46 -0
  578. package/dist/primitives/disabled-while-focused.js +126 -0
  579. package/dist/primitives/disabled-while-focused.js.map +1 -0
  580. package/dist/primitives/disclosure.d.ts +9 -0
  581. package/dist/primitives/disclosure.js +15 -0
  582. package/dist/primitives/disclosure.js.map +1 -0
  583. package/dist/primitives/dismiss.d.ts +88 -0
  584. package/dist/primitives/dismiss.js +232 -0
  585. package/dist/primitives/dismiss.js.map +1 -0
  586. package/dist/primitives/field-frame.d.ts +166 -0
  587. package/dist/primitives/field-frame.js +358 -0
  588. package/dist/primitives/field-frame.js.map +1 -0
  589. package/dist/primitives/field-group-frame.d.ts +59 -0
  590. package/dist/primitives/field-group-frame.js +174 -0
  591. package/dist/primitives/field-group-frame.js.map +1 -0
  592. package/dist/primitives/field-trigger.d.ts +117 -0
  593. package/dist/primitives/field-trigger.js +387 -0
  594. package/dist/primitives/field-trigger.js.map +1 -0
  595. package/dist/primitives/field.d.ts +186 -0
  596. package/dist/primitives/field.js +349 -0
  597. package/dist/primitives/field.js.map +1 -0
  598. package/dist/primitives/file-format.d.ts +23 -0
  599. package/dist/primitives/file-format.js +185 -0
  600. package/dist/primitives/file-format.js.map +1 -0
  601. package/dist/primitives/file-item-holder.d.ts +45 -0
  602. package/dist/primitives/file-item-holder.js +39 -0
  603. package/dist/primitives/file-item-holder.js.map +1 -0
  604. package/dist/primitives/focus-order.d.ts +11 -0
  605. package/dist/primitives/focus-order.js +11 -0
  606. package/dist/primitives/focus-order.js.map +1 -0
  607. package/dist/primitives/focus-ring.d.ts +76 -0
  608. package/dist/primitives/focus-ring.js +230 -0
  609. package/dist/primitives/focus-ring.js.map +1 -0
  610. package/dist/primitives/follow.d.ts +65 -0
  611. package/dist/primitives/follow.js +283 -0
  612. package/dist/primitives/follow.js.map +1 -0
  613. package/dist/primitives/form-disabled.d.ts +20 -0
  614. package/dist/primitives/form-disabled.js +46 -0
  615. package/dist/primitives/form-disabled.js.map +1 -0
  616. package/dist/primitives/form-says.d.ts +33 -0
  617. package/dist/primitives/form-says.js +45 -0
  618. package/dist/primitives/form-says.js.map +1 -0
  619. package/dist/primitives/forward.d.ts +13 -0
  620. package/dist/primitives/forward.js +28 -0
  621. package/dist/primitives/forward.js.map +1 -0
  622. package/dist/primitives/glyph-mirror.d.ts +77 -0
  623. package/dist/primitives/glyph-mirror.js +211 -0
  624. package/dist/primitives/glyph-mirror.js.map +1 -0
  625. package/dist/primitives/glyph-pending.d.ts +17 -0
  626. package/dist/primitives/glyph-pending.js +91 -0
  627. package/dist/primitives/glyph-pending.js.map +1 -0
  628. package/dist/primitives/glyph.d.ts +53 -0
  629. package/dist/primitives/glyph.js +161 -0
  630. package/dist/primitives/glyph.js.map +1 -0
  631. package/dist/primitives/group-item.d.ts +128 -0
  632. package/dist/primitives/group-item.js +334 -0
  633. package/dist/primitives/group-item.js.map +1 -0
  634. package/dist/primitives/hidden.d.ts +2 -0
  635. package/dist/primitives/hidden.js +23 -0
  636. package/dist/primitives/hidden.js.map +1 -0
  637. package/dist/primitives/host-aria.d.ts +8 -0
  638. package/dist/primitives/host-aria.js +18 -0
  639. package/dist/primitives/host-aria.js.map +1 -0
  640. package/dist/primitives/index.d.ts +59 -0
  641. package/dist/primitives/index.js +189 -0
  642. package/dist/primitives/index.js.map +1 -0
  643. package/dist/primitives/indicator-drag.d.ts +90 -0
  644. package/dist/primitives/indicator-drag.js +207 -0
  645. package/dist/primitives/indicator-drag.js.map +1 -0
  646. package/dist/primitives/interactive.d.ts +13 -0
  647. package/dist/primitives/interactive.js +67 -0
  648. package/dist/primitives/interactive.js.map +1 -0
  649. package/dist/primitives/item-row.d.ts +34 -0
  650. package/dist/primitives/item-row.js +76 -0
  651. package/dist/primitives/item-row.js.map +1 -0
  652. package/dist/primitives/item-update.d.ts +2 -0
  653. package/dist/primitives/item-update.js +12 -0
  654. package/dist/primitives/item-update.js.map +1 -0
  655. package/dist/primitives/kept-length.d.ts +34 -0
  656. package/dist/primitives/kept-length.js +154 -0
  657. package/dist/primitives/kept-length.js.map +1 -0
  658. package/dist/primitives/keyboard-convention.d.ts +30 -0
  659. package/dist/primitives/keyboard-convention.js +88 -0
  660. package/dist/primitives/keyboard-convention.js.map +1 -0
  661. package/dist/primitives/label-lines.d.ts +12 -0
  662. package/dist/primitives/label-lines.js +34 -0
  663. package/dist/primitives/label-lines.js.map +1 -0
  664. package/dist/primitives/layout-scale.d.ts +18 -0
  665. package/dist/primitives/layout-scale.js +35 -0
  666. package/dist/primitives/layout-scale.js.map +1 -0
  667. package/dist/primitives/link.d.ts +147 -0
  668. package/dist/primitives/link.js +204 -0
  669. package/dist/primitives/link.js.map +1 -0
  670. package/dist/primitives/locale-date.d.ts +132 -0
  671. package/dist/primitives/locale-date.js +508 -0
  672. package/dist/primitives/locale-date.js.map +1 -0
  673. package/dist/primitives/missing-value.d.ts +16 -0
  674. package/dist/primitives/missing-value.js +31 -0
  675. package/dist/primitives/missing-value.js.map +1 -0
  676. package/dist/primitives/modal.d.ts +38 -0
  677. package/dist/primitives/modal.js +175 -0
  678. package/dist/primitives/modal.js.map +1 -0
  679. package/dist/primitives/native-text.d.ts +51 -0
  680. package/dist/primitives/native-text.js +77 -0
  681. package/dist/primitives/native-text.js.map +1 -0
  682. package/dist/primitives/natural-height.d.ts +21 -0
  683. package/dist/primitives/natural-height.js +36 -0
  684. package/dist/primitives/natural-height.js.map +1 -0
  685. package/dist/primitives/option-list.d.ts +314 -0
  686. package/dist/primitives/option-list.js +1098 -0
  687. package/dist/primitives/option-list.js.map +1 -0
  688. package/dist/primitives/overlay-focus.d.ts +48 -0
  689. package/dist/primitives/overlay-focus.js +152 -0
  690. package/dist/primitives/overlay-focus.js.map +1 -0
  691. package/dist/primitives/placement.d.ts +131 -0
  692. package/dist/primitives/placement.js +144 -0
  693. package/dist/primitives/placement.js.map +1 -0
  694. package/dist/primitives/places.d.ts +44 -0
  695. package/dist/primitives/places.js +98 -0
  696. package/dist/primitives/places.js.map +1 -0
  697. package/dist/primitives/press.d.ts +90 -0
  698. package/dist/primitives/press.js +153 -0
  699. package/dist/primitives/press.js.map +1 -0
  700. package/dist/primitives/report.d.ts +17 -0
  701. package/dist/primitives/report.js +34 -0
  702. package/dist/primitives/report.js.map +1 -0
  703. package/dist/primitives/ripple.d.ts +40 -0
  704. package/dist/primitives/ripple.js +70 -0
  705. package/dist/primitives/ripple.js.map +1 -0
  706. package/dist/primitives/roving.d.ts +41 -0
  707. package/dist/primitives/roving.js +71 -0
  708. package/dist/primitives/roving.js.map +1 -0
  709. package/dist/primitives/selection.d.ts +134 -0
  710. package/dist/primitives/selection.js +287 -0
  711. package/dist/primitives/selection.js.map +1 -0
  712. package/dist/primitives/separation.d.ts +28 -0
  713. package/dist/primitives/separation.js +96 -0
  714. package/dist/primitives/separation.js.map +1 -0
  715. package/dist/primitives/shared-choice.d.ts +33 -0
  716. package/dist/primitives/shared-choice.js +110 -0
  717. package/dist/primitives/shared-choice.js.map +1 -0
  718. package/dist/primitives/sheet.d.ts +63 -0
  719. package/dist/primitives/sheet.js +139 -0
  720. package/dist/primitives/sheet.js.map +1 -0
  721. package/dist/primitives/sheets.d.ts +8 -0
  722. package/dist/primitives/sheets.js +96 -0
  723. package/dist/primitives/sheets.js.map +1 -0
  724. package/dist/primitives/states.d.ts +33 -0
  725. package/dist/primitives/states.js +30 -0
  726. package/dist/primitives/states.js.map +1 -0
  727. package/dist/primitives/system-watch.d.ts +9 -0
  728. package/dist/primitives/system-watch.js +29 -0
  729. package/dist/primitives/system-watch.js.map +1 -0
  730. package/dist/primitives/target.d.ts +21 -0
  731. package/dist/primitives/target.js +79 -0
  732. package/dist/primitives/target.js.map +1 -0
  733. package/dist/primitives/values.d.ts +6 -0
  734. package/dist/primitives/values.js +22 -0
  735. package/dist/primitives/values.js.map +1 -0
  736. package/dist/primitives/visibility.d.ts +12 -0
  737. package/dist/primitives/visibility.js +50 -0
  738. package/dist/primitives/visibility.js.map +1 -0
  739. package/dist/primitives/words.d.ts +81 -0
  740. package/dist/primitives/words.js +236 -0
  741. package/dist/primitives/words.js.map +1 -0
  742. package/dist/prose.css +1917 -0
  743. package/dist/registry.d.ts +182 -0
  744. package/dist/registry.js +2 -0
  745. package/dist/registry.js.map +1 -0
  746. package/dist/shape.css +21 -0
  747. package/dist/skeleton.css +428 -0
  748. package/dist/steps.css +231 -0
  749. package/dist/steps.d.ts +6 -0
  750. package/dist/steps.js +156 -0
  751. package/dist/steps.js.map +1 -0
  752. package/dist/styles/icons.d.ts +62 -0
  753. package/dist/styles/icons.js +237 -0
  754. package/dist/styles/icons.js.map +1 -0
  755. package/dist/styles/product-text.d.ts +66 -0
  756. package/dist/styles/product-text.js +114 -0
  757. package/dist/styles/product-text.js.map +1 -0
  758. package/dist/styles/registered-properties.d.ts +6 -0
  759. package/dist/styles/registered-properties.js +68 -0
  760. package/dist/styles/registered-properties.js.map +1 -0
  761. package/dist/styles/shape.d.ts +59 -0
  762. package/dist/styles/shape.js +95 -0
  763. package/dist/styles/shape.js.map +1 -0
  764. package/dist/systems/cupertino.css +8793 -0
  765. package/dist/systems/m3-expressive-like.css +8786 -0
  766. package/dist/systems/m3-like.css +8748 -0
  767. package/dist/table-of-contents.css +482 -0
  768. package/dist/table.css +902 -0
  769. package/dist/tanrei.bundle.js +26644 -0
  770. package/dist/tanrei.bundle.js.map +7 -0
  771. package/dist/text.css +104 -0
  772. package/dist/timeline.css +410 -0
  773. package/dist/timeline.d.ts +6 -0
  774. package/dist/timeline.js +176 -0
  775. package/dist/timeline.js.map +1 -0
  776. package/dist/tokens.css +8801 -0
  777. package/dist/tree-view.css +797 -0
  778. package/dist/words.d.ts +2 -0
  779. package/dist/words.js +6 -0
  780. package/dist/words.js.map +1 -0
  781. package/package.json +132 -3
package/dist/prose.css ADDED
@@ -0,0 +1,1917 @@
1
+ /*
2
+ * Prose (specs/prose.spec.json, PRS-1 to PRS-30): long-form text — rendered Markdown, content
3
+ * from a CMS, any HTML you do not put classes on — set in the system's text styles by level, with one vertical rhythm
4
+ * and a limit on line length. A class, not an element, and it parses nothing:
5
+ *
6
+ * <article class="tanrei-prose">…h1, p, ul, blockquote, hr…</article>
7
+ * <article class="tanrei-prose" data-size="large">…</article> a page whose purpose is the text
8
+ * <article class="tanrei-prose" data-measure="false">…</article> text blocks fill the container
9
+ *
10
+ * Every value is a `--tanrei-comp-prose-*` token (the headings' text styles are `sys.typescale.heading-1…6`, and a
11
+ * rule is drawn from the divider's tokens), so a design system, the dials and a layer that re-points the rhythm all
12
+ * reach it. Prose brings no text color (PRS-4); a link is drawn by the Link component's rules (link.css), which the
13
+ * build writes into this stylesheet for prose's own anchors — `@tanrei/web/prose.css` alone draws them. Inline code
14
+ * and a bare block of code are drawn the same way, by the code components' rules (code.css).
15
+ *
16
+ * Classes: `tanrei-prose` (the container), `tanrei-prose-lead` (a lead paragraph), `tanrei-prose-heading` and
17
+ * `tanrei-prose-anchor` (a heading with its anchor, PRS-21), `tanrei-not-prose` (a part prose leaves alone, PRS-16):
18
+ *
19
+ * <div class="tanrei-prose-heading">
20
+ * <h2 id="what-goes-in">What goes in</h2>
21
+ * <a class="tanrei-prose-anchor" href="#what-goes-in" aria-label="Link to: What goes in">…the glyph `link`…</a>
22
+ * </div>
23
+ *
24
+ * `--tanrei-prose-scroll-offset` is the height of whatever the product keeps fixed at the top of the view (PRS-23).
25
+ *
26
+ * HOW IT IS WRITTEN
27
+ *
28
+ * - What is prose's own (PRS-16) is said ONCE, by a value and not by a selector: `--_prose-own` is 1 on a
29
+ * `.tanrei-prose` and 0 on an island — an element with `tanrei-not-prose`, or one of Tanrei's custom elements, whose
30
+ * slotted content is that component's — and it is inherited, so what an element's parent holds says whether the
31
+ * element is prose's own. Every element rule stands in one `@container style(--_prose-own: 1)`, which asks exactly
32
+ * that of the parent. So the island itself is a block of the prose, nothing inside it is, and a prose inside an
33
+ * island is prose again at any depth. The build (scripts/build.js) writes the tag names of every Tanrei element
34
+ * beside `.tanrei-not-prose` in that one rule, from `custom-elements.json`; this source file names the class alone
35
+ * — and the landmark of a pagination, a component that is classes and no element (pagination.css).
36
+ * (A pseudo-element asks its own element: the marker of a list item that is itself marked `tanrei-not-prose` is not
37
+ * prose's.) A browser without style queries draws the container's text style and no element rule.
38
+ * - WHAT IT COSTS is part of how it is written (prose.test.ts and
39
+ * prose.perf.test.ts hold the first three; has.test.ts holds the fourth for every stylesheet of the package):
40
+ * 1. No selector looks for an island among an element's ancestors. Said in each rule's selector, it would cost every rule, on every element, a walk to the root with every Tanrei tag name tried at each
41
+ * step: seconds on a page of documentation.
42
+ * 2. A rule begins with the NAMES it is for — `:where(h1, h2, .tanrei-prose-heading)…` — and the build writes it once
43
+ * per name, the one form an engine files under the name and tries on those elements alone. A rule that begins
44
+ * with anything else is tried on every element of the document: the test counts them, and a new one needs a reason.
45
+ * 3. `:has()` stands on a NAMED element (`li:has(…)`, `.tanrei-prose-heading:has(…)`), never on any element
46
+ * whatever (`:has(> h2:only-child)`): an engine must then remember every element of the page as one that a later
47
+ * change may concern, and each attribute a component writes, each child it adds, restyles what follows every
48
+ * ancestor — a tenth of a long page per write here, and with a product's own `:has()` rules beside it the whole
49
+ * document. This is why a wrapper of a heading is spaced as the heading only when it is named
50
+ * `tanrei-prose-heading` (PRS-7).
51
+ * 4. `:has()` is asked of the element a rule STYLES, never of one element for the sake of another
52
+ * (`li:has(> p) > :not(:first-child)`, `:is(ul, ol):has(…) > li + li`): what it finds reaches other elements as an
53
+ * inherited value (`--_prose-item-gap`), or is said from the other element's side (`li > p ~ *`). The other form
54
+ * makes its element one whose subtree an engine restyles when something inside it changes — and WHOLE where any
55
+ * such rule of the page, in any root, styles an element it cannot name (`… > :not(:first-child)`). A table of
56
+ * live components in a page of prose is then restyled, every cell and everything in it, at each attribute one of
57
+ * them writes: a second of style time on a page of documentation (has.test.ts holds it for every stylesheet of the
58
+ * package, and prose.perf.test.ts what it costs). The one exception is what follows a heading's wrapper
59
+ * (`.tanrei-prose-heading:has(> h2) + *`): no value passes between siblings, the wrapper holds a heading and an
60
+ * anchor, and what is restyled is the one element after it.
61
+ * - Every selector has no specificity (`:where()`; a rule on `::marker` or `::before` has a pseudo-element's), so one
62
+ * class of the product's wins, and so the ORDER of the rules below is what decides between two of them.
63
+ * - PRS-7, exactly one space between two neighbours: no element has a space after it, and the space before an element
64
+ * is chosen by what precedes it — by one rule, the last that matches. Nothing relies on two margins meeting.
65
+ * - Names that begin `--_prose-` are private.
66
+ */
67
+ /* No custom property is registered by this stylesheet (src/styles/registered-properties.ts says what one costs a page).
68
+ A task's mark, whose own font is the checkbox's or the icon set's, centres itself on the first line of its item by
69
+ saying `1lh` in its own `line-height` — there the unit is the PARENT's line, as a length — and reading it back as
70
+ its own `1lh` (PRS-10). */
71
+
72
+ @layer tanrei.components {
73
+ /* ── The container: the running text's style, by size (PRS-1; PRS-30: any other size is the default) ──────────── */
74
+ :where(.tanrei-prose) {
75
+ --_prose-text-font: var(--tanrei-comp-prose-text-typescale-medium-font);
76
+ --_prose-text-size: var(--tanrei-comp-prose-text-typescale-medium-font-size);
77
+ --_prose-text-tracking: var(--tanrei-comp-prose-text-typescale-medium-letter-spacing);
78
+ --_prose-text-emphasized: var(--tanrei-comp-prose-text-typescale-medium-font-weight-emphasized);
79
+ --_prose-small-font: var(--tanrei-comp-prose-small-typescale-medium-font);
80
+ --_prose-small-tracking: var(--tanrei-comp-prose-small-typescale-medium-letter-spacing);
81
+ --_prose-small-emphasized: var(--tanrei-comp-prose-small-typescale-medium-font-weight-emphasized);
82
+ /* PRS-18: a count of ems of the running text — a rem length, so it grows with the reader's text size (PRS-27). */
83
+ --_prose-measure: calc(var(--tanrei-comp-prose-measure) * var(--_prose-text-size));
84
+ --tanrei-text-emphasized-weight: var(--_prose-text-emphasized);
85
+ font: var(--_prose-text-font);
86
+ letter-spacing: var(--_prose-text-tracking);
87
+ /* PRS-19: a string with no break opportunity breaks anywhere rather than overflow. */
88
+ overflow-wrap: break-word;
89
+ }
90
+ :where(.tanrei-prose[data-size='large']) {
91
+ --_prose-text-font: var(--tanrei-comp-prose-text-typescale-large-font);
92
+ --_prose-text-size: var(--tanrei-comp-prose-text-typescale-large-font-size);
93
+ --_prose-text-tracking: var(--tanrei-comp-prose-text-typescale-large-letter-spacing);
94
+ --_prose-text-emphasized: var(--tanrei-comp-prose-text-typescale-large-font-weight-emphasized);
95
+ --_prose-small-font: var(--tanrei-comp-prose-small-typescale-large-font);
96
+ --_prose-small-tracking: var(--tanrei-comp-prose-small-typescale-large-letter-spacing);
97
+ --_prose-small-emphasized: var(--tanrei-comp-prose-small-typescale-large-font-weight-emphasized);
98
+ }
99
+ :where(.tanrei-prose[data-measure='false']) {
100
+ --_prose-measure: none;
101
+ }
102
+ /* PRS-19: Japanese and Chinese lines neither begin with closing punctuation or a small kana nor end with opening punctuation. */
103
+ :where(.tanrei-prose):where(:lang(ja), :lang(zh)) {
104
+ line-break: strict;
105
+ }
106
+
107
+ /* ── What is prose's own (PRS-16) ──────────────────────────────────────────────────────────────────────────────── */
108
+ /* 1 on a prose and 0 on an island, inherited: what an element's PARENT holds says whether the element is prose's
109
+ own (see HOW IT IS WRITTEN). An element that is both — a prose that is itself a Tanrei element — is a prose: the
110
+ later rule. */
111
+ /* A pagination is a component placed in the flow (PRS-16) that is classes on the product's own `nav` and anchors,
112
+ not an element: its landmark is an island as an element is, so its anchors are the pagination's and not prose's
113
+ links, whichever of the two stylesheets is loaded last. (src/link.ts leaves their presses to it likewise.) */
114
+ :where(.tanrei-not-prose), :where(tanrei-accordion), :where(tanrei-app-bar), :where(tanrei-app-shell), :where(tanrei-avatar), :where(tanrei-avatar-group), :where(tanrei-badge), :where(tanrei-bottom-sheet), :where(tanrei-breadcrumbs), :where(tanrei-button), :where(tanrei-button-group), :where(tanrei-button-with-menu), :where(tanrei-calendar), :where(tanrei-callout), :where(tanrei-card), :where(tanrei-carousel), :where(tanrei-carousel-item), :where(tanrei-chat-composer), :where(tanrei-checkbox), :where(tanrei-checkbox-group), :where(tanrei-chip), :where(tanrei-chip-field), :where(tanrei-code-block), :where(tanrei-color-field), :where(tanrei-color-input), :where(tanrei-combobox), :where(tanrei-combobox-field), :where(tanrei-copy-button), :where(tanrei-date-time-picker), :where(tanrei-description-list), :where(tanrei-dialog), :where(tanrei-divider), :where(tanrei-embedded-text-input), :where(tanrei-empty-state), :where(tanrei-fab-menu), :where(tanrei-fab-menu-item), :where(tanrei-field), :where(tanrei-field-group), :where(tanrei-figure), :where(tanrei-file-item), :where(tanrei-file-picker), :where(tanrei-file-upload), :where(tanrei-image-preview), :where(tanrei-image-preview-item), :where(tanrei-keyboard-shortcut), :where(tanrei-link-card), :where(tanrei-list), :where(tanrei-list-item), :where(tanrei-loading-indicator), :where(tanrei-main-action-button), :where(tanrei-menu), :where(tanrei-menu-checkbox-item), :where(tanrei-menu-group), :where(tanrei-menu-item), :where(tanrei-menu-radio-item), :where(tanrei-menubar), :where(tanrei-menubar-item), :where(tanrei-menubar-menu), :where(tanrei-navigation-bar), :where(tanrei-navigation-bar-item), :where(tanrei-navigation-drawer), :where(tanrei-navigation-drawer-group), :where(tanrei-navigation-drawer-item), :where(tanrei-navigation-drawer-section), :where(tanrei-number-field), :where(tanrei-number-input), :where(tanrei-one-time-code-field), :where(tanrei-one-time-code-input), :where(tanrei-option), :where(tanrei-option-group), :where(tanrei-page-header), :where(tanrei-popover), :where(tanrei-progress-indicator), :where(tanrei-radio-button), :where(tanrei-radio-group), :where(tanrei-search), :where(tanrei-search-result), :where(tanrei-search-result-group), :where(tanrei-search-suggestion), :where(tanrei-segment), :where(tanrei-segmented-button), :where(tanrei-select), :where(tanrei-select-field), :where(tanrei-side-sheet), :where(tanrei-skeleton), :where(tanrei-slider), :where(tanrei-slider-field), :where(tanrei-snackbar), :where(tanrei-snackbar-host), :where(tanrei-submenu), :where(tanrei-switch), :where(tanrei-tab), :where(tanrei-tab-panel), :where(tanrei-tab-view), :where(tanrei-table), :where(tanrei-table-of-contents), :where(tanrei-tabs), :where(tanrei-tag), :where(tanrei-tag-group), :where(tanrei-text-field), :where(tanrei-text-input), :where(tanrei-toolbar), :where(tanrei-tooltip), :where(tanrei-tree-view), :where(.tanrei-pagination) {
115
+ --_prose-own: 0;
116
+ }
117
+ :where(.tanrei-prose) {
118
+ --_prose-own: 1;
119
+ }
120
+ @container style(--_prose-own: 1) {
121
+ /* ── Text styles (PRS-1) ─────────────────────────────────────────────────────────────────────────────────────── */
122
+ /* A heading, and the wrapper that holds it with its anchor (the wrapper's line is the heading's line). */
123
+ :where(h1), :where(.tanrei-prose-heading:has(> h1)) {
124
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-1-font-weight-emphasized);
125
+ font: var(--tanrei-sys-typescale-heading-1-font);
126
+ letter-spacing: var(--tanrei-sys-typescale-heading-1-letter-spacing);
127
+ /* PRS-23: its own space before stays above a heading that is navigated to. */
128
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-1-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
129
+ }
130
+ :where(h2), :where(.tanrei-prose-heading:has(> h2)) {
131
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-2-font-weight-emphasized);
132
+ font: var(--tanrei-sys-typescale-heading-2-font);
133
+ letter-spacing: var(--tanrei-sys-typescale-heading-2-letter-spacing);
134
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-2-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
135
+ }
136
+ :where(h3), :where(.tanrei-prose-heading:has(> h3)) {
137
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-3-font-weight-emphasized);
138
+ font: var(--tanrei-sys-typescale-heading-3-font);
139
+ letter-spacing: var(--tanrei-sys-typescale-heading-3-letter-spacing);
140
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-3-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
141
+ }
142
+ :where(h4), :where(.tanrei-prose-heading:has(> h4)) {
143
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-4-font-weight-emphasized);
144
+ font: var(--tanrei-sys-typescale-heading-4-font);
145
+ letter-spacing: var(--tanrei-sys-typescale-heading-4-letter-spacing);
146
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-4-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
147
+ }
148
+ :where(h5), :where(.tanrei-prose-heading:has(> h5)) {
149
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-5-font-weight-emphasized);
150
+ font: var(--tanrei-sys-typescale-heading-5-font);
151
+ letter-spacing: var(--tanrei-sys-typescale-heading-5-letter-spacing);
152
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-5-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
153
+ }
154
+ :where(h6), :where(.tanrei-prose-heading:has(> h6)) {
155
+ --tanrei-text-emphasized-weight: var(--tanrei-sys-typescale-heading-6-font-weight-emphasized);
156
+ font: var(--tanrei-sys-typescale-heading-6-font);
157
+ letter-spacing: var(--tanrei-sys-typescale-heading-6-letter-spacing);
158
+ scroll-margin-block-start: calc(var(--tanrei-comp-prose-heading-6-gap-before) + var(--tanrei-prose-scroll-offset, 0px));
159
+ }
160
+ /* PRS-20: no negative tracking for a heading in Chinese, Japanese or Korean — zero. */
161
+ :where(h1):where(:lang(ja), :lang(zh), :lang(ko)), :where(h2):where(:lang(ja), :lang(zh), :lang(ko)), :where(h3):where(:lang(ja), :lang(zh), :lang(ko)), :where(h4):where(:lang(ja), :lang(zh), :lang(ko)), :where(h5):where(:lang(ja), :lang(zh), :lang(ko)), :where(h6):where(:lang(ja), :lang(zh), :lang(ko)), :where(.tanrei-prose-heading):where(:lang(ja), :lang(zh), :lang(ko)) {
162
+ letter-spacing: 0;
163
+ }
164
+ /* PRS-19: a heading's lines are balanced, a paragraph's avoid a short last line, where the browser knows how. */
165
+ :where(h1), :where(h2), :where(h3), :where(h4), :where(h5), :where(h6) {
166
+ text-wrap: balance;
167
+ }
168
+ :where(p) {
169
+ text-wrap: pretty;
170
+ }
171
+
172
+ /* Running text is the container's style, inherited: a paragraph, a list item, a quote, a term, a description. */
173
+ /* A lead paragraph, marked by the author. */
174
+ :where(.tanrei-prose-lead) {
175
+ --tanrei-text-emphasized-weight: var(--tanrei-comp-prose-lead-typescale-font-weight-emphasized);
176
+ font: var(--tanrei-comp-prose-lead-typescale-font);
177
+ letter-spacing: var(--tanrei-comp-prose-lead-typescale-letter-spacing);
178
+ }
179
+ /* Secondary text: small print, footnotes (PRS-14) and the references to them. */
180
+ :where(small), :where(sup), :where([data-footnotes]), :where(.footnotes) {
181
+ --tanrei-text-emphasized-weight: var(--_prose-small-emphasized);
182
+ font: var(--_prose-small-font);
183
+ letter-spacing: var(--_prose-small-tracking);
184
+ }
185
+ /* PRS-14: a reference is raised above the baseline and does not make its line taller. */
186
+ :where(sup) {
187
+ line-height: 0;
188
+ vertical-align: super;
189
+ }
190
+
191
+ /* Inline code and a block of code are the code components' (specs/inline-code.spec.json, specs/code-block.spec.json). The build (scripts/build.js) writes their rules here from code.css and the code block's
192
+ light-DOM rules: under every `code` that is prose's own and not in a `pre` — the code face at the size of the
193
+ text around it, on its faint fill (ICD-1 to ICD-16), so rendered Markdown needs no class — and under a bare
194
+ `pre`, which is drawn as a filled code block of the medium size and scrolls in its own box (PRS-15). A
195
+ `tanrei-code-block` is an island (PRS-16) and draws its own. */
196
+ :where(code:not(pre code)) {
197
+ /* ICD-1: the family, the weight and the letter spacing of the code role; the size of the text it sits in times
198
+ label.scale — a paragraph's, a heading's of any level, a caption's — never the code role's own size. */
199
+ font-family: var(--tanrei-comp-inline-code-label-typescale-font-family);
200
+ font-size: calc(1em * var(--tanrei-comp-inline-code-label-scale));
201
+ font-weight: var(--tanrei-comp-inline-code-label-typescale-font-weight);
202
+ letter-spacing: var(--tanrei-comp-inline-code-label-typescale-letter-spacing);
203
+ /* ICD-10: never slanted, whatever it sits in. */
204
+ font-style: normal;
205
+ /* ICD-2: on the baseline of its line, never making the line taller (PRS-17); the fill is the face's own text box,
206
+ with no padding above or below. */
207
+ line-height: 0;
208
+ vertical-align: baseline;
209
+ /* ICD-3: the tonal form — the fill, room at each end of every piece of the run (ICD-6), the text color, and an
210
+ edge inside the fill where outline.width is above 0. ICD-4: the plain form has none of them (see above). */
211
+ padding-inline: var(--_code-plain, var(--tanrei-comp-inline-code-container-padding-inline));
212
+ background-color: var(--_code-plain, var(--tanrei-comp-inline-code-container-color));
213
+ box-shadow: var(--_code-plain, inset 0 0 0 var(--tanrei-comp-inline-code-outline-width) var(--tanrei-comp-inline-code-outline-color));
214
+ color: var(--_code-plain, var(--tanrei-comp-inline-code-label-color));
215
+ -webkit-box-decoration-break: clone;
216
+ box-decoration-break: clone;
217
+ /* ICD-6: it wraps with its line — at its spaces first, and anywhere where a part with no space is longer than the
218
+ line; no hyphen is drawn. ICD-7: every space is kept and nothing is transformed; a line break is one space where
219
+ the browser knows `preserve-spaces`. */
220
+ white-space: pre-wrap;
221
+ white-space-collapse: preserve-spaces;
222
+ overflow-wrap: anywhere;
223
+ hyphens: none;
224
+ text-transform: none;
225
+ /* ICD-8: a left-to-right run of its own, isolated from the text around it, in every layout direction. */
226
+ direction: ltr;
227
+ unicode-bidi: isolate;
228
+
229
+ /* ICD-5: the run's own form, over an ancestor's. Any other value is auto (ICD-16). */
230
+ &:where([data-variant='plain']) {
231
+ --_code-plain: ;
232
+ }
233
+ &:where([data-variant='tonal']) {
234
+ --_code-plain: initial;
235
+ }
236
+ /* ICD-10: inside a link it takes the link's color in every form (the underline runs under it by itself); inside
237
+ strong text it gains sys.typescale.emphasis.body of weight, as strong text does (PRS-2). */
238
+ :where(a, .tanrei-link) & {
239
+ color: inherit;
240
+ }
241
+ :where(strong, b) & {
242
+ font-weight: calc(var(--tanrei-comp-inline-code-label-typescale-font-weight) + var(--tanrei-sys-typescale-emphasis-body));
243
+ }
244
+ /* ICD-16: with no text it draws nothing and takes no space. */
245
+ &:where(:empty) {
246
+ display: none;
247
+ }
248
+ /* ICD-3: the corners, eased by sys.shape.corner-smoothing. */
249
+ & {
250
+ --tanrei-corner-pill: 0;
251
+ }
252
+ & {
253
+ --_corner-scale: 1;
254
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
255
+ }
256
+ @supports (corner-shape: superellipse(log(2, 2))) {
257
+ & {
258
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
259
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
260
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
261
+ }
262
+ }
263
+ &::before,
264
+ &::after {
265
+ corner-shape: inherit;
266
+ }
267
+ & {
268
+ --tanrei-corner-radius: var(--tanrei-comp-inline-code-container-shape);
269
+ --tanrei-corner-pill: var(--tanrei-comp-inline-code-container-shape-pill, 0);
270
+ }
271
+ /* ICD-14: forced colors remove the fill and the shadow; the face tells code from words. An edge is drawn only
272
+ where outline.width is above 0, in the text color (the link color inside a link), inside the run's box. */
273
+ @media (forced-colors: active) {
274
+ & {
275
+ outline: var(--_code-plain, var(--tanrei-comp-inline-code-outline-width) solid currentColor);
276
+ outline-offset: calc(var(--tanrei-comp-inline-code-outline-width) * -1);
277
+ }
278
+ }
279
+ }
280
+ :where(pre) {
281
+ box-sizing: border-box;
282
+ overflow-x: auto;
283
+ border-radius: var(--tanrei-comp-code-block-container-shape);
284
+ padding-block: var(--tanrei-comp-code-block-container-padding-block-medium);
285
+ padding-inline: var(--tanrei-comp-code-block-container-padding-inline-medium);
286
+ background: var(--tanrei-comp-code-block-filled-container-color);
287
+ --_code-block-font: var(--tanrei-comp-code-block-code-typescale-medium-font);
288
+ --_code-block-tracking: var(--tanrei-comp-code-block-code-typescale-medium-letter-spacing);
289
+ font: var(--_code-block-font);
290
+ letter-spacing: var(--_code-block-tracking);
291
+ color: var(--tanrei-comp-code-block-code-color);
292
+ tab-size: var(--tanrei-comp-code-block-code-tab-size);
293
+ white-space: pre;
294
+ hyphens: none;
295
+ text-transform: none;
296
+ text-align: left;
297
+ direction: ltr;
298
+ unicode-bidi: isolate;
299
+ }
300
+ :where(pre code) {
301
+ font: inherit;
302
+ letter-spacing: inherit;
303
+ }
304
+ /* PRS-17: what sits in a line of text does not make the line taller. PRS-26: a run of keys or of sample output is
305
+ a left-to-right run of its own, as inline code is. */
306
+ :where(kbd), :where(samp) {
307
+ line-height: 0;
308
+ direction: ltr;
309
+ unicode-bidi: isolate;
310
+ }
311
+
312
+ /* PRS-2: strong text is the emphasized weight of the style it sits in. A term is too (PRS-13). */
313
+ :where(strong), :where(b), :where(dt) {
314
+ font-weight: var(--tanrei-text-emphasized-weight);
315
+ }
316
+ /* PRS-3: Chinese, Japanese and Korean have no italic — emphasis is upright at the emphasized weight, never slanted. */
317
+ :where(:lang(ja), :lang(zh), :lang(ko)) {
318
+ font-synthesis-style: none;
319
+ }
320
+ :where(em):where(:lang(ja), :lang(zh), :lang(ko)), :where(i):where(:lang(ja), :lang(zh), :lang(ko)) {
321
+ font-style: normal;
322
+ font-weight: var(--tanrei-text-emphasized-weight);
323
+ }
324
+ /* PRS-19, for a block in another language than its prose. */
325
+ :where(:lang(ja), :lang(zh)) {
326
+ line-break: strict;
327
+ }
328
+
329
+ /* PRS-17: a link is the Link component's (specs/link.spec.json), drawn as a link that is not standalone, and
330
+ prose decides nothing about it: it is underlined as comp.link.underline.visibility names (at rest, in the
331
+ default system; `data-underline` sets one anchor apart), and an anchor the content's pipeline or the package's
332
+ script marked `data-external` shows the Link's arrow and, where the pipeline wrote one, the site's picture
333
+ (LNK-27 to LNK-34). The build (scripts/build.js) writes the rules of link.css here, under prose's own anchors,
334
+ so rendered Markdown needs no class and the two cannot differ; a heading's anchor is the link that is a glyph
335
+ alone. Prose names no color of its own for it (PRS-4), and computes nothing about an address. */
336
+ :where(a) {
337
+ /* ── The tokens of the look: standard, inverse, and each as the current link (LNK-2, LNK-6, LNK-18, LNK-19) ──── */
338
+ --_link-container: var(--tanrei-comp-link-standard-container-color);
339
+ --_link-label: var(--tanrei-comp-link-standard-label-color);
340
+ --_link-icon: var(--tanrei-comp-link-standard-icon-color);
341
+ --_link-hovered-container: var(--tanrei-comp-link-standard-hovered-container-color);
342
+ --_link-hovered-label: var(--tanrei-comp-link-standard-hovered-label-color);
343
+ --_link-hovered-icon: var(--tanrei-comp-link-standard-hovered-icon-color);
344
+ --_link-focused-container: var(--tanrei-comp-link-standard-focused-container-color);
345
+ --_link-focused-label: var(--tanrei-comp-link-standard-focused-label-color);
346
+ --_link-focused-icon: var(--tanrei-comp-link-standard-focused-icon-color);
347
+ --_link-pressed-container: var(--tanrei-comp-link-standard-pressed-container-color);
348
+ --_link-pressed-label: var(--tanrei-comp-link-standard-pressed-label-color);
349
+ --_link-pressed-icon: var(--tanrei-comp-link-standard-pressed-icon-color);
350
+ --_link-disabled-container: var(--tanrei-comp-link-standard-disabled-container-color);
351
+ --_link-disabled-label: var(--tanrei-comp-link-standard-disabled-label-color);
352
+ --_link-disabled-icon: var(--tanrei-comp-link-standard-disabled-icon-color);
353
+ &:where([data-variant='inverse']) {
354
+ --_link-container: var(--tanrei-comp-link-inverse-container-color);
355
+ --_link-label: var(--tanrei-comp-link-inverse-label-color);
356
+ --_link-icon: var(--tanrei-comp-link-inverse-icon-color);
357
+ --_link-hovered-container: var(--tanrei-comp-link-inverse-hovered-container-color);
358
+ --_link-hovered-label: var(--tanrei-comp-link-inverse-hovered-label-color);
359
+ --_link-hovered-icon: var(--tanrei-comp-link-inverse-hovered-icon-color);
360
+ --_link-focused-container: var(--tanrei-comp-link-inverse-focused-container-color);
361
+ --_link-focused-label: var(--tanrei-comp-link-inverse-focused-label-color);
362
+ --_link-focused-icon: var(--tanrei-comp-link-inverse-focused-icon-color);
363
+ --_link-pressed-container: var(--tanrei-comp-link-inverse-pressed-container-color);
364
+ --_link-pressed-label: var(--tanrei-comp-link-inverse-pressed-label-color);
365
+ --_link-pressed-icon: var(--tanrei-comp-link-inverse-pressed-icon-color);
366
+ --_link-disabled-container: var(--tanrei-comp-link-inverse-disabled-container-color);
367
+ --_link-disabled-label: var(--tanrei-comp-link-inverse-disabled-label-color);
368
+ --_link-disabled-icon: var(--tanrei-comp-link-inverse-disabled-icon-color);
369
+ }
370
+ &:where([aria-current]:not([aria-current='false'])) {
371
+ --_link-container: var(--tanrei-comp-link-standard-current-container-color);
372
+ --_link-label: var(--tanrei-comp-link-standard-current-label-color);
373
+ --_link-icon: var(--tanrei-comp-link-standard-current-icon-color);
374
+ --_link-hovered-container: var(--tanrei-comp-link-standard-hovered-current-container-color);
375
+ --_link-hovered-label: var(--tanrei-comp-link-standard-hovered-current-label-color);
376
+ --_link-hovered-icon: var(--tanrei-comp-link-standard-hovered-current-icon-color);
377
+ --_link-focused-container: var(--tanrei-comp-link-standard-focused-current-container-color);
378
+ --_link-focused-label: var(--tanrei-comp-link-standard-focused-current-label-color);
379
+ --_link-focused-icon: var(--tanrei-comp-link-standard-focused-current-icon-color);
380
+ --_link-pressed-container: var(--tanrei-comp-link-standard-pressed-current-container-color);
381
+ --_link-pressed-label: var(--tanrei-comp-link-standard-pressed-current-label-color);
382
+ --_link-pressed-icon: var(--tanrei-comp-link-standard-pressed-current-icon-color);
383
+ --_link-disabled-container: var(--tanrei-comp-link-standard-disabled-current-container-color);
384
+ --_link-disabled-label: var(--tanrei-comp-link-standard-disabled-current-label-color);
385
+ --_link-disabled-icon: var(--tanrei-comp-link-standard-disabled-current-icon-color);
386
+ }
387
+ &:where([data-variant='inverse'][aria-current]:not([aria-current='false'])) {
388
+ --_link-container: var(--tanrei-comp-link-inverse-current-container-color);
389
+ --_link-label: var(--tanrei-comp-link-inverse-current-label-color);
390
+ --_link-icon: var(--tanrei-comp-link-inverse-current-icon-color);
391
+ --_link-hovered-container: var(--tanrei-comp-link-inverse-hovered-current-container-color);
392
+ --_link-hovered-label: var(--tanrei-comp-link-inverse-hovered-current-label-color);
393
+ --_link-hovered-icon: var(--tanrei-comp-link-inverse-hovered-current-icon-color);
394
+ --_link-focused-container: var(--tanrei-comp-link-inverse-focused-current-container-color);
395
+ --_link-focused-label: var(--tanrei-comp-link-inverse-focused-current-label-color);
396
+ --_link-focused-icon: var(--tanrei-comp-link-inverse-focused-current-icon-color);
397
+ --_link-pressed-container: var(--tanrei-comp-link-inverse-pressed-current-container-color);
398
+ --_link-pressed-label: var(--tanrei-comp-link-inverse-pressed-current-label-color);
399
+ --_link-pressed-icon: var(--tanrei-comp-link-inverse-pressed-current-icon-color);
400
+ --_link-disabled-container: var(--tanrei-comp-link-inverse-disabled-current-container-color);
401
+ --_link-disabled-label: var(--tanrei-comp-link-inverse-disabled-current-label-color);
402
+ --_link-disabled-icon: var(--tanrei-comp-link-inverse-disabled-current-icon-color);
403
+ }
404
+ /* A variant the system does not have is the default one (LNK-21): no rule above names it. */
405
+
406
+ /* ── The link (LNK-2 to LNK-5) ───────────────────────────────────────────────────────────────────────────────── */
407
+ --_link-now-container: var(--_link-container);
408
+ --_link-now-label: var(--_link-label);
409
+ --_link-shape: var(--tanrei-comp-link-container-shape);
410
+ --_link-gap: var(--tanrei-comp-link-container-gap);
411
+ --_link-target: var(--tanrei-sys-target-pointer);
412
+ /* The room a glyph or the mark stands in: the size of the text and the gap — none where icons.css is not loaded. */
413
+ --_link-room: calc((1em + var(--_link-gap)) * var(--tanrei-icons, 0));
414
+ --tanrei-corner-radius: var(--_link-shape);
415
+ --tanrei-corner-pill: 0;
416
+ position: relative;
417
+ isolation: isolate;
418
+ /* LNK-2: no text style of its own — family, size, weight, line height and letter spacing are the text's. */
419
+ color: var(--_link-now-label);
420
+ /* LNK-5: the box of its text on each line, behind it; it takes no room. Its color is the present state's, which
421
+ changes over the state motion (LNK-11) by the background's own transition. */
422
+ background-color: var(--_link-now-container);
423
+ /* The hold of a press that no script answers (LNK-8). While the anchor is held down, and for press-hold after, the
424
+ pressed container is drawn as a layer of its own — an image of that one color — and the state's color under it
425
+ is not drawn: the pressed color stands in the state's place, as it does with the script, and is not laid over
426
+ it. Both are said by two names that only a press changes and that no one registers; each steps back after
427
+ press-hold (`transition-behavior: allow-discrete`), and the two properties that read them have no transition,
428
+ so they follow the names frame by frame. The background's COLOR is never part of the hold: a property that
429
+ transitions starts its transition when the press ends — toward the value it has without the hold, which a
430
+ transition's start does not count — and would fade the pressed color while it is being held. The second layer is there for its clip alone:
431
+ a background's color is clipped as its last layer is, and `text` leaves it behind the label's own glyphs. */
432
+ --_link-held-image: none;
433
+ --_link-held-clip: border-box;
434
+ background-image: var(--_link-held-image);
435
+ background-clip: var(--_link-held-clip);
436
+ -webkit-box-decoration-break: clone;
437
+ box-decoration-break: clone;
438
+ /* LNK-3: underlined by the underline tokens, in the label's color, under the text only. LNK-27: the line is
439
+ always there and its color is the choice — the label's at rest and in every state under `always`, the first
440
+ value and what stands where nothing below names another. */
441
+ --_link-rule-rest: var(--_link-system-rest, currentcolor);
442
+ --_link-rule-active: var(--_link-system-active, currentcolor);
443
+ --_link-rule: var(--_link-rule-rest);
444
+ text-decoration-line: underline;
445
+ text-decoration-color: var(--_link-rule);
446
+ text-decoration-thickness: var(--tanrei-comp-link-underline-width);
447
+ text-underline-offset: var(--tanrei-comp-link-underline-offset);
448
+ /* LNK-32: the site's picture is drawn for an external link alone (below). */
449
+ --_link-site-icon: none;
450
+ /* LNK-33: the arrow of an external link is drawn unless the marks are turned off (below). (In the line, as the
451
+ mark of a new context is: a block's place out of the line would be the start of the next one.) */
452
+ --_link-arrow: var(--_link-system-arrow, inline-flex);
453
+ /* The room the picture stands in: the size of the text and the gap. (It needs no icon font.) */
454
+ --_link-picture-room: calc((1em + var(--_link-gap)) * var(--_link-system-pictures, 1));
455
+ /* LNK-4: an address longer than the line breaks inside itself. */
456
+ overflow-wrap: break-word;
457
+ /* LNK-26: a phrase of its sentence, in that sentence's direction, reordering nothing beside it. */
458
+ unicode-bidi: isolate;
459
+ -webkit-tap-highlight-color: transparent;
460
+ /* LNK-11; and the hold of a press that no script answers: it stands for press-hold, then gives way to the state
461
+ under it at once (a step: the two names are no numbers to move through). */
462
+ /* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time.) */
463
+ transition:
464
+ --_link-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
465
+ --_link-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold),
466
+ background-color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
467
+ color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
468
+ text-decoration-color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
469
+ opacity var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing);
470
+ transition-behavior: allow-discrete;
471
+ @media (prefers-reduced-motion: reduce) {
472
+ transition:
473
+ --_link-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
474
+ --_link-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold);
475
+ transition-behavior: allow-discrete;
476
+ }
477
+ @media (pointer: coarse) {
478
+ --_link-target: var(--tanrei-sys-target-touch);
479
+ }
480
+ /* LNK-10: the corners, eased by sys.shape.corner-smoothing. */
481
+ & {
482
+ --tanrei-corner-pill: 0;
483
+ }
484
+ & {
485
+ --_corner-scale: 1;
486
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
487
+ }
488
+ @supports (corner-shape: superellipse(log(2, 2))) {
489
+ & {
490
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
491
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
492
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
493
+ }
494
+ }
495
+ &::before,
496
+ &::after {
497
+ corner-shape: inherit;
498
+ }
499
+
500
+ /* LNK-26: a link that stands by itself is text of its own direction, by its first strong character. (Not one
501
+ with a glyph, the mark or the marks of an external link: each is placed from where the text's own order puts
502
+ it, which must be the layout's — README, "Link".) */
503
+ &:where([data-standalone]:not([data-standalone='false'], :has(> .tanrei-icon), [target='_blank' i], [data-external]:not([data-external='false']))) {
504
+ unicode-bidi: plaintext;
505
+ }
506
+
507
+ /* ── When the underline is drawn (LNK-27, LNK-28) ────────────────────────────────────────────────────────────── */
508
+ /* The design system's choice, or a region's: the component token, as the link's parent holds it… (One question
509
+ for every link, and the second only where the first is answered yes: each is asked of every anchor of a page,
510
+ and a long page of prose pays for each — prose.perf.test.ts.) */
511
+ @container style(--tanrei-comp-link-underline-visibility: hover) or style(--tanrei-comp-link-underline-visibility: never) {
512
+ --_link-rule-rest: transparent;
513
+ @container style(--tanrei-comp-link-underline-visibility: never) {
514
+ --_link-rule-active: transparent;
515
+ }
516
+ }
517
+ /* (For a browser without style queries the name the script wrote on the document's root has already answered:
518
+ `--_link-system-rest` and `--_link-system-active`, at the end of this file.) */
519
+ /* One link set apart, whatever the tokens say. A value that is none of the three is auto: no rule names it. */
520
+ &:where([data-underline='always']) {
521
+ --_link-rule-rest: currentcolor;
522
+ --_link-rule-active: currentcolor;
523
+ }
524
+ &:where([data-underline='hover']) {
525
+ --_link-rule-rest: transparent;
526
+ --_link-rule-active: currentcolor;
527
+ }
528
+ &:where([data-underline='never']) {
529
+ --_link-rule-rest: transparent;
530
+ --_link-rule-active: transparent;
531
+ }
532
+
533
+ /* ── A glyph beside the label, the mark, and the marks of an external link (LNK-13, LNK-14, LNK-31, LNK-32) ──── */
534
+ /* A leading glyph: room at the start. */
535
+ &:where(:has(> .tanrei-icon)) {
536
+ padding-inline-start: var(--_link-room);
537
+ -webkit-box-decoration-break: slice;
538
+ box-decoration-break: slice;
539
+ }
540
+ /* A trailing glyph: room at the end, and no mark — the product has chosen what that place shows. */
541
+ &:where([data-icon-position='trailing']:has(> .tanrei-icon)) {
542
+ padding-inline: 0 var(--_link-room);
543
+ }
544
+ /* A new context, or another site: room after the label for the one glyph that says so (LNK-13, LNK-31). */
545
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon))) {
546
+ padding-inline-end: var(--_link-room);
547
+ -webkit-box-decoration-break: slice;
548
+ box-decoration-break: slice;
549
+ }
550
+ /* Another site, with its picture (LNK-32): the picture is drawn, and has its room before the label from the
551
+ first frame — whether or not it ever arrives. The product's own leading glyph stands in that place instead. */
552
+ &:where([data-external]:not([data-external='false'])) {
553
+ /* In the line, as a glyph is: the place it would have had is then beside the label, not at the line's start. */
554
+ --_link-site-icon: var(--_link-system-site-icon, inline-block);
555
+ }
556
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], [data-icon-position='trailing']:has(> .tanrei-icon))) {
557
+ padding-inline-end: calc(var(--_link-room) * var(--_link-system-arrows, 1));
558
+ }
559
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon)) {
560
+ padding-inline-start: var(--_link-picture-room);
561
+ -webkit-box-decoration-break: slice;
562
+ box-decoration-break: slice;
563
+ }
564
+ &:where(:not([data-icon-position='trailing']):has(> .tanrei-icon)) {
565
+ --_link-site-icon: none;
566
+ padding-inline-start: var(--_link-room);
567
+ }
568
+ /* The glyph: a box as large as the text's font size, centred on its line, in the label's color, outlined
569
+ (sys.icon.family.unselected and fill.unselected, whatever the link's state says of a selection). It is out of
570
+ the line — at the place it would have had, moved into its room — so no line break comes between it and the
571
+ word beside it, and no underline is drawn under it. */
572
+ & > .tanrei-icon.tanrei-icon {
573
+ --_size: 1em;
574
+ --_fill: var(--tanrei-sys-icon-fill-unselected);
575
+ --_family: var(--tanrei-sys-icon-family-unselected);
576
+ position: absolute;
577
+ /* Centred on the line of the link's text. That line is the anchor's, and the glyph's own is its box: `1lh` said
578
+ in `line-height` is the PARENT's line, as a length, and from there on it is this box's `1lh`. The glyph's one
579
+ line of text is then taller than its box, and is centred on it — where a line as tall as the box put it. */
580
+ display: inline-flex;
581
+ align-items: center;
582
+ line-height: 1lh;
583
+ margin-block-start: calc((1lh - 1em) / 2);
584
+ margin-inline: calc(-1 * var(--_link-room)) 0;
585
+ vertical-align: baseline;
586
+ }
587
+ &:where([data-icon-position='trailing']) > .tanrei-icon.tanrei-icon {
588
+ margin-inline: var(--_link-gap) 0;
589
+ }
590
+ /* The site's picture (LNK-32): the product's own `<img>`, the anchor's first child, placed as a leading glyph is —
591
+ a square box as large as the text's font size, centred on its line, the whole picture inside it. Decoration:
592
+ `alt=""` is the product's to write. It is a picture in every state and every direction: nothing here recolors
593
+ or mirrors it. Its corners are comp.link.site-icon.shape, eased as the anchor's are (the curve is inherited). */
594
+ & > :where(img.tanrei-link-site-icon) {
595
+ display: var(--_link-site-icon);
596
+ position: absolute;
597
+ inline-size: 1em;
598
+ block-size: 1em;
599
+ max-inline-size: none;
600
+ /* The line of the link's text (see the glyph, above): a picture has no line of its own to lose. */
601
+ line-height: 1lh;
602
+ margin-block-start: calc((1lh - 1em) / 2);
603
+ margin-inline: calc(-1 * var(--_link-picture-room)) 0;
604
+ border-radius: calc(var(--tanrei-comp-link-site-icon-shape) * var(--_corner-scale, 1));
605
+ corner-shape: inherit;
606
+ object-fit: contain;
607
+ -webkit-user-select: none;
608
+ user-select: none;
609
+ }
610
+ /* A picture that could not be loaded keeps its room and draws nothing: the script marks it. (No selector names a
611
+ broken picture. Without the script Chromium draws nothing for one whose alternative is empty; Firefox and
612
+ WebKit draw their own outline of it — README, "Link".) */
613
+ & > :where(img.tanrei-link-site-icon[data-failed]) {
614
+ visibility: hidden;
615
+ }
616
+ /* Right to left: the browsers do not agree on the place an element out of the line would have had inside an
617
+ inline box, so the glyph stands at the edge of the link itself — the right edge of its first part when it
618
+ leads, the left edge of its last part when it trails — where its room is. (The leading edge is where every
619
+ engine says it is. The trailing one is not, for a link that runs over several lines: see "The end of a
620
+ right-to-left link", below the mark.) */
621
+ &:where(:dir(rtl)) > .tanrei-icon.tanrei-icon {
622
+ right: 0;
623
+ margin-inline: 0;
624
+ }
625
+ &:where(:dir(rtl)) > :where(img.tanrei-link-site-icon) {
626
+ right: 0;
627
+ margin-inline: 0;
628
+ }
629
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon {
630
+ right: auto;
631
+ left: 0;
632
+ }
633
+ /* The mark: ONE glyph after the label, drawn as the trailing glyph is and mirrored in a
634
+ right-to-left layout, as the icon set says of both names — arrow_outward for a link that leaves the site and
635
+ opens where the person is (LNK-31), open_in_new for one that opens a new context, external or not (LNK-13).
636
+ One pseudo-element, so the two are never both drawn. Decorative: aria-description says it. (The glyph's
637
+ declarations are icons.css's.) */
638
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
639
+ content: 'arrow_outward';
640
+ content: 'arrow_outward' / '';
641
+ /* (A flex box whose one line is the anchor's line high, centred on a box the size of the text: see the glyph.) */
642
+ display: inline-flex;
643
+ align-items: center;
644
+ position: absolute;
645
+ overflow: hidden;
646
+ inline-size: 1em;
647
+ block-size: 1em;
648
+ margin-block-start: calc((1lh - 1em) / 2);
649
+ margin-inline: var(--_link-gap) 0;
650
+ font-family: var(--tanrei-sys-icon-family-unselected);
651
+ font-style: normal;
652
+ font-weight: normal;
653
+ line-height: 1lh;
654
+ letter-spacing: normal;
655
+ text-transform: none;
656
+ white-space: nowrap;
657
+ word-wrap: normal;
658
+ direction: ltr;
659
+ -webkit-user-select: none;
660
+ user-select: none;
661
+ pointer-events: none;
662
+ font-feature-settings: 'liga';
663
+ -webkit-font-smoothing: antialiased;
664
+ font-optical-sizing: auto;
665
+ font-variation-settings:
666
+ 'FILL' var(--tanrei-sys-icon-fill-unselected),
667
+ 'wght' var(--tanrei-sys-icon-weight),
668
+ 'GRAD' 0;
669
+ opacity: var(--tanrei-icons, 0);
670
+ }
671
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number (not
672
+ every engine draws font-optical-sizing: auto): the arithmetic and the condition are src/styles/icons.ts's,
673
+ written in place by the build (writeGlyphAxes). */
674
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
675
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
676
+ font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-unselected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(1em, 1px)), var(--tanrei-sys-icon-optical-size-max));
677
+ }
678
+ }
679
+ &:where([target='_blank' i]:not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
680
+ content: 'open_in_new';
681
+ content: 'open_in_new' / '';
682
+ }
683
+ /* The arrow is drawn while comp.link.external.marks is not none (below). The anchor says so and its own box reads
684
+ it: a style query asked for a pseudo-element is not answered alike by every engine. */
685
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i]))::after {
686
+ display: var(--_link-arrow);
687
+ }
688
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
689
+ left: 0;
690
+ margin-inline: 0;
691
+ transform: scaleX(-1);
692
+ }
693
+
694
+ /* ── The end of a right-to-left link: a trailing glyph and the mark, placed as each engine can (LNK-14) ──────── */
695
+ /* `left: 0` above is the left edge of the link's LAST part — of the box CSS defines for an inline box that runs
696
+ over several lines, from the right edge of its first part to the left edge of its last. That box has a width
697
+ below nothing when the last line of the link ends before the place its first line began (a link that begins
698
+ late on a line and ends early on a later one: any link in a narrow paragraph, at one width in four). WebKit
699
+ keeps the box as defined, and the rule above is right there at every width. Blink and Gecko give it no width,
700
+ at the right edge of the FIRST part, and the glyph was drawn there — on the last line, far from the label and
701
+ over the words that follow. Neither has one rule in common with WebKit that is right:
702
+ - Blink places an element out of the line where it would have stood (as every engine does left to right),
703
+ and WebKit and Gecko do not, right to left;
704
+ - Gecko places it rightly only IN the line, where it breaks no line before a box that follows a word
705
+ without a space, and Blink and WebKit do break there (the glyph would begin a line).
706
+ So each engine is named by a property only it has, and given the one way that is right in it; a browser
707
+ named by neither has the rule above, which is CSS's own. The three are measured against one another at every
708
+ width, in each direction and with labels of each direction, by link.test.ts ("never apart from it"). */
709
+ @supports (-webkit-app-region: none) {
710
+ /* Blink: where it would have stood — after the label's last character, which right to left is its left —
711
+ the gap from it. */
712
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon,
713
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
714
+ left: auto;
715
+ margin-right: var(--_link-gap);
716
+ }
717
+ }
718
+ @supports (-moz-appearance: none) {
719
+ /* Gecko: in the line, after the label's last character, taking no room of its own — drawn in the room the
720
+ anchor keeps after it, on the middle of the line and no taller than the text's own box. */
721
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon,
722
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
723
+ position: relative;
724
+ top: calc((1lh - 1em) / 2);
725
+ left: auto;
726
+ margin-block-start: 0;
727
+ margin-right: var(--_link-gap);
728
+ margin-left: calc(-1em - var(--_link-gap));
729
+ vertical-align: top;
730
+ }
731
+ }
732
+
733
+ /* ── Which marks an external link shows (LNK-33): comp.link.external.marks — all, arrow, none ────────────────── */
734
+ /* arrow: no picture, and no room for one. none: neither mark — the link is drawn as one that stays on the site
735
+ (the mark of a new context is not touched: `--_link-arrow` is read by the arrow alone). Read as the underline
736
+ choice is: from the link's parent — and every rule here names an external link, so the question is asked of
737
+ those alone. (Without style queries the name on the document's root has already answered, through the
738
+ `--_link-system-*` values at the end of this file: the picture, the arrow and their rooms.) */
739
+ @container style(--tanrei-comp-link-external-marks: arrow) or style(--tanrei-comp-link-external-marks: none) {
740
+ &:where([data-external]:not([data-external='false'])) {
741
+ --_link-site-icon: none;
742
+ }
743
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon):not(:has(> .tanrei-icon))) {
744
+ padding-inline-start: 0;
745
+ }
746
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon)[data-icon-position='trailing']) {
747
+ padding-inline-start: 0;
748
+ }
749
+ }
750
+ @container style(--tanrei-comp-link-external-marks: none) {
751
+ &:where([data-external]:not([data-external='false'])) {
752
+ --_link-arrow: none;
753
+ }
754
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], [data-icon-position='trailing']:has(> .tanrei-icon))) {
755
+ padding-inline-end: 0;
756
+ }
757
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], :has(> .tanrei-icon))) {
758
+ -webkit-box-decoration-break: clone;
759
+ box-decoration-break: clone;
760
+ }
761
+ &:where([data-external]:not([data-external='false'])[data-standalone]:not([data-standalone='false'], [target='_blank' i], :has(> .tanrei-icon))) {
762
+ unicode-bidi: plaintext;
763
+ }
764
+ }
765
+
766
+ /* ── The current link (LNK-18): no underline, the emphasized weight of the text style it sits in ─────────────── */
767
+ &:where([aria-current]:not([aria-current='false'])) {
768
+ font-weight: var(--tanrei-text-emphasized-weight, bolder);
769
+ text-decoration-line: none;
770
+ }
771
+
772
+ /* ── A glyph alone (LNK-16): a square one line of its text high, no underline, no mark, no picture ───────────── */
773
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor) {
774
+ --_link-site-icon: none;
775
+ --_link-label: var(--_link-icon);
776
+ --_link-hovered-label: var(--_link-hovered-icon);
777
+ --_link-focused-label: var(--_link-focused-icon);
778
+ --_link-pressed-label: var(--_link-pressed-icon);
779
+ --_link-disabled-label: var(--_link-disabled-icon);
780
+ display: inline-flex;
781
+ align-items: center;
782
+ justify-content: center;
783
+ inline-size: 1lh;
784
+ block-size: 1lh;
785
+ padding: 0;
786
+ vertical-align: top;
787
+ text-decoration-line: none;
788
+ }
789
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor) > .tanrei-icon.tanrei-icon {
790
+ position: static;
791
+ margin: 0;
792
+ }
793
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor)::after {
794
+ content: none;
795
+ }
796
+
797
+ /* ── The hit area (LNK-17) ───────────────────────────────────────────────────────────────────────────────────── */
798
+ /* In a sentence it is the link's own text. By itself, or a glyph alone, it reaches the minimum target on both
799
+ axes around the link, and takes no room. */
800
+ &:where([data-standalone]:not([data-standalone='false']), [aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor):where(:any-link)::before {
801
+ content: '';
802
+ position: absolute;
803
+ inset-block: min(0px, calc((100% - var(--_link-target)) / 2));
804
+ inset-inline: min(0px, calc((100% - var(--_link-target)) / 2));
805
+ }
806
+
807
+ /* ── States (LNK-6 to LNK-9): pressed over focused over hovered, each from its own tokens ────────────────────── */
808
+ @media (hover: hover) {
809
+ &:where(:any-link:hover) {
810
+ --_link-rule: var(--_link-rule-active);
811
+ --_link-now-container: var(--_link-hovered-container);
812
+ --_link-now-label: var(--_link-hovered-label);
813
+ --_link-shape: var(--tanrei-comp-link-hovered-container-shape);
814
+ opacity: var(--tanrei-comp-link-hovered-opacity);
815
+ }
816
+ }
817
+ /* LNK-7: the focus indicator, around the link's part of each line; never animated, never for a pointer. */
818
+ &:where(:any-link:focus-visible) {
819
+ --_link-rule: var(--_link-rule-active);
820
+ --_link-now-container: var(--_link-focused-container);
821
+ --_link-now-label: var(--_link-focused-label);
822
+ --_link-shape: var(--tanrei-comp-link-focused-container-shape);
823
+ --_link-focus-inner-edge: calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width));
824
+ opacity: var(--tanrei-comp-link-focused-opacity);
825
+ outline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
826
+ outline-offset: var(--_link-focus-inner-edge);
827
+ /* The inner stroke, where the system has one: from the container to the outer stroke (an inline box has no
828
+ second ring to draw it with). The second term is 0 where the inner width is. */
829
+ box-shadow: 0 0 0 min(var(--_link-focus-inner-edge), calc(var(--tanrei-sys-focus-inner-width) * 1000)) var(--tanrei-sys-color-focus-ring-inner);
830
+ }
831
+ /* LNK-10, focus-style: glow — the same two colors as a halo; read by a style query, and from data-focus-style
832
+ (written by the script when focus arrives) where there are none. */
833
+ @container style(--tanrei-sys-behavior-focus-style: glow) {
834
+ &:where(:any-link:focus-visible) {
835
+ outline-color: transparent;
836
+ box-shadow:
837
+ 0 0 var(--tanrei-sys-focus-inner-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width)) var(--tanrei-sys-color-focus-ring-inner),
838
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
839
+ }
840
+ }
841
+ &:where(:any-link[data-focus-style='glow']:focus-visible) {
842
+ outline-color: transparent;
843
+ box-shadow:
844
+ 0 0 var(--tanrei-sys-focus-inner-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width)) var(--tanrei-sys-color-focus-ring-inner),
845
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
846
+ }
847
+ /* LNK-8, without script: the overlay at once, and the two names keep the container for press-hold after. */
848
+ &:where(:any-link:active:not([data-pressed])) {
849
+ --_link-rule: var(--_link-rule-active);
850
+ --_link-held-image: linear-gradient(var(--_link-pressed-container), var(--_link-pressed-container)), none;
851
+ --_link-held-clip: border-box, text;
852
+ --_link-now-label: var(--_link-pressed-label);
853
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
854
+ opacity: var(--tanrei-comp-link-pressed-opacity);
855
+ transition-duration: 0s;
856
+ transition-delay: 0s;
857
+ }
858
+ /* LNK-8, LNK-9, with the script: `data-pressed` names the feedback. `none` changes nothing at all. */
859
+ &:where([data-pressed]:not([data-pressed='none'])) {
860
+ transition-duration: 0s;
861
+ }
862
+ &:where([data-pressed='overlay']) {
863
+ --_link-rule: var(--_link-rule-active);
864
+ --_link-now-container: var(--_link-pressed-container);
865
+ --_link-now-label: var(--_link-pressed-label);
866
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
867
+ opacity: var(--tanrei-comp-link-pressed-opacity);
868
+ }
869
+ /* ripple, dim: everything but the container color, which stays with the state under the press. */
870
+ &:where([data-pressed='ripple'], [data-pressed='dim']) {
871
+ --_link-rule: var(--_link-rule-active);
872
+ --_link-now-label: var(--_link-pressed-label);
873
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
874
+ opacity: var(--tanrei-comp-link-pressed-opacity);
875
+ }
876
+ /* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color,
877
+ clipped to the container and to a circle around the point of contact, under the text. */
878
+ & > :where(.ripple) {
879
+ position: absolute;
880
+ z-index: -1;
881
+ inset: 0;
882
+ border-radius: inherit;
883
+ corner-shape: inherit;
884
+ background: var(--_link-pressed-container);
885
+ pointer-events: none;
886
+ clip-path: circle(var(--_r) at var(--_x) var(--_y));
887
+ animation: tanrei-link-ripple var(--tanrei-comp-link-motion-feedback-duration) var(--tanrei-comp-link-motion-state-easing) both;
888
+ transition: opacity var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing);
889
+ }
890
+ & > :where(.ripple.leaving) {
891
+ opacity: 0;
892
+ }
893
+ @media (prefers-reduced-motion: reduce) {
894
+ & > :where(.ripple) {
895
+ animation: none;
896
+ transition: none;
897
+ }
898
+ }
899
+
900
+ /* ── Disabled (LNK-19): the anchor without href, with role="link" and aria-disabled="true" ───────────────────── */
901
+ &:where([aria-disabled='true']) {
902
+ --_link-now-container: var(--_link-disabled-container);
903
+ --_link-now-label: var(--_link-disabled-label);
904
+ --_link-shape: var(--tanrei-comp-link-disabled-container-shape);
905
+ opacity: var(--tanrei-comp-link-disabled-opacity);
906
+ cursor: default;
907
+ }
908
+ /* A picture has no color to change: it recedes with the label by opacity. */
909
+ &:where([aria-disabled='true']) > :where(img.tanrei-link-site-icon) {
910
+ opacity: var(--tanrei-comp-link-site-icon-disabled-opacity);
911
+ }
912
+
913
+ /* ── Forced colors (LNK-22): the platform's link color, its disabled text color, its highlight for focus ─────── */
914
+ @media (forced-colors: active) {
915
+ /* The container is the platform's, and so is a press: no layer of the link's own. */
916
+ background-image: none;
917
+ background-clip: border-box;
918
+ --_link-now-label: LinkText;
919
+ /* The underline is drawn at rest whatever was chosen: the colors are the person's, and nothing any longer
920
+ holds the link's apart from the text's (LNK-29). The current link and a glyph alone still have no line. */
921
+ --_link-rule: currentcolor;
922
+ &:where([aria-disabled='true']) {
923
+ --_link-now-label: GrayText;
924
+ }
925
+ &:where(:any-link:focus-visible) {
926
+ outline-color: Highlight;
927
+ }
928
+ }
929
+
930
+ /* ── Not a link (LNK-21): no destination — or an empty one, or a script — is drawn as the text around it ─────── */
931
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i]) {
932
+ --_link-site-icon: none;
933
+ display: inline;
934
+ inline-size: auto;
935
+ block-size: auto;
936
+ padding: 0;
937
+ background-color: transparent;
938
+ color: inherit;
939
+ font-weight: inherit;
940
+ text-decoration-line: none;
941
+ opacity: unset;
942
+ outline: none;
943
+ box-shadow: none;
944
+ cursor: inherit;
945
+ transition: none;
946
+ }
947
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i]) > .tanrei-icon.tanrei-icon {
948
+ /* In the line, as icons.css draws a glyph: its own box and its own line. */
949
+ display: inline-block;
950
+ position: static;
951
+ margin: 0;
952
+ line-height: 1;
953
+ vertical-align: baseline;
954
+ }
955
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i])::before,
956
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i])::after {
957
+ content: none;
958
+ }
959
+
960
+ /* ── Hidden: the rules above that name a display (a glyph alone, what is not a link) are an author's, and beat the
961
+ browser's own for the attribute — said last, so that the attribute still means no box ───────────────────────── */
962
+ &:where([hidden]:not([hidden='until-found' i])) {
963
+ display: none;
964
+ }
965
+ }
966
+
967
+ /* ── Direction (PRS-24 to PRS-26) ───────────────────────────────────────────────────────────────── */
968
+ /* A block's lines begin at the start edge of the layout — or of the block, where the content states its direction. */
969
+ :where(h1), :where(h2), :where(h3), :where(h4), :where(h5), :where(h6), :where(p), :where(li), :where(dt), :where(dd), :where(.tanrei-prose-heading) {
970
+ text-align: left;
971
+ }
972
+ :where(h1):where(:dir(rtl)), :where(h2):where(:dir(rtl)), :where(h3):where(:dir(rtl)), :where(h4):where(:dir(rtl)), :where(h5):where(:dir(rtl)), :where(h6):where(:dir(rtl)), :where(p):where(:dir(rtl)), :where(li):where(:dir(rtl)), :where(dt):where(:dir(rtl)), :where(dd):where(:dir(rtl)), :where(.tanrei-prose-heading):where(:dir(rtl)) {
973
+ text-align: right;
974
+ }
975
+ /* A block that states no direction is text of its own direction, by its first strong character; one that states
976
+ it (`dir`), and what is inside one, is left to it. */
977
+ :where(h1):where(:not([dir], .tanrei-prose [dir] *)), :where(h2):where(:not([dir], .tanrei-prose [dir] *)), :where(h3):where(:not([dir], .tanrei-prose [dir] *)), :where(h4):where(:not([dir], .tanrei-prose [dir] *)), :where(h5):where(:not([dir], .tanrei-prose [dir] *)), :where(h6):where(:not([dir], .tanrei-prose [dir] *)), :where(p):where(:not([dir], .tanrei-prose [dir] *)), :where(li):where(:not([dir], .tanrei-prose [dir] *)), :where(dt):where(:not([dir], .tanrei-prose [dir] *)), :where(dd):where(:not([dir], .tanrei-prose [dir] *)) {
978
+ unicode-bidi: plaintext;
979
+ }
980
+
981
+ /* ── Blocks ──────────────────────────────────────────────────────────────────────────────────────────────────── */
982
+ /* No element brings a space of its own; the rhythm below gives each the one space before it. */
983
+ :where(h1), :where(h2), :where(h3), :where(h4), :where(h5), :where(h6), :where(p), :where(ul), :where(ol), :where(dl), :where(dd), :where(blockquote), :where(figure), :where(pre), :where(hr) {
984
+ margin-block: 0;
985
+ }
986
+ /* …nor an inset: a rule narrower than the prose stays at the start edge, never centred (PRS-18). */
987
+ :where(dd), :where(blockquote), :where(figure), :where(hr) {
988
+ margin-inline: 0;
989
+ }
990
+ /* PRS-18: a text block is no wider than the measure, at the start edge; anything else takes the full width. A
991
+ callout is a block of text in a box of its own, so it is kept to the measure too (it has none of its own, CLO-22). */
992
+ :where(h1), :where(h2), :where(h3), :where(h4), :where(h5), :where(h6), :where(p), :where(ul), :where(ol), :where(dl), :where(blockquote), :where(hr), :where(figcaption), :where([data-footnotes]), :where(.footnotes), :where(.tanrei-prose-heading), :where(tanrei-callout) {
993
+ box-sizing: border-box;
994
+ max-inline-size: var(--_prose-measure);
995
+ }
996
+ /* PRS-15: a picture scales down with its proportions kept. (Not the picture of the site an external link leads
997
+ to: that one is a part of its link, sized by the link's rules — LNK-32.) */
998
+ :where(img:not(.tanrei-link-site-icon)), :where(video) {
999
+ max-inline-size: 100%;
1000
+ block-size: auto;
1001
+ }
1002
+
1003
+ /* PRS-8, PRS-9: a list — its items set in, the marker in that space, by depth. */
1004
+ :where(ul), :where(ol) {
1005
+ /* PRS-8: the space between two items of this list (below: a list in which an item holds blocks takes another). */
1006
+ --_prose-item-gap: var(--tanrei-comp-prose-item-gap);
1007
+ padding-inline-start: var(--tanrei-comp-prose-list-indent);
1008
+ list-style-position: outside;
1009
+ }
1010
+ /* A dot, a ring, a square, repeating from the fourth depth — nine deep. A rule for a depth also matches every
1011
+ deeper list, so the rules stand in order of depth and the last that matches is the list's own. */
1012
+ :where(ul) {
1013
+ list-style-type: disc;
1014
+ }
1015
+ :where(.tanrei-prose :is(ul, ol) ul) {
1016
+ list-style-type: circle;
1017
+ }
1018
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) ul) {
1019
+ list-style-type: square;
1020
+ }
1021
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1022
+ list-style-type: disc;
1023
+ }
1024
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1025
+ list-style-type: circle;
1026
+ }
1027
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1028
+ list-style-type: square;
1029
+ }
1030
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1031
+ list-style-type: disc;
1032
+ }
1033
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1034
+ list-style-type: circle;
1035
+ }
1036
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ul) {
1037
+ list-style-type: square;
1038
+ }
1039
+ /* A number, a lowercase letter, a lowercase roman numeral, each with a period; `start`, `reversed` and an item's
1040
+ `value` are the browser's. */
1041
+ :where(ol) {
1042
+ list-style-type: decimal;
1043
+ }
1044
+ :where(.tanrei-prose :is(ul, ol) ol) {
1045
+ list-style-type: lower-alpha;
1046
+ }
1047
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) ol) {
1048
+ list-style-type: lower-roman;
1049
+ }
1050
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1051
+ list-style-type: decimal;
1052
+ }
1053
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1054
+ list-style-type: lower-alpha;
1055
+ }
1056
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1057
+ list-style-type: lower-roman;
1058
+ }
1059
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1060
+ list-style-type: decimal;
1061
+ }
1062
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1063
+ list-style-type: lower-alpha;
1064
+ }
1065
+ :where(.tanrei-prose :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) :is(ul, ol) ol) {
1066
+ list-style-type: lower-roman;
1067
+ }
1068
+ /* A marker is drawn in the item's text style; a number in figures of equal width, so the periods line up. */
1069
+ :where(li)::marker {
1070
+ font-variant-numeric: tabular-nums;
1071
+ }
1072
+
1073
+ /* PRS-11: a quote — a line along its start edge for its whole height, its content set in from the line. */
1074
+ :where(blockquote) {
1075
+ border-inline-start: var(--tanrei-comp-prose-quote-line-thickness) solid var(--tanrei-comp-prose-quote-line-color);
1076
+ padding-inline-start: var(--tanrei-comp-prose-quote-inset);
1077
+ }
1078
+
1079
+ /* PRS-12: a thematic break is the divider's line, as wide as the text blocks. */
1080
+ :where(hr) {
1081
+ block-size: 0;
1082
+ border: 0;
1083
+ border-block-start: var(--tanrei-comp-divider-line-thickness) solid var(--tanrei-comp-divider-line-color);
1084
+ }
1085
+
1086
+ /* PRS-13: a description is set in under its term — by a margin, not a padding: the description is a paragraph of
1087
+ its own direction (`unicode-bidi: plaintext`, above), and WebKit draws such a paragraph over its box's inline
1088
+ padding where its direction is not the layout's and the two paddings differ (a left-to-right description in a
1089
+ right-to-left page would stand at the term's edge). */
1090
+ :where(dd) {
1091
+ margin-inline-start: var(--tanrei-comp-prose-list-indent);
1092
+ }
1093
+
1094
+ /* PRS-14: the notes follow a rule at the end of the text; the label a renderer writes for assistive technology
1095
+ (`.sr-only`) is hidden from sight only. */
1096
+ :where([data-footnotes]), :where(.footnotes) {
1097
+ /* The hidden label is laid out against its section: against nothing, a scroll box the prose stands in would not
1098
+ cut it, and the page would scroll sideways to reach it (src/scroll-box.test.ts). */
1099
+ position: relative;
1100
+ border-block-start: var(--tanrei-comp-divider-line-thickness) solid var(--tanrei-comp-divider-line-color);
1101
+ padding-block-start: var(--tanrei-comp-prose-rule-gap);
1102
+ }
1103
+ :where(:is([data-footnotes], .footnotes) > .sr-only) {
1104
+ position: absolute;
1105
+ overflow: hidden;
1106
+ clip-path: inset(50%);
1107
+ white-space: nowrap;
1108
+ }
1109
+
1110
+ /* ── Rhythm (PRS-5 to PRS-8, PRS-11 to PRS-13): the one space before an element, by what precedes it ─────────── */
1111
+ /* PRS-5: two blocks that follow each other. A block is a child of the prose, of a wrapper, of a quote or of a
1112
+ description; what cannot be seen (a style or script element) is not a neighbour. */
1113
+ :where(:is(.tanrei-prose, section, article, div, blockquote, dd) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1114
+ margin-block-start: var(--tanrei-comp-prose-block-gap);
1115
+ }
1116
+ /* PRS-11, PRS-13: the blocks inside a quote, and inside a description. */
1117
+ :where(:is(blockquote, dd) > * + *) {
1118
+ margin-block-start: var(--tanrei-comp-prose-nested-gap);
1119
+ }
1120
+ /* PRS-8: the blocks inside one item — after its text, or after its first paragraph: a paragraph that is not the
1121
+ item's first element, and whatever follows a paragraph. (Said from the block's side, with no `:has()`: see HOW
1122
+ IT IS WRITTEN, 4.) */
1123
+ :where(pre):where(li > *), :where(blockquote):where(li > *), :where(table):where(li > *), :where(figure):where(li > *), :where(div):where(li > *), :where(dl):where(li > *), :where(details):where(li > *),
1124
+ :where(p):where(li > :not(:first-child)),
1125
+ :where(li > p ~ *) {
1126
+ margin-block-start: var(--tanrei-comp-prose-nested-gap);
1127
+ }
1128
+ /* PRS-8: items — by their list's gap — and a nested list under its item's text. */
1129
+ :where(li + li) {
1130
+ margin-block-start: var(--_prose-item-gap, var(--tanrei-comp-prose-item-gap));
1131
+ }
1132
+ :where(ul):where(li > *), :where(ol):where(li > *) {
1133
+ margin-block-start: var(--tanrei-comp-prose-item-gap);
1134
+ }
1135
+ /* PRS-8: the items of a list in which any item holds more than one block. Asked ON the list and handed to its
1136
+ items as the list's gap (every list sets its own, so a list inside takes nothing from this one). */
1137
+ :where(ul):where(:has(> li > :is(p, pre, blockquote, table, figure, div, dl) ~ :is(p, pre, blockquote, table, figure, div, dl, hr))), :where(ol):where(:has(> li > :is(p, pre, blockquote, table, figure, div, dl) ~ :is(p, pre, blockquote, table, figure, div, dl, hr))) {
1138
+ --_prose-item-gap: var(--tanrei-comp-prose-nested-gap);
1139
+ }
1140
+ /* PRS-13: a description under its term, and the groups of a description list. */
1141
+ :where(dd):where(dt + *, dd + *) {
1142
+ margin-block-start: var(--tanrei-comp-prose-item-gap);
1143
+ }
1144
+ :where(dd + dt),
1145
+ :where(dl > div + div) {
1146
+ margin-block-start: var(--tanrei-comp-prose-nested-gap);
1147
+ }
1148
+
1149
+ /* PRS-6: a heading after a block takes its own space before. PRS-7: the wrapper that holds the heading — with its
1150
+ anchor, or alone — is spaced as the heading: the wrapper that is named, `tanrei-prose-heading`. A wrapper with no
1151
+ name is a block like any other (see HOW IT IS WRITTEN, on `:has()`). */
1152
+ :where(h1):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h1)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1153
+ margin-block-start: var(--tanrei-comp-prose-heading-1-gap-before);
1154
+ }
1155
+ :where(h2):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h2)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1156
+ margin-block-start: var(--tanrei-comp-prose-heading-2-gap-before);
1157
+ }
1158
+ :where(h3):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h3)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1159
+ margin-block-start: var(--tanrei-comp-prose-heading-3-gap-before);
1160
+ }
1161
+ :where(h4):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h4)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1162
+ margin-block-start: var(--tanrei-comp-prose-heading-4-gap-before);
1163
+ }
1164
+ :where(h5):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h5)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1165
+ margin-block-start: var(--tanrei-comp-prose-heading-5-gap-before);
1166
+ }
1167
+ :where(h6):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.tanrei-prose-heading:has(> h6)):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *) {
1168
+ margin-block-start: var(--tanrei-comp-prose-heading-6-gap-before);
1169
+ }
1170
+ /* PRS-6: whatever follows a heading — another heading included — is its space after from it, in place of any other. */
1171
+ :where(:is(h1, .tanrei-prose-heading:has(> h1)) + *) {
1172
+ margin-block-start: var(--tanrei-comp-prose-heading-1-gap-after);
1173
+ }
1174
+ :where(:is(h2, .tanrei-prose-heading:has(> h2)) + *) {
1175
+ margin-block-start: var(--tanrei-comp-prose-heading-2-gap-after);
1176
+ }
1177
+ :where(:is(h3, .tanrei-prose-heading:has(> h3)) + *) {
1178
+ margin-block-start: var(--tanrei-comp-prose-heading-3-gap-after);
1179
+ }
1180
+ :where(:is(h4, .tanrei-prose-heading:has(> h4)) + *) {
1181
+ margin-block-start: var(--tanrei-comp-prose-heading-4-gap-after);
1182
+ }
1183
+ :where(:is(h5, .tanrei-prose-heading:has(> h5)) + *) {
1184
+ margin-block-start: var(--tanrei-comp-prose-heading-5-gap-after);
1185
+ }
1186
+ :where(:is(h6, .tanrei-prose-heading:has(> h6)) + *) {
1187
+ margin-block-start: var(--tanrei-comp-prose-heading-6-gap-after);
1188
+ }
1189
+
1190
+ /* PRS-12: a rule has its own space above and below, whatever its neighbours are. PRS-14: so do the notes. */
1191
+ :where(hr):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where([data-footnotes]):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *), :where(.footnotes):where(:is(.tanrei-prose, section, article, div, blockquote, dd, li) > :not(style, script, template, link, meta, [hidden]) ~ *),
1192
+ :where(hr + *) {
1193
+ margin-block-start: var(--tanrei-comp-prose-rule-gap);
1194
+ }
1195
+ /* The notes' list begins where the section's own space ends: its hidden label is not a neighbour. */
1196
+ :where(:is([data-footnotes], .footnotes) > .sr-only + *) {
1197
+ margin-block-start: 0;
1198
+ }
1199
+
1200
+ /* ── A task item (PRS-10) ────────────────────────────────────────────────────────────────────────────────────── */
1201
+ /* A renderer writes a disabled checkbox first in the item (or in the item's first paragraph): it stands in the
1202
+ marker's place, its end beside the first line, centred on that line. It takes no press and no focus, being
1203
+ disabled, and assistive technology reads its state with the item. */
1204
+ :where(li:has(> input[type='checkbox']:first-child, > p:first-child > input[type='checkbox']:first-child)) {
1205
+ list-style-type: none;
1206
+ /* The glyph (`::before`, below) is laid out against its item — it stays where it would have stood: against
1207
+ nothing, a scroll box the prose stands in would not cut it (src/scroll-box.test.ts). */
1208
+ position: relative;
1209
+ }
1210
+ /* Out of the line (a float at the line's start, wholly in the list's inset), so that the item's text begins where
1211
+ every other item's does: the space a renderer writes after the box is then the line's first, and is dropped. */
1212
+ :where(input):where(li > [type='checkbox']:first-child, li > p:first-child > [type='checkbox']:first-child) {
1213
+ float: inline-start;
1214
+ box-sizing: border-box;
1215
+ inline-size: var(--tanrei-comp-prose-task-icon-size);
1216
+ block-size: var(--tanrei-comp-prose-task-icon-size);
1217
+ /* The line it stands on is its parent's (the item's, or the item's first paragraph's): a box has no text to lose a line of its own. */
1218
+ line-height: 1lh;
1219
+ margin-block: calc((1lh - var(--tanrei-comp-prose-task-icon-size)) / 2);
1220
+ margin-inline: calc(-1 * (var(--tanrei-comp-prose-task-icon-size) + var(--tanrei-comp-prose-item-gap))) var(--tanrei-comp-prose-item-gap);
1221
+ /* The browser's own box where the icon stylesheet is not loaded; where it is (`--tanrei-icons`, set by
1222
+ icons.css), the glyph below is drawn in its place and the box is not. */
1223
+ opacity: calc(1 - var(--tanrei-icons, 0));
1224
+ }
1225
+ /* The glyph of the system's icon set: check_box_outline_blank, and check_box — in the selected family and fill —
1226
+ when the task is done. Decorative: the checkbox says the state. (The glyph's declarations are icons.css's.) */
1227
+ :where(li:has(> input[type='checkbox']:first-child, > p:first-child > input[type='checkbox']:first-child))::before {
1228
+ content: 'check_box_outline_blank';
1229
+ content: 'check_box_outline_blank' / '';
1230
+ /* A flex box whose one line is the item's line high (`line-height`, below), centred on a box the size of the
1231
+ glyph: the glyph is drawn where a line as tall as its box put it, and the item's line is this box's `1lh`. */
1232
+ display: flex;
1233
+ align-items: center;
1234
+ position: absolute;
1235
+ overflow: hidden;
1236
+ inline-size: var(--tanrei-comp-prose-task-icon-size);
1237
+ block-size: var(--tanrei-comp-prose-task-icon-size);
1238
+ margin-block: calc((1lh - var(--tanrei-comp-prose-task-icon-size)) / 2);
1239
+ margin-inline-start: calc(-1 * (var(--tanrei-comp-prose-task-icon-size) + var(--tanrei-comp-prose-item-gap)));
1240
+ font-family: var(--tanrei-sys-icon-family-unselected);
1241
+ font-size: var(--tanrei-comp-prose-task-icon-size);
1242
+ font-style: normal;
1243
+ font-weight: normal;
1244
+ line-height: 1lh;
1245
+ letter-spacing: normal;
1246
+ text-transform: none;
1247
+ white-space: nowrap;
1248
+ word-wrap: normal;
1249
+ -webkit-user-select: none;
1250
+ user-select: none;
1251
+ pointer-events: none;
1252
+ font-feature-settings: 'liga';
1253
+ -webkit-font-smoothing: antialiased;
1254
+ font-optical-sizing: auto;
1255
+ font-variation-settings:
1256
+ 'FILL' var(--tanrei-sys-icon-fill-unselected),
1257
+ 'wght' var(--tanrei-sys-icon-weight),
1258
+ 'GRAD' 0;
1259
+ opacity: var(--tanrei-icons, 0);
1260
+ }
1261
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
1262
+ arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
1263
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
1264
+ :where(li:has(> input[type='checkbox']:first-child, > p:first-child > input[type='checkbox']:first-child))::before {
1265
+ font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-unselected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(var(--tanrei-comp-prose-task-icon-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
1266
+ }
1267
+ }
1268
+ :where(li:has(> input[type='checkbox']:first-child:checked, > p:first-child > input[type='checkbox']:first-child:checked))::before {
1269
+ content: 'check_box';
1270
+ content: 'check_box' / '';
1271
+ font-family: var(--tanrei-sys-icon-family-selected);
1272
+ font-variation-settings:
1273
+ 'FILL' var(--tanrei-sys-icon-fill-selected),
1274
+ 'wght' var(--tanrei-sys-icon-weight),
1275
+ 'GRAD' 0;
1276
+ }
1277
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
1278
+ arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
1279
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
1280
+ :where(li:has(> input[type='checkbox']:first-child:checked, > p:first-child > input[type='checkbox']:first-child:checked))::before {
1281
+ font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-selected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(var(--tanrei-comp-prose-task-icon-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
1282
+ }
1283
+ }
1284
+
1285
+ /* ── A heading's anchor (PRS-21, PRS-22) ─────────────────────────────────────────────────────────────────────── */
1286
+ /* The heading is a run of text in its wrapper's line, of its own direction (PRS-25); the anchor follows the end
1287
+ of that text on its last line and is never on a line of its own, because it takes no part in the line: it is
1288
+ placed where it would have stood. The wrapper keeps the room it stands in, so it never leaves the text block. */
1289
+ :where(.tanrei-prose-heading) {
1290
+ /* The anchor is laid out against its wrapper (it stays where it would have stood: it names no edge): against
1291
+ nothing, a scroll box the prose stands in would not cut it (src/scroll-box.test.ts). */
1292
+ position: relative;
1293
+ padding-inline-end: calc(var(--tanrei-comp-prose-anchor-gap) + 1lh);
1294
+ }
1295
+ :where(h1):where(.tanrei-prose-heading > *), :where(h2):where(.tanrei-prose-heading > *), :where(h3):where(.tanrei-prose-heading > *), :where(h4):where(.tanrei-prose-heading > *), :where(h5):where(.tanrei-prose-heading > *), :where(h6):where(.tanrei-prose-heading > *) {
1296
+ display: inline;
1297
+ }
1298
+ /* One line of the heading high and as wide, its content centred: what it shows, and how it looks, focuses and is
1299
+ pressed, are the Link component's — the link that is a glyph alone (LNK-16), whose rules stand above. */
1300
+ :where(.tanrei-prose-anchor) {
1301
+ position: absolute;
1302
+ display: inline-flex;
1303
+ align-items: center;
1304
+ justify-content: center;
1305
+ inline-size: 1lh;
1306
+ block-size: 1lh;
1307
+ margin-block: 0;
1308
+ margin-inline-start: var(--tanrei-comp-prose-anchor-gap);
1309
+ /* PRS-22: shown and hidden at once — the link's own changes of state keep their timing, its opacity has none. */
1310
+ transition-property: --_link-held-image, --_link-held-clip, background-color, color;
1311
+ }
1312
+ /* PRS-22: hidden from sight — never from the focus order or assistive technology — until the heading or the anchor
1313
+ is hovered or the anchor takes keyboard focus; shown at once; always shown where the device has no hover. */
1314
+ @media (hover: hover) {
1315
+ :where(.tanrei-prose-heading:not(:hover) > .tanrei-prose-anchor:not(:hover, :focus-visible)) {
1316
+ opacity: 0;
1317
+ }
1318
+ }
1319
+
1320
+ /* ── Forced colors (PRS-28): a quote's line and a rule in the platform's text color; links are underlined at
1321
+ rest whatever the underline choice is — the Link's own rule, written above with the rest of its rules (LNK-22) */
1322
+ @media (forced-colors: active) {
1323
+ :where(blockquote), :where(hr), :where([data-footnotes]), :where(.footnotes) {
1324
+ border-color: CanvasText;
1325
+ }
1326
+ }
1327
+ }
1328
+
1329
+ /* PRS-18: a figure's caption is text under a frame that takes the prose's full width, so it is kept to the measure
1330
+ like a text block. The Figure is an island (PRS-16) — nothing else inside it is prose's — so this one rule reaches
1331
+ the caption of a figure placed in the flow by its own name; a bare `figure`'s caption is in the list above. */
1332
+ :where(.tanrei-prose) :where(tanrei-figure) > :where(figure) > :where(figcaption) {
1333
+ max-inline-size: var(--_prose-measure);
1334
+ }
1335
+ }
1336
+
1337
+ @layer tanrei.components {
1338
+ @keyframes tanrei-link-ripple {
1339
+ from {
1340
+ clip-path: circle(0 at var(--_x) var(--_y));
1341
+ }
1342
+ }
1343
+ /* LNK-27, LNK-33, for a browser without style container queries: the package's script writes the design system's
1344
+ two choices, by name, on the document's root, and these rules — tried on the element that carries the attribute
1345
+ and on no other — hand each answer down as a value every link inherits. (Said from the link's side instead,
1346
+ `[data-underline-system] .tanrei-link`, each would be a walk to the root for every anchor of the page.) A link
1347
+ under `none` keeps the box of a link with room, cut at the line ends, which has no room left to show it. Each
1348
+ selector is one name: a list inside one `:where()` is filed under no name and tried on every element. */
1349
+ :where([data-underline-system='hover']),
1350
+ :where([data-underline-system='never']) {
1351
+ --_link-system-rest: transparent;
1352
+ }
1353
+ :where([data-underline-system='never']) {
1354
+ --_link-system-active: transparent;
1355
+ }
1356
+ :where([data-external-marks-system='arrow']),
1357
+ :where([data-external-marks-system='none']) {
1358
+ --_link-system-site-icon: none;
1359
+ --_link-system-pictures: 0;
1360
+ }
1361
+ :where([data-external-marks-system='none']) {
1362
+ --_link-system-arrow: none;
1363
+ --_link-system-arrows: 0;
1364
+ }
1365
+ /* ICD-5: what an ancestor chooses for the inline code inside it. */
1366
+ :where([data-tanrei-code='plain']) {
1367
+ --_code-plain: ;
1368
+ }
1369
+ :where([data-tanrei-code='tonal']) {
1370
+ --_code-plain: initial;
1371
+ }
1372
+ }
1373
+ /* The steps' own rules (steps.css), said again after prose's: see scripts/build.js. */
1374
+ @layer tanrei.components {
1375
+ /* ── The list: the text style and the measures of its size (STP-1, STP-7, STP-10; STP-19: any other size is the default) */
1376
+ :where(.tanrei-steps) {
1377
+ --_steps-body-font: var(--tanrei-comp-steps-body-typescale-medium-font);
1378
+ --_steps-body-tracking: var(--tanrei-comp-steps-body-typescale-medium-letter-spacing);
1379
+ --_steps-body-emphasized: var(--tanrei-comp-steps-body-typescale-medium-font-weight-emphasized);
1380
+ --_steps-body-line: calc(var(--tanrei-comp-steps-body-typescale-medium-font-size) * var(--tanrei-comp-steps-body-typescale-medium-line-height));
1381
+ --_steps-title-font: var(--tanrei-comp-steps-title-typescale-medium-font);
1382
+ --_steps-title-tracking: var(--tanrei-comp-steps-title-typescale-medium-letter-spacing);
1383
+ --_steps-title-emphasized: var(--tanrei-comp-steps-title-typescale-medium-font-weight-emphasized);
1384
+ --_steps-title-line: calc(var(--tanrei-comp-steps-title-typescale-medium-font-size) * var(--tanrei-comp-steps-title-typescale-medium-line-height));
1385
+ --_steps-label-font: var(--tanrei-comp-steps-marker-label-typescale-medium-font);
1386
+ --_steps-label-tracking: var(--tanrei-comp-steps-marker-label-typescale-medium-letter-spacing);
1387
+ /* STP-2, STP-14: the marker's height — the size's, or the number's line where enlarged text makes that taller. */
1388
+ --_steps-marker: max(
1389
+ var(--tanrei-comp-steps-marker-height-medium),
1390
+ calc(var(--tanrei-comp-steps-marker-label-typescale-medium-font-size) * var(--tanrei-comp-steps-marker-label-typescale-medium-line-height))
1391
+ );
1392
+ /* STP-1: the marker column — as wide as the widest marker, which is the marker's height unless a number is too
1393
+ long for a circle (then the script says how wide: see above). */
1394
+ --_steps-column: var(--_steps-measured, var(--_steps-marker));
1395
+ --tanrei-text-emphasized-weight: var(--_steps-body-emphasized);
1396
+ display: block;
1397
+ /* STP-10: a block in the flow, as wide as its container, with no inset and no space after it. */
1398
+ box-sizing: border-box;
1399
+ min-inline-size: 0;
1400
+ max-inline-size: none;
1401
+ margin-block-end: 0;
1402
+ margin-inline: 0;
1403
+ padding: 0;
1404
+ list-style: none;
1405
+ font: var(--_steps-body-font);
1406
+ letter-spacing: var(--_steps-body-tracking);
1407
+ /* STP-14: a string with no break opportunity breaks rather than overflow. */
1408
+ overflow-wrap: break-word;
1409
+ }
1410
+ :where(.tanrei-steps[data-size='large']) {
1411
+ --_steps-body-font: var(--tanrei-comp-steps-body-typescale-large-font);
1412
+ --_steps-body-tracking: var(--tanrei-comp-steps-body-typescale-large-letter-spacing);
1413
+ --_steps-body-emphasized: var(--tanrei-comp-steps-body-typescale-large-font-weight-emphasized);
1414
+ --_steps-body-line: calc(var(--tanrei-comp-steps-body-typescale-large-font-size) * var(--tanrei-comp-steps-body-typescale-large-line-height));
1415
+ --_steps-title-font: var(--tanrei-comp-steps-title-typescale-large-font);
1416
+ --_steps-title-tracking: var(--tanrei-comp-steps-title-typescale-large-letter-spacing);
1417
+ --_steps-title-emphasized: var(--tanrei-comp-steps-title-typescale-large-font-weight-emphasized);
1418
+ --_steps-title-line: calc(var(--tanrei-comp-steps-title-typescale-large-font-size) * var(--tanrei-comp-steps-title-typescale-large-line-height));
1419
+ --_steps-label-font: var(--tanrei-comp-steps-marker-label-typescale-large-font);
1420
+ --_steps-label-tracking: var(--tanrei-comp-steps-marker-label-typescale-large-letter-spacing);
1421
+ --_steps-marker: max(
1422
+ var(--tanrei-comp-steps-marker-height-large),
1423
+ calc(var(--tanrei-comp-steps-marker-label-typescale-large-font-size) * var(--tanrei-comp-steps-marker-label-typescale-large-line-height))
1424
+ );
1425
+ }
1426
+ /* STP-10: the space before it is its container's (PRS-15) — prose's rhythm inside a prose, none of its own elsewhere. */
1427
+ :where(.tanrei-steps:not(.tanrei-prose *)) {
1428
+ margin-block-start: 0;
1429
+ }
1430
+ /* STP-20: a set with no step draws nothing and takes no room. */
1431
+ :where(.tanrei-steps:not(:has(> li))) {
1432
+ display: none;
1433
+ }
1434
+
1435
+ /* ── A step (STP-1, STP-3, STP-4) ──────────────────────────────────────────────────────────────────────────────── */
1436
+ :where(.tanrei-steps) > :where(li) {
1437
+ /* The height of the step's first line: the body's, the title's where it has one, and the marker's own where the
1438
+ step begins with a block that is not text — so that the marker's top is that block's top (STP-3). */
1439
+ --_steps-first-line: var(--_steps-body-line);
1440
+ /* Where the marker's top is, from the step's: lower than it only where the first line is the taller of the two. */
1441
+ --_steps-marker-top: max(0px, calc((var(--_steps-first-line) - var(--_steps-marker)) / 2));
1442
+ position: relative;
1443
+ box-sizing: border-box;
1444
+ /* At least its marker: a step of one short line, and a step that holds nothing (STP-20). */
1445
+ min-block-size: calc(var(--_steps-marker-top) + var(--_steps-marker));
1446
+ min-inline-size: 0;
1447
+ margin: 0;
1448
+ /* STP-3: where the marker is taller than the first line, the content is lowered by half the difference. STP-1:
1449
+ the content begins the marker gap after the marker column. */
1450
+ padding-block: max(0px, calc((var(--_steps-marker) - var(--_steps-first-line)) / 2)) 0;
1451
+ padding-inline: calc(var(--_steps-column) + var(--tanrei-comp-steps-marker-gap)) 0;
1452
+ list-style: none;
1453
+ }
1454
+ :where(.tanrei-steps) > :where(li + li) {
1455
+ margin-block-start: var(--tanrei-comp-steps-step-gap);
1456
+ }
1457
+ /* STP-8: in a prose that keeps a measure, a step that is text alone — no paragraph to keep to the measure, no block
1458
+ to take the width — is kept to the measure as a paragraph would be, counted from where its text begins. (The
1459
+ measure is prose's own, `--_prose-measure`; where there is none the declaration is not valid and the step fills
1460
+ the set.) */
1461
+ :where(.tanrei-steps) > :where(li:not(:has(> :not(a, abbr, b, bdi, bdo, br, cite, code, data, del, dfn, em, i, ins, kbd, mark, q, s, samp, small, span, strong, sub, sup, time, u, var, wbr)))) {
1462
+ max-inline-size: calc(var(--_prose-measure) + var(--_steps-column) + var(--tanrei-comp-steps-marker-gap));
1463
+ }
1464
+ :where(.tanrei-steps) > :where(li:has(> :is(.tanrei-steps-title, h2, h3, h4, h5, h6):first-child)) {
1465
+ --_steps-first-line: var(--_steps-title-line);
1466
+ }
1467
+ :where(.tanrei-steps) > :where(li:has(> :first-child:not(.tanrei-steps-title, h2, h3, h4, h5, h6, p, ul, ol, dl, blockquote, address, a, abbr, b, bdi, bdo, br, cite, code, data, del, dfn, em, i, ins, kbd, mark, q, s, samp, small, span, strong, sub, sup, time, u, var, wbr))) {
1468
+ --_steps-first-line: var(--_steps-marker);
1469
+ }
1470
+
1471
+ /* ── The body (STP-7, STP-8): the gap between two of its blocks, none before the first or after the last ───────── */
1472
+ :where(.tanrei-steps) > :where(li) > :where(*) {
1473
+ margin-block: 0;
1474
+ }
1475
+ :where(.tanrei-steps) > :where(li) > :where(* + *) {
1476
+ margin-block-start: var(--tanrei-comp-steps-body-gap);
1477
+ }
1478
+ /* A list that is the first element of a step follows the step's own text (a list item's text and a list under it,
1479
+ as a Markdown renderer writes a tight item): STP-9. */
1480
+ :where(.tanrei-steps) > :where(li) > :where(:is(ul, ol):first-child) {
1481
+ margin-block-start: var(--tanrei-comp-steps-body-gap);
1482
+ }
1483
+
1484
+ /* ── The title (STP-6, STP-18): first in the step, in the title's text style whatever its level ───────────────── */
1485
+ :where(.tanrei-steps) > :where(li) > :where(:is(.tanrei-steps-title, h2, h3, h4, h5, h6):first-child) {
1486
+ --tanrei-text-emphasized-weight: var(--_steps-title-emphasized);
1487
+ font: var(--_steps-title-font);
1488
+ letter-spacing: var(--_steps-title-tracking);
1489
+ /* Text of its own direction, by its first strong character; placed and aligned by the layout's. */
1490
+ unicode-bidi: plaintext;
1491
+ text-align: left;
1492
+ }
1493
+ :where(.tanrei-steps) > :where(li) > :where(:is(.tanrei-steps-title, h2, h3, h4, h5, h6):first-child:dir(rtl)) {
1494
+ text-align: right;
1495
+ }
1496
+ :where(.tanrei-steps) > :where(li) > :where(:is(.tanrei-steps-title, h2, h3, h4, h5, h6):first-child + *) {
1497
+ margin-block-start: var(--tanrei-comp-steps-title-gap);
1498
+ }
1499
+
1500
+ /* ── The marker (STP-2, STP-3, STP-18): a ring with the step's number ──────────────────────────────────────────── */
1501
+ :where(.tanrei-steps) > :where(li)::before {
1502
+ --tanrei-corner-pill: 0;
1503
+ }
1504
+ :where(.tanrei-steps) > :where(li)::before {
1505
+ --_corner-scale: 1;
1506
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
1507
+ }
1508
+ @supports (corner-shape: superellipse(log(2, 2))) {
1509
+ :where(.tanrei-steps) > :where(li)::before {
1510
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
1511
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
1512
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
1513
+ }
1514
+ }
1515
+ :where(.tanrei-steps) > :where(li)::before {
1516
+ --tanrei-corner-radius: var(--tanrei-comp-steps-marker-shape);
1517
+ --tanrei-corner-pill: var(--tanrei-comp-steps-marker-shape-pill, 0);
1518
+ content: counter(list-item);
1519
+ position: absolute;
1520
+ /* STP-3: at the top of the step, centred on its first line. STP-1: centred in the marker column. */
1521
+ inset-block-start: var(--_steps-marker-top);
1522
+ inset-inline: 0 calc(100% - var(--_steps-column));
1523
+ display: block;
1524
+ box-sizing: border-box;
1525
+ inline-size: fit-content;
1526
+ min-inline-size: var(--_steps-marker);
1527
+ block-size: var(--_steps-marker);
1528
+ margin-inline: auto;
1529
+ /* The room between the number and the marker's edge, the ring inside it: two digits keep a circle. */
1530
+ padding-inline: calc(var(--tanrei-comp-steps-marker-padding-inline) - var(--tanrei-comp-steps-marker-outline-width));
1531
+ border: var(--tanrei-comp-steps-marker-outline-width) solid var(--tanrei-comp-steps-marker-outline-color);
1532
+ font: var(--_steps-label-font);
1533
+ /* The number at the marker's centre: one line as high as the marker is inside its ring. */
1534
+ line-height: calc(var(--_steps-marker) - 2 * var(--tanrei-comp-steps-marker-outline-width));
1535
+ letter-spacing: var(--_steps-label-tracking);
1536
+ font-variant-numeric: tabular-nums;
1537
+ text-align: center;
1538
+ white-space: nowrap;
1539
+ /* STP-18: a left-to-right run whose digits are never reversed — a number has no strong character, so as text of
1540
+ its own direction it is left to right in every layout (a sign stays before its digits). The marker's own
1541
+ direction stays the layout's: its place is by logical start and end. */
1542
+ unicode-bidi: plaintext;
1543
+ }
1544
+
1545
+ /* ── The connector (STP-5): from under a marker to above the next, on the column's centre line ─────────────────── */
1546
+ :where(.tanrei-steps) > :where(li:not(:last-child))::after {
1547
+ content: '';
1548
+ position: absolute;
1549
+ inset-block: calc(var(--_steps-marker-top) + var(--_steps-marker) + var(--tanrei-comp-steps-connector-gap)) calc(var(--tanrei-comp-steps-connector-gap) - var(--tanrei-comp-steps-step-gap));
1550
+ inset-inline-start: calc((var(--_steps-column) - var(--tanrei-comp-steps-connector-thickness)) / 2);
1551
+ inline-size: 0;
1552
+ border-inline-start: var(--tanrei-comp-steps-connector-thickness) solid var(--tanrei-comp-steps-connector-color);
1553
+ pointer-events: none;
1554
+ }
1555
+
1556
+ /* ── Forced colors (STP-15): the ring and the connector in the platform's text color ───────────────────────────── */
1557
+ @media (forced-colors: active) {
1558
+ :where(.tanrei-steps) > :where(li)::before,
1559
+ :where(.tanrei-steps) > :where(li:not(:last-child))::after {
1560
+ border-color: CanvasText;
1561
+ }
1562
+ }
1563
+ }
1564
+ /* The timeline's own rules (timeline.css), said again after prose's: see scripts/build.js. */
1565
+ @layer tanrei.components {
1566
+ /* ── The list: the text styles and the measures of its size and density (TML-1, TML-2, TML-5, TML-10; TML-21: any
1567
+ other size or density is the default) ─────────────────────────────────────────────────────────────────────── */
1568
+ :where(.tanrei-timeline) {
1569
+ --_timeline-body-font: var(--tanrei-comp-timeline-body-typescale-medium-font);
1570
+ --_timeline-body-tracking: var(--tanrei-comp-timeline-body-typescale-medium-letter-spacing);
1571
+ --_timeline-body-emphasized: var(--tanrei-comp-timeline-body-typescale-medium-font-weight-emphasized);
1572
+ --_timeline-body-line: calc(var(--tanrei-comp-timeline-body-typescale-medium-font-size) * var(--tanrei-comp-timeline-body-typescale-medium-line-height));
1573
+ --_timeline-title-font: var(--tanrei-comp-timeline-title-typescale-medium-font);
1574
+ --_timeline-title-tracking: var(--tanrei-comp-timeline-title-typescale-medium-letter-spacing);
1575
+ --_timeline-title-emphasized: var(--tanrei-comp-timeline-title-typescale-medium-font-weight-emphasized);
1576
+ --_timeline-title-line: calc(var(--tanrei-comp-timeline-title-typescale-medium-font-size) * var(--tanrei-comp-timeline-title-typescale-medium-line-height));
1577
+ --_timeline-time-font: var(--tanrei-comp-timeline-time-typescale-medium-font);
1578
+ --_timeline-time-tracking: var(--tanrei-comp-timeline-time-typescale-medium-letter-spacing);
1579
+ --_timeline-time-emphasized: var(--tanrei-comp-timeline-time-typescale-medium-font-weight-emphasized);
1580
+ --_timeline-time-line: calc(var(--tanrei-comp-timeline-time-typescale-medium-font-size) * var(--tanrei-comp-timeline-time-typescale-medium-line-height));
1581
+ /* TML-1, TML-6: the marker's box, which is also the marker column. */
1582
+ --_timeline-marker: var(--tanrei-comp-timeline-marker-height-medium);
1583
+ /* TML-2: the space between two events. */
1584
+ --_timeline-gap: var(--tanrei-comp-timeline-item-gap-regular);
1585
+ --tanrei-text-emphasized-weight: var(--_timeline-body-emphasized);
1586
+ display: block;
1587
+ /* TML-10: a block in the flow, as wide as its container, with no inset and no space after it. */
1588
+ box-sizing: border-box;
1589
+ min-inline-size: 0;
1590
+ max-inline-size: none;
1591
+ margin-block-end: 0;
1592
+ margin-inline: 0;
1593
+ padding: 0;
1594
+ list-style: none;
1595
+ font: var(--_timeline-body-font);
1596
+ letter-spacing: var(--_timeline-body-tracking);
1597
+ /* TML-14: a string with no break opportunity breaks rather than overflow. */
1598
+ overflow-wrap: break-word;
1599
+ }
1600
+ :where(.tanrei-timeline[data-size='large']) {
1601
+ --_timeline-body-font: var(--tanrei-comp-timeline-body-typescale-large-font);
1602
+ --_timeline-body-tracking: var(--tanrei-comp-timeline-body-typescale-large-letter-spacing);
1603
+ --_timeline-body-emphasized: var(--tanrei-comp-timeline-body-typescale-large-font-weight-emphasized);
1604
+ --_timeline-body-line: calc(var(--tanrei-comp-timeline-body-typescale-large-font-size) * var(--tanrei-comp-timeline-body-typescale-large-line-height));
1605
+ --_timeline-title-font: var(--tanrei-comp-timeline-title-typescale-large-font);
1606
+ --_timeline-title-tracking: var(--tanrei-comp-timeline-title-typescale-large-letter-spacing);
1607
+ --_timeline-title-emphasized: var(--tanrei-comp-timeline-title-typescale-large-font-weight-emphasized);
1608
+ --_timeline-title-line: calc(var(--tanrei-comp-timeline-title-typescale-large-font-size) * var(--tanrei-comp-timeline-title-typescale-large-line-height));
1609
+ --_timeline-time-font: var(--tanrei-comp-timeline-time-typescale-large-font);
1610
+ --_timeline-time-tracking: var(--tanrei-comp-timeline-time-typescale-large-letter-spacing);
1611
+ --_timeline-time-emphasized: var(--tanrei-comp-timeline-time-typescale-large-font-weight-emphasized);
1612
+ --_timeline-time-line: calc(var(--tanrei-comp-timeline-time-typescale-large-font-size) * var(--tanrei-comp-timeline-time-typescale-large-line-height));
1613
+ --_timeline-marker: var(--tanrei-comp-timeline-marker-height-large);
1614
+ }
1615
+ :where(.tanrei-timeline[data-density='compact']) {
1616
+ --_timeline-gap: var(--tanrei-comp-timeline-item-gap-compact);
1617
+ }
1618
+ /* TML-10: the space before it is its container's (PRS-15) — prose's rhythm inside a prose, none of its own elsewhere. */
1619
+ :where(.tanrei-timeline:not(.tanrei-prose *)) {
1620
+ margin-block-start: 0;
1621
+ }
1622
+ /* TML-22: a timeline with no event draws nothing and takes no room. */
1623
+ :where(.tanrei-timeline:not(:has(> li))) {
1624
+ display: none;
1625
+ }
1626
+
1627
+ /* ── An event (TML-1, TML-2, TML-6) ────────────────────────────────────────────────────────────────────────────── */
1628
+ :where(.tanrei-timeline) > :where(li) {
1629
+ /* The height of the event's first line of text: the time's where it has one, else the title's, else the body's. */
1630
+ --_timeline-first-line: var(--_timeline-body-line);
1631
+ /* Where the marker's box begins, from the event's top: lower than it only where the first line is the taller. */
1632
+ --_timeline-marker-top: max(0px, calc((var(--_timeline-first-line) - var(--_timeline-marker)) / 2));
1633
+ position: relative;
1634
+ box-sizing: border-box;
1635
+ /* At least its marker: an event of one short line, and an event that holds nothing (TML-22). */
1636
+ min-block-size: calc(var(--_timeline-marker-top) + var(--_timeline-marker));
1637
+ min-inline-size: 0;
1638
+ margin: 0;
1639
+ /* TML-6: where the marker's box is taller than the first line, the content is lowered by half the difference.
1640
+ TML-1: the content begins the marker gap after the marker column and runs to the end edge. */
1641
+ padding-block: max(0px, calc((var(--_timeline-marker) - var(--_timeline-first-line)) / 2)) 0;
1642
+ padding-inline: calc(var(--_timeline-marker) + var(--tanrei-comp-timeline-marker-gap)) 0;
1643
+ list-style: none;
1644
+ }
1645
+ :where(.tanrei-timeline) > :where(li + li) {
1646
+ margin-block-start: var(--_timeline-gap);
1647
+ }
1648
+ :where(.tanrei-timeline) > :where(li:has(> :is(.tanrei-timeline-title, :is(h2, h3, h4, h5, h6):is(:first-child, :is(.tanrei-timeline-marker, .tanrei-timeline-status) + *)))) {
1649
+ --_timeline-first-line: var(--_timeline-title-line);
1650
+ }
1651
+ :where(.tanrei-timeline) > :where(li:has(> .tanrei-timeline-time)) {
1652
+ --_timeline-first-line: var(--_timeline-time-line);
1653
+ }
1654
+
1655
+ /* ── The body (TML-5): the gap between two of its blocks, none before the first or after the last ──────────────── */
1656
+ :where(.tanrei-timeline) > :where(li) > :where(*) {
1657
+ margin-block: 0;
1658
+ }
1659
+ :where(.tanrei-timeline) > :where(li) > :where(* + *) {
1660
+ margin-block-start: var(--tanrei-comp-timeline-body-gap);
1661
+ }
1662
+ /* What stands out of the flow at the event's start — the product's glyph, the status in words — is no neighbour. */
1663
+ :where(.tanrei-timeline) > :where(li) > :where(:is(.tanrei-timeline-marker, .tanrei-timeline-status) + *) {
1664
+ margin-block-start: 0;
1665
+ }
1666
+
1667
+ /* ── The time (TML-3, TML-20): first in the event, as the product wrote it ─────────────────────────────────────── */
1668
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-time) {
1669
+ --tanrei-text-emphasized-weight: var(--_timeline-time-emphasized);
1670
+ display: block;
1671
+ color: var(--tanrei-comp-timeline-time-color);
1672
+ font: var(--_timeline-time-font);
1673
+ letter-spacing: var(--_timeline-time-tracking);
1674
+ /* Text of its own direction, by its first strong character; placed and aligned by the layout's. */
1675
+ unicode-bidi: plaintext;
1676
+ text-align: left;
1677
+ }
1678
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-time:dir(rtl)) {
1679
+ text-align: right;
1680
+ }
1681
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-time + *) {
1682
+ margin-block-start: var(--tanrei-comp-timeline-time-gap);
1683
+ }
1684
+
1685
+ /* ── The title (TML-4, TML-20): after the time, in the title's text style whatever its level ───────────────────── */
1686
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-title, :is(h2, h3, h4, h5, h6):is(:first-child, :is(.tanrei-timeline-marker, .tanrei-timeline-status, .tanrei-timeline-time) + *)) {
1687
+ --tanrei-text-emphasized-weight: var(--_timeline-title-emphasized);
1688
+ font: var(--_timeline-title-font);
1689
+ letter-spacing: var(--_timeline-title-tracking);
1690
+ unicode-bidi: plaintext;
1691
+ text-align: left;
1692
+ }
1693
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-title, :is(h2, h3, h4, h5, h6):is(:first-child, :is(.tanrei-timeline-marker, .tanrei-timeline-status, .tanrei-timeline-time) + *)):where(:dir(rtl)) {
1694
+ text-align: right;
1695
+ }
1696
+ :where(.tanrei-timeline) > :where(li) > :where(:is(.tanrei-timeline-title, :is(h2, h3, h4, h5, h6):is(:first-child, :is(.tanrei-timeline-marker, .tanrei-timeline-status, .tanrei-timeline-time) + *)) + *) {
1697
+ margin-block-start: var(--tanrei-comp-timeline-title-gap);
1698
+ }
1699
+
1700
+ /* ── The marker (TML-6, TML-7, TML-8) ──────────────────────────────────────────────────────────────────────────── */
1701
+ :where(.tanrei-timeline) > :where(li)::before {
1702
+ --tanrei-corner-pill: 0;
1703
+ }
1704
+ :where(.tanrei-timeline) > :where(li)::before {
1705
+ --_corner-scale: 1;
1706
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
1707
+ }
1708
+ @supports (corner-shape: superellipse(log(2, 2))) {
1709
+ :where(.tanrei-timeline) > :where(li)::before {
1710
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
1711
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
1712
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
1713
+ }
1714
+ }
1715
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1716
+ --tanrei-corner-pill: 0;
1717
+ }
1718
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1719
+ --_corner-scale: 1;
1720
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
1721
+ }
1722
+ @supports (corner-shape: superellipse(log(2, 2))) {
1723
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1724
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
1725
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
1726
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
1727
+ }
1728
+ }
1729
+ /* An event with no status and no glyph: a dot, a circle whatever corners a ring has. */
1730
+ :where(.tanrei-timeline) > :where(li)::before {
1731
+ --_timeline-mark: var(--tanrei-comp-timeline-marker-dot-size);
1732
+ --tanrei-corner-radius: 50%;
1733
+ --tanrei-corner-pill: 1;
1734
+ content: '';
1735
+ position: absolute;
1736
+ /* TML-6: centred in the marker's box, which is at the top of the event, centred on its first line, and is the
1737
+ marker column (TML-1). */
1738
+ inset-block-start: calc(var(--_timeline-marker-top) + (var(--_timeline-marker) - var(--_timeline-mark)) / 2);
1739
+ inset-inline: 0 calc(100% - var(--_timeline-marker));
1740
+ display: block;
1741
+ box-sizing: border-box;
1742
+ overflow: hidden;
1743
+ inline-size: var(--_timeline-mark);
1744
+ block-size: var(--_timeline-mark);
1745
+ margin-inline: auto;
1746
+ background-color: var(--tanrei-comp-timeline-marker-dot-color);
1747
+ pointer-events: none;
1748
+ -webkit-user-select: none;
1749
+ user-select: none;
1750
+ }
1751
+ /* TML-7: a status makes the marker the whole box, with the ring's corners. The words (TML-12) are its alternative
1752
+ text, where the product gives them: read before the time, drawn nowhere. */
1753
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='current'], [data-status='upcoming']))::before {
1754
+ --_timeline-mark: var(--_timeline-marker);
1755
+ --tanrei-corner-radius: var(--tanrei-comp-timeline-marker-shape);
1756
+ --tanrei-corner-pill: var(--tanrei-comp-timeline-marker-shape-pill, 0);
1757
+ content: '\200B';
1758
+ content: '\200B' / '';
1759
+ background-color: transparent;
1760
+ /* The glyph's box, for the mark that is one: one line as high as the marker is inside its ring. */
1761
+ font-size: calc(var(--tanrei-comp-timeline-marker-icon-size) * var(--tanrei-icons, 0));
1762
+ line-height: calc(var(--_timeline-marker) - 2 * var(--tanrei-comp-timeline-marker-outline-width));
1763
+ text-align: center;
1764
+ white-space: nowrap;
1765
+ }
1766
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='current'], [data-status='upcoming'])[data-status-label]:not([data-status-label='']))::before {
1767
+ content: '\200B' / attr(data-status-label) ', ';
1768
+ }
1769
+ /* Done and upcoming: the hairline ring, inside the box. */
1770
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='upcoming']))::before {
1771
+ border: var(--tanrei-comp-timeline-marker-outline-width) solid var(--tanrei-comp-timeline-marker-outline-color);
1772
+ }
1773
+ /* Done: the icon set's check in the ring (the glyph's declarations are icons.css's; TML-8). */
1774
+ :where(.tanrei-timeline) > :where(li[data-status='done'])::before {
1775
+ content: 'check';
1776
+ content: 'check' / '';
1777
+ color: var(--tanrei-comp-timeline-marker-icon-color);
1778
+ font-family: var(--tanrei-sys-icon-family-unselected);
1779
+ font-style: normal;
1780
+ font-weight: normal;
1781
+ letter-spacing: normal;
1782
+ text-transform: none;
1783
+ word-wrap: normal;
1784
+ /* (No direction of its own, as the helper's box has: the generated box is placed by the item's.) */
1785
+ font-feature-settings: 'liga';
1786
+ -webkit-font-smoothing: antialiased;
1787
+ font-optical-sizing: auto;
1788
+ font-variation-settings:
1789
+ 'FILL' var(--tanrei-sys-icon-fill-unselected),
1790
+ 'wght' var(--tanrei-sys-icon-weight),
1791
+ 'GRAD' 0;
1792
+ }
1793
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
1794
+ arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
1795
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
1796
+ :where(.tanrei-timeline) > :where(li[data-status='done'])::before {
1797
+ font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-unselected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(var(--tanrei-comp-timeline-marker-icon-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
1798
+ }
1799
+ }
1800
+ :where(.tanrei-timeline) > :where(li[data-status='done'][data-status-label]:not([data-status-label='']))::before {
1801
+ content: 'check' / attr(data-status-label) ', ';
1802
+ }
1803
+ /* Current: the whole box filled, no edge, holding a dot. */
1804
+ :where(.tanrei-timeline) > :where(li[data-status='current'])::before {
1805
+ background-image: radial-gradient(circle closest-side, var(--tanrei-comp-timeline-marker-current-icon-color) calc(var(--tanrei-comp-timeline-marker-dot-size) / 2), var(--tanrei-comp-timeline-marker-current-container-color) 0);
1806
+ }
1807
+ /* The product's glyph is the marker: the generated box draws nothing, and still holds the status in words. */
1808
+ :where(.tanrei-timeline) > :where(li:has(> .tanrei-timeline-marker))::before {
1809
+ content: none;
1810
+ }
1811
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='current'], [data-status='upcoming']):has(> .tanrei-timeline-marker))::before {
1812
+ --_timeline-mark: 0px;
1813
+ content: '\200B';
1814
+ content: '\200B' / '';
1815
+ border: 0;
1816
+ background-image: none;
1817
+ font-size: 0;
1818
+ clip-path: inset(50%);
1819
+ }
1820
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='current'], [data-status='upcoming'])[data-status-label]:not([data-status-label='']):has(> .tanrei-timeline-marker))::before {
1821
+ content: '\200B' / attr(data-status-label) ', ';
1822
+ }
1823
+ /* A glyph the product names (TML-6, TML-8): the ring — the whole box — holding the glyph at its centre, in the
1824
+ unselected family and fill whatever the event is. */
1825
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1826
+ --tanrei-corner-radius: var(--tanrei-comp-timeline-marker-shape);
1827
+ --tanrei-corner-pill: var(--tanrei-comp-timeline-marker-shape-pill, 0);
1828
+ --tanrei-icon-size: var(--tanrei-comp-timeline-marker-icon-size);
1829
+ --_fill: var(--tanrei-sys-icon-fill-unselected);
1830
+ --_family: var(--tanrei-sys-icon-family-unselected);
1831
+ position: absolute;
1832
+ inset-block-start: var(--_timeline-marker-top);
1833
+ /* (Physical, by the layout's direction: the glyph's own direction is always left to right.) */
1834
+ left: 0;
1835
+ right: auto;
1836
+ display: block;
1837
+ box-sizing: border-box;
1838
+ overflow: hidden;
1839
+ inline-size: var(--_timeline-marker);
1840
+ block-size: var(--_timeline-marker);
1841
+ margin: 0;
1842
+ border: var(--tanrei-comp-timeline-marker-outline-width) solid var(--tanrei-comp-timeline-marker-outline-color);
1843
+ color: var(--tanrei-comp-timeline-marker-icon-color);
1844
+ line-height: calc(var(--_timeline-marker) - 2 * var(--tanrei-comp-timeline-marker-outline-width));
1845
+ text-align: center;
1846
+ pointer-events: none;
1847
+ /* TML-13: a change is drawn at once (the helper's glyph moves between its fills; this one has one fill). */
1848
+ transition: none;
1849
+ }
1850
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon):dir(rtl) {
1851
+ left: auto;
1852
+ right: 0;
1853
+ }
1854
+ :where(.tanrei-timeline) > :where(li[data-status='current']) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1855
+ border-color: transparent;
1856
+ background-color: var(--tanrei-comp-timeline-marker-current-container-color);
1857
+ color: var(--tanrei-comp-timeline-marker-current-icon-color);
1858
+ }
1859
+
1860
+ /* ── The status in words, as an element (TML-12): written by the package's script where generated content cannot
1861
+ hold them, or by the product in place of `data-status-label`. Read, and drawn nowhere. ─────────────────────── */
1862
+ :where(.tanrei-timeline) > :where(li) > :where(.tanrei-timeline-status) {
1863
+ position: absolute;
1864
+ overflow: hidden;
1865
+ inline-size: 1px;
1866
+ block-size: 1px;
1867
+ clip-path: inset(50%);
1868
+ white-space: nowrap;
1869
+ }
1870
+
1871
+ /* ── The connector (TML-9): from under a marker's box to above the next, on the column's centre line ───────────── */
1872
+ :where(.tanrei-timeline) > :where(li:not(:last-child))::after {
1873
+ content: '';
1874
+ position: absolute;
1875
+ inset-block: calc(var(--_timeline-marker-top) + var(--_timeline-marker) + var(--tanrei-comp-timeline-connector-gap)) calc(var(--tanrei-comp-timeline-connector-gap) - var(--_timeline-gap));
1876
+ inset-inline-start: calc((var(--_timeline-marker) - var(--tanrei-comp-timeline-connector-thickness)) / 2);
1877
+ inline-size: 0;
1878
+ border-inline-start: var(--tanrei-comp-timeline-connector-thickness) solid var(--tanrei-comp-timeline-connector-color);
1879
+ pointer-events: none;
1880
+ }
1881
+
1882
+ /* ── Forced colors (TML-16): every mark in the platform's text color; the event under way a disc of that color
1883
+ whose mark is the background's ─────────────────────────────────────────────────────────────────────────────── */
1884
+ @media (forced-colors: active) {
1885
+ :where(.tanrei-timeline) > :where(li)::before {
1886
+ background-color: CanvasText;
1887
+ }
1888
+ :where(.tanrei-timeline) > :where(li:is([data-status='done'], [data-status='current'], [data-status='upcoming']))::before {
1889
+ border-color: CanvasText;
1890
+ background-color: Canvas;
1891
+ color: CanvasText;
1892
+ }
1893
+ /* (A gradient is taken away by the mode: this one names the platform's own two colors, and is kept.) */
1894
+ :where(.tanrei-timeline) > :where(li[data-status='current'])::before {
1895
+ forced-color-adjust: none;
1896
+ background-image: radial-gradient(circle closest-side, Canvas calc(var(--tanrei-comp-timeline-marker-dot-size) / 2), CanvasText 0);
1897
+ }
1898
+ :where(.tanrei-timeline) > :where(li[data-status='current']:has(> .tanrei-timeline-marker))::before {
1899
+ background-image: none;
1900
+ }
1901
+ :where(.tanrei-timeline) > :where(li:not(:last-child))::after {
1902
+ border-color: CanvasText;
1903
+ }
1904
+ :where(.tanrei-timeline) > :where(li) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1905
+ border-color: CanvasText;
1906
+ color: CanvasText;
1907
+ }
1908
+ /* (The mode paints the background's color behind text, which here would cover the disc under the glyph: this
1909
+ box names the platform's own two colors, and is left as it names them.) */
1910
+ :where(.tanrei-timeline) > :where(li[data-status='current']) > :is(.tanrei-timeline-marker, .tanrei-timeline-marker.tanrei-icon) {
1911
+ forced-color-adjust: none;
1912
+ border-color: CanvasText;
1913
+ background-color: CanvasText;
1914
+ color: Canvas;
1915
+ }
1916
+ }
1917
+ }