@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,887 @@
1
+ import { css, html, nothing } from 'lit';
2
+ import { live } from 'lit/directives/live.js';
3
+ import { repeat } from 'lit/directives/repeat.js';
4
+ import { wordPlaces } from '../../generated/words.js';
5
+ import { ComposedElement, composedHost, exported, forward } from '../../primitives/composed.js';
6
+ import { takeFormDisabled } from '../../primitives/form-disabled.js';
7
+ import { hiddenHost } from '../../primitives/hidden.js';
8
+ import { ambientLocale } from '../../primitives/locale-date.js';
9
+ import { missingValueMessage } from '../../primitives/missing-value.js';
10
+ import { fillPlaces, placeFaults, reportPlaces } from '../../primitives/places.js';
11
+ import { report } from '../../primitives/report.js';
12
+ import { WordsController } from '../../primitives/words.js';
13
+ import { TanreiChip } from '../chip/chip.js';
14
+ import { TanreiField } from '../field/field.js';
15
+ import { TanreiTextInput } from '../text-input/text-input.js';
16
+ import { disabledWaitsWhileFocused } from '../../primitives/disabled-while-focused.js';
17
+ /** CHF-1: the props that are the Field's, given to it unchanged. `disabled`, `error` and `errorText` are the Field's too, each joined with what the chip field holds (W2, W6). */
18
+ const FIELD = ['label', 'labelHidden', 'supportingText', 'requirement', 'requiredMark', 'requiredText', 'optionalText'];
19
+ /** CHF-1: the props that are the Text input's, given to it unchanged. `type`, `placeholder` and `inputValue` are its too (CHF-26, CHF-17, CHF-3). */
20
+ const INPUT = ['variant', 'size', 'readOnly', 'autocomplete'];
21
+ /** CHF-26: the types the Text input draws as one line of plain text — what an entry of a list can be. */
22
+ const LINE_TYPES = ['text', 'email', 'tel', 'url'];
23
+ /**
24
+ * W4: each member's documented parts, from the member's own list. `label` and `requirement-label` are the Field's in
25
+ * the stacked look and the Text input's in a floating one, never both (FLD-25): each under its member's name, and
26
+ * bare from both. The Chip's leave under the prefix `entry-` — its `label` is a third thing, drawn beside the others.
27
+ * Left out, because a chip field never draws them: the Field's count; the Text input's segments, affixes, icons,
28
+ * picker button and grip (none is forwarded); the Chip's icon, check and avatar (CHF-2).
29
+ */
30
+ const FIELD_PARTS = exported(TanreiField, { label: { as: 'field-label', bare: true }, 'requirement-label': { as: 'field-requirement-label', bare: true } }, ['counter', 'value-text']);
31
+ const INPUT_PARTS = exported(TanreiTextInput, { label: { as: 'text-input-label', bare: true }, 'requirement-label': { as: 'text-input-requirement-label', bare: true } }, [
32
+ 'segment',
33
+ 'prefix',
34
+ 'suffix',
35
+ 'leading-icon',
36
+ 'trailing-icon',
37
+ 'picker-button',
38
+ 'resize-grip',
39
+ ]);
40
+ const CHIP_PARTS = exported(TanreiChip, { container: { as: 'entry-container' }, label: { as: 'entry-label' }, remove: { as: 'entry-remove' } }, ['icon', 'check', 'avatar']);
41
+ /** A list of texts as a property: its attribute is read as a JSON array of strings, and is never written. */
42
+ const STRINGS = {
43
+ fromAttribute: (value) => {
44
+ try {
45
+ const read = JSON.parse(value ?? '[]');
46
+ return Array.isArray(read) ? read.map((entry) => String(entry)) : [];
47
+ }
48
+ catch {
49
+ return [];
50
+ }
51
+ },
52
+ };
53
+ /** An edit that is typing: the piece after the last separator stays typed text (CHF-8). */
54
+ const TYPED = /^(insertText|insertCompositionText|insertFromComposition|delete)/;
55
+ const escape = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
56
+ /** The prop that reads each of the four words with places (the spec's `words`): what a report names. */
57
+ const WORD_PROPS = { entryRemoveLabel: 'removeLabel', entryAddedText: 'addedText', entriesAddedText: 'addedCountText', entryRemovedText: 'removedText' };
58
+ /**
59
+ * Collects a list of short texts — e-mail addresses, telephone numbers, keywords — typed one after another in one
60
+ * field. Built from a Field (`<tanrei-field>`), the Text input it frames (`<tanrei-text-input>`) and one Chip
61
+ * (`<tanrei-chip>`) for each entry, standing in the Text input's box before the typing part: each text the product's
62
+ * check accepts becomes a chip that can be removed or taken back, and the list is the field's one value.
63
+ *
64
+ * Contract: specs/chip-field.spec.json. `<tanrei-chip-field name="to" label="Recipients" type="email"
65
+ * remove-label="Remove {entry}"></tanrei-chip-field>`, with `field.separators = [',', ';', ' ']` (or the attribute
66
+ * `separators='[",", ";", " "]'`).
67
+ *
68
+ * Composed (`src/primitives/composed.ts`): its shadow root holds the members' own elements, so it draws
69
+ * nothing of its own and has no token — every `--tanrei-comp-field-*`, `--tanrei-comp-input-box-*`,
70
+ * `--tanrei-comp-text-input-*` and `--tanrei-comp-chip-*` value reaches the members by inheritance, and one chip field is set apart by setting such a
71
+ * property on this element. One level down, the same picture by hand: `<tanrei-field label="Recipients">
72
+ * <tanrei-text-input type="email"><tanrei-chip slot="entries" kind="input" size="small" label="ada@example.com"
73
+ * remove-label="Remove ada@example.com"></tanrei-chip></tanrei-text-input></tanrei-field>`. What the chip field adds
74
+ * to that: making entries, the keys among them, the one Tab stop, the announcements, and the list as one form value.
75
+ *
76
+ * **An entry is made** of the typed text by Enter, by a separator the product lists (`separators`; none by default),
77
+ * by focus leaving the field, and from pasted text that holds a separator or a line break. Each candidate is trimmed,
78
+ * refused where the list holds the same text (`duplicate`) or is full (`maxEntries`: `limit`), and otherwise asked of
79
+ * the product with `check`: `event.preventDefault()` refuses it (`invalid`), and `event.detail.reason = '…'` gives the
80
+ * words. The chip field knows no grammar: what an e-mail address is, is the product's check. A refused text stays in
81
+ * the typing part, and while it does the field is in error with the words of the refusal — `error` and `errorText`
82
+ * themselves do not change.
83
+ *
84
+ * **Keys.** The typing part is the one Tab stop. Backspace, or the arrow that points to the line's start, at the start
85
+ * of the text moves focus to the last entry; there the arrows, Home and End move among the entries, Backspace and
86
+ * Delete remove the one that has focus, Enter and Space take it back into the typing part to be changed, Escape and
87
+ * Tab return to the typing part.
88
+ *
89
+ * `value` is an array of strings (assign a new array to change it); the `value` attribute is read once, as a JSON
90
+ * array. `inputValue` is the text being typed. Form-associated: it submits one value per entry under `name` — none
91
+ * while the list is empty, never the typed text —, resets to the list it was first given, is restored on navigation,
92
+ * follows a disabled `<fieldset>`, and reports a missing value while `requirement` is `required` and the list is empty.
93
+ *
94
+ * The element is not focusable itself and has no role: `focus()` goes to the typing part, and its name is `label`.
95
+ *
96
+ * @tag tanrei-chip-field
97
+ * @slot label-icon - => tanrei-field
98
+ * @csspart field - The frame: the `<tanrei-field>` it is built from.
99
+ * @csspart text-input - The control: the `<tanrei-text-input>` it is built from.
100
+ * @csspart chip - One entry: a `<tanrei-chip>` it is built from.
101
+ * @exportparts tanrei-field label: field-label, label, requirement-label: field-requirement-label, requirement-label, -counter, -value-text
102
+ * @exportparts tanrei-text-input label: text-input-label, label, requirement-label: text-input-requirement-label, requirement-label, -segment, -prefix, -suffix, -leading-icon, -trailing-icon, -picker-button, -resize-grip
103
+ * @exportparts tanrei-chip container: entry-container, label: entry-label, remove: entry-remove, -icon, -check, -avatar
104
+ * @attr {string} form - The id of the form the chip field belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
105
+ * @fires {CustomEvent<TanreiChipFieldChangeDetail>} change - The list changed by the person: an entry was made, several were made from pasted text, one was removed, or one was taken back to be changed. `detail.value` (and the element's `value`) is the new list, `detail.added` and `detail.removed` what the act added and took away. Never fired when the product sets `value`, nor for typed text.
106
+ * @fires input - => tanrei-text-input
107
+ * @fires {CustomEvent<TanreiChipFieldCheckDetail>} check - Asked once for each candidate entry, before it is made: `detail.text` and `detail.values`, the entries so far. Cancelable: `preventDefault()` refuses the candidate, and `detail.reason`, set by the listener, gives the words shown. Read when the event returns; an answer given later is not read.
108
+ * @fires {CustomEvent<TanreiChipFieldRejectDetail>} reject - A candidate entry was refused: `detail.text`, `detail.reason` (`invalid`, `duplicate` or `limit`) and `detail.message`, the words shown. Once for each refused candidate.
109
+ * @fires action - => tanrei-text-input
110
+ */
111
+ export class TanreiChipField extends ComposedElement {
112
+ /** CHF-24: the one control the form meets. Its members stand in its shadow root, outside every form. */
113
+ static { this.formAssociated = true; }
114
+ // CHF-1: a block with no width of its own. What it adds to its members' elements is drawn nowhere: the list and its
115
+ // items have no box (their chips stand in the Text input's own lines), and the live region is hidden.
116
+ static { this.styles = [
117
+ composedHost,
118
+ hiddenHost,
119
+ css `
120
+ :host {
121
+ position: relative;
122
+ min-inline-size: 0;
123
+ }
124
+ .list,
125
+ .item {
126
+ display: contents;
127
+ }
128
+ .announcer {
129
+ position: absolute;
130
+ inline-size: 1px;
131
+ block-size: 1px;
132
+ margin: -1px;
133
+ padding: 0;
134
+ overflow: hidden;
135
+ clip-path: inset(50%);
136
+ white-space: nowrap;
137
+ border: 0;
138
+ }
139
+ `,
140
+ ]; }
141
+ /**
142
+ * Its parts, once: the three members and what each exports — a name two export, once.
143
+ *
144
+ * @internal
145
+ */
146
+ static { this.parts = [...new Set(['field', 'text-input', 'chip', ...FIELD_PARTS.names, ...INPUT_PARTS.names, ...CHIP_PARTS.names])]; }
147
+ static { this.properties = {
148
+ value: { attribute: 'value', converter: STRINGS },
149
+ inputValue: { type: String, attribute: 'input-value' },
150
+ separators: { attribute: 'separators', converter: STRINGS },
151
+ maxEntries: { type: Number, attribute: 'max-entries' },
152
+ variant: { type: String, reflect: true },
153
+ size: { type: String, reflect: true },
154
+ type: { type: String, reflect: true, useDefault: true },
155
+ placeholder: { type: String },
156
+ readOnly: { type: Boolean, attribute: 'readonly', reflect: true },
157
+ autocomplete: { type: String },
158
+ label: { type: String },
159
+ labelHidden: { type: Boolean, attribute: 'label-hidden', reflect: true },
160
+ supportingText: { type: String, attribute: 'supporting-text' },
161
+ errorText: { type: String, attribute: 'error-text' },
162
+ error: { type: Boolean, reflect: true },
163
+ disabled: { type: Boolean, reflect: true },
164
+ requirement: { type: String, reflect: true },
165
+ requiredMark: { type: String, attribute: 'required-mark', reflect: true },
166
+ requiredText: { type: String, attribute: 'required-text' },
167
+ optionalText: { type: String, attribute: 'optional-text' },
168
+ invalidText: { type: String, attribute: 'invalid-text' },
169
+ duplicateText: { type: String, attribute: 'duplicate-text' },
170
+ limitText: { type: String, attribute: 'limit-text' },
171
+ removeLabel: { type: String, attribute: 'remove-label' },
172
+ addedText: { type: String, attribute: 'added-text' },
173
+ addedCountText: { type: String, attribute: 'added-count-text' },
174
+ removedText: { type: String, attribute: 'removed-text' },
175
+ name: { type: String, reflect: true },
176
+ refusal: { state: true },
177
+ formDisabled: { state: true },
178
+ }; }
179
+ /**
180
+ * The entries, in the order they were made: the one value the chip field holds. Each is a text; none is empty. The
181
+ * chip field writes it as the person makes, removes and takes back entries, and fires `change`. What the product
182
+ * sets is shown as given and is not checked — assign a new array — and fires nothing; an entry that is empty or only
183
+ * white space is left out. The `value` attribute is read once, as a JSON array of strings, and is what a form reset
184
+ * returns to.
185
+ */
186
+ get value() {
187
+ return this.list;
188
+ }
189
+ set value(value) {
190
+ const given = Array.isArray(value) ? value.map((entry) => String(entry)) : [];
191
+ const kept = given.filter((entry) => entry.trim() !== '');
192
+ // CHF-3: an entry that is empty or only white space is left out.
193
+ if (kept.length !== given.length)
194
+ report(this, 'CHF-3', 'value holds an entry that is empty or only white space; it is left out');
195
+ // CHF-3: focus on an entry that is no longer in the list goes to the typing part, before its chip leaves.
196
+ const focused = this.focusedChip;
197
+ if (focused && !kept.includes(focused.label))
198
+ this.input?.focus();
199
+ this.list = kept.length === given.length ? given : kept;
200
+ this.refusal = null;
201
+ }
202
+ /** @from tanrei-text-input.value */
203
+ get inputValue() {
204
+ return this.typed ?? this.input?.value ?? '';
205
+ }
206
+ set inputValue(value) {
207
+ this.typed = value;
208
+ // CHF-6: the entry error ends when the product sets the text.
209
+ this.refusal = null;
210
+ }
211
+ constructor() {
212
+ super();
213
+ /** The list the element holds: what the product set, or what the person made of it. */
214
+ this.list = [];
215
+ /**
216
+ * The texts that end an entry when they are typed or found in what is pasted, as the product names them for what
217
+ * its entries are: `[',', ';', ' ']` for e-mail addresses, `[',']` for keywords that may hold a space. The
218
+ * attribute is read as a JSON array. Empty, the default: Enter and a line break alone make an entry — a name such as
219
+ * "Lovelace, Ada" must not be cut in two by a default. A line break always ends an entry.
220
+ */
221
+ this.separators = [];
222
+ /** The most entries the list may hold (`max-entries`); 0 is no limit. An entry that would exceed it is refused with the reason `limit`; the typing part stays usable. It never cuts a list the product sets. */
223
+ this.maxEntries = 0;
224
+ /** @from tanrei-text-input.variant */
225
+ this.variant = 'stacked';
226
+ /** @from tanrei-text-input.size */
227
+ this.size = 'medium';
228
+ /** @from tanrei-text-input.type */
229
+ this.type = 'text';
230
+ /** @from tanrei-text-input.placeholder */
231
+ this.placeholder = '';
232
+ /** @from tanrei-text-input.readOnly */
233
+ this.readOnly = false;
234
+ /** @from tanrei-text-input.autocomplete */
235
+ this.autocomplete = '';
236
+ /** @from tanrei-field.label */
237
+ this.label = '';
238
+ /** @from tanrei-field.labelHidden */
239
+ this.labelHidden = false;
240
+ /** @from tanrei-field.supportingText */
241
+ this.supportingText = '';
242
+ /** @from tanrei-field.errorText */
243
+ this.errorText = '';
244
+ /** @from tanrei-field.error */
245
+ this.error = false;
246
+ /** @from tanrei-field.disabled */
247
+ this.disabled = false;
248
+ /** @from tanrei-field.requirement */
249
+ this.requirement = 'none';
250
+ /** @from tanrei-field.requiredMark */
251
+ this.requiredMark = 'auto';
252
+ /** @from tanrei-field.requiredText */
253
+ this.requiredText = '';
254
+ /** @from tanrei-field.optionalText */
255
+ this.optionalText = '';
256
+ /** The error text shown while an entry was refused by the product's check and the check gave no reason of its own (`invalid-text`). This field's own: it reads no word of the product's. Empty, `errorText` is shown. */
257
+ this.invalidText = '';
258
+ /** The error text shown while an entry was refused because the list already holds the same text (`duplicate-text`): this instance's words, else the product's (`setWords({ duplicateEntryText })`); with neither, `errorText` is shown. */
259
+ this.duplicateText = '';
260
+ /** The error text shown while an entry was refused because the list holds `maxEntries` already (`limit-text`): this instance's words, else the product's (`setWords({ entryLimitText })`); with neither, `errorText` is shown. */
261
+ this.limitText = '';
262
+ /** The accessible name of each entry's remove action (`remove-label`): the whole name in your language, with the place `{entry}` that the chip field fills with that entry's text. This instance's words, else the product's (`setWords({ entryRemoveLabel })`); with neither the action is drawn, works and has no name. */
263
+ this.removeLabel = '';
264
+ /** The sentence assistive technology is told when one entry is made (`added-text`), with the place `{entry}`: this instance's words, else the product's (`setWords({ entryAddedText })`); with neither nothing is said. */
265
+ this.addedText = '';
266
+ /** The sentence assistive technology is told when several entries are made at once (`added-count-text`), with the place `{count}`: this instance's words, else the product's (`setWords({ entriesAddedText })`); with neither, `addedText` is said for the last of them. */
267
+ this.addedCountText = '';
268
+ /** The sentence assistive technology is told when an entry is removed (`removed-text`), with the place `{entry}`: this instance's words, else the product's (`setWords({ entryRemovedText })`); with neither nothing is said. */
269
+ this.removedText = '';
270
+ /** Web only: the name each entry is submitted under. */
271
+ this.name = '';
272
+ /** CHF-6: the entry error while it lasts — the first refused candidate of the last offer, and the words shown for it. */
273
+ this.refusal = null;
274
+ /** W6, item 6: a disabled `<fieldset>` around the element, or its own `disabled` attribute, as the platform says it. */
275
+ this.formDisabled = false;
276
+ this.hostNameSentence = 'CHF-21';
277
+ this.internals = this.attachInternals();
278
+ /** CHF-23: the product's words, read where the instance gives none (src/primitives/words.ts). */
279
+ this.words = new WordsController(this);
280
+ /** The `value` attribute has been read: it is read once. */
281
+ this.attributeRead = false;
282
+ /** CHF-24: the list it was first given, where no `value` attribute says it. */
283
+ this.first = null;
284
+ /** CHF-7: an input method is composing in the typing part. */
285
+ this.composing = false;
286
+ /** CHF-9: the text of the typing part as the chip field last read or wrote it: what an edit is compared with. */
287
+ this.seen = '';
288
+ /** CHF-14: the key that is being pressed on an entry, while its Chip answers it. */
289
+ this.key = '';
290
+ /** CHF-6: the caret is put at the end of the typing part's text once it is drawn. */
291
+ this.caretToEnd = false;
292
+ /**
293
+ * CHF-4: the action key on text makes an entry — before the Text input hears the key, so that it emits no `action`
294
+ * and submits no form. On an empty typing part the key is the Text input's (CHF-16), and so it is while an input
295
+ * method composes (CHF-7) and in a read-only field (CHF-20).
296
+ */
297
+ this.onTypingKeyFirst = {
298
+ capture: true,
299
+ handleEvent: (event) => {
300
+ if (!this.fromTyping(event) || event.isComposing || this.composing || event.keyCode === 229)
301
+ return;
302
+ if (event.key !== 'Enter')
303
+ return this.onTypingKey(event);
304
+ if (this.inert_ || this.readOnly || this.inputValue === '')
305
+ return;
306
+ event.preventDefault();
307
+ event.stopPropagation();
308
+ this.offer(this.inputValue);
309
+ },
310
+ };
311
+ // ── The entries (CHF-11 to CHF-15) ───────────────────────────────────────────────────────────────────────────
312
+ this.onEntryKeyFirst = {
313
+ capture: true,
314
+ handleEvent: (event) => {
315
+ this.key = event.repeat ? '' : event.key;
316
+ },
317
+ };
318
+ // CHF-4: focus left the chip field — a move between the typing part and an entry never arrives here, since both
319
+ // are the element itself to a listener on it. Heard on its way in (capturing), before the Text input hears that
320
+ // it lost focus: the text that became an entry is gone from it by then, and it has no change of its own to tell.
321
+ this.addEventListener('blur', (event) => this.onLeave(event), true);
322
+ }
323
+ get input() {
324
+ return this.renderRoot?.querySelector('tanrei-text-input') ?? null;
325
+ }
326
+ /** The typing part itself: the Text input's native element, by its documented part. */
327
+ get native() {
328
+ return this.input?.shadowRoot?.querySelector('[part~="input"]') ?? null;
329
+ }
330
+ get chips() {
331
+ return [...(this.renderRoot?.querySelectorAll('tanrei-chip') ?? [])];
332
+ }
333
+ get focusedChip() {
334
+ const active = this.shadowRoot?.activeElement;
335
+ return active instanceof TanreiChip ? active : null;
336
+ }
337
+ get control() {
338
+ return this.input;
339
+ }
340
+ /** CHF-19: its own `disabled`, or a disabled fieldset's. */
341
+ get inert_() {
342
+ return this.disabled || this.formDisabled;
343
+ }
344
+ /** CHF-10: `maxEntries` as a whole number of 0 or more; anything else is no limit. */
345
+ get limit() {
346
+ return Number.isInteger(this.maxEntries) && this.maxEntries > 0 ? this.maxEntries : 0;
347
+ }
348
+ /** CHF-9: the separators the product lists, the longest first; an empty one is none. */
349
+ get cuts() {
350
+ return (Array.isArray(this.separators) ? this.separators : []).filter((separator) => typeof separator === 'string' && separator !== '').sort((a, b) => b.length - a.length);
351
+ }
352
+ /** CHF-9: where a text is cut — at every line break, and at every separator. */
353
+ get cutter() {
354
+ return new RegExp(['\\r\\n', '\\r', '\\n', ...this.cuts.map(escape)].join('|'), 'g');
355
+ }
356
+ get rtl() {
357
+ return getComputedStyle(this).direction === 'rtl';
358
+ }
359
+ // ── The form (CHF-24, CHF-25) ────────────────────────────────────────────────────────────────────────────────
360
+ /** The form it belongs to, if any. */
361
+ get form() {
362
+ return this.internals.form;
363
+ }
364
+ get validity() {
365
+ return this.internals.validity;
366
+ }
367
+ get validationMessage() {
368
+ return this.internals.validationMessage;
369
+ }
370
+ get willValidate() {
371
+ return this.internals.willValidate;
372
+ }
373
+ checkValidity() {
374
+ return this.internals.checkValidity();
375
+ }
376
+ reportValidity() {
377
+ return this.internals.reportValidity();
378
+ }
379
+ /** CHF-24: the `value` attribute is read once — for markup — and is what a reset returns to. */
380
+ attributeChangedCallback(name, old, value) {
381
+ if (name === 'value') {
382
+ if (this.attributeRead)
383
+ return;
384
+ this.attributeRead = true;
385
+ }
386
+ super.attributeChangedCallback(name, old, value);
387
+ }
388
+ /** CHF-24: the list it was first given, an empty typing part and no entry error. */
389
+ formResetCallback() {
390
+ this.value = this.hasAttribute('value') ? STRINGS.fromAttribute(this.getAttribute('value')) : [...(this.first ?? [])];
391
+ this.inputValue = '';
392
+ }
393
+ /** CHF-24: the list the platform kept for it. */
394
+ formStateRestoreCallback(state) {
395
+ if (typeof state === 'string')
396
+ this.value = STRINGS.fromAttribute(state);
397
+ }
398
+ formDisabledCallback(disabled) {
399
+ takeFormDisabled(this, disabled, (value) => (this.formDisabled = value));
400
+ }
401
+ /**
402
+ * CHF-24: one value for each entry under its name, in order — none while the list is empty or the field disabled,
403
+ * and never the typed text. CHF-25: an empty required list is a missing value, said where the person types.
404
+ */
405
+ tellForm() {
406
+ if (this.inert_ || !this.name)
407
+ this.internals.setFormValue(null, JSON.stringify(this.list));
408
+ else {
409
+ const data = new FormData();
410
+ for (const entry of this.list)
411
+ data.append(this.name, entry);
412
+ this.internals.setFormValue(data, JSON.stringify(this.list));
413
+ }
414
+ if (this.requirement === 'required' && this.list.length === 0 && !this.inert_) {
415
+ const message = missingValueMessage('text', { errorText: this.errorText, requiredText: this.words.get('requiredText', this.requiredText), label: this.label });
416
+ const anchor = this.native;
417
+ if (anchor)
418
+ this.internals.setValidity({ valueMissing: true }, message, anchor);
419
+ else
420
+ this.internals.setValidity({ valueMissing: true }, message);
421
+ }
422
+ else
423
+ this.internals.setValidity({});
424
+ }
425
+ // ── Making entries (CHF-4 to CHF-10) ─────────────────────────────────────────────────────────────────────────
426
+ /** CHF-6: the words shown for a refusal — the check's own; the reason's; `errorText`. */
427
+ wordsOf(reason, given) {
428
+ const byReason = reason === 'invalid' ? this.invalidText : reason === 'duplicate' ? this.words.get('duplicateEntryText', this.duplicateText) : this.words.get('entryLimitText', this.limitText);
429
+ return [given, byReason, this.errorText].find((text) => typeof text === 'string' && text.trim() !== '') ?? '';
430
+ }
431
+ /**
432
+ * CHF-5: decides each candidate in order, against the list as it grows — the same text, the limit, then the
433
+ * product's check, answered before the event returns. Changes nothing: the caller applies what was decided.
434
+ */
435
+ decide(candidates) {
436
+ const list = [...this.list];
437
+ const added = [];
438
+ const refused = [];
439
+ const limit = this.limit;
440
+ for (const candidate of candidates) {
441
+ const text = candidate.trim();
442
+ // CHF-4: an empty candidate makes nothing and is refused to no one.
443
+ if (!text)
444
+ continue;
445
+ if (list.includes(text)) {
446
+ refused.push({ text, reason: 'duplicate', message: this.wordsOf('duplicate', '') });
447
+ continue;
448
+ }
449
+ if (limit > 0 && list.length >= limit) {
450
+ refused.push({ text, reason: 'limit', message: this.wordsOf('limit', '') });
451
+ continue;
452
+ }
453
+ const check = new CustomEvent('check', { bubbles: true, composed: true, cancelable: true, detail: { text, values: [...list] } });
454
+ if (!this.dispatchEvent(check)) {
455
+ refused.push({ text, reason: 'invalid', message: this.wordsOf('invalid', typeof check.detail.reason === 'string' ? check.detail.reason : '') });
456
+ continue;
457
+ }
458
+ list.push(text);
459
+ added.push(text);
460
+ }
461
+ return { list, added, refused };
462
+ }
463
+ /**
464
+ * CHF-4, CHF-8: reads `text` as a row of candidates and offers each. `tail`: the piece after the last separator
465
+ * stays typed text (it was typed) — otherwise it is offered with the others. The accepted become entries, with one
466
+ * `change` and one announcement; the refused stay in the typing part, joined, under the entry error of the first,
467
+ * with one `reject` each. Returns whether nothing was refused.
468
+ */
469
+ offer(text, { tail = false, removed = [], then } = {}) {
470
+ const pieces = text.split(this.cutter);
471
+ const rest = tail ? (pieces.pop() ?? '') : '';
472
+ const single = pieces.length === 1;
473
+ const { list, added, refused } = this.decide(pieces);
474
+ // CHF-6: one refused text that is all there was stays as the person wrote it; several are joined by the first
475
+ // separator and a space, or by one space (CHF-8), and typed text follows them.
476
+ const joiner = this.cuts.length ? `${(this.separators.find((separator) => separator !== '') ?? '')} ` : ' ';
477
+ let left = refused.length === 0 ? rest : single && !tail ? text : [...refused.map((one) => one.text), ...(rest ? [rest] : [])].join(joiner);
478
+ let next = list;
479
+ // CHF-15: what follows an offer that refused nothing — the entry taken back.
480
+ const after = refused.length === 0 ? then?.(list) : null;
481
+ if (after) {
482
+ next = after.list;
483
+ left = after.text;
484
+ }
485
+ const changed = added.length > 0 || !!after;
486
+ if (changed)
487
+ this.list = next;
488
+ this.typed = left;
489
+ this.seen = left;
490
+ // The Text input holds the text at once (its own render draws it): what it then tells of its text is true.
491
+ const input = this.input;
492
+ if (input && input.value !== left)
493
+ input.value = left;
494
+ this.refusal = refused[0] ?? null;
495
+ this.caretToEnd = refused.length > 0 || !!after;
496
+ this.requestUpdate();
497
+ if (changed) {
498
+ this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true, detail: { value: next, added, removed: after ? removed : [] } }));
499
+ this.announceAdded(added);
500
+ }
501
+ for (const one of refused) {
502
+ // CHF-6: a refusal nobody gave words for still marks the typing part invalid.
503
+ if (!one.message)
504
+ report(this, 'CHF-6', `an entry was refused (${one.reason}) and no words say why: give invalidText, duplicateText, limitText or errorText, or a reason in check`);
505
+ this.dispatchEvent(new CustomEvent('reject', { bubbles: true, composed: true, detail: { text: one.text, reason: one.reason, message: one.message } }));
506
+ }
507
+ return refused.length === 0;
508
+ }
509
+ /** The typing part's own events arrive with the Text input as their target; an entry's with its Chip. */
510
+ fromTyping(event) {
511
+ return event.target === this.input;
512
+ }
513
+ /**
514
+ * CHF-12: at the start of the text, with nothing selected, Backspace or the arrow that points to where the line
515
+ * starts moves focus to the last entry and removes nothing. Never for the repeats of a held key, and never while
516
+ * the list is empty.
517
+ */
518
+ onTypingKey(event) {
519
+ if (event.repeat || this.inert_ || this.list.length === 0)
520
+ return;
521
+ if (event.key !== 'Backspace' && event.key !== (this.rtl ? 'ArrowRight' : 'ArrowLeft'))
522
+ return;
523
+ if (event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)
524
+ return;
525
+ const native = this.native;
526
+ if (!native || native.selectionStart !== 0 || native.selectionEnd !== 0)
527
+ return;
528
+ event.preventDefault();
529
+ this.chips.at(-1)?.focus();
530
+ }
531
+ /**
532
+ * CHF-8: text that is pasted or dropped is read before the single line of the typing part loses its line breaks.
533
+ * Where it holds a line break or a separator, it is read with the text already there as a row of candidates, each
534
+ * offered; text that holds neither is the Text input's own to take.
535
+ */
536
+ onBeforeInput(event) {
537
+ if (!this.fromTyping(event) || this.inert_ || this.readOnly || event.isComposing || this.composing)
538
+ return;
539
+ if (event.inputType !== 'insertFromPaste' && event.inputType !== 'insertFromDrop')
540
+ return;
541
+ const data = event.data ?? event.dataTransfer?.getData('text/plain') ?? '';
542
+ if (!data || !this.cutter.test(data))
543
+ return;
544
+ event.preventDefault();
545
+ const native = this.native;
546
+ const text = this.inputValue;
547
+ const [start, end] = [native?.selectionStart ?? text.length, native?.selectionEnd ?? text.length];
548
+ this.offer(`${text.slice(0, start)}${data}${text.slice(end)}`);
549
+ }
550
+ /**
551
+ * CHF-9: a separator that came to stand in the typing part — by a key, a touch keyboard, a committed composition,
552
+ * dictation, or what the platform filled in — is found in the text, in what the edit added, never by the key. The
553
+ * text before it is offered and the text after it stays typed; filled-in text is offered whole (CHF-8). CHF-6: an
554
+ * edit of the text ends the entry error.
555
+ */
556
+ onInput(event) {
557
+ if (!this.fromTyping(event))
558
+ return;
559
+ if (event.isComposing || this.composing)
560
+ return;
561
+ const text = this.inputValue;
562
+ const before = this.seen;
563
+ this.seen = text;
564
+ if (text !== before)
565
+ this.refusal = null;
566
+ if (this.inert_ || this.readOnly)
567
+ return;
568
+ // What the edit added: the text between what the two share at their start and at their end.
569
+ let [from, to] = [0, text.length];
570
+ while (from < text.length && from < before.length && text[from] === before[from])
571
+ from++;
572
+ while (to > from && before.length - (text.length - to) > from && text[to - 1] === before[before.length - (text.length - to) - 1])
573
+ to--;
574
+ // …and, for a separator of several characters, as many around it as could complete one with it.
575
+ const reach = Math.max(1, ...this.cuts.map((cut) => cut.length)) - 1;
576
+ if (!this.cutter.test(text.slice(Math.max(0, from - reach), to + reach)))
577
+ return;
578
+ this.offer(text, { tail: TYPED.test(event.inputType ?? '') });
579
+ }
580
+ onCompositionStart(event) {
581
+ if (this.fromTyping(event))
582
+ this.composing = true;
583
+ }
584
+ onCompositionEnd(event) {
585
+ if (this.fromTyping(event))
586
+ this.composing = false;
587
+ }
588
+ /**
589
+ * CHF-4: focus left the chip field for another part of the product: what was typed is offered. Not when the window
590
+ * itself lost focus, and never bringing focus back.
591
+ */
592
+ onLeave(event) {
593
+ const to = event.relatedTarget;
594
+ if (to instanceof Node && (to === this || this.contains(to)))
595
+ return;
596
+ if (!to && !this.ownerDocument.hasFocus())
597
+ return;
598
+ if (this.inert_ || this.readOnly || this.composing)
599
+ return;
600
+ const text = this.inputValue;
601
+ if (text === '')
602
+ return;
603
+ this.offer(text);
604
+ // CHF-6: the caret is the person's where they went; nothing here asks for focus.
605
+ this.caretToEnd = false;
606
+ }
607
+ /** CHF-16: the Text input's own `change` — of its text — is not the chip field's, whose `change` is of the list. */
608
+ onMemberEvent(event) {
609
+ if (event.target === this.input)
610
+ event.stopPropagation();
611
+ }
612
+ /** CHF-13: the keys among the entries. Each arrow moves the way it points; nothing is activated or removed here. */
613
+ onEntryKey(event) {
614
+ this.key = '';
615
+ const chips = this.chips;
616
+ const index = chips.findIndex((chip) => chip === event.target);
617
+ if (index < 0)
618
+ return;
619
+ // CHF-11: Tab from an entry is the typing part — with the modifier too by which a platform walks every control —
620
+ // and Shift+Tab leaves backwards, as the platform has it.
621
+ if (event.key === 'Tab') {
622
+ if (event.shiftKey || event.ctrlKey || event.metaKey)
623
+ return;
624
+ event.preventDefault();
625
+ this.focusTyping();
626
+ return;
627
+ }
628
+ if (event.altKey || event.ctrlKey || event.metaKey)
629
+ return;
630
+ const forward = this.rtl ? 'ArrowLeft' : 'ArrowRight';
631
+ const backward = this.rtl ? 'ArrowRight' : 'ArrowLeft';
632
+ switch (event.key) {
633
+ case forward:
634
+ event.preventDefault();
635
+ if (chips[index + 1])
636
+ chips[index + 1].focus();
637
+ else
638
+ this.focusTyping('start');
639
+ return;
640
+ case backward:
641
+ event.preventDefault();
642
+ chips[index - 1]?.focus();
643
+ return;
644
+ case 'Home':
645
+ event.preventDefault();
646
+ chips[0].focus();
647
+ return;
648
+ case 'End':
649
+ event.preventDefault();
650
+ chips.at(-1).focus();
651
+ return;
652
+ case 'ArrowUp':
653
+ case 'ArrowDown':
654
+ // One row in its order, however many lines draw it.
655
+ event.preventDefault();
656
+ return;
657
+ case 'Escape':
658
+ event.preventDefault();
659
+ this.focusTyping();
660
+ return;
661
+ default:
662
+ // A character: typed in the typing part, where the key's text then goes. Enter and Space are the Chip's own.
663
+ if (event.key.length === 1 && event.key !== ' ' && !event.isComposing)
664
+ this.focusTyping();
665
+ }
666
+ }
667
+ /** Focus to the typing part; `caret` puts the caret at the start of its text (CHF-13) — otherwise where it was. */
668
+ focusTyping(caret) {
669
+ this.input?.focus();
670
+ if (caret === 'start')
671
+ this.placeCaret(0);
672
+ }
673
+ placeCaret(at) {
674
+ try {
675
+ this.native?.setSelectionRange(at, at);
676
+ }
677
+ catch {
678
+ // A native element without a selection: the caret stays where the browser has it.
679
+ }
680
+ }
681
+ /**
682
+ * CHF-14: an entry's Chip asked for its removal (CHP-22 leaves the removing and the focus to its owner). Focus goes
683
+ * first, while the chip is still there: after Backspace to the entry before, or the one after where it was the
684
+ * first; after Delete or the remove action to the entry after; to the typing part where there is none.
685
+ */
686
+ onEntryRemove(event) {
687
+ event.stopPropagation();
688
+ const key = this.key;
689
+ this.key = '';
690
+ if (this.inert_ || this.readOnly)
691
+ return;
692
+ const chips = this.chips;
693
+ const index = chips.indexOf(event.currentTarget);
694
+ const entry = this.list[index];
695
+ if (entry === undefined)
696
+ return;
697
+ const to = key === 'Backspace' ? (chips[index - 1] ?? chips[index + 1]) : chips[index + 1];
698
+ if (to)
699
+ to.focus();
700
+ else
701
+ this.focusTyping();
702
+ this.list = this.list.filter((_, at) => at !== index);
703
+ this.refusal = null;
704
+ this.requestUpdate();
705
+ this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true, detail: { value: this.list, added: [], removed: [entry] } }));
706
+ this.announce('entryRemovedText', this.removedText, { entry }, 'nothing is said when an entry is removed');
707
+ }
708
+ /**
709
+ * CHF-15: the Chip itself was activated — the entry is taken back to be changed. What is typed is offered first; if
710
+ * it is refused nothing more happens. Then the entry leaves the list and its text stands in the typing part, with
711
+ * focus and the caret at its end, and `change` is fired once.
712
+ */
713
+ onEntryClick(event) {
714
+ if (this.inert_ || this.readOnly)
715
+ return;
716
+ const index = this.chips.indexOf(event.currentTarget);
717
+ const entry = this.list[index];
718
+ if (entry === undefined)
719
+ return;
720
+ this.input?.focus();
721
+ // What the offer adds stands after the entries that were there: the entry's place is still its own.
722
+ this.offer(this.inputValue, { removed: [entry], then: (list) => ({ list: list.filter((_, at) => at !== index), text: entry }) });
723
+ }
724
+ // ── What is said (CHF-22, CHF-23) ────────────────────────────────────────────────────────────────────────────
725
+ announceAdded(added) {
726
+ if (added.length === 0)
727
+ return;
728
+ if (added.length > 1 && this.words.get('entriesAddedText', this.addedCountText)) {
729
+ const count = new Intl.NumberFormat(ambientLocale(this), { maximumFractionDigits: 0 }).format(added.length);
730
+ this.announce('entriesAddedText', this.addedCountText, { count }, '');
731
+ }
732
+ else
733
+ this.announce('entryAddedText', this.addedText, { entry: added.at(-1) }, 'nothing is said when an entry is made');
734
+ }
735
+ /**
736
+ * CHF-22: one sentence of the product's in the live region, in place of what it held. With no sentence nothing is said.
737
+ * CHF-23: another text between braces and a brace that opens or closes nothing are said as written, and reported.
738
+ */
739
+ announce(key, own, places, effect) {
740
+ const region = this.renderRoot.querySelector('.announcer');
741
+ if (!region)
742
+ return;
743
+ const sentence = this.words.get(key, own);
744
+ if (!sentence) {
745
+ region.replaceChildren();
746
+ if (effect)
747
+ this.words.missing(key, { id: 'CHF-23', effect });
748
+ return;
749
+ }
750
+ this.reportWord(key, sentence, 'it is said as it is written');
751
+ region.replaceChildren(...fillPlaces(sentence, places).runs.map((run) => {
752
+ if (run.place !== 'entry')
753
+ return run.text;
754
+ // An entry is text of its own direction inside the product's sentence, isolated from it.
755
+ const entry = document.createElement('bdi');
756
+ entry.textContent = run.text;
757
+ return entry;
758
+ }));
759
+ }
760
+ /** CHF-23: reports what of a sentence is not a place of its word, and a brace that opens or closes nothing. */
761
+ reportWord(key, sentence, effect) {
762
+ reportPlaces(this, 'CHF-23', WORD_PROPS[key], sentence, wordPlaces[key] ?? [], effect);
763
+ }
764
+ /**
765
+ * CHF-2, CHF-23: the name of one entry's remove action — the product's sentence with its place filled. A plain
766
+ * string: nothing is added to a name for the entry's direction.
767
+ */
768
+ removeName(sentence, entry) {
769
+ return fillPlaces(sentence, { entry })
770
+ .runs.map((run) => run.text)
771
+ .join('');
772
+ }
773
+ // ── Updates ──────────────────────────────────────────────────────────────────────────────────────────────────
774
+ firstUpdated() {
775
+ // CHF-24: the list it was first given, where markup did not say it.
776
+ this.first = [...this.list];
777
+ }
778
+ updated(changed) {
779
+ super.updated(changed);
780
+ // W5: the render that has just ended gave the Text input the text that was set; from here the text is its own.
781
+ if (this.typed !== undefined) {
782
+ this.seen = this.typed;
783
+ this.typed = undefined;
784
+ }
785
+ this.tellForm();
786
+ // The typing part is drawn by the Text input's own update: the anchor of a missing value, and the caret, are its.
787
+ if (!this.native || this.caretToEnd) {
788
+ const caret = this.caretToEnd;
789
+ this.caretToEnd = false;
790
+ void this.input?.updateComplete.then(() => {
791
+ if (!this.isConnected)
792
+ return;
793
+ this.tellForm();
794
+ if (caret && this.shadowRoot?.activeElement === this.input)
795
+ this.placeCaret(this.inputValue.length);
796
+ });
797
+ }
798
+ // CHF-26: only a type the Text input draws as one line of plain text is an entry of a list.
799
+ if (changed.has('type') && !LINE_TYPES.includes(this.type))
800
+ report(this, 'CHF-26', `type "${this.type}" is not a type of an entry (text, email, tel, url); the typing part behaves as "text"`);
801
+ // CHF-10: a limit that is no whole number of 0 or more is no limit.
802
+ if (changed.has('maxEntries') && !(Number.isInteger(this.maxEntries) && this.maxEntries >= 0))
803
+ report(this, 'CHF-10', `maxEntries ${String(this.maxEntries)} is not a whole number of 0 or more; there is no limit`);
804
+ // CHF-9: an empty separator would end an entry at every character.
805
+ if (changed.has('separators') && Array.isArray(this.separators) && this.separators.some((separator) => separator === ''))
806
+ report(this, 'CHF-9', 'separators holds an empty text, which is ignored');
807
+ // CHF-23: the remove actions are drawn and work without a name; two of them with one name cannot be told apart.
808
+ if (this.list.length && !this.readOnly && this.isConnected) {
809
+ const sentence = this.words.get('entryRemoveLabel', this.removeLabel);
810
+ if (!sentence)
811
+ this.words.missing('entryRemoveLabel', { id: 'CHF-23', effect: 'each entry\'s remove action is drawn and works, and has no accessible name' });
812
+ else {
813
+ this.reportWord('entryRemoveLabel', sentence, 'each remove action is named with it as it is written');
814
+ // The one place of any word that is needed (the spec's `required`): without it two actions have one name.
815
+ for (const name of placeFaults(sentence, wordPlaces.entryRemoveLabel ?? []).absent)
816
+ report(this, 'CHF-23', `removeLabel has no place {${name}}, so every remove action has the same name; write it as "Remove {${name}}"`);
817
+ }
818
+ }
819
+ }
820
+ // CHF-1: a Field whose one control is a Text input, with a Chip for each entry in the Text input's entries slot —
821
+ // exactly as a product writes the three. What is added is drawn nowhere: the list around the chips (CHF-21) and the
822
+ // live region (CHF-22). No text stands between the Field's tags: its control is its one child without a slot.
823
+ render() {
824
+ const inert = this.inert_;
825
+ const sentence = this.words.get('entryRemoveLabel', this.removeLabel);
826
+ const refusal = this.refusal;
827
+ // CHF-21: the entries are one list named by the label, each an item that holds its Chip; no list while it is empty.
828
+ // CHF-11: every Chip, and with it its remove action, is out of the Tab order (CHP-23: a host that delegates focus
829
+ // and has a negative tabindex), and stays focusable by the keys, by pointer and by assistive technology.
830
+ // An entry is known by its text, and by which of several of one text it is (what a product sets is not checked).
831
+ const met = new Map();
832
+ const keys = this.list.map((entry) => {
833
+ met.set(entry, (met.get(entry) ?? 0) + 1);
834
+ return `${met.get(entry)}:${entry}`;
835
+ });
836
+ const entries = this.list.length
837
+ ? html `<div slot="entries" class="list" role="list" aria-label=${this.label || nothing} @keydown=${this.onEntryKeyFirst}
838
+ >${repeat(this.list, (_, index) => keys[index], (entry) => html `<div class="item" role="listitem"
839
+ ><tanrei-chip
840
+ part="chip"
841
+ exportparts=${CHIP_PARTS.attribute}
842
+ tabindex="-1"
843
+ kind="input"
844
+ size="small"
845
+ .label=${entry}
846
+ .removeLabel=${this.removeName(sentence, entry)}
847
+ .disabled=${inert}
848
+ .removable=${!this.readOnly}
849
+ @keydown=${this.onEntryKey}
850
+ @click=${this.onEntryClick}
851
+ @remove=${this.onEntryRemove}
852
+ ></tanrei-chip
853
+ ></div>`)}</div
854
+ >`
855
+ : nothing;
856
+ return html `<tanrei-field
857
+ part="field"
858
+ exportparts=${FIELD_PARTS.attribute}
859
+ ${forward(this, FIELD)}
860
+ .disabled=${inert}
861
+ .error=${this.error || !!refusal}
862
+ .errorText=${refusal?.message || this.errorText}
863
+ >${this.pass('label-icon')}<tanrei-text-input
864
+ part="text-input"
865
+ exportparts=${INPUT_PARTS.attribute}
866
+ ${forward(this, INPUT)}
867
+ .type=${LINE_TYPES.includes(this.type) ? this.type : 'text'}
868
+ .placeholder=${this.list.length ? '' : this.placeholder}
869
+ .value=${live(this.inputValue)}
870
+ @keydown=${this.onTypingKeyFirst}
871
+ @beforeinput=${this.onBeforeInput}
872
+ @input=${this.onInput}
873
+ @compositionstart=${this.onCompositionStart}
874
+ @compositionend=${this.onCompositionEnd}
875
+ @change=${this.onMemberEvent}
876
+ @pickerrequest=${this.onMemberEvent}
877
+ @entryerror=${this.onMemberEvent}
878
+ >${entries}</tanrei-text-input
879
+ ></tanrei-field
880
+ ><span class="announcer" aria-live="polite"></span>`;
881
+ }
882
+ }
883
+ // Its `disabled` attribute, written while it holds focus, waits until focus has left: a frame at most.
884
+ disabledWaitsWhileFocused(TanreiChipField);
885
+ if (!customElements.get('tanrei-chip-field'))
886
+ customElements.define('tanrei-chip-field', TanreiChipField);
887
+ //# sourceMappingURL=chip-field.js.map