@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/link.css ADDED
@@ -0,0 +1,728 @@
1
+ /*
2
+ * Link (specs/link.spec.json, LNK-1 to LNK-35): text that leads somewhere — a phrase in a
3
+ * sentence, a line by itself, a glyph alone — in the text style of where it sits, underlined as the design system
4
+ * chooses (at rest, in the default system) and marked where it leaves the site. A class on the product's own anchor,
5
+ * not an element: the anchor is in the document, so it is a link before any script runs (LNK-1).
6
+ *
7
+ * <a class="tanrei-link" href="/guides/">the guides</a> in a sentence
8
+ * <a class="tanrei-link" href="/start/" data-standalone>Getting started</a> by itself: a target-size hit area
9
+ * <a class="tanrei-link" href="…" target="_blank" aria-description="opens in a new tab">…</a> a new context: the mark open_in_new
10
+ * <a class="tanrei-link" href="…" data-standalone><span class="tanrei-icon" aria-hidden="true">download</span>Download</a>
11
+ * <a class="tanrei-link" href="…" data-standalone data-icon-position="trailing">Next<span class="tanrei-icon" aria-hidden="true">arrow_forward</span></a>
12
+ * <a class="tanrei-link" href="#install" aria-label="Link to Installation"><span class="tanrei-icon" aria-hidden="true">link</span></a> a glyph alone
13
+ * <a class="tanrei-link" href="/components/" aria-current="page" data-standalone>Components</a> the current link
14
+ * <a class="tanrei-link" role="link" aria-disabled="true">Previous page</a> disabled: no href
15
+ * <a class="tanrei-link" href="…" data-variant="inverse">…</a> on sys.color.inverse-surface
16
+ * <a class="tanrei-link" href="…" data-underline="hover">…</a> one link set apart: always | hover | never
17
+ * <a class="tanrei-link" href="https://…" data-external="true" aria-description="external link">…</a> another site: the arrow
18
+ * <a class="tanrei-link" href="https://…" data-external="true" aria-description="external link"><img class="tanrei-link-site-icon"
19
+ * src="/icons/….png" alt="" width="32" height="32" loading="lazy" decoding="async" referrerpolicy="no-referrer">…</a> and that site's picture
20
+ *
21
+ * When the underline is drawn is a choice (LNK-27): `--tanrei-comp-link-underline-visibility` (always | hover | never),
22
+ * read from the link's PARENT by a style query — so a region (a footer, a list of navigation) may carry its own value —
23
+ * and `data-underline` on one anchor. What an external link shows is another, `--tanrei-comp-link-external-marks`
24
+ * (all | arrow | none), read the same way. Where the browser has no style queries the package's script writes the two
25
+ * names on the document's root (`data-underline-system`, `data-external-marks-system`); with neither, each is its
26
+ * first value. The stylesheet computes nothing about an address: `data-external` is written where the page is made, or
27
+ * by the script (LNK-30), and the picture is the product's own `<img>`, the anchor's first child (LNK-32, LNK-35).
28
+ *
29
+ * The glyph is a `.tanrei-icon` (icons.css) written against the label's text, with no white space between them. The
30
+ * mark and a glyph need icons.css; without it the mark is not drawn and takes no room.
31
+ *
32
+ * Every value is a `--tanrei-comp-link-*` token, or the system's focus, target, icon and motion tokens.
33
+ *
34
+ * HOW IT IS WRITTEN
35
+ *
36
+ * - Every rule is nested under ONE parent selector, `:where(.tanrei-link)`. The build (scripts/build.js) writes the
37
+ * rules between the two `link:rules` marks a second time into dist/prose.css, under prose's own anchors (PRS-16,
38
+ * PRS-17), so rendered Markdown needs no class; and writes the corner-smoothing rule (src/styles/shape.ts)
39
+ * in place of the `link:shape` mark, so the curve has one source.
40
+ * - Every selector has no specificity (`:where()`), except the two that must win over icons.css's own class.
41
+ * - The anchor stays `display: inline`: its background, its corners and its outline are drawn for its part of each
42
+ * line it runs over (LNK-4, LNK-5, LNK-7), and it takes no room of its own.
43
+ * - A glyph beside the label, the site's picture and the mark take no part in the line: each is placed where it would have stood, in
44
+ * room the anchor keeps at that end (padding, which no line break can part from the word beside it — LNK-14). A
45
+ * link that keeps such room is drawn as one box cut at the line ends; one that keeps none has every corner on
46
+ * every line.
47
+ * - The state rules, the focus indicator and the minimum target say what `stateRules()`, `focusRing()` and
48
+ * `minimumTarget()` (src/primitives) say for a shadow root; they are restated here for an inline box in the
49
+ * document.
50
+ * - Pressed: with the package's script it is `data-pressed` (the shared press primitive: overlay, ripple, dim, none,
51
+ * and the hold). Without it, `:active` is the overlay, held for press-hold by a delayed step of `--_link-held-image`
52
+ * and `--_link-held-clip` (below: "The hold of a press that no script answers").
53
+ * - NOTHING IS REGISTERED: no `@property` rule. One registered custom property in a document makes every element on
54
+ * which a transition starts cost Chromium 0.7 ms a restyle on a page of the tokens (src/styles/registered-properties.ts).
55
+ * A state's color changes by the background's own transition; a part with a font of its own reads the line of the
56
+ * link's text as `1lh` in its own `line-height`, where that unit means the parent's line.
57
+ * - The underline is never taken away where a choice hides it: its color is transparent, so the line takes part in
58
+ * the state's transition and nothing is laid out again (LNK-27, LNK-28). `--_link-rule-rest` is its color at rest
59
+ * and `--_link-rule-active` while the link is hovered, focused from the keyboard or pressed.
60
+ * - What one element finds out for another passes as an inherited value, never as a `:has()` asked for the other's
61
+ * sake (has.test.ts): `--_link-site-icon` is the picture's `display`, said by the anchor.
62
+ * - Names that begin `--_link-` are private.
63
+ */
64
+
65
+ @layer tanrei.components {
66
+ :where(.tanrei-link) {
67
+ /* link:rules */
68
+ /* ── The tokens of the look: standard, inverse, and each as the current link (LNK-2, LNK-6, LNK-18, LNK-19) ──── */
69
+ --_link-container: var(--tanrei-comp-link-standard-container-color);
70
+ --_link-label: var(--tanrei-comp-link-standard-label-color);
71
+ --_link-icon: var(--tanrei-comp-link-standard-icon-color);
72
+ --_link-hovered-container: var(--tanrei-comp-link-standard-hovered-container-color);
73
+ --_link-hovered-label: var(--tanrei-comp-link-standard-hovered-label-color);
74
+ --_link-hovered-icon: var(--tanrei-comp-link-standard-hovered-icon-color);
75
+ --_link-focused-container: var(--tanrei-comp-link-standard-focused-container-color);
76
+ --_link-focused-label: var(--tanrei-comp-link-standard-focused-label-color);
77
+ --_link-focused-icon: var(--tanrei-comp-link-standard-focused-icon-color);
78
+ --_link-pressed-container: var(--tanrei-comp-link-standard-pressed-container-color);
79
+ --_link-pressed-label: var(--tanrei-comp-link-standard-pressed-label-color);
80
+ --_link-pressed-icon: var(--tanrei-comp-link-standard-pressed-icon-color);
81
+ --_link-disabled-container: var(--tanrei-comp-link-standard-disabled-container-color);
82
+ --_link-disabled-label: var(--tanrei-comp-link-standard-disabled-label-color);
83
+ --_link-disabled-icon: var(--tanrei-comp-link-standard-disabled-icon-color);
84
+ &:where([data-variant='inverse']) {
85
+ --_link-container: var(--tanrei-comp-link-inverse-container-color);
86
+ --_link-label: var(--tanrei-comp-link-inverse-label-color);
87
+ --_link-icon: var(--tanrei-comp-link-inverse-icon-color);
88
+ --_link-hovered-container: var(--tanrei-comp-link-inverse-hovered-container-color);
89
+ --_link-hovered-label: var(--tanrei-comp-link-inverse-hovered-label-color);
90
+ --_link-hovered-icon: var(--tanrei-comp-link-inverse-hovered-icon-color);
91
+ --_link-focused-container: var(--tanrei-comp-link-inverse-focused-container-color);
92
+ --_link-focused-label: var(--tanrei-comp-link-inverse-focused-label-color);
93
+ --_link-focused-icon: var(--tanrei-comp-link-inverse-focused-icon-color);
94
+ --_link-pressed-container: var(--tanrei-comp-link-inverse-pressed-container-color);
95
+ --_link-pressed-label: var(--tanrei-comp-link-inverse-pressed-label-color);
96
+ --_link-pressed-icon: var(--tanrei-comp-link-inverse-pressed-icon-color);
97
+ --_link-disabled-container: var(--tanrei-comp-link-inverse-disabled-container-color);
98
+ --_link-disabled-label: var(--tanrei-comp-link-inverse-disabled-label-color);
99
+ --_link-disabled-icon: var(--tanrei-comp-link-inverse-disabled-icon-color);
100
+ }
101
+ &:where([aria-current]:not([aria-current='false'])) {
102
+ --_link-container: var(--tanrei-comp-link-standard-current-container-color);
103
+ --_link-label: var(--tanrei-comp-link-standard-current-label-color);
104
+ --_link-icon: var(--tanrei-comp-link-standard-current-icon-color);
105
+ --_link-hovered-container: var(--tanrei-comp-link-standard-hovered-current-container-color);
106
+ --_link-hovered-label: var(--tanrei-comp-link-standard-hovered-current-label-color);
107
+ --_link-hovered-icon: var(--tanrei-comp-link-standard-hovered-current-icon-color);
108
+ --_link-focused-container: var(--tanrei-comp-link-standard-focused-current-container-color);
109
+ --_link-focused-label: var(--tanrei-comp-link-standard-focused-current-label-color);
110
+ --_link-focused-icon: var(--tanrei-comp-link-standard-focused-current-icon-color);
111
+ --_link-pressed-container: var(--tanrei-comp-link-standard-pressed-current-container-color);
112
+ --_link-pressed-label: var(--tanrei-comp-link-standard-pressed-current-label-color);
113
+ --_link-pressed-icon: var(--tanrei-comp-link-standard-pressed-current-icon-color);
114
+ --_link-disabled-container: var(--tanrei-comp-link-standard-disabled-current-container-color);
115
+ --_link-disabled-label: var(--tanrei-comp-link-standard-disabled-current-label-color);
116
+ --_link-disabled-icon: var(--tanrei-comp-link-standard-disabled-current-icon-color);
117
+ }
118
+ &:where([data-variant='inverse'][aria-current]:not([aria-current='false'])) {
119
+ --_link-container: var(--tanrei-comp-link-inverse-current-container-color);
120
+ --_link-label: var(--tanrei-comp-link-inverse-current-label-color);
121
+ --_link-icon: var(--tanrei-comp-link-inverse-current-icon-color);
122
+ --_link-hovered-container: var(--tanrei-comp-link-inverse-hovered-current-container-color);
123
+ --_link-hovered-label: var(--tanrei-comp-link-inverse-hovered-current-label-color);
124
+ --_link-hovered-icon: var(--tanrei-comp-link-inverse-hovered-current-icon-color);
125
+ --_link-focused-container: var(--tanrei-comp-link-inverse-focused-current-container-color);
126
+ --_link-focused-label: var(--tanrei-comp-link-inverse-focused-current-label-color);
127
+ --_link-focused-icon: var(--tanrei-comp-link-inverse-focused-current-icon-color);
128
+ --_link-pressed-container: var(--tanrei-comp-link-inverse-pressed-current-container-color);
129
+ --_link-pressed-label: var(--tanrei-comp-link-inverse-pressed-current-label-color);
130
+ --_link-pressed-icon: var(--tanrei-comp-link-inverse-pressed-current-icon-color);
131
+ --_link-disabled-container: var(--tanrei-comp-link-inverse-disabled-current-container-color);
132
+ --_link-disabled-label: var(--tanrei-comp-link-inverse-disabled-current-label-color);
133
+ --_link-disabled-icon: var(--tanrei-comp-link-inverse-disabled-current-icon-color);
134
+ }
135
+ /* A variant the system does not have is the default one (LNK-21): no rule above names it. */
136
+
137
+ /* ── The link (LNK-2 to LNK-5) ───────────────────────────────────────────────────────────────────────────────── */
138
+ --_link-now-container: var(--_link-container);
139
+ --_link-now-label: var(--_link-label);
140
+ --_link-shape: var(--tanrei-comp-link-container-shape);
141
+ --_link-gap: var(--tanrei-comp-link-container-gap);
142
+ --_link-target: var(--tanrei-sys-target-pointer);
143
+ /* The room a glyph or the mark stands in: the size of the text and the gap — none where icons.css is not loaded. */
144
+ --_link-room: calc((1em + var(--_link-gap)) * var(--tanrei-icons, 0));
145
+ --tanrei-corner-radius: var(--_link-shape);
146
+ --tanrei-corner-pill: 0;
147
+ position: relative;
148
+ isolation: isolate;
149
+ /* LNK-2: no text style of its own — family, size, weight, line height and letter spacing are the text's. */
150
+ color: var(--_link-now-label);
151
+ /* LNK-5: the box of its text on each line, behind it; it takes no room. Its color is the present state's, which
152
+ changes over the state motion (LNK-11) by the background's own transition. */
153
+ background-color: var(--_link-now-container);
154
+ /* The hold of a press that no script answers (LNK-8). While the anchor is held down, and for press-hold after, the
155
+ pressed container is drawn as a layer of its own — an image of that one color — and the state's color under it
156
+ is not drawn: the pressed color stands in the state's place, as it does with the script, and is not laid over
157
+ it. Both are said by two names that only a press changes and that no one registers; each steps back after
158
+ press-hold (`transition-behavior: allow-discrete`), and the two properties that read them have no transition,
159
+ so they follow the names frame by frame. The background's COLOR is never part of the hold: a property that
160
+ transitions starts its transition when the press ends — toward the value it has without the hold, which a
161
+ 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:
162
+ a background's color is clipped as its last layer is, and `text` leaves it behind the label's own glyphs. */
163
+ --_link-held-image: none;
164
+ --_link-held-clip: border-box;
165
+ background-image: var(--_link-held-image);
166
+ background-clip: var(--_link-held-clip);
167
+ -webkit-box-decoration-break: clone;
168
+ box-decoration-break: clone;
169
+ /* LNK-3: underlined by the underline tokens, in the label's color, under the text only. LNK-27: the line is
170
+ always there and its color is the choice — the label's at rest and in every state under `always`, the first
171
+ value and what stands where nothing below names another. */
172
+ --_link-rule-rest: var(--_link-system-rest, currentcolor);
173
+ --_link-rule-active: var(--_link-system-active, currentcolor);
174
+ --_link-rule: var(--_link-rule-rest);
175
+ text-decoration-line: underline;
176
+ text-decoration-color: var(--_link-rule);
177
+ text-decoration-thickness: var(--tanrei-comp-link-underline-width);
178
+ text-underline-offset: var(--tanrei-comp-link-underline-offset);
179
+ /* LNK-32: the site's picture is drawn for an external link alone (below). */
180
+ --_link-site-icon: none;
181
+ /* LNK-33: the arrow of an external link is drawn unless the marks are turned off (below). (In the line, as the
182
+ mark of a new context is: a block's place out of the line would be the start of the next one.) */
183
+ --_link-arrow: var(--_link-system-arrow, inline-flex);
184
+ /* The room the picture stands in: the size of the text and the gap. (It needs no icon font.) */
185
+ --_link-picture-room: calc((1em + var(--_link-gap)) * var(--_link-system-pictures, 1));
186
+ /* LNK-4: an address longer than the line breaks inside itself. */
187
+ overflow-wrap: break-word;
188
+ /* LNK-26: a phrase of its sentence, in that sentence's direction, reordering nothing beside it. */
189
+ unicode-bidi: isolate;
190
+ -webkit-tap-highlight-color: transparent;
191
+ /* LNK-11; and the hold of a press that no script answers: it stands for press-hold, then gives way to the state
192
+ under it at once (a step: the two names are no numbers to move through). */
193
+ /* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time.) */
194
+ transition:
195
+ --_link-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
196
+ --_link-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold),
197
+ background-color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
198
+ color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
199
+ text-decoration-color var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing),
200
+ opacity var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing);
201
+ transition-behavior: allow-discrete;
202
+ @media (prefers-reduced-motion: reduce) {
203
+ transition:
204
+ --_link-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
205
+ --_link-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold);
206
+ transition-behavior: allow-discrete;
207
+ }
208
+ @media (pointer: coarse) {
209
+ --_link-target: var(--tanrei-sys-target-touch);
210
+ }
211
+ /* LNK-10: the corners, eased by sys.shape.corner-smoothing. */
212
+ & {
213
+ --tanrei-corner-pill: 0;
214
+ }
215
+ & {
216
+ --_corner-scale: 1;
217
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
218
+ }
219
+ @supports (corner-shape: superellipse(log(2, 2))) {
220
+ & {
221
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
222
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
223
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
224
+ }
225
+ }
226
+ &::before,
227
+ &::after {
228
+ corner-shape: inherit;
229
+ }
230
+
231
+ /* LNK-26: a link that stands by itself is text of its own direction, by its first strong character. (Not one
232
+ with a glyph, the mark or the marks of an external link: each is placed from where the text's own order puts
233
+ it, which must be the layout's — README, "Link".) */
234
+ &:where([data-standalone]:not([data-standalone='false'], :has(> .tanrei-icon), [target='_blank' i], [data-external]:not([data-external='false']))) {
235
+ unicode-bidi: plaintext;
236
+ }
237
+
238
+ /* ── When the underline is drawn (LNK-27, LNK-28) ────────────────────────────────────────────────────────────── */
239
+ /* The design system's choice, or a region's: the component token, as the link's parent holds it… (One question
240
+ for every link, and the second only where the first is answered yes: each is asked of every anchor of a page,
241
+ and a long page of prose pays for each — prose.perf.test.ts.) */
242
+ @container style(--tanrei-comp-link-underline-visibility: hover) or style(--tanrei-comp-link-underline-visibility: never) {
243
+ --_link-rule-rest: transparent;
244
+ @container style(--tanrei-comp-link-underline-visibility: never) {
245
+ --_link-rule-active: transparent;
246
+ }
247
+ }
248
+ /* (For a browser without style queries the name the script wrote on the document's root has already answered:
249
+ `--_link-system-rest` and `--_link-system-active`, at the end of this file.) */
250
+ /* One link set apart, whatever the tokens say. A value that is none of the three is auto: no rule names it. */
251
+ &:where([data-underline='always']) {
252
+ --_link-rule-rest: currentcolor;
253
+ --_link-rule-active: currentcolor;
254
+ }
255
+ &:where([data-underline='hover']) {
256
+ --_link-rule-rest: transparent;
257
+ --_link-rule-active: currentcolor;
258
+ }
259
+ &:where([data-underline='never']) {
260
+ --_link-rule-rest: transparent;
261
+ --_link-rule-active: transparent;
262
+ }
263
+
264
+ /* ── A glyph beside the label, the mark, and the marks of an external link (LNK-13, LNK-14, LNK-31, LNK-32) ──── */
265
+ /* A leading glyph: room at the start. */
266
+ &:where(:has(> .tanrei-icon)) {
267
+ padding-inline-start: var(--_link-room);
268
+ -webkit-box-decoration-break: slice;
269
+ box-decoration-break: slice;
270
+ }
271
+ /* A trailing glyph: room at the end, and no mark — the product has chosen what that place shows. */
272
+ &:where([data-icon-position='trailing']:has(> .tanrei-icon)) {
273
+ padding-inline: 0 var(--_link-room);
274
+ }
275
+ /* A new context, or another site: room after the label for the one glyph that says so (LNK-13, LNK-31). */
276
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon))) {
277
+ padding-inline-end: var(--_link-room);
278
+ -webkit-box-decoration-break: slice;
279
+ box-decoration-break: slice;
280
+ }
281
+ /* Another site, with its picture (LNK-32): the picture is drawn, and has its room before the label from the
282
+ first frame — whether or not it ever arrives. The product's own leading glyph stands in that place instead. */
283
+ &:where([data-external]:not([data-external='false'])) {
284
+ /* In the line, as a glyph is: the place it would have had is then beside the label, not at the line's start. */
285
+ --_link-site-icon: var(--_link-system-site-icon, inline-block);
286
+ }
287
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], [data-icon-position='trailing']:has(> .tanrei-icon))) {
288
+ padding-inline-end: calc(var(--_link-room) * var(--_link-system-arrows, 1));
289
+ }
290
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon)) {
291
+ padding-inline-start: var(--_link-picture-room);
292
+ -webkit-box-decoration-break: slice;
293
+ box-decoration-break: slice;
294
+ }
295
+ &:where(:not([data-icon-position='trailing']):has(> .tanrei-icon)) {
296
+ --_link-site-icon: none;
297
+ padding-inline-start: var(--_link-room);
298
+ }
299
+ /* The glyph: a box as large as the text's font size, centred on its line, in the label's color, outlined
300
+ (sys.icon.family.unselected and fill.unselected, whatever the link's state says of a selection). It is out of
301
+ the line — at the place it would have had, moved into its room — so no line break comes between it and the
302
+ word beside it, and no underline is drawn under it. */
303
+ & > .tanrei-icon.tanrei-icon {
304
+ --_size: 1em;
305
+ --_fill: var(--tanrei-sys-icon-fill-unselected);
306
+ --_family: var(--tanrei-sys-icon-family-unselected);
307
+ position: absolute;
308
+ /* 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
309
+ 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
310
+ line of text is then taller than its box, and is centred on it — where a line as tall as the box put it. */
311
+ display: inline-flex;
312
+ align-items: center;
313
+ line-height: 1lh;
314
+ margin-block-start: calc((1lh - 1em) / 2);
315
+ margin-inline: calc(-1 * var(--_link-room)) 0;
316
+ vertical-align: baseline;
317
+ }
318
+ &:where([data-icon-position='trailing']) > .tanrei-icon.tanrei-icon {
319
+ margin-inline: var(--_link-gap) 0;
320
+ }
321
+ /* The site's picture (LNK-32): the product's own `<img>`, the anchor's first child, placed as a leading glyph is —
322
+ a square box as large as the text's font size, centred on its line, the whole picture inside it. Decoration:
323
+ `alt=""` is the product's to write. It is a picture in every state and every direction: nothing here recolors
324
+ or mirrors it. Its corners are comp.link.site-icon.shape, eased as the anchor's are (the curve is inherited). */
325
+ & > :where(img.tanrei-link-site-icon) {
326
+ display: var(--_link-site-icon);
327
+ position: absolute;
328
+ inline-size: 1em;
329
+ block-size: 1em;
330
+ max-inline-size: none;
331
+ /* The line of the link's text (see the glyph, above): a picture has no line of its own to lose. */
332
+ line-height: 1lh;
333
+ margin-block-start: calc((1lh - 1em) / 2);
334
+ margin-inline: calc(-1 * var(--_link-picture-room)) 0;
335
+ border-radius: calc(var(--tanrei-comp-link-site-icon-shape) * var(--_corner-scale, 1));
336
+ corner-shape: inherit;
337
+ object-fit: contain;
338
+ -webkit-user-select: none;
339
+ user-select: none;
340
+ }
341
+ /* A picture that could not be loaded keeps its room and draws nothing: the script marks it. (No selector names a
342
+ broken picture. Without the script Chromium draws nothing for one whose alternative is empty; Firefox and
343
+ WebKit draw their own outline of it — README, "Link".) */
344
+ & > :where(img.tanrei-link-site-icon[data-failed]) {
345
+ visibility: hidden;
346
+ }
347
+ /* Right to left: the browsers do not agree on the place an element out of the line would have had inside an
348
+ inline box, so the glyph stands at the edge of the link itself — the right edge of its first part when it
349
+ leads, the left edge of its last part when it trails — where its room is. (The leading edge is where every
350
+ engine says it is. The trailing one is not, for a link that runs over several lines: see "The end of a
351
+ right-to-left link", below the mark.) */
352
+ &:where(:dir(rtl)) > .tanrei-icon.tanrei-icon {
353
+ right: 0;
354
+ margin-inline: 0;
355
+ }
356
+ &:where(:dir(rtl)) > :where(img.tanrei-link-site-icon) {
357
+ right: 0;
358
+ margin-inline: 0;
359
+ }
360
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon {
361
+ right: auto;
362
+ left: 0;
363
+ }
364
+ /* The mark: ONE glyph after the label, drawn as the trailing glyph is and mirrored in a
365
+ right-to-left layout, as the icon set says of both names — arrow_outward for a link that leaves the site and
366
+ opens where the person is (LNK-31), open_in_new for one that opens a new context, external or not (LNK-13).
367
+ One pseudo-element, so the two are never both drawn. Decorative: aria-description says it. (The glyph's
368
+ declarations are icons.css's.) */
369
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
370
+ content: 'arrow_outward';
371
+ content: 'arrow_outward' / '';
372
+ /* (A flex box whose one line is the anchor's line high, centred on a box the size of the text: see the glyph.) */
373
+ display: inline-flex;
374
+ align-items: center;
375
+ position: absolute;
376
+ overflow: hidden;
377
+ inline-size: 1em;
378
+ block-size: 1em;
379
+ margin-block-start: calc((1lh - 1em) / 2);
380
+ margin-inline: var(--_link-gap) 0;
381
+ font-family: var(--tanrei-sys-icon-family-unselected);
382
+ font-style: normal;
383
+ font-weight: normal;
384
+ line-height: 1lh;
385
+ letter-spacing: normal;
386
+ text-transform: none;
387
+ white-space: nowrap;
388
+ word-wrap: normal;
389
+ direction: ltr;
390
+ -webkit-user-select: none;
391
+ user-select: none;
392
+ pointer-events: none;
393
+ font-feature-settings: 'liga';
394
+ -webkit-font-smoothing: antialiased;
395
+ font-optical-sizing: auto;
396
+ font-variation-settings:
397
+ 'FILL' var(--tanrei-sys-icon-fill-unselected),
398
+ 'wght' var(--tanrei-sys-icon-weight),
399
+ 'GRAD' 0;
400
+ opacity: var(--tanrei-icons, 0);
401
+ }
402
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number (not
403
+ every engine draws font-optical-sizing: auto): the arithmetic and the condition are src/styles/icons.ts's,
404
+ written in place by the build (writeGlyphAxes). */
405
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
406
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
407
+ 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));
408
+ }
409
+ }
410
+ &:where([target='_blank' i]:not([data-icon-position='trailing']:has(> .tanrei-icon)))::after {
411
+ content: 'open_in_new';
412
+ content: 'open_in_new' / '';
413
+ }
414
+ /* The arrow is drawn while comp.link.external.marks is not none (below). The anchor says so and its own box reads
415
+ it: a style query asked for a pseudo-element is not answered alike by every engine. */
416
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i]))::after {
417
+ display: var(--_link-arrow);
418
+ }
419
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
420
+ left: 0;
421
+ margin-inline: 0;
422
+ transform: scaleX(-1);
423
+ }
424
+
425
+ /* ── The end of a right-to-left link: a trailing glyph and the mark, placed as each engine can (LNK-14) ──────── */
426
+ /* `left: 0` above is the left edge of the link's LAST part — of the box CSS defines for an inline box that runs
427
+ over several lines, from the right edge of its first part to the left edge of its last. That box has a width
428
+ below nothing when the last line of the link ends before the place its first line began (a link that begins
429
+ late on a line and ends early on a later one: any link in a narrow paragraph, at one width in four). WebKit
430
+ keeps the box as defined, and the rule above is right there at every width. Blink and Gecko give it no width,
431
+ at the right edge of the FIRST part, and the glyph was drawn there — on the last line, far from the label and
432
+ over the words that follow. Neither has one rule in common with WebKit that is right:
433
+ - Blink places an element out of the line where it would have stood (as every engine does left to right),
434
+ and WebKit and Gecko do not, right to left;
435
+ - Gecko places it rightly only IN the line, where it breaks no line before a box that follows a word
436
+ without a space, and Blink and WebKit do break there (the glyph would begin a line).
437
+ So each engine is named by a property only it has, and given the one way that is right in it; a browser
438
+ named by neither has the rule above, which is CSS's own. The three are measured against one another at every
439
+ width, in each direction and with labels of each direction, by link.test.ts ("never apart from it"). */
440
+ @supports (-webkit-app-region: none) {
441
+ /* Blink: where it would have stood — after the label's last character, which right to left is its left —
442
+ the gap from it. */
443
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon,
444
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
445
+ left: auto;
446
+ margin-right: var(--_link-gap);
447
+ }
448
+ }
449
+ @supports (-moz-appearance: none) {
450
+ /* Gecko: in the line, after the label's last character, taking no room of its own — drawn in the room the
451
+ anchor keeps after it, on the middle of the line and no taller than the text's own box. */
452
+ &:where([data-icon-position='trailing']:dir(rtl)) > .tanrei-icon.tanrei-icon,
453
+ &:where(:is([target='_blank' i], [data-external]:not([data-external='false'])):dir(rtl))::after {
454
+ position: relative;
455
+ top: calc((1lh - 1em) / 2);
456
+ left: auto;
457
+ margin-block-start: 0;
458
+ margin-right: var(--_link-gap);
459
+ margin-left: calc(-1em - var(--_link-gap));
460
+ vertical-align: top;
461
+ }
462
+ }
463
+
464
+ /* ── Which marks an external link shows (LNK-33): comp.link.external.marks — all, arrow, none ────────────────── */
465
+ /* arrow: no picture, and no room for one. none: neither mark — the link is drawn as one that stays on the site
466
+ (the mark of a new context is not touched: `--_link-arrow` is read by the arrow alone). Read as the underline
467
+ choice is: from the link's parent — and every rule here names an external link, so the question is asked of
468
+ those alone. (Without style queries the name on the document's root has already answered, through the
469
+ `--_link-system-*` values at the end of this file: the picture, the arrow and their rooms.) */
470
+ @container style(--tanrei-comp-link-external-marks: arrow) or style(--tanrei-comp-link-external-marks: none) {
471
+ &:where([data-external]:not([data-external='false'])) {
472
+ --_link-site-icon: none;
473
+ }
474
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon):not(:has(> .tanrei-icon))) {
475
+ padding-inline-start: 0;
476
+ }
477
+ &:where([data-external]:not([data-external='false']):has(> img.tanrei-link-site-icon)[data-icon-position='trailing']) {
478
+ padding-inline-start: 0;
479
+ }
480
+ }
481
+ @container style(--tanrei-comp-link-external-marks: none) {
482
+ &:where([data-external]:not([data-external='false'])) {
483
+ --_link-arrow: none;
484
+ }
485
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], [data-icon-position='trailing']:has(> .tanrei-icon))) {
486
+ padding-inline-end: 0;
487
+ }
488
+ &:where([data-external]:not([data-external='false']):not([target='_blank' i], :has(> .tanrei-icon))) {
489
+ -webkit-box-decoration-break: clone;
490
+ box-decoration-break: clone;
491
+ }
492
+ &:where([data-external]:not([data-external='false'])[data-standalone]:not([data-standalone='false'], [target='_blank' i], :has(> .tanrei-icon))) {
493
+ unicode-bidi: plaintext;
494
+ }
495
+ }
496
+
497
+ /* ── The current link (LNK-18): no underline, the emphasized weight of the text style it sits in ─────────────── */
498
+ &:where([aria-current]:not([aria-current='false'])) {
499
+ font-weight: var(--tanrei-text-emphasized-weight, bolder);
500
+ text-decoration-line: none;
501
+ }
502
+
503
+ /* ── A glyph alone (LNK-16): a square one line of its text high, no underline, no mark, no picture ───────────── */
504
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor) {
505
+ --_link-site-icon: none;
506
+ --_link-label: var(--_link-icon);
507
+ --_link-hovered-label: var(--_link-hovered-icon);
508
+ --_link-focused-label: var(--_link-focused-icon);
509
+ --_link-pressed-label: var(--_link-pressed-icon);
510
+ --_link-disabled-label: var(--_link-disabled-icon);
511
+ display: inline-flex;
512
+ align-items: center;
513
+ justify-content: center;
514
+ inline-size: 1lh;
515
+ block-size: 1lh;
516
+ padding: 0;
517
+ vertical-align: top;
518
+ text-decoration-line: none;
519
+ }
520
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor) > .tanrei-icon.tanrei-icon {
521
+ position: static;
522
+ margin: 0;
523
+ }
524
+ &:where([aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor)::after {
525
+ content: none;
526
+ }
527
+
528
+ /* ── The hit area (LNK-17) ───────────────────────────────────────────────────────────────────────────────────── */
529
+ /* In a sentence it is the link's own text. By itself, or a glyph alone, it reaches the minimum target on both
530
+ axes around the link, and takes no room. */
531
+ &:where([data-standalone]:not([data-standalone='false']), [aria-label]:has(> .tanrei-icon), .tanrei-prose-anchor):where(:any-link)::before {
532
+ content: '';
533
+ position: absolute;
534
+ inset-block: min(0px, calc((100% - var(--_link-target)) / 2));
535
+ inset-inline: min(0px, calc((100% - var(--_link-target)) / 2));
536
+ }
537
+
538
+ /* ── States (LNK-6 to LNK-9): pressed over focused over hovered, each from its own tokens ────────────────────── */
539
+ @media (hover: hover) {
540
+ &:where(:any-link:hover) {
541
+ --_link-rule: var(--_link-rule-active);
542
+ --_link-now-container: var(--_link-hovered-container);
543
+ --_link-now-label: var(--_link-hovered-label);
544
+ --_link-shape: var(--tanrei-comp-link-hovered-container-shape);
545
+ opacity: var(--tanrei-comp-link-hovered-opacity);
546
+ }
547
+ }
548
+ /* LNK-7: the focus indicator, around the link's part of each line; never animated, never for a pointer. */
549
+ &:where(:any-link:focus-visible) {
550
+ --_link-rule: var(--_link-rule-active);
551
+ --_link-now-container: var(--_link-focused-container);
552
+ --_link-now-label: var(--_link-focused-label);
553
+ --_link-shape: var(--tanrei-comp-link-focused-container-shape);
554
+ --_link-focus-inner-edge: calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width));
555
+ opacity: var(--tanrei-comp-link-focused-opacity);
556
+ outline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
557
+ outline-offset: var(--_link-focus-inner-edge);
558
+ /* The inner stroke, where the system has one: from the container to the outer stroke (an inline box has no
559
+ second ring to draw it with). The second term is 0 where the inner width is. */
560
+ 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);
561
+ }
562
+ /* LNK-10, focus-style: glow — the same two colors as a halo; read by a style query, and from data-focus-style
563
+ (written by the script when focus arrives) where there are none. */
564
+ @container style(--tanrei-sys-behavior-focus-style: glow) {
565
+ &:where(:any-link:focus-visible) {
566
+ outline-color: transparent;
567
+ box-shadow:
568
+ 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),
569
+ 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);
570
+ }
571
+ }
572
+ &:where(:any-link[data-focus-style='glow']:focus-visible) {
573
+ outline-color: transparent;
574
+ box-shadow:
575
+ 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),
576
+ 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);
577
+ }
578
+ /* LNK-8, without script: the overlay at once, and the two names keep the container for press-hold after. */
579
+ &:where(:any-link:active:not([data-pressed])) {
580
+ --_link-rule: var(--_link-rule-active);
581
+ --_link-held-image: linear-gradient(var(--_link-pressed-container), var(--_link-pressed-container)), none;
582
+ --_link-held-clip: border-box, text;
583
+ --_link-now-label: var(--_link-pressed-label);
584
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
585
+ opacity: var(--tanrei-comp-link-pressed-opacity);
586
+ transition-duration: 0s;
587
+ transition-delay: 0s;
588
+ }
589
+ /* LNK-8, LNK-9, with the script: `data-pressed` names the feedback. `none` changes nothing at all. */
590
+ &:where([data-pressed]:not([data-pressed='none'])) {
591
+ transition-duration: 0s;
592
+ }
593
+ &:where([data-pressed='overlay']) {
594
+ --_link-rule: var(--_link-rule-active);
595
+ --_link-now-container: var(--_link-pressed-container);
596
+ --_link-now-label: var(--_link-pressed-label);
597
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
598
+ opacity: var(--tanrei-comp-link-pressed-opacity);
599
+ }
600
+ /* ripple, dim: everything but the container color, which stays with the state under the press. */
601
+ &:where([data-pressed='ripple'], [data-pressed='dim']) {
602
+ --_link-rule: var(--_link-rule-active);
603
+ --_link-now-label: var(--_link-pressed-label);
604
+ --_link-shape: var(--tanrei-comp-link-pressed-container-shape);
605
+ opacity: var(--tanrei-comp-link-pressed-opacity);
606
+ }
607
+ /* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color,
608
+ clipped to the container and to a circle around the point of contact, under the text. */
609
+ & > :where(.ripple) {
610
+ position: absolute;
611
+ z-index: -1;
612
+ inset: 0;
613
+ border-radius: inherit;
614
+ corner-shape: inherit;
615
+ background: var(--_link-pressed-container);
616
+ pointer-events: none;
617
+ clip-path: circle(var(--_r) at var(--_x) var(--_y));
618
+ animation: tanrei-link-ripple var(--tanrei-comp-link-motion-feedback-duration) var(--tanrei-comp-link-motion-state-easing) both;
619
+ transition: opacity var(--tanrei-comp-link-motion-state-duration) var(--tanrei-comp-link-motion-state-easing);
620
+ }
621
+ & > :where(.ripple.leaving) {
622
+ opacity: 0;
623
+ }
624
+ @media (prefers-reduced-motion: reduce) {
625
+ & > :where(.ripple) {
626
+ animation: none;
627
+ transition: none;
628
+ }
629
+ }
630
+
631
+ /* ── Disabled (LNK-19): the anchor without href, with role="link" and aria-disabled="true" ───────────────────── */
632
+ &:where([aria-disabled='true']) {
633
+ --_link-now-container: var(--_link-disabled-container);
634
+ --_link-now-label: var(--_link-disabled-label);
635
+ --_link-shape: var(--tanrei-comp-link-disabled-container-shape);
636
+ opacity: var(--tanrei-comp-link-disabled-opacity);
637
+ cursor: default;
638
+ }
639
+ /* A picture has no color to change: it recedes with the label by opacity. */
640
+ &:where([aria-disabled='true']) > :where(img.tanrei-link-site-icon) {
641
+ opacity: var(--tanrei-comp-link-site-icon-disabled-opacity);
642
+ }
643
+
644
+ /* ── Forced colors (LNK-22): the platform's link color, its disabled text color, its highlight for focus ─────── */
645
+ @media (forced-colors: active) {
646
+ /* The container is the platform's, and so is a press: no layer of the link's own. */
647
+ background-image: none;
648
+ background-clip: border-box;
649
+ --_link-now-label: LinkText;
650
+ /* The underline is drawn at rest whatever was chosen: the colors are the person's, and nothing any longer
651
+ holds the link's apart from the text's (LNK-29). The current link and a glyph alone still have no line. */
652
+ --_link-rule: currentcolor;
653
+ &:where([aria-disabled='true']) {
654
+ --_link-now-label: GrayText;
655
+ }
656
+ &:where(:any-link:focus-visible) {
657
+ outline-color: Highlight;
658
+ }
659
+ }
660
+
661
+ /* ── Not a link (LNK-21): no destination — or an empty one, or a script — is drawn as the text around it ─────── */
662
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i]) {
663
+ --_link-site-icon: none;
664
+ display: inline;
665
+ inline-size: auto;
666
+ block-size: auto;
667
+ padding: 0;
668
+ background-color: transparent;
669
+ color: inherit;
670
+ font-weight: inherit;
671
+ text-decoration-line: none;
672
+ opacity: unset;
673
+ outline: none;
674
+ box-shadow: none;
675
+ cursor: inherit;
676
+ transition: none;
677
+ }
678
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i]) > .tanrei-icon.tanrei-icon {
679
+ /* In the line, as icons.css draws a glyph: its own box and its own line. */
680
+ display: inline-block;
681
+ position: static;
682
+ margin: 0;
683
+ line-height: 1;
684
+ vertical-align: baseline;
685
+ }
686
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i])::before,
687
+ &:where(:not(:any-link, [aria-disabled='true']), [href=''], [href^='javascript:' i])::after {
688
+ content: none;
689
+ }
690
+
691
+ /* ── Hidden: the rules above that name a display (a glyph alone, what is not a link) are an author's, and beat the
692
+ browser's own for the attribute — said last, so that the attribute still means no box ───────────────────────── */
693
+ &:where([hidden]:not([hidden='until-found' i])) {
694
+ display: none;
695
+ }
696
+ /* link:rules:end */
697
+ }
698
+
699
+ /* link:keyframes */
700
+ @keyframes tanrei-link-ripple {
701
+ from {
702
+ clip-path: circle(0 at var(--_x) var(--_y));
703
+ }
704
+ }
705
+ /* LNK-27, LNK-33, for a browser without style container queries: the package's script writes the design system's
706
+ two choices, by name, on the document's root, and these rules — tried on the element that carries the attribute
707
+ and on no other — hand each answer down as a value every link inherits. (Said from the link's side instead,
708
+ `[data-underline-system] .tanrei-link`, each would be a walk to the root for every anchor of the page.) A link
709
+ under `none` keeps the box of a link with room, cut at the line ends, which has no room left to show it. Each
710
+ selector is one name: a list inside one `:where()` is filed under no name and tried on every element. */
711
+ :where([data-underline-system='hover']),
712
+ :where([data-underline-system='never']) {
713
+ --_link-system-rest: transparent;
714
+ }
715
+ :where([data-underline-system='never']) {
716
+ --_link-system-active: transparent;
717
+ }
718
+ :where([data-external-marks-system='arrow']),
719
+ :where([data-external-marks-system='none']) {
720
+ --_link-system-site-icon: none;
721
+ --_link-system-pictures: 0;
722
+ }
723
+ :where([data-external-marks-system='none']) {
724
+ --_link-system-arrow: none;
725
+ --_link-system-arrows: 0;
726
+ }
727
+ /* link:keyframes:end */
728
+ }