@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,185 @@
1
+ // FIT-5: the kind of a file's format, from its media type and — where that is empty, says nothing or is on no list —
2
+ // from the end of its name. The lists are the sentence's own, closed: one file is one kind on every platform. Nothing
3
+ // of the file is read.
4
+ /** FIT-5: each kind's glyph, by its name in the system's icon set. */
5
+ export const KIND_GLYPH = {
6
+ pdf: 'picture_as_pdf',
7
+ spreadsheet: 'table',
8
+ presentation: 'slideshow',
9
+ archive: 'folder_zip',
10
+ code: 'code',
11
+ image: 'image',
12
+ video: 'movie',
13
+ audio: 'music_note',
14
+ document: 'description',
15
+ other: 'draft',
16
+ };
17
+ /** FIT-5, in its order: the specific kinds stand before the families, so that text/csv is a spreadsheet before text/ makes it a document. */
18
+ const RULES = [
19
+ { kind: 'pdf', types: ['application/pdf'], endings: ['pdf'] },
20
+ {
21
+ kind: 'spreadsheet',
22
+ types: [
23
+ 'text/csv',
24
+ 'text/tab-separated-values',
25
+ 'application/vnd.ms-excel',
26
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
27
+ 'application/vnd.oasis.opendocument.spreadsheet',
28
+ 'application/vnd.apple.numbers',
29
+ 'application/x-iwork-numbers-sffnumbers',
30
+ ],
31
+ endings: ['xls', 'xlsx', 'ods', 'numbers', 'csv', 'tsv'],
32
+ },
33
+ {
34
+ kind: 'presentation',
35
+ types: [
36
+ 'application/vnd.ms-powerpoint',
37
+ 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
38
+ 'application/vnd.oasis.opendocument.presentation',
39
+ 'application/vnd.apple.keynote',
40
+ 'application/x-iwork-keynote-sffkey',
41
+ ],
42
+ endings: ['ppt', 'pptx', 'odp', 'key'],
43
+ },
44
+ {
45
+ kind: 'archive',
46
+ types: [
47
+ 'application/zip',
48
+ 'application/x-zip-compressed',
49
+ 'application/x-tar',
50
+ 'application/gzip',
51
+ 'application/x-gzip',
52
+ 'application/x-bzip2',
53
+ 'application/x-xz',
54
+ 'application/x-7z-compressed',
55
+ 'application/vnd.rar',
56
+ 'application/x-rar-compressed',
57
+ ],
58
+ endings: ['zip', 'tar', 'gz', 'tgz', 'bz2', 'xz', '7z', 'rar'],
59
+ },
60
+ {
61
+ kind: 'code',
62
+ types: [
63
+ 'text/html',
64
+ 'text/css',
65
+ 'text/javascript',
66
+ 'application/javascript',
67
+ 'application/x-javascript',
68
+ 'text/typescript',
69
+ 'application/typescript',
70
+ 'text/jsx',
71
+ 'text/tsx',
72
+ 'application/json',
73
+ 'application/xml',
74
+ 'text/xml',
75
+ 'text/yaml',
76
+ 'text/x-yaml',
77
+ 'application/yaml',
78
+ 'application/x-yaml',
79
+ 'application/x-sh',
80
+ 'text/x-sh',
81
+ 'text/x-shellscript',
82
+ 'text/x-python',
83
+ 'text/x-script.python',
84
+ 'text/x-ruby',
85
+ 'application/x-ruby',
86
+ 'text/x-go',
87
+ 'text/x-rust',
88
+ 'text/x-java',
89
+ 'text/x-java-source',
90
+ 'text/x-kotlin',
91
+ 'text/x-swift',
92
+ 'text/x-c',
93
+ 'text/x-chdr',
94
+ 'text/x-csrc',
95
+ 'text/x-c++',
96
+ 'text/x-c++src',
97
+ 'text/x-csharp',
98
+ 'text/x-php',
99
+ 'application/x-php',
100
+ 'application/x-httpd-php',
101
+ 'application/sql',
102
+ 'text/x-sql',
103
+ ],
104
+ endings: ['html', 'css', 'js', 'mjs', 'ts', 'tsx', 'jsx', 'json', 'xml', 'yaml', 'yml', 'sh', 'py', 'rb', 'go', 'rs', 'java', 'kt', 'swift', 'c', 'h', 'cpp', 'cs', 'php', 'sql'],
105
+ },
106
+ { kind: 'image', family: 'image/', endings: ['png', 'jpg', 'jpeg', 'gif', 'webp', 'avif', 'svg', 'bmp', 'tif', 'tiff', 'heic', 'heif', 'ico'] },
107
+ { kind: 'video', family: 'video/', endings: ['mp4', 'mov', 'm4v', 'webm', 'mkv', 'avi'] },
108
+ { kind: 'audio', family: 'audio/', endings: ['mp3', 'wav', 'm4a', 'aac', 'ogg', 'oga', 'flac', 'opus'] },
109
+ {
110
+ kind: 'document',
111
+ family: 'text/',
112
+ types: [
113
+ 'application/rtf',
114
+ 'application/msword',
115
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
116
+ 'application/vnd.oasis.opendocument.text',
117
+ 'application/vnd.apple.pages',
118
+ 'application/x-iwork-pages-sffpages',
119
+ ],
120
+ endings: ['txt', 'md', 'rtf', 'doc', 'docx', 'odt', 'pages'],
121
+ },
122
+ ];
123
+ /** The media type as it is compared: without regard to case, without a parameter, without the white space around it. */
124
+ const readType = (mediaType) => mediaType.split(';')[0].trim().toLowerCase();
125
+ /** The end of a name after its last dot, without regard to case; empty for a name without a dot. */
126
+ const ending = (name) => {
127
+ const dot = name.lastIndexOf('.');
128
+ return dot < 0 ? '' : name.slice(dot + 1).trim().toLowerCase();
129
+ };
130
+ /**
131
+ * FIT-5: the kind of a file. The media type decides where it is on a list; where it is empty, is
132
+ * application/octet-stream or is on no list, the ending of the name decides; and everything else is `other`.
133
+ */
134
+ export function fileKind(mediaType, name) {
135
+ const type = readType(mediaType ?? '');
136
+ if (type && type !== 'application/octet-stream') {
137
+ for (const rule of RULES)
138
+ if (rule.types?.includes(type) || (rule.family && type.startsWith(rule.family)))
139
+ return rule.kind;
140
+ }
141
+ const end = ending(name ?? '');
142
+ if (end)
143
+ for (const rule of RULES)
144
+ if (rule.endings.includes(end))
145
+ return rule.kind;
146
+ return 'other';
147
+ }
148
+ /**
149
+ * FIT-9: where a tile's name is cut — the start, which gives way, and the ending, which stays: from the name's last
150
+ * dot, where that dot is not its first character and is among its last eight. A name with no such ending is all start.
151
+ */
152
+ export function nameParts(name) {
153
+ const dot = name.lastIndexOf('.');
154
+ if (dot <= 0 || name.length - dot > 8)
155
+ return { start: name, ending: '' };
156
+ return { start: name.slice(0, dot), ending: name.slice(dot) };
157
+ }
158
+ // ── `accept` (FPK-9) ── the one way the attribute is read and written, for the file picker and for a component that forwards it.
159
+ /** `accept` as a list: the comma-separated form a native file input takes, or an array (as JSON too). */
160
+ export function acceptList(value) {
161
+ if (Array.isArray(value))
162
+ return value.map((entry) => String(entry).trim()).filter(Boolean);
163
+ if (typeof value !== 'string')
164
+ return [];
165
+ const text = value.trim();
166
+ if (text.startsWith('[')) {
167
+ try {
168
+ const list = JSON.parse(text);
169
+ if (Array.isArray(list))
170
+ return acceptList(list);
171
+ }
172
+ catch {
173
+ // Not JSON: a list with commas.
174
+ }
175
+ }
176
+ return text.split(',').map((entry) => entry.trim()).filter(Boolean);
177
+ }
178
+ export const acceptConverter = {
179
+ fromAttribute: (value) => acceptList(value),
180
+ toAttribute: (value) => {
181
+ const list = acceptList(value);
182
+ return list.length ? list.join(',') : null;
183
+ },
184
+ };
185
+ //# sourceMappingURL=file-format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-format.js","sourceRoot":"","sources":["../../src/primitives/file-format.ts"],"names":[],"mappings":"AAAA,qHAAqH;AACrH,sHAAsH;AACtH,uBAAuB;AAKvB,sEAAsE;AACtE,MAAM,CAAC,MAAM,UAAU,GAAuC;IAC5D,GAAG,EAAE,gBAAgB;IACrB,WAAW,EAAE,OAAO;IACpB,YAAY,EAAE,WAAW;IACzB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE,aAAa;IACvB,KAAK,EAAE,OAAO;CACf,CAAC;AAYF,6IAA6I;AAC7I,MAAM,KAAK,GAAoB;IAC7B,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE;IAC7D;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE;YACL,UAAU;YACV,2BAA2B;YAC3B,0BAA0B;YAC1B,mEAAmE;YACnE,gDAAgD;YAChD,+BAA+B;YAC/B,wCAAwC;SACzC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC;KACzD;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE;YACL,+BAA+B;YAC/B,2EAA2E;YAC3E,iDAAiD;YACjD,+BAA+B;YAC/B,oCAAoC;SACrC;QACD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;KACvC;IACD;QACE,IAAI,EAAE,SAAS;QACf,KAA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K,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5F,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC;IACzC,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC1B,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,IAAI,GAAY,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBAAE,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;QACnD,CAAC;QAAC,MAAM,CAAC;YACP,gCAAgC;QAClC,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACtE,CAAC;AACD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,aAAa,EAAE,CAAC,KAAoB,EAAY,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACpE,WAAW,EAAE,CAAC,KAAc,EAAiB,EAAE;QAC7C,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC7C,CAAC;CACF,CAAC"}
@@ -0,0 +1,45 @@
1
+ /** What a holder gives one file item. A key that is left out is the item's own to say. */
2
+ export interface FileItemGiven {
3
+ /** FUP-58: the form of every row of the holder, in place of the item's own `form`. */
4
+ form?: string;
5
+ /** FUP-58: whether every row draws a picture, in place of the item's own `preview`. */
6
+ preview?: boolean;
7
+ /** FUP-58: how every picture fills its box, in place of the item's own `fit`. */
8
+ fit?: string;
9
+ /** FUP-58: whether every tile hides its name, in place of the item's own `nameHidden`. */
10
+ nameHidden?: boolean;
11
+ /** FUP-58: the width of every tile's box, in place of the item's own `width`. */
12
+ width?: number | null;
13
+ /** FUP-58: the height of every tile's box, in place of the item's own `height`. */
14
+ height?: number | null;
15
+ /** FUP-58: the name of every remove action, in place of the item's own `removeLabel`. */
16
+ removeLabel?: string;
17
+ /** FUP-58: the name of every retry action, in place of the item's own `retryLabel`. */
18
+ retryLabel?: string;
19
+ /** FUP-28: the holder is disabled, so the item is, whatever its own `disabled` says. */
20
+ disabled?: boolean;
21
+ /** FIT-19, FUP-25: the item is one item of the holder's list, in the place of the group it is when it stands alone. */
22
+ listItem?: boolean;
23
+ /** FUP-45: the holder made the item itself; a word the item lacks is then the holder's to report, by its own prop. */
24
+ made?: boolean;
25
+ /**
26
+ * FIT-18: what lies between this item and the next one of the holder's column, as a CSS length — an action's hit
27
+ * area reaches no further toward a neighbour than half of it. Left out: nothing is known to lie between them.
28
+ */
29
+ between?: string;
30
+ }
31
+ /** The holder's word to `item`: what it gives it now, or `null` when it holds it no longer. The item draws itself again. */
32
+ export declare function giveFileItem(item: Element, gift: FileItemGiven | null): void;
33
+ /** What `item`'s holder gives it now; nothing for an item that stands alone. */
34
+ export declare const fileItemGiven: (item: Element) => FileItemGiven | undefined;
35
+ /**
36
+ * Where a file item keeps the way its holder moves focus into it after a row left (FUP-30): to its remove action, or —
37
+ * where it has none — to its body where that is pressable. It answers whether focus is now inside the item.
38
+ */
39
+ export declare const FILE_ITEM_TAKE_FOCUS: unique symbol;
40
+ /** The event a file item tells its holder with: it arrived, or something the holder reads of it changed. */
41
+ export declare const FILE_ITEM_UPDATE = "tanrei-file-item-update";
42
+ /** The event a file picker ends one arrival with, after its `select` and `reject`, for the component that holds it (FUP-57). */
43
+ export declare const FILE_PICKER_ARRIVAL = "tanrei-file-picker-arrival";
44
+ /** Tells the holder of a file picker that the events of one arrival have all been emitted. */
45
+ export declare function notifyArrival(picker: HTMLElement): void;
@@ -0,0 +1,39 @@
1
+ // The internal channel from a component that holds file items to each of them (FIT-19, FUP-25, FUP-58): what the
2
+ // holder gives every item — one form for all its rows, the names of the two actions, whether it is disabled, and that
3
+ // the item is an item of the holder's list — reaches the item here and through no prop, attribute or event of its own,
4
+ // as a Button takes its corners from a button group (src/primitives/group-item.ts).
5
+ //
6
+ // It is kept outside `src/components/**` — the files custom-elements.json is made from — so that none of it becomes
7
+ // part of the file item's public surface (the manifest, the generated React wrapper). What is given is kept beside the
8
+ // item, never on it: an item that is not defined yet is told when it is, and a product's own item keeps every
9
+ // attribute the product wrote.
10
+ const given = new WeakMap();
11
+ const KEYS = ['form', 'preview', 'fit', 'nameHidden', 'width', 'height', 'removeLabel', 'retryLabel', 'disabled', 'listItem', 'made', 'between'];
12
+ const same = (a, b) => a === b || (!!a && !!b && KEYS.every((key) => Object.is(a[key], b[key])));
13
+ /** The holder's word to `item`: what it gives it now, or `null` when it holds it no longer. The item draws itself again. */
14
+ export function giveFileItem(item, gift) {
15
+ const had = given.get(item);
16
+ if (gift ? same(had, gift) : !had)
17
+ return;
18
+ if (gift)
19
+ given.set(item, { ...gift });
20
+ else
21
+ given.delete(item);
22
+ item.requestUpdate?.();
23
+ }
24
+ /** What `item`'s holder gives it now; nothing for an item that stands alone. */
25
+ export const fileItemGiven = (item) => given.get(item);
26
+ /**
27
+ * Where a file item keeps the way its holder moves focus into it after a row left (FUP-30): to its remove action, or —
28
+ * where it has none — to its body where that is pressable. It answers whether focus is now inside the item.
29
+ */
30
+ export const FILE_ITEM_TAKE_FOCUS = Symbol.for('tanrei.file-item.take-focus');
31
+ /** The event a file item tells its holder with: it arrived, or something the holder reads of it changed. */
32
+ export const FILE_ITEM_UPDATE = 'tanrei-file-item-update';
33
+ /** The event a file picker ends one arrival with, after its `select` and `reject`, for the component that holds it (FUP-57). */
34
+ export const FILE_PICKER_ARRIVAL = 'tanrei-file-picker-arrival';
35
+ /** Tells the holder of a file picker that the events of one arrival have all been emitted. */
36
+ export function notifyArrival(picker) {
37
+ picker.dispatchEvent(new Event(FILE_PICKER_ARRIVAL, { bubbles: true }));
38
+ }
39
+ //# sourceMappingURL=file-item-holder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-item-holder.js","sourceRoot":"","sources":["../../src/primitives/file-item-holder.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,sHAAsH;AACtH,uHAAuH;AACvH,oFAAoF;AACpF,EAAE;AACF,oHAAoH;AACpH,uHAAuH;AACvH,8GAA8G;AAC9G,+BAA+B;AAmC/B,MAAM,KAAK,GAAG,IAAI,OAAO,EAA0B,CAAC;AACpD,MAAM,IAAI,GAAqC,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AACnL,MAAM,IAAI,GAAG,CAAC,CAA4B,EAAE,CAA4B,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvJ,4HAA4H;AAC5H,MAAM,UAAU,YAAY,CAAC,IAAa,EAAE,IAA0B;IACpE,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO;IAC1C,IAAI,IAAI;QAAE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;;QAClC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACvB,IAAiB,CAAC,aAAa,EAAE,EAAE,CAAC;AACvC,CAAC;AAED,gFAAgF;AAChF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAa,EAA6B,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAE3F;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAE9E,4GAA4G;AAC5G,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC;AAE1D,gIAAgI;AAChI,MAAM,CAAC,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAEhE,8FAA8F;AAC9F,MAAM,UAAU,aAAa,CAAC,MAAmB;IAC/C,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AAC1E,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { PropertyDeclaration } from 'lit';
2
+ /**
3
+ * A control that a host element places and steps or acts for by keys of its own is not a stop in the focus order (a
4
+ * number field's steppers, NUM-25: Up Arrow and Down Arrow do their work from the input, and a form of twenty numbers
5
+ * stays twenty stops long). The host says so on the control — `.outsideFocusOrder=${true}` — and the control renders
6
+ * `tabindex="-1"` on the native element that carries its semantics, which stays in the accessibility tree, named, and
7
+ * pressable by a pointer and by assistive technology. Declare it as a property (`outsideFocusOrder:
8
+ * OUTSIDE_FOCUS_ORDER`). It has no attribute: an internal contract between Tanrei elements, not part of a control's
9
+ * public surface.
10
+ */
11
+ export declare const OUTSIDE_FOCUS_ORDER: PropertyDeclaration;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * A control that a host element places and steps or acts for by keys of its own is not a stop in the focus order (a
3
+ * number field's steppers, NUM-25: Up Arrow and Down Arrow do their work from the input, and a form of twenty numbers
4
+ * stays twenty stops long). The host says so on the control — `.outsideFocusOrder=${true}` — and the control renders
5
+ * `tabindex="-1"` on the native element that carries its semantics, which stays in the accessibility tree, named, and
6
+ * pressable by a pointer and by assistive technology. Declare it as a property (`outsideFocusOrder:
7
+ * OUTSIDE_FOCUS_ORDER`). It has no attribute: an internal contract between Tanrei elements, not part of a control's
8
+ * public surface.
9
+ */
10
+ export const OUTSIDE_FOCUS_ORDER = { type: Boolean, attribute: false };
11
+ //# sourceMappingURL=focus-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-order.js","sourceRoot":"","sources":["../../src/primitives/focus-order.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwB,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { type CSSResult } from 'lit';
2
+ /**
3
+ * Names the element that draws the indicator, given a focus condition: `(focus) => \`button${focus}\`` for a control
4
+ * that is its own indicator, `(focus) => \`input${focus} + .box\`` for a native input drawn by a sibling. The condition
5
+ * is `:focus-visible`, or `[data-focus-style='glow']:focus-visible` (see `syncFocusStyle`).
6
+ */
7
+ export type FocusSelector = (focus: string) => string;
8
+ /** What `focusRing()` takes besides the selector. */
9
+ export interface FocusRingOptions {
10
+ inside?: boolean;
11
+ within?: string;
12
+ /**
13
+ * The outer stroke's color (the halo's outer color under glow), as a CSS color expression — a component whose
14
+ * indicator is drawn on a surface of its own names that surface's focus color here (`var(--_focus)`, SNK-3). Left
15
+ * out, it is the system's focus color role, `sys.color.focus-ring`. The inner stroke, the widths and the offset are
16
+ * always the system's.
17
+ */
18
+ color?: string;
19
+ }
20
+ /**
21
+ * The keyboard focus indicator (BTN-4 and every control after it), from the control outwards: `sys.focus.offset`
22
+ * (negative = inside), an optional inner stroke (`sys.focus.inner-width`, `sys.color.focus-ring-inner`), then the outer
23
+ * stroke (`sys.focus.outer-width`, `sys.color.focus-ring`). With inner-width 0 it is a single ring and the offset leaves
24
+ * the surface visible as a gap. Never animated; pointer focus never shows it (`:focus-visible`).
25
+ * Under `sys.behavior.focus-style: glow` (BTN-10) the same two colors are a halo instead of a line.
26
+ *
27
+ * `inside` draws the whole indicator inside the element instead — the outer stroke on its edge, the inner stroke within
28
+ * it, the content beyond — for an element whose parent would clip what it draws outside (a list row in a scrolling
29
+ * list, a menu item in its surface: LST-4, MNU-11). It is the ring drawn around the element shrunk by the ring's
30
+ * extent, so its corners stay concentric; the glow likewise starts that far inside and spreads out to the edge.
31
+ * Never name an element that scrolls: the inner stroke and the glow are its `::after`, which would move away with what
32
+ * it scrolls. Name a box over it that does not scroll — `(focus) => \`.scroll${focus} ~ .focus\`` — as the code block,
33
+ * the dialog and the snackbar do.
34
+ *
35
+ * `within` is for an element with a known amount of room around it before something clips (a tab's container in its
36
+ * track, TAB-4): a length expression. The indicator is drawn around the element where the room holds all of it, and
37
+ * further in by what is missing, on every side alike and still concentric — with room for all of it this is the ring
38
+ * above, with no room at all it is `inside`, and in between it is neither.
39
+ *
40
+ * `color` is the outer stroke's color where the indicator is drawn on a surface the system's focus color is not held
41
+ * against (a snackbar's inverse or status bar, SNK-3): a CSS color expression, the system's role when left out.
42
+ *
43
+ * The indicator element must be a positioning container, carry the shape (`data-tanrei-shape`, whose radius and
44
+ * `--_corner-scale` the ring follows, concentric) and leave its `::after` to the ring.
45
+ */
46
+ export declare function focusRing(on: FocusSelector, { inside, within, color }?: FocusRingOptions): CSSResult;
47
+ /**
48
+ * The glow alone, for a control whose focus indicator is its own edge (a text field, TXF-7): it draws no ring
49
+ * — its focused tokens show focus — but where `sys.behavior.focus-style` is glow it adds the same halo `focusRing()`
50
+ * draws, around the element `on()` names. Unlike the ring, the condition is the control's own (a field is focused by
51
+ * pointer too): `on(focus)` receives `:focus-visible` or `[data-focus-style='glow']:focus-visible` and maps it to its own
52
+ * condition. The indicator element must be a positioning container carrying the shape, and leave its `::after` to it.
53
+ */
54
+ export declare function focusGlow(on: FocusSelector): CSSResult;
55
+ /**
56
+ * For a box whose block-end corners have a radius of their own (a filled input box: `container.shape-bottom`, where
57
+ * its top corners take `container.shape`): the halo `focusGlow()` draws follows those two corners too. `on` is as
58
+ * `focusGlow()`'s, naming the box in that condition alone; `radius` is the corners' radius as the box writes it, a
59
+ * length expression. Written after `focusGlow()` in the stylesheet.
60
+ */
61
+ export declare function focusGlowEnds(on: FocusSelector, radius: string): CSSResult;
62
+ /**
63
+ * The glow alone, as `focusGlow()` draws it, for a box that HOLDS other components — the container of a composed
64
+ * element, whose stylesheet writes no custom property (W3; `heldShape()` in src/styles/shape.ts): the
65
+ * halo is the box's `::after`, at the radius the caller gives — the box's own, as a CSS length expression for each of
66
+ * the two cases `heldShape()` has — and nothing of it is a custom property. `on(focus)` is as `focusGlow()`'s.
67
+ */
68
+ export declare function heldFocusGlow(on: FocusSelector, radius: {
69
+ plain: string;
70
+ eased: string;
71
+ }): CSSResult;
72
+ /**
73
+ * BTN-10: where style queries are missing, the focus style is read when focus arrives. Call it from the focused
74
+ * element's `focus` listener; it writes `data-focus-style` on `target` (the element `on()` names the condition of).
75
+ */
76
+ export declare function syncFocusStyle(host: Element, target: HTMLElement | null): void;
@@ -0,0 +1,230 @@
1
+ import { unsafeCSS } from 'lit';
2
+ import { BEHAVIOR, choice } from './behavior.js';
3
+ /** The outer stroke's color where a component names none: the system's focus color role. */
4
+ const SYSTEM_COLOR = 'var(--tanrei-sys-color-focus-ring)';
5
+ // focus-style: glow — the same two focus colors as a soft halo instead of a hard line.
6
+ const glow = (selector, color = SYSTEM_COLOR) => `
7
+ ${selector} {
8
+ /* Transparent, not none: forced-colors mode repaints it in a system color, where a box-shadow is dropped. */
9
+ outline-color: transparent;
10
+ }
11
+ ${selector}::after {
12
+ /* The halo starts where the ring would: after the offset. */
13
+ inset: calc(var(--tanrei-sys-focus-offset) * -1);
14
+ border: 0;
15
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale) + var(--tanrei-sys-focus-offset));
16
+ /* The same two colors as the ring, from the control outwards, each blurred by its own width. */
17
+ box-shadow:
18
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
19
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) ${color};
20
+ }`;
21
+ /**
22
+ * The keyboard focus indicator (BTN-4 and every control after it), from the control outwards: `sys.focus.offset`
23
+ * (negative = inside), an optional inner stroke (`sys.focus.inner-width`, `sys.color.focus-ring-inner`), then the outer
24
+ * stroke (`sys.focus.outer-width`, `sys.color.focus-ring`). With inner-width 0 it is a single ring and the offset leaves
25
+ * the surface visible as a gap. Never animated; pointer focus never shows it (`:focus-visible`).
26
+ * Under `sys.behavior.focus-style: glow` (BTN-10) the same two colors are a halo instead of a line.
27
+ *
28
+ * `inside` draws the whole indicator inside the element instead — the outer stroke on its edge, the inner stroke within
29
+ * it, the content beyond — for an element whose parent would clip what it draws outside (a list row in a scrolling
30
+ * list, a menu item in its surface: LST-4, MNU-11). It is the ring drawn around the element shrunk by the ring's
31
+ * extent, so its corners stay concentric; the glow likewise starts that far inside and spreads out to the edge.
32
+ * Never name an element that scrolls: the inner stroke and the glow are its `::after`, which would move away with what
33
+ * it scrolls. Name a box over it that does not scroll — `(focus) => \`.scroll${focus} ~ .focus\`` — as the code block,
34
+ * the dialog and the snackbar do.
35
+ *
36
+ * `within` is for an element with a known amount of room around it before something clips (a tab's container in its
37
+ * track, TAB-4): a length expression. The indicator is drawn around the element where the room holds all of it, and
38
+ * further in by what is missing, on every side alike and still concentric — with room for all of it this is the ring
39
+ * above, with no room at all it is `inside`, and in between it is neither.
40
+ *
41
+ * `color` is the outer stroke's color where the indicator is drawn on a surface the system's focus color is not held
42
+ * against (a snackbar's inverse or status bar, SNK-3): a CSS color expression, the system's role when left out.
43
+ *
44
+ * The indicator element must be a positioning container, carry the shape (`data-tanrei-shape`, whose radius and
45
+ * `--_corner-scale` the ring follows, concentric) and leave its `::after` to the ring.
46
+ */
47
+ export function focusRing(on, { inside = false, within, color = SYSTEM_COLOR } = {}) {
48
+ if (within !== undefined)
49
+ return heldRing(on, within, color);
50
+ if (inside)
51
+ return insideRing(on, color);
52
+ const focused = on(':focus-visible');
53
+ return unsafeCSS(`
54
+ ${focused} {
55
+ --_focus-inner-edge: calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width));
56
+ outline: var(--tanrei-sys-focus-outer-width) solid ${color};
57
+ outline-offset: var(--_focus-inner-edge);
58
+ }
59
+ ${focused}::after {
60
+ content: '';
61
+ position: absolute;
62
+ inset: calc(var(--_focus-inner-edge) * -1);
63
+ border: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
64
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale) + var(--_focus-inner-edge));
65
+ pointer-events: none;
66
+ }
67
+
68
+ /* focus-style: glow, read by a style container query… */
69
+ @container style(${BEHAVIOR}-focus-style: glow) {${glow(focused, color)}
70
+ }
71
+ /* …and, for browsers without style queries, from data-focus-style (syncFocusStyle). */
72
+ ${glow(on("[data-focus-style='glow']:focus-visible"), color)}
73
+ `);
74
+ }
75
+ // focus-style: glow, inside the element: the halo's box is the element shrunk by the glow's reach (the offset, twice
76
+ // each width: the spreads and the outer blur), so the halo spreads out to the element's edge and no further.
77
+ const insideGlow = (selector, color = SYSTEM_COLOR) => `
78
+ ${selector} {
79
+ outline-color: transparent;
80
+ }
81
+ ${selector}::after {
82
+ --_glow-inset: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
83
+ inset: var(--_glow-inset);
84
+ border: 0;
85
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_glow-inset)));
86
+ box-shadow:
87
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
88
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) ${color};
89
+ }`;
90
+ function insideRing(on, color) {
91
+ const focused = on(':focus-visible');
92
+ return unsafeCSS(`
93
+ ${focused} {
94
+ outline: var(--tanrei-sys-focus-outer-width) solid ${color};
95
+ outline-offset: calc(var(--tanrei-sys-focus-outer-width) * -1);
96
+ }
97
+ ${focused}::after {
98
+ content: '';
99
+ position: absolute;
100
+ inset: var(--tanrei-sys-focus-outer-width);
101
+ border: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
102
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--tanrei-sys-focus-outer-width)));
103
+ pointer-events: none;
104
+ }
105
+
106
+ @container style(${BEHAVIOR}-focus-style: glow) {${insideGlow(focused, color)}
107
+ }
108
+ ${insideGlow(on("[data-focus-style='glow']:focus-visible"), color)}
109
+ `);
110
+ }
111
+ // focus-style: glow, held within `within` of room: the halo's box starts after the offset and is pulled in by what its
112
+ // reach (the offset, then twice each width) lacks of the room — the glow above with room for it, insideGlow with none.
113
+ const heldGlow = (selector, within, color = SYSTEM_COLOR) => `
114
+ ${selector} {
115
+ outline-color: transparent;
116
+ }
117
+ ${selector}::after {
118
+ --_glow-inset: calc(max(0px, calc(var(--tanrei-sys-focus-offset) + (var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2 - (${within}))) - var(--tanrei-sys-focus-offset));
119
+ inset: var(--_glow-inset);
120
+ border: 0;
121
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_glow-inset)));
122
+ box-shadow:
123
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
124
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) ${color};
125
+ }`;
126
+ // The ring held within `within` of room: `--_focus-pull` is what the ring's reach (the offset and both strokes) lacks
127
+ // of the room, and every edge is drawn that much further in.
128
+ function heldRing(on, within, color) {
129
+ const focused = on(':focus-visible');
130
+ return unsafeCSS(`
131
+ ${focused} {
132
+ --_focus-pull: max(0px, calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width) - (${within})));
133
+ --_focus-inner-edge: calc(var(--tanrei-sys-focus-offset) + var(--tanrei-sys-focus-inner-width) - var(--_focus-pull));
134
+ outline: var(--tanrei-sys-focus-outer-width) solid ${color};
135
+ outline-offset: var(--_focus-inner-edge);
136
+ }
137
+ ${focused}::after {
138
+ content: '';
139
+ position: absolute;
140
+ inset: calc(var(--_focus-inner-edge) * -1);
141
+ border: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
142
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) + var(--_focus-inner-edge)));
143
+ pointer-events: none;
144
+ }
145
+
146
+ @container style(${BEHAVIOR}-focus-style: glow) {${heldGlow(focused, within, color)}
147
+ }
148
+ ${heldGlow(on("[data-focus-style='glow']:focus-visible"), within, color)}
149
+ `);
150
+ }
151
+ /**
152
+ * The glow alone, for a control whose focus indicator is its own edge (a text field, TXF-7): it draws no ring
153
+ * — its focused tokens show focus — but where `sys.behavior.focus-style` is glow it adds the same halo `focusRing()`
154
+ * draws, around the element `on()` names. Unlike the ring, the condition is the control's own (a field is focused by
155
+ * pointer too): `on(focus)` receives `:focus-visible` or `[data-focus-style='glow']:focus-visible` and maps it to its own
156
+ * condition. The indicator element must be a positioning container carrying the shape, and leave its `::after` to it.
157
+ */
158
+ export function focusGlow(on) {
159
+ const halo = (selector) => `
160
+ ${selector}::after {
161
+ content: '';
162
+ position: absolute;
163
+ pointer-events: none;
164
+ }${glow(selector)}`;
165
+ return unsafeCSS(`
166
+ @container style(${BEHAVIOR}-focus-style: glow) {${halo(on(':focus-visible'))}
167
+ }
168
+ ${halo(on("[data-focus-style='glow']:focus-visible"))}
169
+ `);
170
+ }
171
+ /**
172
+ * For a box whose block-end corners have a radius of their own (a filled input box: `container.shape-bottom`, where
173
+ * its top corners take `container.shape`): the halo `focusGlow()` draws follows those two corners too. `on` is as
174
+ * `focusGlow()`'s, naming the box in that condition alone; `radius` is the corners' radius as the box writes it, a
175
+ * length expression. Written after `focusGlow()` in the stylesheet.
176
+ */
177
+ export function focusGlowEnds(on, radius) {
178
+ const ends = (selector) => `
179
+ ${selector}::after {
180
+ border-end-start-radius: calc(${radius} * var(--_corner-scale) + var(--tanrei-sys-focus-offset));
181
+ border-end-end-radius: calc(${radius} * var(--_corner-scale) + var(--tanrei-sys-focus-offset));
182
+ }`;
183
+ return unsafeCSS(`
184
+ @container style(${BEHAVIOR}-focus-style: glow) {${ends(on(':focus-visible'))}
185
+ }
186
+ ${ends(on("[data-focus-style='glow']:focus-visible"))}
187
+ `);
188
+ }
189
+ /**
190
+ * The glow alone, as `focusGlow()` draws it, for a box that HOLDS other components — the container of a composed
191
+ * element, whose stylesheet writes no custom property (W3; `heldShape()` in src/styles/shape.ts): the
192
+ * halo is the box's `::after`, at the radius the caller gives — the box's own, as a CSS length expression for each of
193
+ * the two cases `heldShape()` has — and nothing of it is a custom property. `on(focus)` is as `focusGlow()`'s.
194
+ */
195
+ export function heldFocusGlow(on, radius) {
196
+ const halo = (selector) => `
197
+ ${selector} {
198
+ outline-color: transparent;
199
+ }
200
+ ${selector}::after {
201
+ content: '';
202
+ position: absolute;
203
+ pointer-events: none;
204
+ inset: calc(var(--tanrei-sys-focus-offset) * -1);
205
+ border: 0;
206
+ border-radius: calc(${radius.plain} + var(--tanrei-sys-focus-offset));
207
+ box-shadow:
208
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
209
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) ${SYSTEM_COLOR};
210
+ }
211
+ @supports (corner-shape: superellipse(log(2, 2))) {
212
+ ${selector}::after {
213
+ border-radius: calc(${radius.eased} + var(--tanrei-sys-focus-offset));
214
+ }
215
+ }`;
216
+ return unsafeCSS(`
217
+ @container style(${BEHAVIOR}-focus-style: glow) {${halo(on(':focus-visible'))}
218
+ }
219
+ ${halo(on("[data-focus-style='glow']:focus-visible"))}
220
+ `);
221
+ }
222
+ /**
223
+ * BTN-10: where style queries are missing, the focus style is read when focus arrives. Call it from the focused
224
+ * element's `focus` listener; it writes `data-focus-style` on `target` (the element `on()` names the condition of).
225
+ */
226
+ export function syncFocusStyle(host, target) {
227
+ if (target)
228
+ target.dataset.focusStyle = choice(host, 'focus-style');
229
+ }
230
+ //# sourceMappingURL=focus-ring.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-ring.js","sourceRoot":"","sources":["../../src/primitives/focus-ring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AASjD,4FAA4F;AAC5F,MAAM,YAAY,GAAG,oCAAoC,CAAC;AAe1D,uFAAuF;AACvF,MAAM,IAAI,GAAG,CAAC,QAAgB,EAAE,KAAK,GAAG,YAAY,EAAE,EAAE,CAAC;IACrD,QAAQ;;;;IAIR,QAAQ;;;;;;;;gIAQoH,KAAK;IACjI,CAAC;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,UAAU,SAAS,CAAC,EAAiB,EAAE,EAAE,MAAM,GAAG,KAAK,EAAE,MAAM,EAAE,KAAK,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