@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,167 @@
1
1
  # @lostgradient/cinder
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1221](https://github.com/stevekinney/cinder/pull/1221) [`bf6eeb9`](https://github.com/stevekinney/cinder/commit/bf6eeb9e6c287f360c6ed4fe9a0ded7a909e4b8a) Thanks [@stevekinney](https://github.com/stevekinney)! - Carousel and ScrollArea: fine-pointer (mouse) click-and-drag scrolling, with momentum and snap.
8
+ - Carousel now supports click-and-drag scrolling on a mouse automatically — no prop required. Dragging the track moves it with momentum-based physics and snaps to the nearest slide on release, matching the feel of a released touch swipe. Gated on `(hover: hover) and (pointer: fine)` and `!prefers-reduced-motion`; touch and pen are untouched (they already pan the native scroller directly).
9
+ - ScrollArea gets a new opt-in `dragToScroll?: boolean` prop (default `false`) for the same mouse drag-to-scroll behavior, along the scroll area's own `direction`. Not supported when `direction="both"` (logs a dev warning). Keyboard scrolling is unaffected either way.
10
+ - New shared utilities: `useDragScroll` (a `(node) => cleanup` attachment, in the house style of `useResizeObserver`) and `useFinePointer` (a `MediaQuery`-backed `(hover: hover) and (pointer: fine)` hook, mirroring `useReducedMotion`). Both live in `packages/components/src/utilities/` alongside the pure physics (`damp`/`project`/`snapSelect`/`dragSnap`/`shouldSnap`) they're built on.
11
+ - A drag past a 10px threshold suppresses the click it releases into (so a dragged slide link or button doesn't also activate), scoped to the element the engine attached to — never a global click swallow.
12
+
13
+ ⚠️ Like the `slidesPerView` behavior shipped earlier, this introduces a new interaction model and has not yet had a human accessibility review — see the "Fine-pointer drag-to-scroll review" sections in `carousel.a11y.md` and `scroll-area.a11y.md` for the self-review that informed this implementation.
14
+
15
+ - [#1221](https://github.com/stevekinney/cinder/pull/1221) [`bf6eeb9`](https://github.com/stevekinney/cinder/commit/bf6eeb9e6c287f360c6ed4fe9a0ded7a909e4b8a) Thanks [@stevekinney](https://github.com/stevekinney)! - Carousel: fix a `{...rest}` bug that silently dropped consumer `onkeydown`/`onmouseenter`/`onmouseleave`/`onfocusin`/`onfocusout` handlers, add an `onSlideChange` callback, add four `--cinder-carousel-*` theming hooks, and add `indicators`/`indicatorLimit` for large slide counts.
16
+ - **Behavior change:** `loop` now defaults to `false`. Previously the carousel always wrapped past the first/last slide; `Previous`/`Next` now clamp and disable at the ends instead. Pass `loop` to restore the old always-wrap behavior. Autoplay also stops at the last slide instead of wrapping when `loop` is unset. Wrapping (with `loop`) remains seamless only for the first cycle through the deck — see the Carousel README for why.
17
+ - `onkeydown`, `onmouseenter`, `onmouseleave`, `onfocusin`, and `onfocusout` passed to `<Carousel>` were previously overwritten by the component's own internal handlers of the same name (a `{...rest}` spread ordering bug) — they're now composed, consumer handler first. A consumer `onkeydown` that calls `event.preventDefault()` now suppresses the carousel's own Arrow/Home/End handling.
18
+ - New `onSlideChange?: (index, slide) => void`, called whenever the carousel's own navigation (keyboard, controls, dot picker, autoplay, or native scroll settling) moves the active slide. Never fires for a parent-driven `activeIndex` update.
19
+ - New CSS custom properties on `.cinder-carousel`: `--cinder-carousel-slide-size`, `--cinder-carousel-gap`, `--cinder-carousel-aspect-ratio`, `--cinder-carousel-dot-size`.
20
+ - New `indicators?: 'dots' | 'counter' | 'none'` and `indicatorLimit?: number` (default `8`): above the limit the picker automatically switches from dots to a compact `"N / total"` counter unless `indicators` is set explicitly.
21
+
22
+ - [#1221](https://github.com/stevekinney/cinder/pull/1221) [`bf6eeb9`](https://github.com/stevekinney/cinder/commit/bf6eeb9e6c287f360c6ed4fe9a0ded7a909e4b8a) Thanks [@stevekinney](https://github.com/stevekinney)! - Carousel: add `slidesPerView`, `gap`, and `align` for multi-slide-per-view and peek layouts.
23
+ - `slidesPerView?: number | 'auto'` (default `1`): shows more than one slide at once. A fraction like `1.2` peeks the next slide. `'auto'` lets each slide size itself via its own CSS. Above `1`, more than one slide is simultaneously interactive/non-`inert` (the active range is `[currentIndex, currentIndex + ceil(slidesPerView) - 1]`, clamped to the deck), and the live region announces `"Slides N–M of Total"` instead of a single labelled slide. At the default `1`, behavior is unchanged.
24
+ - `gap?: string`: a CSS length between slides. Only applied when `slidesPerView` is not `1`.
25
+ - `align?: 'start' | 'center'` (default `'start'`): snap alignment of the active slide(s) within the viewport.
26
+ - `slidesPerView` above `1` and `loop` are mutually exclusive: setting both logs a dev warning and `loop` is ignored (wrapping a multi-slide range across the physical-order rotation boundary would leave a partial-width gap).
27
+
28
+ ⚠️ This introduces a new interaction model (more than one slide can be active at once) and has not yet had a human accessibility review — see the "Multi-slide-per-view review" section in `carousel.a11y.md` for the self-review that informed this implementation and the open questions flagged for that review.
29
+
30
+ - [#1221](https://github.com/stevekinney/cinder/pull/1221) [`bf6eeb9`](https://github.com/stevekinney/cinder/commit/bf6eeb9e6c287f360c6ed4fe9a0ded7a909e4b8a) Thanks [@stevekinney](https://github.com/stevekinney)! - Carousel: adopt native `scrollend` for settle detection, add a `slide` snippet for custom slide content, make nearest-slide detection scroll-padding-aware, and move `activeIndex`/announcement writeback to settle-only for touch/wheel gestures.
31
+ - Settle detection (the moment a touch/wheel gesture is considered "done") now uses the native `scrollend` event where supported, falling back to the existing debounce timer where it isn't (Tier 2, `PLATFORM-POLICY.md`).
32
+ - **Behavior change:** during a touch/wheel gesture, `activeIndex`, `onSlideChange`, and the live-region announcement now update once, at settle — not on every intermediate scroll frame. A fast swipe through several slides no longer fires a rapid sequence of live-region announcements. Keyboard, button, and dot-picker navigation are unaffected (unchanged, synchronous). A cosmetic `visualIndex` still tracks the nearest slide every frame so the dot picker visually follows the drag.
33
+ - New `slide?: Snippet<[TSlide, { index, active }]>` prop (with `CarouselProps<TSlide extends CarouselSlide = CarouselSlide>` now generic) renders custom content inside each slide's `<article>`, replacing the built-in image/title/description/link body. `slides` remains the identity and accessible-labeling source of truth; `inert`/`aria-hidden`/`role`/`aria-label` are still owned by the component regardless of which body renders.
34
+ - `nearestVisibleSlideIndex` now reads `scroll-padding-inline-start` off the viewport (LTR) so a consumer-set snap inset is respected, instead of always comparing against the border-box edge.
35
+ - Internal: six separately-coordinated flags collapsed into one `CarouselMotion` state; replaced a hand-rolled ancestor `MutationObserver` for `dir` changes with the shared `observeTextDirection` utility.
36
+
37
+ - [#1208](https://github.com/stevekinney/cinder/pull/1208) [`06ffb18`](https://github.com/stevekinney/cinder/commit/06ffb181cf73c2984613f93571b037dd721c7734) Thanks [@stevekinney](https://github.com/stevekinney)! - Re-anchor the light-mode surface ramp at white, wash interaction states toward the
38
+ accent, and lighten the focus ring.
39
+
40
+ Light mode now anchors at white and stays compressed: `--cinder-surface-inset`
41
+ 0.960 → `--cinder-bg` 0.984 → `--cinder-surface` 0.994 → `--cinder-surface-raised`
42
+ 1.000. Region separation is carried by border and shadow rather than by fill, which
43
+ is how light interfaces conventionally work — the page canvas reads as white, and a
44
+ card lifts off it with a hairline and a shadow instead of by everything around it
45
+ getting darker. Neutral surface chroma drops roughly 3x (0.010–0.018 → 0.002–0.005)
46
+ so large light surfaces read as white rather than as pale slate; saturation is
47
+ reserved for the accent and the status colors.
48
+
49
+ Interaction states change direction in the light arm only. `--cinder-surface-hover`
50
+ and `--cinder-surface-pressed` (and their `-raised-` twins) now mix toward
51
+ `--cinder-accent` at 6% / 12% instead of toward black. Near white a proportional
52
+ black mix is structurally unusable: the resting tiers span 0.040 lightness points
53
+ while a 6% black mix moves a surface 0.060, so every state lands on a resting tier
54
+ regardless of the percentage chosen. Mixing toward the accent separates states by
55
+ chroma and hue as well as lightness, so they stay legible at a step small enough to
56
+ fit the ramp. The dark arm is unchanged — it builds up from near-black across 17
57
+ lightness points, where a proportional lightness mix has room and already works.
58
+
59
+ The focus ring goes from 3px at a 1px offset to 2px at a 2px offset — the same 4px
60
+ total footprint, but half of it is now separation, so the ring reads as a ring
61
+ around a control rather than an outline on it and stops merging with an adjacent
62
+ border. `--cinder-ring-offset-color` moves from `--cinder-bg` to
63
+ `--cinder-surface-raised`.
64
+
65
+ Also in this release:
66
+ - Soft status surfaces (Alert, Banner, Callout) move from L 0.965 / C 0.015 to
67
+ L 0.945 / C 0.026. The old tint was capped by the sRGB gamut rather than chosen:
68
+ at L 0.965 the maximum in-gamut chroma for the danger hue is 0.0172, so a chroma
69
+ shared across all four statuses could not exceed that and every status was held
70
+ to red's headroom near white. Dropping the lightness raises the binding ceiling
71
+ to 0.0275.
72
+ - The four `--cinder-color-*-bg` triples sit at L 0.945 with re-fitted chroma,
73
+ which fixes a pre-existing bug where `--cinder-color-warning-bg` and
74
+ `--cinder-color-danger-bg` were authored outside the sRGB gamut and had been
75
+ silently clamping to a desaturated grey.
76
+ - `--cinder-border` 0.79 → 0.83 and `--cinder-border-muted` 0.88 → 0.90, with chroma
77
+ dropping alongside the surfaces so a hairline reads as a neutral line rather than
78
+ a faint blue one. `--cinder-border` deliberately stays dark enough to hold the
79
+ secondary Button's outline against its white fill; on a white-anchored ramp that
80
+ border is the only thing making the control read as a control.
81
+ - CodeBlock takes the surface radius and its header no longer paints a fill of its
82
+ own. The header previously filled `--cinder-surface-inset` while the body filled
83
+ `--cinder-surface-raised`, stacking two plates inside one rounded, clipped
84
+ container. The code surface itself is unchanged: it stays pure white in light
85
+ mode, because Shiki's `github-light` palette is fitted to `#ffffff` and its
86
+ keyword red measures only 4.58:1 there against a 4.5:1 AA floor, so any tint
87
+ behind highlighted code fails WCAG.
88
+ - `--cinder-surface-raised` is authored `oklch(100% 0 255)` rather than
89
+ `oklch(100% 0.006 245)`, which was out of gamut and painted as nothing.
90
+ - `SegmentedControl`'s option radius derives from its container's own token
91
+ (`calc(var(--cinder-radius-md) - 1px)`), so the inner and outer corners are
92
+ concentric.
93
+
94
+ The radius scale is unchanged from the previous release at 6 / 8 / 12px.
95
+
96
+ Consumers that override `--cinder-bg`, `--cinder-surface`, `--cinder-surface-raised`
97
+ or `--cinder-surface-inset` should re-check their own ramp: the light arm's spacing
98
+ and direction have both changed, and a consumer ramp built to sit against a grey
99
+ canvas will need retuning against a white one.
100
+
101
+ - [#1220](https://github.com/stevekinney/cinder/pull/1220) [`68370b1`](https://github.com/stevekinney/cinder/commit/68370b1d5ac2046855a77f95db36f316eaafa35a) Thanks [@stevekinney](https://github.com/stevekinney)! - Add scroll-driven edge fades and a horizontal-scroll shadow affordance, and fix a forced-colors defect in the existing overlay-body fade.
102
+ - New shared internal partial `_scroll-fade.css`: an opaque, scroll-position-aware edge fade driven by `animation-timeline: scroll()` where supported, falling back to the existing `data-cinder-overflows` attribute path everywhere else — no `CSS.supports()` branch, no hydration divergence. Never a `mask-image` (masking a container that paints its own background reveals whatever is behind it, which is why PR [#972](https://github.com/stevekinney/cinder/issues/972) removed masks from Modal/Drawer/Sheet in the first place).
103
+ - Modal, Drawer, and Sheet bodies now consume the shared recipe instead of three byte-identical copies, which also fixes a real bug: the previous hard-coded gradient had no `forced-colors` carve-out, so it painted a light-gray band across the bottom of every scrollable overlay in high-contrast mode. `--cinder-scroll-fade-size` (1.5rem) is now a themeable public token instead of being hard-coded three times.
104
+ - `overflowFade()` (`utilities/attachments.ts`) no longer registers a `ResizeObserver` on every descendant of a scroll container — only the container itself, with a `MutationObserver` triggering direct re-measurement on content changes. The previous approach was fine for a modal body but registered thousands of observers on a long scroll surface.
105
+ - New opt-in `scrollFadeVisible` prop on `ScrollArea`, `CodeBlock`, and Chat's message timeline — presentation-only, never the sole signal that content scrolls. `CodeBlock`'s fade is horizontal (inline) and intentionally translucent rather than fully opaque, so a partially covered glyph still reads as a glyph. Chat's timeline fades both the top and bottom edges and is only active in `surfaceMode="default"`.
106
+ - `Table`, `PermissionMatrix`, and `TransferList` scroll containers now show `DataGrid`'s existing inset-shadow horizontal(/vertical, for TransferList)-scroll affordance when their content actually overflows, via a new `overflowShadow()` attachment.
107
+
108
+ ### Patch Changes
109
+
110
+ - [#1214](https://github.com/stevekinney/cinder/pull/1214) [`61bcfbc`](https://github.com/stevekinney/cinder/commit/61bcfbce232427b03b7d11ae552c134800d026a4) Thanks [@stevekinney](https://github.com/stevekinney)! - Fix a set of real interaction and accessibility defects: Meter silently dropping a
111
+ consumer's forwarded `aria-label`; MultiSelect's listbox being clipped by an
112
+ overflow-hidden ancestor instead of portaling; Popover/HoverCard arrow placement being
113
+ overridden by a hardcoded shared inset; asymmetric overlay open/close motion on Modal,
114
+ Drawer, Sheet, and HoverCard (missing `@starting-style`/`allow-discrete`, no real exit
115
+ transition); SelectionPopover dismissing itself immediately when opened via a
116
+ drag-selection gesture that triggers page autoscroll; and menu-open latency from the
117
+ shared anchored-overlay layer's first `@floating-ui/dom` import no longer being prefetched
118
+ ahead of the first open. Also fixes a `_sortable-item.svelte` DOM query
119
+ (`:scope >` → `.children`-based) that silently matched zero rows under happy-dom — a
120
+ test-environment compatibility fix with no change to real-browser drag behavior, which
121
+ was already correct; no runtime change to KanbanBoard.
122
+
123
+ - [#1216](https://github.com/stevekinney/cinder/pull/1216) [`38a43a0`](https://github.com/stevekinney/cinder/commit/38a43a0cccf557aafbaee2a39486a050a2979854) Thanks [@stevekinney](https://github.com/stevekinney)! - Stop using the status **fill** tokens (`--cinder-success` / `--cinder-info` /
124
+ `--cinder-warning` / `--cinder-danger`) as text color. Those are tuned dark enough
125
+ (L≈0.50) to carry a white label; the paired `--cinder-color-*-fg` tokens (L≈0.40)
126
+ are the foregrounds. Measured as ink on `--cinder-surface-inset`, the fills land at
127
+ 3.98 (success), 4.16 (info) and 3.66 (warning) — all below the 4.5:1 AA floor —
128
+ while the `-fg` equivalents land 6.1–6.7. `--cinder-warning` was already failing
129
+ before the light-ramp retune in [#1208](https://github.com/stevekinney/cinder/issues/1208); widening the ramp only made it worse.
130
+
131
+ Swaps every `color:` declaration that paints text: form-field, checkbox,
132
+ checkbox-group, radio-group, input, textarea, select, combobox, multi-select,
133
+ tag-input, pin-input, phone-input, time-field, date-picker, date-range-field,
134
+ schema-form, button, dropdown, copy-button, rating, qr-code, json-editor,
135
+ statistic, diff-statistics, status-dot, inline-loading, event-stream-viewer, and
136
+ the shared `_field-label` required marker.
137
+
138
+ Deliberately **not** swapped: `background`, `border`, `outline`, focus-ring
139
+ custom properties, and every `color:` whose value is consumed as `currentColor` by
140
+ a painted shape rather than by text — lucide icon strokes (Card's risk icon,
141
+ ApprovalCard's risk icons, PermissionMatrix's cell tokens, SecretValueField's copy
142
+ confirmation), Timeline's `border: 2px solid currentColor` markers, Rating's
143
+ mask-clipped star fill, StatusDot's indicator dot, and JsonEditor's lint squiggle.
144
+ Those are non-text graphics held to the 3:1 floor, which the fill tokens already
145
+ clear; swapping them would have been a visual regression, not an accessibility fix.
146
+
147
+ EventStreamViewer needed a structural fix rather than a swap: a single
148
+ `--cinder-event-stream-viewer-severity-color` variable was painting both the 3px
149
+ severity rail and the severity badge text. It is now split into `-color` (the
150
+ rail, on the fill ramp) and `-ink` (the badge, on the `-fg` ramp). Pushing the
151
+ shared variable to `-fg` would have collapsed all four rails into one 88–90%
152
+ lightness band in the dark arm, making the severities indistinguishable.
153
+
154
+ - [#1215](https://github.com/stevekinney/cinder/pull/1215) [`4531af8`](https://github.com/stevekinney/cinder/commit/4531af81295cec74f50a20b33fa45492ee037bc4) Thanks [@stevekinney](https://github.com/stevekinney)! - Gate Tooltip's portal on visibility, so a hidden tooltip leaves nothing in `document.body`.
155
+
156
+ The portal attachment had no `disabled` option, and the panel is not inside a conditional block, so every Tooltip portaled its `[role="tooltip"]` node on mount and left it there for the component's whole lifetime — one detached node per instance, including during SSR. That contradicts `OVERLAY-POLICY.md` ("All overlays render into the portal after hydration. SSR markup is empty."), and every sibling overlay already gates: Popover and HoverCard through `{#if mounted && open && anchorElement}`, Portal / SpeedDial / NavigationBar / DropdownMenu through an explicit `disabled` getter.
157
+
158
+ Uses `disabled` rather than wrapping the node in `{#if visible}`: the disabled path calls `restoreInline()`, which returns the panel to its original position inside the wrapper instead of unmounting it, so the `aria-describedby` target keeps resolving while the tooltip is hidden. Conditional rendering would break that association.
159
+
160
+ Gated on `visible` rather than `isTooltipExposed`, because the latter also requires `positionReady` and position is computed against the portaled node — gating on it would deadlock a tooltip that can never be positioned because it was never portaled.
161
+
162
+ - Updated dependencies [[`0fb8912`](https://github.com/stevekinney/cinder/commit/0fb891210be26c2675de870beb931d9f39cdff4c)]:
163
+ - @lostgradient/markdown@0.2.0
164
+
3
165
  ## 0.20.0
4
166
 
5
167
  ### Minor Changes
package/components.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": 1,
4
4
  "package": {
5
5
  "name": "@lostgradient/cinder",
6
- "version": "0.20.0",
6
+ "version": "0.21.0",
7
7
  "framework": "svelte",
8
8
  "frameworkVersionRange": ">=5.56.0 <6",
9
9
  "classPrefix": "cinder-",