@zonsh/ui 0.0.0 → 0.4.1

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 (425) hide show
  1. package/LICENSE +43 -0
  2. package/README.md +81 -1
  3. package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
  4. package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
  5. package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
  6. package/assets/illustrations/drawing/bracket-construction.svg +77 -0
  7. package/assets/illustrations/drawing/crescent-dark.svg +28 -0
  8. package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
  9. package/assets/illustrations/drawing/crescent-guides.svg +33 -0
  10. package/assets/illustrations/drawing/crescent.svg +28 -0
  11. package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
  12. package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
  13. package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
  14. package/assets/illustrations/drawing/eclipse.svg +187 -0
  15. package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
  16. package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
  17. package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
  18. package/assets/illustrations/drawing/elevation-guides.svg +31 -0
  19. package/assets/illustrations/drawing/horizon-dark.svg +30 -0
  20. package/assets/illustrations/drawing/horizon.svg +30 -0
  21. package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
  22. package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
  23. package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
  24. package/assets/illustrations/drawing/nib-study.svg +107 -0
  25. package/assets/illustrations/editorial/assistant-640.webp +0 -0
  26. package/assets/illustrations/editorial/assistant.webp +0 -0
  27. package/assets/illustrations/editorial/automation-640.webp +0 -0
  28. package/assets/illustrations/editorial/automation.webp +0 -0
  29. package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
  30. package/assets/illustrations/editorial/bracket-left.webp +0 -0
  31. package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
  32. package/assets/illustrations/editorial/bracket-right.webp +0 -0
  33. package/assets/illustrations/editorial/custom-software-640.webp +0 -0
  34. package/assets/illustrations/editorial/custom-software.webp +0 -0
  35. package/assets/illustrations/editorial/digitalization-640.webp +0 -0
  36. package/assets/illustrations/editorial/digitalization.webp +0 -0
  37. package/assets/illustrations/editorial/integration-640.webp +0 -0
  38. package/assets/illustrations/editorial/integration.webp +0 -0
  39. package/assets/illustrations/editorial/problem-640.webp +0 -0
  40. package/assets/illustrations/editorial/problem.webp +0 -0
  41. package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
  42. package/assets/illustrations/editorial/process-analysis.webp +0 -0
  43. package/assets/illustrations/editorial/process-concept-640.webp +0 -0
  44. package/assets/illustrations/editorial/process-concept.webp +0 -0
  45. package/assets/illustrations/editorial/process-development-640.webp +0 -0
  46. package/assets/illustrations/editorial/process-development.webp +0 -0
  47. package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
  48. package/assets/illustrations/editorial/process-discovery.webp +0 -0
  49. package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
  50. package/assets/illustrations/editorial/process-maintenance.webp +0 -0
  51. package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
  52. package/assets/illustrations/editorial/process-prototype.webp +0 -0
  53. package/assets/illustrations/editorial/process-testing-640.webp +0 -0
  54. package/assets/illustrations/editorial/process-testing.webp +0 -0
  55. package/assets/illustrations/iso/automation-dark.svg +6 -0
  56. package/assets/illustrations/iso/automation.svg +6 -0
  57. package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
  58. package/assets/illustrations/iso/bar-chart.svg +6 -0
  59. package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
  60. package/assets/illustrations/iso/brackets-classic.svg +6 -0
  61. package/assets/illustrations/iso/brackets-dark.svg +6 -0
  62. package/assets/illustrations/iso/brackets.svg +6 -0
  63. package/assets/illustrations/iso/city-dark.svg +6 -0
  64. package/assets/illustrations/iso/city.svg +6 -0
  65. package/assets/illustrations/iso/conveyor-dark.svg +6 -0
  66. package/assets/illustrations/iso/conveyor.svg +6 -0
  67. package/assets/illustrations/iso/database-dark.svg +6 -0
  68. package/assets/illustrations/iso/database.svg +6 -0
  69. package/assets/illustrations/iso/documents-dark.svg +6 -0
  70. package/assets/illustrations/iso/documents.svg +6 -0
  71. package/assets/illustrations/iso/inbox-dark.svg +6 -0
  72. package/assets/illustrations/iso/inbox.svg +6 -0
  73. package/assets/illustrations/iso/laptop-dark.svg +6 -0
  74. package/assets/illustrations/iso/laptop.svg +6 -0
  75. package/assets/illustrations/iso/monitor-dark.svg +6 -0
  76. package/assets/illustrations/iso/monitor.svg +6 -0
  77. package/assets/illustrations/iso/pipeline-dark.svg +6 -0
  78. package/assets/illustrations/iso/pipeline.svg +6 -0
  79. package/assets/illustrations/iso/platform-dark.svg +6 -0
  80. package/assets/illustrations/iso/platform.svg +6 -0
  81. package/assets/illustrations/iso/server-dark.svg +6 -0
  82. package/assets/illustrations/iso/server.svg +6 -0
  83. package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
  84. package/assets/illustrations/iso/spreadsheet.svg +6 -0
  85. package/assets/illustrations/iso/timeline-dark.svg +6 -0
  86. package/assets/illustrations/iso/timeline.svg +6 -0
  87. package/assets/illustrations/sheet/construction.svg +115 -0
  88. package/assets/illustrations/sheet/crescent.svg +40 -0
  89. package/assets/illustrations/sheet/limb.svg +42 -0
  90. package/assets/illustrations/sheet/stress-axis.svg +119 -0
  91. package/assets/illustrations/sheet/totality.svg +215 -0
  92. package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
  93. package/assets/logo-left.svg +1 -0
  94. package/assets/logo-right.svg +1 -0
  95. package/assets/logo.svg +1 -0
  96. package/dist/components/_overlay.d.ts +47 -0
  97. package/dist/components/_overlay.js +59 -0
  98. package/dist/components/accordion.d.ts +32 -0
  99. package/dist/components/accordion.js +39 -0
  100. package/dist/components/alert-dialog.d.ts +45 -0
  101. package/dist/components/alert-dialog.js +56 -0
  102. package/dist/components/alert.d.ts +35 -0
  103. package/dist/components/alert.js +42 -0
  104. package/dist/components/ascii-field.d.ts +34 -0
  105. package/dist/components/ascii-field.js +410 -0
  106. package/dist/components/aspect-ratio.d.ts +14 -0
  107. package/dist/components/aspect-ratio.js +17 -0
  108. package/dist/components/avatar.d.ts +42 -0
  109. package/dist/components/avatar.js +55 -0
  110. package/dist/components/badge.d.ts +70 -0
  111. package/dist/components/badge.js +62 -0
  112. package/dist/components/bottom-nav.d.ts +86 -0
  113. package/dist/components/bottom-nav.js +175 -0
  114. package/dist/components/breadcrumb.d.ts +31 -0
  115. package/dist/components/breadcrumb.js +37 -0
  116. package/dist/components/button-group.d.ts +30 -0
  117. package/dist/components/button-group.js +47 -0
  118. package/dist/components/button.d.ts +53 -0
  119. package/dist/components/button.js +130 -0
  120. package/dist/components/calendar.d.ts +26 -0
  121. package/dist/components/calendar.js +179 -0
  122. package/dist/components/card.d.ts +42 -0
  123. package/dist/components/card.js +76 -0
  124. package/dist/components/carousel.d.ts +109 -0
  125. package/dist/components/carousel.js +231 -0
  126. package/dist/components/chart.d.ts +189 -0
  127. package/dist/components/chart.js +323 -0
  128. package/dist/components/checkbox.d.ts +23 -0
  129. package/dist/components/checkbox.js +43 -0
  130. package/dist/components/code-block.d.ts +55 -0
  131. package/dist/components/code-block.js +100 -0
  132. package/dist/components/collapsible.d.ts +20 -0
  133. package/dist/components/collapsible.js +32 -0
  134. package/dist/components/color-picker.d.ts +107 -0
  135. package/dist/components/color-picker.js +428 -0
  136. package/dist/components/combobox.d.ts +99 -0
  137. package/dist/components/combobox.js +172 -0
  138. package/dist/components/command.d.ts +132 -0
  139. package/dist/components/command.js +257 -0
  140. package/dist/components/context-menu.d.ts +29 -0
  141. package/dist/components/context-menu.js +35 -0
  142. package/dist/components/conversation.d.ts +36 -0
  143. package/dist/components/conversation.js +303 -0
  144. package/dist/components/copy-button.d.ts +55 -0
  145. package/dist/components/copy-button.js +133 -0
  146. package/dist/components/data-table.d.ts +235 -0
  147. package/dist/components/data-table.js +655 -0
  148. package/dist/components/date-picker.d.ts +160 -0
  149. package/dist/components/date-picker.js +338 -0
  150. package/dist/components/dialog.d.ts +57 -0
  151. package/dist/components/dialog.js +95 -0
  152. package/dist/components/direction.d.ts +16 -0
  153. package/dist/components/direction.js +18 -0
  154. package/dist/components/drawer.d.ts +69 -0
  155. package/dist/components/drawer.js +79 -0
  156. package/dist/components/empty.d.ts +31 -0
  157. package/dist/components/empty.js +50 -0
  158. package/dist/components/feature-list.d.ts +54 -0
  159. package/dist/components/feature-list.js +43 -0
  160. package/dist/components/field.d.ts +34 -0
  161. package/dist/components/field.js +81 -0
  162. package/dist/components/file-drop.d.ts +77 -0
  163. package/dist/components/file-drop.js +258 -0
  164. package/dist/components/filter-bar.d.ts +153 -0
  165. package/dist/components/filter-bar.js +334 -0
  166. package/dist/components/form.d.ts +35 -0
  167. package/dist/components/form.js +56 -0
  168. package/dist/components/graph.d.ts +146 -0
  169. package/dist/components/graph.js +825 -0
  170. package/dist/components/illustration.d.ts +85 -0
  171. package/dist/components/illustration.js +165 -0
  172. package/dist/components/input-group.d.ts +138 -0
  173. package/dist/components/input-group.js +312 -0
  174. package/dist/components/input.d.ts +16 -0
  175. package/dist/components/input.js +25 -0
  176. package/dist/components/item.d.ts +64 -0
  177. package/dist/components/item.js +116 -0
  178. package/dist/components/kbd.d.ts +50 -0
  179. package/dist/components/kbd.js +45 -0
  180. package/dist/components/label.d.ts +12 -0
  181. package/dist/components/label.js +24 -0
  182. package/dist/components/layout.d.ts +136 -0
  183. package/dist/components/layout.js +162 -0
  184. package/dist/components/lightbox.d.ts +100 -0
  185. package/dist/components/lightbox.js +439 -0
  186. package/dist/components/locale.d.ts +44 -0
  187. package/dist/components/locale.js +37 -0
  188. package/dist/components/logo.d.ts +54 -0
  189. package/dist/components/logo.js +96 -0
  190. package/dist/components/menu.d.ts +60 -0
  191. package/dist/components/menu.js +140 -0
  192. package/dist/components/menubar.d.ts +62 -0
  193. package/dist/components/menubar.js +223 -0
  194. package/dist/components/message.d.ts +42 -0
  195. package/dist/components/message.js +59 -0
  196. package/dist/components/meter.d.ts +31 -0
  197. package/dist/components/meter.js +27 -0
  198. package/dist/components/money-input.d.ts +80 -0
  199. package/dist/components/money-input.js +253 -0
  200. package/dist/components/native-select.d.ts +26 -0
  201. package/dist/components/native-select.js +35 -0
  202. package/dist/components/navigation-menu.d.ts +42 -0
  203. package/dist/components/navigation-menu.js +97 -0
  204. package/dist/components/number-field.d.ts +55 -0
  205. package/dist/components/number-field.js +164 -0
  206. package/dist/components/otp-field.d.ts +48 -0
  207. package/dist/components/otp-field.js +102 -0
  208. package/dist/components/pagination.d.ts +37 -0
  209. package/dist/components/pagination.js +81 -0
  210. package/dist/components/pdf-viewer.d.ts +134 -0
  211. package/dist/components/pdf-viewer.js +996 -0
  212. package/dist/components/phone-input.d.ts +79 -0
  213. package/dist/components/phone-input.js +282 -0
  214. package/dist/components/popover.d.ts +33 -0
  215. package/dist/components/popover.js +48 -0
  216. package/dist/components/preview-card.d.ts +25 -0
  217. package/dist/components/preview-card.js +22 -0
  218. package/dist/components/progress.d.ts +27 -0
  219. package/dist/components/progress.js +25 -0
  220. package/dist/components/prompt-input.d.ts +156 -0
  221. package/dist/components/prompt-input.js +415 -0
  222. package/dist/components/quote.d.ts +22 -0
  223. package/dist/components/quote.js +15 -0
  224. package/dist/components/radio-group.d.ts +18 -0
  225. package/dist/components/radio-group.js +34 -0
  226. package/dist/components/rating.d.ts +73 -0
  227. package/dist/components/rating.js +124 -0
  228. package/dist/components/reasoning.d.ts +46 -0
  229. package/dist/components/reasoning.js +73 -0
  230. package/dist/components/resizable.d.ts +47 -0
  231. package/dist/components/resizable.js +44 -0
  232. package/dist/components/response.d.ts +41 -0
  233. package/dist/components/response.js +566 -0
  234. package/dist/components/scroll-area.d.ts +33 -0
  235. package/dist/components/scroll-area.js +31 -0
  236. package/dist/components/select.d.ts +35 -0
  237. package/dist/components/select.js +71 -0
  238. package/dist/components/separator.d.ts +14 -0
  239. package/dist/components/separator.js +17 -0
  240. package/dist/components/sidebar.d.ts +163 -0
  241. package/dist/components/sidebar.js +505 -0
  242. package/dist/components/site-header.d.ts +93 -0
  243. package/dist/components/site-header.js +121 -0
  244. package/dist/components/skeleton.d.ts +31 -0
  245. package/dist/components/skeleton.js +29 -0
  246. package/dist/components/slider.d.ts +24 -0
  247. package/dist/components/slider.js +131 -0
  248. package/dist/components/sortable.d.ts +178 -0
  249. package/dist/components/sortable.js +1258 -0
  250. package/dist/components/sources.d.ts +40 -0
  251. package/dist/components/sources.js +42 -0
  252. package/dist/components/spinner.d.ts +48 -0
  253. package/dist/components/spinner.js +75 -0
  254. package/dist/components/stat.d.ts +91 -0
  255. package/dist/components/stat.js +141 -0
  256. package/dist/components/stepper.d.ts +71 -0
  257. package/dist/components/stepper.js +101 -0
  258. package/dist/components/suggestions.d.ts +20 -0
  259. package/dist/components/suggestions.js +18 -0
  260. package/dist/components/switch.d.ts +14 -0
  261. package/dist/components/switch.js +26 -0
  262. package/dist/components/table.d.ts +172 -0
  263. package/dist/components/table.js +895 -0
  264. package/dist/components/tabs.d.ts +25 -0
  265. package/dist/components/tabs.js +162 -0
  266. package/dist/components/tag.d.ts +41 -0
  267. package/dist/components/tag.js +88 -0
  268. package/dist/components/tags-input.d.ts +56 -0
  269. package/dist/components/tags-input.js +271 -0
  270. package/dist/components/textarea.d.ts +13 -0
  271. package/dist/components/textarea.js +16 -0
  272. package/dist/components/theme.d.ts +55 -0
  273. package/dist/components/theme.js +120 -0
  274. package/dist/components/time-field.d.ts +70 -0
  275. package/dist/components/time-field.js +450 -0
  276. package/dist/components/timeline.d.ts +92 -0
  277. package/dist/components/timeline.js +108 -0
  278. package/dist/components/tippy.d.ts +48 -0
  279. package/dist/components/tippy.js +648 -0
  280. package/dist/components/toast.d.ts +88 -0
  281. package/dist/components/toast.js +205 -0
  282. package/dist/components/toggle-group.d.ts +41 -0
  283. package/dist/components/toggle-group.js +140 -0
  284. package/dist/components/toggle.d.ts +23 -0
  285. package/dist/components/toggle.js +35 -0
  286. package/dist/components/tool-call.d.ts +63 -0
  287. package/dist/components/tool-call.js +68 -0
  288. package/dist/components/toolbar.d.ts +17 -0
  289. package/dist/components/toolbar.js +39 -0
  290. package/dist/components/tooltip.d.ts +42 -0
  291. package/dist/components/tooltip.js +47 -0
  292. package/dist/components/tour.d.ts +127 -0
  293. package/dist/components/tour.js +648 -0
  294. package/dist/components/tree.d.ts +75 -0
  295. package/dist/components/tree.js +649 -0
  296. package/dist/components/typography.d.ts +134 -0
  297. package/dist/components/typography.js +176 -0
  298. package/dist/components/video-player.d.ts +284 -0
  299. package/dist/components/video-player.js +1392 -0
  300. package/dist/illustration.d.ts +2 -0
  301. package/dist/illustration.js +7 -0
  302. package/dist/index.d.ts +93 -0
  303. package/dist/index.js +94 -0
  304. package/dist/lib/cn.d.ts +20 -0
  305. package/dist/lib/cn.js +38 -0
  306. package/dist/lib/code-highlight.d.ts +18 -0
  307. package/dist/lib/code-highlight.js +174 -0
  308. package/dist/lib/code-theme.d.ts +19 -0
  309. package/dist/lib/code-theme.js +140 -0
  310. package/dist/lib/collapse-row.d.ts +9 -0
  311. package/dist/lib/collapse-row.js +129 -0
  312. package/dist/lib/digit-roll.d.ts +21 -0
  313. package/dist/lib/digit-roll.js +31 -0
  314. package/dist/lib/editorial-assets.d.ts +16 -0
  315. package/dist/lib/editorial-assets.js +56 -0
  316. package/dist/lib/field-errors.d.ts +28 -0
  317. package/dist/lib/field-errors.js +24 -0
  318. package/dist/lib/field-value.d.ts +13 -0
  319. package/dist/lib/field-value.js +44 -0
  320. package/dist/lib/figure/catalog.d.ts +127 -0
  321. package/dist/lib/figure/catalog.js +130 -0
  322. package/dist/lib/figure/figures/automation.d.ts +7 -0
  323. package/dist/lib/figure/figures/automation.js +143 -0
  324. package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
  325. package/dist/lib/figure/figures/bar-chart.js +99 -0
  326. package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
  327. package/dist/lib/figure/figures/brackets-classic.js +170 -0
  328. package/dist/lib/figure/figures/brackets.d.ts +8 -0
  329. package/dist/lib/figure/figures/brackets.js +84 -0
  330. package/dist/lib/figure/figures/city.d.ts +7 -0
  331. package/dist/lib/figure/figures/city.js +93 -0
  332. package/dist/lib/figure/figures/conveyor.d.ts +7 -0
  333. package/dist/lib/figure/figures/conveyor.js +97 -0
  334. package/dist/lib/figure/figures/database.d.ts +7 -0
  335. package/dist/lib/figure/figures/database.js +65 -0
  336. package/dist/lib/figure/figures/documents.d.ts +7 -0
  337. package/dist/lib/figure/figures/documents.js +83 -0
  338. package/dist/lib/figure/figures/inbox.d.ts +7 -0
  339. package/dist/lib/figure/figures/inbox.js +92 -0
  340. package/dist/lib/figure/figures/laptop.d.ts +7 -0
  341. package/dist/lib/figure/figures/laptop.js +67 -0
  342. package/dist/lib/figure/figures/monitor.d.ts +7 -0
  343. package/dist/lib/figure/figures/monitor.js +59 -0
  344. package/dist/lib/figure/figures/pipeline.d.ts +8 -0
  345. package/dist/lib/figure/figures/pipeline.js +117 -0
  346. package/dist/lib/figure/figures/platform.d.ts +7 -0
  347. package/dist/lib/figure/figures/platform.js +117 -0
  348. package/dist/lib/figure/figures/server.d.ts +7 -0
  349. package/dist/lib/figure/figures/server.js +115 -0
  350. package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
  351. package/dist/lib/figure/figures/spreadsheet.js +87 -0
  352. package/dist/lib/figure/figures/timeline.d.ts +7 -0
  353. package/dist/lib/figure/figures/timeline.js +65 -0
  354. package/dist/lib/figure/kernel.d.ts +152 -0
  355. package/dist/lib/figure/kernel.js +576 -0
  356. package/dist/lib/figure/parts.d.ts +42 -0
  357. package/dist/lib/figure/parts.js +126 -0
  358. package/dist/lib/form-reset.d.ts +11 -0
  359. package/dist/lib/form-reset.js +22 -0
  360. package/dist/lib/glide.d.ts +53 -0
  361. package/dist/lib/glide.js +138 -0
  362. package/dist/lib/graph-layout.d.ts +58 -0
  363. package/dist/lib/graph-layout.js +209 -0
  364. package/dist/lib/illustration-drawings.d.ts +89 -0
  365. package/dist/lib/illustration-drawings.js +539 -0
  366. package/dist/lib/illustration-info.d.ts +37 -0
  367. package/dist/lib/illustration-info.js +22 -0
  368. package/dist/lib/illustration-library.d.ts +87 -0
  369. package/dist/lib/illustration-library.js +352 -0
  370. package/dist/lib/logo-geometry.d.ts +29 -0
  371. package/dist/lib/logo-geometry.js +67 -0
  372. package/dist/lib/markdown-guard.d.ts +16 -0
  373. package/dist/lib/markdown-guard.js +123 -0
  374. package/dist/lib/merge-refs.d.ts +10 -0
  375. package/dist/lib/merge-refs.js +26 -0
  376. package/dist/lib/money.d.ts +73 -0
  377. package/dist/lib/money.js +343 -0
  378. package/dist/lib/motion.d.ts +6 -0
  379. package/dist/lib/motion.js +12 -0
  380. package/dist/lib/pdf-worker.d.ts +1 -0
  381. package/dist/lib/pdf-worker.js +6 -0
  382. package/dist/lib/pdf.d.ts +19 -0
  383. package/dist/lib/pdf.js +58 -0
  384. package/dist/lib/phone-countries.d.ts +1 -0
  385. package/dist/lib/phone-countries.js +281 -0
  386. package/dist/lib/phone.d.ts +90 -0
  387. package/dist/lib/phone.js +286 -0
  388. package/dist/lib/platform.d.ts +38 -0
  389. package/dist/lib/platform.js +75 -0
  390. package/dist/lib/room.d.ts +25 -0
  391. package/dist/lib/room.js +46 -0
  392. package/dist/lib/row-index.d.ts +15 -0
  393. package/dist/lib/row-index.js +136 -0
  394. package/dist/lib/table-fit.d.ts +143 -0
  395. package/dist/lib/table-fit.js +596 -0
  396. package/dist/lib/theme-script.d.ts +31 -0
  397. package/dist/lib/theme-script.js +49 -0
  398. package/dist/lib/tippy/pixels.d.ts +47 -0
  399. package/dist/lib/tippy/pixels.js +187 -0
  400. package/dist/lib/tippy/sprite.d.ts +86 -0
  401. package/dist/lib/tippy/sprite.js +753 -0
  402. package/dist/messages/de.d.ts +12 -0
  403. package/dist/messages/de.js +326 -0
  404. package/dist/styles/expressive.css +203 -0
  405. package/dist/styles/fonts.css +145 -0
  406. package/dist/styles/index.css +207 -0
  407. package/dist/styles/material.css +317 -0
  408. package/dist/styles/parts/ai.css +361 -0
  409. package/dist/styles/parts/brand.css +75 -0
  410. package/dist/styles/parts/controls.css +774 -0
  411. package/dist/styles/parts/data.css +222 -0
  412. package/dist/styles/parts/editorial.css +120 -0
  413. package/dist/styles/parts/feedback.css +340 -0
  414. package/dist/styles/parts/foundations.css +166 -0
  415. package/dist/styles/parts/graph.css +214 -0
  416. package/dist/styles/parts/inputs.css +261 -0
  417. package/dist/styles/parts/isometric.css +124 -0
  418. package/dist/styles/parts/navigation.css +424 -0
  419. package/dist/styles/parts/overlays.css +250 -0
  420. package/dist/styles/parts/pdf.css +154 -0
  421. package/dist/styles/parts/react-flow.css +519 -0
  422. package/dist/styles/tokens.css +299 -0
  423. package/dist/vite.d.ts +66 -0
  424. package/dist/vite.js +29 -0
  425. package/package.json +183 -5
@@ -0,0 +1,774 @@
1
+ /* controls components — owned by the controls group. Prefer Tailwind in TSX; use this only for what classes cannot express (keyframes, complex selectors, SVG). */
2
+
3
+ /* The switch thumb's stretch and travel, registered so they can transition as values. */
4
+ @property --thumb-w {
5
+ syntax: "<length>";
6
+ inherits: false;
7
+ initial-value: 18px;
8
+ }
9
+ @property --thumb-on {
10
+ syntax: "<number>";
11
+ inherits: false;
12
+ initial-value: 0;
13
+ }
14
+
15
+ @layer components {
16
+ /* ── Toggle: the pressed ("on") shadow ───────────────────────────────────────
17
+ * The raised-current edge (--control-focus) plus a pressed-in inset. The inset uses
18
+ * --control-edge, which is 18% black in light and 65% black in dark, so the sink reads
19
+ * in both themes. Applied in toggle.tsx with `data-pressed:shadow-(--toggle-shadow-pressed)`. */
20
+ [data-slot="toggle"] {
21
+ --toggle-shadow-pressed:
22
+ 0 0 0 1px var(--control-focus), inset 0 2px 4px var(--control-edge),
23
+ inset 0 0 0 1px var(--control-inner-edge);
24
+ }
25
+
26
+ /* ── Toggle and toggle-group items ──────────────────────────────────────────
27
+ * Hover only brightens the ink — no fill, so hover never reads as "on". A press shows in the
28
+ * material (the pressed inset), not in movement. The inset is inlined: theme shadows exist as
29
+ * variables only when a utility uses them. */
30
+ [data-slot="toggle"],
31
+ [data-slot="toggle-group-item"] {
32
+ transition:
33
+ background-color var(--duration) var(--ease),
34
+ color var(--duration) var(--ease),
35
+ box-shadow var(--duration) var(--ease);
36
+ }
37
+ [data-slot="toggle"]:active:not(:disabled, [data-disabled]) {
38
+ --toggle-shadow-pressed:
39
+ 0 0 0 1px var(--control-edge), inset 0 2px 4px #0000002e, inset 0 0 0 1px var(--control-inner-edge);
40
+ box-shadow: var(--toggle-shadow-pressed);
41
+ }
42
+
43
+ /* ── Checkbox: the check draws in, and undraws the same way out ──────────────
44
+ * Ticking draws the check from its short leg up to the long one; unticking runs it backwards,
45
+ * faster, and the fill clears as it finishes. Base UI keeps the indicator mounted while
46
+ * its own transitions run, so it carries a stepped opacity of the same length. Starting and
47
+ * ending styles exist only on change, so nothing animates on first render. */
48
+ [data-slot="checkbox"],
49
+ [data-slot="menu-checkbox-item"],
50
+ [data-slot="menubar-checkbox-item"] {
51
+ --check-undraw: calc(var(--duration) * 0.72);
52
+ }
53
+ /* A menu's checkbox item draws its check the same way. */
54
+ :is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"]) {
55
+ transition: opacity var(--check-undraw) steps(1, end);
56
+ }
57
+ :is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"])[data-ending-style] {
58
+ opacity: 0;
59
+ }
60
+ :is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"]) svg {
61
+ stroke-dasharray: 24;
62
+ stroke-dashoffset: 0;
63
+ transition: stroke-dashoffset calc(var(--duration) * 1.6) var(--ease);
64
+ }
65
+ :is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"]):is(
66
+ [data-starting-style],
67
+ [data-ending-style]
68
+ )
69
+ svg {
70
+ stroke-dashoffset: -24;
71
+ }
72
+ :is([data-slot="checkbox-indicator"], [data-slot="menu-checkbox-indicator"])[data-ending-style] svg {
73
+ transition-duration: var(--check-undraw);
74
+ transition-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
75
+ }
76
+
77
+ /* ── Menu: a trigger's down chevron turns up while its menu is open ───────────────────── */
78
+ [aria-haspopup="menu"] svg.lucide-chevron-down {
79
+ transition: rotate var(--duration) var(--ease);
80
+ }
81
+ [aria-haspopup="menu"][aria-expanded="true"] svg.lucide-chevron-down {
82
+ rotate: 180deg;
83
+ }
84
+
85
+ /* ── Switch: the thumb stretches, then slides ────────────────────────────────
86
+ * A press stretches the thumb from 18 to 25px, toward the side it will travel. Hover leaves it
87
+ * alone: a stretch is the start of the toggle, and pointing at a switch is not flipping it.
88
+ * Checked, it sits against the far edge: the track's inner width (34px) minus its own width,
89
+ * so it stays flush while it stretches.
90
+ *
91
+ * Two registered values move, not width and position: the stretch (--thumb-w) and how far on
92
+ * the switch is (--thumb-on, 0 to 1), each in 2 × --duration. Width and offset are worked out
93
+ * from them every frame, both in layout, so the far edge cannot drift — two separate
94
+ * transitions fell out of step whenever one was reversed mid-way (hover out, release). */
95
+ [data-slot="switch-thumb"] {
96
+ --thumb-w: 18px;
97
+ --thumb-on: 0;
98
+ width: var(--thumb-w);
99
+ height: 18px;
100
+ margin-inline-start: calc((34px - var(--thumb-w)) * var(--thumb-on));
101
+ transition:
102
+ --thumb-w calc(var(--duration) * 2) var(--ease),
103
+ --thumb-on calc(var(--duration) * 2) var(--ease),
104
+ background-color var(--duration) var(--ease),
105
+ box-shadow var(--duration) var(--ease);
106
+ }
107
+ [data-slot="switch-thumb"][data-checked] {
108
+ --thumb-on: 1;
109
+ }
110
+ [data-slot="switch"]:not([data-disabled], [data-readonly]):active > [data-slot="switch-thumb"] {
111
+ --thumb-w: 25px;
112
+ }
113
+
114
+ /* ── Button group: how neighbours meet ───────────────────────────────────────
115
+ * Fields (real borders) overlap by a pixel so their borders merge into one line. Buttons draw
116
+ * their edge as an outer ring plus inner highlights, which doubled up at the join — a heavy bar
117
+ * on a split primary, and the second half seeming to sit on the first. So a joined button trims
118
+ * 1px of its inner side (ring and highlight with it), the two meet exactly, and the later one
119
+ * draws a single 1px seam: the edge colour on raised buttons, a soft line on the primary. A
120
+ * focused or open control drops the trim so its outline and ring show whole. */
121
+ [data-slot="button-group"][data-orientation="horizontal"]
122
+ > :not(
123
+ :nth-child(
124
+ 1
125
+ of
126
+ :not(
127
+ [data-base-ui-focus-guard],
128
+ span[aria-owns],
129
+ [data-slot="button-group-separator"],
130
+ [data-slot="copy-button-status"]
131
+ )
132
+ )
133
+ ) {
134
+ margin-inline-start: -1px;
135
+ }
136
+ [data-slot="button-group"][data-orientation="vertical"]
137
+ > :not(
138
+ :nth-child(
139
+ 1
140
+ of
141
+ :not(
142
+ [data-base-ui-focus-guard],
143
+ span[aria-owns],
144
+ [data-slot="button-group-separator"],
145
+ [data-slot="copy-button-status"]
146
+ )
147
+ )
148
+ ) {
149
+ margin-top: -1px;
150
+ }
151
+ [data-slot="button-group"][data-orientation="horizontal"]
152
+ > [data-variant]:not(
153
+ :nth-child(
154
+ 1
155
+ of
156
+ :not(
157
+ [data-base-ui-focus-guard],
158
+ span[aria-owns],
159
+ [data-slot="button-group-separator"],
160
+ [data-slot="copy-button-status"]
161
+ )
162
+ )
163
+ ) {
164
+ margin-inline-start: -2px;
165
+ }
166
+ [data-slot="button-group"][data-orientation="vertical"]
167
+ > [data-variant]:not(
168
+ :nth-child(
169
+ 1
170
+ of
171
+ :not(
172
+ [data-base-ui-focus-guard],
173
+ span[aria-owns],
174
+ [data-slot="button-group-separator"],
175
+ [data-slot="copy-button-status"]
176
+ )
177
+ )
178
+ ) {
179
+ margin-top: -2px;
180
+ }
181
+ [data-slot="button-group"][data-orientation="horizontal"]
182
+ > [data-variant]:nth-child(
183
+ 1
184
+ of
185
+ :not(
186
+ [data-base-ui-focus-guard],
187
+ span[aria-owns],
188
+ [data-slot="button-group-separator"],
189
+ [data-slot="copy-button-status"]
190
+ )
191
+ ):not(
192
+ :nth-last-child(
193
+ 1
194
+ of
195
+ :not(
196
+ [data-base-ui-focus-guard],
197
+ span[aria-owns],
198
+ [data-slot="button-group-separator"],
199
+ [data-slot="copy-button-status"]
200
+ )
201
+ )
202
+ ) {
203
+ clip-path: inset(-16px 1px -16px -16px);
204
+ }
205
+ [data-slot="button-group"][data-orientation="horizontal"]
206
+ > [data-variant]:nth-last-child(
207
+ 1
208
+ of
209
+ :not(
210
+ [data-base-ui-focus-guard],
211
+ span[aria-owns],
212
+ [data-slot="button-group-separator"],
213
+ [data-slot="copy-button-status"]
214
+ )
215
+ ):not(
216
+ :nth-child(
217
+ 1
218
+ of
219
+ :not(
220
+ [data-base-ui-focus-guard],
221
+ span[aria-owns],
222
+ [data-slot="button-group-separator"],
223
+ [data-slot="copy-button-status"]
224
+ )
225
+ )
226
+ ) {
227
+ clip-path: inset(-16px -16px -16px 1px);
228
+ }
229
+ [data-slot="button-group"][data-orientation="horizontal"]
230
+ > [data-variant]:not(
231
+ :nth-child(
232
+ 1
233
+ of
234
+ :not(
235
+ [data-base-ui-focus-guard],
236
+ span[aria-owns],
237
+ [data-slot="button-group-separator"],
238
+ [data-slot="copy-button-status"]
239
+ )
240
+ )
241
+ ):not(
242
+ :nth-last-child(
243
+ 1
244
+ of
245
+ :not(
246
+ [data-base-ui-focus-guard],
247
+ span[aria-owns],
248
+ [data-slot="button-group-separator"],
249
+ [data-slot="copy-button-status"]
250
+ )
251
+ )
252
+ ) {
253
+ clip-path: inset(-16px 1px);
254
+ }
255
+ /* Right to left the first control is on the right, so the trims swap sides (clip-path has no
256
+ logical form). Not :dir(rtl), which the CSS build lowers to a list of languages (see the Badge). */
257
+ [data-slot="button-group"][data-orientation="horizontal"]:where([dir="rtl"], [dir="rtl"] *)
258
+ > [data-variant]:nth-child(
259
+ 1
260
+ of
261
+ :not(
262
+ [data-base-ui-focus-guard],
263
+ span[aria-owns],
264
+ [data-slot="button-group-separator"],
265
+ [data-slot="copy-button-status"]
266
+ )
267
+ ):not(
268
+ :nth-last-child(
269
+ 1
270
+ of
271
+ :not(
272
+ [data-base-ui-focus-guard],
273
+ span[aria-owns],
274
+ [data-slot="button-group-separator"],
275
+ [data-slot="copy-button-status"]
276
+ )
277
+ )
278
+ ) {
279
+ clip-path: inset(-16px -16px -16px 1px);
280
+ }
281
+ [data-slot="button-group"][data-orientation="horizontal"]:where([dir="rtl"], [dir="rtl"] *)
282
+ > [data-variant]:nth-last-child(
283
+ 1
284
+ of
285
+ :not(
286
+ [data-base-ui-focus-guard],
287
+ span[aria-owns],
288
+ [data-slot="button-group-separator"],
289
+ [data-slot="copy-button-status"]
290
+ )
291
+ ):not(
292
+ :nth-child(
293
+ 1
294
+ of
295
+ :not(
296
+ [data-base-ui-focus-guard],
297
+ span[aria-owns],
298
+ [data-slot="button-group-separator"],
299
+ [data-slot="copy-button-status"]
300
+ )
301
+ )
302
+ ) {
303
+ clip-path: inset(-16px 1px -16px -16px);
304
+ }
305
+ [data-slot="button-group"][data-orientation="vertical"]
306
+ > [data-variant]:nth-child(
307
+ 1
308
+ of
309
+ :not(
310
+ [data-base-ui-focus-guard],
311
+ span[aria-owns],
312
+ [data-slot="button-group-separator"],
313
+ [data-slot="copy-button-status"]
314
+ )
315
+ ):not(
316
+ :nth-last-child(
317
+ 1
318
+ of
319
+ :not(
320
+ [data-base-ui-focus-guard],
321
+ span[aria-owns],
322
+ [data-slot="button-group-separator"],
323
+ [data-slot="copy-button-status"]
324
+ )
325
+ )
326
+ ) {
327
+ clip-path: inset(-16px -16px 1px -16px);
328
+ }
329
+ [data-slot="button-group"][data-orientation="vertical"]
330
+ > [data-variant]:nth-last-child(
331
+ 1
332
+ of
333
+ :not(
334
+ [data-base-ui-focus-guard],
335
+ span[aria-owns],
336
+ [data-slot="button-group-separator"],
337
+ [data-slot="copy-button-status"]
338
+ )
339
+ ):not(
340
+ :nth-child(
341
+ 1
342
+ of
343
+ :not(
344
+ [data-base-ui-focus-guard],
345
+ span[aria-owns],
346
+ [data-slot="button-group-separator"],
347
+ [data-slot="copy-button-status"]
348
+ )
349
+ )
350
+ ) {
351
+ clip-path: inset(1px -16px -16px -16px);
352
+ }
353
+ [data-slot="button-group"][data-orientation="vertical"]
354
+ > [data-variant]:not(
355
+ :nth-child(
356
+ 1
357
+ of
358
+ :not(
359
+ [data-base-ui-focus-guard],
360
+ span[aria-owns],
361
+ [data-slot="button-group-separator"],
362
+ [data-slot="copy-button-status"]
363
+ )
364
+ )
365
+ ):not(
366
+ :nth-last-child(
367
+ 1
368
+ of
369
+ :not(
370
+ [data-base-ui-focus-guard],
371
+ span[aria-owns],
372
+ [data-slot="button-group-separator"],
373
+ [data-slot="copy-button-status"]
374
+ )
375
+ )
376
+ ) {
377
+ clip-path: inset(1px -16px);
378
+ }
379
+ [data-slot="button-group"] > [data-variant]:is(:focus-visible, :has(:focus-visible), [data-popup-open]) {
380
+ clip-path: none;
381
+ }
382
+ [data-slot="button-group"]
383
+ > [data-variant]:not(
384
+ :nth-child(
385
+ 1
386
+ of
387
+ :not(
388
+ [data-base-ui-focus-guard],
389
+ span[aria-owns],
390
+ [data-slot="button-group-separator"],
391
+ [data-slot="copy-button-status"]
392
+ )
393
+ )
394
+ )::after {
395
+ content: "";
396
+ position: absolute;
397
+ pointer-events: none;
398
+ background: var(--control-edge);
399
+ }
400
+ [data-slot="button-group"]
401
+ > [data-variant="primary"]:not(
402
+ :nth-child(
403
+ 1
404
+ of
405
+ :not(
406
+ [data-base-ui-focus-guard],
407
+ span[aria-owns],
408
+ [data-slot="button-group-separator"],
409
+ [data-slot="copy-button-status"]
410
+ )
411
+ )
412
+ )::after {
413
+ background: color-mix(in oklab, var(--primary-text) 22%, transparent);
414
+ }
415
+ [data-slot="button-group"][data-orientation="horizontal"]
416
+ > [data-variant]:not(
417
+ :nth-child(
418
+ 1
419
+ of
420
+ :not(
421
+ [data-base-ui-focus-guard],
422
+ span[aria-owns],
423
+ [data-slot="button-group-separator"],
424
+ [data-slot="copy-button-status"]
425
+ )
426
+ )
427
+ )::after {
428
+ top: -1px;
429
+ bottom: -1px;
430
+ inset-inline-start: 0;
431
+ width: 1px;
432
+ }
433
+ [data-slot="button-group"][data-orientation="vertical"]
434
+ > [data-variant]:not(
435
+ :nth-child(
436
+ 1
437
+ of
438
+ :not(
439
+ [data-base-ui-focus-guard],
440
+ span[aria-owns],
441
+ [data-slot="button-group-separator"],
442
+ [data-slot="copy-button-status"]
443
+ )
444
+ )
445
+ )::after {
446
+ left: -1px;
447
+ right: -1px;
448
+ top: 0;
449
+ height: 1px;
450
+ }
451
+
452
+ /* ── Toggle group, reveal: one part of a segment stays hidden until it is pressed ──────────
453
+ * A segment's icon and label each sit in a one-column grid; the hidden one is a 0fr column
454
+ * with its content clipped, and widens to 1fr when the segment is pressed. The width moves on
455
+ * 2 × --duration like the raised surface that follows it; the fade on --duration. */
456
+ [data-slot="toggle-group-item"] > [data-slot="toggle-group-icon"],
457
+ [data-slot="toggle-group-item"] > [data-slot="toggle-group-label"] {
458
+ display: grid;
459
+ grid-template-columns: 1fr;
460
+ align-items: center;
461
+ transition:
462
+ grid-template-columns calc(var(--duration) * 2) var(--ease),
463
+ opacity var(--duration) var(--ease);
464
+ }
465
+ [data-slot="toggle-group-icon"] > span,
466
+ [data-slot="toggle-group-label"] > span {
467
+ display: flex;
468
+ align-items: center;
469
+ min-width: 0;
470
+ overflow: hidden;
471
+ }
472
+ /* The icon–label gap travels inside the part that slides (a pseudo-element, which a 0fr
473
+ track does not count the way it counts padding), so nothing is left of it while hidden. */
474
+ [data-slot="toggle-group"][data-reveal="label"] [data-slot="toggle-group-label"] > span::before,
475
+ [data-slot="toggle-group"][data-reveal="icon"] [data-slot="toggle-group-icon"] > span::after {
476
+ content: "";
477
+ flex: none;
478
+ width: --spacing(1.5);
479
+ }
480
+ [data-slot="toggle-group"][data-reveal="label"]
481
+ > [data-slot="toggle-group-item"]:not([data-pressed])
482
+ > [data-slot="toggle-group-label"],
483
+ [data-slot="toggle-group"][data-reveal="icon"]
484
+ > [data-slot="toggle-group-item"]:not([data-pressed])
485
+ > [data-slot="toggle-group-icon"] {
486
+ grid-template-columns: 0fr;
487
+ opacity: 0;
488
+ }
489
+
490
+ /* ── Button, collapsible: the label folds away to leave the icon ─────────────────────────
491
+ * Like a revealing toggle-group segment: the label is a one-column grid that narrows to 0fr
492
+ * with its text clipped, on 2 × --duration, and fades on --duration. The icon–label gap
493
+ * travels inside it (a pseudo-element on the icon's side), so nothing of it is left. The
494
+ * first decision, before the first paint, is drawn without motion (data-collapse-instant; the
495
+ * button's own transitions are switched off by a utility in Button, above the material). */
496
+ [data-slot="button"] > [data-slot="button-label"] {
497
+ display: grid;
498
+ grid-template-columns: 1fr;
499
+ align-items: center;
500
+ transition:
501
+ grid-template-columns calc(var(--duration) * 2) var(--ease),
502
+ opacity var(--duration) var(--ease);
503
+ }
504
+ [data-slot="button-label"] > span {
505
+ display: flex;
506
+ align-items: center;
507
+ min-width: 0;
508
+ overflow: hidden;
509
+ }
510
+ [data-slot="button-label"][data-after-icon] > span::before,
511
+ [data-slot="button-label"]:not([data-after-icon]) > span::after {
512
+ content: "";
513
+ flex: none;
514
+ width: var(--button-gap);
515
+ }
516
+ [data-slot="button"][data-collapsed] > [data-slot="button-label"] {
517
+ grid-template-columns: 0fr;
518
+ opacity: 0;
519
+ }
520
+ /* An expandable button is the fold in reverse: folded at rest, open on hover or keyboard
521
+ focus. Touch screens have no hover, so there it stays an icon. */
522
+ @media (hover: hover) {
523
+ [data-slot="button"][data-expandable="label"]:hover > [data-slot="button-label"] {
524
+ grid-template-columns: 1fr;
525
+ opacity: 1;
526
+ }
527
+ }
528
+ [data-slot="button"][data-expandable="label"]:focus-visible > [data-slot="button-label"] {
529
+ grid-template-columns: 1fr;
530
+ opacity: 1;
531
+ }
532
+ /* Hover intent: an expandable button opens once the pointer rests on it (70ms), so passing over
533
+ it on the way somewhere does nothing, and stays open a moment after it leaves (140ms), so
534
+ the button the pointer is heading for does not move away under it. Keyboard focus and
535
+ reduced motion are immediate. */
536
+ [data-slot="button"][data-expandable] {
537
+ --expand-delay: 140ms;
538
+ }
539
+ @media (hover: hover) {
540
+ [data-slot="button"][data-expandable]:hover {
541
+ --expand-delay: 70ms;
542
+ }
543
+ }
544
+ [data-slot="button"][data-expandable]:focus-visible {
545
+ --expand-delay: 0s;
546
+ }
547
+ @media (prefers-reduced-motion: reduce) {
548
+ [data-slot="button"][data-expandable] {
549
+ --expand-delay: 0s !important;
550
+ }
551
+ }
552
+ [data-slot="button"][data-expandable] > :is([data-slot="button-label"], [data-slot="button-icon"]) {
553
+ transition-delay: var(--expand-delay);
554
+ }
555
+
556
+ /* expandable="icon" is the other way round: the text stays, and the icon slides in beside it
557
+ on hover or keyboard focus, out of a 0fr column like a revealing toggle-group segment. The
558
+ gap travels inside the icon's column, on the side that faces the text. */
559
+ [data-slot="button"] > [data-slot="button-icon"] {
560
+ display: grid;
561
+ grid-template-columns: 1fr;
562
+ align-items: center;
563
+ transition:
564
+ grid-template-columns calc(var(--duration) * 2) var(--ease),
565
+ opacity var(--duration) var(--ease);
566
+ }
567
+ [data-slot="button-icon"] > span {
568
+ display: flex;
569
+ align-items: center;
570
+ min-width: 0;
571
+ overflow: hidden;
572
+ }
573
+ [data-slot="button-icon"][data-before-label] > span::after,
574
+ [data-slot="button-icon"]:not([data-before-label]) > span::before {
575
+ content: "";
576
+ flex: none;
577
+ width: var(--button-gap);
578
+ }
579
+ [data-slot="button"][data-expandable="icon"] > [data-slot="button-icon"] {
580
+ grid-template-columns: 0fr;
581
+ opacity: 0;
582
+ }
583
+ @media (hover: hover) {
584
+ [data-slot="button"][data-expandable="icon"]:hover > [data-slot="button-icon"] {
585
+ grid-template-columns: 1fr;
586
+ opacity: 1;
587
+ }
588
+ }
589
+ [data-slot="button"][data-expandable="icon"]:focus-visible > [data-slot="button-icon"] {
590
+ grid-template-columns: 1fr;
591
+ opacity: 1;
592
+ }
593
+ [data-slot="button"][data-collapse-instant] > [data-slot="button-label"] {
594
+ transition: none;
595
+ }
596
+
597
+ /* ── Input group: nested radius ──────────────────────────────────────────────
598
+ * A button inside the field is concentric with it: outer radius − inset = inner radius,
599
+ * where the inset is the space between the field's border and the button.
600
+ * default: 10 − ((38 − 30) / 2 − 1) = 7px
601
+ * dense: 10 − ((30 − 24) / 2 − 1) = 8px
602
+ * Applied in input-group.tsx with `rounded-(--input-group-button-radius)`. */
603
+ [data-slot="input-group-button"] {
604
+ --input-group-button-radius: calc(
605
+ var(--radius-control) - ((var(--control-h) - var(--control-inset)) / 2 - 1px)
606
+ );
607
+ }
608
+ [data-slot="input-group"][data-size="sm"] [data-slot="input-group-button"] {
609
+ --input-group-button-radius: calc(
610
+ var(--radius-control) - ((var(--control-h-sm) - var(--control-inset-sm)) / 2 - 1px)
611
+ );
612
+ }
613
+
614
+ /* ── Badge: pinned to the corner of what it marks ────────────────────────────
615
+ * The badge is centred on the anchor point. For a circle that is its 45° point,
616
+ * (1 − 1/√2) / 2 ≈ 14.6% in from the bounding box; for a rect, just inside the corner.
617
+ * The outline is a cut-out in the page colour that separates the badge from the object. */
618
+ [data-slot="badge-anchor"] {
619
+ --badge-inset: 14.6%;
620
+ }
621
+ [data-slot="badge-anchor"][data-shape="rect"] {
622
+ --badge-inset: 2px;
623
+ }
624
+ [data-slot="badge-anchor"] > [data-slot="badge"] {
625
+ position: absolute;
626
+ z-index: 1;
627
+ top: var(--badge-inset);
628
+ inset-inline-end: var(--badge-inset);
629
+ translate: 50% -50%;
630
+ outline: 2px solid var(--badge-cutout, var(--background));
631
+ outline-offset: 0;
632
+ pointer-events: none;
633
+ }
634
+ [data-slot="badge-anchor"][data-placement="bottom-end"] > [data-slot="badge"] {
635
+ top: auto;
636
+ bottom: var(--badge-inset);
637
+ translate: 50% 50%;
638
+ }
639
+ /* Not :dir(rtl): the CSS build lowers it to a list of right-to-left languages, which misses a
640
+ page set right to left by its dir attribute alone. */
641
+ [data-slot="badge-anchor"]:where([dir="rtl"], [dir="rtl"] *) > [data-slot="badge"] {
642
+ translate: -50% -50%;
643
+ }
644
+ [data-slot="badge-anchor"][data-placement="bottom-end"]:where([dir="rtl"], [dir="rtl"] *)
645
+ > [data-slot="badge"] {
646
+ translate: -50% 50%;
647
+ }
648
+ }
649
+
650
+ /* ── Checkbox: the fill clears right behind the undraw ───────────────────────
651
+ * Ticking fills at once and draws the check; unticking is the same in reverse and quicker: the
652
+ * check undraws in ~110ms and the fill clears as it finishes. Unlayered: the field material sets
653
+ * its own `transition`, which a layered rule cannot change. */
654
+ [data-slot="checkbox"] {
655
+ transition:
656
+ border-color var(--duration) var(--ease),
657
+ box-shadow var(--duration) var(--ease),
658
+ background-color var(--duration) var(--ease);
659
+ }
660
+ [data-slot="checkbox"]:not([data-checked], [data-indeterminate]) {
661
+ transition-duration: calc(var(--duration) * 0.72);
662
+ transition-delay: calc(var(--check-undraw) * 0.6);
663
+ }
664
+
665
+ /* ── Button group with a field: one outline for the pair ─────────────────────────────────────
666
+ * A raised button draws its edge 1px outside its box; a field draws it inside its border, plus
667
+ * a 1px highlight under it. Next to a field a secondary button takes the field's geometry and
668
+ * colours: its edge moves inside and becomes --field-edge, it gets the same highlight below,
669
+ * and the seam between them is --field-edge too. In light mode the two edge colours were close;
670
+ * in dark mode the button's near-black edge vanished into the page and the field's light one
671
+ * did not, so the button looked 2px smaller while measuring the same. (A primary button keeps
672
+ * its own shadow.) Unlayered: it must beat the raised material, which is a utility. */
673
+ [data-slot="button-group"]:has(
674
+ [data-slot="input"],
675
+ [data-slot="input-group"],
676
+ [data-slot="select-trigger"],
677
+ [data-slot="native-select"]
678
+ )
679
+ > [data-variant="secondary"] {
680
+ border-color: var(--field-edge);
681
+ box-shadow:
682
+ inset 0 1px 0 var(--control-highlight),
683
+ inset 0 0 0 1px var(--control-inner-edge),
684
+ 0 1px 0 var(--control-highlight);
685
+ }
686
+ [data-slot="button-group"]:has(
687
+ [data-slot="input"],
688
+ [data-slot="input-group"],
689
+ [data-slot="select-trigger"],
690
+ [data-slot="native-select"]
691
+ )
692
+ > [data-variant="secondary"]:active:not(:disabled, [data-disabled]) {
693
+ box-shadow:
694
+ inset 0 2px 4px #0000002e,
695
+ inset 0 0 0 1px var(--control-inner-edge),
696
+ 0 1px 0 var(--control-highlight);
697
+ }
698
+ [data-slot="button-group"]:has(
699
+ [data-slot="input"],
700
+ [data-slot="input-group"],
701
+ [data-slot="select-trigger"],
702
+ [data-slot="native-select"]
703
+ )
704
+ > [data-variant="secondary"]::after {
705
+ background: var(--field-edge);
706
+ }
707
+
708
+ /*
709
+ * A folded collapsible Button is a circle as tall as the button: padding of (height − 16px icon −
710
+ * 2px border) / 2 and corners of half the height. Unlayered on purpose: it has to win over the
711
+ * Button size utilities (px-3, rounded-button), and both move on --material-motion.
712
+ */
713
+ [data-slot="button"][data-collapsed] {
714
+ --collapsed-h: var(--control-h);
715
+ padding-inline: calc((var(--collapsed-h) - 1rem - 2px) / 2);
716
+ border-radius: calc(var(--collapsed-h) / 2);
717
+ }
718
+ [data-slot="button"][data-collapsed][data-size="sm"] {
719
+ --collapsed-h: var(--control-h-sm);
720
+ }
721
+ [data-slot="button"][data-collapsed][data-size="lg"] {
722
+ --collapsed-h: var(--control-h-lg);
723
+ }
724
+
725
+ /* An expandable Button opens to its size's padding and corners on hover or keyboard focus. */
726
+ @media (hover: hover) {
727
+ [data-slot="button"][data-expandable="label"][data-collapsed]:hover {
728
+ padding-inline: var(--expanded-pad, 1rem);
729
+ border-radius: var(--radius-button);
730
+ }
731
+ }
732
+ [data-slot="button"][data-expandable="label"][data-collapsed]:focus-visible {
733
+ padding-inline: var(--expanded-pad, 1rem);
734
+ border-radius: var(--radius-button);
735
+ }
736
+ [data-slot="button"][data-expandable="label"][data-size="sm"] {
737
+ --expanded-pad: 0.75rem;
738
+ }
739
+ [data-slot="button"][data-expandable="label"][data-size="lg"] {
740
+ --expanded-pad: 1.25rem;
741
+ }
742
+
743
+ /* ── Forced colours: on-states drawn with fills ──────────────────────────────
744
+ * A contrast theme (Windows) replaces fills with the page colour and drops shadows, which is how
745
+ * the material draws a chosen radio, an "on" switch, a slider's value, a pressed toggle and a
746
+ * status dot. Those marks take system colours instead; the focusable controls themselves keep
747
+ * the forced colours (and so their focus ring) and show "pressed" with a heavier edge. */
748
+ @media (forced-colors: active) {
749
+ [data-slot="radio-indicator"],
750
+ [data-slot="switch-thumb"],
751
+ [data-slot="slider-indicator"],
752
+ [data-slot="toggle-group-indicator"],
753
+ [data-slot="badge"][data-dot] {
754
+ forced-color-adjust: none;
755
+ }
756
+ [data-slot="radio-indicator"]::before,
757
+ [data-slot="switch-thumb"],
758
+ [data-slot="badge"][data-dot] {
759
+ background: CanvasText;
760
+ }
761
+ [data-slot="switch-thumb"][data-checked],
762
+ [data-slot="slider-indicator"] {
763
+ background: Highlight;
764
+ }
765
+ [data-slot="slider-thumb"] {
766
+ border: 2px solid;
767
+ }
768
+ [data-slot="toggle-group-indicator"] {
769
+ border: 2px solid Highlight;
770
+ }
771
+ :is([data-slot="toggle"], [data-slot="toggle-group-item"])[data-pressed] {
772
+ border-width: 2px;
773
+ }
774
+ }