@lostgradient/cinder 0.25.0 → 0.26.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 (309) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/components.json +13 -6
  3. package/dist/components/accordion-item/accordion-item.css +0 -10
  4. package/dist/components/action-row/action-row.css +0 -9
  5. package/dist/components/alert/alert.css +0 -1
  6. package/dist/components/alert-dialog/index.js +2 -2
  7. package/dist/components/approval-card/index.js +2 -2
  8. package/dist/components/area-chart/index.js +2 -2
  9. package/dist/components/autocomplete/index.js +2 -2
  10. package/dist/components/avatar-group/avatar-group.css +0 -2
  11. package/dist/components/avatar-group/index.js +2 -2
  12. package/dist/components/backdrop/index.js +2 -2
  13. package/dist/components/bar-chart/index.js +2 -2
  14. package/dist/components/button/button.css +4 -4
  15. package/dist/components/button/button.variables.js +2 -2
  16. package/dist/components/card/card.css +0 -2
  17. package/dist/components/carousel/carousel.css +0 -5
  18. package/dist/components/checkbox/index.js +2 -2
  19. package/dist/components/code-block/code-block.css +0 -5
  20. package/dist/components/code-block/index.js +2 -2
  21. package/dist/components/color-field/index.js +2 -2
  22. package/dist/components/combobox/index.js +2 -2
  23. package/dist/components/command-menu/index.js +2 -2
  24. package/dist/components/command-palette/command-palette.css +50 -46
  25. package/dist/components/command-palette/index.js +2 -2
  26. package/dist/components/confirm-dialog/index.js +2 -2
  27. package/dist/components/context-menu/index.js +2 -2
  28. package/dist/components/data-table/data-table.css +0 -2
  29. package/dist/components/data-table/index.js +2 -2
  30. package/dist/components/date-picker/index.js +2 -2
  31. package/dist/components/date-range-field/index.js +2 -2
  32. package/dist/components/drawer/index.js +2 -2
  33. package/dist/components/dropdown/index.js +2 -2
  34. package/dist/components/dropdown-menu/index.js +2 -2
  35. package/dist/components/feed-event/feed-event.css +0 -2
  36. package/dist/components/file-upload/file-upload.css +0 -5
  37. package/dist/components/find-bar/find-bar.css +9 -1
  38. package/dist/components/focus-trap/index.js +2 -2
  39. package/dist/components/form-field/index.js +2 -2
  40. package/dist/components/guidance-region/index.css +1 -1
  41. package/dist/components/hover-card/index.js +2 -2
  42. package/dist/components/inline-confirm/index.js +2 -2
  43. package/dist/components/input/index.js +2 -2
  44. package/dist/components/input/input.css +95 -6
  45. package/dist/components/invocation-rule-builder/index.js +2 -2
  46. package/dist/components/json-editor/index.js +2 -2
  47. package/dist/components/json-schema-editor/index.js +4 -4
  48. package/dist/components/kanban-board/kanban-board.css +0 -10
  49. package/dist/components/key-value-editor/index.css +1 -1
  50. package/dist/components/line-chart/index.js +2 -2
  51. package/dist/components/marquee/marquee.css +0 -2
  52. package/dist/components/matrix-chart/index.js +2 -2
  53. package/dist/components/menu-bar/index.js +3 -3
  54. package/dist/components/modal/index.js +2 -2
  55. package/dist/components/modal/modal.css +0 -26
  56. package/dist/components/modal-region/index.css +1 -1
  57. package/dist/components/multi-select/index.js +2 -2
  58. package/dist/components/navigation-bar/index.js +2 -2
  59. package/dist/components/parameter-field/index.js +2 -2
  60. package/dist/components/permission-matrix/index.js +2 -2
  61. package/dist/components/policy-lock/index.js +2 -2
  62. package/dist/components/popover/index.js +2 -2
  63. package/dist/components/radio-group/index.js +2 -2
  64. package/dist/components/schedule-builder/index.js +2 -2
  65. package/dist/components/schema-form/index.js +2 -2
  66. package/dist/components/scroll-area/index.js +2 -2
  67. package/dist/components/select/index.js +2 -2
  68. package/dist/components/selectable-row/selectable-row.css +0 -6
  69. package/dist/components/selection-popover/index.js +2 -2
  70. package/dist/components/share-card/index.js +2 -2
  71. package/dist/components/side-navigation/side-navigation.css +0 -1
  72. package/dist/components/sidebar/index.js +2 -2
  73. package/dist/components/speed-dial/index.js +2 -2
  74. package/dist/components/statistic/statistic.css +0 -8
  75. package/dist/components/statistic-group/index.js +2 -2
  76. package/dist/components/statistic-group/statistic-group.css +116 -69
  77. package/dist/components/status-dot/status-dot.css +0 -3
  78. package/dist/components/table/index.js +2 -2
  79. package/dist/components/table-of-contents/table-of-contents.css +0 -4
  80. package/dist/components/textarea/index.js +2 -2
  81. package/dist/components/time-field/index.js +2 -2
  82. package/dist/components/time-field/time-field.css +9 -8
  83. package/dist/components/toast-region/index.js +2 -2
  84. package/dist/components/toggle/toggle.variables.js +2 -2
  85. package/dist/components/tooltip/index.js +2 -2
  86. package/dist/components/transfer-list/index.js +2 -2
  87. package/dist/components/tree/tree.css +0 -3
  88. package/dist/components/virtual-list/_internal/adaptive-overscan.d.ts +87 -0
  89. package/dist/components/virtual-list/_internal/edge-proximity.d.ts +75 -0
  90. package/dist/components/virtual-list/_internal/frame-scheduler.d.ts +76 -0
  91. package/dist/components/virtual-list/_internal/geometry.d.ts +170 -0
  92. package/dist/components/virtual-list/_internal/list-semantics.d.ts +93 -0
  93. package/dist/components/virtual-list/_internal/measurement-window.d.ts +125 -0
  94. package/dist/components/virtual-list/_internal/reverse-order.d.ts +87 -0
  95. package/dist/components/virtual-list/_internal/scroll-restoration.d.ts +98 -0
  96. package/dist/components/virtual-list/_internal/sticky-items.d.ts +48 -0
  97. package/dist/components/virtual-list/_internal/virtual-list-measurement-store.svelte.d.ts +69 -0
  98. package/dist/components/virtual-list/index.d.ts +1 -1
  99. package/dist/components/virtual-list/index.js +2 -2
  100. package/dist/components/virtual-list/virtual-list.css +153 -2
  101. package/dist/components/virtual-list/virtual-list.schema.js +69 -6
  102. package/dist/components/virtual-list/virtual-list.svelte.d.ts +11 -8
  103. package/dist/components/virtual-list/virtual-list.types.d.ts +177 -4
  104. package/dist/index.browser.css +1 -1
  105. package/dist/index.d.ts +1 -1
  106. package/dist/index.js +18 -18
  107. package/dist/server/components/alert-dialog/index.js +1 -1
  108. package/dist/server/components/approval-card/index.js +1 -1
  109. package/dist/server/components/area-chart/index.js +1 -1
  110. package/dist/server/components/autocomplete/index.js +1 -1
  111. package/dist/server/components/avatar-group/index.js +1 -1
  112. package/dist/server/components/backdrop/index.js +1 -1
  113. package/dist/server/components/bar-chart/index.js +1 -1
  114. package/dist/server/components/checkbox/index.js +1 -1
  115. package/dist/server/components/code-block/index.js +1 -1
  116. package/dist/server/components/color-field/index.js +1 -1
  117. package/dist/server/components/combobox/index.js +1 -1
  118. package/dist/server/components/command-menu/index.js +1 -1
  119. package/dist/server/components/command-palette/index.js +2 -2
  120. package/dist/server/components/confirm-dialog/index.js +1 -1
  121. package/dist/server/components/context-menu/index.js +1 -1
  122. package/dist/server/components/data-table/index.js +1 -1
  123. package/dist/server/components/date-picker/index.js +1 -1
  124. package/dist/server/components/date-range-field/index.js +1 -1
  125. package/dist/server/components/drawer/index.js +1 -1
  126. package/dist/server/components/dropdown/index.js +1 -1
  127. package/dist/server/components/dropdown-menu/index.js +2 -2
  128. package/dist/server/components/focus-trap/index.js +1 -1
  129. package/dist/server/components/form-field/index.js +1 -1
  130. package/dist/server/components/hover-card/index.js +1 -1
  131. package/dist/server/components/inline-confirm/index.js +1 -1
  132. package/dist/server/components/input/index.js +1 -1
  133. package/dist/server/components/invocation-rule-builder/index.js +1 -1
  134. package/dist/server/components/json-editor/index.js +1 -1
  135. package/dist/server/components/json-schema-editor/index.js +1 -1
  136. package/dist/server/components/line-chart/index.js +1 -1
  137. package/dist/server/components/matrix-chart/index.js +1 -1
  138. package/dist/server/components/menu-bar/index.js +2 -2
  139. package/dist/server/components/modal/index.js +1 -1
  140. package/dist/server/components/multi-select/index.js +1 -1
  141. package/dist/server/components/navigation-bar/index.js +2 -2
  142. package/dist/server/components/parameter-field/index.js +1 -1
  143. package/dist/server/components/permission-matrix/index.js +1 -1
  144. package/dist/server/components/policy-lock/index.js +1 -1
  145. package/dist/server/components/popover/index.js +1 -1
  146. package/dist/server/components/radio-group/index.js +1 -1
  147. package/dist/server/components/schedule-builder/index.js +1 -1
  148. package/dist/server/components/schema-form/index.js +1 -1
  149. package/dist/server/components/scroll-area/index.js +1 -1
  150. package/dist/server/components/select/index.js +1 -1
  151. package/dist/server/components/selection-popover/index.js +1 -1
  152. package/dist/server/components/share-card/index.js +1 -1
  153. package/dist/server/components/sidebar/index.js +1 -1
  154. package/dist/server/components/speed-dial/index.js +2 -2
  155. package/dist/server/components/statistic-group/index.js +1 -1
  156. package/dist/server/components/table/index.js +1 -1
  157. package/dist/server/components/textarea/index.js +1 -1
  158. package/dist/server/components/time-field/index.js +1 -1
  159. package/dist/server/components/toast-region/index.js +1 -1
  160. package/dist/server/components/tooltip/index.js +1 -1
  161. package/dist/server/components/transfer-list/index.js +1 -1
  162. package/dist/server/components/virtual-list/index.js +2 -2
  163. package/dist/server/index.js +2 -2
  164. package/dist/server/{index.server-skq0f5sr.js → index.server-0jw25w9w.js} +1 -1
  165. package/dist/server/index.server-0kk20wvp.js +4 -0
  166. package/dist/server/{index.server-fzsqdajc.js → index.server-2awq6q9m.js} +1 -1
  167. package/dist/server/{index.server-e4hmhaeh.js → index.server-3xwvw6w2.js} +3 -3
  168. package/dist/server/{index.server-95h7xy01.js → index.server-428dh2t9.js} +2 -2
  169. package/dist/server/{index.server-jd88r74m.js → index.server-5dq66aja.js} +2 -2
  170. package/dist/server/{index.server-dvwfhf77.js → index.server-5s94r0kk.js} +2 -2
  171. package/dist/server/{index.server-qv6z5ta3.js → index.server-80qgcjnm.js} +1 -1
  172. package/dist/server/{index.server-7k2732ky.js → index.server-81abtrsw.js} +1 -1
  173. package/dist/server/{index.server-csmqnx5w.js → index.server-83q1gv2c.js} +1 -1
  174. package/dist/server/{index.server-qw8k9rjg.js → index.server-8fyav10d.js} +1 -1
  175. package/dist/server/{index.server-4dgjj4k1.js → index.server-8h5caecr.js} +2 -2
  176. package/dist/server/{index.server-emyqytmm.js → index.server-90n8sd9e.js} +1 -1
  177. package/dist/server/{index.server-0xrdyzvh.js → index.server-99penx1m.js} +1 -1
  178. package/dist/server/{index.server-p94j3jah.js → index.server-9g9d15z1.js} +1 -1
  179. package/dist/server/{index.server-xp9hkc81.js → index.server-9kbdx511.js} +1 -1
  180. package/dist/server/index.server-a2yhk45s.js +3 -0
  181. package/dist/server/{index.server-g8d2m2tk.js → index.server-acq55gjs.js} +1 -1
  182. package/dist/server/{index.server-ewze54tv.js → index.server-afjftjmr.js} +1 -1
  183. package/dist/server/{index.server-ejyye4gv.js → index.server-bfed6a8a.js} +1 -1
  184. package/dist/server/{index.server-z5ng08q2.js → index.server-c1746s0z.js} +1 -1
  185. package/dist/server/{index.server-gt1tfc1w.js → index.server-dmeztywe.js} +1 -1
  186. package/dist/server/{index.server-kzsppq0n.js → index.server-dyj3jdx9.js} +1 -1
  187. package/dist/server/index.server-dz92zvx6.js +4 -0
  188. package/dist/server/{index.server-3md8kdcr.js → index.server-e6682k08.js} +1 -1
  189. package/dist/server/{index.server-t1pshh65.js → index.server-ewkv461x.js} +1 -1
  190. package/dist/server/{index.server-zfgwhtmp.js → index.server-fa449wd3.js} +1 -1
  191. package/dist/server/{index.server-1kgwayct.js → index.server-fhfypmgw.js} +1 -1
  192. package/dist/server/{index.server-s4z8hsby.js → index.server-ge4adxs2.js} +1 -1
  193. package/dist/server/{index.server-68xyfsg3.js → index.server-gggkq22y.js} +2 -2
  194. package/dist/server/{index.server-acgwdamx.js → index.server-j52rbk57.js} +1 -1
  195. package/dist/server/{index.server-z0nwftx6.js → index.server-jm89hxfb.js} +1 -1
  196. package/dist/server/{index.server-xa98r8p2.js → index.server-jw0v64se.js} +1 -1
  197. package/dist/server/index.server-m321p69g.js +3 -0
  198. package/dist/server/{index.server-xyervw3d.js → index.server-m7q2tc41.js} +1 -1
  199. package/dist/server/{index.server-tnrxy86j.js → index.server-mak7dmj2.js} +1 -1
  200. package/dist/server/{index.server-n5g5h5k1.js → index.server-mw5r2524.js} +1 -1
  201. package/dist/server/{index.server-caf7s6m7.js → index.server-nwq1cg55.js} +1 -1
  202. package/dist/server/{index.server-3wdvs0wr.js → index.server-p423fy4q.js} +2 -2
  203. package/dist/server/{index.server-ks7fvwxt.js → index.server-prk5syj2.js} +1 -1
  204. package/dist/server/{index.server-6w9fp018.js → index.server-q4hytsq3.js} +1 -1
  205. package/dist/server/{index.server-5w2qw8fm.js → index.server-q597a1ck.js} +1 -1
  206. package/dist/server/{index.server-fz1pkvda.js → index.server-qgne9v2w.js} +1 -1
  207. package/dist/server/{index.server-1f2app32.js → index.server-rvdavf92.js} +1 -1
  208. package/dist/server/index.server-rwq20a22.js +3 -0
  209. package/dist/server/{index.server-0rvmnrw2.js → index.server-s9tjs45r.js} +1 -1
  210. package/dist/server/{index.server-cm2prec7.js → index.server-sqgxyfsw.js} +1 -1
  211. package/dist/server/{index.server-v6777tgn.js → index.server-t761nwvb.js} +1 -1
  212. package/dist/server/index.server-tbds8nwq.js +4 -0
  213. package/dist/server/index.server-tyhta5n3.js +3 -0
  214. package/dist/server/{index.server-yw7rah51.js → index.server-v5dxham4.js} +1 -1
  215. package/dist/server/index.server-va98cpyf.js +3 -0
  216. package/dist/server/index.server-vq1k69xt.js +3 -0
  217. package/dist/server/{index.server-egd355s6.js → index.server-wnf9btp7.js} +2 -2
  218. package/dist/server/{index.server-sjcbaztf.js → index.server-y3zgdtbv.js} +1 -1
  219. package/dist/server/{index.server-4tjtgzf9.js → index.server-y6vtbmyj.js} +1 -1
  220. package/dist/server/{index.server-2p2mjzzb.js → index.server-zff2qp1v.js} +1 -1
  221. package/dist/server/tokens/registry.generated.js +2 -2
  222. package/dist/tokens/registry.generated.js +2 -2
  223. package/package.json +2 -2
  224. package/src/_internal/form-field-frame.svelte +5 -0
  225. package/src/_internal/overlay.ts +14 -1
  226. package/src/components/_internal/create-command-list-state.svelte.ts +4 -0
  227. package/src/components/accordion-item/accordion-item.css +0 -10
  228. package/src/components/action-row/action-row.css +0 -9
  229. package/src/components/alert/alert.css +0 -1
  230. package/src/components/avatar-group/avatar-group.css +0 -2
  231. package/src/components/button/button.css +4 -4
  232. package/src/components/button/button.variables.json +31 -1
  233. package/src/components/button/button.variables.ts +31 -1
  234. package/src/components/card/card.css +0 -2
  235. package/src/components/carousel/carousel.css +0 -5
  236. package/src/components/code-block/code-block.css +0 -5
  237. package/src/components/command-menu/command-menu.svelte +63 -7
  238. package/src/components/command-palette/command-palette.css +50 -46
  239. package/src/components/command-palette/command-palette.svelte +68 -78
  240. package/src/components/data-table/data-table.css +0 -2
  241. package/src/components/dropdown/dropdown.svelte +73 -18
  242. package/src/components/dropdown-menu/dropdown-menu.svelte +63 -7
  243. package/src/components/feed-event/feed-event.css +0 -2
  244. package/src/components/file-upload/file-upload.css +0 -5
  245. package/src/components/find-bar/find-bar.css +9 -1
  246. package/src/components/input/input.css +95 -6
  247. package/src/components/input/input.svelte +44 -81
  248. package/src/components/kanban-board/kanban-board.css +0 -10
  249. package/src/components/marquee/marquee.css +0 -2
  250. package/src/components/menu-bar/menu-bar.svelte +12 -1
  251. package/src/components/modal/modal.css +0 -26
  252. package/src/components/multi-select/multi-select.svelte +7 -0
  253. package/src/components/navigation-bar/navigation-bar.svelte +82 -6
  254. package/src/components/selectable-row/selectable-row.css +0 -6
  255. package/src/components/selection-popover/selection-popover.svelte +24 -10
  256. package/src/components/share-card/share-card.svelte +24 -44
  257. package/src/components/side-navigation/side-navigation.css +0 -1
  258. package/src/components/speed-dial/speed-dial.svelte +23 -5
  259. package/src/components/statistic/statistic.css +0 -8
  260. package/src/components/statistic-group/statistic-group.css +116 -69
  261. package/src/components/statistic-group/statistic-group.examples.json +6 -0
  262. package/src/components/statistic-group/statistic-group.svelte +13 -1
  263. package/src/components/status-dot/status-dot.css +0 -3
  264. package/src/components/table-of-contents/table-of-contents.css +0 -4
  265. package/src/components/time-field/time-field.css +9 -8
  266. package/src/components/toast-region/toast-region.svelte +9 -0
  267. package/src/components/toggle/toggle.variables.json +1 -1
  268. package/src/components/toggle/toggle.variables.ts +4 -1
  269. package/src/components/tree/tree.css +0 -3
  270. package/src/components/virtual-list/_internal/adaptive-overscan.ts +248 -0
  271. package/src/components/virtual-list/_internal/edge-proximity.ts +130 -0
  272. package/src/components/virtual-list/_internal/frame-scheduler.ts +136 -0
  273. package/src/components/virtual-list/_internal/geometry.ts +236 -0
  274. package/src/components/virtual-list/_internal/list-semantics.ts +151 -0
  275. package/src/components/virtual-list/_internal/measurement-window.ts +300 -0
  276. package/src/components/virtual-list/_internal/reverse-order.ts +146 -0
  277. package/src/components/virtual-list/_internal/scroll-restoration.ts +209 -0
  278. package/src/components/virtual-list/_internal/sticky-items.ts +111 -0
  279. package/src/components/virtual-list/_internal/virtual-list-measurement-store.svelte.ts +145 -0
  280. package/src/components/virtual-list/index.ts +7 -1
  281. package/src/components/virtual-list/virtual-list.css +153 -2
  282. package/src/components/virtual-list/virtual-list.examples.json +42 -0
  283. package/src/components/virtual-list/virtual-list.schema.json +53 -3
  284. package/src/components/virtual-list/virtual-list.schema.ts +64 -3
  285. package/src/components/virtual-list/virtual-list.svelte +1527 -36
  286. package/src/components/virtual-list/virtual-list.types.ts +181 -4
  287. package/src/index.ts +3 -0
  288. package/src/styles/tokens-base.css +57 -22
  289. package/src/tokens/cinder.resolver.json +8 -0
  290. package/src/tokens/index.json +1 -1
  291. package/src/tokens/registry.generated.json +30 -4
  292. package/src/tokens/registry.generated.ts +32 -4
  293. package/src/tokens/resolved/dark-reduced-motion.json +47 -17
  294. package/src/tokens/resolved/dark.json +47 -17
  295. package/src/tokens/resolved/light-reduced-motion.json +48 -18
  296. package/src/tokens/resolved/light.json +48 -18
  297. package/src/tokens/sets/components.tokens.json +1 -1
  298. package/src/tokens/sets/semantic.tokens.json +120 -30
  299. package/src/tokens/themes/dark.tokens.json +115 -19
  300. package/src/tokens/themes/light.tokens.json +51 -3
  301. package/dist/server/index.server-191cnacw.js +0 -3
  302. package/dist/server/index.server-25dqx151.js +0 -3
  303. package/dist/server/index.server-77jyqvbv.js +0 -4
  304. package/dist/server/index.server-bgjrzr70.js +0 -3
  305. package/dist/server/index.server-khsp90vh.js +0 -3
  306. package/dist/server/index.server-ryk2pgbe.js +0 -4
  307. package/dist/server/index.server-tajr81bm.js +0 -3
  308. package/dist/server/index.server-vjzcrw3d.js +0 -4
  309. package/dist/server/index.server-zg3fx1n1.js +0 -3
@@ -1,35 +1,46 @@
1
1
  @layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;
2
2
  @import '../statistic/statistic.css';
3
3
  @layer cinder.components {
4
+ /* The root is the query container; the grid is its child. An element can
5
+ never query itself -- a container query resolves against the nearest
6
+ ANCESTOR container -- so with `container-type` on the grid the collapse
7
+ rules below never fired for a standalone group (CIN-499). The container
8
+ sits on the public root, not on an extra wrapper around it, so the root
9
+ stays the element that receives a consumer's `class`, `style`, and
10
+ `...rest`: constraining the group's inline size constrains exactly what
11
+ the queries measure, and a group nested inside another group queries its
12
+ own width rather than the outer's (RESPONSIVE-POLICY.md).
13
+
14
+ A size query measures the container's CONTENT box. The `default` variant
15
+ pads its root, so its 30rem and 18rem thresholds are the width the cells
16
+ actually share, not the group's outer width. */
4
17
  .cinder-statistic-group {
5
- --cinder-statistic-group-gap: var(--cinder-space-4, 1rem);
6
- --cinder-statistic-group-card-padding: var(--cinder-space-4, 1rem);
7
- --cinder-statistic-group-shared-cell-padding: var(--cinder-space-4, 1rem);
8
- display: grid;
9
- gap: var(--cinder-statistic-group-gap, var(--cinder-space-4, 1rem));
10
- /* Query the group's own inline size so fixed column counts can collapse when
11
- the group is narrow — even inside a wide viewport (RESPONSIVE-POLICY.md). */
12
18
  container-type: inline-size;
13
19
  container-name: cinder-statistic-group;
14
20
  }
15
21
 
16
- .cinder-statistic-group[data-cinder-columns='auto'] {
22
+ .cinder-statistic-group__grid {
23
+ display: grid;
24
+ gap: var(--cinder-statistic-group-gap, var(--cinder-space-4, 1rem));
25
+ }
26
+
27
+ .cinder-statistic-group[data-cinder-columns='auto'] > .cinder-statistic-group__grid {
17
28
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
18
29
  }
19
30
 
20
- .cinder-statistic-group[data-cinder-columns='1'] {
31
+ .cinder-statistic-group[data-cinder-columns='1'] > .cinder-statistic-group__grid {
21
32
  grid-template-columns: 1fr;
22
33
  }
23
34
 
24
- .cinder-statistic-group[data-cinder-columns='2'] {
35
+ .cinder-statistic-group[data-cinder-columns='2'] > .cinder-statistic-group__grid {
25
36
  grid-template-columns: repeat(2, minmax(0, 1fr));
26
37
  }
27
38
 
28
- .cinder-statistic-group[data-cinder-columns='3'] {
39
+ .cinder-statistic-group[data-cinder-columns='3'] > .cinder-statistic-group__grid {
29
40
  grid-template-columns: repeat(3, minmax(0, 1fr));
30
41
  }
31
42
 
32
- .cinder-statistic-group[data-cinder-columns='4'] {
43
+ .cinder-statistic-group[data-cinder-columns='4'] > .cinder-statistic-group__grid {
33
44
  grid-template-columns: repeat(4, minmax(0, 1fr));
34
45
  }
35
46
 
@@ -38,16 +49,16 @@
38
49
  under 18rem, so values never crush. The `auto` mode already self-collapses
39
50
  via auto-fit, so it is intentionally excluded. */
40
51
  @container cinder-statistic-group (max-width: 30rem) {
41
- .cinder-statistic-group[data-cinder-columns='3'],
42
- .cinder-statistic-group[data-cinder-columns='4'] {
52
+ .cinder-statistic-group[data-cinder-columns='3'] > .cinder-statistic-group__grid,
53
+ .cinder-statistic-group[data-cinder-columns='4'] > .cinder-statistic-group__grid {
43
54
  grid-template-columns: repeat(2, minmax(0, 1fr));
44
55
  }
45
56
  }
46
57
 
47
58
  @container cinder-statistic-group (max-width: 18rem) {
48
- .cinder-statistic-group[data-cinder-columns='2'],
49
- .cinder-statistic-group[data-cinder-columns='3'],
50
- .cinder-statistic-group[data-cinder-columns='4'] {
59
+ .cinder-statistic-group[data-cinder-columns='2'] > .cinder-statistic-group__grid,
60
+ .cinder-statistic-group[data-cinder-columns='3'] > .cinder-statistic-group__grid,
61
+ .cinder-statistic-group[data-cinder-columns='4'] > .cinder-statistic-group__grid {
51
62
  grid-template-columns: 1fr;
52
63
  }
53
64
  }
@@ -65,86 +76,119 @@
65
76
  * default-variant dividers
66
77
  *
67
78
  * A divider belongs BETWEEN two adjacent cells, so a divider rule is only correct
68
- * where the effective column count is knowable.
69
- *
70
- * For the fixed counts it is the declared count, at every width, for a STANDALONE
71
- * group. The collapse rules above (30rem, 18rem) look like they change that, but for
72
- * a standalone group they never fire: their subject is `.cinder-statistic-group`,
73
- * which is itself the named query container, and an element is never its own
74
- * container -- a container query resolves against the nearest ANCESTOR container.
75
- *
76
- * They are not universally inert, though: a group NESTED inside another
77
- * StatisticGroup does have an ancestor container, so there the collapse fires and
78
- * resolves against the OUTER group's width. See the note on the row-end rules below
79
- * for what that means for dividers. Either way this is a pre-existing layout defect,
80
- * tracked separately; fixing it needs a wrapper element so the group can query
81
- * something other than itself, which is a markup change this PR is not making.
82
- *
83
- * What matters here is that the dividers must describe the grid that actually
84
- * renders. An earlier revision of this block mirrored the collapse thresholds, so at
85
- * narrow widths it flipped to horizontal dividers while the grid was still showing
86
- * its full column count -- dividers drawn across a layout that had not changed. With
87
- * the thresholds gone, `nth-child(Nn)` needs no width bands at all.
79
+ * where the effective column count is knowable. For the fixed counts that is the
80
+ * declared count at wide widths, then the collapsed count under the same 30rem and
81
+ * 18rem thresholds the layout rules use above -- the dividers must describe the
82
+ * grid that actually renders, so they mirror those thresholds exactly.
88
83
  *
89
84
  * For `columns='auto'` the count is not knowable: `repeat(auto-fit, ...)` renders
90
85
  * however many 16rem tracks fit, without an upper bound, and CSS cannot select "the
91
- * last cell in a row" without that number. Enumerating width bands only moves the
92
- * failure outward -- a previous revision covered twelve columns and justified the cap
93
- * by claiming 203rem was past any real display, which is false. So `auto` carries no
94
- * per-cell dividers, keeping the variant's resting border, inset surface, and gap.
95
- * That is what makes `default` read as deliberate rather than unstyled (CIN-113); the
96
- * dividers are an enhancement applied where they can be drawn correctly.
86
+ * last cell in a row" without that number. So `auto` carries no per-cell dividers,
87
+ * keeping the variant's resting border, inset surface, and gap. That is what makes
88
+ * `default` read as deliberate rather than unstyled (CIN-113); the dividers are an
89
+ * enhancement applied where they can be drawn correctly.
97
90
  *
98
- * ORDER IS LOAD-BEARING. Every rule carries the same specificity, so source order
99
- * alone decides the cascade: the row-end and single-column resets must follow the
100
- * generic rule that turns `border-inline-end` on.
91
+ * SPECIFICITY IS LOAD-BEARING. Every enabler, row-end suppressor, and band rule
92
+ * in this section is written as
93
+ * `.cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='N']
94
+ * > .cinder-statistic-group__grid > .cinder-statistic:<one pseudo-class>` --
95
+ * exactly (0,6,0) -- so that among them source order alone decides the cascade
96
+ * and a later band can override an earlier one. The one exception is the
97
+ * final-cell reset at the end, which drops `[data-cinder-columns]` and is (0,5,0):
98
+ * it only ever matches `:last-child`, which every enabler excludes with
99
+ * `:not(:last-child)`, and the row-end suppressors that can also match the last
100
+ * cell set the same `none`, so it never competes with a higher-specificity rule.
101
+ * An earlier revision enabled dividers with ONE generic rule carrying two
102
+ * `:not([data-cinder-columns=...])` clauses, which out-ranked every row-end
103
+ * suppressor below it, so a multi-row group drew a divider at the end of every
104
+ * row but the last. Do not "simplify" the enablers back into one rule.
101
105
  * ---------------------------------------- */
102
106
 
103
- /* --- Fixed multi-column counts: vertical dividers --- */
107
+ /* --- Declared layout (wide): vertical dividers, row ends suppressed --- */
104
108
 
105
- .cinder-statistic-group[data-cinder-variant='default']:not([data-cinder-columns='1']):not(
106
- [data-cinder-columns='auto']
107
- )
109
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='2']
110
+ > .cinder-statistic-group__grid
111
+ > .cinder-statistic:not(:last-child),
112
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='3']
113
+ > .cinder-statistic-group__grid
114
+ > .cinder-statistic:not(:last-child),
115
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='4']
116
+ > .cinder-statistic-group__grid
108
117
  > .cinder-statistic:not(:last-child) {
109
118
  border-inline-end: 1px solid var(--cinder-border-muted);
110
119
  }
111
120
 
112
- /* Row ends: the last cell of each row has no neighbour to its right. No container
113
- query needed -- for a standalone group, a fixed count renders that many tracks at
114
- every width, because the collapse rules above never fire (see the note above).
115
-
116
- One case does diverge: a group nested INSIDE another StatisticGroup. The inner
117
- group still cannot query itself, but it now has an ancestor container, so the
118
- collapse rules DO resolve -- against the outer group's width. An inner
119
- `columns={3}` inside a 20rem outer group therefore renders two tracks while these
120
- rules still suppress every third divider. That is the same inert-collapse defect
121
- seen from the other side, and it cannot be fixed here: while the collapse fires for
122
- some groups and not others, no divider rule is correct for both. It resolves when
123
- the layout gets a wrapper element to query, tracked with that fix. */
124
121
  .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='2']
122
+ > .cinder-statistic-group__grid
125
123
  > .cinder-statistic:nth-child(2n),
126
124
  .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='3']
125
+ > .cinder-statistic-group__grid
127
126
  > .cinder-statistic:nth-child(3n),
128
127
  .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='4']
128
+ > .cinder-statistic-group__grid
129
129
  > .cinder-statistic:nth-child(4n) {
130
130
  border-inline-end: none;
131
131
  }
132
132
 
133
- /* --- Single column: horizontal dividers --- */
133
+ /* --- Single column (declared): horizontal dividers --- */
134
134
 
135
135
  .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='1']
136
+ > .cinder-statistic-group__grid
136
137
  > .cinder-statistic:not(:last-child) {
137
138
  border-block-end: 1px solid var(--cinder-border-muted);
138
139
  }
139
140
 
141
+ /* --- Collapsed to two tracks (<= 30rem): 3 and 4 behave as 2 --- */
142
+
143
+ @container cinder-statistic-group (max-width: 30rem) {
144
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='3']
145
+ > .cinder-statistic-group__grid
146
+ > .cinder-statistic:not(:last-child),
147
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='4']
148
+ > .cinder-statistic-group__grid
149
+ > .cinder-statistic:not(:last-child) {
150
+ border-inline-end: 1px solid var(--cinder-border-muted);
151
+ }
152
+
153
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='3']
154
+ > .cinder-statistic-group__grid
155
+ > .cinder-statistic:nth-child(2n),
156
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='4']
157
+ > .cinder-statistic-group__grid
158
+ > .cinder-statistic:nth-child(2n) {
159
+ border-inline-end: none;
160
+ }
161
+ }
162
+
163
+ /* --- Collapsed to one track (<= 18rem): 2, 3 and 4 behave as 1 --- */
164
+
165
+ @container cinder-statistic-group (max-width: 18rem) {
166
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='2']
167
+ > .cinder-statistic-group__grid
168
+ > .cinder-statistic:not(:last-child),
169
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='3']
170
+ > .cinder-statistic-group__grid
171
+ > .cinder-statistic:not(:last-child),
172
+ .cinder-statistic-group[data-cinder-variant='default'][data-cinder-columns='4']
173
+ > .cinder-statistic-group__grid
174
+ > .cinder-statistic:not(:last-child) {
175
+ border-inline-end: none;
176
+ border-block-end: 1px solid var(--cinder-border-muted);
177
+ }
178
+ }
179
+
140
180
  /* The final cell never has a neighbour in either axis, in any layout. */
141
- .cinder-statistic-group[data-cinder-variant='default'] > .cinder-statistic:last-child {
181
+ .cinder-statistic-group[data-cinder-variant='default']
182
+ > .cinder-statistic-group__grid
183
+ > .cinder-statistic:last-child {
142
184
  border-inline-end: none;
143
185
  border-block-end: none;
144
186
  }
145
187
 
146
188
  /* variant: cards — each stat gets a card-style border, background, and shadow */
147
- .cinder-statistic-group[data-cinder-variant='cards'] > .cinder-statistic {
189
+ .cinder-statistic-group[data-cinder-variant='cards']
190
+ > .cinder-statistic-group__grid
191
+ > .cinder-statistic {
148
192
  padding: var(--cinder-statistic-group-card-padding, var(--cinder-space-4, 1rem));
149
193
  background: var(--cinder-surface-raised);
150
194
  border: 1px solid var(--cinder-border);
@@ -153,9 +197,10 @@
153
197
  }
154
198
 
155
199
  /*
156
- * variant: shared-borders — outer border on the container; 1px gap filled by the
157
- * container background acts as the divider between cells. Children paint over the
158
- * gap with the surface color, avoiding nth-child math for any column count.
200
+ * variant: shared-borders — outer border on the root; the 1px grid gap is filled by
201
+ * the root's background and acts as the divider between cells (the grid element is
202
+ * transparent and inherits the gap token). Children paint over the gap with the
203
+ * surface color, avoiding nth-child math for any column count.
159
204
  */
160
205
  .cinder-statistic-group[data-cinder-variant='shared-borders'] {
161
206
  --cinder-statistic-group-gap: 1px;
@@ -165,7 +210,9 @@
165
210
  background: var(--cinder-border);
166
211
  }
167
212
 
168
- .cinder-statistic-group[data-cinder-variant='shared-borders'] > .cinder-statistic {
213
+ .cinder-statistic-group[data-cinder-variant='shared-borders']
214
+ > .cinder-statistic-group__grid
215
+ > .cinder-statistic {
169
216
  padding: var(--cinder-statistic-group-shared-cell-padding, var(--cinder-space-4, 1rem));
170
217
  background: var(--cinder-surface-raised);
171
218
  }
@@ -33,6 +33,12 @@
33
33
  "description": "A landing-page KPI band recipe: Container frames heading copy above StatisticGroup in the cards variant, with fully-worded change labels.",
34
34
  "code": "<script lang=\"ts\">\n import { Container } from '@lostgradient/cinder/container';\n import { StatisticGroup } from '@lostgradient/cinder/statistic-group';\n</script>\n\n<section style=\"padding-block: var(--cinder-space-10);\">\n <Container maxWidth=\"wide\">\n <div style=\"display: grid; gap: var(--cinder-space-6);\">\n <header style=\"display: grid; gap: var(--cinder-space-2); max-inline-size: 60ch;\">\n <h2 style=\"margin: 0;\">Outcomes teams achieve with Cinder</h2>\n <p style=\"margin: 0; color: var(--cinder-text-muted);\">\n Measured improvements after standardizing on shared UI patterns.\n </p>\n </header>\n\n <StatisticGroup label=\"Key metrics\" variant=\"cards\">\n <StatisticGroup.Statistic label=\"Uptime\" value=\"99.99%\" />\n <StatisticGroup.Statistic\n label=\"Deploys / month\"\n value={420}\n change={{\n value: '+18%',\n direction: 'up',\n description: 'vs last quarter',\n label: 'Up 18% versus last quarter',\n }}\n />\n <StatisticGroup.Statistic\n label=\"Mean time to ship\"\n value=\"2.4 days\"\n change={{\n value: '-11%',\n direction: 'down',\n description: 'vs last quarter',\n label: 'Down 11% versus last quarter',\n }}\n />\n </StatisticGroup>\n </div>\n </Container>\n</section>\n"
35
35
  },
36
+ {
37
+ "id": "multi-row",
38
+ "title": "Multi-row group",
39
+ "description": "More metrics than columns, so the grid wraps. The default variant draws a vertical divider between neighbours and suppresses it at the end of each row, and a fixed column count collapses as the group itself narrows.",
40
+ "code": "<script lang=\"ts\">\n import { StatisticGroup } from '@lostgradient/cinder/statistic-group';\n</script>\n\n<StatisticGroup label=\"Pipeline health\" columns={3}>\n <StatisticGroup.Statistic label=\"Builds\" value={412} />\n <StatisticGroup.Statistic label=\"Passed\" value={397} />\n <StatisticGroup.Statistic label=\"Failed\" value={15} />\n <StatisticGroup.Statistic label=\"Median duration\" value=\"6m 12s\" />\n <StatisticGroup.Statistic label=\"Cache hit rate\" value=\"91%\" />\n <StatisticGroup.Statistic label=\"Flaky reruns\" value={4} />\n</StatisticGroup>\n"
41
+ },
36
42
  {
37
43
  "id": "shared-borders-variant",
38
44
  "title": "Shared-borders variant",
@@ -9,6 +9,16 @@ const groupRole = $derived(label ? 'group' : role);
9
9
  const groupAriaLabel = $derived(label || ariaLabel);
10
10
  </script>
11
11
 
12
+ <!--
13
+ The root is the query container and the grid is its child. An element is
14
+ never its own container -- a container query resolves against the nearest
15
+ ANCESTOR container -- so with `container-type` on the grid itself the
16
+ collapse rules could never fire for a standalone group (CIN-499). The
17
+ container sits on the public root rather than on an extra wrapper around it
18
+ so that `class`, `style`, and `...rest` land on the element the queries
19
+ measure: a consumer that constrains the group's inline size constrains
20
+ exactly what collapses.
21
+ -->
12
22
  <div
13
23
  {...rest}
14
24
  role={groupRole}
@@ -17,5 +27,7 @@ const groupAriaLabel = $derived(label || ariaLabel);
17
27
  data-cinder-variant={variant}
18
28
  data-cinder-columns={String(columns)}
19
29
  >
20
- {@render children()}
30
+ <div class="cinder-statistic-group__grid">
31
+ {@render children()}
32
+ </div>
21
33
  </div>
@@ -12,9 +12,6 @@
12
12
  * ======================================== */
13
13
 
14
14
  .cinder-status-dot {
15
- --cinder-status-dot-size: 0.625rem; /* 10px — md default */
16
- --cinder-status-dot-color: var(--cinder-text-muted);
17
-
18
15
  display: inline-flex;
19
16
  align-items: center;
20
17
  gap: var(--cinder-space-1-5);
@@ -2,10 +2,6 @@
2
2
 
3
3
  @layer cinder.components {
4
4
  .cinder-table-of-contents {
5
- --cinder-table-of-contents-link-color: var(--cinder-text-muted);
6
- --cinder-table-of-contents-link-active-color: var(--cinder-text-default);
7
- --cinder-table-of-contents-link-indent-step: var(--cinder-space-3);
8
-
9
5
  display: block;
10
6
  font-size: var(--cinder-text-sm);
11
7
  line-height: var(--cinder-leading-relaxed);
@@ -29,14 +29,15 @@
29
29
  align-items: center;
30
30
  }
31
31
 
32
- /* TimeField now composes FormFieldFrame itself, which puts the nested
33
- Input inside a FormFieldContext. Since Input never receives its own
34
- label from TimeField, it renders bare (no `.cinder-input-field`
35
- wrapper) — so this sizing constraint targets `.cinder-time-field__input`
36
- (always present on the native control, wrapped or not) directly, rather
37
- than the wrapper class that may no longer exist. */
38
- .cinder-time-field__controls > .cinder-input-field,
39
- .cinder-time-field__controls > .cinder-time-field__input {
32
+ /* TimeField composes FormFieldFrame itself, which puts the nested Input
33
+ inside a FormFieldContext. Input always renders its own nested
34
+ FormFieldFrame there now (CIN-511: no more arm switch between a bare
35
+ control and a framed one — see input.svelte), with label/description/
36
+ error absent since TimeField never gives Input its own. That frame
37
+ always carries `.cinder-input-field` and is a direct child of this row,
38
+ so this single selector covers it regardless of whether a future
39
+ TimeField variant ever does pass Input its own label. */
40
+ .cinder-time-field__controls > .cinder-input-field {
40
41
  flex: 0 1 12rem;
41
42
  inline-size: auto;
42
43
  }
@@ -278,6 +278,14 @@ function beginDismiss(id, reason) {
278
278
  queueMicrotask(() => reallyRemove(id, generation));
279
279
  return;
280
280
  }
281
+ // OVERLAY-POLICY.md, "Transition lifecycle" > "The contract": the component
282
+ // renders data-cinder-closing on its animated element for the full duration
283
+ // of the exit transition while waitForTransitionCompletion detects
284
+ // completion. Toast keeps keying its exit CSS off the pre-existing
285
+ // data-cinder-presence="exiting" attribute (an accepted, additive naming
286
+ // difference — see the census entry for Toast); data-cinder-closing is
287
+ // purely additive so consumers and future migrations can rely on the
288
+ // canonical attribute name too.
281
289
  clearRemovalTimer(id);
282
290
  const cancelCompletion = waitForTransitionCompletion({
283
291
  element: shell,
@@ -508,6 +516,7 @@ onDestroy(() => {
508
516
  class="cinder-toast-shell"
509
517
  style={`--cinder-toast-stack-index: ${index};`}
510
518
  data-cinder-presence={toast.leaving ? 'exiting' : 'entered'}
519
+ data-cinder-closing={toast.leaving ? '' : undefined}
511
520
  >
512
521
  <div
513
522
  class="cinder-toast"
@@ -1 +1 @@
1
- []
1
+ ["--cinder-toggle-track-off-hover-resting", "--cinder-toggle-track-off-resting"]
@@ -1,3 +1,6 @@
1
- const variables: readonly string[] = [];
1
+ const variables: readonly string[] = [
2
+ '--cinder-toggle-track-off-hover-resting',
3
+ '--cinder-toggle-track-off-resting',
4
+ ];
2
5
 
3
6
  export default variables;
@@ -116,9 +116,6 @@
116
116
  outline: none;
117
117
  cursor: default;
118
118
  border-radius: var(--cinder-radius-sm);
119
- --cinder-tree-drop-line-color: var(--cinder-accent-solid);
120
- --cinder-tree-drop-line-thickness: 2px;
121
- --cinder-tree-item-dragging-opacity: 0.55;
122
119
  }
123
120
 
124
121
  /* Tree items are full-bleed rows whose first/last siblings sit flush against