@esportsplus/ui 0.59.1 → 0.62.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 (851) hide show
  1. package/.audit/audit.json +2770 -0
  2. package/.audit/check-scss.mjs +20 -0
  3. package/.audit/rules-audit.md +531 -0
  4. package/README.md +52 -40
  5. package/RULES.md +145 -0
  6. package/build/components/accordion/index.d.ts +15 -2174
  7. package/build/components/accordion/index.js +32 -31
  8. package/build/components/accordion/scss/index.scss +1 -1
  9. package/build/components/announcement/index.d.ts +720 -2164
  10. package/build/components/announcement/index.js +12 -9
  11. package/build/components/announcement/scss/index.scss +1 -1
  12. package/build/components/breadcrumb/index.d.ts +4 -1
  13. package/build/components/breadcrumb/index.js +57 -69
  14. package/build/components/breadcrumb/scss/index.scss +1 -1
  15. package/build/components/button/copy.d.ts +4 -11
  16. package/build/components/button/copy.js +32 -25
  17. package/build/components/button/faces.d.ts +2 -2
  18. package/build/components/button/faces.js +9 -11
  19. package/build/components/button/index.d.ts +3 -7
  20. package/build/components/button/index.js +3 -5
  21. package/build/components/button/kbd.d.ts +3 -7
  22. package/build/components/button/kbd.js +63 -76
  23. package/build/components/button/morph/index.d.ts +1447 -0
  24. package/build/components/button/morph/index.js +4 -0
  25. package/build/components/button/morph/save.d.ts +10 -0
  26. package/build/components/button/morph/save.js +57 -0
  27. package/build/components/button/morph/template.d.ts +23 -0
  28. package/build/components/button/morph/template.js +110 -0
  29. package/build/components/button/scss/index.scss +1 -1
  30. package/build/components/button/sidebar.d.ts +1 -10
  31. package/build/components/button/sidebar.js +14 -12
  32. package/build/components/button/split.d.ts +7 -2
  33. package/build/components/button/split.js +20 -19
  34. package/build/components/capslock/index.d.ts +1 -10
  35. package/build/components/capslock/index.js +18 -14
  36. package/build/components/capslock/scss/index.scss +1 -1
  37. package/build/components/card/scss/index.scss +1 -1
  38. package/build/components/cc/index.d.ts +4 -1
  39. package/build/components/cc/index.js +209 -175
  40. package/build/components/cc/scss/index.scss +1 -1
  41. package/build/components/chat/index.d.ts +6 -0
  42. package/build/components/chat/index.js +3 -0
  43. package/build/components/chat/minimap/index.d.ts +63 -0
  44. package/build/components/chat/minimap/index.js +272 -0
  45. package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
  46. package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
  47. package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
  48. package/build/components/checkbox/group.d.ts +2 -10
  49. package/build/components/checkbox/group.js +39 -29
  50. package/build/components/checkbox/index.d.ts +1 -0
  51. package/build/components/checkbox/index.js +1 -0
  52. package/build/components/checkbox/options.d.ts +5005 -6441
  53. package/build/components/checkbox/options.js +72 -45
  54. package/build/components/checkbox/scss/index.scss +1 -1
  55. package/build/components/clipboard/index.d.ts +3 -2181
  56. package/build/components/clipboard/index.js +2 -3
  57. package/build/components/color-picker/index.d.ts +31 -1
  58. package/build/components/color-picker/index.js +200 -168
  59. package/build/components/color-picker/scss/index.scss +1 -1
  60. package/build/components/command/index.d.ts +6 -93
  61. package/build/components/command/index.js +4 -601
  62. package/build/components/command/palette.d.ts +111 -0
  63. package/build/components/command/palette.js +606 -0
  64. package/build/components/command/scss/index.scss +1 -1
  65. package/build/components/command/search.d.ts +19 -0
  66. package/build/components/command/search.js +68 -0
  67. package/build/components/container/scss/index.scss +1 -1
  68. package/build/components/counter/index.d.ts +6 -4
  69. package/build/components/counter/index.js +36 -32
  70. package/build/components/counter/scss/index.scss +1 -1
  71. package/build/components/dock/index.d.ts +28 -6
  72. package/build/components/dock/index.js +433 -55
  73. package/build/components/dock/scss/index.scss +1 -1
  74. package/build/components/editor/code/editor.d.ts +1 -10
  75. package/build/components/editor/code/features.d.ts +3 -3
  76. package/build/components/editor/code/features.js +65 -52
  77. package/build/components/editor/code/field.d.ts +1 -1
  78. package/build/components/editor/code/find.d.ts +4 -4
  79. package/build/components/editor/code/find.js +39 -37
  80. package/build/components/editor/code/folding.d.ts +1 -1
  81. package/build/components/editor/code/goto.d.ts +2 -1
  82. package/build/components/editor/code/goto.js +7 -7
  83. package/build/components/editor/code/gutter.js +12 -12
  84. package/build/components/editor/code/html.d.ts +4 -0
  85. package/build/components/editor/code/html.js +8 -0
  86. package/build/components/editor/code/minimap.d.ts +4 -10
  87. package/build/components/editor/code/minimap.js +18 -13
  88. package/build/components/editor/code/rows.js +6 -12
  89. package/build/components/editor/code/search.d.ts +1 -2
  90. package/build/components/editor/code/search.js +1 -1
  91. package/build/components/editor/code/services/index.d.ts +1 -1
  92. package/build/components/editor/code/services/index.js +27 -23
  93. package/build/components/editor/code/services/model.d.ts +1 -5
  94. package/build/components/editor/code/services/model.js +1 -1
  95. package/build/components/editor/code/services/session.d.ts +3 -2
  96. package/build/components/editor/code/services/session.js +1 -4
  97. package/build/components/editor/code/syntax.d.ts +1 -1
  98. package/build/components/editor/code/view.d.ts +2 -1
  99. package/build/components/editor/code/view.js +50 -39
  100. package/build/components/editor/diffs/merge.d.ts +1 -10
  101. package/build/components/editor/diffs/merge.js +126 -102
  102. package/build/components/editor/diffs/render.d.ts +1 -2
  103. package/build/components/editor/diffs/render.js +2 -8
  104. package/build/components/editor/diffs/view.d.ts +1 -10
  105. package/build/components/editor/diffs/view.js +112 -105
  106. package/build/components/editor/markdown/editing.d.ts +1 -1
  107. package/build/components/editor/markdown/erase.js +1 -1
  108. package/build/components/editor/markdown/format.d.ts +23 -0
  109. package/build/components/editor/markdown/format.js +319 -0
  110. package/build/components/editor/markdown/html.d.ts +1 -1
  111. package/build/components/editor/markdown/index.d.ts +3 -22
  112. package/build/components/editor/markdown/index.js +3 -30
  113. package/build/components/editor/markdown/inline.d.ts +1 -1
  114. package/build/components/editor/markdown/inline.js +6 -5
  115. package/build/components/editor/markdown/layout.d.ts +1 -3
  116. package/build/components/editor/markdown/layout.js +1 -1
  117. package/build/components/editor/markdown/model.d.ts +3 -9
  118. package/build/components/editor/markdown/model.js +1 -8
  119. package/build/components/editor/markdown/render.d.ts +2 -1
  120. package/build/components/editor/markdown/render.js +281 -252
  121. package/build/components/editor/markdown/template.d.ts +13 -0
  122. package/build/components/editor/markdown/template.js +30 -0
  123. package/build/components/editor/markdown/toolbar.d.ts +32 -0
  124. package/build/components/editor/markdown/toolbar.js +556 -0
  125. package/build/components/editor/markdown/view.d.ts +12 -1
  126. package/build/components/editor/markdown/view.js +154 -60
  127. package/build/components/editor/tree/compact.d.ts +2 -1
  128. package/build/components/editor/tree/compact.js +12 -11
  129. package/build/components/editor/tree/drag.d.ts +3 -2
  130. package/build/components/editor/tree/drag.js +29 -26
  131. package/build/components/editor/tree/edit.d.ts +1 -1
  132. package/build/components/editor/tree/edit.js +10 -9
  133. package/build/components/editor/tree/find.d.ts +1 -1
  134. package/build/components/editor/tree/find.js +13 -9
  135. package/build/components/editor/tree/icons.d.ts +1 -1
  136. package/build/components/editor/tree/icons.js +1 -1
  137. package/build/components/editor/tree/index.d.ts +3 -116
  138. package/build/components/editor/tree/index.js +3 -2225
  139. package/build/components/editor/tree/lazy.d.ts +2 -1
  140. package/build/components/editor/tree/lazy.js +17 -16
  141. package/build/components/editor/tree/sticky.d.ts +3 -2
  142. package/build/components/editor/tree/sticky.js +7 -6
  143. package/build/components/editor/tree/template.d.ts +117 -0
  144. package/build/components/editor/tree/template.js +2212 -0
  145. package/build/components/editor/viewer/index.d.ts +3 -26
  146. package/build/components/editor/viewer/index.js +3 -249
  147. package/build/components/editor/viewer/model.js +1 -7
  148. package/build/components/editor/viewer/template.d.ts +17 -0
  149. package/build/components/editor/viewer/template.js +258 -0
  150. package/build/components/editor/workspace/index.d.ts +4 -65
  151. package/build/components/editor/workspace/index.js +4 -1228
  152. package/build/components/editor/workspace/model.d.ts +29 -37
  153. package/build/components/editor/workspace/model.js +186 -155
  154. package/build/components/editor/workspace/navigate.d.ts +2 -1
  155. package/build/components/editor/workspace/navigate.js +2 -4
  156. package/build/components/editor/workspace/session.d.ts +5 -1
  157. package/build/components/editor/workspace/session.js +71 -39
  158. package/build/components/editor/workspace/shortcuts.d.ts +0 -2
  159. package/build/components/editor/workspace/shortcuts.js +39 -35
  160. package/build/components/editor/workspace/status.d.ts +4 -5
  161. package/build/components/editor/workspace/status.js +79 -61
  162. package/build/components/editor/workspace/statusbar.d.ts +7 -4
  163. package/build/components/editor/workspace/statusbar.js +73 -86
  164. package/build/components/editor/workspace/strip.d.ts +1 -2
  165. package/build/components/editor/workspace/strip.js +10 -8
  166. package/build/components/editor/workspace/tabs.d.ts +35 -3
  167. package/build/components/editor/workspace/tabs.js +75 -13
  168. package/build/components/editor/workspace/template.d.ts +57 -0
  169. package/build/components/editor/workspace/template.js +1150 -0
  170. package/build/components/error/index.d.ts +1 -10
  171. package/build/components/error/index.js +64 -32
  172. package/build/components/error/scss/index.scss +1 -1
  173. package/build/components/filter/index.js +138 -77
  174. package/build/components/filter/scss/index.scss +1 -1
  175. package/build/components/form/action.d.ts +2 -2
  176. package/build/components/form/action.js +12 -9
  177. package/build/components/form/index.d.ts +6 -32
  178. package/build/components/form/index.js +2 -1
  179. package/build/components/frame/scss/index.scss +1 -1
  180. package/build/components/grid/scss/index.scss +1 -1
  181. package/build/components/group/index.d.ts +14 -0
  182. package/build/components/group/index.js +18 -0
  183. package/build/components/group/scss/index.scss +2 -0
  184. package/build/components/heatmap/index.d.ts +5 -2
  185. package/build/components/heatmap/index.js +79 -88
  186. package/build/components/heatmap/scss/index.scss +1 -1
  187. package/build/components/highlight/index.d.ts +3 -13
  188. package/build/components/highlight/index.js +95 -92
  189. package/build/components/highlight/scss/index.scss +1 -1
  190. package/build/components/icon/index.d.ts +2 -10
  191. package/build/components/icon/index.js +12 -10
  192. package/build/components/icon/scss/index.scss +1 -1
  193. package/build/components/image/index.d.ts +3 -16
  194. package/build/components/image/index.js +2 -2
  195. package/build/components/image/lazyload.d.ts +2 -1
  196. package/build/components/image/lazyload.js +29 -26
  197. package/build/components/image/scss/index.scss +1 -1
  198. package/build/components/index.d.ts +6 -7
  199. package/build/components/index.js +6 -7
  200. package/build/components/inline-edit/index.d.ts +5 -1
  201. package/build/components/inline-edit/index.js +35 -27
  202. package/build/components/inline-edit/rich.d.ts +10 -15
  203. package/build/components/inline-edit/rich.js +82 -1197
  204. package/build/components/inline-edit/scss/index.scss +1 -1
  205. package/build/components/inline-edit/status.d.ts +3 -2
  206. package/build/components/inline-edit/status.js +23 -18
  207. package/build/components/input/field.d.ts +2 -1
  208. package/build/components/input/field.js +12 -9
  209. package/build/components/input/scrub.d.ts +4 -1
  210. package/build/components/input/scrub.js +25 -20
  211. package/build/components/input/scss/index.scss +1 -1
  212. package/build/components/input/tag.d.ts +4 -2
  213. package/build/components/input/tag.js +105 -83
  214. package/build/components/json/index.d.ts +4 -3
  215. package/build/components/json/index.js +2 -1
  216. package/build/components/link/scss/index.scss +1 -1
  217. package/build/components/loading/index.d.ts +2 -1
  218. package/build/components/loading/index.js +6 -3
  219. package/build/components/loading/scss/index.scss +1 -1
  220. package/build/components/marquee/index.d.ts +2 -1
  221. package/build/components/marquee/index.js +92 -84
  222. package/build/components/marquee/scss/index.scss +1 -1
  223. package/build/components/marquee/velocity.js +4 -3
  224. package/build/components/metric/flash.d.ts +2 -1
  225. package/build/components/metric/flash.js +26 -25
  226. package/build/components/metric/index.d.ts +13 -2
  227. package/build/components/metric/index.js +60 -56
  228. package/build/components/metric/scss/index.scss +1 -1
  229. package/build/components/nav/index.d.ts +1 -1
  230. package/build/components/nav/scss/index.scss +1 -1
  231. package/build/components/nav/spy.js +9 -6
  232. package/build/components/nav/toc.d.ts +4 -18
  233. package/build/components/nav/toc.js +9 -21
  234. package/build/components/nav/tree.d.ts +14 -13
  235. package/build/components/nav/tree.js +80 -65
  236. package/build/components/notification/index.d.ts +5 -3
  237. package/build/components/notification/index.js +30 -39
  238. package/build/components/notification/scss/index.scss +1 -1
  239. package/build/components/overlay/index.d.ts +4 -5
  240. package/build/components/overlay/index.js +399 -196
  241. package/build/components/overlay/popup.d.ts +5 -6
  242. package/build/components/overlay/popup.js +80 -39
  243. package/build/components/overlay/scss/index.scss +1 -1
  244. package/build/components/page/scss/index.scss +1 -1
  245. package/build/components/pagination/arrows.d.ts +2 -1
  246. package/build/components/pagination/arrows.js +48 -45
  247. package/build/components/pagination/cards.d.ts +5 -1
  248. package/build/components/pagination/cards.js +70 -47
  249. package/build/components/pagination/dots.d.ts +3 -1
  250. package/build/components/pagination/dots.js +29 -24
  251. package/build/components/pagination/index.d.ts +2 -1
  252. package/build/components/pagination/index.js +27 -28
  253. package/build/components/pagination/scss/index.scss +1 -1
  254. package/build/components/panels/dnd.d.ts +47 -0
  255. package/build/components/panels/dnd.js +114 -0
  256. package/build/components/panels/group.d.ts +36 -0
  257. package/build/components/panels/group.js +322 -0
  258. package/build/components/panels/index.d.ts +17 -0
  259. package/build/components/panels/index.js +524 -0
  260. package/build/components/panels/model.d.ts +64 -0
  261. package/build/components/panels/model.js +446 -0
  262. package/build/components/panels/resize.d.ts +9 -0
  263. package/build/components/panels/resize.js +123 -0
  264. package/build/components/panels/scss/index.scss +2 -0
  265. package/build/components/panels/subtree.d.ts +4 -0
  266. package/build/components/panels/subtree.js +44 -0
  267. package/build/components/preview/buttons.d.ts +12 -0
  268. package/build/components/preview/buttons.js +26 -0
  269. package/build/components/preview/code.d.ts +8 -0
  270. package/build/components/preview/code.js +18 -0
  271. package/build/components/preview/header.d.ts +8 -0
  272. package/build/components/preview/header.js +21 -0
  273. package/build/components/preview/index.d.ts +37 -0
  274. package/build/components/preview/index.js +123 -0
  275. package/build/components/preview/scss/index.scss +2 -0
  276. package/build/components/preview/source.d.ts +12 -0
  277. package/build/components/preview/source.js +79 -0
  278. package/build/components/preview/stage.d.ts +8 -0
  279. package/build/components/preview/stage.js +28 -0
  280. package/build/components/progress/index.d.ts +2 -1
  281. package/build/components/progress/index.js +30 -26
  282. package/build/components/progress/scss/index.scss +1 -1
  283. package/build/components/progress/text.d.ts +2 -1
  284. package/build/components/progress/text.js +30 -30
  285. package/build/components/radio/index.d.ts +3 -2
  286. package/build/components/radio/index.js +2 -2
  287. package/build/components/range/filter.d.ts +2 -1
  288. package/build/components/range/filter.js +130 -132
  289. package/build/components/range/index.d.ts +2 -1
  290. package/build/components/range/index.js +17 -22
  291. package/build/components/range/scss/index.scss +1 -1
  292. package/build/components/relative-time/index.d.ts +3 -1
  293. package/build/components/relative-time/index.js +60 -48
  294. package/build/components/relative-time/scss/index.scss +1 -1
  295. package/build/components/root/scss/index.scss +1 -1
  296. package/build/components/select/expand.d.ts +44 -0
  297. package/build/components/select/expand.js +215 -0
  298. package/build/components/select/index.d.ts +19 -10
  299. package/build/components/select/index.js +130 -90
  300. package/build/components/select/scss/index.scss +1 -1
  301. package/build/components/shell/index.d.ts +23 -0
  302. package/build/components/shell/index.js +290 -0
  303. package/build/components/shell/scss/index.scss +2 -0
  304. package/build/components/shortcut-recorder/index.d.ts +2 -3
  305. package/build/components/shortcut-recorder/index.js +49 -44
  306. package/build/components/shortcut-recorder/scss/index.scss +1 -1
  307. package/build/components/sortable/index.d.ts +2 -714
  308. package/build/components/sortable/index.js +75 -64
  309. package/build/components/sortable/scss/index.scss +1 -1
  310. package/build/components/story/index.d.ts +3 -5
  311. package/build/components/story/index.js +122 -84
  312. package/build/components/story/scss/index.scss +1 -1
  313. package/build/components/surface-field/engine.js +51 -53
  314. package/build/components/surface-field/index.d.ts +2180 -2921
  315. package/build/components/surface-field/index.js +52 -51
  316. package/build/components/surface-field/scss/index.scss +1 -1
  317. package/build/components/surface-field/surface.d.ts +1 -10
  318. package/build/components/surface-field/surface.js +42 -36
  319. package/build/components/switch/index.d.ts +3 -2
  320. package/build/components/switch/index.js +2 -2
  321. package/build/components/tasklist/index.d.ts +8 -1
  322. package/build/components/tasklist/index.js +66 -47
  323. package/build/components/tasklist/scss/index.scss +1 -1
  324. package/build/components/textarea/index.d.ts +722 -2170
  325. package/build/components/textarea/index.js +67 -91
  326. package/build/components/textarea/scss/index.scss +1 -1
  327. package/build/components/theme/cards.d.ts +4 -0
  328. package/build/components/theme/cards.js +21 -0
  329. package/build/components/theme/index.d.ts +17 -4
  330. package/build/components/theme/index.js +40 -15
  331. package/build/components/theme/reveal.d.ts +6 -0
  332. package/build/components/theme/reveal.js +100 -0
  333. package/build/components/theme/scss/index.scss +1 -1
  334. package/build/components/theme/shared.d.ts +26 -0
  335. package/build/components/theme/shared.js +26 -0
  336. package/build/components/theme/swatches.d.ts +4 -0
  337. package/build/components/theme/swatches.js +21 -0
  338. package/build/components/theme/toggle.d.ts +15 -0
  339. package/build/components/theme/toggle.js +33 -0
  340. package/build/components/toast/index.d.ts +6 -2
  341. package/build/components/toast/index.js +68 -56
  342. package/build/components/toast/scss/index.scss +1 -1
  343. package/build/components/tooltip/menu.d.ts +12 -2
  344. package/build/components/tooltip/menu.js +234 -176
  345. package/build/components/tooltip/onclick.d.ts +1 -10
  346. package/build/components/tooltip/onclick.js +25 -27
  347. package/build/components/tooltip/onhover.d.ts +8 -709
  348. package/build/components/tooltip/onhover.js +60 -60
  349. package/build/components/tooltip/scss/index.scss +1 -1
  350. package/build/components/tooltip/shared.d.ts +5 -3
  351. package/build/components/tooltip/shared.js +201 -91
  352. package/build/components/tooltip/utilities.d.ts +10 -4
  353. package/build/components/tooltip/utilities.js +95 -18
  354. package/build/components/typewriter/index.d.ts +2855 -1413
  355. package/build/components/typewriter/index.js +17 -18
  356. package/build/components/typewriter/retype.d.ts +2 -1
  357. package/build/components/typewriter/retype.js +21 -18
  358. package/build/components/typewriter/rotate.d.ts +2 -1
  359. package/build/components/typewriter/rotate.js +41 -45
  360. package/build/components/typewriter/scss/index.scss +1 -1
  361. package/build/components/uptime/index.d.ts +2 -1
  362. package/build/components/uptime/index.js +51 -54
  363. package/build/components/uptime/scss/index.scss +1 -1
  364. package/build/components/usage-meter/index.d.ts +719 -2161
  365. package/build/components/usage-meter/index.js +23 -20
  366. package/build/components/usage-meter/scss/index.scss +1 -1
  367. package/build/modifiers/background/scss/index.scss +2 -0
  368. package/build/modifiers/border/scss/index.scss +2 -0
  369. package/build/modifiers/box-shadow/scss/index.scss +2 -0
  370. package/build/modifiers/color/scss/index.scss +2 -0
  371. package/build/modifiers/disabled/scss/index.scss +2 -0
  372. package/build/modifiers/glass/index.d.ts +3 -2
  373. package/build/modifiers/glass/index.js +7 -7
  374. package/build/modifiers/glass/scss/index.scss +1 -1
  375. package/build/modifiers/scrollbar/index.d.ts +13 -13
  376. package/build/modifiers/scrollbar/index.js +74 -90
  377. package/build/modifiers/scrollbar/scss/index.scss +1 -1
  378. package/build/shared/animation.d.ts +1 -1
  379. package/build/shared/animation.js +6 -4
  380. package/build/shared/dispatch.d.ts +7 -0
  381. package/build/shared/dispatch.js +25 -0
  382. package/build/shared/drag.d.ts +4 -5
  383. package/build/shared/drag.js +4 -3
  384. package/build/shared/press.d.ts +1 -1
  385. package/build/shared/press.js +5 -3
  386. package/build/shared/resize.js +2 -25
  387. package/build/shared/transition.d.ts +1 -1
  388. package/build/shared/transition.js +2 -2
  389. package/build/shared/visible.js +1 -24
  390. package/package.json +10 -11
  391. package/scripts/code-editor-services.test.mjs +1 -1
  392. package/scripts/code-editor-workspace.test.mjs +28 -18
  393. package/scripts/panels.test.mjs +262 -0
  394. package/scripts/workspace-keybindings.test.mjs +1 -1
  395. package/scripts/workspace-session.test.mjs +8 -6
  396. package/scripts/workspace-status.test.mjs +9 -1
  397. package/scripts/workspace-tabs.test.mjs +5 -5
  398. package/src/components/accordion/index.ts +13 -12
  399. package/src/components/accordion/scss/index.scss +16 -13
  400. package/src/components/accordion/scss/variables.scss +13 -10
  401. package/src/components/announcement/scss/index.scss +16 -24
  402. package/src/components/announcement/scss/variables.scss +20 -10
  403. package/src/components/breadcrumb/index.ts +11 -13
  404. package/src/components/breadcrumb/scss/index.scss +52 -126
  405. package/src/components/breadcrumb/scss/variables.scss +64 -53
  406. package/src/components/button/copy.ts +35 -28
  407. package/src/components/button/faces.ts +2 -4
  408. package/src/components/button/index.ts +3 -7
  409. package/src/components/button/kbd.ts +42 -99
  410. package/src/components/button/morph/index.ts +6 -0
  411. package/src/components/button/morph/save.ts +55 -0
  412. package/src/components/button/morph/template.ts +133 -0
  413. package/src/components/button/scss/index.scss +263 -119
  414. package/src/components/button/scss/variables.scss +180 -120
  415. package/src/components/button/sidebar.ts +7 -7
  416. package/src/components/button/split.ts +11 -13
  417. package/src/components/capslock/index.ts +11 -10
  418. package/src/components/capslock/scss/index.scss +24 -26
  419. package/src/components/capslock/scss/variables.scss +32 -14
  420. package/src/components/card/scss/index.scss +12 -36
  421. package/src/components/card/scss/variables.scss +33 -76
  422. package/src/components/cc/index.ts +46 -42
  423. package/src/components/cc/scss/index.scss +142 -155
  424. package/src/components/cc/scss/variables.scss +234 -44
  425. package/src/components/chat/index.ts +10 -0
  426. package/src/components/{chat-minimap → chat/minimap}/index.ts +74 -28
  427. package/src/components/chat/minimap/scss/index.scss +111 -0
  428. package/src/components/chat/minimap/scss/variables.scss +182 -0
  429. package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
  430. package/src/components/checkbox/group.ts +5 -5
  431. package/src/components/checkbox/index.ts +1 -0
  432. package/src/components/checkbox/options.ts +2 -3
  433. package/src/components/checkbox/scss/index.scss +33 -35
  434. package/src/components/checkbox/scss/variables.scss +102 -56
  435. package/src/components/clipboard/index.ts +4 -3
  436. package/src/components/clipboard/write.ts +2 -1
  437. package/src/components/color-picker/index.ts +131 -69
  438. package/src/components/color-picker/scss/index.scss +138 -221
  439. package/src/components/color-picker/scss/variables.scss +205 -73
  440. package/src/components/command/index.ts +5 -860
  441. package/src/components/command/palette.ts +865 -0
  442. package/src/components/command/scss/index.scss +77 -99
  443. package/src/components/command/scss/variables.scss +129 -50
  444. package/src/components/command/search.ts +62 -0
  445. package/src/components/container/scss/index.scss +2 -4
  446. package/src/components/container/scss/variables.scss +0 -2
  447. package/src/components/counter/index.ts +91 -85
  448. package/src/components/counter/scss/index.scss +33 -41
  449. package/src/components/counter/scss/variables.scss +41 -19
  450. package/src/components/dock/index.ts +514 -42
  451. package/src/components/dock/scss/index.scss +288 -73
  452. package/src/components/dock/scss/variables.scss +301 -39
  453. package/src/components/editor/code/features.ts +4 -6
  454. package/src/components/editor/code/field.ts +1 -1
  455. package/src/components/editor/code/find.ts +1 -2
  456. package/src/components/editor/code/folding.ts +1 -1
  457. package/src/components/editor/code/html.ts +17 -0
  458. package/src/components/editor/code/keymap.ts +0 -1
  459. package/src/components/editor/code/minimap.ts +7 -5
  460. package/src/components/editor/code/rows.ts +1 -14
  461. package/src/components/editor/code/scss/_editor.scss +22 -54
  462. package/src/components/editor/code/scss/_features.scss +28 -70
  463. package/src/components/editor/code/scss/_minimap.scss +29 -0
  464. package/src/components/editor/code/scss/_services.scss +19 -30
  465. package/src/components/editor/code/scss/index.scss +1 -2
  466. package/src/components/editor/code/scss/variables.scss +217 -56
  467. package/src/components/editor/code/search.ts +1 -1
  468. package/src/components/editor/code/services/completion.ts +1 -0
  469. package/src/components/editor/code/services/hover.ts +1 -0
  470. package/src/components/editor/code/services/index.ts +1 -1
  471. package/src/components/editor/code/services/model.ts +1 -1
  472. package/src/components/editor/code/services/session.ts +1 -4
  473. package/src/components/editor/code/syntax.ts +1 -1
  474. package/src/components/editor/code/view.ts +0 -1
  475. package/src/components/editor/diffs/merge.ts +3 -3
  476. package/src/components/editor/diffs/render.ts +2 -17
  477. package/src/components/editor/diffs/scss/_diffs.scss +41 -129
  478. package/src/components/editor/diffs/scss/_merge.scss +9 -41
  479. package/src/components/editor/diffs/scss/index.scss +1 -1
  480. package/src/components/editor/diffs/scss/variables.scss +141 -13
  481. package/src/components/editor/diffs/view.ts +4 -5
  482. package/src/components/editor/markdown/editing.ts +1 -1
  483. package/src/components/editor/markdown/erase.ts +3 -3
  484. package/src/components/editor/markdown/format.ts +517 -0
  485. package/src/components/editor/markdown/html.ts +1 -1
  486. package/src/components/editor/markdown/index.ts +3 -67
  487. package/src/components/editor/markdown/inline.ts +9 -6
  488. package/src/components/editor/markdown/layout.ts +1 -1
  489. package/src/components/editor/markdown/model.ts +2 -17
  490. package/src/components/editor/markdown/render.ts +6 -8
  491. package/src/components/editor/markdown/scss/index.scss +157 -100
  492. package/src/components/editor/markdown/scss/variables.scss +241 -36
  493. package/src/components/editor/markdown/template.ts +69 -0
  494. package/src/components/editor/markdown/toolbar.ts +628 -0
  495. package/src/components/editor/markdown/view.ts +121 -10
  496. package/src/components/editor/tree/drag.ts +19 -15
  497. package/src/components/editor/tree/find.ts +5 -4
  498. package/src/components/editor/tree/icons.ts +1 -1
  499. package/src/components/editor/tree/index.ts +3 -3434
  500. package/src/components/editor/tree/scss/index.scss +261 -294
  501. package/src/components/editor/tree/scss/variables.scss +263 -65
  502. package/src/components/editor/tree/sticky.ts +1 -1
  503. package/src/components/editor/tree/template.ts +3436 -0
  504. package/src/components/editor/viewer/index.ts +3 -318
  505. package/src/components/editor/viewer/model.ts +1 -14
  506. package/src/components/editor/viewer/scss/_viewer.scss +31 -97
  507. package/src/components/editor/viewer/scss/variables.scss +56 -16
  508. package/src/components/editor/viewer/template.ts +323 -0
  509. package/src/components/editor/workspace/index.ts +4 -1480
  510. package/src/components/editor/workspace/model.ts +225 -185
  511. package/src/components/editor/workspace/navigate.ts +3 -6
  512. package/src/components/editor/workspace/scss/_keybindings.scss +165 -0
  513. package/src/components/editor/workspace/scss/_status.scss +65 -0
  514. package/src/components/editor/workspace/scss/_tabs.scss +60 -0
  515. package/src/components/editor/workspace/scss/index.scss +105 -330
  516. package/src/components/editor/workspace/scss/variables.scss +431 -0
  517. package/src/components/editor/workspace/session.ts +96 -53
  518. package/src/components/editor/workspace/shortcuts.ts +0 -2
  519. package/src/components/editor/workspace/status.ts +110 -80
  520. package/src/components/editor/workspace/statusbar.ts +38 -35
  521. package/src/components/editor/workspace/strip.ts +6 -5
  522. package/src/components/editor/workspace/tabs.ts +115 -15
  523. package/src/components/editor/workspace/template.ts +1477 -0
  524. package/src/components/error/index.ts +36 -15
  525. package/src/components/error/scss/index.scss +35 -64
  526. package/src/components/error/scss/variables.scss +29 -9
  527. package/src/components/filter/index.ts +147 -104
  528. package/src/components/filter/scss/index.scss +9 -2
  529. package/src/components/filter/scss/variables.scss +6 -6
  530. package/src/components/form/action.ts +1 -1
  531. package/src/components/form/index.ts +4 -1
  532. package/src/components/frame/scss/index.scss +37 -44
  533. package/src/components/frame/scss/variables.scss +31 -19
  534. package/src/components/grid/scss/index.scss +3 -2
  535. package/src/components/grid/scss/variables.scss +1 -1
  536. package/src/components/group/index.ts +24 -0
  537. package/src/components/group/scss/index.scss +6 -0
  538. package/src/components/group/scss/variables.scss +4 -0
  539. package/src/components/heatmap/index.ts +16 -46
  540. package/src/components/heatmap/scss/index.scss +48 -49
  541. package/src/components/heatmap/scss/variables.scss +74 -51
  542. package/src/components/highlight/index.ts +133 -120
  543. package/src/components/highlight/scss/index.scss +43 -45
  544. package/src/components/highlight/scss/variables.scss +70 -31
  545. package/src/components/icon/index.ts +7 -9
  546. package/src/components/icon/scss/index.scss +9 -2
  547. package/src/components/icon/scss/variables.scss +2 -0
  548. package/src/components/image/index.ts +4 -2
  549. package/src/components/image/lazyload.ts +1 -1
  550. package/src/components/image/scss/index.scss +18 -25
  551. package/src/components/image/scss/variables.scss +31 -12
  552. package/src/components/index.ts +6 -7
  553. package/src/components/inline-edit/index.ts +9 -7
  554. package/src/components/inline-edit/rich.ts +88 -1401
  555. package/src/components/inline-edit/scss/index.scss +125 -381
  556. package/src/components/inline-edit/scss/variables.scss +153 -92
  557. package/src/components/inline-edit/status.ts +8 -4
  558. package/src/components/input/field.ts +2 -2
  559. package/src/components/input/scrub.ts +1 -5
  560. package/src/components/input/scss/_field.scss +1 -1
  561. package/src/components/input/scss/_scrub.scss +21 -25
  562. package/src/components/input/scss/_tag.scss +28 -46
  563. package/src/components/input/scss/index.scss +1 -2
  564. package/src/components/input/scss/variables.scss +160 -77
  565. package/src/components/input/tag.ts +65 -56
  566. package/src/components/json/download.ts +2 -1
  567. package/src/components/json/index.ts +4 -1
  568. package/src/components/link/scss/index.scss +1 -5
  569. package/src/components/link/scss/variables.scss +5 -1
  570. package/src/components/loading/index.ts +1 -1
  571. package/src/components/loading/scss/index.scss +7 -27
  572. package/src/components/loading/scss/variables.scss +7 -10
  573. package/src/components/marquee/index.ts +36 -31
  574. package/src/components/marquee/scss/index.scss +37 -29
  575. package/src/components/marquee/scss/variables.scss +35 -24
  576. package/src/components/marquee/velocity.ts +7 -3
  577. package/src/components/metric/flash.ts +3 -2
  578. package/src/components/metric/index.ts +5 -13
  579. package/src/components/metric/scss/_flash.scss +129 -144
  580. package/src/components/metric/scss/index.scss +38 -48
  581. package/src/components/metric/scss/variables.scss +196 -102
  582. package/src/components/nav/index.ts +1 -1
  583. package/src/components/nav/scss/index.scss +47 -49
  584. package/src/components/nav/scss/variables.scss +59 -64
  585. package/src/components/nav/spy.ts +15 -6
  586. package/src/components/nav/toc.ts +11 -31
  587. package/src/components/nav/tree.ts +77 -47
  588. package/src/components/notification/index.ts +115 -89
  589. package/src/components/notification/scss/index.scss +91 -75
  590. package/src/components/notification/scss/variables.scss +55 -38
  591. package/src/components/overlay/index.ts +211 -139
  592. package/src/components/overlay/popup.ts +89 -52
  593. package/src/components/overlay/scss/index.scss +152 -189
  594. package/src/components/overlay/scss/variables.scss +54 -23
  595. package/src/components/page/scss/variables.scss +1 -1
  596. package/src/components/pagination/cards.ts +1 -1
  597. package/src/components/pagination/index.ts +1 -7
  598. package/src/components/pagination/scss/index.scss +191 -7
  599. package/src/components/pagination/scss/variables.scss +128 -40
  600. package/src/components/panels/dnd.ts +190 -0
  601. package/src/components/panels/group.ts +429 -0
  602. package/src/components/panels/index.ts +676 -0
  603. package/src/components/panels/model.ts +675 -0
  604. package/src/components/panels/resize.ts +157 -0
  605. package/src/components/panels/scss/index.scss +379 -0
  606. package/src/components/panels/scss/variables.scss +197 -0
  607. package/src/components/panels/subtree.ts +65 -0
  608. package/src/components/preview/buttons.ts +48 -0
  609. package/src/components/preview/code.ts +28 -0
  610. package/src/components/preview/header.ts +23 -0
  611. package/src/components/preview/index.ts +149 -0
  612. package/src/components/preview/scss/index.scss +158 -0
  613. package/src/components/preview/scss/variables.scss +149 -0
  614. package/src/components/preview/source.ts +73 -0
  615. package/src/components/preview/stage.ts +33 -0
  616. package/src/components/progress/scss/index.scss +120 -15
  617. package/src/components/progress/scss/variables.scss +144 -41
  618. package/src/components/progress/text.ts +11 -9
  619. package/src/components/radio/index.ts +2 -4
  620. package/src/components/range/filter.ts +16 -22
  621. package/src/components/range/index.ts +2 -9
  622. package/src/components/range/scss/_filter.scss +300 -325
  623. package/src/components/range/scss/_slider.scss +32 -110
  624. package/src/components/range/scss/_vertical.scss +8 -20
  625. package/src/components/range/scss/index.scss +1 -4
  626. package/src/components/range/scss/variables.scss +361 -71
  627. package/src/components/relative-time/index.ts +22 -28
  628. package/src/components/relative-time/scss/index.scss +17 -21
  629. package/src/components/relative-time/scss/variables.scss +51 -30
  630. package/src/components/root/scss/index.scss +14 -20
  631. package/src/components/root/scss/variables.scss +24 -22
  632. package/src/components/select/expand.ts +272 -0
  633. package/src/components/select/index.ts +155 -110
  634. package/src/components/select/scss/index.scss +99 -54
  635. package/src/components/select/scss/variables.scss +141 -19
  636. package/src/components/shell/index.ts +344 -0
  637. package/src/components/shell/scss/index.scss +201 -0
  638. package/src/components/shell/scss/variables.scss +89 -0
  639. package/src/components/shortcut-recorder/index.ts +20 -20
  640. package/src/components/shortcut-recorder/scss/index.scss +78 -58
  641. package/src/components/shortcut-recorder/scss/variables.scss +48 -25
  642. package/src/components/sortable/index.ts +25 -27
  643. package/src/components/sortable/scss/index.scss +59 -63
  644. package/src/components/sortable/scss/variables.scss +81 -52
  645. package/src/components/story/index.ts +111 -83
  646. package/src/components/story/scss/index.scss +26 -107
  647. package/src/components/story/scss/variables.scss +52 -22
  648. package/src/components/surface-field/engine.ts +71 -72
  649. package/src/components/surface-field/index.ts +32 -37
  650. package/src/components/surface-field/scss/index.scss +36 -52
  651. package/src/components/surface-field/scss/variables.scss +89 -23
  652. package/src/components/surface-field/surface.ts +4 -3
  653. package/src/components/switch/index.ts +2 -4
  654. package/src/components/tasklist/index.ts +9 -8
  655. package/src/components/tasklist/scss/index.scss +28 -32
  656. package/src/components/tasklist/scss/variables.scss +31 -32
  657. package/src/components/textarea/index.ts +50 -91
  658. package/src/components/textarea/scss/index.scss +28 -21
  659. package/src/components/textarea/scss/variables.scss +17 -2
  660. package/src/components/theme/cards.ts +19 -0
  661. package/src/components/theme/index.ts +68 -19
  662. package/src/components/theme/reveal.ts +190 -0
  663. package/src/components/theme/scss/index.scss +122 -0
  664. package/src/components/theme/scss/variables.scss +155 -16
  665. package/src/components/theme/shared.ts +57 -0
  666. package/src/components/theme/swatches.ts +15 -0
  667. package/src/components/theme/toggle.ts +47 -0
  668. package/src/components/toast/index.ts +16 -17
  669. package/src/components/toast/scss/index.scss +193 -155
  670. package/src/components/toast/scss/variables.scss +195 -53
  671. package/src/components/tooltip/menu.ts +194 -117
  672. package/src/components/tooltip/onclick.ts +16 -21
  673. package/src/components/tooltip/onhover.ts +5 -8
  674. package/src/components/tooltip/scss/index.scss +561 -85
  675. package/src/components/tooltip/scss/variables.scss +243 -72
  676. package/src/components/tooltip/shared.ts +129 -85
  677. package/src/components/tooltip/utilities.ts +75 -24
  678. package/src/components/typewriter/index.ts +7 -10
  679. package/src/components/typewriter/rotate.ts +26 -31
  680. package/src/components/typewriter/scss/index.scss +133 -3
  681. package/src/components/typewriter/scss/variables.scss +56 -44
  682. package/src/components/uptime/index.ts +13 -19
  683. package/src/components/uptime/scss/index.scss +99 -126
  684. package/src/components/uptime/scss/variables.scss +101 -55
  685. package/src/components/usage-meter/index.ts +1 -1
  686. package/src/components/usage-meter/scss/index.scss +19 -22
  687. package/src/components/usage-meter/scss/variables.scss +80 -36
  688. package/src/css-utilities/absolute.scss +54 -52
  689. package/src/css-utilities/background.scss +29 -23
  690. package/src/css-utilities/border.scss +24 -21
  691. package/src/css-utilities/box-shadow.scss +33 -21
  692. package/src/css-utilities/color.scss +34 -22
  693. package/src/css-utilities/disabled.scss +12 -0
  694. package/src/css-utilities/flex.scss +55 -53
  695. package/src/css-utilities/font/geist/index.scss +2 -1
  696. package/src/css-utilities/font/montserrat/index.scss +1 -1
  697. package/src/css-utilities/group.scss +6 -0
  698. package/src/css-utilities/hidden.scss +22 -20
  699. package/src/css-utilities/icon.scss +33 -30
  700. package/src/css-utilities/layer.scss +12 -11
  701. package/src/css-utilities/reset.scss +27 -16
  702. package/src/css-utilities/skeleton.scss +4 -1
  703. package/src/css-utilities/surface.scss +217 -150
  704. package/src/css-utilities/text.scss +115 -115
  705. package/src/modifiers/background/scss/index.scss +1 -0
  706. package/src/modifiers/background/scss/variables.scss +22 -0
  707. package/src/modifiers/border/scss/index.scss +1 -0
  708. package/src/modifiers/border/scss/variables.scss +19 -0
  709. package/src/modifiers/box-shadow/scss/index.scss +1 -0
  710. package/src/modifiers/box-shadow/scss/variables.scss +12 -0
  711. package/src/modifiers/color/scss/index.scss +1 -0
  712. package/src/modifiers/color/scss/variables.scss +10 -0
  713. package/src/modifiers/disabled/scss/index.scss +5 -0
  714. package/src/modifiers/glass/index.ts +2 -1
  715. package/src/modifiers/glass/scss/index.scss +8 -11
  716. package/src/modifiers/glass/scss/variables.scss +1 -0
  717. package/src/modifiers/scrollbar/index.ts +94 -113
  718. package/src/modifiers/scrollbar/scss/index.scss +23 -4
  719. package/src/modifiers/scrollbar/scss/variables.scss +6 -5
  720. package/src/normalize/scss/index.scss +1 -0
  721. package/src/shared/anchor.ts +1 -1
  722. package/src/shared/animation.ts +9 -7
  723. package/src/shared/dispatch.ts +42 -0
  724. package/src/shared/drag.ts +10 -4
  725. package/src/shared/press.ts +7 -5
  726. package/src/shared/resize.ts +4 -35
  727. package/src/shared/scss/list.scss +1 -2
  728. package/src/shared/transition.ts +2 -2
  729. package/src/shared/visible.ts +3 -35
  730. package/src/tokens/scss/color.scss +50 -38
  731. package/src/tokens/scss/focus.scss +5 -0
  732. package/src/tokens/scss/font-size.scss +1 -2
  733. package/src/tokens/scss/index.scss +1 -1
  734. package/src/tokens/scss/scale.scss +4 -8
  735. package/src/tokens/scss/size.scss +3 -3
  736. package/src/tokens/scss/spacer.scss +1 -1
  737. package/src/tokens/scss/state.scss +25 -29
  738. package/storage/svg/code.svg +1 -1
  739. package/storage/svg/collapse.svg +1 -0
  740. package/storage/svg/grid.svg +1 -0
  741. package/storage/svg/stack.svg +1 -0
  742. package/vite-env.d.ts +1 -1
  743. package/vite.config.ts +10 -8
  744. package/build/components/banner/scss/index.scss +0 -2
  745. package/build/components/button/fan.d.ts +0 -24
  746. package/build/components/button/fan.js +0 -118
  747. package/build/components/button/hold.d.ts +0 -31
  748. package/build/components/button/hold.js +0 -115
  749. package/build/components/button/icons.d.ts +0 -6
  750. package/build/components/button/icons.js +0 -35
  751. package/build/components/button/loading.d.ts +0 -22
  752. package/build/components/button/loading.js +0 -60
  753. package/build/components/button/morph.d.ts +0 -22
  754. package/build/components/button/morph.js +0 -115
  755. package/build/components/card/expand.d.ts +0 -22
  756. package/build/components/card/expand.js +0 -118
  757. package/build/components/card/index.d.ts +0 -6
  758. package/build/components/card/index.js +0 -4
  759. package/build/components/chat-minimap/index.d.ts +0 -28
  760. package/build/components/chat-minimap/index.js +0 -223
  761. package/build/components/chat-minimap/scss/index.scss +0 -2
  762. package/build/components/clipboard/copy.d.ts +0 -27
  763. package/build/components/clipboard/copy.js +0 -48
  764. package/build/components/copy/index.d.ts +0 -23
  765. package/build/components/copy/index.js +0 -61
  766. package/build/components/copy/scss/index.scss +0 -2
  767. package/build/components/datalist/index.d.ts +0 -42
  768. package/build/components/datalist/index.js +0 -186
  769. package/build/components/datalist/scss/index.scss +0 -2
  770. package/build/components/highlight/easing.d.ts +0 -2
  771. package/build/components/highlight/easing.js +0 -19
  772. package/build/components/inline-edit/format.d.ts +0 -29
  773. package/build/components/inline-edit/format.js +0 -112
  774. package/build/components/inline-edit/history.d.ts +0 -14
  775. package/build/components/inline-edit/history.js +0 -40
  776. package/build/components/inline-edit/markdown.d.ts +0 -7
  777. package/build/components/inline-edit/markdown.js +0 -314
  778. package/build/components/inline-edit/model.d.ts +0 -61
  779. package/build/components/inline-edit/model.js +0 -192
  780. package/build/components/inline-edit/selection.d.ts +0 -7
  781. package/build/components/inline-edit/selection.js +0 -114
  782. package/build/components/inline-edit/utilities.d.ts +0 -4
  783. package/build/components/inline-edit/utilities.js +0 -12
  784. package/build/components/pull-to-refresh/index.d.ts +0 -18
  785. package/build/components/pull-to-refresh/index.js +0 -222
  786. package/build/components/pull-to-refresh/scss/index.scss +0 -2
  787. package/build/components/sticky-header/index.d.ts +0 -2166
  788. package/build/components/sticky-header/index.js +0 -58
  789. package/build/components/sticky-header/scss/index.scss +0 -2
  790. package/build/components/theme-picker/index.d.ts +0 -52
  791. package/build/components/theme-picker/index.js +0 -167
  792. package/build/components/theme-picker/scss/index.scss +0 -2
  793. package/src/components/banner/scss/index.scss +0 -37
  794. package/src/components/banner/scss/variables.scss +0 -16
  795. package/src/components/button/fan.ts +0 -170
  796. package/src/components/button/hold.ts +0 -154
  797. package/src/components/button/icons.ts +0 -21
  798. package/src/components/button/loading.ts +0 -77
  799. package/src/components/button/morph.ts +0 -153
  800. package/src/components/button/scss/_fan.scss +0 -121
  801. package/src/components/button/scss/_kbd.scss +0 -11
  802. package/src/components/button/scss/_morph.scss +0 -107
  803. package/src/components/button/scss/_sidebar.scss +0 -61
  804. package/src/components/button/scss/_split.scss +0 -53
  805. package/src/components/card/expand.ts +0 -141
  806. package/src/components/card/index.ts +0 -8
  807. package/src/components/card/scss/_expand.scss +0 -234
  808. package/src/components/chat-minimap/scss/index.scss +0 -148
  809. package/src/components/chat-minimap/scss/variables.scss +0 -97
  810. package/src/components/clipboard/copy.ts +0 -49
  811. package/src/components/copy/index.ts +0 -69
  812. package/src/components/copy/scss/index.scss +0 -52
  813. package/src/components/copy/scss/variables.scss +0 -19
  814. package/src/components/datalist/index.ts +0 -256
  815. package/src/components/datalist/scss/index.scss +0 -104
  816. package/src/components/datalist/scss/variables.scss +0 -33
  817. package/src/components/editor/workspace/scss/keybindings.scss +0 -190
  818. package/src/components/editor/workspace/scss/status.scss +0 -122
  819. package/src/components/editor/workspace/scss/tabs.scss +0 -56
  820. package/src/components/highlight/easing.ts +0 -33
  821. package/src/components/inline-edit/format.ts +0 -183
  822. package/src/components/inline-edit/history.ts +0 -71
  823. package/src/components/inline-edit/markdown.ts +0 -485
  824. package/src/components/inline-edit/model.ts +0 -366
  825. package/src/components/inline-edit/selection.ts +0 -188
  826. package/src/components/inline-edit/utilities.ts +0 -18
  827. package/src/components/pagination/scss/_arrows.scss +0 -69
  828. package/src/components/pagination/scss/_cards.scss +0 -121
  829. package/src/components/pagination/scss/_dots.scss +0 -64
  830. package/src/components/progress/scss/_text.scss +0 -135
  831. package/src/components/pull-to-refresh/index.ts +0 -316
  832. package/src/components/pull-to-refresh/scss/index.scss +0 -128
  833. package/src/components/pull-to-refresh/scss/variables.scss +0 -38
  834. package/src/components/sticky-header/index.ts +0 -78
  835. package/src/components/sticky-header/scss/index.scss +0 -140
  836. package/src/components/sticky-header/scss/variables.scss +0 -46
  837. package/src/components/theme-picker/index.ts +0 -231
  838. package/src/components/theme-picker/scss/index.scss +0 -264
  839. package/src/components/tooltip/scss/_center.scss +0 -9
  840. package/src/components/tooltip/scss/_east.scss +0 -33
  841. package/src/components/tooltip/scss/_menu.scss +0 -367
  842. package/src/components/tooltip/scss/_north.scss +0 -33
  843. package/src/components/tooltip/scss/_shared.scss +0 -109
  844. package/src/components/tooltip/scss/_south.scss +0 -33
  845. package/src/components/tooltip/scss/_west.scss +0 -33
  846. package/src/components/typewriter/scss/_caret.scss +0 -34
  847. package/src/components/typewriter/scss/_retype.scss +0 -68
  848. package/src/components/typewriter/scss/_rotate.scss +0 -29
  849. package/src/tokens/scss/transition.scss +0 -21
  850. /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
  851. /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
package/README.md CHANGED
@@ -57,36 +57,32 @@ html`
57
57
  | `checkbox` | Checkbox with label; `checkbox.group` builds a checklist with a select-all header (mixed state), optional counter, and Shift-click ranges | `checkbox.group` |
58
58
  | `radio` | Radio button group | - |
59
59
  | `range` | Range slider; add `class: 'range--slider'` to `range` or `range.filter` for the compact slider appearance (replaces the standalone `slider` component); `orientation: 'vertical'` supports vertical single and dual thumbs, with height set by `--vertical-size` (default `176px`); `range.filter` is a range filter with rolling-digit values, a Clear button, a ghost preview of where a click would stretch the selection, and scale ticks; a number `value` gives one thumb, a pair gives two that stop at each other; `fields` adds editable min/max `input` fields, `disabled`; `state.low`/`state.high`, `format`, `prefix`, `step`, `ticks` | `range.filter` |
60
- | `datalist` | Inertial wheel picker (scroll-snapped listbox) | - |
61
- | `select` | Dropdown with custom options; `select.menu` is a tooltip-powered macOS-style listbox opening with the selected option over the trigger, with typeahead and hover scrolling. Its surface, checks, and animations are reusable on tooltips with `--select-menu` | `select.menu` |
60
+ | `select` | Dropdown with custom options; `select.menu` is a tooltip-powered macOS-style listbox opening with the selected option over the trigger, with typeahead and hover scrolling. Its surface, checks, and animations are reusable on tooltips with `--select-menu`. `select.expand` is a compact single choice: a button showing the current option that morphs into a row of every option over itself (`openOn: 'click' \| 'hover'`) | `select.menu`, `select.expand` |
62
61
  | `switch` | Toggle switch; `switch.group` builds the same group as `checkbox.group` with switches, the select-all knob resting midway when mixed | `switch.group` |
63
62
  | `tasklist` | Checklist that strikes through checked tasks and moves them below the open ones; `ordered` keeps both groups in task order, `sortable` lets rows be dragged within their group | `tasklist.checkbox`, `tasklist.content`, `tasklist.description`, `tasklist.item`, `tasklist.label`, `tasklist.row` |
64
63
  | `form` | Form wrapper | `form.action`, `form.input` |
65
64
  | `cc` | Payment card form (`input` fields) with a live card preview that flips for the CVC, brand detection, caret-safe formatting and Luhn/expiry validation; `onvalid` receives brand, last 4, expiry and name | `cc.field`, `cc.submit` |
66
- | `colorPicker` | Saturation pad, hue/opacity sliders (`range`), hex field (`input`) with a `copy` button, and an animated recent-colors row (hidden while empty; `recent: false` leaves it out entirely); `value` is required, no surface of its own, so place it in a `card` | `colorPicker.swatch` |
65
+ | `colorPicker` | Saturation pad, hue/opacity sliders (`range`), hex field (`input`) with a `button.copy`, and an animated recent-colors row (hidden while empty; `recent: false` leaves it out entirely); `value` is required, no surface of its own, so place it in a `card` | `colorPicker.swatch` |
67
66
  | `inlineEdit` | Click-to-edit text that swaps in an `input` (or `textarea` with `multiline`) without moving a glyph; Enter/blur saves, Escape cancels, `onsave` fires. `inlineEdit.rich` edits markdown in place as a controlled editor: the text is a document of blocks and marks rendered by the template, every input (typing, deleting, Enter, formatting, paste, drop, an input method's composition) changes that document rather than the DOM, and it keeps its own undo/redo (Mod+Z, Mod+Shift+Z/Mod+Y). `features` whitelists what each field allows (bold, italic, strike, code, highlight, link, heading, quote, codeblock, bullet, ordered, task, clear, copy), and only those appear in its selection toolbar, shortcuts, pastes and saved markdown. `status: true` (or a `{ phase, savedAt }` object to read or drive it) shows the save status under either field: unsaved while the edit differs, saving while a promise returned by `onsave` is pending, then saved, rolling to "Saved 3 min ago" | `inlineEdit.display`, `inlineEdit.field`, `inlineEdit.status`, `inlineEdit.rich.editor`, `inlineEdit.rich.status`, `inlineEdit.rich.toolbar`, `inline-edit--seamless` |
68
67
 
69
68
  ### Interactive
70
69
  | Component | Description | Variants |
71
70
  |-----------|-------------|----------|
72
- | `button` | Standard button; `button.hold` confirms on a press-and-hold, inverting the whole button as it fills, or only the label with `button--hold-text` (`--fill-color`); `button.morph` is an async save (`onsave`) that morphs into a spinner circle, confirms with a check and shakes on failure, with `--morph-background` for its colour | `button.fan`, `button.hold`, `button.morph`, `button--hold-text` |
73
- | `tooltip` | Popup content; `tooltip.onhover` also opens on keyboard focus and closes on Escape, and `tooltip.onhover.trigger({ delay, state })` is the same behaviour to spread on your own `.tooltip` element; `delay: { open?, close? }` (ms, on `tooltip.onhover` and `tooltip.shared`; each left out is instant) holds the pointer before opening and after leaving, and for 500ms after a delayed tooltip closes the next opens at once, without its entrance; `tooltip.menu` is a keyboard menu (arrows, Home/End, Escape returns focus, Tab closes) that closes once an option is chosen; `tooltip.nestedMenu({ animate, items, onnavigate, state })` is a drill-down menu whose `items` nest to any depth: a branch's panel grows out of its row over the dimmed parent, and its header or the parent's scrim goes back; arrows/Home/End move, Right/Left drill and return, Escape goes back a level then closes (`animate: false` skips the motion, `tooltip.nestedMenu.trigger` styles the button); `tooltip.shared({ delay, direction, dismiss, interactive, keep, state })` is one tooltip for any number of triggers: spread `tip.bind(content)` on a trigger (a string, or a function returning a template, rendered on every open unless `keep`), or `tip.delegate({ content, edge, selector })` on a container to make every matching descendant a trigger (default `[data-tooltip]`, its value the content; `edge` lines the tooltip up past the container's edge), and place `tip.render(attributes)` once; it opens in the top layer beside the trigger, flips when out of room, and glides between triggers while its content slides in the direction of travel; `interactive` makes it a card the pointer can enter, toggled by taps and keys, with Tab carried into it; `keep` mounts each bound trigger's content on its first open and keeps it for reopening until that trigger unmounts; `dismiss` is a selector whose clicks inside close it (`'a[href]'` for navigation); `state.active` is whether it is open and `state.index` which bound trigger, numbered in `bind()` order (-1 for none), and setting it opens that trigger | `tooltip.context`, `tooltip.menu`, `tooltip.nestedMenu`, `tooltip.onclick`, `tooltip.onhover`, `tooltip.onhover.trigger`, `tooltip.shared` |
71
+ | `button` | Standard button, filled by `button--black`, `button--primary` (the theme's ink, lettered in the page color), `button--surface` (its raised surface), `button--surface-primary` or `button--white`; `button.copy` is an icon button copying `value` (a string or a function read on click) whose copy icon turns into a check that draws in, then back after `timeout` ms (default `3000`), with `label`, `success` and `error` as its accessible name per state; `button.faces(status, faces)` stacks keyed faces in one grid cell and shows the one whose `key` matches `status()`; `button.morph` runs an async `onaction` through idle, loading, success and error, carrying the status as a `button--morph-{status}` class (also readable through a passed `state`), collapsing to a circle while `compact(status)` holds (default: loading and success), shaking on error and announcing `announce[status]`; its content is yours, layered with `button-morph-text` (mark the shown one `--active`) and `button-morph-icon--loading` / `--success`; `button.morph.save` is the ready-made save (`onsave`, `label`, `retryLabel`) that morphs into a spinner circle and confirms with a check, coloured by its `--background-default` | `button.copy`, `button.faces`, `button.morph`, `button.morph.save`, `button--black`, `button--primary`, `button--surface`, `button--surface-primary`, `button--white` |
72
+ | `tooltip` | Popup content; `tooltip.onhover` also opens on keyboard focus and closes on Escape, and `tooltip.onhover.trigger({ delay, state })` is the same behaviour to spread on your own `.tooltip` element; `delay: { open?, close? }` (ms, on `tooltip.onhover` and `tooltip.shared`; each left out is instant) holds the pointer before opening and after leaving, and for 500ms after a delayed tooltip closes the next opens at once, without its entrance; `tooltip.menu` is a keyboard menu (arrows, Home/End, Escape returns focus, Tab closes) that opens in the top layer, above every stacking context around it, and closes once an option is chosen, `highlight` (default `false`; `true` or the highlight's own attributes) glides a layer between its rows on hover and keyboard focus in place of each item's own fill, its panels a surface whose item hover and pressed fills and highlight are surface primary, `tooltip-menu--surface` restoring that fill on the menu or any ancestor (such as a `button.split`); `tooltip.nestedMenu({ animate, items, onnavigate, state })` is a drill-down menu whose `items` nest to any depth: a branch's panel grows out of its row over the dimmed parent, and its header or the parent's scrim goes back; arrows/Home/End move, Right/Left drill and return, Escape goes back a level then closes (`animate: false` skips the motion, `tooltip.nestedMenu.trigger` styles the button); `tooltip.shared({ delay, direction, dismiss, interactive, keep, state, ...attributes })` is one tooltip for any number of triggers: spread `tip.bind(content)` on a trigger (a string, or a function returning a template, rendered on every open unless `keep`), or `tip.delegate({ content, edge, selector })` on a container to make every matching descendant a trigger (default `[data-tooltip]`, its value the content; `edge` lines the tooltip up past the container's edge), and place `tip.render()` once, carrying the remaining attributes; it opens in the top layer beside the trigger, flips when out of room, and glides between triggers while its content slides in the direction of travel; `interactive` makes it a card the pointer can enter, toggled by taps and keys, with Tab carried into it; `keep` mounts each bound trigger's content on its first open and keeps it for reopening until that trigger unmounts; `dismiss` is a selector whose clicks inside close it (`'a[href]'` for navigation); `state.active` is whether it is open and `state.index` which bound trigger, numbered in `bind()` order (-1 for none), and setting it opens that trigger | `tooltip.context`, `tooltip.menu`, `tooltip.nestedMenu`, `tooltip.onclick`, `tooltip.onhover`, `tooltip.onhover.trigger`, `tooltip.shared`, `tooltip-menu--surface` |
74
73
  | `accordion` | Collapsible sections driven by `state.active`; `group` (from `accordion.group()`) keeps at most one member open, closing the rest when one opens, and `accordion.group({ required: true })` keeps exactly one open, reopening a member closed while nothing else is. Several opened at once leave the last to join or open; a required group opens its first member when none starts open. Members join while mounted | `accordion.group` |
75
- | `clipboard` | Copy to clipboard | `clipboard.copy`, `clipboard.write` |
76
- | `copy` | Icon button copying `value` (a string or a function read on click); the copy icon turns into a check that draws in, then back after `timeout` ms (default `3000`); `label`, `success` and `error` set its accessible name per state | - |
74
+ | `clipboard` | `clipboard.write(value)` copies text, resolving `true` once it lands and `false` if the browser refuses | `clipboard.write` |
77
75
  | `command` | ⌘K/Ctrl+K command palette on `overlay` + `input`: substring-then-subsequence matching with highlighted runs, grouped results, arrow/Enter keys, `onrun`; `tabs` adds a row of tabs under the search, marked by `highlight`, whose views are `frame--swap`s, drifting in from their side, and cycle with Tab/Shift+Tab (All leads with recent commands, persisted through any `store` implementing `get`/`set`, then lists every command; each command group gets its own tab; a Shortcuts tab lists `shortcuts`); setting `state.tab` (`'all'`, `'shortcuts'` or a group name) switches views and clears the search. `render(groups)` supplies custom result markup: each item exposes its `label`, highlighted `content`, command `id`, and `attributes` to spread onto the option element so selection and keyboard navigation keep working. Icons are sprite ids; `.command-trigger` also styles standalone search buttons | `command.dialog` (e.g. `overlay--blur`), `command.input`, `command.option`, `command.trigger`, `command--centered` |
78
76
  | `editor` | Editor family under one namespace. `editor.code` is a source editor on a persistent native textarea editing an `EditorDocument` that keeps its own undo history: syntax colors (TypeScript/TSX, JavaScript, CSS/SCSS, HTML, JSON, Python, Markdown), line numbers, multiple and rectangular selections, find/replace, go to line, folding, wrap, visible whitespace and a minimap; `options.services` adds completion, hover and diagnostics from a language-server `transport` (or completes from the document's own words); `editor.markdown` renders Markdown in place and edits one block at a time; `editor.code` adds sticky scroll, color swatches, links, unicode warnings, rulers, a git gutter (`baseline`), keybinding overrides (`keybindings`, exported `commands`) and merge-conflict lenses; `editor.tree` is the file tree, with drops from the desktop (`operations.import`), dragging files out (`export`) and next/previous change or problem; `editor.diffs` is a split or unified diff viewer and `editor.diffs.merge` a three-way merge editor; `editor.workspace` combines them with an explorer, tabs, quick open and file operations over a host you supply; `editor.viewer` shows source read-only with syntax colors, line numbers, folding, wrap, visible whitespace, a minimap and an optional copy button, without the editor (import `@esportsplus/ui/editor/viewer` directly to leave the rest of the family out of the bundle) | `editor.code`, `editor.diffs`, `editor.diffs.merge`, `editor.markdown`, `editor.tree`, `editor.viewer`, `editor.workspace` |
79
77
  | `alert` | Notifications | error, info, success types |
80
- | `chatMinimap` | Rail of lines mapping a conversation, one per turn: the hovered line swells its two neighbours either side, one gliding `tooltip.shared` card previews each turn's `title` and `description`, previous/next buttons step through the thread, and `state` (`start`/`end`) lights the turns in view. `turns` may be a `ReactiveArray` so the rail grows with the chat; `chatMinimap.spy({ state, turns })` drives `state` from an `IntersectionObserver` on the thread and its `scrollTo` is the `onnavigate` | `chatMinimap.item`, `side: 'left'` |
81
- | `dock` | macOS-style `card` shelf whose icons swell toward the cursor on a spring, with delayed `tooltip` labels (`group` shares one gliding `tooltip.shared` label) and a hop-and-squash launch that lights a running dot (per-item `state.running`, `onlaunch`) | `dock.button`, `dock--square` |
82
- | `card.expand` | List of `card--expand` cards that each morph into their own `card` `overlay` and fly back into their slot through a view transition (a plain `overlay` fade where unsupported, a cross-fade under reduced motion); `state.open` is two-way | `card.expand.trigger` |
78
+ | `chatMinimap` | Rail of lines mapping a conversation, one per turn: the hovered line swells its two neighbours either side, one gliding `tooltip.shared` card previews each turn's `title` and `description`, previous/next buttons step through the thread, and `state` (`start`/`end`) lights the turns in view. `turns` may be a `ReactiveArray` so the rail grows with the chat; `chatMinimap.spy({ state, turns })` drives `state` from an `IntersectionObserver` on the thread and its `scrollTo` is the `onnavigate` | `chatMinimap.card`, `chatMinimap.description`, `chatMinimap.item`, `chatMinimap.items`, `chatMinimap.label`, `chatMinimap.line`, `chatMinimap.nav`, `chatMinimap.preview`, `chatMinimap.title`, `side: 'left'` |
79
+ | `dock` | macOS-style shelf, unpainted so it is themed where it is placed, whose icons swell toward the cursor on a spring, with one delayed `tooltip.shared` label gliding between its items, items showing an `icon` (a sprite id or a function rendering it) or a `thumbnail` image covering the button, each optionally shaped by its own `modifier` (`plain` for the icon alone, `square`, `squircle`), sortable by drag, with `arrows` paging through whole icons once they outgrow the room the dock has; `direction` (`n`, `s`, `e`, `w`) sets the side the launcher and labels open toward and the way icons swell, east and west standing the dock upright; given `apps`, an 'All apps' button opens a launcher on that side, centered on the dock as a `tooltip-content`, laid out like `command`: a search (an `input`), the apps in a grid the arrow keys walk and Enter opens, and a legend of its keys; the dock and the launcher sort into each other, so dragging moves apps in and out of `items` (`state.active` opens it, `onsort` reports each move), and a hop-and-squash launch that lights a running dot (per-item `state.running`, `onlaunch`) | `dock.button`, `dock.launcher`, `dock--plain`, `dock--square`, `dock--squircle` |
83
80
  | `pagination.dots` | Page indicator driven by a continuous `state.progress`; the pill stretches between dots like a worm, with an optional autoplay countdown | `pagination.dots.dot`, `pagination--dots-large` |
84
81
  | `pagination.cards` | Previous and next links as two cards, each a small `label` (default 'Previous'/'Next'), a `title` and an optional `description`; the chevron nudges the way it points on hover and focus, and a lone next card keeps the right column | `{ next, previous }`, each `{ description?, href, label?, title }` |
85
82
  | `pagination.arrows` | The same links as two square arrow buttons; a missing side stays in place, disabled, so the pair never shifts | `{ next, previous }` |
86
- | `nav` | `nav.tree` link tree whose highlight glides between links, solid (`current: 'page'`) or soft over a rule down their edge (`'location'`), marking the active link with a background, a border or both (`indicator: 'background' | 'border' | 'both'`); `nav.toc` table of contents; `nav.spy(ids)` marks the section in view within whichever ancestor scrolls it | `nav.tree`, `nav.toc`, `nav.spy` |
87
- | `pullToRefresh` | Rubber-band pull gesture (touch and mouse) with a stepped tick spinner; new items above the old first one slide in | - |
83
+ | `nav` | `nav.tree` link tree marking the active link with a gliding `highlight`: given its attributes as `[nav.tree.highlight]`, left out for none: a pill, or with a `border` a `highlight--rail` along a rail on that edge; `nav.toc` table of contents, a `nav.tree` of one group with `{ border: 'left', fill: false }`; `nav.spy(ids)` marks the section in view within whichever ancestor scrolls it | `nav.tree`, `nav.toc`, `nav.spy` |
88
84
  | `sortable` | Drag-and-drop reordering of a reactive list's items, across lists with `group` | `sortable--{effect}` modifiers |
89
- | `story` | Auto-advancing stories, each any `Renderable`, on a `frame--slide` track with segmented progress bars whose CSS fill is the timer (`--duration`, or `duration` in ms); tap the left third to go back (replaying the first story) and the rest to advance, drag or flick between stories (rubber-banding at the ends), press-and-hold or Space to pause; links and controls inside a story keep their own clicks | `story.toggle` |
85
+ | `story` | Auto-advancing stories, each any `Renderable`, on a `frame--slide` track filling the card, with segmented progress bars overlaid on top whose CSS fill is the timer (`--duration`, or `duration` in ms); tap the left third to go back (replaying the first story) and the rest to advance, drag or flick between stories (rubber-banding at the ends), press-and-hold, hover or Space to pause; past the last story, `repeat` returns to the first (dragging it in after the last), otherwise it stops with its bar full; `state.done` turns true the first time the last story is finished; links and controls inside a story keep their own clicks | |
90
86
 
91
87
  ### Display
92
88
  | Component | Description |
@@ -95,14 +91,17 @@ html`
95
91
  | `loader` | Loading spinner |
96
92
  | `loading` | Border loading indicator |
97
93
  | `typewriter` | Animated typing effect; `typewriter.retype` is a headline word that is selected and typed over with a jittered, human rhythm, landing whole words under reduced motion. Both share the caret variables and `--block`/`--hard`/`--underscore` modifiers. `typewriter.rotate` is a rotating word (`state.index`, `state.paused`) whose shared letters glide into place while the others blur out and in; `typewriter-rotate--accent` |
98
- | `highlight` | Layer that glides behind its parent's children on hover and focus and rests on the `--active` one (`target` for nested items, `hover: false` for the active layer only); `line: 'bottom' \| 'left' \| 'right' \| 'top'` adds an edge line to the active layer with both fills kept `--line-inset` clear of it, `fill: false` drops the active background, `--glide-tail-duration-active` longer than `--glide-duration-active` stretches it toward the next item, `--inset-block` / `--inset-inline` pull the fill in from the item |
94
+ | `group` | Row of items on `%group`, spaced by `--gap-horizontal` / `--gap-vertical` (a quarter of `--size-100`); attributes under `[group.highlight]` add a `highlight` behind the items, none without them; `button--group` items make a segmented control, medium weight while `--active` | `group.highlight` |
95
+ | `preview` | An example's card that mounts its content once near the viewport and answers its hash (and its `anchors`) by revealing itself; its parts compose inside it, sharing one `preview.state()`: `preview.header` (numbered title plus controls), `preview.stage` (renders the example untracked, hidden while the source shows), `preview.source` (loads, caches and retries a source on the code view) and `preview.code` (a flush `editor.viewer` with a copy button). `preview.buttons` sits just above the card, a `group` of view buttons from `{ content, view }` items | `preview.buttons`, `preview.code`, `preview.header`, `preview.source`, `preview.stage`, `preview.state` |
96
+ | `panels` | Tabbed groups of surfaces in resizable splits, from a `catalog` of kinds (`title`, `render`, optional `icon`, `description`, `shortcut`, `multiple`) and a `panels.state()` holding the layout (`root`, optional `storage` key to persist it); `icons: true` shows tabs as their kind's icon alone, closed from their menu. Tabs drag to reorder, into another group, onto a group's half to split it, or onto the bottom strip to dock a full-width bottom group; separators resize, a double-clicked header maximizes, groups clicked with Ctrl (⌘ on Apple platforms) held fill the layout together once it is let go (Esc cancels) until a double click steps back out, and tabs carry a close menu. `+` and an empty group's launcher open a kind. Each surface renders once and moves between slots, keeping its state until its tab closes | `panels.state` |
97
+ | `highlight` | Layer that glides behind its parent's children on hover and focus and rests on the `--active` one (`target` for nested items, `hover: false` for the active layer only); `border: 'bottom' \| 'left' \| 'right' \| 'top'` adds an edge border to the active layer with both fills kept `--border-inset-horizontal` / `--border-inset-vertical` clear of it, `fill: false` drops the active background, `--glide-tail-duration-active` longer than `--glide-duration-active` stretches it toward the next item, `--inset-horizontal` / `--inset-vertical` pull the fill in from the item; `highlight--rail` on the highlight and `highlight-rail` with `highlight-rail--{bottom,left,right,top}` on its container make tabs along a rail at `--rail-width`, the border on the same edge lying over it |
99
98
  | `ellipsis` | Animated dots |
100
- | `icon` | SVG sprite wrapper; `icon--rotate` turns it by `--rotate` (default `0deg`) with an eased transition, skipped under reduced motion |
99
+ | `icon` | SVG sprite wrapper, `icon(attributes, href)`: the sized box (`--size`, or `--width`/`--height`) colored by `--color`, whose `fill` the `<svg>` inherits, so a stroked icon sets `fill: none` on the box; attributes under `[icon.svg]` go on the `<svg>` itself, `class` included; `icon--rotate` turns it by `--rotate` (default `0deg`) with an eased transition, skipped under reduced motion | `icon.svg` |
101
100
  | `number` | Number formatting |
102
101
  | `truncate` | Text truncation |
103
102
  | `json` | JSON display |
104
103
  | `announcement` | Animated top-of-page container (`state.active`) built on a non-modal `overlay` in the page flow; slides its content in and collapses the space it held, with overlay's drag dismissal and background fill when pulled away from its top edge; the content and close control are the consumer's |
105
- | `toaster` | `toaster(attributes)` returns `{ content, toast }`: place `content` on the page, and `toast(attributes, (state) => content)` queues into that toaster alone, so separate toasters can differ in placement and style. Placed with overlay's own placement modifiers and variables (`toaster--{n,ne,e,se,s,sw,w,nw}`, `--margin-*`, `--translate`, `--stack-peek`, `--stack-scale`); side stacks recede sideways like overlay's; collapsed it shows `limit` toasts (default 3) and an overflow card counting the rest (`overflow: (count) => content`, `toaster.overflow` attributes), and hovering fans all of them out. Content renders lazily with the toast's `state`: `state.active = false` dismisses it and changing `state.duration` keeps the time already spent; pass `state` to hold it from outside, `toast.dismiss()` clears the toaster. The timer is a CSS animation, exposed as `--toast-progress` (0 to 1) and `--toast-seconds`, that runs only on the front toast and stops while the stack is hovered. The toast is only the stacking container, so its surface is the consumer's class; it keeps a close button (`toast.close` attributes) around its content (`toast.content` attributes) |
104
+ | `toaster` | `toaster(attributes)` returns `{ content, toast }`: place `content` on the page, and `toast(attributes, (state) => content)` queues into that toaster alone, so separate toasters can differ in placement and style. Placed with overlay's own placement modifiers and variables (`toaster--{n,ne,e,se,s,sw,w,nw}`, `--margin-*`, `--translate`, `--stack-peek`, `--stack-scale`); side stacks recede sideways like overlay's; collapsed it shows `limit` toasts (default 3) and an overflow card counting the rest (`overflow: (count) => content`, `toaster.overflow` attributes), and hovering fans all of them out. Content renders lazily with the toast's `state`: `state.active = false` dismisses it and changing `state.duration` keeps the time already spent; pass `state` to hold it from outside, `toast.dismiss()` clears the toaster. The timer is a CSS animation, exposed as `--progress` (0 to 1) and `--seconds`, that runs only on the front toast and stops while the stack is hovered. The toast is only the stacking container, so its surface is the consumer's class; it keeps a close button (`toast.close` attributes) around its content (`toast.content` attributes) |
106
105
  | `progress` | Progress bar (`state.value`) with an optional label, percentage and a `status` line derived from the value; `progress.text` is a `progressbar` whose label fills with ink on a spring (`state.value`), with rolling digits and a drawn check on done |
107
106
  | `heatmap` | Calendar of daily values that sweeps in by column; one `tooltip.shared` delegated across the cells renders each day through your `tooltip(day, index)` template (`describe(day)` names the cell), drag-to-scroll via `scrollbar.drag`, roving-tabindex grid keys and `heatmap.legend`; `heatmap--blue` |
108
107
  | `relativeTime` | Self-updating `<time>` ("4 min ago") that wakes once per visible change and rolls its digits; full date in a `tooltip` on hover/focus; `state.now` pins the clock |
@@ -117,6 +116,7 @@ html`
117
116
  | `frame.scss` | Sibling frames sharing one spot, the `--active` one shown: instant by default, `frame--slide` / `frame--scroll` move them like a horizontal / vertical track, `frame--swap` crossfades in place with a directional drift and blur (the `tooltip.shared` swap); shared by `command`, `tooltip.shared` and `card--morph` |
118
117
  | `overlay` | Native `<dialog>` driven by `state.active` (Esc and backdrop click close it), placed by `overlay--c` (default), an edge (`overlay--n`, `overlay--s`, `overlay--w`, `overlay--e`) or a corner (`overlay--ne`, `overlay--se`, `overlay--sw`, `overlay--nw`, which enter and drag off by their top or bottom edge); placements slide in from their side on the iOS drawer curve and square the corners they touch unless `overlay--floating`. Every overlay but a rail drags to dismiss (toward its edge, or downward when centered) past 25% or on a flick, rubber-bands inward and fades the backdrop with the drag; when its own content scrolls, touch drags only from `overlay.handle`. Overlays opened over one another stack: each covered layer shrinks, dims and peeks out from under the one above (`--stack-scale`, `--stack-dim`, `--stack-peek`) and follows the top layer back as it is dragged away; an `overlay-page` direct child of `<body>` (or of a non-modal overlay's container) recedes the same way; `modal: false` opens without a backdrop, leaves the page interactive and sits in its positioned container; `flow: true` keeps it non-modal in the page layout, preserves focus, skips layer stacking, and collapses its parent row during vertical drag dismissal (used by `announcement`); `rail: true` keeps it open non-modal and widens it while a mouse hovers or keyboard focus is inside (or `state.active` is set) from `--width-closed` to `--max-width`, clipping rows rather than reflowing them. Motion: `overlay--fade`, `overlay--scale`, `overlay--spring`, `overlay--alert`, `overlay--blur` |
119
118
  | `breadcrumb` | Path trail that folds middle segments into a `tooltip.menu` as space runs out, the rest sliding over as each one closes; `onnavigate` intercepts links; `separator: 'chevron' \| 'slash'` (default `'slash'`) |
119
+ | `shell` | App frame `shell({ left, right }, content)`: a sidebar on either edge (`Side`: `id`, `label`, `state.active`, optional `content`, `class` and `hover` to peek while the pointer rests on its edge), each with a mirrored `button.sidebar` toggle in its top corner, around a root-surface `card` the page scrolls in. A closed side's edge holds a handle that follows the pointer; dragging from the edge opens the sidebar and dragging a sidebar toward its edge closes it. Below 1024px one sidebar opens at a time; `shell.close(side)` closes one, returning focus to its toggle. `--gap-horizontal` / `--gap-vertical` inset the card from the window, `--space` sizes an open sidebar, `--slide-duration` / `--slide-easing` time the motion |
120
120
 
121
121
  ### Utility
122
122
  | Component | Description |
@@ -157,11 +157,12 @@ frames in one grid cell so the tallest sets the height:
157
157
  - `.frame--slide` / `.frame--scroll` move the frames together like a
158
158
  horizontal / vertical track.
159
159
  - `.frame--swap` crossfades in place, like `tooltip.shared` content: a waiting
160
- frame sits one `--swap-shift` off to its side, faded and blurred, so the
160
+ frame sits one `--shift` off to its side, faded and blurred, so the
161
161
  incoming frame drifts in while the outgoing one carries on out the other way.
162
- Frames without an index set the direction themselves through `--travel-x` /
163
- `--travel-y` and mark the outgoing frame `frame--leaving`. `--swap-*` variables
164
- tune it, with `--swap-exit-*` for the outgoing frame.
162
+ Frames without an index set the direction themselves through `--translate-x` /
163
+ `--translate-y` and mark the outgoing frame `frame--swap-leaving`.
164
+ `--transition-duration`, `--fade-duration` and `--blur` tune it; the outgoing
165
+ frame takes `--fade-duration` throughout.
165
166
 
166
167
  ```html
167
168
  <div style="overflow: hidden; --i: 1;">
@@ -332,7 +333,7 @@ plugin. `check.svg` carries no stroke styling, so set `fill: none` and a `stroke
332
333
 
333
334
  Located in `tokens.scss`:
334
335
 
335
- - **Colors**: `--color-{name}` (black, blue, green, grey, purple, red, white, yellow), each written once and weighted at the root as `--color-{name}-{300|400|500}`: 400 itself, 300 and 500 the mode's `color` step (in `$themes` `surface`) lightness points lighter and darker
336
+ - **Colors**: `--color-{name}` (black, blue, green, grey, purple, red, white, yellow), each written once and weighted at the root as `--color-{name}-{300|400|500}`: 400 itself, 300 and 500 the mode's `color` weight (in `$themes` `weights`) lightness points lighter and darker
336
337
  - **Theme colors**: `--color-surface`, `--color-primary-{300|400|500}` and `--color-text-{300|400|500}`, the only colors that change with the mode, declared by the theme stylesheet (see Theming)
337
338
  - **Sizing**: `--size-{300-800}` (12px-80px)
338
339
  - **Spacing**: `--spacing-{0-600}`
@@ -376,7 +377,8 @@ family is its own stylesheet, used where it is extended, so a stylesheet only em
376
377
  `--gap-vertical` to space children.
377
378
  - **text**: `%text`, `%text-crop` (`-top`, `-bottom`, `-first-child`, `-last-child`), `%text-gradient`,
378
379
  `%text-line-shadow`, `%text-shiny` and `%text-truncate`.
379
- - **surface**: `%surface-raised` / `%surface-sunken` (painted) and their `-level` forms (counted).
380
+ - **surface**: `%surface-raise` / `%surface-lower` (one level up or down), `%surface` (its parent's level) and
381
+ `%surface-root`; all count and color without painting, and `--surface-level` pins any of them.
380
382
  - **font/geist**, **font/montserrat**: see Fonts.
381
383
  - **drag**, **hidden**, **icon**, **inline** and **skeleton** (painted from `--from` to `--to`).
382
384
 
@@ -402,20 +404,23 @@ Each component exposes CSS custom properties:
402
404
  ```typescript
403
405
  import theme from '@esportsplus/ui/theme';
404
406
 
405
- let mode = theme();
407
+ let mode = theme({ fallback: 'dark', store });
406
408
 
407
- mode.set('dark'); // 'dark' | 'light' | 'system'
409
+ mode.set('light'); // 'dark' | 'light' | 'system'
408
410
  ```
409
411
 
412
+ `fallback` (default `'system'`) is the mode shown until the user picks one; `store` keeps their pick across reloads.
413
+ Picking the fallback clears the stored pick, so the page follows the site's default again.
414
+
410
415
  `theme.scss` declares the only colors that change with the mode once on `:root`, as a `light-dark()` of their light and
411
416
  dark values: `--color-surface` (the page, a 99% neutral in light and `black-400` in dark), `--color-primary-*` (its
412
417
  opposite, `black-*` in light and `white-*` in dark), `--color-text` (text, one color, which is `--color-text-400`;
413
- `--color-text-300` and `-500` derive from it in CSS, each holding the mode's `text` contrast in `$themes` against it, so
418
+ `--color-text-300` and `-500` derive from it in CSS, each holding the mode's `text` weight, a contrast ratio in `$themes` `weights`, against it, so
414
419
  setting `--color-text` on `:root` moves all three). It also sets `--background`, `--color` and `color-scheme: light dark`, so with no script at all the page
415
420
  follows the operating system.
416
421
 
417
422
  `light-dark()` picks its side where a color is used, by that element's `color-scheme`. `data-theme="light"` or
418
- `data-theme="dark"` pins it: `mode.set()` writes the attribute to `<html>`, and `'system'` removes it. Any element
423
+ `data-theme="dark"` pins it: the theme always writes the mode showing to `<html>`, and under `'system'` that is the operating system's, updated as it changes. Any element
419
424
  can carry the attribute to render its subtree in the other mode. Text and shadows follow the mode on their own; for
420
425
  anything else, wrap two palette colors in `light-dark()`, such as
421
426
  `light-dark(var(--color-white-300), var(--color-black-300))` for a surface. A palette token alone stays constant.
@@ -425,19 +430,26 @@ the `--surface-level` custom property, and reads its colors from that level inst
425
430
  parent's level with a container style query, so it counts up even set directly inside another surface; levels stop at 6.
426
431
  Its tokens follow the state names components use, `default`, `hover`, `active` and `pressed`:
427
432
  `--surface-background-*` steps the default from `--color-surface` by the lightness points in each mode's `$themes`
428
- `surface` map, raised levels lighter and sunken ones darker (in light mode raised levels climb to white, leaving further
433
+ `surface` map, raised levels lighter and lowered ones darker (in light mode raised levels climb to white, leaving further
429
434
  elevation to the shadow), then moves it for each state, active and hover lighter and pressed darker in both modes;
430
435
  `--surface-border-*` moves the matching `--surface-background-*` by the mode's `border` step, darker in light and
431
436
  lighter in dark, for lines, rings and small marks; and `--surface-shadow-*` is the
432
- shadow at the layer's `--surface-shadow-weight`, a step on Tailwind v4's `shadow-2xs` to `shadow-2xl` ladder (1 to 7),
433
- a step heavier on hover and a step lighter when pressed. The weight follows the level (sunken layers 0, dialogs 7);
434
- set it on a surface to pick another step, a fraction landing between two. A shadow takes the color of what it falls
435
- on, that background deepened in its own hue, at the mode's shadow `opacity`; `--surface-shadow-
436
- color` is that color for whatever casts onto a layer, for component shadows and scrims. A quiet fill, such as a track
437
+ shadow at the layer's weight, a step on Tailwind v4's `shadow-2xs` to `shadow-2xl` ladder (1 to 7), moved in each state by
438
+ the levels that state moves the background: heavier on hover and active, lighter when pressed. The weight follows the level (lowered layers 0, dialogs 7), written out as fixed
439
+ shadows for each level; include `surface.shadow($weight)` on a surface to pick another step. A shadow takes the color of what it falls
440
+ on, that background deepened in its own hue, at the mode's shadow `opacity`; `surface.shadow-color($share)` writes
441
+ that color at a share of the opacity for component shadows and scrims. `--surface-primary-{state}` is a
442
+ primary fill on a layer, the mode's `primary` levels below it in light and above it in dark, its states stepped from it as
443
+ the layer's own are; `%border-surface-primary` edges it. A quiet fill, such as a track
437
444
  or an inline code chip, is a surface of its own a level below what holds it. Dialogs reset the stack to level 1 wherever they open. Another level is never a color to paint: a
438
- component reaches it by extending `%surface-raised` or `%surface-sunken` (painted), or `%surface-raised-level` or
439
- `%surface-sunken-level` (counted, for components that route background and shadow through their own variables), so
440
- whatever sits in it reads its states from the level it shows; sunken layers cast no shadow. Style queries on custom
445
+ component reaches it by extending `%surface-raise` or `%surface-lower` (one level up or down), `%surface` (its
446
+ parent's level) or `%surface-root`, or by setting `--surface-level` on one to pin it, so whatever sits in it reads its
447
+ states from the level it shows; only a layer moved up casts a shadow. None of them paint: set
448
+ `background`/`box-shadow` from `--surface-background-default`/`--surface-shadow-default`, or extend
449
+ `%background-surface`, `%border-surface` and `%box-shadow-surface` with their state placeholders for fills that step with
450
+ the state; `%box-shadow-surface` belongs on a surface, since any other element would show the shadow of the surface it
451
+ sits in. A primary fill is painted by `%background-surface-primary` and `%border-surface-primary`, and casts a shadow as
452
+ a surface does, by `%surface-raise` with `%box-shadow-surface`. Style queries on custom
441
453
  properties need Chrome and Edge 111, Safari 18 or Firefox 151; elsewhere every surface keeps its parent's level. The
442
454
  ladder and shadows live in each mode's `surface` map in `$themes` (`tokens/scss/color.scss`), with `shadow` holding its
443
455
  `depth` and `opacity`; the Tailwind shadow ladder itself sits with the surface utilities, and `surface.shadow($weight)`
@@ -446,12 +458,12 @@ writes a fixed step's shadow.
446
458
  Ready-made pickers drive the same instance:
447
459
 
448
460
  ```typescript
449
- import { themePicker } from '@esportsplus/ui/components';
461
+ import { theme } from '@esportsplus/ui/components';
450
462
 
451
- themePicker.toggle({ mode }); // the current choice's icon; hover or click morphs it into a row of every choice
452
- // over the button, closing on a pick, a click outside, Escape or the pointer leaving
453
- themePicker.cards({ mode }); // miniature page previews
454
- themePicker.swatches({ mode }); // round swatches
463
+ theme.toggle({ mode }); // select.expand of the three choices' icons, opening on hover; closes on a pick,
464
+ // a click outside, Escape or the pointer leaving
465
+ theme.cards({ mode }); // miniature page previews
466
+ theme.swatches({ mode }); // round swatches
455
467
  ```
456
468
 
457
469
  ## Build
package/RULES.md ADDED
@@ -0,0 +1,145 @@
1
+ # Rules
2
+
3
+ Component conventions. Reference implementation: `src/components/button`.
4
+
5
+
6
+ ## Directory structure
7
+
8
+ ```
9
+ src/components/{component}/
10
+ ├── index.ts barrel; imports './scss/index.scss' and exports the default object
11
+ ├── {variant}.ts one file per sub-component (copy.ts, kbd.ts, split.ts, ...)
12
+ ├── {variant}/ a sub-component spanning several files (index.ts, template.ts, save.ts, ...)
13
+ └── scss/
14
+ ├── index.scss logic, rules, structure
15
+ ├── variables.scss css variables only
16
+ └── _{partial}.scss optional partials when index.scss grows too large (see tooltip)
17
+ ```
18
+
19
+ - SCSS always lives in `{component}/scss/`; CSS-only components may have nothing but `scss/`.
20
+ - `index.ts` imports sub-components alphabetically, then `./scss/index.scss`, and exports a typed object of them:
21
+ `const button: { copy: typeof copy, ... } = { copy, ... }; export default button;`
22
+
23
+
24
+ ## TypeScript
25
+
26
+ - Use CSS whenever it can do the job, so the browser does the work instead of the script. States (`:hover`, `:active`,
27
+ `:focus-visible`, `:has()`), transitions, `@starting-style`, layout and `@media` preferences belong in SCSS. Keep TS
28
+ for what CSS can't express, such as measuring layout or state CSS can't see.
29
+ - Build components with `@esportsplus/template` (`component`, `html`, attribute objects) and
30
+ `@esportsplus/reactivity` (`reactive`, ...). We own both libraries; use them for as much as possible.
31
+ - Don't manipulate the DOM directly (`addEventListener`, `classList`, `setAttribute`, `appendChild`, manual `window`
32
+ listeners, ...) when template has a way to do it. Template handles cleanup and lifecycle. For example, bind
33
+ `onwindowkeydown` / `onpointerdown` and reactive `class: () => ...` in the attribute object, as `button/kbd.ts` does.
34
+ - Optimize with fine-grained reactivity: keep state in `reactive(...)` and bind functions only where a value changes,
35
+ so updates touch only the affected node or attribute. Never re-render whole templates for a small change.
36
+ - Drop to raw DOM only when neither library covers the case (e.g. measuring layout). Keep it minimal and say why in a
37
+ comment.
38
+
39
+
40
+ ## index.scss vs variables.scss
41
+
42
+ - `index.scss` holds the logic: layout, properties, selectors, transitions, keyframes. Values come from `var(--*)`, not literals.
43
+ - `variables.scss` holds only css variables (plus themed `%placeholder` extends such as `%background-primary`). They act as
44
+ arguments: every tunable value is a variable so variants and consumers can finely control the component without
45
+ touching the logic.
46
+ - `index.scss` `@use`s `variables`; both `@use '/tokens'` and any `css-utilities/*` they need, alphabetically.
47
+ - Variants (`&--primary`, `&--kbd`, ...) should mostly be variable overrides in `variables.scss`; only add rules to
48
+ `index.scss` when the structure actually changes.
49
+
50
+
51
+ ## Variables
52
+
53
+ - Split multi-value properties into one variable per axis/side so the logic can compute with each part:
54
+ `--padding-horizontal` / `--padding-vertical`, `--gap-horizontal` / `--gap-vertical`. A single `--padding` would need
55
+ parsing of 1/2/4-value shorthands. Example from button:
56
+ ```scss
57
+ padding-block: max(0px, calc(var(--padding-vertical) - var(--border-width)));
58
+ padding-inline: max(0px, calc(var(--padding-horizontal) - var(--border-width)));
59
+ ```
60
+ - Variables live on the selector that consumes them, not on a parent with a prefix. The icon's size is `--size` set on
61
+ `.button-icon` / `&-kbd-icon.icon`, not `--icon-size` on `.button` that reaches down into the child. Prefixes are
62
+ only for distinct concerns of the same selector that would otherwise collide, e.g. `card--morph`'s `--morph-duration`,
63
+ `--morph-fade-duration` alongside its own `--transition-duration`.
64
+ - Stateful values use a `-default` / `-hover` / `-active` / `-pressed` family, with the bare variable resolving to the
65
+ current state: `--background: var(--background-default)`.
66
+ - Timing is always a pair: `--transition-duration` + `--transition-timing-function` (likewise `--{name}-duration` /
67
+ `--{name}-timing-function` for animations, e.g. `--shake-duration`).
68
+ - Prefer tokens (`--size-*`, `--border-radius-*`, `--font-size-*`, `--color-*`) over raw values.
69
+ - Reduced motion is handled by zeroing durations or removing transitions/animations under
70
+ `@media (prefers-reduced-motion: reduce)`.
71
+
72
+
73
+ ## Naming (BEM-like)
74
+
75
+ - Block: `.button`
76
+ - Modifier: `.button--kbd`, `.button--processing` (double dash)
77
+ - Element: `.button-face`, `.button-split-chevron` (single dash, not `__`)
78
+ - Element modifier: `.button-face--error`, `.button-icon--draw`
79
+ - Modifier element/sub-state: `.button--morph-error`, `.button--sidebar-right`
80
+ - States use the `tokens.state(...)` mixin (`--active`, `pressed`, ...), not hand-written state classes.
81
+ - Always build names with `&--` / `&-` nesting rather than repeating the block name.
82
+ - Nested/chained selectors are fine when composing components or winning specificity regardless of load order
83
+ (`& > &-menu > &-trigger`, `&-kbd-icon.icon`, `> .tooltip-menu-layer > .tooltip-menu-panel`). Use `:where()` for
84
+ zero-specificity defaults that the other component should be able to override.
85
+
86
+
87
+ ## Keyframes
88
+
89
+ - Name keyframes after the class that uses them when possible: `.button--processing` → `button--processing`. When a
90
+ name describes the motion rather than a single class, prefix it with the block/element path (`button-icon-draw`,
91
+ `button-morph-shake`).
92
+ - Place them either nested inside the class using them or at the bottom of `index.scss`.
93
+
94
+
95
+ ## Ordering
96
+
97
+ Alphabetize everything: `@use` statements, selectors, properties, variables, transition lists, `@extend` lists.
98
+
99
+ Within a block, in this order. Two blank lines separate each group; one blank line separates rules within a group:
100
+
101
+ 1. `@extend`s, then variables (`--*`), then properties — each alphabetical
102
+ 2. Pseudo elements (`&::after`), nested `:where()` / descendant rules, `@media` for the block itself
103
+ 3. Modifiers `&--*`, alphabetical
104
+ 4. Elements `&-*`, alphabetical
105
+ 5. State / relational selectors (`&:has(...)`, `&:not(...)`) and descendant selectors (`.button-check`, `svg`)
106
+
107
+
108
+ ## SCSS style
109
+
110
+ - Use nesting wherever possible: `&--`, `&-`, `&::before`, `&:focus-visible`, `@media` and `@include tokens.state()`
111
+ nested inside the selector they affect.
112
+ - Reuse `css-utilities` placeholders via `@extend` (`%absolute-center`, `%hidden-visually`, `%icon-stroke`, ...) instead
113
+ of rewriting their rules.
114
+ - Use `@each` loops for symmetric variants (`left`/`right`) instead of duplicating rules.
115
+ - Comments only for a non-obvious why (specificity tricks, timing choices, math); never restate the code.
116
+
117
+
118
+ ## Touching existing code
119
+
120
+ Every file you open is held to the rules above, not just the lines you came for. Apply these in the same change; the
121
+ result must behave identically, and the gate (`tsc --noEmit`, build) must stay clean.
122
+
123
+ - Modernize outdated techniques, bounded by the floor in `vite.config.ts` (`BROWSERS`: the first 2026 release of each
124
+ browser, Chrome/Edge 144, Firefox 147, Safari/iOS 26.3). Anything every floor browser supports is fair game:
125
+ `:has()`, `:is()`/`:where()`, `inset`, logical properties (`padding-inline`, `margin-block`), `gap` instead of margin
126
+ hacks, `light-dark()`, `@container`, `@layer`, `@property`, `@starting-style` with
127
+ `transition-behavior: allow-discrete`, `popover`, `aspect-ratio`, `clamp()`/`min()`/`max()`, `color-mix()`,
128
+ `text-wrap: balance`, `dvh` units, anchor positioning (`anchor-name`, `position-anchor`, `anchor()`,
129
+ `position-area`). Features above the floor are only allowed as progressive enhancement where the
130
+ fallback is still correct, never to gate layout or visibility. Check caniuse against the floor before using anything
131
+ not listed. Replace JS that only exists because CSS once couldn't: hover/focus/open state, entry/exit transitions,
132
+ measuring for simple layout, resize listeners for things `@container` handles.
133
+ - Reduce lines of code wherever it keeps behavior and readability: collapse selectors into `&-`/`&--` nesting, replace
134
+ hand-written rules with `css-utilities` placeholders, fold symmetric variants into `@each`, turn repeated
135
+ `calc()`s into one variable, use shorthands only when every value is being set on purpose.
136
+ - Consolidate duplicate styling within a component. If two selectors, variants or rules achieve the same thing in
137
+ different ways (one via `transform`, one via `margin`; two variants each re-declaring the same transition; the same
138
+ `padding` math in `index.scss` and a partial), pick the one that fits these rules and delete the other. One mechanism
139
+ per concern. Variants express their differences as variable overrides in `variables.scss`, not as a second copy of
140
+ the logic.
141
+ - Remove dead code. Before finishing, grep the component (and its consumers) for every selector, `--variable`,
142
+ `%placeholder`, keyframe, mixin and exported TS member the file declares; anything with no reader is deleted.
143
+ Variables declared in `variables.scss` but never read in `index.scss` or a partial, selectors no template renders,
144
+ keyframes no `animation` references, and leftover vendor prefixes (autoprefixer owns prefixes) all count.
145
+ - Do not leave both the old and new approach in place "for safety". A superseded rule is removed in the same change.