@still-void/ui 0.0.0-canary-20261202214749

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/CHANGELOG.md +350 -0
  2. package/LICENSE +21 -0
  3. package/README.md +330 -0
  4. package/dist/css/app-shell.css +129 -0
  5. package/dist/css/base.css +27 -0
  6. package/dist/css/content.css +726 -0
  7. package/dist/css/controls.css +383 -0
  8. package/dist/css/data.css +190 -0
  9. package/dist/css/forms.css +318 -0
  10. package/dist/css/motion.css +49 -0
  11. package/dist/css/overlays.css +488 -0
  12. package/dist/css/toast.css +170 -0
  13. package/dist/react/_modules/behaviors/themeManager.js +10 -0
  14. package/dist/react/_modules/behaviors/themeManager.js.map +1 -0
  15. package/dist/react/_modules/components/ui/alert.js +14 -0
  16. package/dist/react/_modules/components/ui/alert.js.map +1 -0
  17. package/dist/react/_modules/components/ui/badge.js +9 -0
  18. package/dist/react/_modules/components/ui/badge.js.map +1 -0
  19. package/dist/react/_modules/components/ui/button.js +9 -0
  20. package/dist/react/_modules/components/ui/button.js.map +1 -0
  21. package/dist/react/_modules/components/ui/card.js +19 -0
  22. package/dist/react/_modules/components/ui/card.js.map +1 -0
  23. package/dist/react/_modules/components/ui/chart.js +18 -0
  24. package/dist/react/_modules/components/ui/chart.js.map +1 -0
  25. package/dist/react/_modules/components/ui/checkbox.js +8 -0
  26. package/dist/react/_modules/components/ui/checkbox.js.map +1 -0
  27. package/dist/react/_modules/components/ui/field.js +9 -0
  28. package/dist/react/_modules/components/ui/field.js.map +1 -0
  29. package/dist/react/_modules/components/ui/file-input.js +10 -0
  30. package/dist/react/_modules/components/ui/file-input.js.map +1 -0
  31. package/dist/react/_modules/components/ui/icon-set.js +11 -0
  32. package/dist/react/_modules/components/ui/icon-set.js.map +1 -0
  33. package/dist/react/_modules/components/ui/icon.js +9 -0
  34. package/dist/react/_modules/components/ui/icon.js.map +1 -0
  35. package/dist/react/_modules/components/ui/input.js +10 -0
  36. package/dist/react/_modules/components/ui/input.js.map +1 -0
  37. package/dist/react/_modules/components/ui/native-select.js +10 -0
  38. package/dist/react/_modules/components/ui/native-select.js.map +1 -0
  39. package/dist/react/_modules/components/ui/pagination.js +23 -0
  40. package/dist/react/_modules/components/ui/pagination.js.map +1 -0
  41. package/dist/react/_modules/components/ui/progress.js +8 -0
  42. package/dist/react/_modules/components/ui/progress.js.map +1 -0
  43. package/dist/react/_modules/components/ui/radio-group.js +12 -0
  44. package/dist/react/_modules/components/ui/radio-group.js.map +1 -0
  45. package/dist/react/_modules/components/ui/separator.js +8 -0
  46. package/dist/react/_modules/components/ui/separator.js.map +1 -0
  47. package/dist/react/_modules/components/ui/slot.js +7 -0
  48. package/dist/react/_modules/components/ui/slot.js.map +1 -0
  49. package/dist/react/_modules/components/ui/table.js +23 -0
  50. package/dist/react/_modules/components/ui/table.js.map +1 -0
  51. package/dist/react/_modules/components/ui/text-link.js +10 -0
  52. package/dist/react/_modules/components/ui/text-link.js.map +1 -0
  53. package/dist/react/_modules/components/ui/textarea.js +10 -0
  54. package/dist/react/_modules/components/ui/textarea.js.map +1 -0
  55. package/dist/react/_modules/lib/safe-href.js +9 -0
  56. package/dist/react/_modules/lib/safe-href.js.map +1 -0
  57. package/dist/react/_modules/lib/utils.js +7 -0
  58. package/dist/react/_modules/lib/utils.js.map +1 -0
  59. package/dist/react/_modules/react/components/Article.js +17 -0
  60. package/dist/react/_modules/react/components/Article.js.map +1 -0
  61. package/dist/react/_modules/react/components/Content.js +30 -0
  62. package/dist/react/_modules/react/components/Content.js.map +1 -0
  63. package/dist/react/_modules/react/components/PageHeader.js +8 -0
  64. package/dist/react/_modules/react/components/PageHeader.js.map +1 -0
  65. package/dist/react/_modules/react/components/Shell.js +17 -0
  66. package/dist/react/_modules/react/components/Shell.js.map +1 -0
  67. package/dist/react/_modules/react/components/ThemeScript.js +9 -0
  68. package/dist/react/_modules/react/components/ThemeScript.js.map +1 -0
  69. package/dist/react/_modules/recipes/article.js +34 -0
  70. package/dist/react/_modules/recipes/article.js.map +1 -0
  71. package/dist/react/_modules/recipes/content.js +34 -0
  72. package/dist/react/_modules/recipes/content.js.map +1 -0
  73. package/dist/react/_modules/recipes/cx.js +7 -0
  74. package/dist/react/_modules/recipes/cx.js.map +1 -0
  75. package/dist/react/_modules/recipes/field.js +12 -0
  76. package/dist/react/_modules/recipes/field.js.map +1 -0
  77. package/dist/react/_modules/recipes/shell.js +18 -0
  78. package/dist/react/_modules/recipes/shell.js.map +1 -0
  79. package/dist/react/_modules/recipes/table.js +9 -0
  80. package/dist/react/_modules/recipes/table.js.map +1 -0
  81. package/dist/react/_modules/tokens/categories.js +12 -0
  82. package/dist/react/_modules/tokens/categories.js.map +1 -0
  83. package/dist/react/_modules/tokens/colors.js +23 -0
  84. package/dist/react/_modules/tokens/colors.js.map +1 -0
  85. package/dist/react/_modules/tokens/motion.js +9 -0
  86. package/dist/react/_modules/tokens/motion.js.map +1 -0
  87. package/dist/react/_modules/tokens/spacing.js +9 -0
  88. package/dist/react/_modules/tokens/spacing.js.map +1 -0
  89. package/dist/react/_modules/tokens/typography.js +15 -0
  90. package/dist/react/_modules/tokens/typography.js.map +1 -0
  91. package/dist/react/_modules/tokens/zIndex.js +7 -0
  92. package/dist/react/_modules/tokens/zIndex.js.map +1 -0
  93. package/dist/react/chunk-2QRW4J2C.js +29 -0
  94. package/dist/react/chunk-2QRW4J2C.js.map +1 -0
  95. package/dist/react/chunk-3BWBG3BR.js +82 -0
  96. package/dist/react/chunk-3BWBG3BR.js.map +1 -0
  97. package/dist/react/chunk-563PKHIJ.js +48 -0
  98. package/dist/react/chunk-563PKHIJ.js.map +1 -0
  99. package/dist/react/chunk-5RPXXOD7.js +50 -0
  100. package/dist/react/chunk-5RPXXOD7.js.map +1 -0
  101. package/dist/react/chunk-6PF2SFKH.js +54 -0
  102. package/dist/react/chunk-6PF2SFKH.js.map +1 -0
  103. package/dist/react/chunk-7JIE3YAY.js +109 -0
  104. package/dist/react/chunk-7JIE3YAY.js.map +1 -0
  105. package/dist/react/chunk-7ZVSFBDK.js +26 -0
  106. package/dist/react/chunk-7ZVSFBDK.js.map +1 -0
  107. package/dist/react/chunk-AVAJOAL5.js +10 -0
  108. package/dist/react/chunk-AVAJOAL5.js.map +1 -0
  109. package/dist/react/chunk-BXKXO6FU.js +34 -0
  110. package/dist/react/chunk-BXKXO6FU.js.map +1 -0
  111. package/dist/react/chunk-CN3PNEZL.js +80 -0
  112. package/dist/react/chunk-CN3PNEZL.js.map +1 -0
  113. package/dist/react/chunk-EHJDOUXR.js +144 -0
  114. package/dist/react/chunk-EHJDOUXR.js.map +1 -0
  115. package/dist/react/chunk-FX2E23UV.js +28 -0
  116. package/dist/react/chunk-FX2E23UV.js.map +1 -0
  117. package/dist/react/chunk-GYGMM6RW.js +20 -0
  118. package/dist/react/chunk-GYGMM6RW.js.map +1 -0
  119. package/dist/react/chunk-H7DEOO3V.js +29 -0
  120. package/dist/react/chunk-H7DEOO3V.js.map +1 -0
  121. package/dist/react/chunk-HD7O5FNH.js +39 -0
  122. package/dist/react/chunk-HD7O5FNH.js.map +1 -0
  123. package/dist/react/chunk-HYLCMS2U.js +28 -0
  124. package/dist/react/chunk-HYLCMS2U.js.map +1 -0
  125. package/dist/react/chunk-HYXG2WF4.js +73 -0
  126. package/dist/react/chunk-HYXG2WF4.js.map +1 -0
  127. package/dist/react/chunk-KQK7SZ3K.js +52 -0
  128. package/dist/react/chunk-KQK7SZ3K.js.map +1 -0
  129. package/dist/react/chunk-KQZBK3XX.js +24 -0
  130. package/dist/react/chunk-KQZBK3XX.js.map +1 -0
  131. package/dist/react/chunk-L6WPFLSD.js +39 -0
  132. package/dist/react/chunk-L6WPFLSD.js.map +1 -0
  133. package/dist/react/chunk-LOVNG6RF.js +9 -0
  134. package/dist/react/chunk-LOVNG6RF.js.map +1 -0
  135. package/dist/react/chunk-M5FFVQKK.js +41 -0
  136. package/dist/react/chunk-M5FFVQKK.js.map +1 -0
  137. package/dist/react/chunk-MZEFPODP.js +77 -0
  138. package/dist/react/chunk-MZEFPODP.js.map +1 -0
  139. package/dist/react/chunk-NJQN37EG.js +37 -0
  140. package/dist/react/chunk-NJQN37EG.js.map +1 -0
  141. package/dist/react/chunk-OEFJMV7G.js +144 -0
  142. package/dist/react/chunk-OEFJMV7G.js.map +1 -0
  143. package/dist/react/chunk-P4M4LEI2.js +62 -0
  144. package/dist/react/chunk-P4M4LEI2.js.map +1 -0
  145. package/dist/react/chunk-PGDHKADW.js +60 -0
  146. package/dist/react/chunk-PGDHKADW.js.map +1 -0
  147. package/dist/react/chunk-QTVPXQ43.js +29 -0
  148. package/dist/react/chunk-QTVPXQ43.js.map +1 -0
  149. package/dist/react/chunk-QVOZHMVF.js +14 -0
  150. package/dist/react/chunk-QVOZHMVF.js.map +1 -0
  151. package/dist/react/chunk-SJ2YK4NJ.js +27 -0
  152. package/dist/react/chunk-SJ2YK4NJ.js.map +1 -0
  153. package/dist/react/chunk-SSMGCYPH.js +79 -0
  154. package/dist/react/chunk-SSMGCYPH.js.map +1 -0
  155. package/dist/react/chunk-SUT4G3TE.js +29 -0
  156. package/dist/react/chunk-SUT4G3TE.js.map +1 -0
  157. package/dist/react/chunk-SVLIJGBZ.js +14 -0
  158. package/dist/react/chunk-SVLIJGBZ.js.map +1 -0
  159. package/dist/react/chunk-SY7EEIC3.js +100 -0
  160. package/dist/react/chunk-SY7EEIC3.js.map +1 -0
  161. package/dist/react/chunk-TI3OPDCN.js +25 -0
  162. package/dist/react/chunk-TI3OPDCN.js.map +1 -0
  163. package/dist/react/chunk-U6L6J73Y.js +27 -0
  164. package/dist/react/chunk-U6L6J73Y.js.map +1 -0
  165. package/dist/react/chunk-VD5O66DN.js +54 -0
  166. package/dist/react/chunk-VD5O66DN.js.map +1 -0
  167. package/dist/react/chunk-YDGOXO6Q.js +74 -0
  168. package/dist/react/chunk-YDGOXO6Q.js.map +1 -0
  169. package/dist/react/chunk-YTTFCX3E.js +16 -0
  170. package/dist/react/chunk-YTTFCX3E.js.map +1 -0
  171. package/dist/react/chunk-YXV3UEL5.js +27 -0
  172. package/dist/react/chunk-YXV3UEL5.js.map +1 -0
  173. package/dist/react/client/_modules/behaviors/clipboard.js +8 -0
  174. package/dist/react/client/_modules/behaviors/clipboard.js.map +1 -0
  175. package/dist/react/client/_modules/behaviors/mediaQuery.js +8 -0
  176. package/dist/react/client/_modules/behaviors/mediaQuery.js.map +1 -0
  177. package/dist/react/client/_modules/behaviors/readingProgress.js +10 -0
  178. package/dist/react/client/_modules/behaviors/readingProgress.js.map +1 -0
  179. package/dist/react/client/_modules/behaviors/scrollSpy.js +8 -0
  180. package/dist/react/client/_modules/behaviors/scrollSpy.js.map +1 -0
  181. package/dist/react/client/_modules/behaviors/themeManager.js +11 -0
  182. package/dist/react/client/_modules/behaviors/themeManager.js.map +1 -0
  183. package/dist/react/client/_modules/components/ui/alert-dialog.js +30 -0
  184. package/dist/react/client/_modules/components/ui/alert-dialog.js.map +1 -0
  185. package/dist/react/client/_modules/components/ui/bottom-sheet.js +28 -0
  186. package/dist/react/client/_modules/components/ui/bottom-sheet.js.map +1 -0
  187. package/dist/react/client/_modules/components/ui/combobox.js +13 -0
  188. package/dist/react/client/_modules/components/ui/combobox.js.map +1 -0
  189. package/dist/react/client/_modules/components/ui/dialog.js +30 -0
  190. package/dist/react/client/_modules/components/ui/dialog.js.map +1 -0
  191. package/dist/react/client/_modules/components/ui/dropdown-menu.js +39 -0
  192. package/dist/react/client/_modules/components/ui/dropdown-menu.js.map +1 -0
  193. package/dist/react/client/_modules/components/ui/icon-set.js +12 -0
  194. package/dist/react/client/_modules/components/ui/icon-set.js.map +1 -0
  195. package/dist/react/client/_modules/components/ui/icon.js +10 -0
  196. package/dist/react/client/_modules/components/ui/icon.js.map +1 -0
  197. package/dist/react/client/_modules/components/ui/restore-focus.js +8 -0
  198. package/dist/react/client/_modules/components/ui/restore-focus.js.map +1 -0
  199. package/dist/react/client/_modules/components/ui/select.js +29 -0
  200. package/dist/react/client/_modules/components/ui/select.js.map +1 -0
  201. package/dist/react/client/_modules/components/ui/tabs.js +15 -0
  202. package/dist/react/client/_modules/components/ui/tabs.js.map +1 -0
  203. package/dist/react/client/_modules/components/ui/tooltip.js +15 -0
  204. package/dist/react/client/_modules/components/ui/tooltip.js.map +1 -0
  205. package/dist/react/client/_modules/lib/utils.js +8 -0
  206. package/dist/react/client/_modules/lib/utils.js.map +1 -0
  207. package/dist/react/client/_modules/react/client/CopyButton.js +11 -0
  208. package/dist/react/client/_modules/react/client/CopyButton.js.map +1 -0
  209. package/dist/react/client/_modules/react/client/ReadingProgress.js +14 -0
  210. package/dist/react/client/_modules/react/client/ReadingProgress.js.map +1 -0
  211. package/dist/react/client/_modules/react/client/SidebarProvider.js +26 -0
  212. package/dist/react/client/_modules/react/client/SidebarProvider.js.map +1 -0
  213. package/dist/react/client/_modules/react/client/TableOfContents.js +14 -0
  214. package/dist/react/client/_modules/react/client/TableOfContents.js.map +1 -0
  215. package/dist/react/client/_modules/react/client/ThemeProvider.js +12 -0
  216. package/dist/react/client/_modules/react/client/ThemeProvider.js.map +1 -0
  217. package/dist/react/client/_modules/react/client/ThemeToggle.js +14 -0
  218. package/dist/react/client/_modules/react/client/ThemeToggle.js.map +1 -0
  219. package/dist/react/client/_modules/react/client/ToastProvider.js +14 -0
  220. package/dist/react/client/_modules/react/client/ToastProvider.js.map +1 -0
  221. package/dist/react/client/_modules/react/client/hooks.js +17 -0
  222. package/dist/react/client/_modules/react/client/hooks.js.map +1 -0
  223. package/dist/react/client/_modules/react/client/shadcn.js +160 -0
  224. package/dist/react/client/_modules/react/client/shadcn.js.map +1 -0
  225. package/dist/react/client/_modules/recipes/article.js +35 -0
  226. package/dist/react/client/_modules/recipes/article.js.map +1 -0
  227. package/dist/react/client/_modules/recipes/cx.js +8 -0
  228. package/dist/react/client/_modules/recipes/cx.js.map +1 -0
  229. package/dist/react/client/_modules/recipes/field.js +13 -0
  230. package/dist/react/client/_modules/recipes/field.js.map +1 -0
  231. package/dist/react/client/_modules/tokens/colors.js +24 -0
  232. package/dist/react/client/_modules/tokens/colors.js.map +1 -0
  233. package/dist/react/client/chunk-3MVZ2ES4.js +83 -0
  234. package/dist/react/client/chunk-3MVZ2ES4.js.map +1 -0
  235. package/dist/react/client/chunk-7AU2DPOL.js +35 -0
  236. package/dist/react/client/chunk-7AU2DPOL.js.map +1 -0
  237. package/dist/react/client/chunk-ABWCVXOO.js +11 -0
  238. package/dist/react/client/chunk-ABWCVXOO.js.map +1 -0
  239. package/dist/react/client/chunk-AEXJWMUV.js +52 -0
  240. package/dist/react/client/chunk-AEXJWMUV.js.map +1 -0
  241. package/dist/react/client/chunk-CJQZ4BGO.js +125 -0
  242. package/dist/react/client/chunk-CJQZ4BGO.js.map +1 -0
  243. package/dist/react/client/chunk-CMMPIPNC.js +30 -0
  244. package/dist/react/client/chunk-CMMPIPNC.js.map +1 -0
  245. package/dist/react/client/chunk-CWA3N5RK.js +123 -0
  246. package/dist/react/client/chunk-CWA3N5RK.js.map +1 -0
  247. package/dist/react/client/chunk-ECOPTUZT.js +102 -0
  248. package/dist/react/client/chunk-ECOPTUZT.js.map +1 -0
  249. package/dist/react/client/chunk-GD7XJWKF.js +102 -0
  250. package/dist/react/client/chunk-GD7XJWKF.js.map +1 -0
  251. package/dist/react/client/chunk-JVVNV4DF.js +95 -0
  252. package/dist/react/client/chunk-JVVNV4DF.js.map +1 -0
  253. package/dist/react/client/chunk-LDOUB5IA.js +40 -0
  254. package/dist/react/client/chunk-LDOUB5IA.js.map +1 -0
  255. package/dist/react/client/chunk-M5QFSQYC.js +40 -0
  256. package/dist/react/client/chunk-M5QFSQYC.js.map +1 -0
  257. package/dist/react/client/chunk-MGR4F2BJ.js +67 -0
  258. package/dist/react/client/chunk-MGR4F2BJ.js.map +1 -0
  259. package/dist/react/client/chunk-MYTOL2RH.js +61 -0
  260. package/dist/react/client/chunk-MYTOL2RH.js.map +1 -0
  261. package/dist/react/client/chunk-N64GC5ZU.js +12 -0
  262. package/dist/react/client/chunk-N64GC5ZU.js.map +1 -0
  263. package/dist/react/client/chunk-NEAL74VV.js +130 -0
  264. package/dist/react/client/chunk-NEAL74VV.js.map +1 -0
  265. package/dist/react/client/chunk-OF6BMW2X.js +30 -0
  266. package/dist/react/client/chunk-OF6BMW2X.js.map +1 -0
  267. package/dist/react/client/chunk-OILITPDP.js +72 -0
  268. package/dist/react/client/chunk-OILITPDP.js.map +1 -0
  269. package/dist/react/client/chunk-OU4ACOFA.js +75 -0
  270. package/dist/react/client/chunk-OU4ACOFA.js.map +1 -0
  271. package/dist/react/client/chunk-OVMH25G3.js +23 -0
  272. package/dist/react/client/chunk-OVMH25G3.js.map +1 -0
  273. package/dist/react/client/chunk-P2UPL6Y3.js +205 -0
  274. package/dist/react/client/chunk-P2UPL6Y3.js.map +1 -0
  275. package/dist/react/client/chunk-PAOYY55O.js +41 -0
  276. package/dist/react/client/chunk-PAOYY55O.js.map +1 -0
  277. package/dist/react/client/chunk-PYG5NCEU.js +54 -0
  278. package/dist/react/client/chunk-PYG5NCEU.js.map +1 -0
  279. package/dist/react/client/chunk-RCZS37V5.js +239 -0
  280. package/dist/react/client/chunk-RCZS37V5.js.map +1 -0
  281. package/dist/react/client/chunk-RJFN4KXE.js +36 -0
  282. package/dist/react/client/chunk-RJFN4KXE.js.map +1 -0
  283. package/dist/react/client/chunk-RNMQZ6T2.js +62 -0
  284. package/dist/react/client/chunk-RNMQZ6T2.js.map +1 -0
  285. package/dist/react/client/chunk-TXL2US4Z.js +53 -0
  286. package/dist/react/client/chunk-TXL2US4Z.js.map +1 -0
  287. package/dist/react/client/chunk-U6FMZ32G.js +192 -0
  288. package/dist/react/client/chunk-U6FMZ32G.js.map +1 -0
  289. package/dist/react/client/chunk-WR7KQGBM.js +2 -0
  290. package/dist/react/client/chunk-WR7KQGBM.js.map +1 -0
  291. package/dist/react/client/chunk-XHL4YEVA.js +17 -0
  292. package/dist/react/client/chunk-XHL4YEVA.js.map +1 -0
  293. package/dist/react/client/index.cjs +1924 -0
  294. package/dist/react/client/index.cjs.map +1 -0
  295. package/dist/react/client/index.d.cts +588 -0
  296. package/dist/react/client/index.d.ts +588 -0
  297. package/dist/react/client/index.js +233 -0
  298. package/dist/react/client/index.js.map +1 -0
  299. package/dist/react/index.cjs +1682 -0
  300. package/dist/react/index.cjs.map +1 -0
  301. package/dist/react/index.d.cts +994 -0
  302. package/dist/react/index.d.ts +994 -0
  303. package/dist/react/index.js +333 -0
  304. package/dist/react/index.js.map +1 -0
  305. package/dist/shadcn-overrides.css +112 -0
  306. package/dist/style.css +2480 -0
  307. package/dist/tailwind.css +73 -0
  308. package/dist/theme.css +346 -0
  309. package/package.json +171 -0
@@ -0,0 +1,588 @@
1
+ import * as React from 'react';
2
+ import { ReactNode, ComponentPropsWithoutRef, RefObject } from 'react';
3
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
4
+ import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
5
+ import * as SelectPrimitive from '@radix-ui/react-select';
6
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
7
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
8
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
9
+
10
+ /**
11
+ * Still Void color tokens.
12
+ * Values ported literally from the Still Void spec (blog.kalleopinheiro.dev).
13
+ * Do not round or "approximate" — fidelity rule.
14
+ */
15
+ declare const colors: {
16
+ readonly dark: {
17
+ readonly bg: "#0A0A0C";
18
+ readonly bgElev: "#111114";
19
+ readonly surface: "#16161B";
20
+ readonly surface2: "#1C1C22";
21
+ readonly border: "rgba(255,255,255,0.08)";
22
+ readonly borderStrong: "rgba(255,255,255,0.14)";
23
+ readonly controlBorder: "#6B6B76";
24
+ readonly text: "#EDEDF0";
25
+ readonly text2: "#8B8B96";
26
+ readonly text3: "#83838F";
27
+ };
28
+ readonly light: {
29
+ readonly bg: "#F7F7F5";
30
+ readonly bgElev: "#FFFFFF";
31
+ readonly surface: "#FFFFFF";
32
+ readonly surface2: "#F2F2EF";
33
+ readonly border: "rgba(0,0,0,0.08)";
34
+ readonly borderStrong: "rgba(0,0,0,0.14)";
35
+ readonly controlBorder: "#85858E";
36
+ readonly text: "#16161B";
37
+ readonly text2: "#5A5A66";
38
+ readonly text3: "#6D6D76";
39
+ };
40
+ };
41
+ declare const accents: {
42
+ readonly cyan: "oklch(0.78 0.12 210)";
43
+ readonly violet: "oklch(0.72 0.14 295)";
44
+ readonly mint: "oklch(0.78 0.10 160)";
45
+ readonly amber: "oklch(0.78 0.12 75)";
46
+ };
47
+ type ThemeMode = keyof typeof colors;
48
+ type AccentName = keyof typeof accents;
49
+
50
+ interface ThemeContextValue {
51
+ mode: ThemeMode;
52
+ accent: AccentName;
53
+ setMode: (mode: ThemeMode) => void;
54
+ setAccent: (accent: AccentName) => void;
55
+ toggleMode: () => void;
56
+ }
57
+ interface ThemeProviderProps {
58
+ children: ReactNode;
59
+ defaultMode?: ThemeMode;
60
+ defaultAccent?: AccentName;
61
+ /** localStorage key; null disables persistence. */
62
+ storageKey?: string | null;
63
+ }
64
+ /**
65
+ * Wraps the app and drives data-theme/data-accent on <html> via the
66
+ * framework-agnostic theme manager. For zero-flash SSR, also render the
67
+ * attributes on <html> in your root layout:
68
+ * <html data-theme="dark" data-accent="cyan" suppressHydrationWarning>
69
+ */
70
+ declare function ThemeProvider({ children, defaultMode, defaultAccent, storageKey, }: ThemeProviderProps): React.JSX.Element;
71
+ declare function useTheme(): ThemeContextValue;
72
+
73
+ /**
74
+ * Every string ThemeToggle renders. Defaults are the pre-3.6 English text;
75
+ * pass translations (a plain object, so it works from a Server Component).
76
+ */
77
+ interface ThemeToggleLabels {
78
+ /** Visible text while the current theme is dark. Default `"Light"`. */
79
+ light?: string;
80
+ /** Visible text while the current theme is light. Default `"Dark"`. */
81
+ dark?: string;
82
+ /** Accessible name while dark. Default `"Switch to light theme"`. */
83
+ switchToLight?: string;
84
+ /** Accessible name while light. Default `"Switch to dark theme"`. */
85
+ switchToDark?: string;
86
+ }
87
+ declare const defaultThemeToggleLabels: Required<ThemeToggleLabels>;
88
+ interface ThemeToggleProps extends ComponentPropsWithoutRef<'button'> {
89
+ labels?: ThemeToggleLabels;
90
+ }
91
+ /**
92
+ * Dark/light toggle. Compose into <Header actions={...} />. A consumer
93
+ * `onClick` runs before the toggle (call `event.preventDefault()` to skip it),
94
+ * so persisting the choice elsewhere no longer means re-implementing this.
95
+ */
96
+ declare function ThemeToggle({ className, labels, onClick, children, ...rest }: ThemeToggleProps): React.JSX.Element;
97
+
98
+ interface CopyButtonProps extends ComponentPropsWithoutRef<'button'> {
99
+ /** Text copied to the clipboard. */
100
+ code: string;
101
+ label?: string;
102
+ copiedLabel?: string;
103
+ }
104
+ /** Copy-to-clipboard button for <CodeBlock actions={...} />. */
105
+ declare function CopyButton({ code, label, copiedLabel, className, ...rest }: CopyButtonProps): React.JSX.Element;
106
+
107
+ interface TocItem {
108
+ id: string;
109
+ label: string;
110
+ depth?: 2 | 3;
111
+ }
112
+
113
+ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
114
+ items: TocItem[];
115
+ /** IntersectionObserver rootMargin override. */
116
+ rootMargin?: string;
117
+ /** Accessible name of the `<nav>`. Defaults to `"Table of contents"`. */
118
+ label?: string;
119
+ }
120
+ /** Article table of contents with scroll-spy active state. */
121
+ declare function TableOfContents({ items, rootMargin, label, className, ...rest }: TableOfContentsProps): React.JSX.Element;
122
+
123
+ interface ReadingProgressProps extends ComponentPropsWithoutRef<'div'> {
124
+ /** Element whose scroll extent defines 100%. Defaults to the document. */
125
+ target?: HTMLElement | null;
126
+ /**
127
+ * Expose progress to assistive tech as a live `role="progressbar"`,
128
+ * updated in coarse 10% steps. Off by default: the bar is a visual aid for
129
+ * a value the user already has (their own scroll position), and a value
130
+ * that changes continuously during scroll would otherwise spam screen
131
+ * readers with `aria-valuenow` updates.
132
+ */
133
+ announce?: boolean;
134
+ /** Accessible name when `announce` is on. Defaults to `"Reading progress"`. */
135
+ label?: string;
136
+ }
137
+ /**
138
+ * Fixed top progress bar. Motion is linear by spec. The fill is driven by
139
+ * the `--sv-reading-progress` CSS var (see style.css), not React state, so
140
+ * scrolling doesn't re-render this component on every frame.
141
+ */
142
+ declare function ReadingProgress$1({ target, announce, label, className, ...rest }: ReadingProgressProps): React.JSX.Element;
143
+
144
+ /** Reports which heading id is currently active while scrolling. */
145
+ declare function useScrollSpy(ids: readonly string[], rootMargin?: string): string | null;
146
+ /**
147
+ * Reading progress of the page (or target element), in [0, 1].
148
+ *
149
+ * The visual bar is driven by the `--sv-reading-progress` CSS var (written on
150
+ * every rAF-throttled scroll tick regardless of this hook), so React state
151
+ * only needs to update when the *reported* value's bucket changes — not on
152
+ * every scroll frame. `step` sets the bucket size; the default (1, i.e. only
153
+ * the 0 and 1 buckets) keeps re-renders to a couple per page for consumers
154
+ * that don't need the numeric value, while `announce` on `<ReadingProgress>`
155
+ * passes 0.1 for a coarse 10%-step live value.
156
+ */
157
+ declare function useReadingProgress(target?: HTMLElement | null, step?: number): number;
158
+ /**
159
+ * Check if a media query matches, with safe SSR hydration.
160
+ *
161
+ * Uses `useSyncExternalStore` to provide a server snapshot (desktop/false) that
162
+ * matches during hydration without warnings. After hydration, reflects the true
163
+ * client-side media query state.
164
+ *
165
+ * @param query - Media query string, e.g. `'(min-width: 1024px)'`
166
+ * @returns boolean indicating if the media query matches
167
+ *
168
+ * @example
169
+ * const isMobile = !useMediaQuery('(min-width: 1024px)');
170
+ */
171
+ declare function useMediaQuery(query: string): boolean;
172
+
173
+ type ToastVariant = 'info' | 'success' | 'warning' | 'danger';
174
+ interface ToastAction {
175
+ label: React.ReactNode;
176
+ /** Required by the primitive: the screen-reader alternative to reaching the
177
+ * button before auto-dismiss (e.g. "Undo (Alt+U)"). */
178
+ altText: string;
179
+ onClick: () => void;
180
+ }
181
+ interface ToastOptions {
182
+ title?: React.ReactNode;
183
+ description?: React.ReactNode;
184
+ variant?: ToastVariant;
185
+ duration?: number;
186
+ action?: ToastAction;
187
+ }
188
+ interface ToastEntry extends ToastOptions {
189
+ id: string;
190
+ /** Incremented on update to force Toast.Root remount and timer restart */
191
+ version: number;
192
+ }
193
+ interface ToastHandle {
194
+ id: string;
195
+ dismiss: () => void;
196
+ update: (patch: Partial<ToastOptions>) => void;
197
+ }
198
+ interface ToastContextValue {
199
+ toast: (options: ToastOptions) => ToastHandle;
200
+ dismiss: (id: string) => void;
201
+ dismissAll: () => void;
202
+ toasts: readonly ToastEntry[];
203
+ }
204
+ declare function useToast(): ToastContextValue;
205
+ interface ToastProviderProps {
206
+ children: React.ReactNode;
207
+ duration?: number;
208
+ max?: number;
209
+ label?: string;
210
+ closeLabel?: string;
211
+ swipeDirection?: 'up' | 'down' | 'left' | 'right';
212
+ }
213
+ declare function ToastProvider({ children, duration, max, label, closeLabel, swipeDirection, }: ToastProviderProps): React.JSX.Element;
214
+
215
+ type SidebarCollapsible = 'offcanvas' | 'icon' | 'none';
216
+ interface SidebarContextValue {
217
+ open: boolean;
218
+ setOpen: (open: boolean) => void;
219
+ toggle: () => void;
220
+ isMobile: boolean;
221
+ collapsible: SidebarCollapsible;
222
+ panelId: string;
223
+ /**
224
+ * R5-02 AC-5: SidebarTrigger is a plain button, not Radix's own
225
+ * `Dialog.Trigger` (structurally it can't be — Dialog.Root only exists
226
+ * inside SidebarPanel's conditional drawer render, and SidebarTrigger is
227
+ * that component's sibling, not its child) — so Radix's built-in
228
+ * "restore focus to the trigger that opened the dialog" behavior has no
229
+ * trigger ref to restore to. SidebarPanel's Dialog.Content reads this ref
230
+ * directly in its own `onCloseAutoFocus` to do that restoration itself.
231
+ */
232
+ triggerRef: RefObject<HTMLButtonElement | null>;
233
+ }
234
+ interface SidebarProviderProps {
235
+ children: ReactNode;
236
+ defaultOpen?: boolean;
237
+ open?: boolean;
238
+ onOpenChange?: (open: boolean) => void;
239
+ collapsible?: SidebarCollapsible;
240
+ breakpoint?: number;
241
+ }
242
+ /**
243
+ * Wrapper component that provides sidebar state to the tree.
244
+ * Renders as <div class="sv-app-shell" data-state data-collapsible data-mobile>
245
+ */
246
+ declare function SidebarProvider({ children, defaultOpen, open: controlledOpen, onOpenChange, collapsible: collapsibleProp, breakpoint: breakpointProp, }: SidebarProviderProps): React.JSX.Element;
247
+ /**
248
+ * Hook to access sidebar state.
249
+ * Throws if called outside SidebarProvider.
250
+ */
251
+ declare function useSidebar(): SidebarContextValue;
252
+ /**
253
+ * R5-02: Sidebar panel that is static in-flow above breakpoint,
254
+ * drawer in portal below breakpoint.
255
+ */
256
+ interface SidebarPanelProps extends ComponentPropsWithoutRef<'aside'> {
257
+ /** Accessible title of the mobile drawer. Defaults to `"Navigation"`. */
258
+ title?: string;
259
+ /** Accessible name of the drawer's close button. Defaults to `"Close sidebar"`. */
260
+ closeLabel?: string;
261
+ }
262
+ declare const SidebarPanel: React.ForwardRefExoticComponent<SidebarPanelProps & React.RefAttributes<HTMLElement>>;
263
+ /**
264
+ * R5-02: Trigger button to open/close sidebar.
265
+ * Renders as menu icon by default, or custom children.
266
+ * aria-expanded and aria-controls are derived and override props.
267
+ */
268
+ interface SidebarTriggerProps extends ComponentPropsWithoutRef<'button'> {
269
+ /** Accessible name. Defaults to `"Toggle sidebar"`. */
270
+ label?: string;
271
+ }
272
+ declare const SidebarTrigger: React.ForwardRefExoticComponent<SidebarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
273
+ /**
274
+ * R5-04: Inset container that adjusts to sidebar state via CSS.
275
+ * Does not read context — state is read by CSS selectors on the wrapper.
276
+ */
277
+ interface SidebarInsetProps extends ComponentPropsWithoutRef<'main'> {
278
+ }
279
+ declare const SidebarInset: React.ForwardRefExoticComponent<SidebarInsetProps & React.RefAttributes<HTMLElement>>;
280
+
281
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
282
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
283
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
284
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
285
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
286
+ interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
287
+ /**
288
+ * The `X` in the corner. On by default because a modal without a pointer
289
+ * affordance to leave it is the accessibility gap this closes; `false` is for
290
+ * the deliberate case — a flow that must be resolved by an explicit choice.
291
+ */
292
+ showCloseButton?: boolean;
293
+ /**
294
+ * The close button's accessible name. Defaults to the pre-existing hardcoded
295
+ * English string so omitting it is a zero-behavior-change no-op; pass a
296
+ * translated string (e.g. `"Fechar"`) instead of disabling the button
297
+ * entirely just to avoid shipping untranslated UI.
298
+ */
299
+ closeLabel?: string;
300
+ }
301
+ declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
302
+ declare const DialogHeader: {
303
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
304
+ displayName: string;
305
+ };
306
+ declare const DialogFooter: {
307
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
308
+ displayName: string;
309
+ };
310
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
311
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
312
+
313
+ interface BottomSheetProps extends Omit<React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>, "modal"> {
314
+ }
315
+ /**
316
+ * A modal panel that rises from the bottom edge — the mobile counterpart of
317
+ * Dialog. Same Radix behavior underneath: focus is trapped, Escape and the
318
+ * overlay dismiss, focus returns to the trigger. Open state may be controlled
319
+ * (`open` + `onOpenChange`) or uncontrolled (`defaultOpen`).
320
+ */
321
+ declare const BottomSheet: ({ open: openProp, defaultOpen, onOpenChange, ...props }: BottomSheetProps) => React.JSX.Element;
322
+ declare const BottomSheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
323
+ declare const BottomSheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
324
+ declare const BottomSheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
325
+ interface BottomSheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
326
+ /**
327
+ * The visible Cancel button in the sheet's top-right corner. On by default so
328
+ * every sheet has a pointer and keyboard way out besides the handle; `false`
329
+ * is for a flow that must end with an explicit choice.
330
+ */
331
+ showCloseButton?: boolean;
332
+ /** Text of the Cancel button (also its accessible name). Blank counts as omitted. */
333
+ closeLabel?: string;
334
+ /** Drag the handle down to dismiss. On by default; `false` leaves the handle decorative. */
335
+ draggable?: boolean;
336
+ }
337
+ declare const BottomSheetContent: React.ForwardRefExoticComponent<BottomSheetContentProps & React.RefAttributes<HTMLDivElement>>;
338
+ declare const BottomSheetHeader: {
339
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
340
+ displayName: string;
341
+ };
342
+ declare const BottomSheetBody: {
343
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
344
+ displayName: string;
345
+ };
346
+ declare const BottomSheetFooter: {
347
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
348
+ displayName: string;
349
+ };
350
+ declare const BottomSheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
351
+ declare const BottomSheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
352
+
353
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
354
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
355
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
356
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
357
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
358
+ declare const AlertDialogHeader: {
359
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
360
+ displayName: string;
361
+ };
362
+ declare const AlertDialogFooter: {
363
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
364
+ displayName: string;
365
+ };
366
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
367
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
368
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
369
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
370
+
371
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
372
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
373
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
374
+ /**
375
+ * `icon` is the same contract on every member that owns an indicator slot
376
+ * (CLIENT-14): omit it and the system icon renders, pass a node and that node
377
+ * takes the slot, pass `null` and nothing is rendered at all so the slot
378
+ * collapses. `null` has to be distinguishable from "omitted", which is why the
379
+ * default lives in the parameter — a default only fires on `undefined`.
380
+ */
381
+ interface SelectTriggerProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> {
382
+ icon?: React.ReactNode;
383
+ }
384
+ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
385
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
386
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
387
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
388
+ interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
389
+ icon?: React.ReactNode;
390
+ }
391
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
392
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
393
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
394
+
395
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
396
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
397
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
398
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
399
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
400
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
401
+ /**
402
+ * `icon` is the same contract as Select's (CLIENT-14): omit it and the system
403
+ * icon renders, pass a node and that node takes the slot, pass `null` and the
404
+ * slot collapses. The default lives in the parameter, not a fallback
405
+ * expression, so it only fires on `undefined` — `null` has to stay `null`.
406
+ */
407
+ interface DropdownMenuSubTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> {
408
+ inset?: boolean;
409
+ icon?: React.ReactNode;
410
+ }
411
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
412
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
413
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
414
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
415
+ inset?: boolean;
416
+ } & React.RefAttributes<HTMLDivElement>>;
417
+ interface DropdownMenuCheckboxItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem> {
418
+ icon?: React.ReactNode;
419
+ }
420
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
421
+ interface DropdownMenuRadioItemProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> {
422
+ icon?: React.ReactNode;
423
+ }
424
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
425
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
426
+ inset?: boolean;
427
+ } & React.RefAttributes<HTMLDivElement>>;
428
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
429
+ declare const DropdownMenuShortcut: {
430
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
431
+ displayName: string;
432
+ };
433
+
434
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
435
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
436
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
437
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
438
+
439
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
440
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
441
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
442
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
443
+
444
+ interface ComboboxOption {
445
+ value: string;
446
+ label: string;
447
+ /** Secondary line under the label (e-mail, phone…). */
448
+ description?: string;
449
+ disabled?: boolean;
450
+ }
451
+ interface ComboboxLabels {
452
+ /** Shown while `onSearch` is pending. */
453
+ loading: string;
454
+ /** Shown when a search returns no options. */
455
+ empty: string;
456
+ /** Shown while the term is shorter than `minLength`. */
457
+ minLength: (min: number) => string;
458
+ /** Shown when `onSearch` rejects. */
459
+ error: string;
460
+ /** Announced to screen readers when options arrive. */
461
+ results: (count: number) => string;
462
+ }
463
+ declare const defaultComboboxLabels: ComboboxLabels;
464
+ interface ComboboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "onChange" | "onSelect" | "type" | "role"> {
465
+ /**
466
+ * Returns the options for a term. Called after `debounceMs` of quiet typing,
467
+ * once the term has `minLength` characters. The `signal` aborts when a newer
468
+ * search starts or the component unmounts — pass it to `fetch`.
469
+ */
470
+ onSearch: (term: string, context: {
471
+ signal: AbortSignal;
472
+ }) => Promise<ComboboxOption[]> | ComboboxOption[];
473
+ /** Called with the picked option, or `null` when the user edits the text after picking. */
474
+ onSelect?: (option: ComboboxOption | null) => void;
475
+ /** Controlled selection. */
476
+ value?: ComboboxOption | null;
477
+ /** Initial selection when uncontrolled. */
478
+ defaultValue?: ComboboxOption | null;
479
+ /** Characters needed before searching. Default 1. */
480
+ minLength?: number;
481
+ /** Quiet time before a search, in ms. Default 250. */
482
+ debounceMs?: number;
483
+ /** Translatable status texts (defaults in English). */
484
+ labels?: Partial<ComboboxLabels>;
485
+ /** Class for the wrapper; `className` goes on the input. */
486
+ wrapperClassName?: string;
487
+ }
488
+ /**
489
+ * Text field with an asynchronous list of options (ARIA 1.2 combobox with a
490
+ * listbox popup). For lists too long to load up front — e.g. picking one
491
+ * patient out of thousands — where `Select`/`NativeSelect` need every option
492
+ * in memory. Keyboard: ↓/↑ move, Enter picks, Escape closes (and clears on a
493
+ * second press). With `name`, a hidden input submits the picked `value`.
494
+ */
495
+ declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
496
+
497
+ interface ThemeState {
498
+ mode: ThemeMode;
499
+ accent: AccentName;
500
+ }
501
+ interface ThemeManagerOptions {
502
+ /** Element receiving data-theme / data-accent. Defaults to <html>. */
503
+ root?: HTMLElement;
504
+ defaultMode?: ThemeMode;
505
+ defaultAccent?: AccentName;
506
+ /** localStorage key. Pass null to disable persistence. */
507
+ storageKey?: string | null;
508
+ }
509
+ interface ThemeManager {
510
+ getState: () => ThemeState;
511
+ setMode: (mode: ThemeMode) => void;
512
+ setAccent: (accent: AccentName) => void;
513
+ toggleMode: () => void;
514
+ subscribe: (listener: (state: ThemeState) => void) => () => void;
515
+ destroy: () => void;
516
+ }
517
+ declare const DEFAULT_STORAGE_KEY = "still-void-theme";
518
+ /**
519
+ * Framework-agnostic theme controller. Applies `data-theme` and `data-accent`
520
+ * attributes; theme.css does the rest via CSS vars. If the server already
521
+ * rendered the attributes (RSC/SSR), those win over defaults, so there is
522
+ * no flash of wrong theme.
523
+ */
524
+ declare function createThemeManager(options?: ThemeManagerOptions): ThemeManager;
525
+
526
+ interface ScrollSpyOptions {
527
+ /** Called whenever the active heading changes. `null` when none is visible. */
528
+ onChange: (activeId: string | null) => void;
529
+ /** Forwarded to IntersectionObserver. Default biases toward the reading line. */
530
+ rootMargin?: string;
531
+ threshold?: number | number[];
532
+ }
533
+ interface ScrollSpy {
534
+ destroy: () => void;
535
+ }
536
+ /**
537
+ * Watches headings by id and reports which one is active.
538
+ * Framework-agnostic core used by the React TableOfContents.
539
+ */
540
+ declare function createScrollSpy(ids: readonly string[], options: ScrollSpyOptions): ScrollSpy;
541
+
542
+ /**
543
+ * Source external state (media query match) for React's useSyncExternalStore.
544
+ * Framework-agnostic core used by useMediaQuery.
545
+ */
546
+ interface MediaQueryController {
547
+ /** Get current media query match state. */
548
+ getSnapshot(): boolean;
549
+ /** Subscribe to changes. Returns unsubscribe function. */
550
+ subscribe(listener: () => void): () => void;
551
+ /** Cleanup: remove all listeners. */
552
+ destroy(): void;
553
+ }
554
+ /**
555
+ * Create a media query controller that notifies listeners on transitions.
556
+ * If matchMedia is unavailable, returns an inert controller (always false, subscribe is no-op).
557
+ *
558
+ * @example
559
+ * const mq = createMediaQuery('(min-width: 1024px)');
560
+ * const unsubscribe = mq.subscribe(() => console.log('changed'));
561
+ * console.log(mq.getSnapshot()); // boolean
562
+ * unsubscribe();
563
+ * mq.destroy();
564
+ */
565
+ declare function createMediaQuery(query: string): MediaQueryController;
566
+
567
+ interface ReadingProgressOptions {
568
+ /** Element whose scroll extent defines 100%. Defaults to the document. */
569
+ target?: HTMLElement;
570
+ /** Receives progress in [0, 1]. */
571
+ onChange?: (percent: number) => void;
572
+ /** Element that receives the CSS var (default: <html>). Pass null to skip. */
573
+ varTarget?: HTMLElement | null;
574
+ }
575
+ interface ReadingProgress {
576
+ getPercent: () => number;
577
+ destroy: () => void;
578
+ }
579
+ /**
580
+ * Tracks document (or element) reading progress. Writes the
581
+ * `--sv-reading-progress` CSS var consumed by `.sv-reading-progress__bar`.
582
+ */
583
+ declare function createReadingProgress(options?: ReadingProgressOptions): ReadingProgress;
584
+
585
+ /** Copy text to the clipboard. Returns false when the Clipboard API is unavailable or denied. */
586
+ declare function copyToClipboard(text: string): Promise<boolean>;
587
+
588
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, BottomSheet, BottomSheetBody, BottomSheetClose, BottomSheetContent, type BottomSheetContentProps, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetOverlay, type BottomSheetProps, BottomSheetTitle, BottomSheetTrigger, Combobox, type ComboboxLabels, type ComboboxOption, type ComboboxProps, CopyButton, type CopyButtonProps, DEFAULT_STORAGE_KEY, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type MediaQueryController, ReadingProgress$1 as ReadingProgress, type ReadingProgress as ReadingProgressController, type ReadingProgressOptions, type ReadingProgressProps, type ScrollSpy, type ScrollSpyOptions, Select, SelectContent, SelectGroup, SelectItem, type SelectItemProps, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, type SidebarCollapsible, type SidebarContextValue, SidebarInset, type SidebarInsetProps, SidebarPanel, type SidebarPanelProps, SidebarProvider, type SidebarProviderProps, SidebarTrigger, type SidebarTriggerProps, TableOfContents, type TableOfContentsProps, Tabs, TabsContent, TabsList, TabsTrigger, type ThemeContextValue, type ThemeManager, type ThemeManagerOptions, ThemeProvider, type ThemeProviderProps, type ThemeState, ThemeToggle, type ThemeToggleLabels, type ThemeToggleProps, type ToastAction, type ToastEntry, type ToastHandle, type ToastOptions, ToastProvider, type ToastProviderProps, type ToastVariant, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, copyToClipboard, createMediaQuery, createReadingProgress, createScrollSpy, createThemeManager, defaultComboboxLabels, defaultThemeToggleLabels, useMediaQuery, useReadingProgress, useScrollSpy, useSidebar, useTheme, useToast };