@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,298 @@
1
+ import { LitElement, html, nothing } from 'lit';
2
+ import { AvailabilityController, OpenAxesController, report } from '../../primitives/index.js';
3
+ import { AXES, DEFAULT_SPACING, styles } from './tag-group.styles.js';
4
+ /** The members a tag group is for (TGR-11). */
5
+ const MEMBERS = ['tanrei-tag', 'tanrei-chip'];
6
+ /** The member that takes input (TGR-4). */
7
+ const CHIP = 'tanrei-chip';
8
+ /** Native elements that say nothing of their own: one of them, like a custom element, can be made an item of the list (TGR-7). */
9
+ const GENERIC = ['div', 'span'];
10
+ const ITEM_ROLE = 'listitem';
11
+ const isText = (node) => node.nodeType === Node.TEXT_NODE;
12
+ /** What the group holds: its element children, and text that is more than the white space between them. */
13
+ const isContent = (node) => node.nodeType === Node.ELEMENT_NODE || (isText(node) && node.data.trim() !== '');
14
+ const sameOrder = (a, b) => a.length === b.length && a.every((node, i) => node === b[i]);
15
+ /**
16
+ * Whether the group may give this member the list item role: it has no `role` of its own, and it is an element that
17
+ * says nothing by itself — a custom element (a tag, a chip: their semantics are inside their shadow roots) or a `div`
18
+ * or `span`. A native link, button or heading keeps what it is; the role would take it away.
19
+ */
20
+ const takesItemRole = (member) => !member.hasAttribute('role') && (member.localName.includes('-') || GENERIC.includes(member.localName));
21
+ /** Whether focus is on `member` or inside it, its shadow root included: what its own tree calls the active element. */
22
+ function holdsFocus(member) {
23
+ const active = member.getRootNode().activeElement;
24
+ return !!active && member.contains(active);
25
+ }
26
+ /**
27
+ * Lays out a set of tags or chips in lines that wrap, spaced for what it holds, and exposes the set as one named list.
28
+ *
29
+ * Contract: specs/tag-group.spec.json. It reads four tokens (`--tanrei-comp-tag-group-gap-*` and `-row-gap-*`, one pair
30
+ * per `spacing`) and draws nothing of its own: no container, no fill, no edge, no padding, and not its `label`. Its
31
+ * members are `<tanrei-tag>` and `<tanrei-chip>` children, which stay in your DOM where you wrote them, drawn from
32
+ * their own tokens at their own size, with their own states, events, names and Tab stops (TGR-6). The group takes no
33
+ * focus, handles no key, keeps no selection, does not make filter chips exclusive and fires no event.
34
+ *
35
+ * It is a list (TGR-7): the shadow root holds one element with the list role, named by `label`, around the slot, and
36
+ * each member is given `role="listitem"` while it is in the group — the attribute is written on your element where it
37
+ * has no `role` of its own, and taken back when it leaves. A chip's button or link, with its state, is inside its item.
38
+ *
39
+ * `spacing` says what the set holds. Lines of tags stand as close as the tags along a line; lines of chips stand far
40
+ * enough apart that each chip keeps its whole touch target, and a chip in a group ends its hit area at the middle of
41
+ * the gap to its neighbour — along a line, and between two lines while the set wraps (TGR-5). A set of chips wants
42
+ * `spacing="chips"`.
43
+ *
44
+ * When a member leaves while focus is on it — on a chip or on its remove action — focus goes to the chip that followed
45
+ * it, or to the one before where none follows (TGR-9). The group removes nothing itself: on a chip's `remove` you take
46
+ * the element out. When the last member that takes focus has gone the group has nowhere to put it; move it yourself to
47
+ * the control the set belongs to. A group with no member draws nothing, takes no space and exposes nothing (TGR-8).
48
+ *
49
+ * It supplies no words: the name of the set is yours, in `label`.
50
+ *
51
+ * @tag tanrei-tag-group
52
+ * @slot - The members: `<tanrei-tag>` and `<tanrei-chip>` elements. Anything else is still laid out, and reported in debug builds (TGR-11).
53
+ */
54
+ export class TanreiTagGroup extends LitElement {
55
+ constructor() {
56
+ super(...arguments);
57
+ this.availability = new AvailabilityController(this, 'tag-group');
58
+ /**
59
+ * What the set holds, which decides the distances between its members: `tags` for static tags, as close as words of
60
+ * one group; `chips` for chips, with lines far enough apart that each chip keeps its whole touch target. A design
61
+ * system may add values; one the active system does not have is drawn as `tags` (reported in debug builds, TGR-16).
62
+ */
63
+ this.spacing = DEFAULT_SPACING;
64
+ /**
65
+ * The accessible name of the set ("Tags", "Filters"), in your words. It is not drawn: a set that needs a visible name
66
+ * stands under your own heading or text, and still takes this. Empty, the list is exposed without a name.
67
+ */
68
+ this.label = '';
69
+ /** TGR-8: whether the group holds nothing. */
70
+ this.empty = true;
71
+ /** TGR-16: a spacing a design system adds, and one the active system does not have (src/primitives/axes.ts). */
72
+ this.axes = new OpenAxesController(this, { component: 'tag-group', behavior: 'TGR-16', axes: AXES });
73
+ /** TGR-8: the custom state the styles read to take an empty group out of the layout. */
74
+ this.internals = typeof this.attachInternals === 'function' ? this.attachInternals() : null;
75
+ /** What the group holds, in the order given (TGR-3). */
76
+ this.content = [];
77
+ /** TGR-7: the members the group gave the list item role, so that it takes back only what it gave. */
78
+ this.given = new Set();
79
+ /** TGR-9: the member focus is on or inside, as the last `focusin` said. */
80
+ this.focused = null;
81
+ /**
82
+ * TGR-10: a member that comes or goes is placed at once — the layout is the browser's, in the same frame; the group
83
+ * reads who is there, gives and takes back the item role, and (TGR-9) sees a member leave while focus was on it.
84
+ */
85
+ this.children$ = new MutationObserver((records) => {
86
+ const before = this.content;
87
+ this.read();
88
+ this.afterLeave(before, records);
89
+ });
90
+ /**
91
+ * TGR-5: whether the members stand on more than one line, read when the list's box changes — a set that wraps, or
92
+ * stops wrapping, changes its height — and kept as the custom state `wrapped`, which the styles read. Nothing is
93
+ * measured at rest.
94
+ */
95
+ this.lines$ = typeof ResizeObserver === 'function' ? new ResizeObserver(() => this.readLines()) : null;
96
+ this.observed = null;
97
+ /** TGR-9: which member has focus. The listeners are on the host: a member's events pass it, and the group handles none of them (TGR-6). */
98
+ this.onFocusIn = (event) => {
99
+ this.focused = this.memberOf(event.target);
100
+ };
101
+ /**
102
+ * TGR-9: focus that leaves a member which is still here has gone elsewhere, by the person's doing. An engine that
103
+ * says so while it removes the focused element says it of a member that is no longer here: that one is the
104
+ * observer's to follow, so it is kept.
105
+ */
106
+ this.onFocusOut = (event) => {
107
+ const member = this.memberOf(event.target);
108
+ if (!member)
109
+ return;
110
+ queueMicrotask(() => {
111
+ if (this.focused === member && member.parentNode === this && !holdsFocus(member))
112
+ this.focused = null;
113
+ });
114
+ };
115
+ }
116
+ static { this.styles = styles; }
117
+ static { this.properties = {
118
+ spacing: { type: String, reflect: true },
119
+ label: { type: String },
120
+ empty: { state: true },
121
+ }; }
122
+ /** TGR-5: the list is watched while it is rendered (an empty group has none) and the group is in the page. */
123
+ watchLines() {
124
+ const rendered = this.renderRoot?.querySelector('.list') ?? null;
125
+ if (rendered === this.observed)
126
+ return;
127
+ if (this.observed)
128
+ this.lines$?.unobserve(this.observed);
129
+ if (rendered)
130
+ this.lines$?.observe(rendered);
131
+ else
132
+ this.readLines();
133
+ this.observed = rendered;
134
+ }
135
+ readLines() {
136
+ const boxes = [...this.children].map((child) => child.getBoundingClientRect()).filter((box) => box.width > 0 || box.height > 0);
137
+ const first = boxes[0];
138
+ // More than one line: some member stands wholly below the first.
139
+ const wrapped = !!first && boxes.some((box) => box.top >= first.bottom);
140
+ try {
141
+ if (wrapped)
142
+ this.internals?.states.add('wrapped');
143
+ else
144
+ this.internals?.states.delete('wrapped');
145
+ }
146
+ catch {
147
+ // A browser without custom states: the distance between two lines is not handed on (tag-group.styles.ts).
148
+ }
149
+ }
150
+ connectedCallback() {
151
+ super.connectedCallback();
152
+ this.children$.observe(this, { childList: true });
153
+ this.addEventListener('focusin', this.onFocusIn);
154
+ this.addEventListener('focusout', this.onFocusOut);
155
+ // A group put back in the page — or upgraded after its members — reads them again.
156
+ this.read();
157
+ if (this.hasUpdated)
158
+ this.watchLines();
159
+ }
160
+ disconnectedCallback() {
161
+ super.disconnectedCallback();
162
+ this.children$.disconnect();
163
+ this.lines$?.disconnect();
164
+ this.observed = null;
165
+ this.removeEventListener('focusin', this.onFocusIn);
166
+ this.removeEventListener('focusout', this.onFocusOut);
167
+ this.focused = null;
168
+ }
169
+ /** The child of the group that `target` is, or is inside. */
170
+ memberOf(target) {
171
+ let node = target instanceof Node ? target : null;
172
+ while (node && node.parentNode !== this)
173
+ node = node.parentNode;
174
+ return node instanceof Element ? node : null;
175
+ }
176
+ /** TGR-3, TGR-7, TGR-8, TGR-10: who is in the group now. */
177
+ read() {
178
+ const content = [...this.childNodes].filter(isContent);
179
+ if (sameOrder(content, this.content) && this.hasUpdated)
180
+ return;
181
+ this.content = content;
182
+ const members = content.filter((node) => node.nodeType === Node.ELEMENT_NODE);
183
+ // TGR-7: each member is an item of the list while it is here; one that left is what it was.
184
+ for (const member of this.given) {
185
+ if (member.parentNode === this)
186
+ continue;
187
+ this.given.delete(member);
188
+ if (member.getAttribute('role') === ITEM_ROLE)
189
+ member.removeAttribute('role');
190
+ }
191
+ for (const member of members) {
192
+ if (this.given.has(member) || !takesItemRole(member))
193
+ continue;
194
+ member.setAttribute('role', ITEM_ROLE);
195
+ this.given.add(member);
196
+ }
197
+ // TGR-8: no member, no list, no space — at once, before the next frame.
198
+ this.empty = content.length === 0;
199
+ try {
200
+ if (this.empty)
201
+ this.internals?.states.add('empty');
202
+ else
203
+ this.internals?.states.delete('empty');
204
+ }
205
+ catch {
206
+ // A browser without custom states: the empty group is an empty block.
207
+ }
208
+ this.check(members);
209
+ }
210
+ /** TGR-4, TGR-11: what a debug build is told. The group renders either way. An empty group is told nothing (TGR-8). */
211
+ check(members = this.content.filter((node) => node.nodeType === Node.ELEMENT_NODE)) {
212
+ // TGR-4: lines of tags stand closer than a chip's touch target is high.
213
+ if (this.spacing === DEFAULT_SPACING && members.some((member) => member.localName === CHIP)) {
214
+ report(this, 'TGR-4', 'it holds a <tanrei-chip> while spacing is "tags"; a set of chips wants spacing="chips", whose lines stand far enough apart for each chip\'s touch target');
215
+ }
216
+ // TGR-11: anything else is laid out and exposed with the others.
217
+ for (const node of this.content) {
218
+ if (isText(node))
219
+ report(this, 'TGR-11', 'it holds text of its own, which is laid out as a member but cannot be an item of the list; put it in a <tanrei-tag>');
220
+ else if (!MEMBERS.includes(node.localName)) {
221
+ const name = node.localName;
222
+ const item = this.given.has(node) ? 'it is laid out and exposed as an item' : 'it is laid out, but keeps its own role and is not an item of the list — wrap it in a <span>';
223
+ report(this, 'TGR-11', `it holds <${name}>, which is not a <tanrei-tag> or a <tanrei-chip>; ${item}`);
224
+ }
225
+ }
226
+ }
227
+ /**
228
+ * TGR-9: a member left while focus was on it — on a chip or on its remove action — and focus is now nowhere: it goes
229
+ * on to the chip that followed, or to the one before where none follows; a member that takes no focus (a tag, a
230
+ * disabled chip) is passed. A member that was only moved inside the group keeps focus (TGR-10). Where the product
231
+ * has already put focus somewhere, or nothing here takes it, the group does nothing.
232
+ */
233
+ afterLeave(before, records) {
234
+ const held = this.focused;
235
+ if (!held || !records.some((record) => [...record.removedNodes].includes(held)))
236
+ return;
237
+ const active = this.ownerDocument.activeElement;
238
+ const nowhere = !active || active === this.ownerDocument.body || active === this.ownerDocument.documentElement;
239
+ if (!nowhere) {
240
+ if (!holdsFocus(held))
241
+ this.focused = null;
242
+ return;
243
+ }
244
+ if (held.parentNode === this) {
245
+ if (held instanceof HTMLElement)
246
+ this.focusFirst([held]);
247
+ return;
248
+ }
249
+ this.focused = null;
250
+ const here = (node) => node.parentNode === this;
251
+ const at = before.indexOf(held);
252
+ // The members that were its neighbours, the following ones first. A product that writes the whole set again leaves
253
+ // none of them: the member that now stands where it stood is the one that followed it.
254
+ const order = before.some(here) ? [...before.slice(at + 1), ...before.slice(0, at).reverse()] : [...this.content.slice(at), ...this.content.slice(0, at).reverse()];
255
+ const candidates = order.filter((node) => node instanceof HTMLElement && here(node));
256
+ if (this.focusFirst(candidates))
257
+ return;
258
+ // A chip that was written a moment ago has no button to focus until it has rendered.
259
+ const pending = candidates.map((candidate) => candidate.updateComplete).filter((promise) => !!promise);
260
+ if (!pending.length)
261
+ return;
262
+ void Promise.all(pending).then(() => {
263
+ const now = this.ownerDocument.activeElement;
264
+ if (this.isConnected && (!now || now === this.ownerDocument.body))
265
+ this.focusFirst(candidates.filter(here));
266
+ });
267
+ }
268
+ /**
269
+ * Focus on the first of `candidates` that takes it. A chip takes it on its own control — its button or its link,
270
+ * the first thing in it that can be focused — and never on its remove action, which comes after (CHP-23).
271
+ */
272
+ focusFirst(candidates) {
273
+ for (const candidate of candidates) {
274
+ candidate.focus();
275
+ if (holdsFocus(candidate)) {
276
+ this.focused = candidate;
277
+ return true;
278
+ }
279
+ }
280
+ return false;
281
+ }
282
+ updated(changed) {
283
+ this.watchLines();
284
+ // TGR-4: a set of chips under `tags` is reported when the spacing says so too, not only when a chip arrives.
285
+ if (changed.has('spacing'))
286
+ this.check();
287
+ }
288
+ render() {
289
+ // TGR-8: no member, nothing — no empty list and no name.
290
+ if (this.empty)
291
+ return nothing;
292
+ // TGR-7: one list, named by the label where there is one, around the members where they stand. The host has no role.
293
+ return html `<div class="list" role="list" aria-label=${this.label || nothing}><slot></slot></div>`;
294
+ }
295
+ }
296
+ if (!customElements.get('tanrei-tag-group'))
297
+ customElements.define('tanrei-tag-group', TanreiTagGroup);
298
+ //# sourceMappingURL=tag-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-group.js","sourceRoot":"","sources":["../../../src/components/tag-group/tag-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkD,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAE/F,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAKtE,+CAA+C;AAC/C,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;AAC9C,2CAA2C;AAC3C,MAAM,IAAI,GAAG,aAAa,CAAC;AAC3B,kIAAkI;AAClI,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAChC,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,MAAM,GAAG,CAAC,IAAU,EAAgB,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,CAAC;AAC9E,2GAA2G;AAC3G,MAAM,SAAS,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AACnH,MAAM,SAAS,GAAG,CAAC,CAAkB,EAAE,CAAkB,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3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YAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IAC3C,CAAC;IAEkB,MAAM;QACvB,yDAAyD;QACzD,IAAI,IAAI,CAAC,KAAK;YAAE,OAAO,OAAO,CAAC;QAC/B,qHAAqH;QACrH,OAAO,IAAI,CAAA,4CAA4C,IAAI,CAAC,KAAK,IAAI,OAAO,sBAAsB,CAAC;IACrG,CAAC;CACF;AAED,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,kBAAkB,CAAC;IAAE,cAAc,CAAC,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { OpenAxis } from '../../primitives/index.js';
2
+ export declare const PREFIX = "--tanrei-comp-tag-group";
3
+ /** The values of `spacing` every design system has. A layer may add more; those get their styles on demand. */
4
+ export declare const CORE_SPACINGS: readonly ['tags', 'chips'];
5
+ export declare const DEFAULT_SPACING = "tags";
6
+ /** The open axis (TGR-16): a spacing the active design system does not have is drawn as `tags` and reported. */
7
+ export declare const AXES: readonly OpenAxis[];
8
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,66 @@
1
+ import { css, unsafeCSS } from 'lit';
2
+ // Every value is a token (tokens/comp/tag-group.tokens.json): two distances for each spacing, and nothing else. The
3
+ // group draws nothing of its own (TGR-1) — no container, no fill, no edge, no padding, no label — and has no state, so
4
+ // there is no state rule, no focus indicator, no target and no motion here.
5
+ export const PREFIX = '--tanrei-comp-tag-group';
6
+ /** The values of `spacing` every design system has. A layer may add more; those get their styles on demand. */
7
+ export const CORE_SPACINGS = ['tags', 'chips'];
8
+ export const DEFAULT_SPACING = 'tags';
9
+ /**
10
+ * The members of the spacing axis (`dev.tanrei.axes.spacing.members`), and the private property each is read into. The
11
+ * names are the group's alone (`--_set-*`): custom properties inherit into the members' shadow roots, where `--_gap`
12
+ * is a member's own.
13
+ */
14
+ const SPACING_MEMBERS = { gap: '--_set-gap', 'row-gap': '--_set-row-gap' };
15
+ /**
16
+ * TGR-1, TGR-2, TGR-4: the two distances of what the set holds. A value a layer added falls back to the default's
17
+ * token where the active system lacks it (TGR-16).
18
+ */
19
+ const spacingBlock = (spacing, selector, fallback = null) => `${selector} {\n${Object.entries(SPACING_MEMBERS)
20
+ .map(([member, name]) => ` ${name}: ${fallback ? `var(${PREFIX}-${member}-${spacing}, var(${PREFIX}-${member}-${fallback}))` : `var(${PREFIX}-${member}-${spacing})`};`)
21
+ .join('\n')}\n}`;
22
+ /** The open axis (TGR-16): a spacing the active design system does not have is drawn as `tags` and reported. */
23
+ export const AXES = [
24
+ { name: 'spacing', core: CORE_SPACINGS, default: DEFAULT_SPACING, rules: (value, selector) => spacingBlock(value, selector, DEFAULT_SPACING), probe: (value) => `${PREFIX}-gap-${value}` },
25
+ ];
26
+ export const styles = css `
27
+ /* TGR-1: a block as wide as its layout gives it and as tall as its lines. Nothing is drawn on it. */
28
+ :host {
29
+ display: block;
30
+ }
31
+ :host([hidden]) {
32
+ display: none;
33
+ }
34
+ /* TGR-8: a group with no member takes no space — not a line, and not a gap of the layout around it. Its own rule: a
35
+ browser without custom states drops only this one, and the empty group is then an empty block, no height. */
36
+ :host(:state(empty)) {
37
+ display: none;
38
+ }
39
+ ${unsafeCSS(spacingBlock(DEFAULT_SPACING, ':host'))}
40
+ ${unsafeCSS(CORE_SPACINGS.filter((spacing) => spacing !== DEFAULT_SPACING).map((spacing) => spacingBlock(spacing, `:host([spacing='${spacing}'])`)).join('\n'))}
41
+
42
+ /* TGR-1: lines from the start edge, in the order given, each member at its own size and centred on its line's middle.
43
+ TGR-2: a member that does not fit goes whole to a new line — a wrapping line shrinks nothing that fits on a line of
44
+ its own — and only one that is wider than the group is given the group's width, where its own rule cuts its label
45
+ (TAG-5, CHP-17: both cap themselves at the width they are given). Nothing scrolls and nothing is hidden.
46
+ TGR-14, TGR-15: the row follows the direction of where the group stands, so a right-to-left layout starts every line
47
+ at the right; there is no setting and nothing to draw again. TGR-13: no color is used, forced or not. */
48
+ .list {
49
+ display: flex;
50
+ flex-wrap: wrap;
51
+ align-items: center;
52
+ column-gap: var(--_set-gap);
53
+ row-gap: var(--_set-row-gap);
54
+ /* TGR-5: the distance along a line is handed to the members, which inherit it: an internal contract between Tanrei
55
+ elements, not a styling API. A chip reads it to end its hit area half a gap past its visible edge, so that the
56
+ areas of two chips narrower than the target meet at the middle of the gap (chip.styles.ts). */
57
+ --tanrei-set-gap: var(--_set-gap);
58
+ }
59
+ /* TGR-5: the distance between two lines is handed on only while there are two lines — the custom state the element
60
+ sets when its members wrap — so that the chips of a set on one line keep their whole target above and below. A
61
+ browser without custom states hands nothing on, and the areas of two lines overlap as they would without a group. */
62
+ :host(:state(wrapped)) .list {
63
+ --tanrei-set-row-gap: var(--_set-row-gap);
64
+ }
65
+ `;
66
+ //# sourceMappingURL=tag-group.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-group.styles.js","sourceRoot":"","sources":["../../../src/components/tag-group/tag-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAGrC,oHAAoH;AACpH,uHAAuH;AACvH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,MAAM,GAAG,yBAAyB,CAAC;AAChD,+GAA+G;AAC/G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,OAAO,CAAU,CAAC;AACxD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC;AACtC;;;;GAIG;AACH,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAW,CAAC;AAEpF;;;GAGG;AACH,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,QAAgB,EAAE,QAAQ,GAAkB,IAAI,EAAE,EAAE,CACzF,GAAG,QAAQ,OAAO,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;KAC9C,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,MAAM,IAAI,MAAM,IAAI,OAAO,SAAS,MAAM,IAAI,MAAM,IAAI,QAAQ,IAAI,CAAC,CAAC,CAAC,OAAO,MAAM,IAAI,MAAM,IAAI,OAAO,GAAG,GAAG,CAAC;KACxK,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;AAErB,gHAAgH;AAChH,MAAM,CAAC,MAAM,IAAI,GAAwB;IACvC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,eAAe,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,MAAM,QAAQ,KAAK,EAAE,EAAE;CAC3L,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAarB,SAAS,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACjD,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,KAAK,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,mBAAmB,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAyBhK,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { type PropertyDeclarations } from 'lit';
2
+ import { ComposedControl, type ValueMember } from '../../primitives/composed.js';
3
+ import { type TanreiFieldRequiredMark, type TanreiFieldRequirement } from '../field/field.js';
4
+ import { type TanreiTextInputActionDetail, type TanreiTextInputEntryErrorDetail, type TanreiTextInputPickerRequestDetail, type TanreiTextInputResize, type TanreiTextInputResizeAxis, type TanreiTextInputSize, type TanreiTextInputType, type TanreiTextInputVariant } from '../text-input/text-input.js';
5
+ export type { TanreiFieldRequiredMark, TanreiFieldRequirement, TanreiTextInputActionDetail, TanreiTextInputEntryErrorDetail, TanreiTextInputPickerRequestDetail, TanreiTextInputResize, TanreiTextInputResizeAxis, TanreiTextInputSize, TanreiTextInputType, TanreiTextInputVariant, };
6
+ /**
7
+ * Lets people enter and edit text as one complete field. Built from a Field (`<tanrei-field>`) and the Text input
8
+ * (`<tanrei-text-input>`) it frames: the box under the Field's label — or, in the filled and the outlined look, with
9
+ * the label floating in it — with the Field's help, its error and the count, tied together for assistive technology
10
+ * and taking part in a form as one control.
11
+ *
12
+ * Contract: specs/text-field.spec.json. `<tanrei-text-field name="email" label="Email" type="email"
13
+ * autocomplete="email" requirement="required" supporting-text="We never share your address."></tanrei-text-field>`.
14
+ *
15
+ * Composed (`src/primitives/composed.ts`): its shadow root holds the two members' own elements and nothing
16
+ * else, so it draws nothing of its own and has no token — every `--tanrei-comp-field-*`,
17
+ * `--tanrei-comp-input-box-*` and `--tanrei-comp-text-input-*` value reaches the members by inheritance, and one text field is set apart by setting
18
+ * such a property on this element. Each property is its member's, set on that member unchanged: `label`,
19
+ * `label-hidden`, `supporting-text`, `error-text`, `error`, `disabled`, `requirement`, `required-mark`,
20
+ * `required-text` and `optional-text` are the Field's, every other one the text input's. One level down, the same by
21
+ * hand: `<tanrei-field label="Email" requirement="required" supporting-text="We never share your address.">
22
+ * <tanrei-text-input name="email" type="email" autocomplete="email"></tanrei-text-input></tanrei-field>` — and the box
23
+ * alone, where a label stands elsewhere, is `<tanrei-text-input>` with a `label` of its own.
24
+ *
25
+ * It is a block as wide as its place, and its box fills it (TXF-62): give it a narrower place for a narrower box.
26
+ *
27
+ * `value` is at every moment the text input's, and the five events are that input's own, with this element as their
28
+ * target: `event.target.value` is the new value in every listener. It dispatches none itself. The one thing it does
29
+ * that the pair by hand does not: while `counter` is set it gives its Field the count its text input keeps, at every
30
+ * change (TXF-67) — by hand a product writes `field.countText = input.countText` in its `input` listener.
31
+ *
32
+ * Form-associated: it submits the value under `name` — nothing while disabled —, resets to its `value` attribute, is
33
+ * restored on navigation, follows a disabled `<fieldset>`, and reports what its text input reports: a missing value
34
+ * while `requirement` is `required` and it is empty, and a date's or a time's entry error. Enter in a single-line
35
+ * field presses the default button of this element's form.
36
+ *
37
+ * The element is not focusable itself and has no role: `focus()` goes to the input, and its name is `label` (with
38
+ * `label-hidden` where it is not drawn), never `aria-label`. A press on the label row, on the box or on a floating
39
+ * label focuses the input; a press on the help, the error text, the count or the gap between a row and the box does
40
+ * nothing.
41
+ *
42
+ * @tag tanrei-text-field
43
+ * @slot label-icon - => tanrei-field
44
+ * @slot leading-icon - => tanrei-text-input
45
+ * @slot trailing-icon - => tanrei-text-input
46
+ * @csspart field - The frame: the `<tanrei-field>` it is built from.
47
+ * @csspart text-input - The control: the `<tanrei-text-input>` it is built from.
48
+ * @exportparts tanrei-field label: field-label, label, requirement-label: field-requirement-label, requirement-label, -value-text
49
+ * @exportparts tanrei-text-input label: text-input-label, label, requirement-label: text-input-requirement-label, requirement-label
50
+ * @attr {string} form - The id of the form the text field belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
51
+ * @fires input - => tanrei-text-input
52
+ * @fires change - => tanrei-text-input
53
+ * @fires action - => tanrei-text-input
54
+ * @fires pickerrequest - => tanrei-text-input
55
+ * @fires entryerror - => tanrei-text-input
56
+ */
57
+ export declare class TanreiTextField extends ComposedControl<string> {
58
+ /** TXF-63: the one control the form meets. Its members stand in its shadow root, outside every form. */
59
+ static formAssociated: boolean;
60
+ static styles: import("lit").CSSResult[];
61
+ /**
62
+ * Its parts, once: the two members and what each exports — a name both export, once.
63
+ *
64
+ * @internal
65
+ */
66
+ static readonly parts: readonly string[];
67
+ static properties: PropertyDeclarations;
68
+ /** @from tanrei-field.label */
69
+ label: string;
70
+ /** @from tanrei-field.labelHidden */
71
+ labelHidden: boolean;
72
+ /** @from tanrei-field.supportingText */
73
+ supportingText: string;
74
+ /** @from tanrei-field.errorText */
75
+ errorText: string;
76
+ /** @from tanrei-field.error */
77
+ error: boolean;
78
+ /** @from tanrei-field.disabled */
79
+ disabled: boolean;
80
+ /** @from tanrei-field.requirement */
81
+ requirement: TanreiFieldRequirement;
82
+ /** @from tanrei-field.requiredMark */
83
+ requiredMark: TanreiFieldRequiredMark;
84
+ /** @from tanrei-field.requiredText */
85
+ requiredText: string;
86
+ /** @from tanrei-field.optionalText */
87
+ optionalText: string;
88
+ /** @from tanrei-text-input.variant */
89
+ variant: TanreiTextInputVariant;
90
+ /** @from tanrei-text-input.size */
91
+ size: TanreiTextInputSize;
92
+ /** @from tanrei-text-input.type */
93
+ type: TanreiTextInputType;
94
+ /** @from tanrei-text-input.value */
95
+ get value(): string;
96
+ set value(value: string);
97
+ /** @from tanrei-text-input.placeholder */
98
+ placeholder: string;
99
+ /** @from tanrei-text-input.readOnly */
100
+ readOnly: boolean;
101
+ /** @from tanrei-text-input.multiline */
102
+ multiline: boolean;
103
+ /** @from tanrei-text-input.minRows */
104
+ minRows: number;
105
+ /** @from tanrei-text-input.maxRows */
106
+ maxRows: number;
107
+ /** @from tanrei-text-input.resize */
108
+ resize: TanreiTextInputResize;
109
+ /** @from tanrei-text-input.resizeAxis */
110
+ resizeAxis: TanreiTextInputResizeAxis;
111
+ /** @from tanrei-text-input.resizeLabel */
112
+ resizeLabel: string;
113
+ /** @from tanrei-text-input.noWrap */
114
+ noWrap: boolean;
115
+ /** @from tanrei-text-input.maxLength */
116
+ maxLength: number;
117
+ /** @from tanrei-text-input.counter */
118
+ counter: boolean;
119
+ /** @from tanrei-text-input.prefixText */
120
+ prefixText: string;
121
+ /** @from tanrei-text-input.suffixText */
122
+ suffixText: string;
123
+ /** @from tanrei-text-input.autocomplete */
124
+ autocomplete: string;
125
+ /** @from tanrei-text-input.locale */
126
+ locale: string;
127
+ /** @from tanrei-text-input.min */
128
+ min: string;
129
+ /** @from tanrei-text-input.max */
130
+ max: string;
131
+ /** @from tanrei-text-input.disabledDates */
132
+ disabledDates: string[];
133
+ /** @from tanrei-text-input.invalidText */
134
+ invalidText: string;
135
+ /** @from tanrei-text-input.unavailableText */
136
+ unavailableText: string;
137
+ /** @from tanrei-text-input.segmentEmptyText */
138
+ segmentEmptyText: string;
139
+ /** @from tanrei-text-input.picker */
140
+ picker: boolean;
141
+ /** @from tanrei-text-input.pickerLabel */
142
+ pickerLabel: string;
143
+ protected readonly hostNameSentence = "TXF-62";
144
+ protected get valueMember(): ValueMember<string> | null;
145
+ /** Selects the whole value, as the text input's `select()` does: a date or a time field's first segment takes focus. */
146
+ select(): void;
147
+ /**
148
+ * TXF-67 (`fills`: `field.countText`): the Field is given the count its text input keeps, as the input writes it,
149
+ * after each of the input's updates — empty while `counter` is not set. Nothing is counted, formatted or written
150
+ * here.
151
+ */
152
+ protected memberUpdated(): void;
153
+ protected render(): import("lit").TemplateResult<1>;
154
+ }
155
+ declare global {
156
+ interface HTMLElementTagNameMap {
157
+ 'tanrei-text-field': TanreiTextField;
158
+ }
159
+ }