@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,296 @@
1
+ import { LitElement, html, nothing } from 'lit';
2
+ import { live } from 'lit/directives/live.js';
3
+ import { hiddenHost } from '../../primitives/hidden.js';
4
+ import { AvailabilityController, GlyphDrawnController, PressController, SelectionController, markConditionChange, report, selectionRippleOrigin, syncFocusStyle, } from '../../primitives/index.js';
5
+ import { styles } from './checkbox.styles.js';
6
+ import { disabledWaitsWhileFocused } from '../../primitives/disabled-while-focused.js';
7
+ import { focusedAtFirst } from '../../primitives/autofocus.js';
8
+ /** CHK-12: the glyphs of the icon set the checkbox draws — the spec's names, not values. */
9
+ const CHECK_GLYPH = 'check';
10
+ const DASH_GLYPH = 'remove';
11
+ /** The elements that hold a set of controls: the nearest one around a checkbox says whose it is (CHK-23, CKG-11). */
12
+ const SETS = 'tanrei-checkbox-group, tanrei-field-group, tanrei-radio-group';
13
+ const GROUP = 'tanrei-checkbox-group';
14
+ /** What a checkbox submits where no `value` was given: the platform's own word, which is no entry of a group's list. */
15
+ const NO_VALUE = 'on';
16
+ /**
17
+ * Lets people turn one independent choice on or off, show a parent choice that is only partly on, and mark a required
18
+ * choice left unmade.
19
+ *
20
+ * Contract: specs/checkbox.spec.json. Every visual value comes from `--tanrei-comp-checkbox-*` tokens, one set per
21
+ * condition (unselected, selected, indeterminate and their `error-` forms) and state: how a state looks is the active
22
+ * design system's decision. How a press is answered and how keyboard focus is drawn are the system's choices of kind
23
+ * (`--tanrei-sys-behavior-*`), read from the cascade.
24
+ *
25
+ * Form-associated: with a `name` it submits `value` (default "on") while checked, resets to its `checked` attribute,
26
+ * honours `required` and a disabled `<fieldset>`, as a native checkbox does. It switches its own `checked` (and clears
27
+ * `indeterminate`) before it fires `input` and `change`. The semantics are a native checkbox in the shadow root, named
28
+ * by `label`; a click on the visible label toggles it.
29
+ *
30
+ * Inside a `<tanrei-checkbox-group>` (CHK-23) it is a choice of that set: its `checked` is the group's — whether the
31
+ * group's list holds its `value` —, it submits nothing itself whatever `name` it carries, `required` is not read, and
32
+ * it fires no `input` and no `change`: the group fires one `change` with the list. A checkbox that carries no `value`
33
+ * has none there (the "on" a bare checkbox submits is not read). Taken out of the group it is as it is anywhere.
34
+ *
35
+ * @tag tanrei-checkbox
36
+ * @csspart container - The round state layer behind the box (hover, focus, press).
37
+ * @csspart box - The box: its fill and outline.
38
+ * @csspart mark - The check and the dash: the icon set's `check` and `remove` glyphs, centered on the box.
39
+ * @csspart label - The visible label.
40
+ * @attr {string} form - The id of the form the checkbox belongs to, where it stands outside it: the platform's own attribute, which then wins over a form around it. The `form` property is read-only and returns the form element.
41
+ * @fires input - The user switched it; `checked` is already the new value.
42
+ * @fires {CustomEvent<TanreiCheckboxChangeDetail>} change - The user switched it; `detail.checked` (and the element's `checked`) is the new value.
43
+ */
44
+ export class TanreiCheckbox extends LitElement {
45
+ constructor() {
46
+ super(...arguments);
47
+ this.availability = new AvailabilityController(this, 'checkbox');
48
+ /** Whether the choice is on. The `checked` attribute is the default a form reset returns to (as on a native checkbox). */
49
+ this.checked = false;
50
+ /** Shows the choice as partly on. Wins over `checked` for what is drawn and announced; activation clears it (CHK-2). */
51
+ this.indeterminate = false;
52
+ /** Marks the choice as invalid: the error form of the condition is drawn and it is exposed as invalid. */
53
+ this.error = false;
54
+ /** Prevents interaction and removes the checkbox from the focus order. */
55
+ this.disabled = false;
56
+ /** The text that names the choice: drawn next to the box and used as the accessible name. */
57
+ this.label = '';
58
+ /** Draws no visible label but keeps `label` as the accessible name (the `label-hidden` attribute). */
59
+ this.labelHidden = false;
60
+ /** Web only: the form cannot be submitted while this is unchecked (native constraint validation). */
61
+ this.required = false;
62
+ /** Web only: the name it is submitted under. */
63
+ this.name = '';
64
+ /** Web only: what it submits while checked. */
65
+ this.value = 'on';
66
+ /** Form association, a click on the host, Enter (src/primitives/selection.ts). */
67
+ this.selection = new SelectionController(this, () => this.input, {
68
+ errorCondition: true,
69
+ named: () => !!this.label,
70
+ // CHK-23: in a checkbox group that is not defined yet its frame — the field group in that group's shadow root — is
71
+ // not drawn yet either: a field group around the checkbox group is not asked in its place. The group asks again.
72
+ waits: () => {
73
+ const set = this.closest(SETS);
74
+ return !!set && set.localName === GROUP && typeof set.memberSwitched !== 'function';
75
+ },
76
+ });
77
+ /** CHK-9 / CHK-10: the pressed state, press-hold and the answer the system chooses (src/primitives/press.ts). */
78
+ this.press = new PressController(this, {
79
+ container: () => this.renderRoot.querySelector('.container'),
80
+ holdCarrier: () => this.renderRoot.querySelector('.control'),
81
+ disabled: () => this.selection.disabled,
82
+ keys: [' '],
83
+ origin: selectionRippleOrigin(() => this.renderRoot.querySelector('.container')),
84
+ });
85
+ /** CHK-19: a glyph is drawn only while the icon set can draw it (src/primitives/glyph.ts). */
86
+ this.glyphs = new GlyphDrawnController(this, () => this.renderRoot.querySelectorAll('.mark'));
87
+ }
88
+ static { this.styles = [styles, hiddenHost]; }
89
+ static { this.formAssociated = true; }
90
+ static { this.shadowRootOptions = { ...LitElement.shadowRootOptions, delegatesFocus: true }; }
91
+ /**
92
+ * Its documented parts, once: what an element composed around it exports (src/primitives/composed.ts). Held equal to
93
+ * the `@csspart` lines above by src/primitives/composed.test.ts.
94
+ *
95
+ * @internal
96
+ */
97
+ static { this.parts = ['container', 'box', 'mark', 'label']; }
98
+ static { this.properties = {
99
+ checked: { type: Boolean },
100
+ indeterminate: { type: Boolean, reflect: true },
101
+ error: { type: Boolean, reflect: true },
102
+ disabled: { type: Boolean, reflect: true },
103
+ label: { type: String },
104
+ labelHidden: { type: Boolean, attribute: 'label-hidden', reflect: true },
105
+ required: { type: Boolean, reflect: true },
106
+ name: { type: String, reflect: true },
107
+ value: { type: String },
108
+ }; }
109
+ get input() {
110
+ return this.renderRoot.querySelector('input');
111
+ }
112
+ /** The form it belongs to, if any. */
113
+ get form() {
114
+ return this.selection.form;
115
+ }
116
+ /**
117
+ * CHK-23: the checkbox group it stands in, once that element is defined — the nearest set of controls around it,
118
+ * where that is a checkbox group; `null` where it is a checkbox of its own.
119
+ */
120
+ get owner() {
121
+ let set = this.closest(SETS);
122
+ // The checkbox a group brings itself — its select-all checkbox — stands in the group's shadow root, in the field
123
+ // group that frames the set: the group is the element that shadow root belongs to (CKG-8, CKG-12).
124
+ const root = set?.getRootNode();
125
+ if (set && set.localName !== GROUP && root instanceof ShadowRoot && root.host.localName === GROUP && set.parentNode === root)
126
+ set = root.host;
127
+ return set && set.localName === GROUP && typeof set.memberSwitched === 'function' ? set : null;
128
+ }
129
+ /**
130
+ * CHK-23, CKG-2: the entry of a group's list it stands for — the `value` it was given — or `null` where it was given
131
+ * none: neither the attribute nor a value other than the "on" every checkbox has.
132
+ *
133
+ * @internal
134
+ */
135
+ get entry() {
136
+ return this.value !== '' && (this.value !== NO_VALUE || this.hasAttribute('value')) ? this.value : null;
137
+ }
138
+ /**
139
+ * CKG-8: where the browser's message for a group that lacks an answer points, and what it then focuses: the native
140
+ * checkbox, as for the checkbox's own message.
141
+ *
142
+ * @internal
143
+ */
144
+ get validationAnchor() {
145
+ return this.input;
146
+ }
147
+ /** CHK-23: put in a group, or taken out of one, it is the other kind of checkbox from then on. */
148
+ connectedCallback() {
149
+ super.connectedCallback();
150
+ if (this.hasUpdated)
151
+ this.requestUpdate();
152
+ }
153
+ /** `element.click()` switches it as a person would, and does nothing while disabled. */
154
+ click() {
155
+ this.selection.click();
156
+ }
157
+ formResetCallback() {
158
+ // CHK-23: in a group the reset is the group's, which returns to its first value.
159
+ if (this.owner)
160
+ return;
161
+ this.checked = this.hasAttribute('checked');
162
+ }
163
+ formStateRestoreCallback(state) {
164
+ // CHK-23: in a group the group's list is what is restored.
165
+ if (this.owner)
166
+ return;
167
+ this.checked = state === 'true';
168
+ }
169
+ formDisabledCallback(disabled) {
170
+ this.selection.formDisabledCallback(disabled);
171
+ }
172
+ /** CHK-11: where style queries are missing, the focus style is read when focus arrives. */
173
+ onFocus() {
174
+ syncFocusStyle(this, this.input);
175
+ }
176
+ onKeyDown(event) {
177
+ this.selection.onKeyDown(event);
178
+ this.press.onKeyDown(event);
179
+ }
180
+ /**
181
+ * A click on the label's text or on the target around the box is the label's; the browser turns it into the input's
182
+ * click, which is the one the element lets out, so a listener hears one click per activation.
183
+ */
184
+ onRootClick(event) {
185
+ if (event.target !== this.input)
186
+ event.stopPropagation();
187
+ }
188
+ /** CHK-2: activation of an indeterminate checkbox checks it, whatever `checked` was (the native one would flip it). */
189
+ onClick() {
190
+ // The native checkbox has already switched: mark the change before anything can style it.
191
+ markConditionChange(this.renderRoot.querySelector('.root'));
192
+ const input = this.input;
193
+ if (input && this.indeterminate)
194
+ input.checked = true;
195
+ }
196
+ /** CHK-1: the native input switched; the element takes the new value before anyone hears of it. */
197
+ onInput(event) {
198
+ event.stopPropagation();
199
+ markConditionChange(this.renderRoot.querySelector('.root'));
200
+ const owner = this.owner;
201
+ if (owner) {
202
+ // CHK-23: `checked` is the group's. It is told what the native checkbox now says and sets `checked` where its
203
+ // list took the entry; where it did not (a checkbox with no value), the native checkbox is drawn back.
204
+ const checked = this.input.checked;
205
+ owner.memberSwitched(this, 'input', checked);
206
+ if (this.checked === checked)
207
+ this.indeterminate = false;
208
+ this.requestUpdate();
209
+ return;
210
+ }
211
+ this.checked = this.input.checked;
212
+ this.indeterminate = false;
213
+ this.dispatchEvent(new Event('input', { bubbles: true, composed: true }));
214
+ }
215
+ onChange() {
216
+ // CHK-23: the group fires the one `change`.
217
+ const owner = this.owner;
218
+ if (owner)
219
+ return owner.memberSwitched(this, 'change');
220
+ this.dispatchEvent(new CustomEvent('change', { bubbles: true, detail: { checked: this.checked } }));
221
+ }
222
+ /** CHK-13: a change of condition takes the selection motion (src/primitives/selection.ts). */
223
+ willUpdate(changed) {
224
+ if (this.hasUpdated && (changed.has('checked') || changed.has('indeterminate') || changed.has('error')))
225
+ markConditionChange(this.renderRoot.querySelector('.root'));
226
+ }
227
+ updated(changed) {
228
+ // CHK-23: in a group nothing is submitted, whatever name it carries: the entry is the group's.
229
+ const owner = this.owner;
230
+ this.selection.setFormValue(this.checked && !owner ? this.value : null, String(this.checked));
231
+ this.selection.syncValidity();
232
+ if (owner && (changed.has('checked') || changed.has('value') || changed.has('disabled')))
233
+ owner.memberChanged(this, changed.has('checked'));
234
+ // CHK-16: a checkbox without a name still renders; a debug build says what is missing.
235
+ if (changed.has('label') && !this.label && !this.selection.field.label)
236
+ report(this, 'CHK-16', 'label is empty, so the checkbox has no accessible name; give it a label');
237
+ }
238
+ render() {
239
+ const visible = !!this.label && !this.labelHidden;
240
+ // The native checkbox supplies the role, checked / not checked / mixed, focusability, Space and the disabled state;
241
+ // the <label> around everything makes a click on the visible label (and on the target around the box) its click.
242
+ // The name is `label`, visible or not (CHK-16): the drawn text is hidden from assistive technology so that it is
243
+ // announced once, as the checkbox's name, and not a second time as text.
244
+ // A field or a field group around it gives the name while the checkbox has none, the description, the required
245
+ // state and its error condition (FLD-8, FLD-10, FLD-11, FGR-8): `data-error` draws the error form for either.
246
+ const field = this.selection.field;
247
+ const error = this.error || field.invalid;
248
+ return html `
249
+ <label
250
+ class="root"
251
+ ?data-error=${error}
252
+ @click=${this.onRootClick}
253
+ @pointerdown=${this.press.onPointerDown}
254
+ @pointerup=${this.press.release}
255
+ @pointercancel=${this.press.release}
256
+ @pointerleave=${this.press.release}
257
+ >
258
+ <span class="control">
259
+ <input
260
+ class="native"
261
+ type="checkbox"
262
+ .checked=${live(this.checked)}
263
+ .indeterminate=${live(this.indeterminate)}
264
+ ?disabled=${this.selection.disabled}
265
+ ?required=${this.required && !this.owner}
266
+ aria-label=${field.name(this.label) || nothing}
267
+ aria-description=${field.description() || nothing}
268
+ aria-invalid=${error ? 'true' : nothing}
269
+ aria-required=${field.required && !(this.required && !this.owner) ? 'true' : nothing}
270
+ @click=${this.onClick}
271
+ @input=${this.onInput}
272
+ @change=${this.onChange}
273
+ @keydown=${this.onKeyDown}
274
+ @keyup=${this.press.onKeyUp}
275
+ @blur=${this.press.onBlur}
276
+ @focus=${this.onFocus}
277
+ />
278
+ <span part="container" class="container" data-tanrei-shape aria-hidden="true"></span>
279
+ <span part="box" class="box" data-tanrei-shape aria-hidden="true">
280
+ <span class="fill"></span>
281
+ <span part="mark" class="mark check"><span class="ink">${CHECK_GLYPH}</span></span>
282
+ <span part="mark" class="mark dash"><span class="ink">${DASH_GLYPH}</span></span>
283
+ </span>
284
+ </span>
285
+ ${visible ? html `<span part="label" class="label" aria-hidden="true">${this.label}</span>` : nothing}
286
+ </label>
287
+ `;
288
+ }
289
+ }
290
+ // Its `disabled` attribute, written while it holds focus, waits until focus has left: a frame at most.
291
+ disabledWaitsWhileFocused(TanreiCheckbox);
292
+ // `autofocus` on it gives it focus when the page first loads too (src/primitives/autofocus.ts).
293
+ focusedAtFirst(TanreiCheckbox);
294
+ if (!customElements.get('tanrei-checkbox'))
295
+ customElements.define('tanrei-checkbox', TanreiCheckbox);
296
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkD,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChG,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,EACN,qBAAqB,EACrB,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,4FAA4F;AAC5F,MAAM,WAAW,GAAG,OAAO,CAAC;AAC5B,MAAM,UAAU,GAAG,QAAQ,CAAC;AAqB5B,qHAAqH;AACrH,MAAM,IAAI,GAAG,+DAA+D,CAAC;AAC7E,MAAM,KAAK,GAAG,uBAAuB,CAAC;AACtC,wHAAwH;AACxH,MAAM,QAAQ,GAAG,IAAI,CAAC;AAEtB;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,OAAO,cAAe,SAAQ,UAAU;IAA9C;;QACmB,iBAAY,GAAG,IAAI,sBAAsB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QA2B7E,0HAA0H;QAC1H,YAAO,GAAG,KAA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AC;IAAE,cAAc,CAAC,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * CHK-4: the condition drawn follows what the native input says, so what is drawn and what is announced cannot disagree:
3
+ * indeterminate wins over checked, and `error` prefixes whichever applies. Later and more specific blocks win.
4
+ */
5
+ export declare const CONDITIONS: {
6
+ readonly unselected: '.root';
7
+ readonly selected: '.root:has(input:checked)';
8
+ readonly indeterminate: '.root:has(input:indeterminate)';
9
+ readonly 'error-unselected': ':host .root[data-error]';
10
+ readonly 'error-selected': ':host .root[data-error]:has(input:checked)';
11
+ readonly 'error-indeterminate': ':host .root[data-error]:has(input:indeterminate)';
12
+ };
13
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,226 @@
1
+ import { css, unsafeCSS } from 'lit';
2
+ import { conditionBlock, focusRing, iconGlyph, minimumTarget, pressHold, rippleStyles, selectionContainerShape, selectionLabel, selectionStates, } from '../../primitives/index.js';
3
+ import { productText } from '../../styles/product-text.js';
4
+ import { cornerRadius, shape } from '../../styles/shape.js';
5
+ // Every visual value is a token (tokens/comp/checkbox.tokens.json). The conditions are the checkbox's state variants:
6
+ // each has its own container, box, mark, outline and label color in every state, and the component only
7
+ // says which condition and which state's tokens are drawn — never how a state looks. Hover, focus and press show on the
8
+ // container, the round state layer behind the box; in the default system that is a mix with each
9
+ // condition's `state-layer.color`, in cupertino nothing at all, by value.
10
+ const PREFIX = '--tanrei-comp-checkbox';
11
+ const PARTS = { c: 'container-color', b: 'box-color', m: 'mark-color', o: 'outline-color', l: 'label-color' };
12
+ /**
13
+ * CHK-4: the condition drawn follows what the native input says, so what is drawn and what is announced cannot disagree:
14
+ * indeterminate wins over checked, and `error` prefixes whichever applies. Later and more specific blocks win.
15
+ */
16
+ export const CONDITIONS = {
17
+ unselected: '.root',
18
+ selected: '.root:has(input:checked)',
19
+ indeterminate: '.root:has(input:indeterminate)',
20
+ // `data-error`: the checkbox's own `error`, or the error condition a field or a field group put it in (FLD-8, FGR-8).
21
+ // `:host` keeps each selector at the specificity it had as `:host([error]) .root`.
22
+ 'error-unselected': ':host .root[data-error]',
23
+ 'error-selected': ':host .root[data-error]:has(input:checked)',
24
+ 'error-indeterminate': ':host .root[data-error]:has(input:indeterminate)',
25
+ };
26
+ const selection = `var(${PREFIX}-motion-selection-duration) var(${PREFIX}-motion-selection-easing)`;
27
+ const state = `var(${PREFIX}-motion-state-duration) var(${PREFIX}-motion-state-easing)`;
28
+ export const styles = css `
29
+ ${unsafeCSS(Object.entries(CONDITIONS).map(([condition, selector]) => conditionBlock(PREFIX, condition, PARTS, selector)).join('\n'))}
30
+
31
+ /* CHK-15: the control, then the label at its inline end, comp.checkbox.label.gap away, wrapping. */
32
+ ${selectionLabel(PREFIX, `var(--tanrei-comp-checkbox-container-size)`)}
33
+ /* CHK-21: the label is text of its own direction — its first strong character's — isolated from what is around it; the
34
+ layout direction still puts it at the control's inline end and aligns the lines it wraps to. */
35
+ ${productText('.label', { align: 'start' })}
36
+
37
+ /* CHK-12: the round container, comp.checkbox.container.size across, with the box centered in it. */
38
+ .control {
39
+ display: grid;
40
+ place-items: center;
41
+ inline-size: var(--tanrei-comp-checkbox-container-size);
42
+ block-size: var(--tanrei-comp-checkbox-container-size);
43
+ }
44
+ .container,
45
+ .box {
46
+ grid-area: 1 / 1;
47
+ }
48
+ .container {
49
+ position: relative;
50
+ /* Its own stacking context, so the ripple sits above the container color. */
51
+ isolation: isolate;
52
+ inline-size: 100%;
53
+ block-size: 100%;
54
+ ${unsafeCSS(selectionContainerShape)}
55
+ background: var(--_c);
56
+ transition-property: background-color, border-radius;
57
+ transition-duration: var(--tanrei-comp-checkbox-motion-state-duration);
58
+ transition-timing-function: var(--tanrei-comp-checkbox-motion-state-easing);
59
+ }
60
+
61
+ /* CHK-12: the box, its outline inside its edge, and its fill inside the outline — never under it. */
62
+ .box {
63
+ position: relative;
64
+ /* CHK-22: the group the outline and the fill are added in — nothing outside the box takes part in the sum. */
65
+ isolation: isolate;
66
+ box-sizing: border-box;
67
+ inline-size: var(--tanrei-comp-checkbox-box-size);
68
+ block-size: var(--tanrei-comp-checkbox-box-size);
69
+ padding: var(--tanrei-comp-checkbox-outline-width);
70
+ ${unsafeCSS(cornerRadius(`--tanrei-comp-checkbox-box-shape`))}
71
+ pointer-events: none;
72
+ transition: border-radius ${unsafeCSS(state)};
73
+ }
74
+ /* CHK-22: the outline and the fill are ONE shape. They are two layers of the same box with the same padding of
75
+ outline.width, each painted over the whole box and cut by a mask along the same edge, the box's content box: the
76
+ outline (::before) is everything BUT the content box, the fill (.fill) is the content box. On a pixel that edge
77
+ crosses, the outline covers a share and the fill exactly the rest, and the fill is ADDED to the outline
78
+ (plus-lighter, inside the box's isolated group) instead of composited over it: the two shares sum to the whole —
79
+ for opaque and translucent colors alike, with nothing behind the box showing between them and neither painted over
80
+ the other (CHK-12), at any zoom or position. What this replaces — an inset shadow over a content-box background,
81
+ two paints antialiased apart — let up to a quarter of the background through that edge.
82
+ Both are cut by a mask of two layers, and by nothing else, because that is the one way all three engines cut the
83
+ two from the same rasterized edge (measured in Chromium, Firefox and WebKit at device pixel ratios 1 to 3, on and
84
+ off the pixel grid): a fill clipped by background-clip overlaps the masked outline in Chromium, which snaps a
85
+ background to the pixel grid and not a mask; a fill behind a mask of one layer leaves a seam in Firefox. */
86
+ .box::before,
87
+ .fill {
88
+ position: absolute;
89
+ /* Under the marks. */
90
+ z-index: -1;
91
+ inset: 0;
92
+ box-sizing: border-box;
93
+ padding: inherit;
94
+ border-radius: inherit;
95
+ corner-shape: inherit;
96
+ /* CHK-5, CHK-13: the state motion when a state recolors the box, the selection motion when the condition does. */
97
+ transition: background-color var(--_recolor-duration) var(--_recolor-easing);
98
+ }
99
+ /* A mask is alpha, not a color: #000 is "all of it", transparent "none of it". "All" is not clipped to the box
100
+ (no-clip): the box's round outer edge is cut once, by the background. The fill's mask is the content box alone;
101
+ its second layer is empty and changes nothing (x XOR nothing is x) but the way the engine cuts it — as a mask of
102
+ several layers, the way it cuts the outline's. A mask of one layer is a clip in Firefox, rasterized on its own. */
103
+ .box::before {
104
+ content: '';
105
+ background: var(--_o);
106
+ mask:
107
+ linear-gradient(#000 0 0) content-box exclude,
108
+ linear-gradient(#000 0 0) no-clip;
109
+ }
110
+ .fill {
111
+ background: var(--_b);
112
+ mask:
113
+ linear-gradient(#000 0 0) content-box exclude,
114
+ linear-gradient(transparent 0 0) no-clip;
115
+ mix-blend-mode: plus-lighter;
116
+ }
117
+
118
+ /* CHK-12: the mark is the icon set's check (selected) or remove (indeterminate), a glyph box of comp.checkbox.mark.size
119
+ centered on the box and not clipped by it, in the selected family and fill at comp.checkbox.mark.weight (the mark's own weight, not
120
+ sys.icon.weight: it changes the stroke, never the glyph box); the font clamps the optical size to its range
121
+ (src/styles/icons.ts). Both glyphs are always laid out, so either can fade in or out. */
122
+ ${iconGlyph('.mark', {
123
+ size: '--tanrei-comp-checkbox-mark-size',
124
+ weight: '--tanrei-comp-checkbox-mark-weight',
125
+ selected: ':host',
126
+ duration: '--tanrei-comp-checkbox-motion-selection-duration',
127
+ easing: '--tanrei-comp-checkbox-motion-selection-easing',
128
+ })}
129
+ .mark {
130
+ position: absolute;
131
+ inset-block-start: var(--_mark-inset);
132
+ inset-inline-start: var(--_mark-inset);
133
+ color: var(--_m);
134
+ /* CHK-13: a glyph that is not the condition's is faded out and shrunk to mark-enter-scale about the box's center. */
135
+ opacity: 0;
136
+ scale: var(--tanrei-comp-checkbox-motion-mark-enter-scale);
137
+ /* CHK-19: nothing in the glyph's place until the icon set can draw it (GlyphDrawnController sets data-drawn). */
138
+ visibility: hidden;
139
+ transition:
140
+ opacity ${unsafeCSS(selection)},
141
+ scale var(--tanrei-comp-checkbox-motion-mark-scale-duration) var(--tanrei-comp-checkbox-motion-mark-scale-easing),
142
+ color var(--_recolor-duration) var(--_recolor-easing);
143
+ }
144
+ .box {
145
+ --_mark-inset: calc((var(--tanrei-comp-checkbox-box-size) - var(--tanrei-comp-checkbox-mark-size)) / 2);
146
+ }
147
+ .mark[data-drawn] {
148
+ visibility: visible;
149
+ }
150
+ /* The ligature's own width, which GlyphDrawnController compares with the glyph box. */
151
+ .ink {
152
+ display: inline-block;
153
+ }
154
+ .root:has(input:checked:not(:indeterminate)) .check,
155
+ .root:has(input:indeterminate) .dash {
156
+ opacity: 1;
157
+ scale: 1;
158
+ }
159
+
160
+ /* CHK-7: the hit area meets the minimum target around the container, without changing its size; the label is in it
161
+ too, because the whole root is the <label>. */
162
+ ${minimumTarget('.control')}
163
+
164
+ /* CHK-5, CHK-8, CHK-9, CHK-10: each state paints from that state's tokens of the current condition; pressed > focused >
165
+ hovered, disabled over all (src/primitives/selection.ts). */
166
+ ${selectionStates(PREFIX, PARTS, 'c')}
167
+
168
+ /* CHK-10 ripple: the pressed container color of the condition, grown over comp.checkbox.motion.feedback-duration. */
169
+ ${rippleStyles({
170
+ color: '--_c-p',
171
+ grow: `--tanrei-comp-checkbox-motion-feedback-duration`,
172
+ fade: `--tanrei-comp-checkbox-motion-state-duration`,
173
+ easing: `--tanrei-comp-checkbox-motion-state-easing`,
174
+ })}
175
+
176
+ /* CHK-6, CHK-11: the ring (or the glow) around the box, never animated, for keyboard focus only. */
177
+ ${focusRing((focus) => `input${focus} ~ .box`)}
178
+
179
+ /* CHK-11: corner smoothing on the container and the box (data-tanrei-shape); the ring follows the box. */
180
+ ${shape}
181
+
182
+ /* CHK-9: the control carries press-hold for PressController; it has no transition of its own. */
183
+ ${pressHold('.control')}
184
+
185
+ /* CHK-17: where motion is reduced the new condition is drawn whole in the first frame after the change, and a motion
186
+ still running ends there (removing a transition ends it at its end value). */
187
+ @media (prefers-reduced-motion: reduce) {
188
+ .container,
189
+ .box,
190
+ .box::before,
191
+ .fill,
192
+ .mark {
193
+ transition: none;
194
+ }
195
+ }
196
+ @media (forced-colors: active) {
197
+ /* The outline is a border and the fill a background here: one opaque system color beside another, nothing to add. */
198
+ .box::before,
199
+ .fill {
200
+ display: none;
201
+ }
202
+ .box {
203
+ /* The fill is a system color of its own (Highlight when on), not the one the mode would force. */
204
+ forced-color-adjust: none;
205
+ background: Canvas;
206
+ padding: 0;
207
+ border: var(--tanrei-comp-checkbox-outline-width) solid CanvasText;
208
+ }
209
+ .root:has(input:checked) .box,
210
+ .root:has(input:indeterminate) .box {
211
+ background: Highlight;
212
+ border-color: Highlight;
213
+ }
214
+ .mark {
215
+ color: HighlightText;
216
+ }
217
+ .root:has(input:disabled) .box {
218
+ border-color: GrayText;
219
+ }
220
+ .root:has(input:disabled:checked) .box,
221
+ .root:has(input:disabled:indeterminate) .box {
222
+ background: GrayText;
223
+ }
224
+ }
225
+ `;
226
+ //# sourceMappingURL=checkbox.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox.styles.js","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EACL,cAAc,EACd,SAAS,EACT,SAAS,EACT,aAAa,EACb,SAAS,EACT,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE5D,sHAAsH;AACtH,wGAAwG;AACxG,wHAAwH;AACxH,iGAAiG;AACjG,0EAA0E;AAC1E,MAAM,MAAM,GAAG,wBAAwB,CAAC;AACxC,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,aAAa,EAAW,CAAC;AAEvH;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,UAAU,EAAE,OAAO;IACnB,QAAQ,EAAE,0B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