@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
@@ -0,0 +1,800 @@
1
+ import { LitElement, type PropertyDeclarations, type PropertyValues } from 'lit';
2
+ import type { TanreiTabsSizeRegistry, TanreiTabsVariantRegistry } from '../../registry.js';
3
+ import { TRANSITION_VALUES } from './tabs.styles.js';
4
+ /** The core variants (primary, secondary, tonal), plus any a design system's generated `.d.ts` registers. */
5
+ export type TanreiTabsVariant = keyof TanreiTabsVariantRegistry | (string & {});
6
+ /** The core sizes (small, medium), plus any a design system's generated `.d.ts` registers. */
7
+ export type TanreiTabsSize = keyof TanreiTabsSizeRegistry | (string & {});
8
+ /** How a row draws a new selection (TAB-43): `auto` takes the design system's answer, `comp.tabs.motion.transition`. */
9
+ export type TanreiTabsTransition = (typeof TRANSITION_VALUES)[number];
10
+ /** What `change` carries: the value of the tab the user selected, which the row's `value` now holds. */
11
+ export interface TanreiTabsChangeDetail {
12
+ value: string;
13
+ }
14
+ /**
15
+ * @internal What a linked `<tanrei-tab-view>` offers the row it is linked to (TAB-13, TBV-2, TBV-9): its panel of a
16
+ * value, and a call when the row's selection, its tabs or its panels may have changed. The view links itself with
17
+ * `linkView()`; nothing else implements it.
18
+ */
19
+ export interface LinkedTabView extends HTMLElement {
20
+ /** The view's panel of `value` — the first with it — or null. */
21
+ panelFor(value: string): HTMLElement | null;
22
+ /**
23
+ * The row's selection, its tabs or its connection changed: the view follows (TBV-1, TBV-2) — `atOnce` when the row
24
+ * took its group's choice, or one restored from storage, so that the view shows the panel without a switch (TBV-20).
25
+ */
26
+ followTabs(atOnce?: boolean): void;
27
+ /**
28
+ * TBV-18: the user selected `value` on the row the view draws itself. The row has set its own `value` and fires no
29
+ * `change`: the view announces the selection instead, once.
30
+ */
31
+ rowSelected(value: string): void;
32
+ /**
33
+ * TBV-23: the row the view draws itself is about to draw a selection a person made on it; the view gives it the
34
+ * transition its own form asks for first.
35
+ */
36
+ rowWillSelect(): void;
37
+ }
38
+ /** What the row tells each of its tabs. */
39
+ interface TabContext {
40
+ selected: boolean;
41
+ tabStop: boolean;
42
+ position: number;
43
+ size: number;
44
+ /** The secondary structure (icon before the label, the underline as wide as the tab): secondary's and tonal's; anything else is primary's. */
45
+ secondary: boolean;
46
+ /** TAB-18, TAB-44: the row is small, so no tab stacks its icon above its label. */
47
+ small: boolean;
48
+ /** The row fills (`fullWidth`): the indicator's box is the tab's whole share (TAB-16). */
49
+ fill: boolean;
50
+ /** The selected tab is disabled, so the indicator is drawn in its disabled color wherever it passes (TAB-6). */
51
+ pillDisabled: boolean;
52
+ }
53
+ /** A box in a tab's own coordinates (or the row's), in CSS px. */
54
+ interface Box {
55
+ x: number;
56
+ y: number;
57
+ w: number;
58
+ h: number;
59
+ }
60
+ /** What the row measures of a tab to place the indicator: the tab, its container (the indicator's box) and its plain content. */
61
+ interface TabParts {
62
+ tab: HTMLElement;
63
+ box: HTMLElement;
64
+ content: HTMLElement;
65
+ /** The probe of the indicator's width in a row that hugs: the content plus active-indicator.padding-inline on each side. */
66
+ plate: HTMLElement;
67
+ }
68
+ /** TAB-16: what a tab read of itself to size its container — the indicator's height, and its width in a row that hugs. */
69
+ interface BoxSize {
70
+ height: number;
71
+ width: number;
72
+ /** The tab's own width (at least the indicator's height, which is its least width, TAB-14). */
73
+ tab: number;
74
+ /** TAB-14: the indicator is a circle in a row that hugs, so the tab is that circle and no wider (but for the minimum target). */
75
+ round: boolean;
76
+ /**
77
+ * TAB-34: how much more than the track's inset such a tab is wider than its circle on each side (0: no more). At an
78
+ * end of the row the tab ends at the track's edge by that much less of itself, so that the circle still lies the
79
+ * inset from the track's end.
80
+ */
81
+ over: number;
82
+ }
83
+ /**
84
+ * How much larger the row is drawn than laid out (`layoutScale`): 1 at rest, and the scale of a surface growing in around
85
+ * the row. Everything the row measures is read on the page and divided by it, so that every box it keeps and writes — the
86
+ * indicator's, the clips', a tab's widths — is in the row's own pixels.
87
+ */
88
+ type Scale = {
89
+ x: number;
90
+ y: number;
91
+ };
92
+ /** A tab's box and its plain content's box within it, as the row read them, in the row's own pixels. */
93
+ interface TabFrame {
94
+ size: {
95
+ w: number;
96
+ h: number;
97
+ };
98
+ content: Box;
99
+ }
100
+ /**
101
+ * One tab of a row — the spec's item kind `tab`: a label, an optional icon, and the value that selects it.
102
+ * Placed as a child of `<tanrei-tabs>`, as `<option>` in a `<select>`; the row decides whether it is selected, which tab
103
+ * is the Tab stop, and answers its activation.
104
+ *
105
+ * The host carries the tab's semantics — the tab role, its selected state, its position, the number of tabs and its
106
+ * name, its label whether or not the label is drawn — and takes focus itself.
107
+ *
108
+ * A label that does not fit its tab (a row that fills) is truncated with an ellipsis and shown whole in a plain tooltip on
109
+ * hover and keyboard focus; it stays the tab's whole accessible name, and the tooltip is not exposed a second time.
110
+ *
111
+ * @tag tanrei-tab
112
+ * @csspart container - The tab's state layer: hover, focus and press and the ripple, drawn in the box the active indicator has on this tab (a capsule, a circle, or the tab's share in a row that fills), never on the tab's rectangle. The whole tab answers the pointer.
113
+ * @csspart icon - The glyph (hidden from assistive technology).
114
+ * @csspart label - The tab's text.
115
+ * @csspart active-indicator - The indicator's piece on this tab, carrying the covered copy of the icon and label, clipped to where the indicator is (hidden from assistive technology).
116
+ * @csspart underline - The underline's piece on the tab's bottom edge, clipped to where the underline is (hidden from assistive technology).
117
+ */
118
+ export declare class TanreiTab extends LitElement {
119
+ static styles: import("lit").CSSResult[];
120
+ static properties: PropertyDeclarations;
121
+ /** Identifies the tab: the row's `value` names the selected tab by it, and `change` carries it. Unique within the row; required. */
122
+ value: string;
123
+ /** The tab's text and its accessible name. Required, even when `labelHidden` is true. */
124
+ label: string;
125
+ /** The name of a glyph of the system's icon set. Give every tab of a row an icon, or none. A glyph the icon set flags as showing a direction (`arrow_forward`, `send`) is drawn mirrored in a right-to-left layout. */
126
+ icon: string;
127
+ /** Draws the icon alone and keeps `label` as the accessible name (an icon-only tab). */
128
+ labelHidden: boolean;
129
+ /** Prevents selecting the tab; the arrow keys skip it and it is never the Tab stop. */
130
+ disabled: boolean;
131
+ /** What the row says about this tab. */
132
+ private context;
133
+ /** TAB-25: the drawn label does not fit its tab, so it is truncated and the tooltip shows it whole. */
134
+ private truncated;
135
+ /** TAB-25: the label's box changes with the row's width and the text's (a font arriving, the text size). */
136
+ private readonly labelSize$;
137
+ private observedLabel;
138
+ /**
139
+ * TAB-32: the tab's glyph, in both of its copies (TAB-24), is marked when the icon set mirrors its name in
140
+ * right-to-left (src/primitives/glyph-mirror.ts); `iconGlyph()` draws the mark.
141
+ */
142
+ private readonly mirror;
143
+ /** TAB-8 / TAB-9: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). */
144
+ private readonly press;
145
+ private spaceDown;
146
+ constructor();
147
+ connectedCallback(): void;
148
+ disconnectedCallback(): void;
149
+ /** @internal The row's side. */
150
+ setTabsContext(context: TabContext): void;
151
+ /** @internal Whether the row draws this tab as its selected one. */
152
+ get isSelected(): boolean;
153
+ /** `element.click()` selects the tab as a pointer would; a disabled tab does nothing (TAB-2). */
154
+ click(): void;
155
+ /** @internal What the row measures to place the indicator (TAB-16, TAB-17). */
156
+ get indicatorParts(): TabParts | null;
157
+ /**
158
+ * @internal TAB-23, TAB-38: while `on`, the tab's colors change at once — the row follows its group's choice, or one
159
+ * restored from storage, and a follower shows no motion. The row takes it off again once the change is drawn.
160
+ */
161
+ still(on: boolean): void;
162
+ /** @internal TAB-28: the drag was taken, so the press on this tab ends as any press does (TAB-8). */
163
+ releasePress(): void;
164
+ /**
165
+ * @internal TAB-16, TAB-18: reads what sizes the container, which is the indicator's box on this tab. Its height is the
166
+ * tab's (the row's) less track.padding above and below — the box's own, by its insets. In a row that hugs its width
167
+ * is the content plus active-indicator.padding-inline on each side (the probe), never wider than the tab and never
168
+ * narrower than its height — and exactly its height where the content is not wider than it is tall: a circle.
169
+ * Everything is in the tab's own pixels: what is read on the page is divided by the row's `scale`, so a row first
170
+ * drawn while its surface scales in sizes its tabs as it does at rest (the padding and what is written are never
171
+ * scaled).
172
+ */
173
+ readBox(scale?: Scale): BoxSize | null;
174
+ /** TAB-34: how much narrower than its own width the tab is laid out now, in px: what its ends of the row took back. */
175
+ private trimmed;
176
+ /**
177
+ * @internal TAB-14, TAB-16, TAB-34: writes what `readBox()` read — the container's width, the tab's least width,
178
+ * whether the tab is its circle (no inline padding), and how much wider than its indicator the tab is at each side
179
+ * (`--_wider`: what is left of the track's inset beside an end tab is that tab's hit area). Returns whether what it
180
+ * wrote changes the tab's own width, so that the row reads the tabs again.
181
+ */
182
+ writeBox(size: BoxSize | null): boolean;
183
+ /**
184
+ * @internal TAB-16, TAB-24: draws the indicator's and the underline's pieces on this tab. `pill` and `line` are in the
185
+ * tab's own coordinates (they may reach beyond it: the rest is drawn by its neighbours), `size` is the tab's box and
186
+ * `content` its plain content's box, `radius` the indicator's corner in px. The covered layer — the indicator's color
187
+ * and the covered copy — is clipped to the indicator; the plain content has the same shape cut out, so nothing is
188
+ * drawn twice under a translucent indicator. `null` draws neither.
189
+ */
190
+ paintIndicator(pill: Box | null, line: {
191
+ x: number;
192
+ w: number;
193
+ } | null, size: {
194
+ w: number;
195
+ h: number;
196
+ }, content: Box, radius: number): void;
197
+ /**
198
+ * @internal TAB-17, TAB-24: this tab's pieces of a slide — the covered layer's clip, the cut in the plain content and
199
+ * the underline's clip, each moved by the browser through what `pieces()` gives at every one of `stops` (the
200
+ * indicator's places along the slide, at equal parts of it, in the tab's own coordinates), over `timing` from `start`
201
+ * on the document's timeline. What the tab is given to draw at rest (`paintIndicator`, the slide's end) is under them
202
+ * and shows when they are over; while they run the covered layer is drawn on every tab the indicator passes.
203
+ * Returns the animations: the row holds them.
204
+ */
205
+ slideIndicator(stops: {
206
+ pill: Box;
207
+ line: {
208
+ x: number;
209
+ w: number;
210
+ };
211
+ }[], frame: TabFrame, radius: number, timing: KeyframeEffectOptions, start: number | null): Animation[];
212
+ /** @internal The indicator's corner as drawn on this tab, in px (TAB-16). */
213
+ get indicatorRadius(): number;
214
+ /** TAB-41: the row measures this tab's label with every other row's (`measureLabel()`), so its next draw does not. */
215
+ private labelDeferred;
216
+ /** @internal TAB-41: the tab's next draw leaves its label unmeasured; the row has it measured with the others. */
217
+ deferLabel(): void;
218
+ /** @internal TAB-25, TAB-41: measures the label now, for the row. */
219
+ measureLabel(): void;
220
+ /** TAB-25: whether the drawn label is cut short by its tab. */
221
+ private measureTruncation;
222
+ private get tooltip();
223
+ /** TAB-1: Enter activates on key-down and Space on key-up, as a native button does; the activation is a click. */
224
+ private readonly onKeyDown;
225
+ private readonly onKeyUp;
226
+ /**
227
+ * TAB-10: where style queries are missing, the focus style is read when focus arrives. TAB-25: keyboard focus on a
228
+ * truncated tab shows its whole label (the tooltip opens by itself on hover; focus is on this host, outside it).
229
+ */
230
+ private readonly onFocus;
231
+ private readonly onBlur;
232
+ /** TAB-19: the label is drawn unless it is hidden and there is an icon to draw instead. */
233
+ private get drawsLabel();
234
+ protected updated(changed: PropertyValues<this>): void;
235
+ protected render(): import("lit").TemplateResult<1>;
236
+ }
237
+ /**
238
+ * The view a tab shows. Placed as a child of `<tanrei-tabs>` after its tabs, or of a `<tanrei-tab-view>`, and matched to
239
+ * the tab whose `value` is its own. The row (or the view) gives it the tab panel role, names it by its tab, hides it while
240
+ * its tab is not selected, and makes it a Tab stop itself while it holds nothing focusable.
241
+ *
242
+ * In a `<tanrei-tab-view>` that draws its own row (TBV-16), the panel also says what its tab shows: `label`, `icon`,
243
+ * `label-hidden` and `disabled`, as `<tanrei-tab>` has them. A panel of a `<tanrei-tabs>`, or of a view linked to a row
244
+ * placed elsewhere, ignores them.
245
+ *
246
+ * @tag tanrei-tab-panel
247
+ * @slot - The view.
248
+ */
249
+ export declare class TanreiTabPanel extends LitElement {
250
+ static styles: import("lit").CSSResult;
251
+ static properties: PropertyDeclarations;
252
+ /** The value of the tab that shows this panel. */
253
+ value: string;
254
+ /**
255
+ * The text of this panel's tab in the row a `<tanrei-tab-view>` draws itself, and the accessible name of the tab and of
256
+ * the panel. Required there, even when `labelHidden` is true.
257
+ */
258
+ label: string;
259
+ /** The name of a glyph of the system's icon set for this panel's tab in the view's own row. Give every panel one, or none. */
260
+ icon: string;
261
+ /** Draws this panel's tab in the view's own row as its icon alone, keeping `label` as its accessible name. */
262
+ labelHidden: boolean;
263
+ /** Makes this panel's tab in the view's own row disabled: it cannot be selected, and a swipe skips its panel. */
264
+ disabled: boolean;
265
+ /** TBV-10: a panel of a `<tanrei-tab-view>` draws its focus ring inside the view's edge, following its corners. */
266
+ private inView;
267
+ constructor();
268
+ connectedCallback(): void;
269
+ protected updated(changed: PropertyValues<this>): void;
270
+ protected render(): import("lit").TemplateResult<1>;
271
+ }
272
+ /**
273
+ * Switches between views of the same subject with a row of labelled tabs, one of them selected, above the view it shows.
274
+ *
275
+ * Contract: specs/tabs.spec.json. `<tanrei-tab>` children are the tabs, in order; `<tanrei-tab-panel>` children after
276
+ * them are the panels, matched to tabs by `value` — or, where a `<tanrei-tab-view tabs="<this row's id>">` is linked to
277
+ * the row, the view's panels take their place (TAB-13), and the view draws the indicator between two tabs while it is
278
+ * swiped (`indicatorOffset`, TAB-26). The row's selected tab is its `value`, as a `<select>`'s: `null`
279
+ * selects the first enabled tab. The row sets it when a tab is activated — by pointer, touch, Enter, Space, or the arrow
280
+ * keys, which select the tab they reach (automatic activation) — and then fires `change`.
281
+ *
282
+ * Three variants say how much the selection weighs — `primary`, `secondary`, and `tonal`, the quiet row whose indicator
283
+ * is a soft layer under a darker label — and are one control in everything else. `size` is the row's height (`medium`,
284
+ * the default, and `small`, which stands in a header beside small controls: it stays as low as it is, and a press just
285
+ * above or below it, on nothing that would answer the press itself, still selects the tab in line with it).
286
+ *
287
+ * The row sits on a track: one constant color per variant, the same whichever tab is selected (a capsule in the
288
+ * default system); `track="false"` fills none and changes nothing else, `track` draws it whatever the design system
289
+ * says, and without the attribute the system decides (`--tanrei-comp-tabs-track-visible`). The tabs hug their content and scroll sideways inside the track (the default), or share the row's
290
+ * width (`full-width`), truncating a label that does not fit. The selected tab's active indicator — the thumb on the
291
+ * track: as tall as the row less the track's padding on every tab, a capsule as wide as the tab's content plus its
292
+ * padding or a circle where that content is not wider than it is tall, and the tab's whole share in a row that fills —
293
+ * slides to a newly selected tab with the underline, and each label and icon it passes over takes its covered colors
294
+ * where it is covered.
295
+ *
296
+ * A drag across the row — by touch, a pen or a mouse, past 8 px and further sideways than up or down — carries the
297
+ * indicator with the pointer, its place, its width and the covered colors changing continuously. Nothing is selected
298
+ * before the release, which chooses the nearer of the two tabs the indicator lies between (or the one a fling is
299
+ * toward), sets `value` and fires `change` once; Escape, a cancelled pointer, or `value` set meanwhile returns it.
300
+ *
301
+ * `transition` says how a new selection is drawn: `slide` as above, `none` whole in one frame — nothing travels and no
302
+ * color fades between selected and not, a tab out of view is brought in at once, and a drag still carries the indicator
303
+ * and lands at once on release — and `auto`, the default, as the design system says
304
+ * (`--tanrei-comp-tabs-motion-transition`). Hover, focus and press are answered the same under each.
305
+ *
306
+ * Every visual value comes from `--tanrei-comp-tabs-*` tokens, per variant, look (selected or not) and state. How a
307
+ * press is answered and how keyboard focus is drawn are the system's choices of kind (`--tanrei-sys-behavior-*`),
308
+ * read from the cascade.
309
+ *
310
+ * @tag tanrei-tabs
311
+ * @slot - `<tanrei-tab>` children (the tabs) and `<tanrei-tab-panel>` children (the panels).
312
+ * @csspart tablist - The row that holds the tabs: the tab list.
313
+ * @csspart scroller - The box that lays the tabs out and scrolls them sideways when they do not fit; it is also the track.
314
+ * @csspart track - The constant background of the whole row (the same element as `scroller`): its color and its corners.
315
+ * @csspart divider - The line along the bottom of the whole row.
316
+ * @fires {CustomEvent<TanreiTabsChangeDetail>} change - The user selected another tab: `detail.value` (and the row's `value`) is its value.
317
+ */
318
+ export declare class TanreiTabs extends LitElement {
319
+ private readonly availability;
320
+ static styles: import("lit").CSSResult[];
321
+ static shadowRootOptions: ShadowRootInit;
322
+ static properties: PropertyDeclarations;
323
+ /**
324
+ * How much the selection weighs. Primary tabs switch the main views of a screen, at the top of its content; secondary
325
+ * tabs switch within one of them; tonal tabs are the quiet row, for a choice that should not compete with what it
326
+ * changes — the language of a code sample, a contrast, a unit, a period. The three are the same control otherwise.
327
+ */
328
+ variant: TanreiTabsVariant;
329
+ /**
330
+ * The row's height (small 32 / medium 48) and what shrinks with it: a tab's padding, the active indicator's margins
331
+ * and the icon. A small row puts a tab's icon before its label in every variant, and its tabs still answer a press
332
+ * within the minimum target.
333
+ */
334
+ size: TanreiTabsSize;
335
+ /**
336
+ * Whether the row draws its track, the background behind all its tabs. False draws none and changes nothing else.
337
+ * Null, the default, takes the system's choice (`track.visible`, on in the default system). The attribute: absent is
338
+ * null, `track` is true, `track="false"` is false.
339
+ */
340
+ track: boolean | null;
341
+ /**
342
+ * False (hug, the default) sizes each tab to its content, never truncating its label, and scrolls the row sideways when
343
+ * the tabs do not fit; true (fill) divides the row's width equally among the tabs and truncates a label that does not
344
+ * fit its share, showing it whole in a tooltip (for two to five short labels).
345
+ */
346
+ fullWidth: boolean;
347
+ /**
348
+ * The value of the selected tab; `null` selects the first enabled tab. The row sets it when a tab is activated. While
349
+ * the row is a member of a group (`group`), the group's choice selects the tab of that value wherever the row has one.
350
+ */
351
+ value: string | null;
352
+ /**
353
+ * How the row draws a new selection. `slide`: the active indicator and the underline slide and resize to the newly
354
+ * selected tab, the labels' colors changing under them. `none`: the new selection is drawn whole in one frame.
355
+ * `auto` (the default, and what any other value is taken as) takes the design system's answer
356
+ * (`motion.transition`, slide in the default system). A drag across the row carries the indicator under each, and
357
+ * hover, focus and press are answered the same; where motion is reduced a selection is drawn as `none` does.
358
+ */
359
+ transition: TanreiTabsTransition;
360
+ /**
361
+ * The accessible name of the row: what the views are views of — or, for a row without panels, what is chosen
362
+ * ("Contrast", "Units"). Needed when a screen has more than one row of tabs, and for every row without panels.
363
+ */
364
+ label: string;
365
+ /**
366
+ * Names a choice this row shares with the other rows of tabs in the document — placed by the product or drawn by a
367
+ * `<tanrei-tab-view>` — that name the same group, compared exactly. Selecting a tab in one selects the tab of the same
368
+ * value in every other row that has an enabled one, at once and without moving focus or the page; a row that has no
369
+ * such tab keeps its own. Only the row the person used fires `change`. Empty (the default): the row's choice is its own.
370
+ */
371
+ group: string;
372
+ /**
373
+ * The key of the origin's `localStorage` under which a person's choice on this row is kept across pages and visits,
374
+ * and from which it is restored before the row is first drawn. The key is the product's own and is used exactly as
375
+ * given; only the chosen tab's value is stored. Empty (the default): the row neither reads nor writes any storage. It
376
+ * needs no group, and a group needs no key.
377
+ */
378
+ rememberAs: string;
379
+ /** TAB-36: the group the row is a member of now (null: none, or the row is out of the document). */
380
+ private joined;
381
+ /** TAB-37: the `value` the row last saw as its own; another one, once the row is drawn, is one the product set. */
382
+ private known;
383
+ /** TAB-39: whether the row has looked for a remembered choice, which it does once, before it is first drawn. */
384
+ private restored;
385
+ /** TAB-39: the remembered value a row without a group selects as soon as it has an enabled tab of it. */
386
+ private restoring;
387
+ /** TAB-38: the selection changed because the row follows (its group, or the storage): the next sync draws it at once. */
388
+ private atOnce;
389
+ /** TAB-41: the rows that follow one choice together; the row adds itself instead of measuring alone. */
390
+ private following;
391
+ /** TAB-41: the `value` the row has already drawn as a follower, so that the update its change asks for draws nothing again. */
392
+ private followed;
393
+ /** TAB-26: the offset the indicator is drawn at now (0: on the selected tab). */
394
+ private offset;
395
+ /**
396
+ * Where the active indicator and the underline are drawn while a linked Tab view is swiped, relative to the selected
397
+ * tab: 0 on it, 1 on the next enabled tab and −1 on the previous one in reading order, and in between for values
398
+ * between (TAB-26). They follow it in the frame it is set, without a motion of their own; beyond 1 they stay on the
399
+ * neighbour, and where there is no enabled tab in its direction they stay on the selected tab. The Tab view sets it;
400
+ * a product leaves it at 0 unless it drives the indicator itself. A property only, with no attribute.
401
+ */
402
+ get indicatorOffset(): number;
403
+ set indicatorOffset(value: number);
404
+ /** TAB-13, TBV-9: the Tab view linked to this row, whose panels take the place of the row's own. */
405
+ private linked;
406
+ /** TBV-16, TBV-18: the Tab view that draws this row as its own, which announces the row's selections itself. */
407
+ private owner;
408
+ /** TAB-7: a variant or a size a design system adds, and a value the active system does not have (src/primitives/axes.ts). */
409
+ private readonly axes;
410
+ private readonly keys;
411
+ private readonly children$;
412
+ /**
413
+ * TAB-15, TAB-17: a change of size or place (a font arriving, the text size, the row resizing) puts things back at
414
+ * once. One observer for every row (TAB-41): the rows that changed in a frame are told together, so that they are
415
+ * all measured and then all written.
416
+ */
417
+ private static readonly watched;
418
+ private static readonly resize$;
419
+ /**
420
+ * What the observer watches for this row now, each with the tab it is a part of (null: the row's own). Emptied when
421
+ * the row leaves the document, and of a tab's parts when the tab leaves the row.
422
+ */
423
+ private readonly observed;
424
+ /** The row's first placement is the observer's, and has not been reported yet (`sync`). */
425
+ private awaitsObserver;
426
+ /** The tab drawn selected at the last sync (TAB-17 slides the indicator from it). */
427
+ private shownTab;
428
+ private scrolling;
429
+ private scrollFrame;
430
+ /** Where the indicator and the underline are written to rest, in the track's coordinates (null: nowhere). */
431
+ private rest;
432
+ /**
433
+ * TAB-17: the slide running now. `clock` is the row's own animation on the strip (it draws nothing; its progress is
434
+ * the slide's), `parts` every tab's pieces, which the browser moves; `stops` are the indicator's places along the
435
+ * slide, at equal parts of it — where it was, the enabled tabs it passes, where it goes — and `tabs` the tab each
436
+ * stop is measured on (null: a place between tabs, where a slide, an offset or a drag had left it).
437
+ */
438
+ private sliding;
439
+ /**
440
+ * Where the indicator and the underline are drawn now, in the track's coordinates (null: nowhere): where they rest,
441
+ * or the place a running slide has reached — worked out from its clock when it is asked for, never frame by frame.
442
+ */
443
+ private get mark();
444
+ /** TAB-28…30: the drag across the row, from its press to its release. */
445
+ private drag;
446
+ private dragFrame;
447
+ /** TAB-28, TAB-29: the click that follows a drag the row took is not a tap. */
448
+ private swallowClick;
449
+ constructor();
450
+ connectedCallback(): void;
451
+ disconnectedCallback(): void;
452
+ /** @internal A `<tanrei-tab-view>` links itself to the row (TAB-13): its panels take the place of the row's own. */
453
+ linkView(view: LinkedTabView): void;
454
+ /** @internal TBV-16: the Tab view that draws this row as its own (null: none); it announces the row's selections (TBV-18). */
455
+ setOwnerView(view: LinkedTabView | null): void;
456
+ /** @internal The view is no longer linked to the row: the row's own panels are its panels again. */
457
+ unlinkView(view: LinkedTabView): void;
458
+ /** @internal The linked Tab view, if it is connected. */
459
+ get linkedView(): LinkedTabView | null;
460
+ /** @internal The panels the row holds itself (TBV-15: a linked view reports them). */
461
+ get ownPanels(): TanreiTabPanel[];
462
+ /** @internal The panels changed in the linked view: the tabs control them anew (TAB-13). */
463
+ relink(): void;
464
+ /** The row's tabs, in order. */
465
+ get tabs(): TanreiTab[];
466
+ private get panels();
467
+ private get scroller();
468
+ /** @internal TBV-3, TBV-8: whether the row follows a drag of its own now (a Tab view then takes none). */
469
+ get dragging(): boolean;
470
+ /** The box the tabs are laid out in: it scrolls with them, so positions in it do not change while the row scrolls. */
471
+ private get strip();
472
+ /**
473
+ * TAB-11: the tab `value` selects — the first tab with that value — or, while `value` is null, the first enabled tab;
474
+ * `null` when `value` names no tab.
475
+ */
476
+ get selectedTab(): TanreiTab | null;
477
+ /** The tab an event came from. */
478
+ private tabOf;
479
+ /**
480
+ * TAB-1, TAB-12: selects `tab`, and fires `change` once, when it is enabled and not already selected — or, on the row a
481
+ * Tab view draws itself, has the view announce it instead (TBV-18), so that the row's `change` never reaches the product.
482
+ */
483
+ private select;
484
+ /**
485
+ * TAB-37 to TAB-41: a person chose the tab of `value` on this row. The row takes it (`now`: and draws it in this
486
+ * task); it becomes the group's choice, so every other member that has an enabled tab of it follows at once, in the
487
+ * same frame, and fires nothing; it is stored once under each key that this row or a member whose tab changed names;
488
+ * and `hold` — the row, or a Tab view's container for a swipe — stays where it is in the window while the members
489
+ * before it change height (TAB-40, TBV-21), measured once before anything is written and once after.
490
+ */
491
+ private choose;
492
+ /**
493
+ * @internal TBV-4, TBV-21: a person committed a swipe to the tab of `value` on the Tab view linked to this row. The
494
+ * row takes it as a selection made on itself — the group follows, the choice is remembered — and keeps `hold`, the
495
+ * view's container, in place; the view announces it.
496
+ */
497
+ personSelected(value: string, hold: Element): void;
498
+ /** TAB-36: whether the group's choice `value` would give this row another selected tab: it has an enabled tab of it. */
499
+ private wouldFollow;
500
+ /**
501
+ * TAB-36, TAB-39, TAB-41: brings the row's membership in line with `group` and the document — out of the group it
502
+ * was in, into the one it names — and, once, before the row is first drawn, looks for the choice remembered under
503
+ * its key: a group that holds no choice takes it (whether or not this row has a tab of it), and a row without a
504
+ * group selects its tab of it.
505
+ */
506
+ private enroll;
507
+ /**
508
+ * TAB-36, TAB-39: takes the group's choice — or, without a group, the remembered value — while the row has an
509
+ * enabled tab of it: `value` is set, nothing is fired, and the next sync draws it at once (TAB-38). Says whether
510
+ * `value` changed. A row that has no such tab keeps its own, and follows again as soon as it has one.
511
+ */
512
+ private adopt;
513
+ /**
514
+ * @internal TAB-36, TBV-16: joins the group the row names and takes its choice now, before the row is drawn — a Tab
515
+ * view asks this of the row it draws once it has given it its own selected, so that the view's first frame is the
516
+ * choice's.
517
+ */
518
+ followGroup(): void;
519
+ /** TAB-38: this member follows the choice now, to be measured and drawn with the others that do (`together`). */
520
+ private followNow;
521
+ /**
522
+ * TAB-38, TAB-41: every row of `rows` takes the choice in this task — its selection, its tabs' exposure and its panels —
523
+ * and, once their tabs have drawn what they are now, all of them are measured and then all of them written, so that
524
+ * sixty rows that follow cost one layout and not sixty. `keep` (TAB-40) is run where everything is read, after the
525
+ * rows' own sizes are written and before their indicators are.
526
+ */
527
+ private static followTogether;
528
+ /** TAB-23, TAB-38: the tabs whose colors change at once now, and the frame that lets them move again. */
529
+ private static readonly stilled;
530
+ private static stillFrame;
531
+ /**
532
+ * TAB-23, TAB-38: `tabs` change their colors without the state motion — for the frame that draws the change; two
533
+ * frames on, when it has been drawn, they answer a pointer with their motion again. One frame for every row.
534
+ */
535
+ private static still;
536
+ /**
537
+ * TAB-38: what `place()` and `reveal()` do for a row that follows, in two halves — everything is read now, and the
538
+ * function returned writes it — so that many rows are read together and then written together. The indicator and the
539
+ * underline go on `selected` at once (at the current offset), and the tab is brought into view inside the track at
540
+ * once.
541
+ */
542
+ private placing;
543
+ /** TAB-1: a tab's activation — its click, from a pointer, Enter, Space or `element.click()` — selects it. */
544
+ private readonly onClick;
545
+ /**
546
+ * TAB-12: Right and Left Arrow move to the next and previous enabled tab, wrapping (mirrored in right-to-left), Home and
547
+ * End to the first and last; each move selects the tab it reaches. Disabled tabs are skipped (TAB-2).
548
+ */
549
+ private readonly onKeyDown;
550
+ /** TAB-15: a tab that receives keyboard focus is brought into view. */
551
+ private readonly onFocusIn;
552
+ /**
553
+ * Tells every tab what it is now and every panel whether it shows (TAB-2, TAB-11, TAB-13), assigns the slots, slides
554
+ * the indicator when the selected tab changed (TAB-17), and reports what it should.
555
+ */
556
+ private sync;
557
+ /** Watches what moves the indicator when its size or place changes (TAB-17). */
558
+ private observe;
559
+ /** Watches a tab's parts: what the indicator is measured from. */
560
+ private observeTab;
561
+ /** Stops watching what `gone` says is no longer the row's: everything when it leaves, a tab's parts when the tab does. */
562
+ private unobserve;
563
+ /**
564
+ * TAB-15, TAB-17, TAB-41: `rows` changed size or place in one frame. Each puts its indicator back on its selected tab
565
+ * and that tab in view, at once — one row as `place()` and `reveal()` do, several as they do but all read first and
566
+ * then all written, so that a page of rows costs one layout and not one for each row. A row that slides or follows a
567
+ * drag keeps its own way.
568
+ */
569
+ private static placeTogether;
570
+ /**
571
+ * TAB-41: puts the indicator of every row of `rows` on its `selected` tab, and that tab in view, at once: every row's
572
+ * tabs are read, then written (`sized`); then every row's place is read — and `keep` run — then written.
573
+ */
574
+ private static settleTogether;
575
+ /** The indicator's timing (TAB-15, TAB-17): the tokens, read through real properties — 0 where motion is reduced. */
576
+ private motion;
577
+ /**
578
+ * TAB-14, TAB-16, TAB-18: every tab sizes its container — the indicator's box on it — from the row's height and its own
579
+ * content: all read first, then all written. Also says whether the tabs scroll inside the track (TAB-28).
580
+ */
581
+ private boxes;
582
+ /** The reading half of `boxes()`: what every tab says of its container now, or null while the row is drawn flat. */
583
+ private readBoxes;
584
+ /**
585
+ * The writing half of `boxes()`: every tab's container as `sizes` say, and how far the end tabs reach into the track's
586
+ * inset. Says whether a tab changed its own width by it, so that the tabs are read once more.
587
+ */
588
+ private writeBoxes;
589
+ /**
590
+ * TAB-16, TAB-24: how much larger the row is drawn than laid out now — not 1 while an ancestor scales it (a picker's
591
+ * or a dialog's surface growing in over its open motion, which is when a row inside it is first measured). Nothing
592
+ * reports the end of a transform, so the row never keeps a box measured in the page's pixels.
593
+ */
594
+ private scale;
595
+ /** The scale the row was last measured at, the frame that looks at it again, and for how many frames it has not changed. */
596
+ private scaleSeen;
597
+ private scaleFrame;
598
+ private scaleStill;
599
+ /**
600
+ * TAB-16: a row measured at a scale is measured through it — to the page's precision divided by the scale, so the
601
+ * smaller it is drawn the less exact its boxes are — and nothing reports a transform changing or ending. So while the
602
+ * row is drawn at a scale that changes, it measures again in every frame the scale changed, and what it has drawn when
603
+ * the motion ends was measured at the motion's end. It stops looking once the scale is 1, or has not changed for
604
+ * `SCALE_STILL_FRAMES` frames (a row kept at a scale); a row drawn flat is looked at until it is not, since nothing of
605
+ * it has been measured yet.
606
+ */
607
+ private watchScale;
608
+ /**
609
+ * TAB-16: whether the row is drawn flat now — scaled to nothing on an axis, as on the first frame of a surface that
610
+ * grows from its anchor's edge. Nothing of it can be measured then (every box on the page is empty) and nothing of it
611
+ * is seen, so nothing is written; `watchScale()` places the indicator once it is not flat.
612
+ */
613
+ private flat;
614
+ /** TAB-14, TAB-28: whether the tabs do not fit and scroll inside the track. */
615
+ private get scrolls();
616
+ /**
617
+ * TAB-16: where the indicator and the underline go on `tab`, in the strip's coordinates. The indicator is the tab's
618
+ * container (its box): as tall as the row less track.padding above and below and, in a row that hugs, as wide as the
619
+ * content plus active-indicator.padding-inline on each side — a circle where the content is not wider than it is tall
620
+ * — or, in a row that fills, as wide as the tab. The underline spans the content (primary) or the tab (secondary).
621
+ */
622
+ private measure;
623
+ /**
624
+ * TAB-16, TAB-24: draws the indicator and the underline at `mark` on every tab at once — each tab its piece, clipped to
625
+ * it, and the covered copy of its content within it — so the indicator and every inversion move in the same frame.
626
+ * Everything is read first, then written.
627
+ */
628
+ private draw;
629
+ /** `draw()` in two halves: every tab's box is read now, and the function returned writes every tab's piece. */
630
+ private drawing;
631
+ /** Every tab's box and its content's box, in the strip's coordinates and the row's own pixels, and the indicator's corner. */
632
+ private frames;
633
+ /** The tab the indicator was last put on at rest (no offset, no slide, no drag), or null. */
634
+ private markTab;
635
+ /**
636
+ * TAB-16, TAB-26: where the indicator and the underline go for `selected` at the current offset — on it at 0, and
637
+ * otherwise each edge interpolated toward the next (above 0) or previous (below 0) enabled tab in reading order by the
638
+ * offset's magnitude, clamped to 1; on `selected` where there is no enabled tab in that direction.
639
+ */
640
+ private at;
641
+ /**
642
+ * TAB-17, TAB-26: puts the indicator on the selected tab (at the current offset) at once — or, while it slides, sends
643
+ * the slide there; while a drag carries it (TAB-28), it stays where the pointer is.
644
+ */
645
+ private place;
646
+ /** Ends a slide where it is: its pieces leave, and what is written under them shows until the caller draws. */
647
+ private stopSliding;
648
+ /** The enabled tabs in the order they are drawn along the row, left to right, with each one's box on the page. */
649
+ private stops;
650
+ /**
651
+ * TAB-28: where the indicator is drawn while the pointer is at `x` (clientX): on an enabled tab at that tab's centre,
652
+ * halfway between two neighbouring enabled tabs where they meet (the middle of any disabled tabs between them), each
653
+ * edge at the linear interpolation in between, and on the first or last enabled tab before or beyond its centre.
654
+ * Nothing changes at the place where two tabs meet: it is only where `p` passes one half.
655
+ */
656
+ private placeAt;
657
+ /**
658
+ * TAB-17, TAB-21, TAB-24: the indicator and the underline slide and resize from where they are drawn — on `old`, or
659
+ * wherever a running slide, an offset or a released drag has left them — to `tab` over the indicator's motion, as one
660
+ * box measured on the page, so the slide mirrors in right-to-left. The old tab is measured afresh: it may have moved
661
+ * without changing size (the layout direction flipping), which nothing reports. At once where motion is reduced.
662
+ *
663
+ * The browser runs it. The row writes once — the end of the slide, where everything rests — and gives every tab the
664
+ * indicator passes its pieces as animations between the slide's stops (`slideIndicator`), all on the document's
665
+ * timeline from the same moment as the row's own animation `tanrei-tabs-slide` on the strip, an effect without
666
+ * keyframes that draws nothing and is the slide's clock. No script runs while it slides; where the indicator has got
667
+ * to is worked out from the clock when something asks (`mark`): a choice made meanwhile, a drag, an offset.
668
+ *
669
+ * Every frame is a look a drag draws (TAB-28): from a tab at rest the indicator passes over the enabled tabs between
670
+ * the two as a drag does, taking each one's box on the way, so its width is always between two neighbouring tabs'.
671
+ * From anywhere else it goes straight to the tab, each edge interpolated.
672
+ */
673
+ private slide;
674
+ /**
675
+ * TAB-17: writes the slide's end and has the browser move every tab's pieces through `stops` — a new slide, or
676
+ * (`clock`) the one that is running, which goes on from the moment it began.
677
+ */
678
+ private slideThrough;
679
+ /** The state motion (TAB-28's catch-up), read through real properties of the strip — 0 where motion is reduced. */
680
+ private stateMotion;
681
+ /**
682
+ * TAB-28: a press on the row with touch, a pen or a mouse may become a drag. Not while indicatorOffset is not 0 (the
683
+ * swipe that sets it has the indicator, TAB-26), not without a selected tab to carry the indicator from, and, while the
684
+ * tabs scroll inside the track, only from the selected tab: every other sideways drag scrolls them.
685
+ */
686
+ private readonly onPointerDown;
687
+ /**
688
+ * From the press to the release the pointer is followed on the window: before the drag is taken nothing captures it,
689
+ * and it may leave the row (a mouse) and be released anywhere.
690
+ */
691
+ private watchPointer;
692
+ /**
693
+ * TAB-28: past the touch slop, further sideways than up or down, the row takes the drag: the pointer is captured, the
694
+ * pressed tab leaves its pressed state, and the indicator comes to the pointer over the state motion and then follows
695
+ * it in every move. A drag that went up or down first is the page's, for its whole length.
696
+ */
697
+ private readonly onPointerMove;
698
+ private takeDrag;
699
+ /**
700
+ * TAB-28: draws the indicator and the underline where the pointer is — in the frame it moves, without a motion of their
701
+ * own, except the catch-up that brings them from where they rested — and scrolls the tabs to keep the indicator in view
702
+ * while the drag carries it toward an end of the track.
703
+ */
704
+ private follow;
705
+ /**
706
+ * TAB-29: a release chooses one enabled tab — the one the indicator is nearer to of the two it lies between (the one
707
+ * after it from halfway on), or the one of the two a fling is toward — and selects it (one `change`, the indicator
708
+ * settling from where the release left it), or returns the indicator when it is the selected tab. It becomes the Tab
709
+ * stop; the click that follows is not a tap.
710
+ */
711
+ private readonly onPointerUp;
712
+ /** TAB-30: the platform took the pointer back. */
713
+ private readonly onPointerCancel;
714
+ /** TAB-30: a capture lost while the drag lasts (not by its own release) cancels it. */
715
+ private readonly onLostCapture;
716
+ /** TAB-30: Escape while a drag lasts cancels it, and nothing else hears that key. */
717
+ private readonly onDragKey;
718
+ /**
719
+ * TAB-30: ends a drag the row has taken without a selection — the indicator returns to the selected tab over the
720
+ * indicator's motion (`settle`), or is left to the caller's own placing — and the pointer, still down, is ignored until
721
+ * it is released.
722
+ */
723
+ private cancelDrag;
724
+ private stopFollowing;
725
+ /** Nothing of the drag is watched any longer. */
726
+ private unwatch;
727
+ /** The pointer is up (or gone): the drag is over, and the click that may follow it is let through no longer than this task. */
728
+ private endDrag;
729
+ /** The row is leaving: nothing of a drag is kept. */
730
+ private dropDrag;
731
+ /**
732
+ * TAB-29, TAB-30: after a drag, the indicator and the underline go from where they are to `chosen` — selecting it, with
733
+ * one `change`, when it is not the selected tab — or back to the selected tab (`null`), over the indicator's motion and
734
+ * at once where motion is reduced.
735
+ */
736
+ private settle;
737
+ /** TAB-28, TAB-29: the click a taken drag ends with is not a tap — it activates nothing. */
738
+ private readonly onClickCapture;
739
+ private stopScrolling;
740
+ /**
741
+ * TAB-15: scrolls the tabs inside the track until the whole of `tab` is visible — over the indicator's motion when `animate`, at
742
+ * once when the row first appears (or is resized) and where motion is reduced. The progress of the motion's easing is
743
+ * read from an effect without keyframes on the scroller (it draws nothing), so the scroll follows the token's curve and
744
+ * the motion is the scroller's own animation, `tanrei-tabs-reveal`, on the document's timeline: read, paused or finished
745
+ * like the indicator's slide.
746
+ */
747
+ private reveal;
748
+ /** The reading half of `reveal()`: where the tabs must scroll to for the whole of `tab` to be visible, or null where it is. */
749
+ private revealing;
750
+ /**
751
+ * TAB-43: whether the row draws a new selection at once right now: its `transition` when it names one, else the
752
+ * system's choice as the cascade gives it at this moment — never cached, and an unknown name is the first value (slide).
753
+ */
754
+ private get hasNoTransition();
755
+ /**
756
+ * TAB-49, TAB-43: where the browser answers no style query, the two choices' names are read from the cascade and
757
+ * written on the row for the same rules (`whenChosen()`); where it does, nothing is written — an attribute could
758
+ * only go stale.
759
+ */
760
+ private syncChoices;
761
+ /** TAB-5: every row in the page, for the one listener that hears a press beside them. */
762
+ private static readonly rows;
763
+ /** TAB-5: `row` enters or leaves the document; the window is listened to while there is a row. */
764
+ private static listenBeside;
765
+ /**
766
+ * TAB-5: a press that no tab took, and that nothing has answered by the time it reaches the window. Where it lies just
767
+ * above or below a row that is lower than the minimum target, in line with one of its tabs, it is that tab's: the
768
+ * row's hit area reaches as far beyond its top and bottom edges as it takes to make the target, without the row
769
+ * being any taller. It yields to whatever would answer the press itself — a control, a link, a field, a Tab stop,
770
+ * anything that shows the pointer of a link — to a press that ends a selection of text, and to a surface in the top
771
+ * layer that the row is not inside. No element is laid over the page for it: the tabs scroll inside a box that clips
772
+ * them, so nothing of a tab can reach beyond the row, and an element laid beside the row would lie over the controls
773
+ * next to it.
774
+ */
775
+ private static readonly onPressBeside;
776
+ /**
777
+ * TAB-5, TAB-34: the enabled tab of this row that a press at the event's point belongs to though it missed the row: the
778
+ * point is in line with the tab — or beyond the track's end beside an end tab that ends there, by no more than that
779
+ * tab lacks to the target's width — and no further above the row's top edge or below its bottom edge than half of
780
+ * what the row lacks to the minimum target (sys.target.touch for touch and a pen, and where the input cannot be told on a
781
+ * device whose pointer is coarse; sys.target.pointer for a mouse), and the tab is not covered where the point is
782
+ * nearest to it. Null for a row as tall as the target.
783
+ */
784
+ private tabBeside;
785
+ protected firstUpdated(): void;
786
+ protected willUpdate(changed: PropertyValues<this>): void;
787
+ protected updated(changed: PropertyValues<this>): void;
788
+ protected render(): import("lit").TemplateResult<1>;
789
+ }
790
+ declare global {
791
+ interface HTMLElementTagNameMap {
792
+ 'tanrei-tabs': TanreiTabs;
793
+ 'tanrei-tab': TanreiTab;
794
+ 'tanrei-tab-panel': TanreiTabPanel;
795
+ }
796
+ interface HTMLElementEventMap {
797
+ 'tanrei-tab-update': Event;
798
+ }
799
+ }
800
+ export {};