@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,399 @@
1
+ import { LitElement, html, nothing } from 'lit';
2
+ import { ifDefined } from 'lit/directives/if-defined.js';
3
+ import { AvailabilityController, FieldControlController, FieldProviderController, GlyphMirrorController, SystemWatchController, WordsController, compChoice, composedContains, namesItself, report } from '../../primitives/index.js';
4
+ import { SYSTEM_MARKS, frameAnnounce, frameAnnouncer, frameErrorText, frameLabelIcon, frameLabelRow, frameLabelled, frameMark, frameOptionalText, frameRequirement, frameText, frameWithWords, reportFrame, syncFrameMark, } from '../../primitives/field-frame.js';
5
+ import { ownDirection } from '../../styles/product-text.js';
6
+ import { PREFIX, styles } from './field.styles.js';
7
+ /** FLD-21: a run of the value text that is isolated already (a first-strong isolate: one of a range's two values) has its own direction and gives the whole text none. */
8
+ const ISOLATED = /\u2068[^\u2069]*\u2069/g;
9
+ /**
10
+ * FLD-1: the fields whose control's display is read in this turn, read together — after every field of the turn has
11
+ * drawn, one after the other with no write between them: one style pass for a page of fields, where a field that read
12
+ * in its own update would cost one each.
13
+ */
14
+ const toFlow = new Set();
15
+ function flowTogether(field) {
16
+ if (!toFlow.size) {
17
+ queueMicrotask(() => {
18
+ const fields = [...toFlow];
19
+ toFlow.clear();
20
+ for (const each of fields)
21
+ if (each.isConnected)
22
+ each.flow();
23
+ });
24
+ }
25
+ toFlow.add(field);
26
+ }
27
+ /** What a control that takes only the field's `disabled` is given. */
28
+ const ONLY_DISABLED = (disabled) => ({ label: '', description: '', invalid: false, required: false, requiredText: '', disabled });
29
+ /**
30
+ * Frames one control with what a form gives every field: a label above it that can say the control is required or
31
+ * optional, a line of help, and the reason a value was refused, each tied to the control for assistive technology. It
32
+ * is a frame, never a control.
33
+ *
34
+ * Contract: specs/field.spec.json. `<tanrei-field label="Volume"><tanrei-slider></tanrei-slider></tanrei-field>`: the
35
+ * control is the one element in the default slot. It stays in the product's light DOM, so it keeps its place in a
36
+ * `<form>`, its `name` and `value`, its events and its styles; the field is not form-associated, holds no value and
37
+ * emits no event. Every visual value is a `--tanrei-comp-field-*` token.
38
+ *
39
+ * The label names the control; the help describes it, with the error text after it while the field is in error and
40
+ * `optional-text` after that while the control is optional. They are given as values, because an id cannot be referenced across a shadow root: a Tanrei
41
+ * control asks for them (the composed `tanrei-field-connect` event; `src/primitives/field.ts`) and writes them on the
42
+ * element that carries its semantics, its own `label` winning; any other element receives `aria-label` (only where it
43
+ * has no name of its own), `aria-description`, `aria-invalid`, `aria-required` and, where it has the property,
44
+ * `disabled`. The field takes back exactly what it gave when the element leaves the slot.
45
+ *
46
+ * `requirement="required"` exposes the control as required and draws the required mark beside the label — a small
47
+ * filled tag, an asterisk or nothing, as the design system or `required-mark` says; `requirement="optional"` draws the
48
+ * optional tag. Neither validates: `error` is the product's to set, and `error-text` says what is wrong in words. The
49
+ * help stays while the field is in error and the error text is drawn below it, so the field is taller by that text
50
+ * while it is in error; a field without help has its error text where the help would be. An error that appears while
51
+ * focus is inside the field is announced once, politely — the error text alone, never the help again.
52
+ *
53
+ * A press on the label moves focus to the control and never operates it; a press on the help, the error or the count
54
+ * does nothing. A control that names itself (a checkbox with its own label) takes a field with an empty `label`, which
55
+ * then adds help and an error only. A control that is a field already — a composed field such as
56
+ * `<tanrei-text-field>`, which is this element around `<tanrei-text-input>`, or anything with a `supportingText` of its
57
+ * own — needs no field.
58
+ *
59
+ * A control may say of itself what only it knows, through the same connection (`src/primitives/field.ts`): that it
60
+ * draws the label itself, floating in its own box — the field then draws no label row and gives the control the name,
61
+ * whether it is hidden, and an asterisk or none for a required one (FLD-25); how far its content is inset — the
62
+ * supporting row starts and ends there (FLD-26); and that it refused what was entered, with its words — the field is
63
+ * then in its error condition and shows them as its error text, below the help (FLD-28); and that it is drawn focused though focus is elsewhere — a
64
+ * combobox or a select for as long as its list is open — so that the field's rows are drawn focused with it (FLD-13).
65
+ * `count-text` is a count about the control's value as it is to
66
+ * be drawn ("12/40"), at the end of the supporting row: the field draws it, never counts, and keeps it from assistive
67
+ * technology, which hears the count from the control (FLD-27). `value-text` is the control's present value in words
68
+ * ("40 %"), at the end of the label row, for a control whose value cannot be read from the control itself (a slider):
69
+ * the field draws it, never reads or formats a value, and keeps it from assistive technology, which hears the value
70
+ * from the control (FLD-29, FLD-30).
71
+ *
72
+ * @tag tanrei-field
73
+ * @slot - The one control the field frames.
74
+ * @slot label-icon - A glyph of the icon set before the label; decorative. A glyph the icon set flags is mirrored in right-to-left; `data-mirror="auto | always | never"` on the element decides for one use.
75
+ * @csspart label - The label above the control.
76
+ * @csspart label-icon - The box of the label's glyph.
77
+ * @csspart requirement-label - The required or optional tag after the label, or the required asterisk.
78
+ * @csspart value-text - The control's value in words the field is given (`value-text`), at the end of the label row.
79
+ * @csspart supporting-text - The help below the control; it stays while the field is in error.
80
+ * @csspart error-text - The error text, below the help or, where the field has no help, directly below the control; there only while the field is in error and has words for it.
81
+ * @csspart counter - The count the field is given (`count-text`), at the end of the supporting row's first line.
82
+ */
83
+ export class TanreiField extends LitElement {
84
+ static { this.styles = styles; }
85
+ /**
86
+ * Its documented parts, once: what an element composed around it exports (src/primitives/composed.ts). Held equal to
87
+ * the `@csspart` lines above by src/primitives/composed.test.ts.
88
+ *
89
+ * @internal
90
+ */
91
+ static { this.parts = ['label', 'label-icon', 'requirement-label', 'value-text', 'supporting-text', 'error-text', 'counter']; }
92
+ static { this.properties = {
93
+ label: { type: String },
94
+ labelHidden: { type: Boolean, attribute: 'label-hidden', reflect: true },
95
+ supportingText: { type: String, attribute: 'supporting-text' },
96
+ errorText: { type: String, attribute: 'error-text' },
97
+ error: { type: Boolean, reflect: true },
98
+ disabled: { type: Boolean, reflect: true },
99
+ requirement: { type: String, reflect: true },
100
+ requiredMark: { type: String, attribute: 'required-mark', reflect: true },
101
+ requiredText: { type: String, attribute: 'required-text' },
102
+ optionalText: { type: String, attribute: 'optional-text' },
103
+ countText: { type: String, attribute: 'count-text' },
104
+ valueText: { type: String, attribute: 'value-text' },
105
+ hasLabelIcon: { state: true },
106
+ focused: { state: true },
107
+ inline: { state: true },
108
+ }; }
109
+ constructor() {
110
+ super();
111
+ this.availability = new AvailabilityController(this, 'field');
112
+ /** Names the control, visibly and to assistive technology. Required, unless the control names itself (a checkbox or a switch with its own label): then leave it empty and the field adds only help and an error. */
113
+ this.label = '';
114
+ /** Does not draw the label, which stays the accessible name (`label-hidden`). For a control whose visible label is elsewhere. */
115
+ this.labelHidden = false;
116
+ /** Help shown below the control and given to assistive technology as the control's description (`supporting-text`). It stays while `error` is true. */
117
+ this.supportingText = '';
118
+ /** Shown below `supportingText`, which stays, while `error` is true: what is wrong with this answer and how to put it right, in words (`error-text`). It need not repeat the help. */
119
+ this.errorText = '';
120
+ /** Puts the field in the error condition: the error text is drawn, the control is exposed as invalid and, where it has an error condition of its own, drawn in it. The field never sets this itself. */
121
+ this.error = false;
122
+ /** Disables the control and draws the frame as disabled. Disable a framed control here, not on the control, so that its label follows. */
123
+ this.disabled = false;
124
+ /** What the form asks of the control: `required` exposes it as required and draws the required mark; `optional` draws the optional tag; `none` says and draws nothing. It never validates. */
125
+ this.requirement = 'none';
126
+ /** How this control shows that it is required (`required-mark`): `tag` is a small filled tag with `requiredText`, `asterisk` is "*" after the label, `none` draws nothing and keeps the semantics; `auto` takes the design system's answer (`--tanrei-comp-field-requirement-mark`, which follows `--tanrei-sys-behavior-requirement-mark`). */
127
+ this.requiredMark = 'auto';
128
+ /** The text of the required tag (`required-text`): this instance's words, else the product's (`setWords({ requiredText })`). Tanrei has none: without them the asterisk is drawn in the tag's place and the required state is kept. */
129
+ this.requiredText = '';
130
+ /** The text of the optional tag, also part of the description (`optional-text`): this instance's words, else the product's (`setWords({ optionalText })`). Tanrei has none: without them no tag is drawn and nothing is said. */
131
+ this.optionalText = '';
132
+ /** A count about the control's value, as it is to be drawn ("12/40"), at the end of the supporting row's first line (`count-text`). For a control that keeps a count (a text input whose `counter` is set): the product's to write from the control's own count, or the composed element's that holds the field. Kept from assistive technology, because the control says its own count. */
133
+ this.countText = '';
134
+ /** The control's present value in words ("40 %", "$100 – $300"), drawn at the end of the label row (`value-text`). For a control whose value cannot be read from the control itself (a slider): the product's to write from the control's own value at each `input`, or the composed element's that holds the field. Not drawn while the label is not. Kept from assistive technology, because the control says its own value. */
135
+ this.valueText = '';
136
+ /** Whether the label-icon slot has content. */
137
+ this.hasLabelIcon = false;
138
+ /** FLD-13: focus is inside the field. */
139
+ this.focused = false;
140
+ /** FLD-1: the control is an inline-level box, with a size of its own. */
141
+ this.inline = false;
142
+ /** The field has been drawn once. */
143
+ this.drawn = false;
144
+ /** FLD-28: the words of the refusal last shown (null: none), so that a new one is announced once. */
145
+ this.refused = null;
146
+ /** FLD-25: the design system's required mark is read by script for a control that draws the label itself; read again when the system is switched. */
147
+ this.system = new SystemWatchController(this);
148
+ /** FLD-20: the glyph in the label-icon slot is marked when the icon set mirrors it in right-to-left (src/primitives/glyph-mirror.ts). */
149
+ this.mirror = new GlyphMirrorController(this, { slots: 'slot[name="label-icon"]' });
150
+ /** A field inside a field group follows the group's `disabled`, and takes nothing else from it (FGR-20). */
151
+ this.outer = new FieldControlController(this, { takes: 'disabled', framed: true, named: () => true });
152
+ /** FLD-8, FLD-10, FLD-11, FLD-14, FLD-23: what the field gives its control, and takes back (src/primitives/field.ts). */
153
+ this.provider = new FieldProviderController(this, {
154
+ controls: () => this.controls,
155
+ state: (connection, index) => (connection.takes === 'disabled' || index !== 0 ? ONLY_DISABLED(this.isDisabled) : this.given),
156
+ plain: (element, index) => (index !== 0 || 'supportingText' in element ? { disabled: this.isDisabled } : this.given),
157
+ });
158
+ /** FLD-24: the product's words, read where the instance gives none (src/primitives/words.ts). */
159
+ this.words = new WordsController(this);
160
+ // FLD-13: focus inside the field, however it was gained, selects the focused tokens.
161
+ this.addEventListener('focusin', () => (this.focused = true));
162
+ this.addEventListener('focusout', (event) => (this.focused = composedContains(this, event.relatedTarget)));
163
+ }
164
+ /** FLD-24: the frame's props with requiredText and optionalText read: the prop, else the product's words. */
165
+ get framed() {
166
+ return frameWithWords(this, this.words);
167
+ }
168
+ /** Disabled by its own `disabled` or by a field group around it. */
169
+ get isDisabled() {
170
+ return this.disabled || this.outer.disabled;
171
+ }
172
+ /** The elements in the default slot, in the order given. The first is the control (FLD-15). */
173
+ get controls() {
174
+ const slot = this.renderRoot?.querySelector('slot:not([name])');
175
+ return slot ? slot.assignedElements({ flatten: true }) : [...this.children].filter((child) => !child.slot);
176
+ }
177
+ /** FLD-25, FLD-26, FLD-28: what the control says of itself now; nothing for a control that says nothing. */
178
+ get said() {
179
+ return this.provider.says(this.controls[0]);
180
+ }
181
+ /** FLD-8, FLD-28: the error condition — `error`, or the control's own refusal of an entry while it lasts. */
182
+ inError(said) {
183
+ return this.error || !!said.refusal;
184
+ }
185
+ /**
186
+ * FLD-31, FLD-28: the error text the supporting row shows below the help, which stays — a refusal's own words,
187
+ * `errorText` while it has none; `errorText` while `error` is true; nothing while the field is not in error, or is in
188
+ * error without words.
189
+ */
190
+ shownError(said) {
191
+ return said.refusal ? said.refusal.text || this.errorText : frameErrorText(this);
192
+ }
193
+ /**
194
+ * FLD-25: the required mark a control that draws the label itself is given: an asterisk while the control is required
195
+ * and the mark FLD-6 names — this field's own, else the design system's — is the tag or the asterisk; none otherwise.
196
+ * The cascade is read only for such a control, required, under `requiredMark: auto`.
197
+ */
198
+ givenMark(said) {
199
+ if (!said.drawsLabel)
200
+ return 'none';
201
+ const mark = frameMark({ label: this.label, labelHidden: this.labelHidden, requirement: this.requirement, requiredMark: this.requiredMark });
202
+ const named = mark === 'auto' ? compChoice(this, `${PREFIX}-requirement-mark`, SYSTEM_MARKS) : mark;
203
+ return named === 'none' ? 'none' : 'asterisk';
204
+ }
205
+ /** FLD-10, FLD-11, FLD-8, FLD-14, FLD-25: the name, the description and the states the control is given, and how it draws the label where it draws it. */
206
+ get given() {
207
+ const framed = this.framed;
208
+ const said = this.said;
209
+ return {
210
+ label: this.label,
211
+ // FLD-11: the help, then the error text, then the optional text — the order in which a field group describes its set.
212
+ description: [this.supportingText, this.shownError(said), frameOptionalText(framed)].filter(Boolean).join(' '),
213
+ invalid: this.inError(said),
214
+ required: frameRequirement(this) === 'required',
215
+ requiredText: framed.requiredText,
216
+ disabled: this.isDisabled,
217
+ labelHidden: this.labelHidden,
218
+ requiredMark: this.givenMark(said),
219
+ };
220
+ }
221
+ /**
222
+ * FLD-12: a press on the label, the label glyph or the requirement mark moves focus to the control and does nothing
223
+ * else — it does not activate, switch or change it. Not while disabled (FLD-14).
224
+ */
225
+ onLabelPress(event) {
226
+ if (event.button !== 0 || this.isDisabled)
227
+ return;
228
+ const control = this.controls[0];
229
+ // The press must not take the focus it has just given (or select the label's text).
230
+ event.preventDefault();
231
+ control?.focus?.();
232
+ }
233
+ onLabelIconSlotChange(event) {
234
+ this.hasLabelIcon = event.target.assignedNodes({ flatten: true }).some((node) => node.nodeType === Node.ELEMENT_NODE || !!node.textContent?.trim());
235
+ }
236
+ /** FLD-23: the control was replaced, or came, or left. */
237
+ onSlotChange() {
238
+ this.flow();
239
+ this.requestUpdate();
240
+ }
241
+ /**
242
+ * FLD-1: whether the control is an inline-level box. Its computed display says so only while it stands in a block's
243
+ * flow, so the column is undone for the reading.
244
+ */
245
+ /** @internal */
246
+ flow() {
247
+ const box = this.renderRoot.querySelector('.control');
248
+ const first = this.controls[0];
249
+ if (!box)
250
+ return;
251
+ // (Nothing is written where the column is not set: a page of fields then reads without a write between two.)
252
+ const was = box.hasAttribute('data-inline');
253
+ if (was)
254
+ box.removeAttribute('data-inline');
255
+ const inline = !!first && getComputedStyle(first).display.startsWith('inline');
256
+ if (was)
257
+ box.setAttribute('data-inline', '');
258
+ this.inline = inline;
259
+ }
260
+ willUpdate(changed) {
261
+ // The first render already draws the glyph's room: the light-DOM children are there before the slot says so.
262
+ if (!this.hasUpdated)
263
+ this.hasLabelIcon = [...this.children].some((child) => child.slot === 'label-icon');
264
+ if (changed.has('disabled') && this.isDisabled)
265
+ this.focused = false;
266
+ }
267
+ updated(changed) {
268
+ // FLD-6: the design system's required mark, for a browser without style queries.
269
+ syncFrameMark(this, this.renderRoot, PREFIX);
270
+ // FLD-11, FLD-23: the control is told at once; one that left gets back what it had.
271
+ this.provider.sync();
272
+ // FLD-1: the first reading, and a control that was defined, or asked, after the field rendered (an update no
273
+ // property caused).
274
+ if (changed.size === 0 || !this.drawn)
275
+ flowTogether(this);
276
+ // FLD-9: an error that appears, or changes its words, while focus is inside the field is announced once, politely —
277
+ // the error text alone: the help has not changed and is not said again.
278
+ // (Never what the field was first drawn with: that is read with the control.)
279
+ // FLD-28: and so is the control's own refusal of an entry, when it begins or changes its words.
280
+ const said = this.said;
281
+ const refused = said.refusal ? this.shownError(said) : null;
282
+ const refusedAnew = refused !== null && refused !== this.refused;
283
+ this.refused = refused;
284
+ // (Focus is asked of the document too: a control that refuses an entry as focus leaves it says so before the
285
+ // field has heard that focus left.)
286
+ if (this.drawn && this.inError(said) && this.focused && this.matches(':focus-within') && (changed.has('error') || changed.has('errorText') || refusedAnew))
287
+ frameAnnounce(this.renderRoot, this.shownError(said));
288
+ this.drawn = true;
289
+ this.reports(changed);
290
+ }
291
+ /** What a debug build tells the developer; the field still renders. */
292
+ reports(changed) {
293
+ const said = this.said;
294
+ const floats = !!said.drawsLabel;
295
+ // FLD-24: the required word is needed only where the tag would be drawn — not beside a label the control draws.
296
+ reportFrame(this, this.framed, changed, { unknown: 'FLD-22', words: 'FLD-24' }, this.words, { prefix: PREFIX, row: !floats });
297
+ const labelled = frameLabelled(this) && !floats;
298
+ // FLD-3: the glyph is not drawn while the label is not — hidden, empty, or drawn by the control itself (FLD-25).
299
+ if (!labelled && this.querySelector(':scope > [slot="label-icon"]')) {
300
+ report(this, 'FLD-3', floats ? 'the label-icon slot is not drawn where the control draws the label itself, floating in its own box; remove the glyph' : 'the label-icon slot is not drawn while the label is not drawn; give the field a label, or remove the glyph');
301
+ }
302
+ // FLD-25: an optional requirement has no place beside a label the control draws; its text stays in the description.
303
+ if (floats && frameLabelled(this) && frameRequirement(this) === 'optional') {
304
+ report(this, 'FLD-25', 'the optional tag cannot be drawn where the control draws the label itself, floating in its own box; its text is still part of the description');
305
+ }
306
+ // FLD-28: a refusal neither the control nor the field has words for is still marked, and reported.
307
+ if (said.refusal && !said.refusal.text && !this.errorText) {
308
+ report(this, 'FLD-28', 'the control refused what was entered and neither it nor the field has words for it; give the control the words of its refusal, or the field an errorText');
309
+ }
310
+ const controls = this.controls;
311
+ const first = controls[0];
312
+ // FLD-15: exactly one control.
313
+ if (!first) {
314
+ report(this, 'FLD-15', 'the field has no control; put the one control it frames in its default slot');
315
+ return;
316
+ }
317
+ if (controls.length > 1)
318
+ report(this, 'FLD-15', `the field holds ${controls.length} controls and names, describes and marks only the first; a set of controls is a field group`);
319
+ // An element that is not defined yet says nothing about itself.
320
+ if (first.localName.includes('-') && !customElements.get(first.localName))
321
+ return;
322
+ const connection = this.provider.connectionIn(first);
323
+ // An element that has not drawn itself yet has not said what it is — a composed field's frame asks only once the
324
+ // field has rendered it: the field looks again when the element has.
325
+ const drawing = first;
326
+ if (!connection && drawing.hasUpdated === false && drawing.updateComplete) {
327
+ void drawing.updateComplete.then(() => this.isConnected && this.requestUpdate());
328
+ return;
329
+ }
330
+ if (connection?.framed || (!connection && 'supportingText' in first)) {
331
+ // A composed field is a Field and its one control: the frame that answered is inside it, around the bare control.
332
+ const bare = connection && connection.control !== first ? [...connection.control.children].find((child) => !child.slot)?.localName : undefined;
333
+ report(this, 'FLD-15', bare
334
+ ? `<${first.localName}> is already a field — a Field around <${bare}>, with its own label, help and error; use it without a field, or frame the bare control, <${bare}>`
335
+ : `<${first.localName}> draws its own label, help and error, so it is already a field; use it without a field`);
336
+ return;
337
+ }
338
+ // FLD-10: one name, and only one.
339
+ const named = connection ? connection.named() : namesItself(first);
340
+ if (labelled && named)
341
+ report(this, 'FLD-10', `<${first.localName}> names itself and stands under the field's label, so the control has two labels; leave the field's label empty, or the control's`);
342
+ if (!this.label && !named)
343
+ report(this, 'FLD-10', 'label is empty and the control has no name of its own, so the control has no accessible name; give the field a label (labelHidden hides it and keeps the name)');
344
+ }
345
+ render() {
346
+ const disabled = this.isDisabled;
347
+ const said = this.said;
348
+ // FLD-7, FLD-31: the help, which stays, and below it the error text while the field is in error and has words.
349
+ const help = this.supportingText;
350
+ const wrong = this.shownError(said);
351
+ const framed = this.framed;
352
+ // FLD-26: the supporting row starts and ends where the control says its content does.
353
+ const inset = said.inset ? `--_inset-start: ${said.inset.start}; --_inset-end: ${said.inset.end}` : undefined;
354
+ // FLD-13: the rows are drawn focused while focus is inside the field, or while its control says that it is drawn
355
+ // focused (a select or a combobox for as long as its list is open, whether or not it has focus).
356
+ // The label is the control's accessible name as a value, so the drawn text is hidden from assistive technology: it
357
+ // is announced once, as the name, and not a second time as text. The supporting row stays readable as text, as a
358
+ // text field's does, so that a disabled field's help can still be read (FLD-14).
359
+ const row = frameLabelRow({
360
+ label: this.label,
361
+ // FLD-25: no label row, glyph or tag where the control draws the label itself.
362
+ labelHidden: this.labelHidden || !!said.drawsLabel,
363
+ requirement: this.requirement,
364
+ requiredMark: this.requiredMark,
365
+ requiredText: framed.requiredText,
366
+ optionalText: framed.optionalText,
367
+ glyph: frameLabelIcon(this.onLabelIconSlotChange),
368
+ hasGlyph: this.hasLabelIcon,
369
+ labelHidden_: true,
370
+ disabled,
371
+ onPress: this.onLabelPress,
372
+ });
373
+ return html `
374
+ <div class="frame" ?data-error=${this.inError(said)} ?data-disabled=${disabled} ?data-focused=${(this.focused || !!said.drawnFocused) && !disabled}>
375
+ ${
376
+ // FLD-29, FLD-30: the value text shares the label's line, at its end — only while the label row is drawn.
377
+ row !== nothing && this.valueText
378
+ ? html `<div class="label-line">
379
+ ${row}<span part="value-text" class="value-text" ?data-own-direction=${ownDirection(this.valueText.replace(ISOLATED, '')) === 'auto'} aria-hidden="true" aria-disabled=${ifDefined(disabled ? 'true' : undefined)} @mousedown=${this.onLabelPress}>${this.valueText}</span>
380
+ </div>`
381
+ : row}
382
+ <div class="control" ?data-inline=${this.inline}><slot @slotchange=${this.onSlotChange}></slot></div>
383
+ ${help || wrong || this.countText
384
+ ? html `<div class="supporting" style=${ifDefined(inset)}>
385
+ ${help || wrong
386
+ ? html `<div class="texts">${frameText(help, { id: 'supporting', disabled })}${frameText(wrong, { id: 'error', part: 'error-text', className: 'error-text', disabled })}</div>`
387
+ : nothing}${this.countText
388
+ ? html `<span part="counter" class="counter" aria-hidden="true" aria-disabled=${ifDefined(disabled ? 'true' : undefined)}>${this.countText}</span>`
389
+ : nothing}
390
+ </div>`
391
+ : nothing}
392
+ ${frameAnnouncer()}
393
+ </div>
394
+ `;
395
+ }
396
+ }
397
+ if (!customElements.get('tanrei-field'))
398
+ customElements.define('tanrei-field', TanreiField);
399
+ //# sourceMappingURL=field.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.js","sourceRoot":"","sources":["../../../src/components/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkD,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,uBAAuB,EAAmC,qBAAqB,EAAE,qBAAqB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACvQ,OAAO,EAGL,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,cAAc,EAEd,WAAW,EACX,aAAa,GACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEnD,0KAA0K;AAC1K,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAO3C;;;;GAIG;AACH,MAAM,MAAM,GAAG,IAAI,GAAG,EAAe,CAAC;AACtC,SAAS,YAAY,CAAC,KAAkB;IACtC,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjB,cAAc,CAAC,GAAG,EAAE;YAClB,MAAM,MAAM,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC;YAC3B,MAAM,CAAC,KAAK,EAAE,CAAC;YACf,KAAK,MAAM,IAAI,IAAI,MAAM;gBAAE,IAAI,IAAI,C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AAC,CAAC,SAAS,CAAC,eAAe,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,SAAS;qBAC9P;YACT,CAAC,CAAC,GACN;4CACoC,IAAI,CAAC,MAAM,sBAAsB,IAAI,CAAC,YAAY;UACpF,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,SAAS;YAC/B,CAAC,CAAC,IAAI,CAAA,iCAAiC,SAAS,CAAC,KAAK,CAAC;gBACjD,IAAI,IAAI,KAAK;gBACb,CAAC,CAAC,IAAI,CAAA,sBAAsB,SAAS,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,GAAG,SAAS,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,QAAQ;gBAC9K,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS;gBAC1B,CAAC,CAAC,IAAI,CAAA,yEAAyE,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,SAAS,SAAS;gBAClJ,CAAC,CAAC,OAAO;mBACN;YACT,CAAC,CAAC,OAAO;UACT,cAAc,EAAE;;KAErB,CAAC;IACJ,CAAC;CACF;AAED,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,cAAc,CAAC;IAAE,cAAc,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const PREFIX = "--tanrei-comp-field";
2
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,177 @@
1
+ import { css } from 'lit';
2
+ import { FRAME_PARTS, frameColors, frameStyles } from '../../primitives/field-frame.js';
3
+ import { productText } from '../../styles/product-text.js';
4
+ // Every visual value is a token (tokens/comp/field.tokens.json). The field draws a frame and nothing else (FLD-1): no
5
+ // container, edge, fill or elevation, no padding, and nothing of its control. For each state the frame reads that
6
+ // state's tokens of its look — plain or error — and never computes how a state looks; it has no state layer, because
7
+ // it answers no hover and no press (FLD-12).
8
+ export const PREFIX = '--tanrei-comp-field';
9
+ export const styles = css `
10
+ /* FLD-1: a block as wide as its layout gives it, as tall as its rows and its control together. */
11
+ :host {
12
+ display: block;
13
+ }
14
+ :host([hidden]) {
15
+ display: none;
16
+ }
17
+ /* The positioning container of the announcer, which is drawn nowhere. */
18
+ .frame {
19
+ position: relative;
20
+ min-inline-size: 0;
21
+ }
22
+
23
+ /* FLD-8, FLD-13, FLD-14: the current color of every part, from the tokens of the look and the state the field is in.
24
+ Focused is never set while disabled, so each later rule wins over the ones before it. */
25
+ ${frameColors(PREFIX, 'standard', {
26
+ rest: '.frame',
27
+ error: '.frame[data-error]',
28
+ focused: '.frame[data-focused]',
29
+ focusedError: '.frame[data-focused][data-error]',
30
+ disabled: '.frame[data-disabled]',
31
+ disabledError: '.frame[data-disabled][data-error]',
32
+ }, [...FRAME_PARTS, 'error-text', 'counter', 'value-text'], null,
33
+ // FLD-31: the error text has one color, whichever look the frame is in — it is drawn only in error.
34
+ ['error-text'])}
35
+
36
+ /* FLD-2 … FLD-7, FLD-9, FLD-13, FLD-16, FLD-17, FLD-21: the frame, from the field's tokens. */
37
+ ${frameStyles({ prefix: PREFIX, glyph: true, disabled: '.frame[data-disabled]' })}
38
+
39
+ /* FLD-7, FLD-26, FLD-27, FLD-31: the supporting row — its texts from its start, the count at the end of its first
40
+ line, at least counter.gap apart — supporting-text.gap below the control. The texts are one column that takes the
41
+ room beside the count: the help, which stays while the field is in error, and the error text error-text.gap below
42
+ it; where there is no help the error text is the column's first line, where it has always stood. The row starts
43
+ and ends where the control says its content does (--_inset-start / --_inset-end, which the element writes from
44
+ what the control said; a control that says nothing has the row at the field's edges). The texts wrap; the count
45
+ stays whole on one line, in figures of one width, in the supporting text's style and its own color, and is never
46
+ announced: the control says its own count. Nothing here moves by itself: the error text comes and goes with the
47
+ layout, at once (FLD-31). */
48
+ .supporting {
49
+ display: flex;
50
+ align-items: flex-start;
51
+ column-gap: var(--tanrei-comp-field-counter-gap);
52
+ min-inline-size: 0;
53
+ margin-block-start: var(--tanrei-comp-field-supporting-text-gap);
54
+ padding-inline: var(--_inset-start, 0px) var(--_inset-end, 0px);
55
+ }
56
+ .texts {
57
+ display: flex;
58
+ flex: 1 1 auto;
59
+ flex-direction: column;
60
+ row-gap: var(--tanrei-comp-field-error-text-gap);
61
+ min-inline-size: 0;
62
+ }
63
+ .texts > .supporting-text {
64
+ margin-block-start: 0;
65
+ }
66
+ /* FLD-31: the error text, in the supporting text's style and the error text's own color, wrapping and never cut. */
67
+ .error-text {
68
+ min-inline-size: 0;
69
+ overflow-wrap: break-word;
70
+ font: var(--tanrei-comp-field-supporting-text-typescale-font);
71
+ letter-spacing: var(--tanrei-comp-field-supporting-text-typescale-letter-spacing);
72
+ color: var(--_frame-error-text);
73
+ transition: color var(--tanrei-comp-field-motion-state-duration) var(--tanrei-comp-field-motion-state-easing);
74
+ }
75
+ /* FLD-21: the error text is a run of its own, in the direction of its first strong character, as the help is. */
76
+ ${productText('.error-text', { align: 'start' })}
77
+ .counter {
78
+ flex: none;
79
+ align-self: flex-start;
80
+ margin-inline-start: auto;
81
+ font: var(--tanrei-comp-field-supporting-text-typescale-font);
82
+ letter-spacing: var(--tanrei-comp-field-supporting-text-typescale-letter-spacing);
83
+ color: var(--_frame-counter);
84
+ white-space: nowrap;
85
+ font-variant-numeric: tabular-nums;
86
+ transition: color var(--tanrei-comp-field-motion-state-duration) var(--tanrei-comp-field-motion-state-easing);
87
+ }
88
+ /* FLD-21: the count is a run of its own, in the direction of its first strong character, as wide as itself. */
89
+ ${productText('.counter')}
90
+ @media (prefers-reduced-motion: reduce) {
91
+ .counter,
92
+ .error-text {
93
+ transition: none !important;
94
+ }
95
+ }
96
+ /* FLD-17: under forced colors the count and the error text are in the platform's text color, as the help is: the two
97
+ texts are then told apart by their words and their order, the help first. */
98
+ @media (forced-colors: active) {
99
+ .counter,
100
+ .error-text {
101
+ color: CanvasText;
102
+ }
103
+ .frame[data-disabled] :is(.counter, .error-text) {
104
+ color: GrayText;
105
+ }
106
+ }
107
+
108
+ /* FLD-29: the value text at the end edge of the label row, on the baseline of the label's first line, at least
109
+ value-text.gap from the label with its mark. The row and the text are the two items of a line that wraps: the row
110
+ takes the room the text leaves and is never given less than half of the line — where the two would not fit so,
111
+ the text takes a line of its own after the row, from the start edge, and wraps there where it must. label.gap is
112
+ then below the line, whichever of the two ends it. The row's baseline is the label's, with a glyph before it too. */
113
+ .label-line {
114
+ display: flex;
115
+ flex-wrap: wrap;
116
+ align-items: baseline;
117
+ column-gap: var(--tanrei-comp-field-value-text-gap);
118
+ min-inline-size: 0;
119
+ margin-block-end: var(--tanrei-comp-field-label-gap);
120
+ }
121
+ .label-line > .label-row {
122
+ flex: 1 1 0;
123
+ min-inline-size: 50%;
124
+ margin-block-end: 0;
125
+ }
126
+ .label-line > .label-row > .label {
127
+ align-self: baseline;
128
+ }
129
+ .value-text {
130
+ flex: 0 1 auto;
131
+ min-inline-size: 0;
132
+ overflow-wrap: anywhere;
133
+ font: var(--tanrei-comp-field-value-text-typescale-font);
134
+ letter-spacing: var(--tanrei-comp-field-value-text-typescale-letter-spacing);
135
+ color: var(--_frame-value-text);
136
+ cursor: default;
137
+ transition: color var(--tanrei-comp-field-motion-state-duration) var(--tanrei-comp-field-motion-state-easing);
138
+ }
139
+ /* FLD-21: the value text is a run of its own — isolated, in the direction of its first strong character
140
+ (data-own-direction, which the element sets where the text has one) and in the layout's where it has none: a
141
+ number, or a range's two values, each isolated already, in reading order. On a line of its own its lines are
142
+ aligned by the layout. */
143
+ .value-text {
144
+ unicode-bidi: isolate;
145
+ }
146
+ ${productText('.value-text[data-own-direction]', { align: 'start' })}
147
+ @media (prefers-reduced-motion: reduce) {
148
+ .value-text {
149
+ transition: none !important;
150
+ }
151
+ }
152
+ /* FLD-17: under forced colors the value text is in the platform's text color, as the label beside it. */
153
+ @media (forced-colors: active) {
154
+ .value-text {
155
+ color: CanvasText;
156
+ }
157
+ .frame[data-disabled] .value-text {
158
+ color: GrayText;
159
+ }
160
+ }
161
+
162
+ /* FLD-1: the control is given the field's whole width to lay itself out in and is not changed. In the flow of a
163
+ block, a control that fills the width it is given fills it. A control with a size of its own (an inline-level box:
164
+ a switch, a checkbox) keeps it at the start edge — and stands as an item of a column rather than on a line of
165
+ text, so that the line's own height and the room under its baseline add nothing to the field's height
166
+ (data-inline, which the element sets from the control's own display). */
167
+ .control {
168
+ display: block;
169
+ min-inline-size: 0;
170
+ }
171
+ .control[data-inline] {
172
+ display: flex;
173
+ flex-direction: column;
174
+ align-items: flex-start;
175
+ }
176
+ `;
177
+ //# sourceMappingURL=field.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.styles.js","sourceRoot":"","sources":["../../../src/components/field/field.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,sHAAsH;AACtH,kHAAkH;AAClH,qHAAqH;AACrH,6CAA6C;AAC7C,MAAM,CAAC,MAAM,MAAM,GAAG,qBAAqB,CAAC;AAE5C,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;IAgBrB,WAAW,CACX,MAAM,EACN,UAAU,EACV;IACE,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,sBAAsB;IAC/B,YAAY,EAAE,kCAAkC;IAChD,QAAQ,EAAE,uBAAuB;IACjC,aAAa,EAAE,mCAAmC;CACnD,EACD,CAAC,GAAG,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC,EACvD,IAAI;AACJ,oGAAoG;AACpG,CAAC,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