@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,435 @@
1
+ import { ReactiveElement } from 'lit';
2
+ import { AvailabilityController, SEPARATIONS, SEPARATION_VALUES, compChoice, report, styleQueries } from '../../primitives/index.js';
3
+ import { debugBuild } from '../../primitives/report.js';
4
+ import { adopt, adoptUnlessDrawn } from '../../primitives/sheets.js';
5
+ const FIGURE_CSS = (() => {
6
+ try {
7
+ return "@layer tanrei.components {\n:where(tanrei-figure) {\n--_figure-fill: var(--tanrei-comp-figure-outlined-container-color);\n--_figure-edge: var(--tanrei-comp-figure-outline-width);\n--_figure-edge-color: var(--tanrei-comp-figure-outline-color);\n--_figure-separation: var(--tanrei-comp-figure-separation);\n--_figure-line: var(--tanrei-comp-figure-divider-thickness);\n--_figure-line-color: var(--tanrei-comp-figure-divider-color);\n--_figure-attachment-gap: 0px;\n--_figure-stage-padding-block: var(--tanrei-comp-figure-stage-padding-block);\n--_figure-stage-padding-inline: var(--tanrei-comp-figure-stage-padding-inline);\n--_figure-picture-margin: auto;\n--_figure-content-color: var(--tanrei-comp-figure-content-color);\n--_figure-start: left;\ndisplay: block;\nbox-sizing: border-box;\nmin-inline-size: 0;\nmax-inline-size: 100%;\ntext-indent: 0;\n}\n:where(tanrei-figure[hidden]),\n:where(tanrei-figure[data-empty]),\n:where(tanrei-figure:has(> figure):not(:has(> figure > :is([data-part='frame'], [data-part='stage'], img, picture, video, svg, canvas)))),\n:where(tanrei-figure:has(> figure > [data-part='frame']):not(:has(> figure > [data-part='frame'] > :is([data-part='stage']:not(:empty), img, picture, video, svg, canvas)))),\n:where(tanrei-figure:has(> figure > [data-part='stage']:empty)) {\ndisplay: none;\n}\n:where(tanrei-figure):dir(rtl) {\n--_figure-start: right;\n}\n:where(tanrei-figure[variant='filled']) {\n--_figure-fill: var(--tanrei-comp-figure-filled-container-color);\n--_figure-edge: 0px;\n}\n:where(tanrei-figure[variant='plain']) {\n--_figure-fill: var(--tanrei-comp-figure-plain-container-color);\n--_figure-edge: 0px;\n--_figure-line: 0px;\n--_figure-stage-padding-block: 0px;\n--_figure-stage-padding-inline: 0px;\n--_figure-picture-margin: 0;\n--_figure-content-color: inherit;\n}\n:where(tanrei-figure[flush]) {\n--_figure-stage-padding-block: 0px;\n--_figure-stage-padding-inline: 0px;\n}\n:where(tanrei-figure[separation='divider']) {\n--_figure-separation: divider;\n}\n:where(tanrei-figure[separation='gap']) {\n--_figure-separation: gap;\n}\n:where(tanrei-figure) > :where(figure) {\ndisplay: block;\nbox-sizing: border-box;\nmin-inline-size: 0;\nmargin: 0;\npadding: 0;\n& > :where([data-part='frame'], [data-part='stage'], img, picture, video, svg, canvas) {\ndisplay: flow-root;\nbox-sizing: border-box;\nmin-inline-size: 0;\nmargin: 0;\nbackground-color: var(--_figure-fill);\noutline: var(--_figure-edge) solid var(--_figure-edge-color);\noutline-offset: calc(var(--_figure-edge) * -1);\noverflow: clip;\n}\n& > :where([data-part='frame']) > :where(header) {\ndisplay: flex;\nflex-wrap: wrap;\nalign-items: center;\ngap: var(--tanrei-comp-figure-header-gap);\nbox-sizing: border-box;\nmargin: 0;\npadding-block: var(--tanrei-comp-figure-header-padding-block);\npadding-inline: var(--tanrei-comp-figure-header-padding-inline);\nborder: 0 solid var(--_figure-line-color);\nborder-block-end-width: var(--_figure-line);\n&:where(:has(> [data-part='actions']:not(:empty))) {\npadding-inline-end: var(--tanrei-comp-figure-header-padding-inline-end-with-actions);\n}\n&:where(:not(:has(> :is([data-part='title'], [data-part='actions']):not(:empty)))) {\ndisplay: none;\n}\n& > :where([data-part='title']) {\nflex: 1 1 0%;\nbox-sizing: border-box;\nmargin: 0;\npadding: 0;\nfont: var(--tanrei-comp-figure-title-typescale-font);\nletter-spacing: var(--tanrei-comp-figure-title-typescale-letter-spacing);\ncolor: var(--tanrei-comp-figure-title-color);\ntext-align: var(--_figure-start);\nunicode-bidi: plaintext;\nwhite-space: normal;\noverflow-wrap: break-word;\n}\n& > :where([data-part='title']) > :where(h1, h2, h3, h4, h5, h6) {\nmargin: 0;\nfont: inherit;\nletter-spacing: inherit;\n}\n& > :where([data-part='actions']) {\ndisplay: flex;\nflex: 0 1 auto;\nflex-wrap: wrap;\nalign-items: center;\ngap: var(--tanrei-comp-figure-header-gap);\nbox-sizing: border-box;\nmin-inline-size: 0;\nmax-inline-size: 100%;\nmargin: 0;\npadding: 0;\n}\n& > :where([data-part='title']:empty, [data-part='actions']:empty) {\ndisplay: none;\n}\n& > :where([data-part='actions']:first-child),\n& > :where([data-part='title']:empty + [data-part='actions']) {\nmargin-inline-start: auto;\n}\n}\n& > :where([data-part='frame']) > :where([data-part='stage']),\n& > :where([data-part='stage']) {\ndisplay: flex;\nflex-direction: column;\nalign-items: center;\nalign-items: safe center;\njustify-content: center;\nbox-sizing: border-box;\nmin-inline-size: 0;\nmargin: 0;\npadding-block: var(--_figure-stage-padding-block);\npadding-inline: var(--_figure-stage-padding-inline);\ncolor: var(--_figure-content-color);\noverflow-x: auto;\noverflow-y: hidden;\nborder: 0 solid var(--_figure-line-color);\n&:focus-visible {\noutline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);\noutline-offset: calc((var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-outer-width)) * -1);\n}\n}\n& > :where([data-part='frame']) > :where([data-part='stage']:has(~ [data-part='attachment']:not(:empty))) {\nborder-block-end-width: var(--_figure-line);\n}\n& > :where([data-part='frame']) > :where(img, picture, video, svg, canvas),\n& > :where(img, picture, video, svg, canvas) {\ndisplay: block;\nbox-sizing: border-box;\nmargin-inline: var(--_figure-picture-margin);\npadding-block: var(--_figure-stage-padding-block);\npadding-inline: var(--_figure-stage-padding-inline);\n}\n& > :where([data-part='frame']) > :where(img, video, svg, canvas),\n& > :where(img, video, svg, canvas),\n& > :where([data-part='frame']) > :where([data-part='stage'], picture) > :where(img, video, svg, canvas),\n& > :where([data-part='stage'], picture) > :where(img, video, svg, canvas),\n& > :where([data-part='frame']) > :where([data-part='stage']) > :where(picture) > :where(img),\n& > :where([data-part='stage']) > :where(picture) > :where(img) {\nmax-inline-size: 100%;\nblock-size: auto;\n}\n& > :where([data-part='frame']) > :where([data-part='attachment']) {\nmargin: var(--_figure-attachment-gap);\n}\n& > :where([data-part='frame']) > :where([data-part='attachment']:empty) {\ndisplay: none;\n}\n& > :where(figcaption) {\ndisplay: block;\nbox-sizing: border-box;\nmargin: 0;\nmargin-block-start: var(--tanrei-comp-figure-caption-gap);\npadding: 0;\nfont: var(--tanrei-comp-figure-caption-typescale-font);\nletter-spacing: var(--tanrei-comp-figure-caption-typescale-letter-spacing);\ncolor: var(--tanrei-comp-figure-caption-color);\ntext-align: var(--_figure-start);\nunicode-bidi: plaintext;\nwhite-space: normal;\noverflow-wrap: break-word;\n}\n& > :where(figcaption:empty) {\ndisplay: none;\n}\n& > :where(figcaption) :where(a:any-link) {\ntext-decoration-line: underline;\n}\n}\n:where(tanrei-figure:not([variant='plain'])) > :where(figure) > :where([data-part='frame'], [data-part='stage'], img, picture, video, svg, canvas),\n:where(tanrei-figure[variant='plain']) > :where(figure) > :where([data-part='frame']) > :where([data-part='stage'], img, picture, video, svg, canvas),\n:where(tanrei-figure[variant='plain']) > :where(figure) > :where([data-part='stage'], img, picture, video, svg, canvas) {\n& {\n--tanrei-corner-pill: 0;\n}\n& {\n--_corner-scale: 1;\nborder-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));\n}\n@supports (corner-shape: superellipse(log(2, 2))) {\n& {\n--_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));\n--_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));\ncorner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));\n}\n}\n&::before,\n&::after {\ncorner-shape: inherit;\n}\n& {\n--tanrei-corner-radius: var(--tanrei-comp-figure-container-shape);\n--tanrei-corner-pill: var(--tanrei-comp-figure-container-shape-pill, 0);\n}\n}\n:where(tanrei-figure:not([variant='plain'])) > :where(figure) > :where([data-part='frame']) > :where([data-part='stage']:first-child) {\nborder-start-start-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale, 1));\nborder-start-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale, 1));\n}\n:where(tanrei-figure:not([variant='plain'])) > :where(figure) > :where([data-part='frame']) > :where([data-part='stage']:last-child) {\nborder-end-start-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale, 1));\nborder-end-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale, 1));\n}\n:where(tanrei-figure[variant='plain']) > :where(figure) > :where([data-part='frame']) > :where([data-part='stage']),\n:where(tanrei-figure[variant='plain']) > :where(figure) > :where([data-part='stage']) {\nalign-items: flex-start;\n}\n:where(tanrei-figure[variant='plain']) > :where(figure) > :where([data-part='frame']) {\noverflow: visible;\n& > :where(header) {\npadding: 0;\npadding-block-end: var(--tanrei-comp-figure-caption-gap);\n}\n& > :where([data-part='attachment']) {\nmargin: 0;\nmargin-block-start: var(--tanrei-comp-figure-attachment-gap);\n}\n}\n@container style(--_figure-separation: gap) {\n:where(tanrei-figure:not([variant='plain'])) > :where(figure) {\n--_figure-line: 0px;\n--_figure-attachment-gap: var(--tanrei-comp-figure-attachment-gap);\n}\n}\n:where(tanrei-figure:not([variant='plain'])) > :where(figure[data-separation='gap']) {\n--_figure-line: 0px;\n--_figure-attachment-gap: var(--tanrei-comp-figure-attachment-gap);\n}\n@media (forced-colors: active) {\n:where(tanrei-figure) {\n--_figure-edge: var(--tanrei-comp-figure-outline-width);\n--_figure-edge-color: CanvasText;\n--_figure-line-color: CanvasText;\n}\n:where(tanrei-figure[variant='plain']) {\n--_figure-edge: 0px;\n}\n:where(tanrei-figure) > :where(figure) > :where([data-part='frame']) > :where([data-part='stage']):focus-visible,\n:where(tanrei-figure) > :where(figure) > :where([data-part='stage']):focus-visible {\noutline-color: Highlight;\n}\n}\n}";
8
+ }
9
+ catch {
10
+ return '';
11
+ }
12
+ })();
13
+ const TAG = 'tanrei-figure';
14
+ const PREFIX = '--tanrei-comp-figure';
15
+ const CORE_VARIANTS = ['outlined', 'filled', 'plain'];
16
+ const DEFAULT_VARIANT = 'outlined';
17
+ /** Attribute values are interpolated into CSS: only token-name characters are accepted. */
18
+ const KEY = /^[a-z0-9][a-z0-9-]*$/;
19
+ /** What stands in a figure in place of a stage element, and is then its own stage. */
20
+ const PICTURES = 'img, picture, video, svg, canvas';
21
+ /** Children of the element that are not content: the figure itself, and what a page or a framework writes beside it. */
22
+ const UNDRAWN = ['figure', 'style', 'script', 'template', 'link', 'meta'];
23
+ /** The parts a child of the element names with `slot`, for a figure the element builds. */
24
+ const SLOTS = ['title', 'actions', 'caption', 'attachment'];
25
+ /** What is left to scroll below this is none: boxes are laid out on fractions of a pixel. */
26
+ const SLACK = 1;
27
+ const sheets = new Map();
28
+ /** A stylesheet of the page, made once and shared by every root that needs it. */
29
+ function sheet(id, text) {
30
+ if (typeof CSSStyleSheet === 'undefined')
31
+ return null;
32
+ let made = sheets.get(id);
33
+ if (!made) {
34
+ made = new CSSStyleSheet();
35
+ try {
36
+ made.replaceSync(text());
37
+ }
38
+ catch {
39
+ // A browser that cannot construct it: the page's own copy of figure.css draws the figure.
40
+ }
41
+ sheets.set(id, made);
42
+ }
43
+ return made;
44
+ }
45
+ /**
46
+ * FIG-24: a look a design system added — the default's rules with that look's fill. In no cascade layer, so
47
+ * that it also wins over a copy of figure.css a page loads into a layer of its own.
48
+ */
49
+ const variantRules = (variant) => `:where(${TAG}[variant='${variant}']) { --_figure-fill: var(${PREFIX}-${variant}-container-color, var(${PREFIX}-${DEFAULT_VARIANT}-container-color)); }`;
50
+ /** Writes an attribute only when it differs: what is written here is observed, and must settle. */
51
+ function mark(element, name, value) {
52
+ if (value === null) {
53
+ if (element.hasAttribute(name))
54
+ element.removeAttribute(name);
55
+ }
56
+ else if (element.getAttribute(name) !== value)
57
+ element.setAttribute(name, value);
58
+ }
59
+ const filled = (element) => !!element && (element.childElementCount > 0 || (element.textContent ?? '').trim() !== '');
60
+ let ids = 0;
61
+ const idOf = (element, part) => (element.id ||= `tanrei-figure-${part}-${++ids}`);
62
+ /**
63
+ * Sets one thing to look at — a picture, a chart, a specimen, a live example — on a stage of its own, framed or not,
64
+ * with a caption that says what it shows, and optionally a title with the product's controls above and a joined block
65
+ * beneath. It is never pressed and has no state; what stands in it stays as operable as it is anywhere else.
66
+ *
67
+ * Contract: specs/figure.spec.json. The element has **no shadow root**: it is the box around a native `<figure>`,
68
+ * which stays in the document — read without script, by a crawler and by a reader mode.
69
+ *
70
+ * ```html
71
+ * <tanrei-figure>
72
+ * <figure>
73
+ * <div data-part="frame">
74
+ * <header>
75
+ * <p data-part="title">Variants</p>
76
+ * <div data-part="actions"><tanrei-button variant="text" label="Open in a new tab"><span slot="icon">open_in_new</span></tanrei-button></div>
77
+ * </header>
78
+ * <div data-part="stage"><tanrei-button>Save</tanrei-button></div>
79
+ * <div data-part="attachment">…a code block, a table, a description list…</div>
80
+ * </div>
81
+ * <figcaption>A filled button, as the default system draws it.</figcaption>
82
+ * </figure>
83
+ * </tanrei-figure>
84
+ * ```
85
+ *
86
+ * Every part but the stage is optional. The title is any element with `data-part="title"` — a `<p>`, or the heading
87
+ * the page's outline needs, whose role and level are kept — and the attachment any element with
88
+ * `data-part="attachment"`, the product's own component included. A lone `<img>`, `<picture>`, `<video>`, `<svg>` or
89
+ * `<canvas>` in place of the stage element is its own stage, and one written as a child of the `<figure>` itself —
90
+ * `<figure><img …><figcaption>…</figcaption></figure>`, as a Markdown renderer writes it — is its own frame.
91
+ *
92
+ * Everything drawn is `@tanrei/web/figure.css` — every value a `--tanrei-comp-figure-*` token — which draws the figure
93
+ * before and without this script, so a page of figures does not move when the script arrives; the element adds the
94
+ * same sheet to the root it is connected to, so it also works inside another component's shadow root. The script adds
95
+ * what a stylesheet cannot: the title as the figure's name and the caption as its description where it has both, the
96
+ * caption as its name where it has no title (a browser does not name a figure by its `<figcaption>`), and `label` as
97
+ * its name where it draws neither; while the stage scrolls sideways it is a focus stop and a group with the
98
+ * figure's name, and Home and End take it to either end; and the debug reports.
99
+ *
100
+ * **A figure the element builds.** A `<tanrei-figure>` that holds no `<figure>` is given one: its children become the
101
+ * stage, except those that name a part with `slot` (`title`, `actions`, `caption`, `attachment`), and `headline` and
102
+ * `caption` are written as the title and the caption. That form is drawn when the element is defined, not before; and
103
+ * a framework that owns the element's children (React) must write the parts itself, because the element moves them.
104
+ *
105
+ * @tag tanrei-figure
106
+ * @slot - The native `<figure>` — a frame (`data-part="frame"`) around an optional `<header>`, the stage (`data-part="stage"`) and an optional attachment, then an optional `<figcaption>` — or, for a figure the element builds, what is shown. A child in the document, not a slotted node: the element has no shadow root.
107
+ * @slot title - For a figure the element builds: the product's own title content in place of `headline` (text with inline content, or a heading of the level the page's outline needs). In the native form it is the element with `data-part="title"`.
108
+ * @slot actions - For a figure the element builds: the controls at the end of the header. In the native form they are the children of the element with `data-part="actions"`.
109
+ * @slot caption - For a figure the element builds: the product's own caption content in place of `caption`. In the native form it is the `<figcaption>`.
110
+ * @slot attachment - For a figure the element builds: the block joined under the stage. In the native form it is the element with `data-part="attachment"`.
111
+ */
112
+ export class TanreiFigure extends ReactiveElement {
113
+ constructor() {
114
+ super(...arguments);
115
+ this.availability = new AvailabilityController(this, 'figure');
116
+ /**
117
+ * The title: a short line above the stage that names what is shown ("Variants", "Revenue by quarter"). Plain text,
118
+ * never a heading; an element with `data-part="title"` in the figure is drawn in its place. It is the figure's
119
+ * accessible name. (`headline`, because HTML's global `title` would show a tooltip over the whole figure.)
120
+ */
121
+ this.headline = '';
122
+ /** The caption: the text below the frame that says what is shown. A `<figcaption>` written in the figure is drawn in its place. The figure's name where there is no title, and its description where there is one. */
123
+ this.caption = '';
124
+ /** The accessible name of a figure that draws neither a title nor a caption. Never drawn; ignored where a title or a caption is given. */
125
+ this.label = '';
126
+ /** How the stage is set apart: `outlined` is the surface inside one hairline, `filled` a quiet tone and no edge, `plain` no fill, no edge, no padding and no line. A design system may add values. */
127
+ this.variant = 'outlined';
128
+ /** Whether the stage is padded inside the frame. False (the `flush` attribute) lets a picture, a chart or a map reach the frame's edges, clipped by its corners. The plain look is never padded. */
129
+ this.inset = true;
130
+ /** How the parts inside the frame are told apart: `divider` draws a line under the header and above the attachment, `gap` draws none and stands the attachment inside the frame; `auto` takes `comp.figure.separation`, the design system's answer. */
131
+ this.separation = 'auto';
132
+ this.resizes = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(() => this.measure());
133
+ this.mutations = typeof MutationObserver === 'undefined' ? null : new MutationObserver(() => this.read());
134
+ /** The stage the figure has now, and what the observer of sizes watches: the stage and what stands in it. */
135
+ this.stage = null;
136
+ this.watched = new Set();
137
+ /** The title and the caption this element wrote for `headline` and `caption`. */
138
+ this.ownTitle = null;
139
+ this.ownCaption = null;
140
+ /** What this element wrote on the figure to name it, and on the stage to make it a focus stop: only that is taken off again. */
141
+ this.named = new Set();
142
+ this.stop = new Set();
143
+ /**
144
+ * FIG-6: the arrow keys scroll a focused stage as the browser scrolls a region; Home and End, which a browser gives
145
+ * to the page's own scroll, take the stage to its start and its end.
146
+ */
147
+ this.keyed = (event) => {
148
+ const stage = this.stage;
149
+ if (!stage || event.target !== stage || event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey)
150
+ return;
151
+ if (event.key !== 'Home' && event.key !== 'End')
152
+ return;
153
+ const range = stage.scrollWidth - stage.clientWidth;
154
+ if (range <= SLACK)
155
+ return;
156
+ event.preventDefault();
157
+ const end = getComputedStyle(stage).direction === 'rtl' ? -range : range;
158
+ stage.scrollLeft = event.key === 'Home' ? 0 : end;
159
+ };
160
+ }
161
+ static { this.properties = {
162
+ headline: { type: String },
163
+ caption: { type: String },
164
+ label: { type: String },
165
+ // The defaults are not reflected: a figure that is defined is the figure that was written.
166
+ variant: { type: String, reflect: true, useDefault: true },
167
+ // An HTML boolean attribute cannot default to true: the attribute is the inverse, `flush` (the spec's web notes).
168
+ inset: {
169
+ attribute: 'flush',
170
+ reflect: true,
171
+ converter: { fromAttribute: (value) => value === null, toAttribute: (value) => (value ? null : '') },
172
+ },
173
+ separation: { type: String, reflect: true, useDefault: true },
174
+ }; }
175
+ /** No shadow root: the figure is the document's. */
176
+ createRenderRoot() {
177
+ return this;
178
+ }
179
+ connectedCallback() {
180
+ super.connectedCallback();
181
+ adoptUnlessDrawn(this, sheet('figure', () => FIGURE_CSS), '--_figure-fill');
182
+ this.mutations?.observe(this, { childList: true, subtree: true, characterData: true });
183
+ this.addEventListener('keydown', this.keyed);
184
+ if (this.hasUpdated)
185
+ this.read();
186
+ }
187
+ disconnectedCallback() {
188
+ super.disconnectedCallback();
189
+ this.removeEventListener('keydown', this.keyed);
190
+ this.resizes?.disconnect();
191
+ this.mutations?.disconnect();
192
+ this.watched.clear();
193
+ }
194
+ updated(changed) {
195
+ // FIG-12: a separation the figure does not define is auto (no rule matches the attribute); a debug build says so.
196
+ if (changed.has('separation') && !SEPARATION_VALUES.includes(this.separation)) {
197
+ report(this, 'FIG-12', `separation "${this.separation}" is not a value the figure defines; it is drawn as "auto"`);
198
+ }
199
+ if (changed.has('variant'))
200
+ this.readVariant();
201
+ this.read();
202
+ }
203
+ /**
204
+ * FIG-24: a look the core does not have was added by a design system — its rule is added to the root, falling back
205
+ * to the default's tokens — or is unknown to the active one, which a debug build says.
206
+ */
207
+ readVariant() {
208
+ const variant = String(this.variant ?? '');
209
+ if (CORE_VARIANTS.includes(variant))
210
+ return;
211
+ const known = KEY.test(variant);
212
+ if (known)
213
+ adopt(this.getRootNode(), sheet(`variant:${variant}`, () => variantRules(variant)));
214
+ if (!known || getComputedStyle(this).getPropertyValue(`${PREFIX}-${variant}-container-color`).trim() === '') {
215
+ report(this, 'FIG-24', `variant "${variant}" is not a value of the active design system; it is drawn as "${DEFAULT_VARIANT}"`);
216
+ }
217
+ }
218
+ within(selector) {
219
+ return this.querySelector(`:scope > figure${selector}`);
220
+ }
221
+ /**
222
+ * Reads the figure the box holds and writes what follows from it: the parts of a figure the element builds, the
223
+ * title and the caption the properties ask for, the name, the separation where the browser cannot query it — then
224
+ * measures. Called when a property changes and when the figure's content does (FIG-17); it writes only what
225
+ * differs, so it settles.
226
+ */
227
+ read() {
228
+ if (!this.isConnected)
229
+ return;
230
+ this.build();
231
+ const figure = this.within('');
232
+ if (figure) {
233
+ this.readText(figure);
234
+ // FIG-12: where the browser answers style queries the stylesheet reads the choice itself, and nothing is written.
235
+ mark(figure, 'data-separation', styleQueries() ? null : compChoice(this, '--_figure-separation', SEPARATIONS));
236
+ }
237
+ const stage = this.within(' > [data-part="frame"] > [data-part="stage"]') ?? this.within(' > [data-part="stage"]');
238
+ this.stage = stage;
239
+ this.watch(stage);
240
+ // FIG-25: a stage that holds nothing but white space shows nothing (a stage that is missing or empty is the stylesheet's).
241
+ const shows = filled(stage) || !!this.within(` > :is(${PICTURES})`) || !!this.within(` > [data-part="frame"] > :is(${PICTURES})`);
242
+ mark(this, 'data-empty', shows ? null : '');
243
+ if (figure)
244
+ this.readName(figure, shows);
245
+ if (debugBuild() && !shows) {
246
+ // A figure that is still being parsed is read again when it is whole.
247
+ if (document.readyState === 'loading')
248
+ document.addEventListener('DOMContentLoaded', () => this.read(), { once: true });
249
+ else
250
+ report(this, 'FIG-25', 'the figure shows nothing: its stage is empty, so nothing is drawn (a title, a caption or an attachment alone is not a figure)');
251
+ }
252
+ this.measure();
253
+ }
254
+ /**
255
+ * A figure the element builds: where it holds no `<figure>`, one is written around its children — those that name a
256
+ * part with `slot` go to that part, everything else is the stage — and children added later go the same way.
257
+ */
258
+ build() {
259
+ const loose = [...this.childNodes].filter((node) => node instanceof Element ? !UNDRAWN.includes(node.localName) : node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim() !== '');
260
+ if (!loose.length)
261
+ return;
262
+ const figure = this.within('') ?? this.appendChild(document.createElement('figure'));
263
+ const frame = this.frame(figure);
264
+ for (const node of loose) {
265
+ const slot = node instanceof Element ? node.getAttribute('slot') : null;
266
+ if (slot === 'caption')
267
+ ([...figure.querySelectorAll(':scope > figcaption')].find((caption) => caption !== this.ownCaption) ?? figure.appendChild(document.createElement('figcaption'))).append(node);
268
+ else if (slot === 'title' || slot === 'actions')
269
+ this.headerPart(frame, slot).append(node);
270
+ else if (slot === 'attachment')
271
+ (frame.querySelector(':scope > [data-part="attachment"]') ?? frame.appendChild(this.made('div', 'attachment'))).append(node);
272
+ else
273
+ this.stageOf(frame).append(node);
274
+ }
275
+ }
276
+ made(name, part) {
277
+ const element = document.createElement(name);
278
+ element.setAttribute('data-part', part);
279
+ return element;
280
+ }
281
+ /** The frame of a figure, written around its stage where the figure has none and a part needs one. */
282
+ frame(figure) {
283
+ const frame = figure.querySelector(':scope > [data-part="frame"]');
284
+ if (frame)
285
+ return frame;
286
+ const made = this.made('div', 'frame');
287
+ const stage = figure.querySelector(`:scope > :is([data-part="stage"], ${PICTURES})`);
288
+ figure.prepend(made);
289
+ if (stage)
290
+ made.append(stage);
291
+ return made;
292
+ }
293
+ stageOf(frame) {
294
+ const stage = frame.querySelector(':scope > [data-part="stage"]');
295
+ if (stage)
296
+ return stage;
297
+ const made = this.made('div', 'stage');
298
+ const attachment = frame.querySelector(':scope > [data-part="attachment"]');
299
+ if (attachment)
300
+ attachment.before(made);
301
+ else
302
+ frame.append(made);
303
+ return made;
304
+ }
305
+ /** The header's title or actions, written where the frame has none: the title first, the actions after it. */
306
+ headerPart(frame, part) {
307
+ const header = frame.querySelector(':scope > header') ?? frame.insertBefore(document.createElement('header'), frame.firstChild);
308
+ const existing = header.querySelector(`:scope > [data-part="${part}"]`);
309
+ if (existing && existing !== this.ownTitle)
310
+ return existing;
311
+ const made = this.made('div', part);
312
+ if (part === 'title')
313
+ header.prepend(made);
314
+ else
315
+ header.append(made);
316
+ return made;
317
+ }
318
+ /**
319
+ * FIG-8, FIG-10: the title `headline` asks for and the caption `caption` asks for, as text. Where the figure holds
320
+ * a title or a caption of the product's own, that one is drawn and the property ignored.
321
+ */
322
+ readText(figure) {
323
+ if (this.ownTitle && !this.ownTitle.isConnected)
324
+ this.ownTitle = null;
325
+ if (this.ownCaption && !this.ownCaption.isConnected)
326
+ this.ownCaption = null;
327
+ const titles = [...figure.querySelectorAll(':scope > [data-part="frame"] > header > [data-part="title"]')].filter((title) => title !== this.ownTitle);
328
+ if (this.headline && !titles.some(filled)) {
329
+ if (!this.ownTitle) {
330
+ const frame = this.frame(figure);
331
+ const header = frame.querySelector(':scope > header') ?? frame.insertBefore(document.createElement('header'), frame.firstChild);
332
+ this.ownTitle = this.made('p', 'title');
333
+ header.prepend(this.ownTitle);
334
+ }
335
+ if (this.ownTitle.textContent !== this.headline)
336
+ this.ownTitle.textContent = this.headline;
337
+ }
338
+ else if (this.ownTitle) {
339
+ this.ownTitle.remove();
340
+ this.ownTitle = null;
341
+ }
342
+ const captions = [...figure.querySelectorAll(':scope > figcaption')].filter((caption) => caption !== this.ownCaption);
343
+ if (this.caption && !captions.some(filled)) {
344
+ this.ownCaption ??= figure.appendChild(document.createElement('figcaption'));
345
+ if (this.ownCaption.textContent !== this.caption)
346
+ this.ownCaption.textContent = this.caption;
347
+ }
348
+ else if (this.ownCaption) {
349
+ this.ownCaption.remove();
350
+ this.ownCaption = null;
351
+ }
352
+ }
353
+ titleOf(figure) {
354
+ return [...figure.querySelectorAll(':scope > [data-part="frame"] > header > [data-part="title"]')].find(filled) ?? null;
355
+ }
356
+ captionOf(figure) {
357
+ return [...figure.querySelectorAll(':scope > figcaption')].find(filled) ?? null;
358
+ }
359
+ /**
360
+ * FIG-16: the name. The title where the figure has one, with the caption as its description; the caption where it
361
+ * has no title — written too: a browser does not name a figure by its `<figcaption>` in the tree it gives assistive
362
+ * technology — unless the product wrote a label on the figure itself, which a labelling element would take the
363
+ * place of; `label` where it draws neither; and a figure with none of the three has no name, which a debug build
364
+ * says.
365
+ */
366
+ readName(figure, shows) {
367
+ const [title, caption] = [this.titleOf(figure), this.captionOf(figure)];
368
+ const labelled = figure.hasAttribute('aria-label') && !this.named.has('aria-label');
369
+ const wanted = {
370
+ 'aria-labelledby': title ? idOf(title, 'title') : caption && !labelled ? idOf(caption, 'caption') : null,
371
+ 'aria-describedby': title && caption ? idOf(caption, 'caption') : null,
372
+ // FIG-25: `label` is ignored where a title or a caption is given.
373
+ 'aria-label': !title && !caption && this.label ? this.label : null,
374
+ };
375
+ this.give(figure, this.named, wanted);
376
+ if (shows && !title && !caption && !this.label && !figure.hasAttribute('aria-label') && !figure.hasAttribute('aria-labelledby')) {
377
+ report(this, 'FIG-16', 'the figure has no name; give it a title, a caption, or a label where it draws neither');
378
+ }
379
+ }
380
+ /** Writes `wanted` on `element`, leaving alone what the product wrote there itself, and takes off only what `own` says this element wrote. */
381
+ give(element, own, wanted) {
382
+ for (const [attribute, value] of Object.entries(wanted)) {
383
+ if (value === null) {
384
+ if (own.delete(attribute))
385
+ element.removeAttribute(attribute);
386
+ }
387
+ else if (own.has(attribute) || !element.hasAttribute(attribute)) {
388
+ mark(element, attribute, value);
389
+ own.add(attribute);
390
+ }
391
+ }
392
+ }
393
+ /** The stage and what stands in it are what the sizes are read from (FIG-5): content can outgrow a stage that stays as it is. */
394
+ watch(stage) {
395
+ const wanted = new Set(stage ? [stage, ...stage.children] : []);
396
+ for (const element of this.watched) {
397
+ if (!wanted.has(element)) {
398
+ this.resizes?.unobserve(element);
399
+ this.watched.delete(element);
400
+ }
401
+ }
402
+ for (const element of wanted) {
403
+ if (!this.watched.has(element)) {
404
+ this.resizes?.observe(element);
405
+ this.watched.add(element);
406
+ }
407
+ }
408
+ if (!stage)
409
+ this.stop.clear();
410
+ }
411
+ /**
412
+ * FIG-6: while the stage scrolls sideways it is one stop in the focus order and a group with the figure's name, and
413
+ * neither otherwise. Called when the stage or what stands in it changes size; it reads the layout once and writes
414
+ * attributes of the stage alone.
415
+ */
416
+ measure() {
417
+ const stage = this.stage;
418
+ if (!stage || !this.isConnected)
419
+ return;
420
+ const figure = this.within('');
421
+ const scrolls = stage.scrollWidth - stage.clientWidth > SLACK;
422
+ const [title, caption] = figure ? [this.titleOf(figure), this.captionOf(figure)] : [null, null];
423
+ const named = title ?? caption;
424
+ const label = figure?.getAttribute('aria-label') ?? null;
425
+ this.give(stage, this.stop, {
426
+ tabindex: scrolls ? '0' : null,
427
+ role: scrolls ? 'group' : null,
428
+ 'aria-labelledby': scrolls && named ? idOf(named, named === title ? 'title' : 'caption') : null,
429
+ 'aria-label': scrolls && !named && label ? label : null,
430
+ });
431
+ }
432
+ }
433
+ if (!customElements.get('tanrei-figure'))
434
+ customElements.define('tanrei-figure', TanreiFigure);
435
+ //# sourceMappingURL=figure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"figure.js","sourceRoot":"","sources":["../../../src/components/figure/figure.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkD,eAAe,EAAE,MAAM,KAAK,CAAC;AACtF,OAAO,EAAE,sBAAsB,EAAE,WAAW,EAAE,iBAAiB,EAAuB,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC1J,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAWrE,MAAM,UAAU,GAAW,CAAC,GAAG,EAAE;IAC/B,IAAI,CAAC;QACH,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,GAAG,GAAG,eAAe,CAAC;AAC5B,MAAM,MAAM,GAAG,sBAAsB,CAAC;AACtC,MAAM,aAAa,GAAsB,CAAC,UAAU,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACzE,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,2FAA2F;AAC3F,MAAM,GAAG,GAAG,sBAAsB,CAAC;AACnC,sFAAsF;AACtF,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AACpD,wHAAwH;AACxH,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1E,2FAA2F;AAC3F,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAU,CAAC;AAErE,6FAA6F;AAC7F,MAAM,KAAK,GAAG,CAAC,CAAC;AAIhB,MAAM,MAAM,GAAG,IAAI,GAAG,EAAyB,CAA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