@lostgradient/cinder 0.20.0 → 0.21.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 (342) hide show
  1. package/CHANGELOG.md +162 -0
  2. package/components.json +1 -1
  3. package/dist/components/alert-dialog/index.js +481 -162
  4. package/dist/components/approval-card/approval-card.css +3 -0
  5. package/dist/components/approval-card/index.js +402 -119
  6. package/dist/components/area-chart/index.js +252 -1
  7. package/dist/components/autocomplete/index.js +124 -40
  8. package/dist/components/avatar-group/index.js +185 -81
  9. package/dist/components/bar-chart/index.js +252 -1
  10. package/dist/components/button/button.css +13 -3
  11. package/dist/components/calendar/calendar.css +3 -0
  12. package/dist/components/carousel/carousel.css +40 -6
  13. package/dist/components/carousel/carousel.schema.js +43 -2
  14. package/dist/components/carousel/carousel.svelte.d.ts +25 -4
  15. package/dist/components/carousel/carousel.types.d.ts +43 -2
  16. package/dist/components/carousel/carousel.variables.js +7 -2
  17. package/dist/components/carousel/index.d.ts +1 -1
  18. package/dist/components/carousel/index.js +2018 -351
  19. package/dist/components/checkbox/checkbox.css +1 -1
  20. package/dist/components/checkbox-group/checkbox-group.css +1 -1
  21. package/dist/components/chip/chip.css +3 -0
  22. package/dist/components/code-block/code-block.css +35 -2
  23. package/dist/components/code-block/code-block.schema.js +9 -1
  24. package/dist/components/code-block/code-block.types.d.ts +8 -0
  25. package/dist/components/code-block/index.js +263 -4
  26. package/dist/components/color-field/color-field.css +1 -1
  27. package/dist/components/color-picker/color-picker.css +1 -1
  28. package/dist/components/combobox/combobox.css +4 -1
  29. package/dist/components/combobox/index.js +124 -40
  30. package/dist/components/command-menu/index.js +20 -17
  31. package/dist/components/confirm-dialog/index.js +497 -178
  32. package/dist/components/connection-indicator/connection-indicator.css +3 -2
  33. package/dist/components/context-menu/index.js +124 -40
  34. package/dist/components/copy-button/copy-button.css +4 -1
  35. package/dist/components/data-grid/data-grid.css +3 -0
  36. package/dist/components/data-table/index.js +252 -1
  37. package/dist/components/date-picker/date-picker.css +1 -1
  38. package/dist/components/date-picker/index.js +124 -40
  39. package/dist/components/date-range-field/date-range-field.css +7 -1
  40. package/dist/components/date-range-field/index.js +124 -40
  41. package/dist/components/diff-statistics/diff-statistics.css +2 -2
  42. package/dist/components/drawer/drawer.css +20 -12
  43. package/dist/components/drawer/index.js +106 -25
  44. package/dist/components/dropdown/dropdown.css +1 -1
  45. package/dist/components/dropdown/index.js +124 -40
  46. package/dist/components/dropdown-menu/index.js +20 -17
  47. package/dist/components/event-stream-viewer/event-stream-viewer.css +29 -4
  48. package/dist/components/event-stream-viewer/event-stream-viewer.variables.js +5 -2
  49. package/dist/components/event-timeline/event-timeline.css +3 -0
  50. package/dist/components/event-timeline/index.js +124 -40
  51. package/dist/components/focus-trap/index.js +105 -24
  52. package/dist/components/form-field/form-field.css +1 -1
  53. package/dist/components/hover-card/hover-card.css +45 -1
  54. package/dist/components/hover-card/index.js +144 -19
  55. package/dist/components/inline-loading/inline-loading.css +2 -2
  56. package/dist/components/input/input.css +1 -1
  57. package/dist/components/invocation-rule-builder/index.js +124 -40
  58. package/dist/components/invocation-rule-builder/invocation-rule-builder.css +18 -0
  59. package/dist/components/json-editor/json-editor.css +4 -1
  60. package/dist/components/json-schema-editor/index.js +152 -68
  61. package/dist/components/json-viewer/json-viewer.css +5 -2
  62. package/dist/components/kanban-board/index.js +2 -2
  63. package/dist/components/kanban-board/kanban-board.css +1 -1
  64. package/dist/components/line-chart/index.js +252 -1
  65. package/dist/components/marquee/marquee.css +3 -0
  66. package/dist/components/matrix-chart/index.js +252 -1
  67. package/dist/components/menu-bar/index.js +20 -17
  68. package/dist/components/menu-bar/menu-bar.css +3 -0
  69. package/dist/components/meter/index.js +13 -3
  70. package/dist/components/modal/index.js +447 -130
  71. package/dist/components/modal/modal.css +56 -24
  72. package/dist/components/multi-select/index.js +3553 -467
  73. package/dist/components/multi-select/multi-select.css +4 -10
  74. package/dist/components/navigation-bar/index.js +20 -17
  75. package/dist/components/navigation-item/navigation-item.css +3 -0
  76. package/dist/components/pagination/pagination.css +3 -0
  77. package/dist/components/permission-matrix/index.js +252 -1
  78. package/dist/components/permission-matrix/permission-matrix.css +15 -0
  79. package/dist/components/phone-input/phone-input.css +1 -1
  80. package/dist/components/pin-input/pin-input.css +10 -2
  81. package/dist/components/popover/index.js +124 -40
  82. package/dist/components/qr-code/qr-code.css +1 -1
  83. package/dist/components/radio-group/radio-group.css +1 -1
  84. package/dist/components/rating/rating.css +1 -1
  85. package/dist/components/schema-form/schema-form.css +1 -1
  86. package/dist/components/scroll-area/index.js +526 -22
  87. package/dist/components/scroll-area/scroll-area.css +30 -0
  88. package/dist/components/scroll-area/scroll-area.schema.js +9 -1
  89. package/dist/components/scroll-area/scroll-area.types.d.ts +17 -0
  90. package/dist/components/secret-value-field/secret-value-field.css +11 -1
  91. package/dist/components/segmented-control/segmented-control.css +12 -2
  92. package/dist/components/select/select.css +4 -1
  93. package/dist/components/selection-popover/index.js +149 -40
  94. package/dist/components/selection-popover/selection-popover.css +3 -0
  95. package/dist/components/selection-popover/virtual-keyboard-dismissal.svelte.d.ts +14 -0
  96. package/dist/components/sheet/index.js +106 -25
  97. package/dist/components/sheet/sheet.css +20 -12
  98. package/dist/components/sidebar/index.js +106 -25
  99. package/dist/components/sortable-list/index.js +2 -2
  100. package/dist/components/sortable-list/sortable-list.css +14 -9
  101. package/dist/components/speed-dial/index.js +20 -17
  102. package/dist/components/statistic/statistic.css +2 -2
  103. package/dist/components/statistic-group/statistic-group.css +2 -2
  104. package/dist/components/status-dot/status-dot.css +2 -2
  105. package/dist/components/table/index.js +252 -1
  106. package/dist/components/table/table.css +15 -0
  107. package/dist/components/tag-input/tag-input.css +1 -1
  108. package/dist/components/team-section/index.js +193 -89
  109. package/dist/components/textarea/textarea.css +4 -1
  110. package/dist/components/time-field/time-field.css +4 -1
  111. package/dist/components/tooltip/index.js +130 -46
  112. package/dist/components/tooltip/tooltip.schema.js +7 -3
  113. package/dist/components/tooltip/tooltip.types.d.ts +20 -2
  114. package/dist/components/transfer-list/index.js +253 -1
  115. package/dist/components/transfer-list/transfer-list.css +18 -0
  116. package/dist/index.js +22861 -22220
  117. package/dist/server/components/alert-dialog/index.js +7 -4
  118. package/dist/server/components/approval-card/index.js +9 -8
  119. package/dist/server/components/area-chart/index.js +6 -4
  120. package/dist/server/components/autocomplete/index.js +7 -7
  121. package/dist/server/components/avatar-group/index.js +7 -7
  122. package/dist/server/components/bar-chart/index.js +6 -4
  123. package/dist/server/components/carousel/index.js +6 -2
  124. package/dist/server/components/code-block/index.js +5 -3
  125. package/dist/server/components/combobox/index.js +8 -8
  126. package/dist/server/components/command-menu/index.js +5 -5
  127. package/dist/server/components/confirm-dialog/index.js +7 -4
  128. package/dist/server/components/context-menu/index.js +7 -7
  129. package/dist/server/components/data-table/index.js +5 -3
  130. package/dist/server/components/date-picker/index.js +8 -8
  131. package/dist/server/components/date-range-field/index.js +8 -8
  132. package/dist/server/components/drawer/index.js +4 -4
  133. package/dist/server/components/dropdown/index.js +7 -7
  134. package/dist/server/components/dropdown-menu/index.js +6 -6
  135. package/dist/server/components/event-timeline/index.js +6 -6
  136. package/dist/server/components/focus-trap/index.js +3 -3
  137. package/dist/server/components/hover-card/index.js +7 -6
  138. package/dist/server/components/invocation-rule-builder/index.js +8 -8
  139. package/dist/server/components/json-schema-editor/index.js +6 -6
  140. package/dist/server/components/kanban-board/index.js +2 -2
  141. package/dist/server/components/line-chart/index.js +6 -4
  142. package/dist/server/components/matrix-chart/index.js +6 -4
  143. package/dist/server/components/menu-bar/index.js +6 -6
  144. package/dist/server/components/meter/index.js +1 -1
  145. package/dist/server/components/modal/index.js +7 -4
  146. package/dist/server/components/multi-select/index.js +9 -2
  147. package/dist/server/components/navigation-bar/index.js +5 -5
  148. package/dist/server/components/permission-matrix/index.js +4 -2
  149. package/dist/server/components/popover/index.js +7 -7
  150. package/dist/server/components/portal/index.js +3 -3
  151. package/dist/server/components/run-step-timeline/index.js +1 -1
  152. package/dist/server/components/scroll-area/index.js +8 -2
  153. package/dist/server/components/selection-popover/index.js +6 -6
  154. package/dist/server/components/sheet/index.js +3 -3
  155. package/dist/server/components/sidebar/index.js +5 -5
  156. package/dist/server/components/sortable-list/index.js +2 -2
  157. package/dist/server/components/speed-dial/index.js +6 -6
  158. package/dist/server/components/speed-dial-action/index.js +4 -4
  159. package/dist/server/components/table/index.js +5 -3
  160. package/dist/server/components/team-section/index.js +7 -7
  161. package/dist/server/components/toast-region/index.js +3 -3
  162. package/dist/server/components/tooltip/index.js +6 -6
  163. package/dist/server/components/transfer-list/index.js +4 -2
  164. package/dist/server/index.js +69 -68
  165. package/dist/server/{index.server-dvd8t7ds.js → index.server-01bz4wmw.js} +1 -1
  166. package/dist/server/{index.server-gbj2zt1q.js → index.server-03ndc3td.js} +1 -1
  167. package/dist/server/{index.server-1qr1qkjb.js → index.server-0p1z1kbs.js} +1 -1
  168. package/dist/server/{index.server-b36zkjsr.js → index.server-1cnz5ax1.js} +30 -6
  169. package/dist/server/{index.server-xtx9sey2.js → index.server-2bw5fqwh.js} +1 -1
  170. package/dist/server/{index.server-v3t6v21s.js → index.server-2eb8pcev.js} +1 -1
  171. package/dist/server/{index.server-2n185esx.js → index.server-2h45p8kd.js} +2 -2
  172. package/dist/server/{index.server-3gm8s994.js → index.server-2k0cnsm4.js} +30 -2
  173. package/dist/server/{index.server-jwrnsnxk.js → index.server-2qydtmtp.js} +1 -1
  174. package/dist/server/{index.server-4bdnshs1.js → index.server-3e8n2sry.js} +2 -2
  175. package/dist/server/{index.server-dpyw7nad.js → index.server-4sr9f5r0.js} +1 -1
  176. package/dist/server/{index.server-rxvbt0y3.js → index.server-4w0rydct.js} +1 -1
  177. package/dist/server/{index.server-znrr9zve.js → index.server-6184qc69.js} +1 -1
  178. package/dist/server/{index.server-mw3z3nfz.js → index.server-64dvhh7s.js} +8 -2
  179. package/dist/server/{index.server-w9tnnse5.js → index.server-6771g0q4.js} +4 -4
  180. package/dist/server/{index.server-jxy33axv.js → index.server-6e5cj9hs.js} +1 -1
  181. package/dist/server/{index.server-gp0jh4cx.js → index.server-6z6s8qz8.js} +1 -1
  182. package/dist/server/{index.server-jj0tkfqp.js → index.server-72d0qgdy.js} +3 -3
  183. package/dist/server/{index.server-x93qnzqm.js → index.server-77p0jy71.js} +1 -1
  184. package/dist/server/{index.server-cepvcyxn.js → index.server-7kez94sz.js} +17 -6
  185. package/dist/server/{index.server-rd908evp.js → index.server-7sxx7645.js} +2 -2
  186. package/dist/server/{index.server-1br18a82.js → index.server-8t53gqe7.js} +3 -3
  187. package/dist/server/{index.server-jnp8yqgj.js → index.server-8w95jmf1.js} +1 -1
  188. package/dist/server/{index.server-g8j7wnpa.js → index.server-9emgn750.js} +1 -1
  189. package/dist/server/{index.server-zt8d7yer.js → index.server-9n2bc545.js} +1 -1
  190. package/dist/server/{index.server-bprjmaxb.js → index.server-a5w1wy5w.js} +1 -1
  191. package/dist/server/{index.server-t6dkkfxk.js → index.server-a5zsgn3k.js} +1 -1
  192. package/dist/server/{index.server-nsqx19rk.js → index.server-a8gpnzgg.js} +6 -6
  193. package/dist/server/{index.server-edx404az.js → index.server-ayhcc6z5.js} +1 -1
  194. package/dist/server/{index.server-z53avp9h.js → index.server-b7pq5xpd.js} +1 -1
  195. package/dist/server/{index.server-aerjcjgw.js → index.server-cptwpqbr.js} +1 -1
  196. package/dist/server/{index.server-85dr75be.js → index.server-d70brw24.js} +1 -1
  197. package/dist/server/{index.server-wsbwydct.js → index.server-fd3az8g2.js} +3 -3
  198. package/dist/server/{index.server-429t1qje.js → index.server-fka21791.js} +2 -2
  199. package/dist/server/{index.server-vb58jd7c.js → index.server-grq89cv5.js} +1 -1
  200. package/dist/server/{index.server-74g52t91.js → index.server-hxjkfdp2.js} +1 -1
  201. package/dist/server/{index.server-r5y5t888.js → index.server-j4akck2w.js} +1 -1
  202. package/dist/server/{index.server-sqtgjjc3.js → index.server-j57zek3p.js} +1 -1
  203. package/dist/server/index.server-ja3fmd29.js +211 -0
  204. package/dist/server/{index.server-66amt15s.js → index.server-kszs0qx5.js} +25 -2
  205. package/dist/server/{index.server-f02vwrw5.js → index.server-nbq0tmx1.js} +26 -16
  206. package/dist/server/{index.server-ktwnf9vg.js → index.server-nbspp00m.js} +1 -1
  207. package/dist/server/{index.server-xanhe43k.js → index.server-pee1wa4g.js} +1 -1
  208. package/dist/server/{index.server-dqt9we67.js → index.server-q7r53g7z.js} +1 -1
  209. package/dist/server/{index.server-1xq7j9dj.js → index.server-scdk1we9.js} +6 -6
  210. package/dist/server/{index.server-rgcepyhr.js → index.server-sfbna82r.js} +1 -1
  211. package/dist/server/{index.server-dpe08kr7.js → index.server-sgjc9gkq.js} +1 -1
  212. package/dist/server/{index.server-wm3t5yw7.js → index.server-sxkkaj8b.js} +13 -3
  213. package/dist/server/{index.server-r147w5z4.js → index.server-td8rx9dz.js} +1 -1
  214. package/dist/server/{index.server-3g76h7z7.js → index.server-th1tsad4.js} +62 -26
  215. package/dist/server/{index.server-ak9pqjfw.js → index.server-tpny5pjk.js} +224 -91
  216. package/dist/server/{index.server-8wb8g3w1.js → index.server-tvj0x3qy.js} +1 -1
  217. package/dist/server/{index.server-vqb9m9hq.js → index.server-w2jwyz17.js} +2 -2
  218. package/dist/server/{index.server-29sg0ywf.js → index.server-w5f4ex0f.js} +9 -6
  219. package/dist/server/{index.server-5p5r6t6n.js → index.server-w8phxx00.js} +1 -1
  220. package/dist/server/{index.server-tj2erfba.js → index.server-x6hbm4je.js} +2 -2
  221. package/dist/server/{index.server-7r9d6g1c.js → index.server-xqbes4jd.js} +6 -6
  222. package/dist/server/{index.server-j15z5xn7.js → index.server-xsh52hjt.js} +1 -1
  223. package/dist/server/{index.server-k1625sfw.js → index.server-y8m06g9p.js} +1 -1
  224. package/dist/server/{index.server-32p6dz3e.js → index.server-ybb5ery2.js} +1 -1
  225. package/dist/server/{index.server-1p7b8y48.js → index.server-yhjecwfj.js} +6 -6
  226. package/dist/server/{index.server-4nh4arvs.js → index.server-zfxb12hm.js} +30 -48
  227. package/dist/utilities/attachments.d.ts +63 -1
  228. package/dist/utilities/drag-scroll-physics.d.ts +48 -0
  229. package/dist/utilities/use-drag-scroll.svelte.d.ts +26 -0
  230. package/dist/utilities/use-drag-scroll.types.d.ts +15 -0
  231. package/dist/utilities/use-fine-pointer.svelte.d.ts +12 -0
  232. package/dist/utilities/use-fine-pointer.types.d.ts +4 -0
  233. package/package.json +2 -2
  234. package/src/_internal/anchored-overlay.svelte.ts +48 -26
  235. package/src/components/_sortable-item.svelte +21 -2
  236. package/src/components/approval-card/approval-card.css +3 -0
  237. package/src/components/avatar-group/avatar-group.svelte +46 -17
  238. package/src/components/button/button.css +13 -3
  239. package/src/components/calendar/calendar.css +3 -0
  240. package/src/components/carousel/carousel.css +40 -6
  241. package/src/components/carousel/carousel.examples.json +6 -0
  242. package/src/components/carousel/carousel.schema.json +42 -1
  243. package/src/components/carousel/carousel.schema.ts +49 -1
  244. package/src/components/carousel/carousel.svelte +311 -136
  245. package/src/components/carousel/carousel.types.ts +47 -2
  246. package/src/components/carousel/carousel.variables.json +6 -1
  247. package/src/components/carousel/carousel.variables.ts +6 -1
  248. package/src/components/carousel/index.ts +1 -0
  249. package/src/components/checkbox/checkbox.css +1 -1
  250. package/src/components/checkbox-group/checkbox-group.css +1 -1
  251. package/src/components/chip/chip.css +3 -0
  252. package/src/components/code-block/code-block.css +35 -2
  253. package/src/components/code-block/code-block.schema.json +4 -0
  254. package/src/components/code-block/code-block.schema.ts +5 -0
  255. package/src/components/code-block/code-block.svelte +12 -2
  256. package/src/components/code-block/code-block.types.ts +8 -0
  257. package/src/components/color-field/color-field.css +1 -1
  258. package/src/components/color-picker/color-picker.css +1 -1
  259. package/src/components/combobox/combobox.css +4 -1
  260. package/src/components/connection-indicator/connection-indicator.css +3 -2
  261. package/src/components/copy-button/copy-button.css +4 -1
  262. package/src/components/data-grid/data-grid.css +3 -0
  263. package/src/components/date-picker/date-picker.css +1 -1
  264. package/src/components/date-range-field/date-range-field.css +7 -1
  265. package/src/components/diff-statistics/diff-statistics.css +2 -2
  266. package/src/components/drawer/drawer.css +20 -12
  267. package/src/components/drawer/drawer.svelte +5 -1
  268. package/src/components/dropdown/dropdown.css +1 -1
  269. package/src/components/event-stream-viewer/event-stream-viewer.css +29 -4
  270. package/src/components/event-stream-viewer/event-stream-viewer.variables.json +1 -1
  271. package/src/components/event-stream-viewer/event-stream-viewer.variables.ts +4 -1
  272. package/src/components/event-timeline/event-timeline.css +3 -0
  273. package/src/components/form-field/form-field.css +1 -1
  274. package/src/components/hover-card/hover-card.css +45 -1
  275. package/src/components/hover-card/hover-card.svelte +64 -2
  276. package/src/components/inline-loading/inline-loading.css +2 -2
  277. package/src/components/input/input.css +1 -1
  278. package/src/components/invocation-rule-builder/invocation-rule-builder.css +18 -0
  279. package/src/components/json-editor/json-editor.css +4 -1
  280. package/src/components/json-viewer/json-viewer.css +5 -2
  281. package/src/components/kanban-board/kanban-board.css +1 -1
  282. package/src/components/marquee/marquee.css +3 -0
  283. package/src/components/menu-bar/menu-bar.css +3 -0
  284. package/src/components/meter/meter.svelte +19 -4
  285. package/src/components/meter/meter.types.ts +4 -0
  286. package/src/components/modal/modal.css +56 -24
  287. package/src/components/modal/modal.svelte +59 -99
  288. package/src/components/multi-select/multi-select.css +4 -10
  289. package/src/components/multi-select/multi-select.svelte +43 -0
  290. package/src/components/navigation-item/navigation-item.css +3 -0
  291. package/src/components/pagination/pagination.css +3 -0
  292. package/src/components/permission-matrix/permission-matrix.css +15 -0
  293. package/src/components/permission-matrix/permission-matrix.svelte +6 -1
  294. package/src/components/phone-input/phone-input.css +1 -1
  295. package/src/components/pin-input/pin-input.css +10 -2
  296. package/src/components/qr-code/qr-code.css +1 -1
  297. package/src/components/radio-group/radio-group.css +1 -1
  298. package/src/components/rating/rating.css +1 -1
  299. package/src/components/schema-form/schema-form.css +1 -1
  300. package/src/components/scroll-area/scroll-area.css +30 -0
  301. package/src/components/scroll-area/scroll-area.schema.json +8 -0
  302. package/src/components/scroll-area/scroll-area.schema.ts +10 -0
  303. package/src/components/scroll-area/scroll-area.svelte +44 -2
  304. package/src/components/scroll-area/scroll-area.types.ts +17 -0
  305. package/src/components/secret-value-field/secret-value-field.css +11 -1
  306. package/src/components/segmented-control/segmented-control.css +12 -2
  307. package/src/components/select/select.css +4 -1
  308. package/src/components/selection-popover/selection-popover.css +3 -0
  309. package/src/components/selection-popover/selection-popover.svelte +32 -0
  310. package/src/components/selection-popover/virtual-keyboard-dismissal.svelte.ts +16 -0
  311. package/src/components/sheet/sheet.css +20 -12
  312. package/src/components/sheet/sheet.svelte +1 -1
  313. package/src/components/sortable-list/sortable-list.css +14 -9
  314. package/src/components/statistic/statistic.css +2 -2
  315. package/src/components/statistic-group/statistic-group.css +2 -2
  316. package/src/components/status-dot/status-dot.css +2 -2
  317. package/src/components/table/table.css +15 -0
  318. package/src/components/table/table.svelte +2 -0
  319. package/src/components/tag-input/tag-input.css +1 -1
  320. package/src/components/textarea/textarea.css +4 -1
  321. package/src/components/time-field/time-field.css +4 -1
  322. package/src/components/tooltip/tooltip.schema.json +6 -2
  323. package/src/components/tooltip/tooltip.schema.ts +8 -2
  324. package/src/components/tooltip/tooltip.svelte +124 -23
  325. package/src/components/tooltip/tooltip.types.ts +20 -2
  326. package/src/components/transfer-list/transfer-list.css +18 -0
  327. package/src/components/transfer-list/transfer-list.svelte +3 -0
  328. package/src/styles/components/_control-item.css +3 -0
  329. package/src/styles/components/_field-label.css +1 -1
  330. package/src/styles/components/_input-frame.css +3 -0
  331. package/src/styles/components/_scroll-fade.css +317 -0
  332. package/src/styles/components/_status-surface.css +21 -1
  333. package/src/styles/components.css +5 -0
  334. package/src/styles/index.css +1 -0
  335. package/src/styles/tokens-base.css +207 -69
  336. package/src/styles/utilities.css +10 -1
  337. package/src/utilities/attachments.ts +202 -26
  338. package/src/utilities/drag-scroll-physics.ts +82 -0
  339. package/src/utilities/use-drag-scroll.svelte.ts +186 -0
  340. package/src/utilities/use-drag-scroll.types.ts +17 -0
  341. package/src/utilities/use-fine-pointer.svelte.ts +23 -0
  342. package/src/utilities/use-fine-pointer.types.ts +4 -0
@@ -35,10 +35,25 @@
35
35
  border: 1px solid var(--cinder-border-muted);
36
36
  border-radius: var(--cinder-radius-md);
37
37
  background: var(--cinder-surface);
38
+ /* Vertical analog of data-grid's `--_cinder-data-grid-overflow-shadow`
39
+ * inset-shadow affordance (data-grid.css) — this list scrolls block-axis,
40
+ * not inline, so the shadow is on the top/bottom edges instead of
41
+ * left/right. Driven by `overflowShadow('block')`
42
+ * (utilities/attachments.ts). */
43
+ box-shadow: var(--_cinder-transfer-list-scroll-shadow, none);
44
+ }
45
+
46
+ .cinder-transfer-list__list[data-cinder-overflows-block] {
47
+ --_cinder-transfer-list-scroll-shadow:
48
+ inset 0 1rem 1rem -1rem color-mix(in srgb, var(--cinder-text) 28%, transparent),
49
+ inset 0 -1rem 1rem -1rem color-mix(in srgb, var(--cinder-text) 28%, transparent);
38
50
  }
39
51
 
40
52
  .cinder-transfer-list__list:focus-visible {
41
53
  outline: var(--cinder-ring-width) solid transparent;
54
+ /* Ring replaces the border while focused rather than stacking on it — the two
55
+ together read as one heavier shape than either was designed to be. */
56
+ border-color: transparent;
42
57
  box-shadow: var(--_cinder-focus-ring-shadow);
43
58
  }
44
59
 
@@ -115,6 +130,9 @@
115
130
 
116
131
  .cinder-transfer-list__control:focus-visible {
117
132
  outline: var(--cinder-ring-width) solid transparent;
133
+ /* Ring replaces the border while focused rather than stacking on it — the two
134
+ together read as one heavier shape than either was designed to be. */
135
+ border-color: transparent;
118
136
  box-shadow: var(--_cinder-focus-ring-shadow);
119
137
  }
120
138
 
@@ -10,6 +10,7 @@ import ChevronsRight from 'lucide-svelte/icons/chevrons-right';
10
10
  import { tick } from 'svelte';
11
11
  import { SvelteSet } from 'svelte/reactivity';
12
12
  import { classNames } from '../../utilities/class-names.ts';
13
+ import { overflowShadow } from '../../utilities/attachments.ts';
13
14
  import { useAnnouncer } from '../../utilities/use-announcer.svelte.ts';
14
15
  const baseId = $props.id();
15
16
  let { items, value = $bindable([]), leftLabel = 'Available', rightLabel = 'Selected', onchange, class: customClassName, ...rest } = $props();
@@ -263,6 +264,7 @@ function handleListKeydown(event, side) {
263
264
  onblur={(event) => handleListBlur(event, 'left')}
264
265
  onclick={(event) => handleListClick(event, 'left')}
265
266
  onkeydown={(event) => handleListKeydown(event, 'left')}
267
+ {@attach overflowShadow('block')}
266
268
  >
267
269
  {#each leftItems as item, index (item.id)}
268
270
  <li
@@ -337,6 +339,7 @@ function handleListKeydown(event, side) {
337
339
  onblur={(event) => handleListBlur(event, 'right')}
338
340
  onclick={(event) => handleListClick(event, 'right')}
339
341
  onkeydown={(event) => handleListKeydown(event, 'right')}
342
+ {@attach overflowShadow('block')}
340
343
  >
341
344
  {#each rightItems as item, index (item.id)}
342
345
  <li
@@ -21,6 +21,9 @@
21
21
 
22
22
  .cinder-_control-item:focus-visible {
23
23
  outline: var(--cinder-ring-width) solid transparent;
24
+ /* Ring replaces the border while focused rather than stacking on it — the two
25
+ together read as one heavier shape than either was designed to be. */
26
+ border-color: transparent;
24
27
  box-shadow: var(--_cinder-focus-ring-shadow);
25
28
  }
26
29
 
@@ -12,7 +12,7 @@
12
12
  display: inline-flex;
13
13
  align-items: center;
14
14
  align-self: center;
15
- color: var(--cinder-danger);
15
+ color: var(--cinder-color-danger-fg);
16
16
  font-size: var(--cinder-text-sm);
17
17
  line-height: 0;
18
18
  flex-shrink: 0;
@@ -12,6 +12,9 @@
12
12
  .cinder-_input-frame:focus-visible,
13
13
  .cinder-_input-frame:focus-within {
14
14
  outline: var(--cinder-ring-width) solid transparent;
15
+ /* Ring replaces the border while focused rather than stacking on it — the two
16
+ together read as one heavier shape than either was designed to be. */
17
+ border-color: transparent;
15
18
  box-shadow: var(--_cinder-focus-ring-shadow);
16
19
  }
17
20
 
@@ -0,0 +1,317 @@
1
+ /* INTERNAL — shared scroll-driven edge-fade recipe.
2
+ *
3
+ * Fades the trailing block edge of a scroll container as it overflows, driven
4
+ * by `animation-timeline: scroll()` where supported. No JavaScript, no
5
+ * `CSS.supports()` branch, no hydration divergence: this is a pure CSS
6
+ * progressive enhancement over the pre-existing `data-cinder-overflows`
7
+ * attribute path (`overflowFade()` in `utilities/attachments.ts`).
8
+ *
9
+ * MECHANISM — the animation-origin cascade wins by construction. A CSS
10
+ * `@keyframes` animation lives in the animation origin, which outranks author
11
+ * declarations. Where `animation-timeline: scroll()` is supported, the
12
+ * animation silently wins the `opacity` cascade over the attribute rule below
13
+ * it. Where it is not supported (Firefox, still behind a flag), the
14
+ * `@supports` block never applies and the `[data-cinder-overflows]` rule is
15
+ * the only thing setting `opacity`. No feature detection required anywhere.
16
+ *
17
+ * DESIGN RULES — this is why the code looks the way it does:
18
+ * 1. Never mask an element that paints its own background. Fade with an
19
+ * OPAQUE overlay in the container's own surface color instead of an
20
+ * `mask-image` that makes content transparent — a mask on a container
21
+ * whose parent paints a brighter surface makes the "fade" light up
22
+ * instead of fading out. This generalizes the fix landed in PR #972
23
+ * (`7b9be9d9d`), which removed `mask-image` from the Modal/Drawer/Sheet
24
+ * bodies for exactly this reason; `scroll-fade.test.ts` pins that no
25
+ * `mask-` property is ever reintroduced here.
26
+ * 2. Never fade an axis that has a `position: sticky` descendant on it. An
27
+ * opaque block-start overlay would cover a sticky `<thead>`; a mask
28
+ * would let rows scroll visibly through it.
29
+ * 3. Never fade a focused or focusable edge. Roving focus calls
30
+ * `scrollIntoView({block:'nearest'})`, which parks the focused item
31
+ * flush against the edge — exactly under a fully-on fade. That is a
32
+ * WCAG 1.4.11 / 1.4.3 failure, not a 2.4.11 one. This disqualifies every
33
+ * listbox, menu, and tab strip.
34
+ * 4. Never fade a text-entry surface. No fading a box with a caret in it.
35
+ * 5. The fade is Tier 3 polish (see PLATFORM-POLICY.md). It may never be
36
+ * the sole signal that content scrolls — `data-cinder-overflows` (JS,
37
+ * authoritative) is what the attribute-path fallback and any assistive
38
+ * affordance must rely on, not this recipe.
39
+ *
40
+ * NON-OBVIOUS IMPLEMENTATION DETAILS:
41
+ * - `scroll(nearest block)`, not `scroll(self block)`. The animation runs
42
+ * on the `::after` pseudo-element, which is not itself a scroller —
43
+ * `self` would not resolve. `nearest` resolves to the originating scroll
44
+ * container (this element).
45
+ * - `animation-timeline` MUST come after the `animation` shorthand in the
46
+ * same rule. The shorthand resets `animation-timeline` back to `auto` —
47
+ * reordering these two declarations silently breaks the whole recipe.
48
+ * - `margin-block-start` MUST exactly negate `block-size`, or the sticky
49
+ * overlay perturbs measured content height.
50
+ * - `--cinder-scroll-fade-size` is a PUBLIC token (a real design knob) —
51
+ * see `SHARED_PARTIAL_OWNED_PREFIXES` in `check-component-css-token-usage.ts`.
52
+ * `--_cinder-scroll-fade-color` is PRIVATE — hosts set it per the
53
+ * `_status-surface.css` `--_cinder-status-base` precedent. Private names
54
+ * short-circuit the token audit, so it needs no registry entry.
55
+ * - No `@property` registration is needed: `opacity` animates natively.
56
+ * - Physical gradient keywords (`to bottom`) are correct: there is no
57
+ * logical gradient direction in any engine, and `writing-mode` appears
58
+ * nowhere in this package. Positioning (`inset-block-end`) stays logical.
59
+ * - Reduced motion: `foundation.css` sets `animation-duration: 0.01ms
60
+ * !important` on `*`. Because `!important` inverts layer precedence,
61
+ * `cinder.foundation` beats `cinder.components` here and no rule in this
62
+ * partial can (or should) override it. This partial deliberately never
63
+ * sets `animation-duration`, so that global reduced-motion rule is always
64
+ * the one in effect. Net effect is correct: the scroll-driven animation
65
+ * is neutered, and wherever a JS `overflowFade()` driver is present the
66
+ * attribute rule (outside `@supports`, unaffected by animation timing)
67
+ * takes over instead.
68
+ * - `forced-colors: active` disables the fade outright by setting BOTH
69
+ * `animation: none` and `opacity: 0` — `opacity` alone is not enough. A
70
+ * running CSS Animation's keyframe-computed value beats any
71
+ * normal-priority author declaration regardless of specificity or
72
+ * source order (the same animation-origin mechanic this file relies on
73
+ * to win over the `[data-cinder-overflows]` fallback rule), so without
74
+ * also stopping the animation, a browser that supports
75
+ * `animation-timeline: scroll()` AND has forced-colors active would
76
+ * keep the keyframes running and silently override this rule. Custom
77
+ * properties are not forced, so `var(--_cinder-scroll-fade-color)`
78
+ * would otherwise keep painting a themed band across a high-contrast
79
+ * surface.
80
+ *
81
+ * FOUR EDGE CLASSES, each owning one pseudo-element and composable only with
82
+ * classes that own the OTHER pseudo-element slot (an element has exactly one
83
+ * `::before` box and one `::after` box, so two classes that both target
84
+ * `::after` cannot be combined — only one would win):
85
+ * - `.cinder-_scroll-fade` block-end (`::after`) — the
86
+ * original recipe; Modal/Drawer/Sheet bodies use this alone.
87
+ * - `.cinder-_scroll-fade-start` block-start (`::before`) — combine
88
+ * WITH `.cinder-_scroll-fade` for a both-edges vertical fade (e.g. a chat
89
+ * timeline).
90
+ * - `.cinder-_scroll-fade-inline-end` inline-end (`::after`)
91
+ * - `.cinder-_scroll-fade-inline-start` inline-start (`::before`) —
92
+ * combine the inline pair for a both-edges horizontal fade (e.g. a code
93
+ * viewport). Never combine a block class with an inline class on the
94
+ * same element — both would fight over the same pseudo-element slot.
95
+ * All four share `--cinder-scroll-fade-size` / `--_cinder-scroll-fade-color`
96
+ * and the same fallback-attribute / `@supports` / reduced-motion / forced-
97
+ * colors mechanics described above; only the inset side, margin axis,
98
+ * gradient direction, and JS attribute name differ per class.
99
+ */
100
+ @layer cinder.components {
101
+ .cinder-_scroll-fade,
102
+ .cinder-_scroll-fade-start,
103
+ .cinder-_scroll-fade-inline-end,
104
+ .cinder-_scroll-fade-inline-start {
105
+ /* 1.5rem — matches the value the pre-existing Modal/Drawer/Sheet
106
+ * body fades hard-coded before this partial replaced them. */
107
+ --cinder-scroll-fade-size: var(--cinder-space-6);
108
+
109
+ position: relative;
110
+ }
111
+
112
+ /* ---- block-end (::after) — the original recipe ---- */
113
+
114
+ .cinder-_scroll-fade::after {
115
+ content: '';
116
+ position: sticky;
117
+ inset-block-end: 0;
118
+ display: block;
119
+ block-size: var(--cinder-scroll-fade-size);
120
+ margin-block-start: calc(var(--cinder-scroll-fade-size) * -1);
121
+ background: linear-gradient(to bottom, transparent, var(--_cinder-scroll-fade-color));
122
+ pointer-events: none;
123
+ opacity: 0;
124
+ }
125
+
126
+ /* Fallback driver: the existing overflowFade() attachment sets/clears this
127
+ * attribute from real scroll-position measurements. Lives OUTSIDE
128
+ * `@supports` — this is the ONLY rule that applies in browsers without
129
+ * scroll-driven animations, and it must keep working there unconditionally. */
130
+ .cinder-_scroll-fade[data-cinder-overflows]::after {
131
+ opacity: 1;
132
+ }
133
+
134
+ @supports (animation-timeline: scroll()) {
135
+ .cinder-_scroll-fade::after {
136
+ animation: cinder-scroll-fade-block-end linear;
137
+ /* Must follow the shorthand above — `animation` resets `animation-timeline`. */
138
+ animation-timeline: scroll(nearest block);
139
+ }
140
+ }
141
+
142
+ @keyframes cinder-scroll-fade-block-end {
143
+ 0%,
144
+ 90% {
145
+ opacity: 1;
146
+ }
147
+
148
+ 100% {
149
+ opacity: 0;
150
+ }
151
+ }
152
+
153
+ /* `animation: none` is required here, not just `opacity: 0` — a running CSS
154
+ * Animation's keyframe-computed value beats ANY normal-priority author
155
+ * declaration regardless of specificity or source order (the same
156
+ * animation-origin mechanic this file relies on to win over the
157
+ * `[data-cinder-overflows]` fallback rule above). Without stopping the
158
+ * animation itself, this `opacity: 0` would be silently overridden by the
159
+ * still-running keyframes in any browser that both supports
160
+ * `animation-timeline: scroll()` AND has forced-colors active. */
161
+ @media (forced-colors: active) {
162
+ .cinder-_scroll-fade::after {
163
+ animation: none;
164
+ opacity: 0;
165
+ }
166
+ }
167
+
168
+ /* ---- block-start (::before) — mirror of block-end, for both-edges fades ---- */
169
+
170
+ .cinder-_scroll-fade-start::before {
171
+ content: '';
172
+ position: sticky;
173
+ inset-block-start: 0;
174
+ display: block;
175
+ block-size: var(--cinder-scroll-fade-size);
176
+ margin-block-end: calc(var(--cinder-scroll-fade-size) * -1);
177
+ background: linear-gradient(to top, transparent, var(--_cinder-scroll-fade-color));
178
+ pointer-events: none;
179
+ opacity: 0;
180
+ }
181
+
182
+ /* Fallback driver: overflowFadeEdges() sets/clears this from real
183
+ * scroll-position measurements (not-at-the-very-start). Outside `@supports`. */
184
+ .cinder-_scroll-fade-start[data-cinder-overflows-start]::before {
185
+ opacity: 1;
186
+ }
187
+
188
+ @supports (animation-timeline: scroll()) {
189
+ .cinder-_scroll-fade-start::before {
190
+ animation: cinder-scroll-fade-block-start linear;
191
+ animation-timeline: scroll(nearest block);
192
+ }
193
+ }
194
+
195
+ @keyframes cinder-scroll-fade-block-start {
196
+ 0% {
197
+ opacity: 0;
198
+ }
199
+
200
+ 10%,
201
+ 100% {
202
+ opacity: 1;
203
+ }
204
+ }
205
+
206
+ /* `animation: none` required — see the block-end forced-colors rule above
207
+ * for why re-declaring `opacity` alone cannot beat a running animation. */
208
+ @media (forced-colors: active) {
209
+ .cinder-_scroll-fade-start::before {
210
+ animation: none;
211
+ opacity: 0;
212
+ }
213
+ }
214
+
215
+ /* ---- inline-end (::after) — horizontal counterpart, e.g. a code viewport ---- */
216
+
217
+ .cinder-_scroll-fade-inline-end::after {
218
+ content: '';
219
+ position: sticky;
220
+ inset-inline-end: 0;
221
+ display: block;
222
+ inline-size: var(--cinder-scroll-fade-size);
223
+ margin-inline-start: calc(var(--cinder-scroll-fade-size) * -1);
224
+ background: linear-gradient(to right, transparent, var(--_cinder-scroll-fade-color));
225
+ pointer-events: none;
226
+ opacity: 0;
227
+ }
228
+
229
+ /* Physical gradient direction: `:dir(rtl)` flips the PAINT direction only —
230
+ * `scroll(nearest inline)` is already direction-correct, and the sticky
231
+ * `inset-inline-end` positioning is already logical. Only the two-color-stop
232
+ * gradient itself needs a physical flip, since no engine supports a logical
233
+ * gradient direction (see the file doc comment). */
234
+ .cinder-_scroll-fade-inline-end:dir(rtl)::after {
235
+ background: linear-gradient(to left, transparent, var(--_cinder-scroll-fade-color));
236
+ }
237
+
238
+ .cinder-_scroll-fade-inline-end[data-cinder-overflows-inline-end]::after {
239
+ opacity: 1;
240
+ }
241
+
242
+ @supports (animation-timeline: scroll()) {
243
+ .cinder-_scroll-fade-inline-end::after {
244
+ animation: cinder-scroll-fade-inline-end linear;
245
+ animation-timeline: scroll(nearest inline);
246
+ }
247
+ }
248
+
249
+ @keyframes cinder-scroll-fade-inline-end {
250
+ 0%,
251
+ 90% {
252
+ opacity: 1;
253
+ }
254
+
255
+ 100% {
256
+ opacity: 0;
257
+ }
258
+ }
259
+
260
+ /* `animation: none` required — see the block-end forced-colors rule above
261
+ * for why re-declaring `opacity` alone cannot beat a running animation. */
262
+ @media (forced-colors: active) {
263
+ .cinder-_scroll-fade-inline-end::after {
264
+ animation: none;
265
+ opacity: 0;
266
+ }
267
+ }
268
+
269
+ /* ---- inline-start (::before) — pairs with inline-end for both-edges fades ---- */
270
+
271
+ .cinder-_scroll-fade-inline-start::before {
272
+ content: '';
273
+ position: sticky;
274
+ inset-inline-start: 0;
275
+ display: block;
276
+ inline-size: var(--cinder-scroll-fade-size);
277
+ margin-inline-end: calc(var(--cinder-scroll-fade-size) * -1);
278
+ background: linear-gradient(to left, transparent, var(--_cinder-scroll-fade-color));
279
+ pointer-events: none;
280
+ opacity: 0;
281
+ }
282
+
283
+ .cinder-_scroll-fade-inline-start:dir(rtl)::before {
284
+ background: linear-gradient(to right, transparent, var(--_cinder-scroll-fade-color));
285
+ }
286
+
287
+ .cinder-_scroll-fade-inline-start[data-cinder-overflows-inline-start]::before {
288
+ opacity: 1;
289
+ }
290
+
291
+ @supports (animation-timeline: scroll()) {
292
+ .cinder-_scroll-fade-inline-start::before {
293
+ animation: cinder-scroll-fade-inline-start linear;
294
+ animation-timeline: scroll(nearest inline);
295
+ }
296
+ }
297
+
298
+ @keyframes cinder-scroll-fade-inline-start {
299
+ 0% {
300
+ opacity: 0;
301
+ }
302
+
303
+ 10%,
304
+ 100% {
305
+ opacity: 1;
306
+ }
307
+ }
308
+
309
+ /* `animation: none` required — see the block-end forced-colors rule above
310
+ * for why re-declaring `opacity` alone cannot beat a running animation. */
311
+ @media (forced-colors: active) {
312
+ .cinder-_scroll-fade-inline-start::before {
313
+ animation: none;
314
+ opacity: 0;
315
+ }
316
+ }
317
+ }
@@ -50,9 +50,29 @@
50
50
  * restores the original specificity contract and is import-order-independent.
51
51
  */
52
52
  @layer cinder.components {
53
+ /* LIGHT ARM: L 96.5% / C 0.015 → L 94.5% / C 0.026.
54
+ *
55
+ * The old tint was nearly invisible, and not by choice — it was capped by the
56
+ * sRGB gamut without anyone noticing. At L 0.965 the maximum in-gamut chroma for
57
+ * the DANGER hue (25) is 0.0172, so a chroma shared across all four statuses
58
+ * could not exceed that no matter what was authored; 0.015 was already 87% of the
59
+ * ceiling. The tint read as grey because red's headroom near white is tiny and
60
+ * every status was being held to it.
61
+ *
62
+ * Dropping to L 0.945 raises the binding ceiling to 0.0275 (danger; info 0.0329,
63
+ * warning 0.0447, success 0.0984), so 0.026 is a real tint with margin on every
64
+ * hue. It also matters more now than it did: against the old 0.962 surface a
65
+ * 0.965 status panel was separated by hue alone, whereas against the white-anchored
66
+ * ramp it sits ΔL 0.049 below a card body and reads as a genuinely tinted region.
67
+ *
68
+ * Still ONE shared chroma, so success and warning are held well below their own
69
+ * ceilings (0.098 and 0.045). Per-hue chroma would let each status use its full
70
+ * headroom, but it means threading a new input through Alert, Banner and Callout
71
+ * and re-reviewing all twelve surfaces — worth doing, deliberately not smuggled
72
+ * into a surface retune. Dark arm untouched. */
53
73
  .cinder-_status-surface.cinder-_status-surface {
54
74
  background-color: light-dark(
55
- oklch(from var(--_cinder-status-base) 96.5% 0.015 h),
75
+ oklch(from var(--_cinder-status-base) 94.5% 0.026 h),
56
76
  oklch(from var(--_cinder-status-base) 20% 0.03 h)
57
77
  );
58
78
  color: light-dark(
@@ -206,3 +206,8 @@
206
206
  * NOT include it; the documented contract requires importing `cinder/styles`
207
207
  * first (enforced by `cinder/styles/guard`). */
208
208
  @import './components/_status-surface.css';
209
+
210
+ /* Shared internal partial — scroll-driven edge-fade recipe (see the file's
211
+ * own doc comment for the full design rationale). Grouped with the other
212
+ * shared partials for the same reason as `_status-surface.css` above. */
213
+ @import './components/_scroll-fade.css';
@@ -38,4 +38,5 @@
38
38
  @import './components/_control-item.css';
39
39
  @import './components/_input-frame.css';
40
40
  @import './components/_status-surface.css';
41
+ @import './components/_scroll-fade.css';
41
42
  @import './utilities.css' layer(cinder.utilities);