@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,812 @@
1
+ /*
2
+ * Accordion (specs/accordion.spec.json, ACC-1 to ACC-35): content that a row shows and hides in
3
+ * place — one item is a single disclosure, several are a set.
4
+ *
5
+ * `<tanrei-accordion>` is an element with no shadow root around the product's own native `details` elements, which
6
+ * stay in the document: they open and close, keep their place in the tab order, carry the expanded state and are
7
+ * found, read, translated and printed as the page's content before any script runs and without it.
8
+ *
9
+ * <tanrei-accordion variant="outlined" density="compact" separation="gap" exclusive>
10
+ * <details open>
11
+ * <summary>
12
+ * <span class="tanrei-icon" aria-hidden="true">palette</span>
13
+ * Colors
14
+ * <span data-supporting-text>Roles, palettes and the six schemes</span>
15
+ * <span data-trailing-text>48 roles</span>
16
+ * </summary>
17
+ * <p>Every color a component reads is a role.</p>
18
+ * </details>
19
+ * <details>
20
+ * <summary><h3>A label that is a heading</h3></summary>
21
+ * …
22
+ * </details>
23
+ * <details>
24
+ * <summary aria-disabled="true" tabindex="-1">A disabled item</summary>
25
+ * …
26
+ * </details>
27
+ * </tanrei-accordion>
28
+ *
29
+ * Attributes of the wrapper: `variant` (plain | outlined), `density` (regular | compact), `separation` (auto |
30
+ * divider | gap), `exclusive`. An item is a `<details>` (its own `open`, its own `toggle`, and `name` for one open
31
+ * at a time without script). The label is the summary's text, or ONE element in its place (a heading of the page's
32
+ * outline, or a span around text with inline content). The chevron is drawn by this stylesheet and the icon font
33
+ * (icons.css): without them it is not drawn and its box is kept.
34
+ *
35
+ * This stylesheet draws everything, before and without script (an element that is not yet defined is still an
36
+ * element). The element (src/components/accordion/accordion.ts) adds what a stylesheet cannot, and writes here:
37
+ *
38
+ * data-pressed (on a summary) the answer to a press the system names: overlay, ripple, dim, none (ACC-22)
39
+ * data-focus-style (on a summary) the focus style, where the browser has no style queries (ACC-23)
40
+ * data-separation (on the wrapper) the separation the tokens name, where the browser has no style queries (ACC-10)
41
+ * data-glyphs="pending" (wrapper) the icon set cannot draw a glyph yet: none is drawn, every box is kept (ACC-33)
42
+ * data-tanrei-moving (on a details) a pose of the height motion, where the browser cannot animate to `auto` in
43
+ * CSS (ACC-13): measure, opening-from, opening, closing; with --_acc-size, the
44
+ * content's height from ONE measurement
45
+ * data-tanrei-at-once (on a details) this change of open is drawn without motion (ACC-12's first frame, ACC-16)
46
+ *
47
+ * Every value is a `--tanrei-comp-accordion-*` token, or the system's focus, target, icon and press-hold tokens.
48
+ *
49
+ * HOW IT IS WRITTEN
50
+ *
51
+ * - Every selector starts at the element's name and has no specificity (`:where()`; a rule on a pseudo-element has a
52
+ * pseudo-element's), so one class of the product's wins, and the ORDER of the rules decides between two of them.
53
+ * The one exception is the icon, which must win over icons.css's own class.
54
+ * - A rule reaches the accordion's own items by child combinators only: an accordion inside an item's content is
55
+ * drawn by its own attributes (ACC-32), and nothing else in the content is styled at all (ACC-8).
56
+ * - The header is a grid: [icon] [text] [trailing] [chevron]. A label of text is the grid's anonymous item and falls
57
+ * into the first free cell of the first row, which is the text column; the supporting text is the second row of
58
+ * that column.
59
+ * - The edge of the outlined look and the line between two items are drawn OVER the items they bound (an item's
60
+ * `::after` and `::before`, out of the flow, under the header): they take no room, so the two looks and the two
61
+ * separations lay everything out alike (ACC-9, ACC-10). They are borders, which forced colors keep, and their
62
+ * widths are properties of the item, so that a style query on the wrapper changes them (a pseudo-element of the
63
+ * wrapper itself is not drawn again by every engine when the answer changes).
64
+ * - The content's box is the browser's own `::details-content`: its inset, the space under it and its height motion
65
+ * are set there, so nothing wraps the product's content. Open, it is not clipped: a focus ring inside it may reach
66
+ * past its edge. It is clipped only while its height moves.
67
+ * - The state rules, the focus indicator and the ripple's layer say what `stateRules()`, `focusRing()` and
68
+ * `rippleStyles()` (src/primitives) say for a shadow root; they are restated here for an element of the document.
69
+ * - Pressed: with the package's script it is `data-pressed` (the shared press primitive). Without it, `:active` is
70
+ * the overlay, held for press-hold by a delayed step of `--_acc-held-image` and `--_acc-held-clip`.
71
+ * - The corner rule (src/styles/shape.ts) is written by the build in place of the `accordion:shape` mark.
72
+ * - Names that begin `--_acc-` are private.
73
+ */
74
+ /* No custom property is registered by this stylesheet: one registered name in a document makes every element on which
75
+ a transition starts cost Chromium 0.7 ms a restyle on a page of the tokens (src/styles/registered-properties.ts).
76
+ What a registered name once did here is done without one:
77
+ - A header's part whose font is its own (the icon, the chevron, the trailing text) centres itself on the label's
78
+ first line by saying `1lh` in its own `line-height` — there the unit is the PARENT's line, the summary's, as a
79
+ length — and reading it back as its own `1lh`. A glyph's one line of text, then taller than its box, is centred
80
+ on the box by a flex container; the trailing text is one line, and stands in the middle of that line.
81
+ - The press no script answers is held by two names that step (see the header).
82
+ - `--_acc-open` is the item's own clock: 0 closed, 1 open, changed over the disclosure motion — in one step, being
83
+ no number to the browser. Nothing is drawn from it; its transition is how the script knows that the motion runs,
84
+ and when it ends (a transition of `::details-content` is not told to the page by any engine). */
85
+
86
+ @layer tanrei.components {
87
+ /* ── The corners (ACC-23): an item's in the outlined look, and a header's ───────────────────────────────────── */
88
+ :where(tanrei-accordion) > :where(details),
89
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
90
+ & {
91
+ --tanrei-corner-pill: 0;
92
+ }
93
+ & {
94
+ --_corner-scale: 1;
95
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
96
+ }
97
+ @supports (corner-shape: superellipse(log(2, 2))) {
98
+ & {
99
+ --_corner-smoothing: calc(var(--tanrei-sys-shape-corner-smoothing, 0) * (1 - var(--tanrei-corner-pill, 0)));
100
+ --_corner-scale: calc(1 + 0.4 * var(--_corner-smoothing));
101
+ corner-shape: superellipse(log(calc(2 + var(--_corner-smoothing)), 2));
102
+ }
103
+ }
104
+ &::before,
105
+ &::after {
106
+ corner-shape: inherit;
107
+ }
108
+ }
109
+
110
+ /* ── The column (ACC-1): as wide as its layout, no space, no size and no look of its own ────────────────────── */
111
+ :where(tanrei-accordion) {
112
+ /* ACC-3 to ACC-6, ACC-17, ACC-20: the look's colors in each state (ACC-34: any other variant is the default's). */
113
+ --_acc-container: var(--tanrei-comp-accordion-plain-container-color);
114
+ --_acc-label: var(--tanrei-comp-accordion-plain-label-color);
115
+ --_acc-supporting: var(--tanrei-comp-accordion-plain-supporting-text-color);
116
+ --_acc-trailing: var(--tanrei-comp-accordion-plain-trailing-text-color);
117
+ --_acc-icon: var(--tanrei-comp-accordion-plain-icon-color);
118
+ --_acc-chevron: var(--tanrei-comp-accordion-plain-chevron-color);
119
+ --_acc-hovered-container: var(--tanrei-comp-accordion-plain-hovered-container-color);
120
+ --_acc-hovered-label: var(--tanrei-comp-accordion-plain-hovered-label-color);
121
+ --_acc-hovered-supporting: var(--tanrei-comp-accordion-plain-hovered-supporting-text-color);
122
+ --_acc-hovered-trailing: var(--tanrei-comp-accordion-plain-hovered-trailing-text-color);
123
+ --_acc-hovered-icon: var(--tanrei-comp-accordion-plain-hovered-icon-color);
124
+ --_acc-hovered-chevron: var(--tanrei-comp-accordion-plain-hovered-chevron-color);
125
+ --_acc-focused-container: var(--tanrei-comp-accordion-plain-focused-container-color);
126
+ --_acc-focused-label: var(--tanrei-comp-accordion-plain-focused-label-color);
127
+ --_acc-focused-supporting: var(--tanrei-comp-accordion-plain-focused-supporting-text-color);
128
+ --_acc-focused-trailing: var(--tanrei-comp-accordion-plain-focused-trailing-text-color);
129
+ --_acc-focused-icon: var(--tanrei-comp-accordion-plain-focused-icon-color);
130
+ --_acc-focused-chevron: var(--tanrei-comp-accordion-plain-focused-chevron-color);
131
+ --_acc-pressed-container: var(--tanrei-comp-accordion-plain-pressed-container-color);
132
+ --_acc-pressed-label: var(--tanrei-comp-accordion-plain-pressed-label-color);
133
+ --_acc-pressed-supporting: var(--tanrei-comp-accordion-plain-pressed-supporting-text-color);
134
+ --_acc-pressed-trailing: var(--tanrei-comp-accordion-plain-pressed-trailing-text-color);
135
+ --_acc-pressed-icon: var(--tanrei-comp-accordion-plain-pressed-icon-color);
136
+ --_acc-pressed-chevron: var(--tanrei-comp-accordion-plain-pressed-chevron-color);
137
+ --_acc-disabled-container: var(--tanrei-comp-accordion-plain-disabled-container-color);
138
+ --_acc-disabled-label: var(--tanrei-comp-accordion-plain-disabled-label-color);
139
+ --_acc-disabled-supporting: var(--tanrei-comp-accordion-plain-disabled-supporting-text-color);
140
+ --_acc-disabled-trailing: var(--tanrei-comp-accordion-plain-disabled-trailing-text-color);
141
+ --_acc-disabled-icon: var(--tanrei-comp-accordion-plain-disabled-icon-color);
142
+ --_acc-disabled-chevron: var(--tanrei-comp-accordion-plain-disabled-chevron-color);
143
+ /* ACC-2 to ACC-8: the density's sizes and text styles (ACC-34: any other density is the default's). */
144
+ --_acc-height: var(--tanrei-comp-accordion-container-height-regular);
145
+ --_acc-pad-block: var(--tanrei-comp-accordion-container-padding-block-regular);
146
+ --_acc-pad-inline: var(--tanrei-comp-accordion-container-padding-inline-regular);
147
+ --_acc-label-font: var(--tanrei-comp-accordion-label-typescale-regular-font);
148
+ --_acc-label-tracking: var(--tanrei-comp-accordion-label-typescale-regular-letter-spacing);
149
+ --_acc-supporting-font: var(--tanrei-comp-accordion-supporting-text-typescale-regular-font);
150
+ --_acc-supporting-tracking: var(--tanrei-comp-accordion-supporting-text-typescale-regular-letter-spacing);
151
+ --_acc-trailing-font: var(--tanrei-comp-accordion-trailing-text-typescale-regular-font);
152
+ --_acc-trailing-tracking: var(--tanrei-comp-accordion-trailing-text-typescale-regular-letter-spacing);
153
+ --_acc-icon-size: var(--tanrei-comp-accordion-icon-size-regular);
154
+ --_acc-chevron-size: var(--tanrei-comp-accordion-chevron-size-regular);
155
+ --_acc-content-end: var(--tanrei-comp-accordion-content-padding-block-end-regular);
156
+ /* ACC-10: the separation this accordion draws — its attribute's, else comp.accordion.separation's. */
157
+ --_acc-separation: var(--tanrei-comp-accordion-separation);
158
+ --_acc-line-color: var(--tanrei-comp-accordion-divider-color);
159
+ --_acc-edge-color: var(--tanrei-comp-accordion-outline-color);
160
+ /* ACC-28, ACC-31: start as a side, by the layout direction — not by a text's own. */
161
+ --_acc-start: left;
162
+
163
+ display: grid;
164
+ grid-template-columns: minmax(0, 1fr);
165
+ box-sizing: border-box;
166
+ margin: 0;
167
+ padding: 0;
168
+ }
169
+ /* ACC-35: no items — nothing is drawn, no space is taken. */
170
+ :where(tanrei-accordion[hidden], tanrei-accordion:not(:has(> details))) {
171
+ display: none;
172
+ }
173
+ :where(tanrei-accordion):dir(rtl) {
174
+ --_acc-start: right;
175
+ }
176
+ :where(tanrei-accordion[density='compact']) {
177
+ --_acc-height: var(--tanrei-comp-accordion-container-height-compact);
178
+ --_acc-pad-block: var(--tanrei-comp-accordion-container-padding-block-compact);
179
+ --_acc-pad-inline: var(--tanrei-comp-accordion-container-padding-inline-compact);
180
+ --_acc-label-font: var(--tanrei-comp-accordion-label-typescale-compact-font);
181
+ --_acc-label-tracking: var(--tanrei-comp-accordion-label-typescale-compact-letter-spacing);
182
+ --_acc-supporting-font: var(--tanrei-comp-accordion-supporting-text-typescale-compact-font);
183
+ --_acc-supporting-tracking: var(--tanrei-comp-accordion-supporting-text-typescale-compact-letter-spacing);
184
+ --_acc-trailing-font: var(--tanrei-comp-accordion-trailing-text-typescale-compact-font);
185
+ --_acc-trailing-tracking: var(--tanrei-comp-accordion-trailing-text-typescale-compact-letter-spacing);
186
+ --_acc-icon-size: var(--tanrei-comp-accordion-icon-size-compact);
187
+ --_acc-chevron-size: var(--tanrei-comp-accordion-chevron-size-compact);
188
+ --_acc-content-end: var(--tanrei-comp-accordion-content-padding-block-end-compact);
189
+ }
190
+ :where(tanrei-accordion[separation='divider']) {
191
+ --_acc-separation: divider;
192
+ }
193
+ :where(tanrei-accordion[separation='gap']) {
194
+ --_acc-separation: gap;
195
+ }
196
+
197
+ /* ── The outlined look (ACC-9): its colors (its edge is drawn by its items, below) ──────────────────────────── */
198
+ :where(tanrei-accordion[variant='outlined']) {
199
+ --_acc-container: var(--tanrei-comp-accordion-outlined-container-color);
200
+ --_acc-label: var(--tanrei-comp-accordion-outlined-label-color);
201
+ --_acc-supporting: var(--tanrei-comp-accordion-outlined-supporting-text-color);
202
+ --_acc-trailing: var(--tanrei-comp-accordion-outlined-trailing-text-color);
203
+ --_acc-icon: var(--tanrei-comp-accordion-outlined-icon-color);
204
+ --_acc-chevron: var(--tanrei-comp-accordion-outlined-chevron-color);
205
+ --_acc-hovered-container: var(--tanrei-comp-accordion-outlined-hovered-container-color);
206
+ --_acc-hovered-label: var(--tanrei-comp-accordion-outlined-hovered-label-color);
207
+ --_acc-hovered-supporting: var(--tanrei-comp-accordion-outlined-hovered-supporting-text-color);
208
+ --_acc-hovered-trailing: var(--tanrei-comp-accordion-outlined-hovered-trailing-text-color);
209
+ --_acc-hovered-icon: var(--tanrei-comp-accordion-outlined-hovered-icon-color);
210
+ --_acc-hovered-chevron: var(--tanrei-comp-accordion-outlined-hovered-chevron-color);
211
+ --_acc-focused-container: var(--tanrei-comp-accordion-outlined-focused-container-color);
212
+ --_acc-focused-label: var(--tanrei-comp-accordion-outlined-focused-label-color);
213
+ --_acc-focused-supporting: var(--tanrei-comp-accordion-outlined-focused-supporting-text-color);
214
+ --_acc-focused-trailing: var(--tanrei-comp-accordion-outlined-focused-trailing-text-color);
215
+ --_acc-focused-icon: var(--tanrei-comp-accordion-outlined-focused-icon-color);
216
+ --_acc-focused-chevron: var(--tanrei-comp-accordion-outlined-focused-chevron-color);
217
+ --_acc-pressed-container: var(--tanrei-comp-accordion-outlined-pressed-container-color);
218
+ --_acc-pressed-label: var(--tanrei-comp-accordion-outlined-pressed-label-color);
219
+ --_acc-pressed-supporting: var(--tanrei-comp-accordion-outlined-pressed-supporting-text-color);
220
+ --_acc-pressed-trailing: var(--tanrei-comp-accordion-outlined-pressed-trailing-text-color);
221
+ --_acc-pressed-icon: var(--tanrei-comp-accordion-outlined-pressed-icon-color);
222
+ --_acc-pressed-chevron: var(--tanrei-comp-accordion-outlined-pressed-chevron-color);
223
+ --_acc-disabled-container: var(--tanrei-comp-accordion-outlined-disabled-container-color);
224
+ --_acc-disabled-label: var(--tanrei-comp-accordion-outlined-disabled-label-color);
225
+ --_acc-disabled-supporting: var(--tanrei-comp-accordion-outlined-disabled-supporting-text-color);
226
+ --_acc-disabled-trailing: var(--tanrei-comp-accordion-outlined-disabled-trailing-text-color);
227
+ --_acc-disabled-icon: var(--tanrei-comp-accordion-outlined-disabled-icon-color);
228
+ --_acc-disabled-chevron: var(--tanrei-comp-accordion-outlined-disabled-chevron-color);
229
+ }
230
+
231
+ /* ── An item (ACC-2, ACC-7): a header and, while open, its content ──────────────────────────────────────────── */
232
+ :where(tanrei-accordion) > :where(details) {
233
+ --tanrei-corner-radius: 0px;
234
+ --tanrei-corner-pill: 0;
235
+ --_acc-open: 0;
236
+ /* ACC-10: the line above this item — none above the first. */
237
+ --_acc-line-width: 0px;
238
+ position: relative;
239
+ isolation: isolate;
240
+ box-sizing: border-box;
241
+ min-inline-size: 0;
242
+ margin: 0;
243
+ padding: 0;
244
+ border: 0;
245
+ transition: --_acc-open var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing) allow-discrete;
246
+ }
247
+ :where(tanrei-accordion) > :where(details[open]) {
248
+ --_acc-open: 1;
249
+ }
250
+ /* ACC-10, divider: one line between two items that follow each other, over the item's first pixels, so that no
251
+ item is taller for it. (Its width is the item's own property: a line that is not drawn has no width — never a
252
+ transparent one, which forced colors would paint — and what a style query changes is the item, not this.) */
253
+ :where(tanrei-accordion) > :where(details ~ details) {
254
+ --_acc-line-width: var(--tanrei-comp-accordion-divider-thickness);
255
+ }
256
+ :where(tanrei-accordion) > :where(details)::before {
257
+ content: '';
258
+ position: absolute;
259
+ z-index: -1;
260
+ inset-inline: 0;
261
+ inset-block-start: 0;
262
+ border-block-start: var(--_acc-line-width) solid var(--_acc-line-color);
263
+ pointer-events: none;
264
+ }
265
+
266
+ /* ── The outlined look's edge (ACC-9): one hairline around the set, to whose corners everything is cut ──────── */
267
+ /* Each item draws its part of it: the two sides, the top where it is the first and the bottom where it is the
268
+ last, with the set's corners there. Where the items stand apart (below) every item draws all of it. */
269
+ :where(tanrei-accordion[variant='outlined']) > :where(details) {
270
+ --tanrei-corner-radius: var(--tanrei-comp-accordion-outline-shape);
271
+ --tanrei-corner-pill: var(--tanrei-comp-accordion-outline-shape-pill, 0);
272
+ --_acc-edge: var(--tanrei-comp-accordion-outline-width);
273
+ --_acc-edge-start: 0px;
274
+ --_acc-edge-end: 0px;
275
+ /* The set's corner, as this item's header follows it where the header lies in one (ACC-18: the focus ring is the
276
+ header's, and is not cut by the edge). */
277
+ --_acc-corner: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
278
+ --_acc-corner-start: 0px;
279
+ --_acc-corner-end: 0px;
280
+ overflow: clip;
281
+ }
282
+ :where(tanrei-accordion[variant='outlined']) > :where(details:first-of-type) {
283
+ --_acc-edge-start: var(--_acc-edge);
284
+ --_acc-corner-start: var(--_acc-corner);
285
+ }
286
+ :where(tanrei-accordion[variant='outlined']) > :where(details:last-of-type) {
287
+ --_acc-edge-end: var(--_acc-edge);
288
+ --_acc-corner-end: var(--_acc-corner);
289
+ }
290
+ :where(tanrei-accordion[variant='outlined']) > :where(details:not(:first-of-type)) {
291
+ border-start-start-radius: 0;
292
+ border-start-end-radius: 0;
293
+ }
294
+ :where(tanrei-accordion[variant='outlined']) > :where(details:not(:last-of-type)) {
295
+ border-end-start-radius: 0;
296
+ border-end-end-radius: 0;
297
+ }
298
+ :where(tanrei-accordion[variant='outlined']) > :where(details)::after {
299
+ content: '';
300
+ position: absolute;
301
+ z-index: -1;
302
+ inset: 0;
303
+ border: 0 solid var(--_acc-edge-color);
304
+ border-inline-width: var(--_acc-edge);
305
+ border-block-start-width: var(--_acc-edge-start);
306
+ border-block-end-width: var(--_acc-edge-end);
307
+ border-radius: inherit;
308
+ pointer-events: none;
309
+ }
310
+
311
+ /* ── Separation: gap (ACC-10) — by a style query, and by the element where the browser has none ─────────────── */
312
+ @container style(--_acc-separation: gap) {
313
+ :where(tanrei-accordion) > :where(details ~ details) {
314
+ --_acc-line-width: 0px;
315
+ margin-block-start: var(--tanrei-comp-accordion-item-gap);
316
+ }
317
+ :where(tanrei-accordion[variant='outlined']) > :where(details) {
318
+ --_acc-edge-start: var(--_acc-edge);
319
+ --_acc-edge-end: var(--_acc-edge);
320
+ --_acc-corner-start: var(--_acc-corner);
321
+ --_acc-corner-end: var(--_acc-corner);
322
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
323
+ }
324
+ }
325
+ :where(tanrei-accordion[data-separation='gap']) > :where(details ~ details) {
326
+ --_acc-line-width: 0px;
327
+ margin-block-start: var(--tanrei-comp-accordion-item-gap);
328
+ }
329
+ :where(tanrei-accordion[data-separation='gap'][variant='outlined']) > :where(details) {
330
+ --_acc-edge-start: var(--_acc-edge);
331
+ --_acc-edge-end: var(--_acc-edge);
332
+ --_acc-corner-start: var(--_acc-corner);
333
+ --_acc-corner-end: var(--_acc-corner);
334
+ border-radius: calc(var(--tanrei-corner-radius) * var(--_corner-scale));
335
+ }
336
+
337
+ /* ── The header (ACC-2): one row, at least the density's height and the minimum target (ACC-19) ─────────────── */
338
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
339
+ --_acc-now-container: var(--_acc-container);
340
+ --_acc-now-label: var(--_acc-label);
341
+ --_acc-now-supporting: var(--_acc-supporting);
342
+ --_acc-now-trailing: var(--_acc-trailing);
343
+ --_acc-now-icon: var(--_acc-icon);
344
+ --_acc-now-chevron: var(--_acc-chevron);
345
+ --_acc-target: var(--tanrei-sys-target-pointer);
346
+ --tanrei-corner-radius: var(--tanrei-comp-accordion-container-shape);
347
+ --tanrei-corner-pill: var(--tanrei-comp-accordion-container-shape-pill, 0);
348
+ position: relative;
349
+ isolation: isolate;
350
+ display: grid;
351
+ grid-template-columns: [text] minmax(0, 1fr) [chevron] auto;
352
+ column-gap: var(--tanrei-comp-accordion-container-gap);
353
+ align-content: center;
354
+ align-items: start;
355
+ box-sizing: border-box;
356
+ min-block-size: max(var(--_acc-height), var(--_acc-target));
357
+ margin: 0;
358
+ padding-block: var(--_acc-pad-block);
359
+ padding-inline: var(--_acc-pad-inline);
360
+ list-style: none;
361
+ /* ACC-3: the label's text style and color; it wraps and is never cut. */
362
+ font: var(--_acc-label-font);
363
+ letter-spacing: var(--_acc-label-tracking);
364
+ color: var(--_acc-now-label);
365
+ text-align: var(--_acc-start);
366
+ overflow-wrap: break-word;
367
+ background-color: var(--_acc-now-container);
368
+ /* The hold of a press that no script answers (ACC-21). While the header is held down, and for press-hold after,
369
+ the pressed container is drawn as a layer of its own — an image of that one color — and the state's color
370
+ under it is not drawn: the pressed color stands in the state's place, as it does with the script. Both are
371
+ said by two names that only a press changes; each steps back after press-hold, and the two properties that
372
+ read them have no transition, so they follow the names frame by frame. The background's COLOR is never part
373
+ of the hold: it would start its own transition when the press ends, toward the value it has without the hold,
374
+ and fade the pressed color while it is being held. The second layer is there for its clip alone:
375
+ a background's color is clipped as its last layer is, and `text` leaves it behind the header's own glyphs. */
376
+ --_acc-held-image: none;
377
+ --_acc-held-clip: border-box;
378
+ background-image: var(--_acc-held-image);
379
+ background-clip: var(--_acc-held-clip);
380
+ cursor: pointer;
381
+ -webkit-user-select: none;
382
+ user-select: none;
383
+ -webkit-tap-highlight-color: transparent;
384
+ /* (The hold stands first: its delay is where the script reads sys.motion.duration.press-hold as a time.) */
385
+ transition:
386
+ --_acc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
387
+ --_acc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold),
388
+ background-color var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing),
389
+ color var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing),
390
+ opacity var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing);
391
+ transition-behavior: allow-discrete;
392
+ }
393
+ @media (pointer: coarse) {
394
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
395
+ --_acc-target: var(--tanrei-sys-target-touch);
396
+ }
397
+ }
398
+ /* A header that lies in a corner of the outlined look's edge has that corner, where it is rounder than its own:
399
+ the top corners of the item's, and the bottom ones while the item is closed. */
400
+ :where(tanrei-accordion[variant='outlined']) > :where(details) > :where(summary) {
401
+ border-start-start-radius: max(calc(var(--tanrei-corner-radius) * var(--_corner-scale)), var(--_acc-corner-start));
402
+ border-start-end-radius: max(calc(var(--tanrei-corner-radius) * var(--_corner-scale)), var(--_acc-corner-start));
403
+ }
404
+ :where(tanrei-accordion[variant='outlined']) > :where(details:not([open])) > :where(summary) {
405
+ border-end-start-radius: max(calc(var(--tanrei-corner-radius) * var(--_corner-scale)), var(--_acc-corner-end));
406
+ border-end-end-radius: max(calc(var(--tanrei-corner-radius) * var(--_corner-scale)), var(--_acc-corner-end));
407
+ }
408
+ /* The browser's own marker is not drawn: the chevron is the mark. */
409
+ :where(tanrei-accordion) > :where(details) > :where(summary)::-webkit-details-marker {
410
+ display: none;
411
+ }
412
+ :where(tanrei-accordion) > :where(details) > :where(summary)::marker {
413
+ content: '';
414
+ }
415
+ /* The columns a header has: an icon's and a trailing text's only where it has one (no room is kept for either). */
416
+ :where(tanrei-accordion) > :where(details) > :where(summary:has(> .tanrei-icon)) {
417
+ grid-template-columns: [icon] auto [text] minmax(0, 1fr) [chevron] auto;
418
+ }
419
+ /* ACC-4: the trailing text's column is as wide as its text and never more than half of the width the header's
420
+ other parts leave, so that the label keeps at least as much as it takes. */
421
+ :where(tanrei-accordion) > :where(details) > :where(summary:has(> [data-trailing-text])) {
422
+ grid-template-columns: [text] minmax(0, 1fr) [trailing] fit-content(calc((100% - var(--_acc-chevron-size) - var(--tanrei-comp-accordion-container-gap) * 2) / 2)) [chevron] auto;
423
+ }
424
+ :where(tanrei-accordion) > :where(details) > :where(summary:has(> .tanrei-icon):has(> [data-trailing-text])) {
425
+ grid-template-columns:
426
+ [icon] auto [text] minmax(0, 1fr) [trailing] fit-content(calc((100% - var(--_acc-icon-size) - var(--_acc-chevron-size) - var(--tanrei-comp-accordion-container-gap) * 3) / 2))
427
+ [chevron] auto;
428
+ }
429
+
430
+ /* ACC-3: the product's own label — a heading, or a span around inline content — in the label's place, style and
431
+ color; its role and its level are its own. ACC-31: text of its own direction. */
432
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where(:not(.tanrei-icon, [data-supporting-text], [data-trailing-text], .ripple)) {
433
+ grid-column: text;
434
+ grid-row: 1;
435
+ min-inline-size: 0;
436
+ margin: 0;
437
+ padding: 0;
438
+ font: inherit;
439
+ letter-spacing: inherit;
440
+ color: inherit;
441
+ text-align: inherit;
442
+ unicode-bidi: plaintext;
443
+ }
444
+ /* ACC-4: the supporting text, under the label; it wraps. */
445
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where([data-supporting-text]) {
446
+ grid-column: text;
447
+ grid-row: 2;
448
+ min-inline-size: 0;
449
+ font: var(--_acc-supporting-font);
450
+ letter-spacing: var(--_acc-supporting-tracking);
451
+ color: var(--_acc-now-supporting);
452
+ text-align: var(--_acc-start);
453
+ unicode-bidi: plaintext;
454
+ transition: color var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing);
455
+ }
456
+ /* ACC-4: the trailing text, one line on the label's first line, cut with an ellipsis where its column ends. */
457
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where([data-trailing-text]) {
458
+ grid-column: trailing;
459
+ grid-row: 1;
460
+ min-inline-size: 0;
461
+ overflow: hidden;
462
+ font: var(--_acc-trailing-font);
463
+ /* One line, as tall as the label's (the summary's `1lh`, which the unit means here): its text stands in the
464
+ middle of the label's first line, as a line of its own height moved down by half the difference did. */
465
+ line-height: 1lh;
466
+ letter-spacing: var(--_acc-trailing-tracking);
467
+ color: var(--_acc-now-trailing);
468
+ text-align: var(--_acc-start);
469
+ text-overflow: ellipsis;
470
+ white-space: nowrap;
471
+ unicode-bidi: plaintext;
472
+ transition: color var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing);
473
+ }
474
+ /* ACC-5: the icon — a glyph of icons.css in the density's box, on the label's first line, outlined whatever an
475
+ ancestor says of a selection. (The glyph's declarations, and its mirroring, are icons.css's: ACC-30.) */
476
+ :where(tanrei-accordion) > :where(details) > :where(summary) > .tanrei-icon.tanrei-icon {
477
+ --_size: var(--_acc-icon-size);
478
+ --_fill: var(--tanrei-sys-icon-fill-unselected);
479
+ --_family: var(--tanrei-sys-icon-family-unselected);
480
+ grid-column: icon;
481
+ grid-row: 1;
482
+ /* The label's line is this box's `1lh` (said in `line-height`, where the unit is the summary's line); the glyph's
483
+ one line, that tall, is centred on its box. */
484
+ display: flex;
485
+ align-items: center;
486
+ line-height: 1lh;
487
+ margin-block-start: calc((1lh - var(--_acc-icon-size)) / 2);
488
+ color: var(--_acc-now-icon);
489
+ vertical-align: baseline;
490
+ }
491
+ /* ACC-6: the chevron — expand_more at the end, turned half a turn while the item is open. Decorative: the state
492
+ is the summary's own. (The glyph's declarations are icons.css's; it is not drawn where icons.css is not loaded.) */
493
+ :where(tanrei-accordion) > :where(details) > :where(summary)::after {
494
+ content: 'expand_more';
495
+ content: 'expand_more' / '';
496
+ grid-column: chevron;
497
+ grid-row: 1;
498
+ /* (As the icon: a flex box whose one line is the label's line high, centred on a box the size of the glyph.) */
499
+ display: flex;
500
+ align-items: center;
501
+ overflow: hidden;
502
+ inline-size: var(--_acc-chevron-size);
503
+ block-size: var(--_acc-chevron-size);
504
+ margin-block-start: calc((1lh - var(--_acc-chevron-size)) / 2);
505
+ font-family: var(--tanrei-sys-icon-family-unselected);
506
+ font-size: var(--_acc-chevron-size);
507
+ font-style: normal;
508
+ font-weight: normal;
509
+ line-height: 1lh;
510
+ letter-spacing: normal;
511
+ text-transform: none;
512
+ white-space: nowrap;
513
+ word-wrap: normal;
514
+ direction: ltr;
515
+ color: var(--_acc-now-chevron);
516
+ pointer-events: none;
517
+ font-feature-settings: 'liga';
518
+ -webkit-font-smoothing: antialiased;
519
+ font-optical-sizing: auto;
520
+ font-variation-settings:
521
+ 'FILL' var(--tanrei-sys-icon-fill-unselected),
522
+ 'wght' var(--tanrei-sys-icon-weight),
523
+ 'GRAD' 0;
524
+ opacity: var(--tanrei-icons, 0);
525
+ transition:
526
+ rotate var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
527
+ color var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing);
528
+ }
529
+ /* The optical size is the box's, written by hand where the engine can turn the box's size into a number: the
530
+ arithmetic and the condition are src/styles/icons.ts's, written in place by the build (writeGlyphAxes). */
531
+ @supports (font-variation-settings: 'opsz' tan(atan2(1em, 1px))) {
532
+ :where(tanrei-accordion) > :where(details) > :where(summary)::after {
533
+ font-variation-settings: 'FILL' var(--tanrei-sys-icon-fill-unselected), 'wght' var(--tanrei-sys-icon-weight), 'GRAD' 0, 'opsz' clamp(var(--tanrei-sys-icon-optical-size-min), tan(atan2(var(--_acc-chevron-size), 1px)), var(--tanrei-sys-icon-optical-size-max));
534
+ }
535
+ }
536
+ :where(tanrei-accordion) > :where(details[open]) > :where(summary)::after {
537
+ rotate: 0.5turn;
538
+ }
539
+ /* ACC-33: while the icon set cannot draw a glyph, none is drawn and every box is kept. */
540
+ :where(tanrei-accordion[data-glyphs='pending']) > :where(details) > :where(summary)::after,
541
+ :where(tanrei-accordion[data-glyphs='pending']) > :where(details) > :where(summary) > :where(.tanrei-icon) {
542
+ visibility: hidden;
543
+ }
544
+
545
+ /* ── The content (ACC-8): inset to the header's first part, nothing above it, the density's space under it ──── */
546
+ @supports selector(::details-content) {
547
+ :where(tanrei-accordion) > :where(details)::details-content {
548
+ box-sizing: border-box;
549
+ block-size: 0;
550
+ padding-inline: var(--_acc-pad-inline);
551
+ padding-block-end: 0;
552
+ /* ACC-13: closed, and while it closes, it is out of the focus order and of assistive technology at once. */
553
+ interactivity: inert;
554
+ overflow: clip;
555
+ }
556
+ :where(tanrei-accordion) > :where(details[open])::details-content {
557
+ /* (Without `calc-size()` the declaration is not valid where --_acc-size is not set, and the height is auto.) */
558
+ block-size: var(--_acc-size, calc-size(auto, size));
559
+ padding-block-end: var(--_acc-content-end);
560
+ interactivity: auto;
561
+ overflow: visible;
562
+ }
563
+ /* ACC-13, in CSS, where the browser can move a height to `auto`: the content is laid out once, at its size, and
564
+ only how much of it is seen changes. It stays drawn while it closes (content-visibility is held to the end),
565
+ clipped from the first frame of closing (step-start) to the last frame of opening (step-end). */
566
+ @supports (block-size: calc-size(auto, size)) {
567
+ :where(tanrei-accordion) > :where(details)::details-content {
568
+ transition:
569
+ block-size var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
570
+ padding-block-end var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
571
+ content-visibility var(--tanrei-comp-accordion-motion-disclosure-duration) allow-discrete,
572
+ overflow var(--tanrei-comp-accordion-motion-disclosure-duration) step-start allow-discrete;
573
+ }
574
+ :where(tanrei-accordion) > :where(details[open])::details-content {
575
+ transition:
576
+ block-size var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
577
+ padding-block-end var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
578
+ content-visibility var(--tanrei-comp-accordion-motion-disclosure-duration) allow-discrete,
579
+ overflow var(--tanrei-comp-accordion-motion-disclosure-duration) step-end allow-discrete;
580
+ }
581
+ }
582
+ /* ACC-13, by the element, elsewhere: four poses. `measure` shows the content at its size, once, to be read;
583
+ `opening-from` is the closed box of an item that is open; `opening` and `closing` move between 0 and
584
+ --_acc-size, the content drawn and clipped throughout. */
585
+ :where(tanrei-accordion) > :where(details[data-tanrei-moving='measure'])::details-content {
586
+ block-size: var(--_acc-size, auto);
587
+ padding-block-end: var(--_acc-content-end);
588
+ content-visibility: visible;
589
+ overflow: clip;
590
+ }
591
+ :where(tanrei-accordion) > :where(details[data-tanrei-moving='opening-from'])::details-content {
592
+ block-size: 0;
593
+ padding-block-end: 0;
594
+ overflow: clip;
595
+ }
596
+ :where(tanrei-accordion) > :where(details[data-tanrei-moving='opening'])::details-content,
597
+ :where(tanrei-accordion) > :where(details[data-tanrei-moving='closing'])::details-content {
598
+ content-visibility: visible;
599
+ overflow: clip;
600
+ transition:
601
+ block-size var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing),
602
+ padding-block-end var(--tanrei-comp-accordion-motion-disclosure-duration) var(--tanrei-comp-accordion-motion-disclosure-easing);
603
+ }
604
+ }
605
+ /* A browser without `::details-content`: the inset is the item's own padding, with the header pulled back out. */
606
+ @supports not selector(::details-content) {
607
+ :where(tanrei-accordion) > :where(details) {
608
+ padding-inline: var(--_acc-pad-inline);
609
+ }
610
+ :where(tanrei-accordion) > :where(details[open]) {
611
+ padding-block-end: var(--_acc-content-end);
612
+ }
613
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
614
+ margin-inline: calc(var(--_acc-pad-inline) * -1);
615
+ }
616
+ }
617
+
618
+ /* ── States (ACC-17): pressed over focused over hovered, each from its own tokens ───────────────────────────── */
619
+ @media (hover: hover) {
620
+ :where(tanrei-accordion) > :where(details) > :where(summary:hover) {
621
+ --_acc-now-container: var(--_acc-hovered-container);
622
+ --_acc-now-label: var(--_acc-hovered-label);
623
+ --_acc-now-supporting: var(--_acc-hovered-supporting);
624
+ --_acc-now-trailing: var(--_acc-hovered-trailing);
625
+ --_acc-now-icon: var(--_acc-hovered-icon);
626
+ --_acc-now-chevron: var(--_acc-hovered-chevron);
627
+ opacity: var(--tanrei-comp-accordion-hovered-opacity);
628
+ }
629
+ }
630
+ /* ACC-18: the focus indicator, inside the header's row, so that nothing around it cuts it; never animated, never
631
+ for a pointer. The outer stroke on the row's edge, the inner stroke (where the system has one) within it. */
632
+ :where(tanrei-accordion) > :where(details) > :where(summary:focus-visible) {
633
+ --_acc-now-container: var(--_acc-focused-container);
634
+ --_acc-now-label: var(--_acc-focused-label);
635
+ --_acc-now-supporting: var(--_acc-focused-supporting);
636
+ --_acc-now-trailing: var(--_acc-focused-trailing);
637
+ --_acc-now-icon: var(--_acc-focused-icon);
638
+ --_acc-now-chevron: var(--_acc-focused-chevron);
639
+ opacity: var(--tanrei-comp-accordion-focused-opacity);
640
+ outline: var(--tanrei-sys-focus-outer-width) solid var(--tanrei-sys-color-focus-ring);
641
+ outline-offset: calc(var(--tanrei-sys-focus-outer-width) * -1);
642
+ }
643
+ :where(tanrei-accordion) > :where(details) > :where(summary:focus-visible)::before {
644
+ content: '';
645
+ position: absolute;
646
+ inset: var(--tanrei-sys-focus-outer-width);
647
+ border: var(--tanrei-sys-focus-inner-width) solid var(--tanrei-sys-color-focus-ring-inner);
648
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--tanrei-sys-focus-outer-width)));
649
+ pointer-events: none;
650
+ }
651
+ /* ACC-23, focus-style: glow — the same two colors as a halo inside the row; read by a style query, and from
652
+ data-focus-style (written by the element when focus arrives) where there are none. */
653
+ @container style(--tanrei-sys-behavior-focus-style: glow) {
654
+ :where(tanrei-accordion) > :where(details) > :where(summary:focus-visible) {
655
+ /* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
656
+ outline-color: transparent;
657
+ }
658
+ :where(tanrei-accordion) > :where(details) > :where(summary:focus-visible)::before {
659
+ --_acc-glow-inset: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
660
+ inset: var(--_acc-glow-inset);
661
+ border: 0;
662
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_acc-glow-inset)));
663
+ box-shadow:
664
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
665
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
666
+ }
667
+ }
668
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-focus-style='glow']:focus-visible) {
669
+ /* Transparent, not none: forced colors repaint it in a system color, where a box-shadow is dropped. */
670
+ outline-color: transparent;
671
+ }
672
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-focus-style='glow']:focus-visible)::before {
673
+ --_acc-glow-inset: calc((var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) * 2);
674
+ inset: var(--_acc-glow-inset);
675
+ border: 0;
676
+ border-radius: max(0px, calc(var(--tanrei-corner-radius) * var(--_corner-scale) - var(--_acc-glow-inset)));
677
+ box-shadow:
678
+ 0 0 var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-focus-inner-width) var(--tanrei-sys-color-focus-ring-inner),
679
+ 0 0 var(--tanrei-sys-focus-outer-width) calc(var(--tanrei-sys-focus-inner-width) + var(--tanrei-sys-focus-outer-width)) var(--tanrei-sys-color-focus-ring);
680
+ }
681
+ /* ACC-21, without script: the overlay at once, and the two names keep the container for press-hold after. */
682
+ :where(tanrei-accordion) > :where(details) > :where(summary:active:not([data-pressed])) {
683
+ --_acc-held-image: linear-gradient(var(--_acc-pressed-container), var(--_acc-pressed-container)), none;
684
+ --_acc-held-clip: border-box, text;
685
+ --_acc-now-label: var(--_acc-pressed-label);
686
+ --_acc-now-supporting: var(--_acc-pressed-supporting);
687
+ --_acc-now-trailing: var(--_acc-pressed-trailing);
688
+ --_acc-now-icon: var(--_acc-pressed-icon);
689
+ --_acc-now-chevron: var(--_acc-pressed-chevron);
690
+ opacity: var(--tanrei-comp-accordion-pressed-opacity);
691
+ transition-duration: 0s;
692
+ transition-delay: 0s;
693
+ }
694
+ /* ACC-21, ACC-22, with the script: `data-pressed` names the feedback. `none` changes nothing at all. */
695
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-pressed]:not([data-pressed='none'])) {
696
+ transition-duration: 0s;
697
+ }
698
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-pressed='overlay']) {
699
+ --_acc-now-container: var(--_acc-pressed-container);
700
+ --_acc-now-label: var(--_acc-pressed-label);
701
+ --_acc-now-supporting: var(--_acc-pressed-supporting);
702
+ --_acc-now-trailing: var(--_acc-pressed-trailing);
703
+ --_acc-now-icon: var(--_acc-pressed-icon);
704
+ --_acc-now-chevron: var(--_acc-pressed-chevron);
705
+ opacity: var(--tanrei-comp-accordion-pressed-opacity);
706
+ }
707
+ /* ripple, dim: everything but the container color, which stays with the state under the press. */
708
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-pressed='ripple'], summary[data-pressed='dim']) {
709
+ --_acc-now-label: var(--_acc-pressed-label);
710
+ --_acc-now-supporting: var(--_acc-pressed-supporting);
711
+ --_acc-now-trailing: var(--_acc-pressed-trailing);
712
+ --_acc-now-icon: var(--_acc-pressed-icon);
713
+ --_acc-now-chevron: var(--_acc-pressed-chevron);
714
+ opacity: var(--tanrei-comp-accordion-pressed-opacity);
715
+ }
716
+ /* The ripple's layer (src/primitives/ripple.ts adds it and sets --_x, --_y, --_r): the pressed container color,
717
+ clipped to the container and to a circle around the point of contact, under the header's parts. */
718
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where(.ripple) {
719
+ position: absolute;
720
+ z-index: -1;
721
+ inset: 0;
722
+ border-radius: inherit;
723
+ corner-shape: inherit;
724
+ background: var(--_acc-pressed-container);
725
+ pointer-events: none;
726
+ clip-path: circle(var(--_r) at var(--_x) var(--_y));
727
+ animation: tanrei-accordion-ripple var(--tanrei-comp-accordion-motion-feedback-duration) var(--tanrei-comp-accordion-motion-state-easing) both;
728
+ transition: opacity var(--tanrei-comp-accordion-motion-state-duration) var(--tanrei-comp-accordion-motion-state-easing);
729
+ }
730
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where(.ripple.leaving) {
731
+ opacity: 0;
732
+ }
733
+ @keyframes tanrei-accordion-ripple {
734
+ from {
735
+ clip-path: circle(0 at var(--_x) var(--_y));
736
+ }
737
+ }
738
+
739
+ /* ── Disabled (ACC-20): `<summary aria-disabled="true" tabindex="-1">` — its look, and no pointer ───────────── */
740
+ :where(tanrei-accordion) > :where(details) > :where(summary[aria-disabled='true']) {
741
+ --_acc-now-container: var(--_acc-disabled-container);
742
+ --_acc-now-label: var(--_acc-disabled-label);
743
+ --_acc-now-supporting: var(--_acc-disabled-supporting);
744
+ --_acc-now-trailing: var(--_acc-disabled-trailing);
745
+ --_acc-now-icon: var(--_acc-disabled-icon);
746
+ --_acc-now-chevron: var(--_acc-disabled-chevron);
747
+ opacity: var(--tanrei-comp-accordion-disabled-opacity);
748
+ cursor: default;
749
+ pointer-events: none;
750
+ }
751
+
752
+ /* ── Drawn at once (ACC-12, ACC-16), and where motion is reduced (ACC-13) ───────────────────────────────────── */
753
+ :where(tanrei-accordion) > :where(details[data-tanrei-at-once]),
754
+ :where(tanrei-accordion) > :where(details[data-tanrei-at-once])::details-content,
755
+ :where(tanrei-accordion) > :where(details[data-tanrei-at-once]) > :where(summary)::after {
756
+ transition: none;
757
+ }
758
+ @media (prefers-reduced-motion: reduce) {
759
+ :where(tanrei-accordion) > :where(details),
760
+ :where(tanrei-accordion) > :where(details)::details-content,
761
+ :where(tanrei-accordion) > :where(details[data-tanrei-moving])::details-content,
762
+ :where(tanrei-accordion) > :where(details) > :where(summary)::after {
763
+ transition: none;
764
+ }
765
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
766
+ transition:
767
+ --_acc-held-image 0s linear var(--tanrei-sys-motion-duration-press-hold),
768
+ --_acc-held-clip 0s linear var(--tanrei-sys-motion-duration-press-hold);
769
+ transition-behavior: allow-discrete;
770
+ }
771
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where([data-supporting-text], [data-trailing-text]) {
772
+ transition: none;
773
+ }
774
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where(.ripple) {
775
+ animation: none;
776
+ transition: none;
777
+ }
778
+ }
779
+
780
+ /* ── Forced colors (ACC-27): the edge and the lines in the text color, a disabled header in the disabled text's,
781
+ hover and press in a button's, focus in the highlight ────────────────────────────────────────────────────── */
782
+ @media (forced-colors: active) {
783
+ :where(tanrei-accordion) {
784
+ --_acc-line-color: CanvasText;
785
+ --_acc-edge-color: CanvasText;
786
+ }
787
+ :where(tanrei-accordion) > :where(details) > :where(summary) {
788
+ --_acc-forced: CanvasText;
789
+ color: var(--_acc-forced);
790
+ /* A press is the platform's button face (below): no layer of the header's own. */
791
+ background-image: none;
792
+ background-clip: border-box;
793
+ }
794
+ :where(tanrei-accordion) > :where(details) > :where(summary) > :where([data-supporting-text], [data-trailing-text]),
795
+ :where(tanrei-accordion) > :where(details) > :where(summary) > .tanrei-icon.tanrei-icon,
796
+ :where(tanrei-accordion) > :where(details) > :where(summary)::after {
797
+ color: var(--_acc-forced);
798
+ }
799
+ :where(tanrei-accordion) > :where(details) > :where(summary:hover),
800
+ :where(tanrei-accordion) > :where(details) > :where(summary:active),
801
+ :where(tanrei-accordion) > :where(details) > :where(summary[data-pressed]:not([data-pressed='none'])) {
802
+ --_acc-forced: ButtonText;
803
+ background-color: ButtonFace;
804
+ }
805
+ :where(tanrei-accordion) > :where(details) > :where(summary[aria-disabled='true']) {
806
+ --_acc-forced: GrayText;
807
+ }
808
+ :where(tanrei-accordion) > :where(details) > :where(summary:focus-visible) {
809
+ outline-color: Highlight;
810
+ }
811
+ }
812
+ }