@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,98 @@
1
+ import { debugBuild } from './report.js';
2
+ /**
3
+ * `sentence` with each `{name}` that `places` names filled, wherever and however often the product wrote it. Any other
4
+ * text between braces stays as it is written and is returned in `unknown`; a brace that opens or closes nothing stays
5
+ * and is counted in `stray`; a brace written twice is one brace. The fillings come back as runs of their own, so the
6
+ * caller can isolate one whose direction is its own (a name) from the sentence around it.
7
+ */
8
+ export function fillPlaces(sentence, places) {
9
+ const runs = [];
10
+ const unknown = [];
11
+ const used = new Set();
12
+ let stray = 0;
13
+ const text = (piece) => {
14
+ if (!piece)
15
+ return;
16
+ const last = runs.at(-1);
17
+ if (last && last.place === null)
18
+ last.text += piece;
19
+ else
20
+ runs.push({ text: piece, place: null });
21
+ };
22
+ /** Where the next brace at or after `from` stands; the sentence's end where there is none. */
23
+ const nextBrace = (from) => {
24
+ const found = sentence.slice(from).search(/[{}]/);
25
+ return found < 0 ? sentence.length : from + found;
26
+ };
27
+ for (let at = 0; at < sentence.length;) {
28
+ const c = sentence[at];
29
+ if (c !== '{' && c !== '}') {
30
+ const end = nextBrace(at);
31
+ text(sentence.slice(at, end));
32
+ at = end;
33
+ }
34
+ else if (sentence[at + 1] === c) {
35
+ text(c);
36
+ at += 2;
37
+ }
38
+ else {
39
+ const close = c === '{' ? nextBrace(at + 1) : -1;
40
+ if (close < 0 || sentence[close] !== '}') {
41
+ // A closing brace alone; or an opening one that no brace follows, or that another opening brace follows first.
42
+ text(c);
43
+ stray += 1;
44
+ at += 1;
45
+ continue;
46
+ }
47
+ const name = sentence.slice(at + 1, close);
48
+ if (Object.hasOwn(places, name)) {
49
+ runs.push({ text: places[name], place: name });
50
+ used.add(name);
51
+ }
52
+ else {
53
+ const written = `{${name}}`;
54
+ text(written);
55
+ if (!unknown.includes(written))
56
+ unknown.push(written);
57
+ }
58
+ at = close + 1;
59
+ }
60
+ }
61
+ return { runs, unknown, stray, used };
62
+ }
63
+ /**
64
+ * What a debug build says of `sentence` as a word with the places `declared`: each text between braces that names
65
+ * none of them, a brace that opens or closes nothing, and each needed place the sentence is without. A sentence that
66
+ * fits has no fault. Nothing is reported here: the caller names the word and where it was given.
67
+ */
68
+ export function placeFaults(sentence, declared) {
69
+ const names = declared.map((place) => `{${place.name}}`).join(', ');
70
+ const read = fillPlaces(sentence, Object.fromEntries(declared.map((place) => [place.name, ''])));
71
+ const written = read.unknown.map((each) => `holds ${each}, which is not a place of it (${names})`);
72
+ if (read.stray)
73
+ written.push('holds a brace that opens or closes nothing (a brace meant as one is written twice, {{ or }})');
74
+ return { written, absent: declared.filter((place) => place.required && !read.used.has(place.name)).map((place) => place.name) };
75
+ }
76
+ // What was reported on this page, under a registered symbol so that two copies of the module hold one list.
77
+ const REPORTED = Symbol.for('tanrei.places.reported');
78
+ const reportedOnPage = () => (globalThis[REPORTED] ??= new Set());
79
+ /**
80
+ * Reports, in a debug build, what of `sentence` is not a place of the word and what brace opens or closes nothing —
81
+ * once per kind of element, prop, fault and page, naming the prop. `effect` says what is done
82
+ * with the sentence all the same ("it is announced as it is written"). A place that is needed and absent is the
83
+ * caller's to report, with what it breaks. Call it where the sentence is used: an instance's own prop does not pass
84
+ * through `setWords()`.
85
+ */
86
+ export function reportPlaces(host, id, prop, sentence, declared, effect) {
87
+ if (!debugBuild())
88
+ return;
89
+ const seen = reportedOnPage();
90
+ for (const fault of placeFaults(sentence, declared).written) {
91
+ const message = `[tanrei] <${host.localName}>: ${prop} ${fault}; ${effect} (${id})`;
92
+ if (seen.has(message))
93
+ continue;
94
+ seen.add(message);
95
+ console.warn(message, host);
96
+ }
97
+ }
98
+ //# sourceMappingURL=places.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"places.js","sourceRoot":"","sources":["../../src/primitives/places.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAmCzC;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,QAAgB,EAAE,MAAwC;IACnF,MAAM,IAAI,GAAgB,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE;QAC7B,IAAI,CAAC,KAAK;YAAE,OAAO;QACnB,MAAM,IAAI,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI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AAG,CAAC,OAAO,CAAC,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
@@ -0,0 +1,90 @@
1
+ import { type CSSResult, type ReactiveController, type ReactiveControllerHost } from 'lit';
2
+ import { type PressedFeedback } from './behavior.js';
3
+ import { type Point } from './ripple.js';
4
+ export interface PressOptions {
5
+ /** The native element that is pressed and carries `data-pressed` (what `stateRules()`' pressed conditions name). */
6
+ container: () => HTMLElement | null;
7
+ /** The element whose `transition-delay` carries `sys.motion.duration.press-hold` — the one `pressHold()` styles. */
8
+ holdCarrier: () => Element | null;
9
+ /** Whether the control is disabled now: a disabled control shows no pressed state. */
10
+ disabled: () => boolean;
11
+ /**
12
+ * The keys that press it (`KeyboardEvent.key`). A button: Enter and Space; a checkbox or a switch: Space. A function
13
+ * is asked at each key, for a control whose keys depend on what it is now — a link takes Enter alone (D3,
14
+ * src/primitives/link.ts); `undefined` from it is the default.
15
+ */
16
+ keys?: readonly string[] | (() => readonly string[] | undefined);
17
+ /**
18
+ * Where the ripple grows from, given the point of contact: the point itself when omitted, `null` for the center. A
19
+ * control pressed outside its state layer (a selection control's label, CHK-10) grows it from the center.
20
+ */
21
+ origin?: (at: Point) => Point | null;
22
+ /**
23
+ * The element the ripple is drawn in, when that is not the pressed element itself: a control whose state layer is a
24
+ * box of its own inside the area that answers the press (a tab's container, TAB-9, TAB-18). The layer is clipped to
25
+ * it, and the point of contact is clamped into it. It must carry the shape and be its own stacking context.
26
+ */
27
+ rippleHost?: () => HTMLElement | null;
28
+ /**
29
+ * What the feedback the system names becomes for this press, for a control that cannot draw every choice in every
30
+ * shape it takes: a text link that runs over several lines has no one box to grow a ripple in, and answers with the
31
+ * overlay there (LNK-9's fallback). Left out, the system's choice is used as it is.
32
+ */
33
+ feedback?: (named: PressedFeedback) => PressedFeedback;
34
+ }
35
+ /**
36
+ * The pressed state (BTN-8 / BTN-9 and every control after them), as a Lit controller. It sets
37
+ * `data-pressed="<feedback>"` on the container on pointer down and on the control's keys, without delay, and keeps it
38
+ * for at least `sys.motion.duration.press-hold`, even when the press ends within a frame (a key press or a tap). The
39
+ * feedback is `sys.behavior.pressed-feedback`, read from the cascade at the moment of the press; under `ripple` it adds
40
+ * the layer (`startRipple`) and fades it once the press and the hold are over.
41
+ *
42
+ * Bind its handlers on the container — they are arrow functions, so Lit's `this` (the host) does not matter:
43
+ * `@pointerdown=${p.onPointerDown} @pointerup=${p.release} @pointercancel=${p.release} @pointerleave=${p.release}
44
+ * @keydown=${p.onKeyDown} @keyup=${p.onKeyUp} @blur=${p.onBlur}`.
45
+ */
46
+ export declare class PressController implements ReactiveController {
47
+ private readonly host;
48
+ private readonly options;
49
+ private get keys();
50
+ private pressedAt;
51
+ /** What is holding the press down. A pointer press ends with the pointer, a key press with the key or with focus. */
52
+ private pressedBy;
53
+ private holdTimer;
54
+ private ripple;
55
+ constructor(host: Partial<Pick<ReactiveControllerHost, 'addController'>> & Element, options: PressOptions);
56
+ /** The pressed state starts here, without delay. `at` is the point of contact; a keyboard press answers from the center. */
57
+ press(at: Point | null): void;
58
+ /** The press ended; the pressed state stays until press-hold has passed since it began. */
59
+ readonly release: () => void;
60
+ readonly onPointerDown: (event: PointerEvent) => void;
61
+ readonly onKeyDown: (event: KeyboardEvent) => void;
62
+ readonly onKeyUp: (event: KeyboardEvent) => void;
63
+ /**
64
+ * A press is never the start of a drag of the control's text. WebKit takes a press held on a selection of the page
65
+ * that reaches across the control for a drag of the selected text, and from then on sends the page no pointerup, no
66
+ * pointercancel and no mouseup: the control would stay pressed. So the drag is refused, and the pointer ends the
67
+ * press as it does everywhere else — also where the pointer has left the control before the engine begins the drag
68
+ * (the press has ended by then; the drag would still begin at the control). What the browser offers to drag by
69
+ * itself — a link's address, an image, an element the product made `draggable` — and the text selected inside a
70
+ * text control the container holds stay the browser's: the drag begins, and the press ends there.
71
+ * The controller listens for it on the container itself (`hostUpdated()`), so no component binds it.
72
+ */
73
+ private readonly onDragStart;
74
+ /**
75
+ * Focus left while a key was down: its keyup will arrive somewhere else, so the press ends here. A pointer press
76
+ * is not ended by focus — Safari takes focus AWAY from a focused button on mouse down, while the pointer is held.
77
+ */
78
+ readonly onBlur: () => void;
79
+ /** The container the host has rendered refuses the engine's drag (`onDragStart`); the same function each time. */
80
+ hostUpdated(): void;
81
+ hostDisconnected(): void;
82
+ private endPress;
83
+ private removeRipple;
84
+ }
85
+ /**
86
+ * The carrier of press-hold for `PressController`: a custom property holds an expression, a real property computes it
87
+ * to seconds. With no transition-property it changes nothing about `selector` (an element inside the container that
88
+ * is always rendered, e.g. the label).
89
+ */
90
+ export declare function pressHold(selector: string): CSSResult;
@@ -0,0 +1,153 @@
1
+ import { unsafeCSS } from 'lit';
2
+ import { pressedFeedback } from './behavior.js';
3
+ import { fadeRipple, startRipple } from './ripple.js';
4
+ /** The keys that press a button. */
5
+ const DEFAULT_KEYS = ['Enter', ' '];
6
+ /**
7
+ * The pressed state (BTN-8 / BTN-9 and every control after them), as a Lit controller. It sets
8
+ * `data-pressed="<feedback>"` on the container on pointer down and on the control's keys, without delay, and keeps it
9
+ * for at least `sys.motion.duration.press-hold`, even when the press ends within a frame (a key press or a tap). The
10
+ * feedback is `sys.behavior.pressed-feedback`, read from the cascade at the moment of the press; under `ripple` it adds
11
+ * the layer (`startRipple`) and fades it once the press and the hold are over.
12
+ *
13
+ * Bind its handlers on the container — they are arrow functions, so Lit's `this` (the host) does not matter:
14
+ * `@pointerdown=${p.onPointerDown} @pointerup=${p.release} @pointercancel=${p.release} @pointerleave=${p.release}
15
+ * @keydown=${p.onKeyDown} @keyup=${p.onKeyUp} @blur=${p.onBlur}`.
16
+ */
17
+ export class PressController {
18
+ get keys() {
19
+ const { keys } = this.options;
20
+ return (typeof keys === 'function' ? keys() : keys) ?? DEFAULT_KEYS;
21
+ }
22
+ constructor(
23
+ // A host that is not a Lit element (the document's own anchor, src/link.ts) has no controllers to join: whoever
24
+ // made the controller calls its handlers, and `hostDisconnected()` when the element is gone.
25
+ host, options) {
26
+ this.host = host;
27
+ this.options = options;
28
+ this.pressedAt = 0;
29
+ /** What is holding the press down. A pointer press ends with the pointer, a key press with the key or with focus. */
30
+ this.pressedBy = null;
31
+ this.ripple = null;
32
+ /** The press ended; the pressed state stays until press-hold has passed since it began. */
33
+ this.release = () => {
34
+ const container = this.options.container();
35
+ if (!container || container.dataset.pressed === undefined)
36
+ return;
37
+ this.pressedBy = null;
38
+ clearTimeout(this.holdTimer);
39
+ // The carrier holds press-hold as a transition-delay, which computes to seconds (see pressHold()).
40
+ const carrier = this.options.holdCarrier();
41
+ const hold = carrier ? Number.parseFloat(getComputedStyle(carrier).transitionDelay) * 1000 : 0;
42
+ // A timer may fire a little early, so the clock decides, not the timer.
43
+ const wait = () => {
44
+ const remaining = (Number.isFinite(hold) ? hold : 0) - (performance.now() - this.pressedAt);
45
+ if (remaining > 0)
46
+ this.holdTimer = setTimeout(wait, remaining);
47
+ else
48
+ this.endPress();
49
+ };
50
+ wait();
51
+ };
52
+ this.onPointerDown = (event) => {
53
+ if (event.button !== 0 && event.pointerType === 'mouse')
54
+ return;
55
+ this.press({ x: event.clientX, y: event.clientY });
56
+ };
57
+ this.onKeyDown = (event) => {
58
+ if (event.repeat || !this.keys.includes(event.key))
59
+ return;
60
+ this.press(null);
61
+ };
62
+ this.onKeyUp = (event) => {
63
+ if (this.keys.includes(event.key))
64
+ this.release();
65
+ };
66
+ /**
67
+ * A press is never the start of a drag of the control's text. WebKit takes a press held on a selection of the page
68
+ * that reaches across the control for a drag of the selected text, and from then on sends the page no pointerup, no
69
+ * pointercancel and no mouseup: the control would stay pressed. So the drag is refused, and the pointer ends the
70
+ * press as it does everywhere else — also where the pointer has left the control before the engine begins the drag
71
+ * (the press has ended by then; the drag would still begin at the control). What the browser offers to drag by
72
+ * itself — a link's address, an image, an element the product made `draggable` — and the text selected inside a
73
+ * text control the container holds stay the browser's: the drag begins, and the press ends there.
74
+ * The controller listens for it on the container itself (`hostUpdated()`), so no component binds it.
75
+ */
76
+ this.onDragStart = (event) => {
77
+ const path = event.composedPath();
78
+ const within = path.slice(0, path.indexOf(event.currentTarget) + 1);
79
+ const browsers = (each) => each instanceof HTMLElement && (each.draggable || each.isContentEditable || each instanceof HTMLInputElement || each instanceof HTMLTextAreaElement);
80
+ if (within.some(browsers))
81
+ this.release();
82
+ else
83
+ event.preventDefault();
84
+ };
85
+ /**
86
+ * Focus left while a key was down: its keyup will arrive somewhere else, so the press ends here. A pointer press
87
+ * is not ended by focus — Safari takes focus AWAY from a focused button on mouse down, while the pointer is held.
88
+ */
89
+ this.onBlur = () => {
90
+ if (this.pressedBy === 'key')
91
+ this.release();
92
+ };
93
+ host.addController?.(this);
94
+ }
95
+ /** The pressed state starts here, without delay. `at` is the point of contact; a keyboard press answers from the center. */
96
+ press(at) {
97
+ const container = this.options.container();
98
+ if (!container || this.options.disabled())
99
+ return;
100
+ this.pressedBy = at ? 'pointer' : 'key';
101
+ // For a host that is not a Lit element (no `hostUpdated()`): the same function each time, so a second press adds
102
+ // nothing.
103
+ container.addEventListener('dragstart', this.onDragStart);
104
+ clearTimeout(this.holdTimer);
105
+ const named = pressedFeedback(this.host);
106
+ const feedback = this.options.feedback ? this.options.feedback(named) : named;
107
+ this.pressedAt = performance.now();
108
+ container.dataset.pressed = feedback;
109
+ this.removeRipple();
110
+ if (feedback === 'ripple')
111
+ this.ripple = startRipple(this.options.rippleHost?.() ?? container, at && this.options.origin ? this.options.origin(at) : at);
112
+ }
113
+ /** The container the host has rendered refuses the engine's drag (`onDragStart`); the same function each time. */
114
+ hostUpdated() {
115
+ this.options.container()?.addEventListener('dragstart', this.onDragStart);
116
+ }
117
+ hostDisconnected() {
118
+ clearTimeout(this.holdTimer);
119
+ this.pressedBy = null;
120
+ this.removeRipple();
121
+ const container = this.options.container();
122
+ if (container)
123
+ delete container.dataset.pressed;
124
+ }
125
+ endPress() {
126
+ const container = this.options.container();
127
+ if (container)
128
+ delete container.dataset.pressed;
129
+ const ripple = this.ripple;
130
+ if (!ripple)
131
+ return;
132
+ this.ripple = null;
133
+ fadeRipple(ripple);
134
+ }
135
+ removeRipple() {
136
+ this.ripple?.remove();
137
+ this.ripple = null;
138
+ }
139
+ }
140
+ /**
141
+ * The carrier of press-hold for `PressController`: a custom property holds an expression, a real property computes it
142
+ * to seconds. With no transition-property it changes nothing about `selector` (an element inside the container that
143
+ * is always rendered, e.g. the label).
144
+ */
145
+ export function pressHold(selector) {
146
+ return unsafeCSS(`
147
+ ${selector} {
148
+ transition-property: none;
149
+ transition-delay: var(--tanrei-sys-motion-duration-press-hold);
150
+ }
151
+ `);
152
+ }
153
+ //# sourceMappingURL=press.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"press.js","sourceRoot":"","sources":["../../src/primitives/press.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwE,SAAS,EAAE,MAAM,KAAK,CAAC;AACtG,OAAO,EAAwB,eAAe,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAc,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAElE,oCAAoC;AACpC,MAAM,YAAY,GAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAkCvD;;;;;;;;;;GAUG;AACH,MAAM,OAAO,eAAe;IAC1B,IAAY,IAAI;QACd,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,OAAO,CAAC,OAAO,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC;IACtE,CAAC;IAOD;IACE,gHAAgH;IAChH,6FAA6F;IAC5E,IAAsE,EACtE,OAAqB;QADrB,SAAI,GAAJ,IAAI,CAAkE;QACtE,YAAO,GAAP,OAAO,CAAc;QAVhC,cAAS,GAAG,CAAC,CAAC;QACtB,qHAAqH;QAC7G,cAAS,GAA6B,IAAI,CAAC;QAE3C,WAAM,GAA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,CAAC;IAC5E,CAAC;IAED,gBAAgB;QACd,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC7B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAC3C,IAAI,SAAS;YAAE,OAAO,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;IAClD,CAAC;IAEO,QAAQ;QACd,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAC3C,IAAI,SAAS;YAAE,OAAO,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAEO,YAAY;QAClB,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACrB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,QAAgB;IACxC,OAAO,SAAS,CAAC;IACf,QAAQ;;;;CAIX,CAAC,CAAC;AACH,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Whether this is a debug build. The web has no debug build of its own: the PRODUCT's bundler decides, by the
3
+ * convention every web bundler shares — `process.env.NODE_ENV`, which Vite, webpack, Rollup and esbuild replace with
4
+ * `"production"` in a production build (the expression is written out whole so they can). Without a bundler there is
5
+ * no `process` and reports stay on; `dist/tanrei.bundle.js` is built as a development bundle, so it reports too.
6
+ */
7
+ export declare function debugBuild(): boolean;
8
+ /**
9
+ * A debug report (BTN-7, BTN-16 and every spec sentence that says "in debug builds report"): something the
10
+ * component survives — it still renders — but the developer should fix. A `console.warn` naming the element, the
11
+ * problem and the behaviour id, once per element and problem (unless `once` is false), and nothing at all in a production
12
+ * build. A spec sentence that says "report as an error" (DLG-19) is a `console.error`: `level: 'error'`.
13
+ */
14
+ export declare function report(host: Element, id: string, message: string, { once, level }?: {
15
+ once?: boolean;
16
+ level?: 'warn' | 'error';
17
+ }): void;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Whether this is a debug build. The web has no debug build of its own: the PRODUCT's bundler decides, by the
3
+ * convention every web bundler shares — `process.env.NODE_ENV`, which Vite, webpack, Rollup and esbuild replace with
4
+ * `"production"` in a production build (the expression is written out whole so they can). Without a bundler there is
5
+ * no `process` and reports stay on; `dist/tanrei.bundle.js` is built as a development bundle, so it reports too.
6
+ */
7
+ export function debugBuild() {
8
+ try {
9
+ return process.env.NODE_ENV !== 'production';
10
+ }
11
+ catch {
12
+ return true;
13
+ }
14
+ }
15
+ const reported = new WeakMap();
16
+ /**
17
+ * A debug report (BTN-7, BTN-16 and every spec sentence that says "in debug builds report"): something the
18
+ * component survives — it still renders — but the developer should fix. A `console.warn` naming the element, the
19
+ * problem and the behaviour id, once per element and problem (unless `once` is false), and nothing at all in a production
20
+ * build. A spec sentence that says "report as an error" (DLG-19) is a `console.error`: `level: 'error'`.
21
+ */
22
+ export function report(host, id, message, { once = true, level = 'warn' } = {}) {
23
+ if (!debugBuild())
24
+ return;
25
+ const seen = reported.get(host) ?? new Set();
26
+ // `once: false` is for a condition that can come back (a menu slot that becomes empty again): the caller reports
27
+ // each time it begins, never on every render.
28
+ if (once && seen.has(message))
29
+ return;
30
+ seen.add(message);
31
+ reported.set(host, seen);
32
+ console[level](`[tanrei] <${host.localName}>: ${message} (${id})`, host);
33
+ }
34
+ //# sourceMappingURL=report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/primitives/report.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,UAAU;IACxB,IAAI,CAAC;QACH,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAwB,CAAC;AAErD;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CAAC,IAAa,EAAE,EAAU,EAAE,OAAe,EAAE,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,GAAG,MAAM,EAAE,GAAiD,EAAE;IACnJ,IAAI,CAAC,UAAU,EAAE;QAAE,OAAO;IAC1B,MAAM,IAAI,GAAG,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,GAAG,EAAU,CAAC;IACrD,iHAAiH;IACjH,8CAA8C;IAC9C,IAAI,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;QAAE,OAAO;IACtC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAClB,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACzB,OAAO,CAAC,KAAK,CAAC,CAAC,aAAa,IAAI,CAAC,SAAS,MAAM,OAAO,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AAC3E,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { type CSSResult } from 'lit';
2
+ type Property = `--${string}`;
3
+ /** The component's custom properties the ripple is drawn from. Names only: the fragment wraps each in `var()`. */
4
+ export interface RippleTokens {
5
+ /** The pressed container color (the state layer). */
6
+ color: Property;
7
+ /** How far the layer is inset from the container — its outline width, so the layer stays inside the outline. Omit for 0. */
8
+ inset?: Property;
9
+ /** How long the layer grows (e.g. `comp.<name>.motion.feedback-duration`). */
10
+ grow: Property;
11
+ /** How long it fades once the press and press-hold are over (e.g. `comp.<name>.motion.state-duration`). */
12
+ fade: Property;
13
+ /** The curve of both (e.g. `comp.<name>.motion.state-easing`). */
14
+ easing: Property;
15
+ }
16
+ /**
17
+ * The layer `sys.behavior.pressed-feedback: ripple` draws (BTN-9 and every control after it). It exists only while a
18
+ * press under ripple is being answered (`PressController` adds and removes it). It is the pressed container color,
19
+ * clipped to the container shape (inside the outline) and to a circle around the point of contact; `startRipple()`
20
+ * sets `--_x`, `--_y` (the point) and `--_r` (the distance to the farthest corner). It sits above the container color
21
+ * and below the content: the container must be its own stacking context (`isolation: isolate`) and a positioning
22
+ * container. Under reduced motion it becomes an overlay: the whole layer at once, gone at once.
23
+ */
24
+ export declare function rippleStyles(tokens: RippleTokens): CSSResult;
25
+ /** A point of contact, in viewport coordinates. */
26
+ export interface Point {
27
+ x: number;
28
+ y: number;
29
+ }
30
+ /**
31
+ * Adds the layer as the first child of `container` and sets its origin: the point of contact, clamped into the layer,
32
+ * or its center for a keyboard press (`at` null), and a radius that reaches the farthest corner.
33
+ */
34
+ export declare function startRipple(container: HTMLElement, at: Point | null): HTMLElement;
35
+ /**
36
+ * The press is over and press-hold has passed: the layer fades from here — still growing, if the press was shorter
37
+ * than its growth — and is removed when the fade is done. Under reduced motion there is no fade.
38
+ */
39
+ export declare function fadeRipple(ripple: HTMLElement): void;
40
+ export {};
@@ -0,0 +1,70 @@
1
+ import { unsafeCSS } from 'lit';
2
+ /**
3
+ * The layer `sys.behavior.pressed-feedback: ripple` draws (BTN-9 and every control after it). It exists only while a
4
+ * press under ripple is being answered (`PressController` adds and removes it). It is the pressed container color,
5
+ * clipped to the container shape (inside the outline) and to a circle around the point of contact; `startRipple()`
6
+ * sets `--_x`, `--_y` (the point) and `--_r` (the distance to the farthest corner). It sits above the container color
7
+ * and below the content: the container must be its own stacking context (`isolation: isolate`) and a positioning
8
+ * container. Under reduced motion it becomes an overlay: the whole layer at once, gone at once.
9
+ */
10
+ export function rippleStyles(tokens) {
11
+ const inset = tokens.inset ? `var(${tokens.inset})` : '0';
12
+ const radius = tokens.inset ? `calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(${tokens.inset}))` : 'calc(var(--tanrei-corner-radius) * var(--_corner-scale))';
13
+ return unsafeCSS(`
14
+ .ripple {
15
+ position: absolute;
16
+ z-index: -1;
17
+ inset: ${inset};
18
+ border-radius: ${radius};
19
+ corner-shape: inherit;
20
+ background: var(${tokens.color});
21
+ pointer-events: none;
22
+ clip-path: circle(var(--_r) at var(--_x) var(--_y));
23
+ animation: ripple-grow var(${tokens.grow}) var(${tokens.easing}) both;
24
+ transition: opacity var(${tokens.fade}) var(${tokens.easing});
25
+ }
26
+ .ripple.leaving {
27
+ opacity: 0;
28
+ }
29
+ @keyframes ripple-grow {
30
+ from {
31
+ clip-path: circle(0 at var(--_x) var(--_y));
32
+ }
33
+ }
34
+ @media (prefers-reduced-motion: reduce) {
35
+ .ripple {
36
+ animation: none;
37
+ transition: none;
38
+ }
39
+ }
40
+ `);
41
+ }
42
+ /**
43
+ * Adds the layer as the first child of `container` and sets its origin: the point of contact, clamped into the layer,
44
+ * or its center for a keyboard press (`at` null), and a radius that reaches the farthest corner.
45
+ */
46
+ export function startRipple(container, at) {
47
+ const ripple = document.createElement('span');
48
+ ripple.className = 'ripple';
49
+ ripple.setAttribute('aria-hidden', 'true');
50
+ container.prepend(ripple);
51
+ // Measured on the layer itself: it is inset by the outline, and its box is what the circle is clipped in.
52
+ const box = ripple.getBoundingClientRect();
53
+ const x = at ? Math.min(Math.max(at.x - box.left, 0), box.width) : box.width / 2;
54
+ const y = at ? Math.min(Math.max(at.y - box.top, 0), box.height) : box.height / 2;
55
+ ripple.style.setProperty('--_x', `${x}px`);
56
+ ripple.style.setProperty('--_y', `${y}px`);
57
+ ripple.style.setProperty('--_r', `${Math.hypot(Math.max(x, box.width - x), Math.max(y, box.height - y))}px`);
58
+ return ripple;
59
+ }
60
+ /**
61
+ * The press is over and press-hold has passed: the layer fades from here — still growing, if the press was shorter
62
+ * than its growth — and is removed when the fade is done. Under reduced motion there is no fade.
63
+ */
64
+ export function fadeRipple(ripple) {
65
+ ripple.classList.add('leaving');
66
+ // getAnimations() computes style first, so the fade that `leaving` starts is already in the list.
67
+ const fades = ripple.getAnimations().filter((animation) => typeof CSSTransition === 'undefined' || animation instanceof CSSTransition);
68
+ void Promise.allSettled(fades.map((fade) => fade.finished)).then(() => ripple.remove());
69
+ }
70
+ //# sourceMappingURL=ripple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ripple.js","sourceRoot":"","sources":["../../src/primitives/ripple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,KAAK,CAAC;AAkBhD;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,MAAoB;IAC/C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAC1D,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,iEAAiE,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,0DAA0D,CAAC;IAC7K,OAAO,SAAS,CAAC;;;;aAIN,KAAK;qBACG,MAAM;;sBAEL,MAAM,CAAC,KAAK;;;iCAGD,MAAM,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM;8BACpC,MAAM,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;CAgB9D,CAAC,CAAC;AACH,CAAC;AAQD;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,SAAsB,EAAE,EAAgB;IAClE,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC5B,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAC3C,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC1B,0GAA0G;IAC1G,MAAM,GAAG,GAAG,MAAM,CAAC,qBAAqB,EAAE,CAAC;IAC3C,MAAM,CAAC,GAAG,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AU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AAC1F,CAAC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * How long typed characters add up to one typeahead search (LST-15, MNU-7: "within one second of each other"). A
3
+ * behaviour of the spec, not a design value: no system re-values it.
4
+ */
5
+ export declare const TYPEAHEAD_WINDOW = 1000;
6
+ /** One item of a column that is moved through with the keyboard. */
7
+ export interface RovingItem {
8
+ /** Whether it takes focus (a static list item does not; a disabled one does: it is reachable, not activatable). */
9
+ focusable: boolean;
10
+ /** The text it starts with, for typeahead (a list item's headline, a menu item's label). */
11
+ label: string;
12
+ }
13
+ /**
14
+ * The keyboard model of a column of items (a list with interactive items or options, LST-15; an open menu, MNU-7):
15
+ * Down and Up Arrow move to the next and previous item that takes focus — wrapping at the ends or stopping there —
16
+ * Home and End to the first and last, and printable characters typed within `TYPEAHEAD_WINDOW` of each other to the
17
+ * next item whose text begins with them (case-insensitive; a new search starts after the current item, a longer one
18
+ * keeps matching from it). Moving focus never activates or selects: the component moves focus to the index returned.
19
+ *
20
+ * One instance per column: it remembers what was typed.
21
+ */
22
+ export declare class RovingKeys {
23
+ private readonly options;
24
+ private typed;
25
+ private at;
26
+ /**
27
+ * `repeat`: one character typed again within the window moves on to the next item that begins with it (SEL-33),
28
+ * where otherwise the characters add up to a search for a text that begins with both.
29
+ */
30
+ constructor(options: {
31
+ wrap: boolean;
32
+ repeat?: boolean;
33
+ });
34
+ /** Whether characters typed now continue a search: a Space then belongs to it, not to the activation (see `target`). */
35
+ searching(now?: number): boolean;
36
+ /**
37
+ * The index `key` moves focus to from `current` (-1: no item has focus yet), or `null` when the key is not one of the
38
+ * column's. A Space that does not continue a search is not the column's: it activates the focused item.
39
+ */
40
+ target(key: string, current: number, items: readonly RovingItem[], now?: number): number | null;
41
+ }