@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,1071 @@
1
+ import { css, unsafeCSS } from 'lit';
2
+ import { focusGlow, focusGlowEnds, focusRing, iconGlyph, minimumTarget, stateRules } from '../../primitives/index.js';
3
+ import { productText } from '../../styles/product-text.js';
4
+ import { cornerRadius, shape } from '../../styles/shape.js';
5
+ // Every visual value is a token: the box's (tokens/comp/input-box.tokens.json) or the text input's own
6
+ // (tokens/comp/text-input.tokens.json). The input draws the box and what is in it, and
7
+ // no row around it: the label above, the requirement tag, the help, the error and the count are the rows of the Field
8
+ // that frames it, drawn from `comp.field.*` (TXI-63). For each state the input reads that state's tokens
9
+ // of its look — plain or error — and never computes how a state looks: a filled field's hover is a state layer and its
10
+ // focus a thicker, focus-colored edge in the default system, nothing at all in cupertino, by value.
11
+ //
12
+ // Whether a label is drawn and how the edge is drawn is the variant's geometry, set on the root as `data-layout`:
13
+ // `filled` and `outlined` float the label inside the box; `stacked` — the default, and every variant a layer adds
14
+ // (TXI-9) — draws none and draws its edge as a line inside the container (TXI-13, TXI-26).
15
+ /** The values every design system has. A layer may add more; those get their styles on demand. */
16
+ export const CORE_VARIANTS = ['stacked', 'filled', 'outlined'];
17
+ export const CORE_SIZES = ['medium', 'large'];
18
+ const DEFAULT_VARIANT = 'stacked';
19
+ const DEFAULT_SIZE = 'medium';
20
+ /** The states a field declares: no pressed — a press on a field is not an action (TXI-8). */
21
+ const STATES = { '': '-r', hovered: '-h', focused: '-f', disabled: '-d' };
22
+ /** Every part a state recolors (the state-layer color is read only through the container's state tokens). */
23
+ const PARTS = {
24
+ c: 'container-color',
25
+ i: 'active-indicator-color',
26
+ o: 'outline-color',
27
+ l: 'label-color',
28
+ n: 'input-color',
29
+ h: 'placeholder-color',
30
+ a: 'affix-color',
31
+ s: 'leading-icon-color',
32
+ t: 'trailing-icon-color',
33
+ r: 'caret-color',
34
+ // The asterisk after a floating label (TXI-50) and the resize grip (TXI-39).
35
+ ra: 'required-asterisk-color',
36
+ rg: 'resize-grip-color',
37
+ };
38
+ /** The two looks of each variant (TXI-11): the plain parts, and their `error.` twins while error is true. */
39
+ const LOOKS = { plain: '', error: 'error-' };
40
+ /** The members of the size axis (`dev.tanrei.axes.size.members`). Text styles are used whole: font and tracking. */
41
+ const SIZE_MEMBERS = {
42
+ height: 'container-height',
43
+ pad: 'container-padding-inline',
44
+ 'pad-icon': 'container-padding-inline-with-icon',
45
+ 'pad-block': 'container-padding-block',
46
+ 'pad-label': 'container-padding-block-with-label',
47
+ gap: 'container-gap',
48
+ label: 'label-typescale',
49
+ floated: 'label-floated-typescale',
50
+ input: 'input-typescale',
51
+ icon: 'icon-size',
52
+ };
53
+ const TYPESCALES = new Set(['label-typescale', 'label-floated-typescale', 'input-typescale']);
54
+ /**
55
+ * The box is drawn from the one set of tokens every input box is drawn from, `comp.input-box` (TXI-68):
56
+ * the container, its edges, the floating label, the value's line, the glyphs, the paddings and heights of a size, and
57
+ * their colors in each look and state. The select, the combobox, the number input and the color input read the same.
58
+ */
59
+ const BOX = '--tanrei-comp-input-box';
60
+ /** What a text input alone draws: the resize grip, a date or time segment, the code face, the entries place, the motion of a height that follows its text. */
61
+ const OWN = '--tanrei-comp-text-input';
62
+ /** The parts a state recolors that are the text input's own, and not the box's. */
63
+ const OWN_PARTS = new Set(['resize-grip-color']);
64
+ const prefixOf = (part) => (OWN_PARTS.has(part) ? OWN : BOX);
65
+ // A value the core does not have may be missing from the active design system: fall back to the default's token.
66
+ const ref = (name, key, fallback) => (fallback ? `var(${name(key)}, var(${name(fallback)}))` : `var(${name(key)})`);
67
+ // Per variant, both looks' parts in every state, as private custom properties (`--_error-l-f` = the error look's label,
68
+ // focused). The token of a state and a look is `<variant>-[<state>-]<look><part>`.
69
+ const variantBlock = (variant, selector, fallback = null) => `${selector} {\n${Object.entries(LOOKS)
70
+ .flatMap(([look, prefix]) => Object.entries(STATES).flatMap(([state, suffix]) => Object.entries(PARTS).map(([key, part]) => ` --_${look}-${key}${suffix}: ${ref((v) => `${prefixOf(part)}-${v}-${state ? `${state}-` : ''}${prefix}${part}`, variant, fallback)};`)))
71
+ .join('\n')}\n}`;
72
+ const sizeBlock = (size, selector, fallback = null) => `${selector} {\n${Object.entries(SIZE_MEMBERS)
73
+ .flatMap(([key, member]) => TYPESCALES.has(member)
74
+ ? ['font', 'letter-spacing', 'line-height', 'font-size'].map((field) => ` --_${key}-${field}: ${ref((v) => `${BOX}-${member}-${v}-${field}`, size, fallback)};`)
75
+ : [` --_${key}: ${ref((v) => `${BOX}-${member}-${v}`, size, fallback)};`])
76
+ .join('\n')}\n}`;
77
+ /** Which look the field paints (TXI-11): the error look exactly while `error` is true (`data-error` on the root). */
78
+ const lookBlock = (look, selector) => `${selector} {\n${Object.values(STATES)
79
+ .flatMap((suffix) => Object.keys(PARTS).map((key) => ` --_${key}${suffix}: var(--_${look}-${key}${suffix});`))
80
+ .join('\n')}\n}`;
81
+ /**
82
+ * The open axes (TXI-9): a size or variant a layer added gets its block on demand, built by the same functions
83
+ * as the core blocks and falling back to the default's tokens; a value the active system lacks is reported in debug builds.
84
+ */
85
+ export const AXES = [
86
+ { name: 'size', core: CORE_SIZES, default: DEFAULT_SIZE, rules: (value, selector) => sizeBlock(value, selector, DEFAULT_SIZE), probe: (value) => `${BOX}-container-height-${value}` },
87
+ { name: 'variant', core: CORE_VARIANTS, default: DEFAULT_VARIANT, rules: (value, selector) => variantBlock(value, selector, DEFAULT_VARIANT), probe: (value) => `${BOX}-${value}-container-color` },
88
+ ];
89
+ /**
90
+ * TXI-62, FLD-26: how far the input's text stands from its own start edge, and the padding it keeps at its end edge,
91
+ * as lengths — the sums the box itself is laid out by (`--_text-start`, `--_end` below), written from the size's
92
+ * tokens so that the Field that is told them resolves them where it stands: custom properties are inherited. Beside a
93
+ * leading icon the text starts after the icon's padding, the icon and its gap; a trailing icon or the picker button
94
+ * changes the end padding. A size a layer added falls back to the default's token, as its styles do. `lead` is the
95
+ * measured length of the leading box where what the product slotted is wider than an icon (TXI-22): it stands for the
96
+ * icon's size in the sum, as `--_lead` does in the styles.
97
+ */
98
+ export function INSET(size, { leading, trailing, lead = '' }) {
99
+ const core = CORE_SIZES.includes(size);
100
+ const t = (member) => (core ? `var(${BOX}-${member}-${size})` : `var(${BOX}-${member}-${size}, var(${BOX}-${member}-${DEFAULT_SIZE}))`);
101
+ return {
102
+ start: leading ? `calc(${t(SIZE_MEMBERS['pad-icon'])} + ${lead || t(SIZE_MEMBERS.icon)} + ${t(SIZE_MEMBERS.gap)})` : t(SIZE_MEMBERS.pad),
103
+ end: trailing ? t(SIZE_MEMBERS['pad-icon']) : t(SIZE_MEMBERS.pad),
104
+ };
105
+ }
106
+ /** The current value of every part, the widths of the edges and the opacity, from one state's tokens. */
107
+ const paint = (suffix, state) => `${Object.keys(PARTS)
108
+ .map((key) => `\n --_${key}: var(--_${key}${suffix});`)
109
+ .join('')}
110
+ --_ow: var(${BOX}-${state ? `${state}-` : ''}outline-width);
111
+ --_iw: var(${BOX}-${state ? `${state}-` : ''}active-indicator-width);${state ? `
112
+ opacity: var(${BOX}-${state}-opacity);` : ''}`;
113
+ /**
114
+ * What takes the typing: the native input, or — in a date, time or date-time field — the segment that has focus
115
+ * (TXI-43: the field counts as focused while any of its segments has focus).
116
+ */
117
+ const ENTRY_FOCUS = ':is(.input, .segment):focus';
118
+ /** The field is disabled — its own `disabled`, or a fieldset's (`data-disabled` on the root: a row of segments has no native element to ask). */
119
+ const DISABLED = '.field[data-disabled]';
120
+ /**
121
+ * Where each state is read (for `stateRules()`): hover is the container's, focus is the native input's or a segment's —
122
+ * gained by pointer or by keyboard alike (TXI-6: a field shows where typing will go however it was focused) — and
123
+ * disabled is the field's. A field has no press (TXI-8), so the pressed conditions name a mark the field never sets.
124
+ * `:where()` keeps every state rule at the resting rule's specificity, so the order `stateRules()` writes them in is the
125
+ * precedence.
126
+ */
127
+ const on = (state) => state === ':hover'
128
+ ? '.field:where(:has(.container:hover))'
129
+ : state === ':focus-visible'
130
+ ? `.field:where(:has(${ENTRY_FOCUS}))`
131
+ : state === ':disabled'
132
+ ? '.field:where([data-disabled])'
133
+ : `.field:where(${state})`;
134
+ /**
135
+ * A filled or outlined label is floated while the input is focused, the text is not empty (`data-has-value`), or the
136
+ * browser marks the field autofilled — before it exposes the value to script (TXI-13, TXI-21). `:is()` forgives a
137
+ * pseudo-class a browser does not know; `:has()` alone would not.
138
+ */
139
+ const FLOAT = `:is([data-has-value], :has(${ENTRY_FOCUS}), :has(.input:autofill), :has(.input:-webkit-autofill))`;
140
+ const FILLED = ".field[data-layout='filled']";
141
+ const OUTLINED = ".field[data-layout='outlined']";
142
+ const STACKED = ".field[data-layout='stacked']";
143
+ /** The label of a floating-label field (filled or outlined) is floated. */
144
+ const FLOATED = `.field:not([data-layout='stacked'])${FLOAT}`;
145
+ /** The label is not in the input line: above a stacked field, floated, or not drawn (hidden, or empty). The placeholder,
146
+ * the prefix and the suffix show then (TXI-15). */
147
+ const OUT_OF_LINE = `:is(${STACKED}, ${FLOATED}, .field:not([data-labelled]))`;
148
+ export const styles = css `
149
+ /* TXI-63: a block as wide as its place, framed and bare alike, and as tall as its container (with the room an
150
+ outlined input keeps above it for a floated label that wraps, TXI-13). It has no width of its own. */
151
+ :host {
152
+ display: block;
153
+ min-inline-size: 0;
154
+ }
155
+ :host([hidden]) {
156
+ display: none;
157
+ }
158
+ ${unsafeCSS(sizeBlock(DEFAULT_SIZE, ':host'))}
159
+ ${unsafeCSS(CORE_SIZES.filter((size) => size !== DEFAULT_SIZE).map((size) => sizeBlock(size, `:host([size='${size}'])`)).join('\n'))}
160
+ ${unsafeCSS(variantBlock(DEFAULT_VARIANT, ':host'))}
161
+ ${unsafeCSS(CORE_VARIANTS.filter((v) => v !== DEFAULT_VARIANT).map((v) => variantBlock(v, `:host([variant='${v}'])`)).join('\n'))}
162
+ ${unsafeCSS(lookBlock('plain', '.field'))}
163
+ ${unsafeCSS(lookBlock('error', '.field[data-error]'))}
164
+
165
+ .field {
166
+ ${unsafeCSS(paint('-r', ''))}
167
+ /* What the field positions is laid out against the field. Its live region (.announcer) is in no positioned box of
168
+ its own, and was laid out against whatever is positioned above the element — outside a box the field scrolls in,
169
+ which then does not cut it, so the page scrolled sideways to reach it (src/scroll-box.test.ts). */
170
+ position: relative;
171
+ /* Where the text starts: after the leading icon and its gap, or at the text padding (TXI-16). */
172
+ --_start: var(--_pad);
173
+ --_end: var(--_pad);
174
+ --_text-start: var(--_start);
175
+ /* Where the text ends: before the trailing icon and its gap, or at the text padding. */
176
+ --_text-end: var(--_end);
177
+ /* One line of a text style, as a length (a typescale's line height is a ratio of its size). */
178
+ --_floated-line: calc(var(--_floated-line-height) * var(--_floated-font-size));
179
+ --_label-line: calc(var(--_label-line-height) * var(--_label-font-size));
180
+ --_input-line: calc(var(--_input-line-height) * var(--_input-font-size));
181
+ /* TXI-51: where the first line of a multi-line field starts, from the container's top edge — where a single-line
182
+ field of the same variant, size, label and text size draws its one line (TXI-16): centred in container.height, or
183
+ padding-block below the edge where enlarged text makes the field taller than that. A fixed distance: no part of it
184
+ follows the container's height. */
185
+ --_first: max(var(--_pad-block), calc((var(--_height) - var(--_input-line)) / 2));
186
+ display: flex;
187
+ flex-direction: column;
188
+ min-inline-size: 0;
189
+ transition: opacity var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
190
+ }
191
+ /* TXI-51: a filled field that draws its label sets the line under the floated label's band, as a single-line one does —
192
+ centred in what container.height leaves below the band, where that is more than a line. */
193
+ ${unsafeCSS(FILLED)}[data-labelled] {
194
+ --_band: var(--_floated-line);
195
+ --_first: calc(var(--_pad-label) + var(--_band) + max(0px, calc((var(--_height) - 2 * var(--_pad-label) - var(--_band) - var(--_input-line)) / 2)));
196
+ }
197
+ ${unsafeCSS(FILLED)}[data-labelled][data-label-wraps] {
198
+ --_band: calc(var(--_float-lines) * var(--_floated-line));
199
+ }
200
+ /* TXI-22: an element the product slotted that is wider than an icon keeps its own size, and the text follows its
201
+ box. So does all that starts and ends where the text does (TXI-13: the label and its copies): the box's measured
202
+ length stands for the icon's (--_lead, --_trail, written by the input only while a box is wider than an icon). */
203
+ .field[data-leading] {
204
+ --_start: var(--_pad-icon);
205
+ --_text-start: calc(var(--_pad-icon) + var(--_lead, var(--_icon)) + var(--_gap));
206
+ }
207
+ /* The trailing slot's content, the picker button, or both (TXI-32): each takes an icon's box and container.gap. */
208
+ .field:is([data-trailing], [data-picker]) {
209
+ --_end: var(--_pad-icon);
210
+ --_text-end: calc(var(--_pad-icon) + var(--_icon) + var(--_gap));
211
+ }
212
+ .field[data-trailing] {
213
+ --_text-end: calc(var(--_pad-icon) + var(--_trail, var(--_icon)) + var(--_gap));
214
+ }
215
+ .field[data-trailing][data-picker] {
216
+ --_text-end: calc(var(--_pad-icon) + var(--_trail, var(--_icon)) + var(--_icon) + 2 * var(--_gap));
217
+ }
218
+
219
+ /* TXI-6: each state sets the current value of every part from that state's tokens of the current look; focused over
220
+ hovered, disabled over all. */
221
+ ${stateRules(on, {
222
+ hovered: paint('-h', 'hovered'),
223
+ focused: paint('-f', 'focused'),
224
+ pressed: '',
225
+ pressedContent: '',
226
+ disabled: paint('-d', 'disabled'),
227
+ })}
228
+
229
+ /* TXI-16: at least the size's height; the text padded by padding-inline (padding-inline-with-icon beside an icon);
230
+ four rounded corners outlined, the bottom two by shape-bottom filled; eased by the corner smoothing (data-tanrei-shape). */
231
+ .container {
232
+ box-sizing: border-box;
233
+ position: relative;
234
+ /* Its own stacking context: the edges, the label and the input stack inside it. */
235
+ isolation: isolate;
236
+ display: flex;
237
+ align-items: stretch;
238
+ min-block-size: var(--_height);
239
+ padding-inline: var(--_start) var(--_end);
240
+ ${unsafeCSS(cornerRadius(`${BOX}-container-shape`))}
241
+ background: var(--_c);
242
+ cursor: text;
243
+ -webkit-tap-highlight-color: transparent;
244
+ transition: background-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
245
+ }
246
+ ${unsafeCSS(FILLED)} .container {
247
+ border-end-start-radius: calc(var(${unsafeCSS(BOX)}-container-shape-bottom) * var(--_corner-scale));
248
+ border-end-end-radius: calc(var(${unsafeCSS(BOX)}-container-shape-bottom) * var(--_corner-scale));
249
+ }
250
+ ${unsafeCSS(DISABLED)} .container {
251
+ cursor: default;
252
+ }
253
+
254
+ /* TXI-8: the hit area meets the minimum target without changing the visual size. The content above stacks over it. */
255
+ ${minimumTarget('.container')}
256
+
257
+ /* The row of the input: the prefix, the native element and the suffix, one input line centred in the container. */
258
+ .body {
259
+ position: relative;
260
+ display: flex;
261
+ flex: 1 1 auto;
262
+ align-items: center;
263
+ min-inline-size: 0;
264
+ padding-block: var(--_pad-block);
265
+ font: var(--_input-font);
266
+ letter-spacing: var(--_input-letter-spacing);
267
+ }
268
+ /* TXI-16: a filled field that draws its label keeps room for the floated label above the input line, from the start. */
269
+ ${unsafeCSS(FILLED)}[data-labelled] .body {
270
+ padding-block: calc(var(--_pad-label) + var(--_floated-line)) var(--_pad-label);
271
+ }
272
+ ${unsafeCSS(FILLED)}[data-labelled] .container {
273
+ min-block-size: max(var(--_height), calc(2 * var(--_pad-label) + var(--_floated-line) + var(--_input-line)));
274
+ }
275
+
276
+ /* TXI-64: what was entered already and the typing part, in lines from the start edge that wrap: entries.gap between
277
+ two items on a line (and before the typing part), entries.row-gap between two lines, every item centred on its
278
+ line (the row's own align-items), an item that does not fit going whole to the next line and never wider than one.
279
+ The slot's box is not one: its items stand in the row itself. The typing part takes what is left of the last line
280
+ while that is entries.typing-min-width at least, and a line of its own otherwise. The paddings are the row's own,
281
+ so the container grows by whole lines. The two distances are handed to the items as a set's are (the Chip's
282
+ internal contract, TGR-5): an item's hit area ends at the middle of the gap to its neighbour, along the line and
283
+ between two lines, so that a press between two is the nearer one's. */
284
+ .entries {
285
+ display: contents;
286
+ --tanrei-set-gap: var(${unsafeCSS(OWN)}-entries-gap);
287
+ --tanrei-set-row-gap: var(${unsafeCSS(OWN)}-entries-row-gap);
288
+ }
289
+ .field[data-entries] .body {
290
+ flex-wrap: wrap;
291
+ /* The first line stands where a single-line input draws its one line (--_first), and the last as far from the
292
+ bottom: one line of items is the height of the size, and each further line adds itself and entries.row-gap. */
293
+ padding-block: var(--_first);
294
+ gap: var(${unsafeCSS(OWN)}-entries-row-gap) var(${unsafeCSS(OWN)}-entries-gap);
295
+ }
296
+ .field[data-entries] .input {
297
+ flex-basis: var(${unsafeCSS(OWN)}-entries-typing-min-width);
298
+ }
299
+ ::slotted([slot='entries']) {
300
+ flex: none;
301
+ max-inline-size: 100%;
302
+ }
303
+
304
+ .input {
305
+ all: unset;
306
+ box-sizing: border-box;
307
+ display: block;
308
+ /* Its own intrinsic width (a native control's) when nothing sizes the field; the rest of the row when something does. */
309
+ flex: 1 1 auto;
310
+ min-inline-size: 0;
311
+ margin: 0;
312
+ padding: 0;
313
+ border: 0;
314
+ background: none;
315
+ font: inherit;
316
+ letter-spacing: inherit;
317
+ line-height: var(--_input-line-height);
318
+ color: var(--_n);
319
+ caret-color: var(--_r);
320
+ -webkit-text-fill-color: currentcolor;
321
+ text-align: start;
322
+ cursor: inherit;
323
+ transition:
324
+ color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
325
+ caret-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
326
+ }
327
+ /* A single line is one line of the input's text style, as the label's and the affixes' beside it are: two engines of
328
+ three give a text input no line shorter than the face's own ("normal"), so with a face whose own line is taller
329
+ than the text style's — a fallback face, where the system's is not installed — the input, and the container with
330
+ it, would stand a pixel taller than the color input and the number input beside it, which name this size too. */
331
+ input.input {
332
+ block-size: var(--_input-line);
333
+ }
334
+ /* TXI-7: the focused edge is the focus indicator; the native element draws no ring of its own. */
335
+ .input:focus {
336
+ outline: none;
337
+ }
338
+ /* TXI-6: selected text is highlighted in selection.color and drawn in selection.content.color, in every variant and
339
+ state. The fill color is named too: the input sets it to currentcolor, and the highlight has to carry its own. */
340
+ .input::selection {
341
+ background: var(${unsafeCSS(BOX)}-selection-color);
342
+ color: var(${unsafeCSS(BOX)}-selection-content-color);
343
+ -webkit-text-fill-color: var(${unsafeCSS(BOX)}-selection-content-color);
344
+ }
345
+ .input::placeholder {
346
+ color: var(--_placeholder, var(--_h));
347
+ -webkit-text-fill-color: var(--_placeholder, var(--_h));
348
+ opacity: 1;
349
+ }
350
+ /* TXI-15: the placeholder shows only while the label is not in the input line — above, floated or not drawn — so the
351
+ two never overlap. Said ON the field, as a value the placeholder reads: \`:has()\` on one element with the rule's
352
+ subject on another (\`.field:has(…) .input::placeholder\`) is the shape whose subject an engine cannot name — a
353
+ pseudo-element inside the input — so it restyled the whole subtree of EVERY element some \`:has()\` is asked of,
354
+ in every root of the page (src/styles/has.test.ts holds the shape, prose.perf.test.ts what it costs). */
355
+ .field[data-labelled]:not([data-layout='stacked']):not(:is([data-has-value], :has(${unsafeCSS(ENTRY_FOCUS)}))) {
356
+ --_placeholder: transparent;
357
+ }
358
+ /* TXI-22: controls a browser draws inside its own element are hidden, so every platform shows the same field. */
359
+ .input::-webkit-search-cancel-button,
360
+ .input::-webkit-search-decoration {
361
+ appearance: none;
362
+ display: none;
363
+ }
364
+ .input::-ms-reveal,
365
+ .input::-ms-clear {
366
+ display: none;
367
+ }
368
+ /* TXI-17, TXI-37: a multi-line field shows --_rows lines of its text style — the lines of its text (auto), the lines
369
+ the person gave it (manual) or minRows (fixed), which the element writes — never fewer than minRows nor more than
370
+ maxRows (--_rows-min / --_rows-max, on the container). An auto-resized field shows no scrollbar while every line
371
+ fits; beyond maxRows (data-overflows), and in a field whose height does not follow its text, the text scrolls. The
372
+ browser's own grip is never drawn: the field's is its own part (TXI-39). */
373
+ textarea.input {
374
+ resize: none;
375
+ overflow-y: hidden;
376
+ white-space: pre-wrap;
377
+ overflow-wrap: break-word;
378
+ block-size: calc(var(--_rows, var(--_rows-min, 2)) * var(--_input-line));
379
+ min-block-size: calc(var(--_rows-min, 2) * var(--_input-line));
380
+ max-block-size: calc(var(--_rows-max, 1e5) * var(--_input-line));
381
+ /* TXI-38, TXI-51: the room the input takes is its box and --_lag lines more (or fewer) — the lines by which the
382
+ height shown still differs from the box, which the element sets for a change of height that moves, and which is
383
+ nothing at rest. */
384
+ margin-block-end: calc(var(--_lag, 0) * var(--_input-line));
385
+ }
386
+ textarea.input[data-overflows],
387
+ .field:not([data-resize='auto']) textarea.input {
388
+ overflow-y: auto;
389
+ }
390
+ /* TXI-38: a change of height that follows the value (or the grip's keys, TXI-41) moves over motion.resize-*; the
391
+ element sets data-resizing for that change only, so a changed width or text size changes the height at once.
392
+ TXI-51: the text never moves with it. The box is already as tall as it will be — so nothing scrolls inside it to
393
+ keep the caret in view — and what moves is the room it takes: the margin goes from the difference to nothing, and
394
+ a box taller than its room is cut at the room's bottom edge, so a new line is uncovered as the container's bottom
395
+ edge passes it and is never drawn over that edge. data-resizing="from" is the starting point, drawn without the
396
+ transition. */
397
+ textarea.input[data-resizing] {
398
+ clip-path: inset(0 0 max(0px, calc(-1 * var(--_lag, 0) * var(--_input-line))) 0);
399
+ }
400
+ textarea.input[data-resizing]:not([data-resizing='from']) {
401
+ transition:
402
+ color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
403
+ caret-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
404
+ margin-block-end var(${unsafeCSS(OWN)}-motion-resize-duration) var(${unsafeCSS(OWN)}-motion-resize-easing),
405
+ clip-path var(${unsafeCSS(OWN)}-motion-resize-duration) var(${unsafeCSS(OWN)}-motion-resize-easing);
406
+ }
407
+ /* TXI-17, TXI-51: a multi-line field sets its content from the top: the first line --_first below the container's top
408
+ edge, every further line under it, and whatever more the container is high below the text. */
409
+ .field[data-multiline] .body {
410
+ align-items: flex-start;
411
+ padding-block-start: var(--_first);
412
+ }
413
+ /* TXI-24: an email, url, tel, number or password value is laid out left to right, aligned to the field's start edge;
414
+ a date or time as its locale writes it — which may be right to left in a left-to-right layout — at the start edge too. */
415
+ :host(:dir(rtl)) .input[dir='ltr'] {
416
+ text-align: right;
417
+ }
418
+ :host(:dir(ltr)) .input[dir='rtl'] {
419
+ text-align: left;
420
+ }
421
+ /* TXI-24: in a multiline field each paragraph takes the direction, and the alignment, of its own first strong
422
+ character — once the value has a letter to tell a direction by (the element sets dir="auto" then); until then the
423
+ field keeps the layout's direction, so the caret of an empty field stands at its start edge. */
424
+ textarea.input[dir='auto'] {
425
+ unicode-bidi: plaintext;
426
+ }
427
+ /* TXI-36: the placeholder is its own run, in the direction of its first strong character, still at the field's start
428
+ edge: a left-to-right hint in a right-to-left field reads in its own order from the right. */
429
+ .input::placeholder {
430
+ unicode-bidi: plaintext;
431
+ text-align: left;
432
+ }
433
+ :host(:dir(rtl)) .input::placeholder {
434
+ text-align: right;
435
+ }
436
+
437
+ /* TXI-53: a code field's input line — the prefix, the value with its caret, the placeholder, the suffix — is one
438
+ left-to-right row in every layout direction (dir="ltr" on the row and on the native element), beginning at the left
439
+ end of the room between the icons: the value is aligned to the left on one line and on many, empty or not, and so
440
+ is its placeholder, which is code too and takes the row's direction, not that of its own first letter. Everything
441
+ else is the layout's (TXI-24). The row's own inline sides are left and right, so the gap an icon keeps from it is
442
+ written from the layout's side: the leading icon stands at the row's right in a right-to-left layout. */
443
+ .field[data-code] .input,
444
+ :host(:dir(rtl)) .field[data-code] .input[dir='ltr'] {
445
+ text-align: left;
446
+ }
447
+ .field[data-code] .input::placeholder,
448
+ :host(:dir(rtl)) .field[data-code] .input::placeholder {
449
+ unicode-bidi: normal;
450
+ text-align: left;
451
+ }
452
+ :host(:dir(rtl)) .field[data-code] .body {
453
+ margin-inline: 0;
454
+ }
455
+ :host(:dir(rtl)) .field[data-code][data-leading] .body {
456
+ margin-inline-end: var(--_gap);
457
+ }
458
+ :host(:dir(rtl)) .field[data-code][data-trailing] .body {
459
+ margin-inline-start: var(--_gap);
460
+ }
461
+ /* TXI-54: the code face — the family, the weight and the letter spacing of code.typescale at the size and the line
462
+ height of the input's own text style, so that a code field is as tall as any text field and sets its first line
463
+ where one does. The characters are drawn as they are held: a tab to the next multiple of code.tab-size columns, no
464
+ two characters joined into a ligature, nothing hyphenated or transformed. The native element, the prefix and the
465
+ suffix inherit all of it from the row. */
466
+ .field[data-code] .body {
467
+ font-family: var(${unsafeCSS(OWN)}-code-typescale-font-family);
468
+ font-weight: var(${unsafeCSS(OWN)}-code-typescale-font-weight);
469
+ letter-spacing: var(${unsafeCSS(OWN)}-code-typescale-letter-spacing);
470
+ font-variant-ligatures: none;
471
+ tab-size: var(${unsafeCSS(OWN)}-code-tab-size);
472
+ hyphens: none;
473
+ text-transform: none;
474
+ }
475
+ /* TXI-57: a line of code that does not fit continues on following rows — at its spaces first and, where a part with
476
+ no space is wider than the row, between any two characters. */
477
+ .field[data-code] textarea.input {
478
+ overflow-wrap: anywhere;
479
+ }
480
+ /* TXI-58: with no-wrap no line is broken (wrap="off" on the text area): a line wider than the input scrolls sideways
481
+ inside the container, from the left, and only the code moves. An auto-resized field is --_bar taller — the room a
482
+ sideways scrollbar takes where the browser draws one that takes room, which the element measures — so that no line
483
+ stands under the scrollbar. */
484
+ .field[data-nowrap] textarea.input {
485
+ white-space: pre;
486
+ overflow-wrap: normal;
487
+ overflow-x: auto;
488
+ block-size: calc(var(--_rows, var(--_rows-min, 2)) * var(--_input-line) + var(--_bar, 0px));
489
+ max-block-size: calc(var(--_rows-max, 1e5) * var(--_input-line) + var(--_bar, 0px));
490
+ }
491
+ /* TXI-53: in a right-to-left layout the resize grip (data-axis: a field resized by hand, not disabled) stands in the
492
+ corner where a line of code begins. The input keeps room after its last line — the grip's size and its inset — that
493
+ it scrolls through: scrolled to its end, the last line stands above the grip. Room, not height: the box is the
494
+ lines the field gives it, as in a left-to-right layout. */
495
+ :host(:dir(rtl)) .field[data-code][data-axis] textarea.input {
496
+ padding-block-end: calc(var(${unsafeCSS(OWN)}-resize-grip-size) + var(${unsafeCSS(OWN)}-resize-grip-inset));
497
+ }
498
+
499
+ /* TXI-42: a date, time or date-time field's row of segments, in place of the input: one left-to-right run (dir="ltr"
500
+ on the row) at the field's start edge in every layout direction, in the input's text style. A filled segment is in
501
+ the input color and an empty one shows its placeholder in the placeholder color; the text between two segments is
502
+ in the placeholder color while every segment is empty. Digits are set at one width, so a number keeps its place as
503
+ it is stepped. */
504
+ .row {
505
+ display: flex;
506
+ flex: 0 1 auto;
507
+ align-items: baseline;
508
+ min-inline-size: 0;
509
+ line-height: var(--_input-line-height);
510
+ color: var(--_n);
511
+ font-variant-numeric: tabular-nums;
512
+ white-space: nowrap;
513
+ cursor: inherit;
514
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
515
+ }
516
+ .literal {
517
+ flex: none;
518
+ white-space: pre;
519
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
520
+ }
521
+ .row[data-empty] .literal {
522
+ color: var(--_h);
523
+ }
524
+ /* Each segment keeps the width of its filled form — two digits, four for a year, the wider name of a day period, with
525
+ segment.padding-inline on each side — while it is empty or half typed: its cell is as wide as a copy of that form
526
+ which is never drawn, and the segment fills the cell, what it shows centred in it. An empty segment whose
527
+ placeholder is wider than that form ("mm") is as wide as the placeholder, so that it stays clear of the separators.
528
+ An hour is written as the locale writes it, one digit or two, against its minutes; a filled one is as wide as
529
+ itself. */
530
+ .unit {
531
+ display: inline-grid;
532
+ flex: none;
533
+ }
534
+ .unit > * {
535
+ grid-area: 1 / 1;
536
+ }
537
+ .sizer {
538
+ visibility: hidden;
539
+ padding-inline: var(${unsafeCSS(OWN)}-segment-padding-inline);
540
+ white-space: pre;
541
+ pointer-events: none;
542
+ }
543
+ .segment {
544
+ box-sizing: border-box;
545
+ display: flex;
546
+ justify-content: center;
547
+ /* As wide as its cell and no part of the cell's width: a wide placeholder does not widen it. */
548
+ inline-size: 0;
549
+ min-inline-size: 100%;
550
+ padding-inline: var(${unsafeCSS(OWN)}-segment-padding-inline);
551
+ white-space: pre;
552
+ cursor: inherit;
553
+ /* TXI-43: no caret — the focused segment is drawn as selected text. */
554
+ caret-color: transparent;
555
+ }
556
+ .segment[data-unit='hour'] {
557
+ justify-content: flex-end;
558
+ }
559
+ .segment[data-unit='period'] {
560
+ justify-content: flex-start;
561
+ unicode-bidi: isolate;
562
+ }
563
+ .segment:empty::before {
564
+ content: attr(data-placeholder);
565
+ color: var(--_h);
566
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
567
+ }
568
+ /* TXI-43: the focused segment is drawn as selected text — selection.color behind it, and its number or its
569
+ placeholder in selection.content.color. Neither is animated: the pair is readable only together. */
570
+ .segment:focus {
571
+ outline: none;
572
+ background: var(${unsafeCSS(BOX)}-selection-color);
573
+ color: var(${unsafeCSS(BOX)}-selection-content-color);
574
+ }
575
+ .segment:focus:empty::before {
576
+ color: inherit;
577
+ transition: none;
578
+ }
579
+ /* No part of the row can be selected on its own (TXI-43): a drag across it highlights nothing. */
580
+ .row ::selection {
581
+ background: transparent;
582
+ }
583
+ /* TXI-15: the segments are shown by the placeholder's rule — not while a filled or outlined field's label rests in
584
+ the input line. They stay focus stops: focus floats the label and shows them. */
585
+ .field[data-labelled]:not([data-layout='stacked']):not(:is([data-has-value], :has(${unsafeCSS(ENTRY_FOCUS)}))) .literal,
586
+ .field[data-labelled]:not([data-layout='stacked']):not(:is([data-has-value], :has(${unsafeCSS(ENTRY_FOCUS)}))) .segment:empty::before {
587
+ color: transparent;
588
+ }
589
+
590
+ /* TXI-15: the prefix and the suffix, affix.gap from the value in the input's text style, only while the label is not
591
+ in the input line. */
592
+ .prefix,
593
+ .suffix {
594
+ flex: none;
595
+ display: none;
596
+ color: var(--_a);
597
+ white-space: pre;
598
+ line-height: var(--_input-line-height);
599
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
600
+ }
601
+ .prefix {
602
+ margin-inline-end: var(${unsafeCSS(BOX)}-affix-gap);
603
+ }
604
+ .suffix {
605
+ margin-inline-start: var(${unsafeCSS(BOX)}-affix-gap);
606
+ }
607
+ ${unsafeCSS(OUT_OF_LINE)} :is(.prefix, .suffix):not(:empty) {
608
+ display: block;
609
+ }
610
+
611
+ /* TXI-36: the prefix and the suffix are each a run of their own (a unit, a currency, a country code), in the direction
612
+ of their first strong character (src/styles/product-text.ts). Beside a value laid out by its own direction they
613
+ stay where the layout puts them; beside one that is always left-to-right they stand where the run puts them
614
+ (TXI-67: the row's own dir, in which their margins are logical). */
615
+ ${productText(':is(.prefix, .suffix)')}
616
+ /* TXI-53, TXI-36: in a code field they are code — part of the one left-to-right row, read as one expression with the
617
+ value (the slashes around a pattern), each an isolated left-to-right run whatever its first letter is. */
618
+ .field[data-code] :is(.prefix, .suffix) {
619
+ unicode-bidi: isolate;
620
+ }
621
+
622
+ /* TXI-22: the icons, at the size's icon size in the family and fill of an unselected icon, colored by their part, gap
623
+ from the text. A slotted element that is larger (the product's icon button) keeps its own size. TXI-35: iconGlyph()
624
+ mirrors the slotted glyph GlyphMirrorController marked, in right-to-left, in its own box. */
625
+ ${iconGlyph('.icon', { size: '--_icon', selected: '.never-selected', duration: `${BOX}-motion-state-duration`, easing: `${BOX}-motion-state-easing` })}
626
+ .icon {
627
+ position: relative;
628
+ display: none;
629
+ align-self: center;
630
+ align-items: center;
631
+ justify-content: center;
632
+ inline-size: auto;
633
+ block-size: auto;
634
+ min-inline-size: var(--_icon);
635
+ min-block-size: var(--_icon);
636
+ overflow: visible;
637
+ cursor: default;
638
+ transition:
639
+ color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
640
+ font-variation-settings var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
641
+ }
642
+ .field[data-leading] .leading,
643
+ .field[data-trailing] .trailing {
644
+ display: inline-flex;
645
+ }
646
+ .leading {
647
+ color: var(--_s);
648
+ }
649
+ .trailing {
650
+ color: var(--_t);
651
+ }
652
+ /* The gap sits on the input's side: the icon box lays its glyph out left to right, whatever the field's direction. */
653
+ .field[data-leading] .body {
654
+ margin-inline-start: var(--_gap);
655
+ }
656
+ .field:is([data-trailing], [data-picker]) .body {
657
+ margin-inline-end: var(--_gap);
658
+ }
659
+ /* TXI-67: the row of a value that is always left-to-right has the direction of its run (dir on .body), which may run
660
+ against the layout. Its own inline sides are then the run's, so the gap an icon keeps from it is written from the
661
+ layout's side, as a code field's is (TXI-53): the leading icon stands at the end of such a row. */
662
+ :host(:dir(rtl)) .field:not([data-code]) .body[dir='ltr'],
663
+ :host(:dir(ltr)) .field:not([data-code]) .body[dir='rtl'] {
664
+ margin-inline: 0;
665
+ }
666
+ :host(:dir(rtl)) .field[data-leading]:not([data-code]) .body[dir='ltr'],
667
+ :host(:dir(ltr)) .field[data-leading]:not([data-code]) .body[dir='rtl'] {
668
+ margin-inline-end: var(--_gap);
669
+ }
670
+ :host(:dir(rtl)) .field:is([data-trailing], [data-picker]):not([data-code]) .body[dir='ltr'],
671
+ :host(:dir(ltr)) .field:is([data-trailing], [data-picker]):not([data-code]) .body[dir='rtl'] {
672
+ margin-inline-start: var(--_gap);
673
+ }
674
+
675
+ /* TXI-32: the picker button — an icon-only text Button of its own tokens — has its glyph centred where a trailing
676
+ icon's would be: it stands in an icon's box and overflows it evenly on both sides. The trailing slot's content comes
677
+ before it, container.gap away. */
678
+ .picker {
679
+ position: relative;
680
+ z-index: 2;
681
+ display: none;
682
+ flex: none;
683
+ align-self: center;
684
+ align-items: center;
685
+ justify-content: center;
686
+ inline-size: var(--_icon);
687
+ block-size: var(--_icon);
688
+ }
689
+ .field[data-picker] .picker {
690
+ display: flex;
691
+ }
692
+ .field[data-trailing][data-picker] .picker {
693
+ margin-inline-start: var(--_gap);
694
+ }
695
+ .picker > tanrei-button {
696
+ flex: none;
697
+ }
698
+ ::slotted(svg),
699
+ ::slotted(img) {
700
+ display: block;
701
+ inline-size: var(--_icon);
702
+ block-size: var(--_icon);
703
+ }
704
+ /* TXI-17, TXI-51: in a multi-line field the icons are centred on the first line, at its fixed distance from the top
705
+ edge: each stands in a box that is the first line — as high as it, where it is — and what the box holds is centred
706
+ in it, a glyph and a larger element the product placed in the slot (an icon-only Button) alike, reaching evenly
707
+ above and below the line. Nothing of it follows the container's height. */
708
+ .field[data-multiline] .icon {
709
+ align-self: flex-start;
710
+ margin-block-start: var(--_first);
711
+ block-size: var(--_input-line);
712
+ min-block-size: 0;
713
+ }
714
+
715
+ /* TXI-13: the label rests centred in the container (a multi-line field: on its first line) in label.typescale, and
716
+ floats — onto the outline's top edge, or to the top of a filled container — in label.floated-typescale. A label that
717
+ does not fit in the width it is given wraps, and is never cut. TXI-14: it moves and resizes over motion.label-*, and
718
+ recolors over motion.state-*. */
719
+ .label,
720
+ .measure {
721
+ position: absolute;
722
+ inset-inline-start: var(--_text-start);
723
+ max-inline-size: calc(100% - var(--_text-start) - var(--_text-end));
724
+ overflow-wrap: break-word;
725
+ font: var(--_label-font);
726
+ letter-spacing: var(--_label-letter-spacing);
727
+ }
728
+ .label {
729
+ z-index: 1;
730
+ inset-block-start: 50%;
731
+ translate: 0 -50%;
732
+ color: var(--_l);
733
+ pointer-events: none;
734
+ transition-property: inset-block-start, inset-inline-start, translate, font-size, line-height, letter-spacing, max-inline-size, color;
735
+ transition-duration:
736
+ var(${unsafeCSS(BOX)}-motion-label-duration), var(${unsafeCSS(BOX)}-motion-label-duration),
737
+ var(${unsafeCSS(BOX)}-motion-label-duration), var(${unsafeCSS(BOX)}-motion-label-duration),
738
+ var(${unsafeCSS(BOX)}-motion-label-duration), var(${unsafeCSS(BOX)}-motion-label-duration),
739
+ var(${unsafeCSS(BOX)}-motion-label-duration), var(${unsafeCSS(BOX)}-motion-state-duration);
740
+ transition-timing-function:
741
+ var(${unsafeCSS(BOX)}-motion-label-easing), var(${unsafeCSS(BOX)}-motion-label-easing),
742
+ var(${unsafeCSS(BOX)}-motion-label-easing), var(${unsafeCSS(BOX)}-motion-label-easing),
743
+ var(${unsafeCSS(BOX)}-motion-label-easing), var(${unsafeCSS(BOX)}-motion-label-easing),
744
+ var(${unsafeCSS(BOX)}-motion-label-easing), var(${unsafeCSS(BOX)}-motion-state-easing);
745
+ }
746
+ /* TXI-51: an outlined multi-line field rests its label on the first line; a filled one where a single-line filled
747
+ field rests it — the middle of that field's height — at a distance from the top that the container's height does not
748
+ change. */
749
+ .field[data-multiline] .label {
750
+ inset-block-start: calc(var(--_first) + var(--_input-line) / 2);
751
+ }
752
+ ${unsafeCSS(FILLED)}[data-multiline] .label {
753
+ inset-block-start: calc(max(var(--_height), calc(2 * var(--_pad-label) + var(--_floated-line) + var(--_input-line))) / 2);
754
+ }
755
+ /* TXI-13: a label whose lines wrap — the room they take is the element's to reserve (data-label-wraps). A resting
756
+ label's lines are centred in the container, or start on the first line of a multi-line field. */
757
+ .field[data-multiline][data-label-wraps] .label {
758
+ translate: 0 calc(-50% + (var(--_rest-lines) - 1) * var(--_label-line) / 2);
759
+ }
760
+ ${unsafeCSS(FILLED)}[data-multiline][data-label-wraps] .label {
761
+ inset-block-start: calc(var(--_pad-label) + var(--_float-lines) * var(--_floated-line) + var(--_input-line) / 2);
762
+ }
763
+ ${unsafeCSS(FLOATED)} .label {
764
+ font: var(--_floated-font);
765
+ letter-spacing: var(--_floated-letter-spacing);
766
+ }
767
+ /* Outlined: centred on the outline's top edge, starting at padding-inline — over a leading icon, not at the input text. */
768
+ ${unsafeCSS(OUTLINED + FLOAT)} .label {
769
+ inset-block-start: calc(var(--_ow) / 2);
770
+ inset-inline-start: var(--_pad);
771
+ max-inline-size: calc(100% - var(--_pad) - var(--_end));
772
+ translate: 0 -50%;
773
+ }
774
+ /* TXI-13: wrapped, its last line is centred on the edge; the lines above it take the room above the container. */
775
+ ${unsafeCSS(OUTLINED + FLOAT)}[data-label-wraps] .label {
776
+ translate: 0 calc(-50% - (var(--_float-lines) - 1) * var(--_floated-line) / 2);
777
+ }
778
+ /* Filled: at the top of the container, above the input line, at the input text in both positions. */
779
+ ${unsafeCSS(FILLED + FLOAT)} .label {
780
+ inset-block-start: var(--_pad-label);
781
+ inset-inline-start: var(--_text-start);
782
+ max-inline-size: calc(100% - var(--_text-start) - var(--_text-end));
783
+ translate: 0 0;
784
+ }
785
+
786
+ /* TXI-13: two copies of the label, never drawn, laid out as the label is resting and floated: the element counts
787
+ their lines (and the widest floated one) to give a label that wraps its room. */
788
+ .measure {
789
+ inset-block-start: 0;
790
+ visibility: hidden;
791
+ pointer-events: none;
792
+ }
793
+ .measure-floated {
794
+ inset-inline-start: var(--_pad);
795
+ max-inline-size: calc(100% - var(--_pad) - var(--_end));
796
+ font: var(--_floated-font);
797
+ letter-spacing: var(--_floated-letter-spacing);
798
+ }
799
+ ${unsafeCSS(FILLED)} .measure-floated {
800
+ inset-inline-start: var(--_text-start);
801
+ max-inline-size: calc(100% - var(--_text-start) - var(--_text-end));
802
+ }
803
+
804
+ /* TXI-13: the room a wrapped label takes, resting and floated alike, so the field never changes height when it floats
805
+ (the room for the floated lines is kept while the label rests, as a filled field keeps its band — TXI-16). An outlined
806
+ field reserves room above its container for the floated lines above the last; the container holds the resting lines,
807
+ centred, or from the first line of a multi-line field; a filled field's band holds every floated line. */
808
+ .field[data-label-wraps] .container {
809
+ margin-block-start: calc((var(--_float-lines) - 1) * var(--_floated-line));
810
+ min-block-size: max(var(--_height), calc(2 * var(--_pad-block) + var(--_rest-lines) * var(--_label-line)));
811
+ }
812
+ .field[data-label-wraps][data-multiline] .container {
813
+ min-block-size: max(var(--_height), calc(var(--_first) + var(--_pad-block) + (var(--_input-line) - var(--_label-line)) / 2 + var(--_rest-lines) * var(--_label-line)));
814
+ }
815
+ ${unsafeCSS(FILLED)}[data-labelled][data-label-wraps] .container {
816
+ margin-block-start: 0;
817
+ min-block-size: max(
818
+ var(--_height),
819
+ calc(2 * var(--_pad-label) + var(--_float-lines) * var(--_floated-line) + var(--_input-line)),
820
+ calc(2 * var(--_pad-label) + var(--_rest-lines) * var(--_label-line))
821
+ );
822
+ }
823
+ ${unsafeCSS(FILLED)}[data-labelled][data-label-wraps][data-multiline] .container {
824
+ min-block-size: max(
825
+ var(--_height),
826
+ calc(2 * var(--_pad-label) + var(--_float-lines) * var(--_floated-line) + var(--_input-line)),
827
+ calc(2 * var(--_pad-label) + var(--_float-lines) * var(--_floated-line) + (var(--_input-line) - var(--_label-line)) / 2 + var(--_rest-lines) * var(--_label-line))
828
+ );
829
+ }
830
+ ${unsafeCSS(FILLED)}[data-labelled][data-label-wraps] .body {
831
+ padding-block: calc(var(--_pad-label) + var(--_float-lines) * var(--_floated-line)) var(--_pad-label);
832
+ }
833
+ /* TXI-51: a filled multi-line field's first line stands where a single-line filled field's line does (--_first). */
834
+ ${unsafeCSS(FILLED)}[data-labelled][data-multiline] .body {
835
+ padding-block-start: var(--_first);
836
+ }
837
+
838
+ /* TXI-50: the asterisk after a floating label's text, requirement.asterisk-gap from it, in the label's own text style
839
+ and at the label's place — it is part of the label, resting and floated with it. Whether one is drawn is the
840
+ Field's to say (FLD-25): the input reads no token for the choice. */
841
+ .asterisk {
842
+ margin-inline-start: var(${unsafeCSS(BOX)}-requirement-asterisk-gap);
843
+ color: var(--_ra);
844
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
845
+ }
846
+
847
+ /* TXI-26: a stacked field's edge is a line inside the container's edge, following its corners, that takes no layout
848
+ space: nothing inside moves as it appears, thickens or goes. At rest its color is transparent (no edge), in error the
849
+ error line; focused, the focused color and width — over motion.state-* (TXI-14). */
850
+ .edge {
851
+ position: absolute;
852
+ z-index: 1;
853
+ inset: 0;
854
+ box-sizing: border-box;
855
+ border: var(--_ow) solid var(--_o);
856
+ border-radius: inherit;
857
+ corner-shape: inherit;
858
+ pointer-events: none;
859
+ transition:
860
+ border-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
861
+ border-width var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
862
+ }
863
+
864
+ /* The outlined variant's edge (TXI-13, TXI-16): three pieces, so that the floated label opens a gap of
865
+ outline.notch-padding on each side of it. The gap's width is the floated label's own width, measured by a hidden copy
866
+ of the label in the floated style; it opens over motion.label-*. */
867
+ .outline {
868
+ position: absolute;
869
+ z-index: 1;
870
+ inset: 0;
871
+ display: flex;
872
+ pointer-events: none;
873
+ corner-shape: inherit;
874
+ }
875
+ .outline > span {
876
+ box-sizing: border-box;
877
+ border: 0 solid var(--_o);
878
+ border-block-width: var(--_ow);
879
+ corner-shape: inherit;
880
+ transition:
881
+ border-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
882
+ border-width var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
883
+ }
884
+ .outline-start {
885
+ flex: none;
886
+ inline-size: max(calc(var(--tanrei-corner-radius) * var(--_corner-scale)), calc(var(--_pad) - var(${unsafeCSS(BOX)}-outline-notch-padding)));
887
+ border-inline-start-width: var(--_ow) !important;
888
+ border-start-start-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
889
+ border-end-start-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
890
+ }
891
+ .outline-notch {
892
+ flex: none;
893
+ display: grid;
894
+ grid-template-columns: minmax(0, 0fr);
895
+ max-inline-size: calc(100% - var(--_pad) - var(--_end));
896
+ transition:
897
+ border-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
898
+ border-width var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
899
+ grid-template-columns var(${unsafeCSS(BOX)}-motion-label-duration) var(${unsafeCSS(BOX)}-motion-label-easing) !important;
900
+ }
901
+ ${unsafeCSS(FLOATED)} .outline-notch {
902
+ grid-template-columns: minmax(0, 1fr);
903
+ border-block-start-color: transparent;
904
+ }
905
+ .notch-label {
906
+ min-inline-size: 0;
907
+ overflow: hidden;
908
+ visibility: hidden;
909
+ white-space: nowrap;
910
+ padding-inline: var(${unsafeCSS(BOX)}-outline-notch-padding);
911
+ font: var(--_floated-font);
912
+ letter-spacing: var(--_floated-letter-spacing);
913
+ }
914
+ /* TXI-13: a wrapped floated label opens the gap by the width of its widest line. */
915
+ .field[data-label-wraps] .notch-label {
916
+ inline-size: var(--_float-widest);
917
+ }
918
+ .outline-end {
919
+ flex: 1 1 auto;
920
+ border-inline-end-width: var(--_ow) !important;
921
+ border-start-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
922
+ border-end-end-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
923
+ }
924
+
925
+ /* The filled variant's active indicator: a line along the bottom, active-indicator.width wide. */
926
+ .indicator {
927
+ position: absolute;
928
+ z-index: 1;
929
+ inset-inline: 0;
930
+ inset-block-end: 0;
931
+ block-size: var(--_iw);
932
+ background: var(--_i);
933
+ pointer-events: none;
934
+ transition:
935
+ background-color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing),
936
+ block-size var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
937
+ }
938
+
939
+ /* TXI-7: where the focus style is glow, the glow around the container while the input is focused (no ring ever). */
940
+ ${focusGlow((focus) => (focus === ':focus-visible' ? `.field:has(${ENTRY_FOCUS}) .container` : `.field[data-focus-style='glow']:has(${ENTRY_FOCUS}) .container`))}
941
+ /* A filled box's bottom corners are container.shape-bottom's: the glow follows them. */
942
+ ${focusGlowEnds((focus) => (focus === ':focus-visible' ? `${FILLED}:has(${ENTRY_FOCUS}) .container` : `${FILLED}[data-focus-style='glow']:has(${ENTRY_FOCUS}) .container`), `var(${BOX}-container-shape-bottom)`)}
943
+
944
+ /* TXI-39: the resize grip of a field resized by hand — a glyph of the icon set at resize-grip.size, resize-grip.inset
945
+ from the container's bottom edge and from its end edge (the bottom-left corner in right-to-left, TXI-24), in its
946
+ resize-grip color, over the text and inside a stacked field's inner line. It is never mirrored (TXI-35).
947
+ TXI-40: its hit area is the minimum target, centred on the glyph and reaching past the container's edges; a fine
948
+ pointer over it shows the resize cursor of the axes it resizes. TXI-41: keyboard focus is shown around the glyph as
949
+ the focus style names; focus gained by a pointer is not, and there is no state layer and no pressed answer. */
950
+ ${iconGlyph('.grip-glyph', { size: `${OWN}-resize-grip-size`, selected: '.never-selected', duration: `${BOX}-motion-state-duration`, easing: `${BOX}-motion-state-easing` })}
951
+ .grip {
952
+ position: absolute;
953
+ z-index: 2;
954
+ inset-block-end: var(${unsafeCSS(OWN)}-resize-grip-inset);
955
+ inset-inline-end: var(${unsafeCSS(OWN)}-resize-grip-inset);
956
+ display: flex;
957
+ inline-size: var(${unsafeCSS(OWN)}-resize-grip-size);
958
+ block-size: var(${unsafeCSS(OWN)}-resize-grip-size);
959
+ ${unsafeCSS(cornerRadius('--tanrei-sys-shape-corner-none'))}
960
+ color: var(--_rg);
961
+ cursor: ns-resize;
962
+ touch-action: none;
963
+ -webkit-tap-highlight-color: transparent;
964
+ transition: color var(${unsafeCSS(BOX)}-motion-state-duration) var(${unsafeCSS(BOX)}-motion-state-easing);
965
+ }
966
+ .grip:focus {
967
+ outline: none;
968
+ }
969
+ /* Until the icon set can draw the glyph nothing stands in its place (GlyphDrawnController sets data-drawn): the grip
970
+ keeps its box, its hit area and its keys. */
971
+ .grip-glyph {
972
+ visibility: hidden;
973
+ }
974
+ .grip-glyph[data-drawn] {
975
+ visibility: visible;
976
+ }
977
+ .grip-glyph > .ink {
978
+ display: inline-block;
979
+ }
980
+ .field[data-axis='both'] .grip {
981
+ cursor: nwse-resize;
982
+ }
983
+ :host(:dir(rtl)) .field[data-axis='both'] .grip {
984
+ cursor: nesw-resize;
985
+ }
986
+ ${minimumTarget('.grip')}
987
+ ${focusRing((focus) => `.grip${focus}`)}
988
+ /* TXI-39: what a field resized both ways is never narrower than, beside its paddings and icons: sys.target.touch. */
989
+ .touch-probe {
990
+ position: absolute;
991
+ inline-size: var(--tanrei-sys-target-touch);
992
+ block-size: 0;
993
+ visibility: hidden;
994
+ pointer-events: none;
995
+ }
996
+
997
+ /* TXI-16: corner smoothing, the shared rule, on the container; the outline's pieces inherit its curve. */
998
+ ${shape}
999
+
1000
+ /* TXI-36: the floating label, and the copies it is measured by, are a run of their own, in the direction of their
1001
+ first strong character, so a left-to-right word keeps its order in a right-to-left field; their lines are still
1002
+ aligned by the layout, to its start edge (src/styles/product-text.ts). */
1003
+ ${productText(':is(.label, .measure)', { align: 'start' })}
1004
+
1005
+ /* TXI-19: the count, announced politely when typing pauses, and drawn nowhere. */
1006
+ .announcer {
1007
+ position: absolute;
1008
+ inline-size: 1px;
1009
+ block-size: 1px;
1010
+ margin: -1px;
1011
+ padding: 0;
1012
+ overflow: hidden;
1013
+ clip-path: inset(50%);
1014
+ white-space: nowrap;
1015
+ border: 0;
1016
+ }
1017
+
1018
+ /* TXI-14: where motion is reduced, the label and the states change at once. */
1019
+ @media (prefers-reduced-motion: reduce) {
1020
+ .field,
1021
+ .container,
1022
+ .input,
1023
+ .label,
1024
+ .asterisk,
1025
+ .row,
1026
+ .literal,
1027
+ .segment::before,
1028
+ .grip,
1029
+ .edge,
1030
+ .prefix,
1031
+ .suffix,
1032
+ .icon,
1033
+ .outline > span,
1034
+ .outline-notch,
1035
+ .indicator {
1036
+ transition: none !important;
1037
+ }
1038
+ }
1039
+ @media (forced-colors: active) {
1040
+ .container {
1041
+ border: 1px solid FieldText;
1042
+ }
1043
+ .outline > span,
1044
+ .edge,
1045
+ .indicator {
1046
+ display: none;
1047
+ }
1048
+ .label,
1049
+ .asterisk,
1050
+ .row,
1051
+ .grip,
1052
+ .prefix,
1053
+ .suffix {
1054
+ color: FieldText;
1055
+ }
1056
+ /* The focused segment takes the system's highlight. */
1057
+ .segment:focus {
1058
+ background: Highlight;
1059
+ color: HighlightText;
1060
+ }
1061
+ ${unsafeCSS(DISABLED)} :is(.container, .label, .asterisk, .input, .row) {
1062
+ color: GrayText;
1063
+ border-color: GrayText;
1064
+ outline-color: GrayText;
1065
+ }
1066
+ .field:has(${unsafeCSS(ENTRY_FOCUS)}) .container {
1067
+ outline: 2px solid Highlight;
1068
+ }
1069
+ }
1070
+ `;
1071
+ //# sourceMappingURL=text-input.styles.js.map