@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,530 @@
1
+ var _a;
2
+ import { LitElement, nothing } from 'lit';
3
+ import { classMap } from 'lit/directives/class-map.js';
4
+ import { html, literal } from 'lit/static-html.js';
5
+ import { hiddenHost } from '../../primitives/hidden.js';
6
+ import { AvailabilityController, FORWARDED_DESCRIPTION, FORWARDED_INVALID, GROUP_ITEM, GlyphMirrorController, GroupItemController, LINK_MARK, LinkController, OUTSIDE_FOCUS_ORDER, OpenAxesController, PressController, SUBMIT_BUTTON, afterClick, endsWaiting, linkAttributes, markPassingSubmitter, report, syncFocusStyle, takeFormDisabled, waitsWhileFocused, watchNativeInputs, } from '../../primitives/index.js';
7
+ import { AXES, WIDTHS, styles } from './button.styles.js';
8
+ import { focusedAtFirst } from '../../primitives/autofocus.js';
9
+ const TYPES = ['button', 'submit', 'reset'];
10
+ /** BTN-16: a name and a drawn text as a spoken word is compared — ends dropped, runs of white space as one, without case. */
11
+ const spoken = (text) => text.trim().replace(/\s+/g, ' ').toLowerCase();
12
+ /**
13
+ * Lets people take an action, or switch something on and off, with one tap or click — named by a label, an icon, or both.
14
+ *
15
+ * Contract: specs/button.spec.json. Every visual value comes from `--tanrei-comp-button-*`
16
+ * tokens, one set per state and, for a toggle, per selection: how a state looks is the active design system's decision,
17
+ * not this component's. How a press is answered and how keyboard focus is drawn are the system's choices of kind
18
+ * (`--tanrei-sys-behavior-*`), and how far its corners ease is the system's amount
19
+ * (`--tanrei-sys-shape-corner-smoothing`); all are read from the cascade, so they follow `data-tanrei-system`.
20
+ *
21
+ * The icon is the `icon` slot: a glyph of the system's icon set, given as its ligature text (`<span slot="icon">favorite</span>`)
22
+ * or a `.tanrei-icon`, `<svg>` or `<img>`. With a label it sits on the side `icon-position` names; alone it is the
23
+ * button's only content, the button is as wide as it is high, and `label` is its accessible name.
24
+ *
25
+ * In a right-to-left layout a glyph given by name is drawn mirrored when the system's icon set says it shows a direction
26
+ * (`arrow_forward`, `chevron_right`, `send`; never `check`, `search` or `play_arrow`) — in its own box, on the side
27
+ * `icon-position` names (BTN-19). `data-mirror="never"` or `"always"` on the slotted element decides for
28
+ * one use; an `<svg>` or `<img>` is never mirrored for you.
29
+ *
30
+ * With `href` it is a link and not a button (BTN-22): the shadow root holds an `<a href>` in place of the
31
+ * `<button>` — the same part, drawn from the same tokens in every state — so the browser's own link is what people get
32
+ * (a new tab, the address to copy, the status bar). Enter activates it and Space does not; `click` fires first and
33
+ * cancelling it (`preventDefault()`) cancels the navigation, which is how a router takes it. `target="new"` opens a new
34
+ * tab, safely (`noopener`), draws the icon set's `open_in_new` after the label unless your own icon is there, and reads
35
+ * `target-label` as the link's description. A toggle takes no destination.
36
+ *
37
+ * In a form it is one of the form's controls (BTN-29), and `type` says what a press does to the form: nothing
38
+ * (`button`, the default), send it (`submit`) or put it back as it was (`reset`). The form is the one around it, or the
39
+ * one the `form` attribute names by id. A submit button is pressed by Enter in a field of its form while it is the
40
+ * form's first submit button, and stops that key while it is disabled (BTN-30); its `name` and `value` are sent when
41
+ * it is the button pressed (BTN-31). `label` is the whole accessible name whenever it is given — also beside a drawn
42
+ * label, which it must contain (BTN-16).
43
+ *
44
+ * @tag tanrei-button
45
+ * @slot - Label content: the text that names the action. Leave it empty for an icon-only button.
46
+ * @slot icon - The icon: a glyph of the system's icon set (its ligature text), or a `.tanrei-icon`, `<svg>` or `<img>`. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
47
+ * @csspart container - The native button that holds the label and the icon; with `href`, the anchor in its place.
48
+ * @csspart label - The label text wrapper.
49
+ * @csspart icon - The box the icon is drawn in (hidden from assistive technology); also the mark of a link that opens a new context.
50
+ * @attr {boolean} confirming - A mark for the component that places this button as an action (a button group, a dialog, a popover, a side sheet): the action completes the task, and is placed at the end of a row and at the top of a column (BGR-13, BGR-14). Read by that component as an attribute; the button draws nothing for it and has no property of the name.
51
+ * @attr {boolean} dismissive - The same mark for the action that backs out of the task: placed at the start of a row and at the bottom of a column. With `confirming` as well, the button is placed as one with neither (BGR-18).
52
+ * @attr {string} form - The id of the form the button belongs to, where it stands outside it (a dialog's actions, a page header): the platform's own attribute, which then wins over a form around the button (BTN-29). The `form` property is read-only and returns the form element.
53
+ * @fires click - The button was activated by pointer, touch, keyboard or assistive technology. A link button fires it before the browser follows the address; `preventDefault()` cancels the navigation.
54
+ * @fires {CustomEvent<TanreiButtonChangeDetail>} change - A toggle was activated; fired after its `click`. `detail.selected` (and the element's `selected`) is the new value.
55
+ */
56
+ export class TanreiButton extends LitElement {
57
+ /** BTN-29: one of its form's controls, for its form owner and for a disabled fieldset (BTN-32). */
58
+ static { this.formAssociated = true; }
59
+ static { this.styles = [styles, hiddenHost]; }
60
+ static { this.shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true }; }
61
+ /** @internal Its documented parts, for an element that holds it and exports them (src/primitives/composed.ts, `exported()`). */
62
+ static { this.parts = ['container', 'label', 'icon']; }
63
+ static { this.properties = {
64
+ // The default is not reflected, so "no variant attribute" is how a dialog or a side sheet knows the product set
65
+ // none (DLG-20, SSH-17).
66
+ variant: { type: String, reflect: true, useDefault: true },
67
+ size: { type: String, reflect: true },
68
+ width: { type: String, reflect: true },
69
+ iconPosition: { type: String, reflect: true, attribute: 'icon-position' },
70
+ toggle: { type: Boolean, reflect: true },
71
+ selected: { type: Boolean, reflect: true },
72
+ disabled: { type: Boolean, reflect: true },
73
+ label: { type: String },
74
+ href: { type: String },
75
+ target: { type: String },
76
+ targetLabel: { type: String, attribute: 'target-label' },
77
+ rel: { type: String },
78
+ // The default is not reflected: a button that says nothing of a form gains no attribute.
79
+ type: { type: String, reflect: true, useDefault: true },
80
+ name: { type: String },
81
+ value: { type: String },
82
+ hasIcon: { state: true },
83
+ hasLabel: { state: true },
84
+ forwardedDescription: FORWARDED_DESCRIPTION,
85
+ forwardedInvalid: FORWARDED_INVALID,
86
+ outsideFocusOrder: OUTSIDE_FOCUS_ORDER,
87
+ }; }
88
+ /** The native button, or the anchor of the link form: the one styled part (BTN-22). */
89
+ get container() {
90
+ return this.renderRoot?.querySelector('[part="container"]') ?? null;
91
+ }
92
+ /**
93
+ * The form the button belongs to (BTN-29): the nearest form around it, or the one its `form` attribute names by id.
94
+ * Read-only, as the platform's own button has it; null where there is none.
95
+ */
96
+ get form() {
97
+ return this.internals.form;
98
+ }
99
+ /**
100
+ * BTN-32: disabled by its own `disabled`, or — unless it is a link, as no link of the platform is — by a disabled
101
+ * fieldset around it. The fieldset's part is the platform's word (`:disabled`) less the element's own attribute:
102
+ * that attribute follows the property one step late — it is still there while the update that unsets it renders —
103
+ * and a button enabled by its property is enabled by that same update, so that focus can be moved to it at once.
104
+ */
105
+ get isDisabled() {
106
+ if (this.disabled)
107
+ return true;
108
+ return !this.link.form && !this.hasAttribute('disabled') && this.matches(':disabled');
109
+ }
110
+ /** BTN-33: what a press does to the form now — nothing for a toggle, a link, and a type the button does not define. */
111
+ get formAction() {
112
+ if (this.toggle || this.link.form)
113
+ return null;
114
+ return this.type === 'submit' || this.type === 'reset' ? this.type : null;
115
+ }
116
+ /**
117
+ * BTN-30: what the default-button primitive reads (src/primitives/default-button.ts). Internal between Tanrei elements.
118
+ * @internal
119
+ */
120
+ get [(_a = GROUP_ITEM, SUBMIT_BUTTON)]() {
121
+ return { submits: this.formAction === 'submit', disabled: this.isDisabled };
122
+ }
123
+ /** BTN-32: the platform's word changed — a fieldset around the button was disabled or enabled: it is drawn again, at once. */
124
+ formDisabledCallback(disabled) {
125
+ takeFormDisabled(this, disabled, () => {
126
+ this.requestUpdate();
127
+ // A group that keeps one Tab stop among its items (a toolbar) is told: no attribute of the item changed.
128
+ this[GROUP_ITEM].availabilityChanged();
129
+ });
130
+ }
131
+ /**
132
+ * BTN-2: a button disabled while it holds focus is disabled at once — its property, the native button inside, what
133
+ * it emits, Tab — and lets go of focus as the platform's own button does, at the next frame in every engine: its
134
+ * `disabled` attribute, which is the platform's word for a form-associated element and takes focus within the call
135
+ * in one engine, is written when focus has left, a frame later at most (src/primitives/disabled-while-focused.ts).
136
+ * The property's reflection comes through here as the page's own `setAttribute` does.
137
+ */
138
+ setAttribute(name, value) {
139
+ if (name.toLowerCase() === 'disabled' && waitsWhileFocused(this, () => super.setAttribute('disabled', '')))
140
+ return;
141
+ super.setAttribute(name, value);
142
+ }
143
+ toggleAttribute(name, force) {
144
+ if (name.toLowerCase() !== 'disabled')
145
+ return super.toggleAttribute(name, force);
146
+ if (force ?? !(this.disabled || this.hasAttribute('disabled')))
147
+ this.setAttribute('disabled', '');
148
+ else
149
+ this.removeAttribute('disabled');
150
+ return this.disabled;
151
+ }
152
+ removeAttribute(name) {
153
+ if (name.toLowerCase() === 'disabled')
154
+ endsWaiting(this);
155
+ super.removeAttribute(name);
156
+ }
157
+ /** BTN-29: the form owner changed — the button moved, or its `form` attribute was written. */
158
+ formAssociatedCallback() {
159
+ this.watch();
160
+ }
161
+ connectedCallback() {
162
+ super.connectedCallback();
163
+ this.watch();
164
+ }
165
+ disconnectedCallback() {
166
+ super.disconnectedCallback();
167
+ this.watch();
168
+ }
169
+ /** BTN-30: while it is a submit button of a form, Enter in the platform's own inputs of that form is listened to. */
170
+ watch() {
171
+ const form = this.isConnected && this.formAction === 'submit' ? this.form : null;
172
+ watchNativeInputs(this, form, this.watchedForm);
173
+ this.watchedForm = form;
174
+ }
175
+ /** BTN-10: where style queries are missing, the focus style is read when focus arrives. */
176
+ onFocus() {
177
+ syncFocusStyle(this, this.container);
178
+ }
179
+ onIconSlotChange(event) {
180
+ this.hasIcon = event.target.assignedElements().length > 0;
181
+ }
182
+ onLabelSlotChange(event) {
183
+ this.hasLabel = event.target.assignedNodes({ flatten: true }).some((node) => node.nodeType === Node.ELEMENT_NODE || !!node.textContent?.trim());
184
+ this.reportName();
185
+ }
186
+ constructor() {
187
+ super();
188
+ this.availability = new AvailabilityController(this, 'button');
189
+ /**
190
+ * Emphasis level. Use one filled button per view for the main action; an icon-only text button is the quiet icon
191
+ * action of a toolbar or a row. Default filled; a Button placed as a dialog's or a side sheet's action without a
192
+ * `variant` attribute takes the host's (DLG-20, SSH-17), and a side sheet's close button takes
193
+ * `comp.side-sheet.close-button.variant` (SSH-5).
194
+ */
195
+ this.variant = 'filled';
196
+ /** Visual height (small 32 / medium 40 / large 56), which is also an icon-only button's width at its default width. The hit area always meets the minimum target. */
197
+ this.size = 'medium';
198
+ /**
199
+ * How wide an icon-only button is: `default` as wide as it is high (32 / 40 / 56), `narrow` its glyph and
200
+ * `comp.button.container.padding-inline-narrow` on each side of it (28 / 32 / 32 in the default system, whose inset
201
+ * is 4 at every size; it has no narrow width of its own, so it follows its glyph) for a tight row of icon actions,
202
+ * `wide` (40 / 52 / 72) for the one action of a row that should weigh more. Ignored with a label. The height does
203
+ * not change, and the hit area meets the minimum target at every width — a narrow button is never drawn wider to
204
+ * reach it. Anything else is drawn as `default` (reported in debug builds, BTN-21).
205
+ */
206
+ this.width = 'default';
207
+ /** Which side of the label the icon sits on, in the reading direction. Ignored without a label or an icon. */
208
+ this.iconPosition = 'leading';
209
+ /** Makes the button a two-state control: activation switches `selected`, and assistive technology announces it as pressed or not pressed. */
210
+ this.toggle = false;
211
+ /** Whether a toggle is on. Ignored unless `toggle` is true. */
212
+ this.selected = false;
213
+ /**
214
+ * Prevents interaction and removes the button from the focus order. A disabled submit button sends nothing, and
215
+ * still stops Enter from sending its form where it is the form's default button (BTN-32). A button that is not a
216
+ * link is disabled as well by a `<fieldset disabled>` around it. A button disabled while it holds focus keeps it
217
+ * until the next frame, as the platform's own does, and its `disabled` attribute is written then.
218
+ */
219
+ this.disabled = false;
220
+ /**
221
+ * The accessible name, where it is more than what the button draws. Required for an icon-only button. Beside a drawn
222
+ * label it is the whole name in place of the drawn text, which stays drawn — for an action repeated in every row
223
+ * (drawn "Reset", named "Reset: Spacing") — and it must contain the drawn text, so that a person who says what they
224
+ * see is heard: a debug build reports one that does not, and the name stays what was given (BTN-16).
225
+ */
226
+ this.label = '';
227
+ /**
228
+ * Web only. What a press does to the button's form: `button` nothing (the default), `submit` asks it to submit as
229
+ * the platform's own submit button does — after `click`, the form's validation, then its `submit` event — and
230
+ * `reset` asks it to reset (BTN-27, BTN-28). Anything else is `button` and reported; a toggle and a link ignore it
231
+ * (BTN-33). `formaction` and its siblings are not read.
232
+ */
233
+ this.type = 'button';
234
+ /** Web only. With `value`, the pair sent with the form when this button is the one that submitted it; nothing is sent while it is empty (BTN-31). */
235
+ this.name = '';
236
+ /** Web only. What is sent under `name` when this button submitted the form. */
237
+ this.value = '';
238
+ /**
239
+ * The destination: a URL, a path or a fragment. Not empty, the button is a link and not a button (BTN-22): the link
240
+ * role, an `<a href>` in the shadow root, activated by Enter and not by Space, drawn exactly as the button it would
241
+ * otherwise be. Ignored while `toggle` is set; white space is no destination, and a `javascript:` address or one that
242
+ * cannot be read is refused and reported in debug builds (BTN-26).
243
+ */
244
+ this.href = '';
245
+ /**
246
+ * Where the destination opens: `same` (here) or `new` (a new tab or window, with `noopener`), which a labelled button
247
+ * marks with the glyph `open_in_new` after its label and says through `targetLabel` (BTN-24). HTML's `_self` and
248
+ * `_blank` are read as those two; anything else is `same` and reported. Ignored without `href`.
249
+ */
250
+ this.target = 'same';
251
+ /** What assistive technology reads after the link's name while `target` is `new` ("opens in a new tab"): your words, in your language. Required then; ignored otherwise. */
252
+ this.targetLabel = '';
253
+ /** Web only: forwarded to the anchor's `rel`; `target="new"` adds `noopener` to it. Ignored without `href`. */
254
+ this.rel = null;
255
+ /** Web only: forwarded to the anchor's `download` (the file name; empty for the address's own). Ignored without `href`. */
256
+ this.download = null;
257
+ /**
258
+ * The host's `aria-description`, read by assistive technology from the native button (src/primitives/description.ts).
259
+ * @internal
260
+ */
261
+ this.forwardedDescription = null;
262
+ /**
263
+ * The host's `aria-invalid`, read by assistive technology from the native button: what a frame writes on a control
264
+ * it marks invalid (a file upload on its trigger, FUP-16; src/primitives/description.ts).
265
+ * @internal
266
+ */
267
+ this.forwardedInvalid = null;
268
+ /**
269
+ * A host that steps for the button by keys of its own takes it out of the focus order: it stays a named button to
270
+ * assistive technology and to a pointer (src/primitives/focus-order.ts; a number field's steppers, NUM-25).
271
+ * @internal
272
+ */
273
+ this.outsideFocusOrder = false;
274
+ /** Whether the last render drew the button as disabled: compared once the update has reflected `disabled` (BTN-32). */
275
+ this.drawnDisabled = false;
276
+ this.internals = this.attachInternals();
277
+ /** The form whose native controls are listened to for this submit button (BTN-30), so it can be let go. */
278
+ this.watchedForm = null;
279
+ /** Whether the icon slot has content. */
280
+ this.hasIcon = false;
281
+ /** Whether the default slot has content: without it the button is icon-only (BTN-12). */
282
+ this.hasLabel = false;
283
+ /**
284
+ * BTN-7: a size or variant the core does not have was added by a design system: its stylesheet is adopted,
285
+ * built once per value for the page. Tokens the active system lacks fall back to the default's, and a value the
286
+ * active system does not have is reported in debug builds (src/primitives/axes.ts).
287
+ */
288
+ this.axes = new OpenAxesController(this, { component: 'button', behavior: 'BTN-7', axes: AXES });
289
+ /**
290
+ * BTN-19: the glyph in the icon slot is marked when the icon set mirrors its name in right-to-left, or the product's
291
+ * `data-mirror` says so (src/primitives/glyph-mirror.ts); `iconGlyph()` draws the mark.
292
+ */
293
+ this.mirror = new GlyphMirrorController(this, { slots: 'slot[name="icon"]', drawn: '.mark' });
294
+ /**
295
+ * BTN-22 … BTN-26: the link the button is while it has a destination, what its anchor carries, and what a debug
296
+ * build is told (src/primitives/link.ts). A toggle holds a state and takes none (BTN-26).
297
+ */
298
+ this.link = new LinkController(this, {
299
+ ids: { refused: 'BTN-26', newContext: 'BTN-24' },
300
+ disabled: () => this.disabled,
301
+ holds: () => (this.toggle ? 'a toggle' : null),
302
+ });
303
+ /**
304
+ * BTN-8 / BTN-9: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). BTN-23: a
305
+ * link is pressed by Enter alone; Space is the browser's.
306
+ */
307
+ this.press = new PressController(this, {
308
+ container: () => this.container,
309
+ holdCarrier: () => this.container?.querySelector(this.hasLabel ? '.label' : 'slot[name="icon"]') ?? null,
310
+ disabled: () => this.isDisabled,
311
+ keys: () => this.link.pressKeys,
312
+ });
313
+ /**
314
+ * BTN-10, BGR-1…4, BGR-7, BGR-16, BGR-22, BGR-23: where a button group places it (src/primitives/group-item.ts) — its
315
+ * corners and minimum size as a connected group sets them, the padding the group adds at a rounded outer end, no
316
+ * outline or ring along an edge joined under a divider, its label free to wrap when the group narrows it. Internal
317
+ * between Tanrei elements.
318
+ * @internal
319
+ */
320
+ this[_a] = new GroupItemController(this, () => this.container);
321
+ /**
322
+ * BTN-27, BTN-28: after `click` has gone through the page (src/primitives/after-click.ts) and the product has not
323
+ * cancelled it, a submit button asks its form to submit and a reset button asks it to reset. The form is read then
324
+ * (BTN-29). Not held for the press-hold time: the pressed state is shown and the work starts at once.
325
+ */
326
+ this.onFormClick = (event) => {
327
+ const action = this.formAction;
328
+ if (!action)
329
+ return;
330
+ afterClick(() => {
331
+ if (event.defaultPrevented || this.isDisabled)
332
+ return;
333
+ const form = this.form;
334
+ if (!form) {
335
+ report(this, 'BTN-29', `a ${action} button has no form: it stands in none, and its form attribute names none; the press emitted click and did nothing more`);
336
+ return;
337
+ }
338
+ if (action === 'reset')
339
+ form.reset();
340
+ else
341
+ this.submit(form);
342
+ });
343
+ };
344
+ // A disabled native button already swallows its own clicks; this also covers
345
+ // clicks that land on the host (e.g. from `element.click()`), so BTN-2 holds.
346
+ this.addEventListener('click', (event) => {
347
+ if (this.isDisabled) {
348
+ event.preventDefault();
349
+ event.stopImmediatePropagation();
350
+ }
351
+ }, { capture: true });
352
+ // BTN-27, BTN-28: the first listener on the element, so the form is asked once the click has gone through the
353
+ // page — from the native button, from the element's own `click()` and from a click dispatched on it alike.
354
+ this.addEventListener('click', this.onFormClick);
355
+ }
356
+ /**
357
+ * BTN-31: the platform lets only its own buttons be a submitter, so the form is asked through a submit button of the
358
+ * platform's own that holds this button's name and value and lasts no longer than the dispatch: the validation, the
359
+ * `submit` event, `event.submitter` and `new FormData(form, event.submitter)` are the platform's. It stands where
360
+ * this button stands — a child of it in a slot it does not have, drawn nowhere, naming the same form where this
361
+ * button names one — so the pair is sent at the button's own place among the form's entries, as the platform's own
362
+ * button's is; and it is gone when the call returns, also when a listener throws.
363
+ */
364
+ submit(form) {
365
+ const submitter = document.createElement('button');
366
+ submitter.type = 'submit';
367
+ submitter.hidden = true;
368
+ submitter.slot = 'passing';
369
+ // Without a name nothing of it is sent; its value is still the submitter's (what a `method="dialog"` form returns).
370
+ if (this.name)
371
+ submitter.name = this.name;
372
+ submitter.value = this.value;
373
+ const named = this.getAttribute('form');
374
+ if (named !== null)
375
+ submitter.setAttribute('form', named);
376
+ markPassingSubmitter(submitter);
377
+ this.append(submitter);
378
+ // A form owner the parser gave without an ancestor or an id to show for it: the form itself then holds it.
379
+ if (submitter.form !== form) {
380
+ submitter.removeAttribute('form');
381
+ form.append(submitter);
382
+ }
383
+ try {
384
+ form.requestSubmit(submitter);
385
+ }
386
+ finally {
387
+ submitter.remove();
388
+ }
389
+ }
390
+ /**
391
+ * `element.click()` activates the button as a person would — through the native button, so a toggle switches and
392
+ * fires `change`, and through the anchor, so a link is followed — and does nothing while disabled.
393
+ */
394
+ click() {
395
+ const container = this.container;
396
+ if (container)
397
+ container.click();
398
+ else if (!this.isDisabled)
399
+ super.click();
400
+ }
401
+ /**
402
+ * BTN-14: a toggle switches its own `selected`, then fires `click`, then `change` (src/primitives/after-click.ts): a
403
+ * `click` listener on the element already sees the new value, and `change` follows once the click has gone through the page.
404
+ */
405
+ onClick() {
406
+ if (!this.toggle || this.isDisabled)
407
+ return;
408
+ this.selected = !this.selected;
409
+ const detail = { selected: this.selected };
410
+ afterClick(() => this.dispatchEvent(new CustomEvent('change', { bubbles: true, detail })));
411
+ }
412
+ willUpdate() {
413
+ // The slots report their content only once rendered; the first render reads it from the children, so an icon-only
414
+ // button is square and named from its first frame.
415
+ if (this.hasUpdated)
416
+ return;
417
+ const nodes = [...this.childNodes];
418
+ this.hasIcon = nodes.some((node) => node instanceof Element && node.slot === 'icon');
419
+ this.hasLabel = nodes.some((node) => (node instanceof Element ? !node.slot : node.nodeType === Node.TEXT_NODE && !!node.textContent?.trim()));
420
+ }
421
+ updated(changed) {
422
+ // BTN-32: the update has reflected `disabled` by now. Unset inside a disabled fieldset, the button was rendered
423
+ // from the property alone and is still disabled by the fieldset: it is drawn again.
424
+ if (this.drawnDisabled !== this.isDisabled)
425
+ this.requestUpdate();
426
+ // BTN-21: a width the button does not define is drawn at the default width (no rule matches it) and reported.
427
+ if (changed.has('width') && !WIDTHS.includes(this.width)) {
428
+ report(this, 'BTN-21', `width "${this.width}" is not a value of the button; it is drawn as "default"`);
429
+ }
430
+ if (changed.has('type') || changed.has('toggle') || changed.has('href')) {
431
+ this.watch();
432
+ this.reportType();
433
+ }
434
+ if (changed.has('label') || changed.has('hasLabel'))
435
+ this.reportName();
436
+ if (!changed.has('label') && !changed.has('hasLabel') && !changed.has('hasIcon'))
437
+ return;
438
+ // BTN-16, BTN-17: an icon alone is not a name, and a button with neither label nor icon shows nothing. It still renders.
439
+ if (!this.hasLabel && !this.hasIcon)
440
+ report(this, 'BTN-17', 'it has neither a label nor an icon; give it one');
441
+ // A button its host keeps from assistive technology needs no name there (a number field's unnamed stepper, NUM-44).
442
+ else if (!this.hasLabel && !this.label && this.getAttribute('aria-hidden') !== 'true')
443
+ report(this, 'BTN-16', 'it is icon-only and label is empty, so it has no accessible name; give it a label');
444
+ }
445
+ /** BTN-33: a type the button does not define, and a type a toggle or a link ignores. Each once. */
446
+ reportType() {
447
+ const { type } = this;
448
+ if (!TYPES.includes(type)) {
449
+ report(this, 'BTN-33', `type "${type}" is not button, submit or reset; it behaves as "button" and submits nothing`);
450
+ return;
451
+ }
452
+ if (type === 'button')
453
+ return;
454
+ if (this.toggle)
455
+ report(this, 'BTN-33', `a toggle cannot ${type} a form; type "${type}" is ignored`);
456
+ else if (this.link.form)
457
+ report(this, 'BTN-33', `a link cannot ${type} a form; type "${type}" is ignored`);
458
+ }
459
+ /** The text the default slot draws. */
460
+ get drawnText() {
461
+ const slot = this.renderRoot?.querySelector('slot:not([name])');
462
+ const nodes = slot ? slot.assignedNodes({ flatten: true }) : [...this.childNodes].filter((node) => !(node instanceof Element && node.slot));
463
+ return nodes.map((node) => node.textContent ?? '').join('');
464
+ }
465
+ /**
466
+ * BTN-16: a name beside a drawn label must contain the drawn text, so that a person who says the word they see is
467
+ * heard. The report is all the button does about it: `label` stays the whole name.
468
+ */
469
+ reportName() {
470
+ if (!this.label || !this.hasLabel)
471
+ return;
472
+ const drawn = spoken(this.drawnText);
473
+ if (drawn && !spoken(this.label).includes(drawn)) {
474
+ report(this, 'BTN-16', `label "${this.label}" does not contain the text the button draws ("${drawn}"), so a person who says what they see is not heard; label is still its whole name`);
475
+ }
476
+ }
477
+ render() {
478
+ // The native <button> supplies role, focusability, Enter/Space activation and
479
+ // the disabled state, so assistive technology and test tools see real semantics. aria-pressed exists only on a toggle (BTN-14).
480
+ // BTN-12, BTN-17: without a label the button is as wide as its width names — an icon alone, or nothing at all.
481
+ // BTN-22: with a destination the same part is an anchor — the same classes, parts and listeners, so every state is
482
+ // drawn from the same tokens — whose attributes are the link primitive's (`href`, `target`, `rel`, `download`; a
483
+ // disabled link is the anchor without `href`, with the link role and aria-disabled, BTN-25).
484
+ // BTN-16: `label`, whenever given, is the whole name: the one native element carries it, and the drawn text under
485
+ // it is not exposed a second time. The native button stays `type="button"`: in a shadow root no form owns it.
486
+ const link = this.link.form;
487
+ const disabled = this.isDisabled;
488
+ this.drawnDisabled = disabled;
489
+ const tag = link ? literal `a` : literal `button`;
490
+ const iconOnly = !this.hasLabel;
491
+ const trailing = this.hasIcon && this.hasLabel && this.iconPosition === 'trailing';
492
+ // BTN-24: a new context is marked after the label, where a trailing icon is drawn — unless the product's own icon is
493
+ // there, or there is no label to follow.
494
+ const mark = !!link?.opensNew && this.hasLabel && !trailing;
495
+ return html `
496
+ <${tag}
497
+ part="container"
498
+ type=${link ? nothing : 'button'}
499
+ data-tanrei-shape
500
+ class=${classMap({ 'has-icon': this.hasIcon, 'with-icon': this.hasIcon && this.hasLabel && !trailing, 'with-trailing-icon': trailing, 'with-mark': mark, 'icon-only': iconOnly, ...this[GROUP_ITEM].classes() })}
501
+ data-host-variant=${this[GROUP_ITEM].variant ?? nothing}
502
+ ${linkAttributes(link)}
503
+ tabindex=${this.outsideFocusOrder ? '-1' : nothing}
504
+ aria-label=${this.label || nothing}
505
+ aria-description=${this.link.describe(this.forwardedDescription) ?? nothing}
506
+ aria-invalid=${!link && this.forwardedInvalid === 'true' ? 'true' : nothing}
507
+ aria-pressed=${this.toggle ? String(this.selected) : nothing}
508
+ ?disabled=${!link && disabled}
509
+ @click=${this.onClick}
510
+ @pointerdown=${this.press.onPointerDown}
511
+ @pointerup=${this.press.release}
512
+ @pointercancel=${this.press.release}
513
+ @pointerleave=${this.press.release}
514
+ @keydown=${this.press.onKeyDown}
515
+ @keyup=${this.press.onKeyUp}
516
+ @blur=${this.press.onBlur}
517
+ @focus=${this.onFocus}
518
+ >
519
+ <span part="icon" class="icon" aria-hidden="true"><slot name="icon" @slotchange=${this.onIconSlotChange}></slot></span>
520
+ <span part="label" class="label"><slot @slotchange=${this.onLabelSlotChange}></slot></span>
521
+ ${mark ? html `<span part="icon" class="mark" aria-hidden="true">${LINK_MARK}</span>` : nothing}
522
+ </${tag}>
523
+ `;
524
+ }
525
+ }
526
+ // `autofocus` on it gives it focus when the page first loads too (src/primitives/autofocus.ts).
527
+ focusedAtFirst(TanreiButton);
528
+ if (!customElements.get('tanrei-button'))
529
+ customElements.define('tanrei-button', TanreiButton);
530
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../../src/components/button/button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAkD,OAAO,EAAE,MAAM,KAAK,CAAC;AAC1F,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,aAAa,EAGb,UAAU,EACV,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,MAAM,EACN,cAAc,E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A layer may add more; those get their styles on demand. */
3
+ export declare const CORE_VARIANTS: readonly ['filled', 'tonal', 'elevated', 'outlined', 'text'];
4
+ export declare const CORE_SIZES: readonly ['small', 'medium', 'large'];
5
+ /**
6
+ * BTN-12: the widths of an icon-only Button. A closed set: `default` is the height, `wide` a width of its size, and
7
+ * `narrow` no width of its own: the glyph's box and an inset of its size on each side.
8
+ */
9
+ export declare const WIDTHS: readonly ['default', 'narrow', 'wide'];
10
+ /**
11
+ * The open axes (BTN-7): a size or variant a layer added gets its block on demand, built by the same functions
12
+ * as the core blocks and falling back to the default's tokens; a value the active system lacks is reported in debug builds.
13
+ */
14
+ export declare const AXES: readonly OpenAxis[];
15
+ /**
16
+ * BTN-22: with a destination the container is an anchor, and it is the same styled part: every rule above that names
17
+ * the native `button` names the anchor too, at the same weight (src/primitives/link.ts). Rules are written for
18
+ * `button` alone, here and in what a button group adds (groupItemStyles); the link form follows them.
19
+ */
20
+ export declare const styles: import("lit").CSSResult;