@ctrl-ui/react 0.8.1 → 0.8.4

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 (377) hide show
  1. package/README.md +32 -23
  2. package/dist/action-bar.d.ts +11 -12
  3. package/dist/activity.d.ts +24 -25
  4. package/dist/audio-recorder.d.ts +16 -16
  5. package/dist/audio-visualizer.d.ts +3 -4
  6. package/dist/blocks/chat.d.ts +3 -4
  7. package/dist/blocks/chat.js +6 -3
  8. package/dist/blocks/coding-agent.d.ts +11 -12
  9. package/dist/blocks/coding-agent.js +10 -9
  10. package/dist/blocks/file-explorer-data.d.ts +11 -12
  11. package/dist/blocks/file-explorer.d.ts +3 -3
  12. package/dist/blocks/settings-data.d.ts +8 -9
  13. package/dist/blocks/settings.d.ts +4 -4
  14. package/dist/blocks/theme-toggle.d.ts +11 -12
  15. package/dist/blocks/theme-toggle.js +14 -4
  16. package/dist/chat-composer-attachment.d.ts +20 -21
  17. package/dist/chat-composer-attachment.js +24 -20
  18. package/dist/chat-composer-editor/extensions/mention.d.ts +5 -6
  19. package/dist/chat-composer-editor/ghost.d.ts +3 -4
  20. package/dist/chat-composer-editor/schema.d.ts +2 -3
  21. package/dist/chat-composer-editor/serialize.d.ts +3 -4
  22. package/dist/chat-composer-editor/types.d.ts +5 -6
  23. package/dist/chat-composer-editor.d.ts +2 -3
  24. package/dist/chat-composer-editor.js +18 -4
  25. package/dist/chat-composer.d.ts +17 -18
  26. package/dist/chat-composer.js +14 -8
  27. package/dist/chat-layout.d.ts +12 -21
  28. package/dist/chat-layout.js +28 -83
  29. package/dist/chat-message.d.ts +14 -15
  30. package/dist/context-model.d.ts +7 -8
  31. package/dist/context.d.ts +21 -22
  32. package/dist/control-props.d.ts +10 -11
  33. package/dist/control-variants.d.ts +6 -7
  34. package/dist/dynamic-notification-glass.d.ts +3 -4
  35. package/dist/dynamic-notification-liquid.d.ts +3 -4
  36. package/dist/dynamic-notification-siri-wave.d.ts +2 -3
  37. package/dist/dynamic-notification.d.ts +28 -29
  38. package/dist/email/email.d.ts +6 -7
  39. package/dist/email/email.js +12 -3
  40. package/dist/email/length.d.ts +3 -0
  41. package/dist/email/length.js +34 -0
  42. package/dist/email/templates.d.ts +7 -8
  43. package/dist/email/templates.js +5 -5
  44. package/dist/email/theme.d.ts +16 -5
  45. package/dist/email/theme.js +21 -6
  46. package/dist/environment-variables.d.ts +35 -36
  47. package/dist/extensions/create-track-highlight.d.ts +3 -4
  48. package/dist/extensions/supports-anchor-transitions.d.ts +2 -3
  49. package/dist/extensions/track-highlight.d.ts +3 -4
  50. package/dist/hooks/use-audio-recorder.d.ts +14 -15
  51. package/dist/hooks/use-chat-composer.d.ts +5 -6
  52. package/dist/hooks/use-chat-message.d.ts +7 -8
  53. package/dist/hooks/use-color-area.d.ts +5 -6
  54. package/dist/hooks/use-copy-to-clipboard.d.ts +7 -8
  55. package/dist/hooks/use-dropzone.d.ts +11 -12
  56. package/dist/hooks/use-dynamic-notification.d.ts +6 -7
  57. package/dist/hooks/use-environment-variables.d.ts +9 -10
  58. package/dist/hooks/use-keyboard-navigation.d.ts +3 -0
  59. package/dist/hooks/use-keyboard-navigation.js +22 -0
  60. package/dist/hooks/use-mobile.d.ts +2 -3
  61. package/dist/hooks/use-textarea-trigger-menu.d.ts +2 -3
  62. package/dist/hooks/use-trigger-menu.d.ts +7 -8
  63. package/dist/hooks/use-user-ask.d.ts +6 -7
  64. package/dist/inline-attachment.d.ts +16 -17
  65. package/dist/inline-citation.d.ts +22 -23
  66. package/dist/knob-contracts/accordion-knobs.d.ts +3 -4
  67. package/dist/knob-contracts/accordion-knobs.js +1 -0
  68. package/dist/knob-contracts/action-bar-knobs.d.ts +3 -4
  69. package/dist/knob-contracts/activity-knobs.d.ts +3 -4
  70. package/dist/knob-contracts/alert-knobs.d.ts +3 -4
  71. package/dist/knob-contracts/alert-knobs.js +12 -1
  72. package/dist/knob-contracts/audio-recorder-knobs.d.ts +3 -4
  73. package/dist/knob-contracts/audio-visualizer-knobs.d.ts +3 -4
  74. package/dist/knob-contracts/avatar-knobs.d.ts +3 -4
  75. package/dist/knob-contracts/avatar-knobs.js +2 -1
  76. package/dist/knob-contracts/badge-knobs.d.ts +3 -4
  77. package/dist/knob-contracts/button-group-knobs.d.ts +3 -4
  78. package/dist/knob-contracts/button-knobs.d.ts +3 -4
  79. package/dist/knob-contracts/button-knobs.js +1 -0
  80. package/dist/knob-contracts/calendar-knobs.d.ts +3 -4
  81. package/dist/knob-contracts/card-knobs.d.ts +3 -4
  82. package/dist/knob-contracts/chat-composer-attachment-knobs.d.ts +3 -4
  83. package/dist/knob-contracts/chat-composer-attachment-knobs.js +3 -1
  84. package/dist/knob-contracts/chat-composer-knobs.d.ts +3 -4
  85. package/dist/knob-contracts/chat-composer-knobs.js +1 -0
  86. package/dist/knob-contracts/chat-layout-knobs.d.ts +3 -4
  87. package/dist/knob-contracts/chat-layout-knobs.js +2 -3
  88. package/dist/knob-contracts/chat-message-knobs.d.ts +3 -4
  89. package/dist/knob-contracts/choice-knobs.d.ts +3 -4
  90. package/dist/knob-contracts/choice-knobs.js +2 -1
  91. package/dist/knob-contracts/code-diff-knobs.d.ts +3 -4
  92. package/dist/knob-contracts/code-diff-knobs.js +1 -0
  93. package/dist/knob-contracts/code-knobs.d.ts +3 -4
  94. package/dist/knob-contracts/code-knobs.js +3 -1
  95. package/dist/knob-contracts/collapsible-knobs.d.ts +3 -4
  96. package/dist/knob-contracts/color-picker-knobs.d.ts +3 -4
  97. package/dist/knob-contracts/context-knobs.d.ts +3 -4
  98. package/dist/knob-contracts/dockable-panel-knobs.d.ts +3 -4
  99. package/dist/knob-contracts/dockable-panel-knobs.js +1 -0
  100. package/dist/knob-contracts/dropzone-knobs.d.ts +3 -4
  101. package/dist/knob-contracts/dropzone-knobs.js +1 -0
  102. package/dist/knob-contracts/dynamic-notification-knobs.d.ts +3 -4
  103. package/dist/knob-contracts/empty-knobs.d.ts +3 -4
  104. package/dist/knob-contracts/empty-knobs.js +14 -1
  105. package/dist/knob-contracts/environment-variables-knobs.d.ts +3 -4
  106. package/dist/knob-contracts/environment-variables-knobs.js +2 -1
  107. package/dist/knob-contracts/field-knobs.d.ts +3 -4
  108. package/dist/knob-contracts/gradient-editor-knobs.d.ts +3 -4
  109. package/dist/knob-contracts/gradient-editor-knobs.js +3 -1
  110. package/dist/knob-contracts/infinite-canvas-knobs.d.ts +3 -4
  111. package/dist/knob-contracts/inline-attachment-knobs.d.ts +3 -4
  112. package/dist/knob-contracts/inline-attachment-knobs.js +2 -1
  113. package/dist/knob-contracts/inline-citation-knobs.d.ts +3 -4
  114. package/dist/knob-contracts/inline-citation-knobs.js +1 -0
  115. package/dist/knob-contracts/item-knobs.d.ts +3 -4
  116. package/dist/knob-contracts/kbd-knobs.d.ts +3 -4
  117. package/dist/knob-contracts/markdown-block-knobs.d.ts +3 -4
  118. package/dist/knob-contracts/markdown-block-knobs.js +2 -0
  119. package/dist/knob-contracts/markdown-knobs.d.ts +3 -4
  120. package/dist/knob-contracts/markdown-knobs.js +1 -0
  121. package/dist/knob-contracts/morphing-panel-knobs.d.ts +3 -4
  122. package/dist/knob-contracts/pagination-knobs.d.ts +3 -4
  123. package/dist/knob-contracts/phone-input-knobs.d.ts +3 -4
  124. package/dist/knob-contracts/phone-input-knobs.js +1 -0
  125. package/dist/knob-contracts/popup-knobs.d.ts +3 -4
  126. package/dist/knob-contracts/progressive-blur-knobs.d.ts +3 -4
  127. package/dist/knob-contracts/progressive-blur-knobs.js +1 -0
  128. package/dist/knob-contracts/range-knobs.d.ts +3 -4
  129. package/dist/knob-contracts/resizable-knobs.d.ts +3 -4
  130. package/dist/knob-contracts/resizable-knobs.js +1 -0
  131. package/dist/knob-contracts/rich-tooltip-knobs.d.ts +3 -4
  132. package/dist/knob-contracts/scroll-area-knobs.d.ts +3 -4
  133. package/dist/knob-contracts/separator-knobs.d.ts +3 -4
  134. package/dist/knob-contracts/sidebar-knobs.d.ts +3 -4
  135. package/dist/knob-contracts/sidebar-knobs.js +1 -0
  136. package/dist/knob-contracts/skeleton-knobs.d.ts +3 -4
  137. package/dist/knob-contracts/skeleton-knobs.js +9 -1
  138. package/dist/knob-contracts/source-badge-knobs.d.ts +3 -4
  139. package/dist/knob-contracts/spinner-knobs.d.ts +3 -4
  140. package/dist/knob-contracts/stepper-knobs.d.ts +3 -4
  141. package/dist/knob-contracts/stepper-knobs.js +1 -0
  142. package/dist/knob-contracts/switch-knobs.d.ts +3 -4
  143. package/dist/knob-contracts/switch-knobs.js +7 -1
  144. package/dist/knob-contracts/table-knobs.d.ts +3 -4
  145. package/dist/knob-contracts/table-of-contents-knobs.d.ts +3 -4
  146. package/dist/knob-contracts/table-of-contents-knobs.js +25 -0
  147. package/dist/knob-contracts/tabs-knobs.d.ts +3 -4
  148. package/dist/knob-contracts/tabs-knobs.js +2 -1
  149. package/dist/knob-contracts/task-list-knobs.d.ts +3 -4
  150. package/dist/knob-contracts/task-list-knobs.js +1 -0
  151. package/dist/knob-contracts/thread-rail-knobs.d.ts +3 -4
  152. package/dist/knob-contracts/timeline-knobs.d.ts +3 -4
  153. package/dist/knob-contracts/toolbar-knobs.d.ts +3 -4
  154. package/dist/knob-contracts/toolbar-knobs.js +1 -0
  155. package/dist/knob-contracts/track-highlight-knobs.d.ts +3 -4
  156. package/dist/knob-contracts/transcript-divider-knobs.d.ts +3 -4
  157. package/dist/knob-contracts/tree-knobs.d.ts +3 -4
  158. package/dist/knob-contracts/user-ask-knobs.d.ts +3 -4
  159. package/dist/knob-contracts/user-ask-knobs.js +1 -0
  160. package/dist/lib/cn.d.ts +2 -3
  161. package/dist/lib/code-tokens.d.ts +12 -13
  162. package/dist/lib/color.d.ts +26 -27
  163. package/dist/lib/contrast.d.ts +12 -13
  164. package/dist/lib/diff.d.ts +14 -15
  165. package/dist/lib/dropzone-validation.d.ts +25 -26
  166. package/dist/lib/env-file.d.ts +12 -13
  167. package/dist/lib/format-audio-recorder-duration.d.ts +2 -3
  168. package/dist/lib/liquid-glass-optics.d.ts +2 -3
  169. package/dist/lib/phone-input-format.d.ts +3 -4
  170. package/dist/lib/phone-input-format.js +1 -1
  171. package/dist/lib/phone-number.d.ts +8 -9
  172. package/dist/lib/trigger-detect.d.ts +4 -5
  173. package/dist/markdown-block.d.ts +11 -12
  174. package/dist/scripts/contrast-eval.d.ts +16 -17
  175. package/dist/scripts/contrast-eval.js +13 -7
  176. package/dist/skin-provider.d.ts +14 -0
  177. package/dist/skin-provider.js +21 -0
  178. package/dist/skin.d.ts +14 -33
  179. package/dist/skin.js +3 -46
  180. package/dist/source-badge.d.ts +7 -8
  181. package/dist/styles/index.css +2 -4
  182. package/dist/styles/recipes/accordion.css +8 -2
  183. package/dist/styles/recipes/action-bar.css +5 -2
  184. package/dist/styles/recipes/alert.css +95 -16
  185. package/dist/styles/recipes/avatar.css +17 -1
  186. package/dist/styles/recipes/badge.css +0 -1
  187. package/dist/styles/recipes/button.css +34 -8
  188. package/dist/styles/recipes/calendar.css +0 -6
  189. package/dist/styles/recipes/chat-composer-attachment.css +51 -53
  190. package/dist/styles/recipes/chat-composer.css +26 -21
  191. package/dist/styles/recipes/chat-layout.css +21 -62
  192. package/dist/styles/recipes/chat-message.css +11 -5
  193. package/dist/styles/recipes/choice.css +9 -2
  194. package/dist/styles/recipes/code-diff.css +8 -1
  195. package/dist/styles/recipes/code.css +39 -17
  196. package/dist/styles/recipes/collapsible.css +0 -3
  197. package/dist/styles/recipes/color-picker-details.css +1 -2
  198. package/dist/styles/recipes/color-picker-values.css +0 -4
  199. package/dist/styles/recipes/dockable-panel.css +8 -1
  200. package/dist/styles/recipes/dropzone.css +9 -2
  201. package/dist/styles/recipes/empty.css +118 -17
  202. package/dist/styles/recipes/environment-variables.css +8 -1
  203. package/dist/styles/recipes/field-parts.css +1 -6
  204. package/dist/styles/recipes/field.css +9 -5
  205. package/dist/styles/recipes/gradient-editor.css +16 -5
  206. package/dist/styles/recipes/inline-attachment.css +13 -8
  207. package/dist/styles/recipes/inline-citation.css +8 -4
  208. package/dist/styles/recipes/item.css +1 -1
  209. package/dist/styles/recipes/kbd.css +8 -0
  210. package/dist/styles/recipes/markdown-block.css +16 -2
  211. package/dist/styles/recipes/markdown.css +12 -0
  212. package/dist/styles/recipes/morphing-panel.css +1 -1
  213. package/dist/styles/recipes/pagination.css +0 -4
  214. package/dist/styles/recipes/phone-input.css +8 -4
  215. package/dist/styles/recipes/popup-lists.css +11 -0
  216. package/dist/styles/recipes/popup-toast.css +1 -29
  217. package/dist/styles/recipes/popup.css +2 -2
  218. package/dist/styles/recipes/progressive-blur.css +28 -7
  219. package/dist/styles/recipes/range.css +50 -1
  220. package/dist/styles/recipes/resizable.css +8 -10
  221. package/dist/styles/recipes/rich-tooltip.css +0 -4
  222. package/dist/styles/recipes/scroll-area.css +8 -2
  223. package/dist/styles/recipes/sidebar-menu.css +150 -0
  224. package/dist/styles/recipes/sidebar.css +56 -110
  225. package/dist/styles/recipes/skeleton.css +85 -3
  226. package/dist/styles/recipes/source-badge.css +0 -3
  227. package/dist/styles/recipes/stepper.css +8 -1
  228. package/dist/styles/recipes/switch.css +89 -17
  229. package/dist/styles/recipes/table-of-contents.css +211 -45
  230. package/dist/styles/recipes/table.css +0 -1
  231. package/dist/styles/recipes/tabs.css +19 -2
  232. package/dist/styles/recipes/task-list.css +8 -2
  233. package/dist/styles/recipes/thread-rail.css +0 -4
  234. package/dist/styles/recipes/toolbar.css +18 -4
  235. package/dist/styles/recipes/track-highlight.css +63 -5
  236. package/dist/styles/recipes/tree.css +2 -0
  237. package/dist/styles/recipes/user-ask.css +8 -4
  238. package/dist/styles/theme.css +130 -138
  239. package/dist/surface-variants.d.ts +4 -5
  240. package/dist/task-list.d.ts +16 -17
  241. package/dist/thread-rail.d.ts +21 -22
  242. package/dist/transcript-divider.d.ts +6 -7
  243. package/dist/ui/accordion.d.ts +10 -11
  244. package/dist/ui/alert-dialog.d.ts +11 -12
  245. package/dist/ui/alert-dialog.js +8 -6
  246. package/dist/ui/alert.d.ts +9 -10
  247. package/dist/ui/alert.js +3 -3
  248. package/dist/ui/aspect-ratio.d.ts +3 -4
  249. package/dist/ui/autocomplete.d.ts +19 -20
  250. package/dist/ui/autocomplete.js +5 -3
  251. package/dist/ui/avatar.d.ts +9 -10
  252. package/dist/ui/badge.d.ts +9 -10
  253. package/dist/ui/button-group.d.ts +7 -8
  254. package/dist/ui/button-group.js +3 -2
  255. package/dist/ui/button.d.ts +17 -18
  256. package/dist/ui/button.js +20 -5
  257. package/dist/ui/calendar.d.ts +3 -4
  258. package/dist/ui/card.d.ts +16 -17
  259. package/dist/ui/checkbox-group.d.ts +4 -5
  260. package/dist/ui/checkbox-group.js +3 -2
  261. package/dist/ui/checkbox.d.ts +3 -4
  262. package/dist/ui/code-diff.d.ts +8 -9
  263. package/dist/ui/code.d.ts +32 -23
  264. package/dist/ui/code.js +41 -20
  265. package/dist/ui/collapsible.d.ts +7 -8
  266. package/dist/ui/color-picker.d.ts +40 -41
  267. package/dist/ui/color-picker.js +5 -3
  268. package/dist/ui/combobox-disabled-selection.d.ts +3 -4
  269. package/dist/ui/combobox.d.ts +21 -20
  270. package/dist/ui/combobox.js +5 -3
  271. package/dist/ui/command.d.ts +19 -18
  272. package/dist/ui/command.js +38 -12
  273. package/dist/ui/context-menu.d.ts +30 -31
  274. package/dist/ui/context-menu.js +8 -5
  275. package/dist/ui/dialog.d.ts +13 -13
  276. package/dist/ui/dialog.js +10 -8
  277. package/dist/ui/dockable-panel-geometry.d.ts +7 -8
  278. package/dist/ui/dockable-panel.d.ts +21 -22
  279. package/dist/ui/drawer.d.ts +17 -18
  280. package/dist/ui/drawer.js +7 -6
  281. package/dist/ui/dropdown-menu.d.ts +36 -29
  282. package/dist/ui/dropdown-menu.js +116 -9
  283. package/dist/ui/dropzone.d.ts +24 -24
  284. package/dist/ui/empty.d.ts +14 -14
  285. package/dist/ui/empty.js +3 -3
  286. package/dist/ui/field.d.ts +26 -27
  287. package/dist/ui/form.d.ts +4 -5
  288. package/dist/ui/gradient-editor.d.ts +16 -17
  289. package/dist/ui/hover-card.d.ts +6 -7
  290. package/dist/ui/hover-card.js +5 -3
  291. package/dist/ui/infinite-canvas.d.ts +11 -12
  292. package/dist/ui/input-group.d.ts +6 -7
  293. package/dist/ui/input-otp.d.ts +7 -8
  294. package/dist/ui/input.d.ts +3 -4
  295. package/dist/ui/item.d.ts +20 -21
  296. package/dist/ui/kbd.d.ts +7 -5
  297. package/dist/ui/kbd.js +4 -2
  298. package/dist/ui/markdown-elements.d.ts +20 -21
  299. package/dist/ui/markdown.d.ts +5 -6
  300. package/dist/ui/menubar.d.ts +25 -26
  301. package/dist/ui/menubar.js +8 -5
  302. package/dist/ui/meter.d.ts +11 -12
  303. package/dist/ui/morphing-panel.d.ts +8 -9
  304. package/dist/ui/native-select.d.ts +3 -4
  305. package/dist/ui/native-select.js +1 -1
  306. package/dist/ui/navigation-menu.d.ts +17 -18
  307. package/dist/ui/navigation-menu.js +5 -3
  308. package/dist/ui/number-field.d.ts +15 -16
  309. package/dist/ui/pagination.d.ts +10 -11
  310. package/dist/ui/phone-input.d.ts +5 -6
  311. package/dist/ui/phone-input.js +40 -37
  312. package/dist/ui/popover.d.ts +11 -12
  313. package/dist/ui/popover.js +5 -3
  314. package/dist/ui/progress.d.ts +11 -12
  315. package/dist/ui/progressive-blur.d.ts +4 -5
  316. package/dist/ui/radio-group.d.ts +5 -6
  317. package/dist/ui/resizable.d.ts +12 -13
  318. package/dist/ui/responsive-dialog.d.ts +11 -12
  319. package/dist/ui/rich-tooltip-tour.d.ts +5 -6
  320. package/dist/ui/rich-tooltip.d.ts +21 -23
  321. package/dist/ui/rich-tooltip.js +5 -5
  322. package/dist/ui/scroll-area.d.ts +7 -8
  323. package/dist/ui/scroll-area.js +9 -6
  324. package/dist/ui/select.d.ts +21 -14
  325. package/dist/ui/select.js +7 -4
  326. package/dist/ui/separator.d.ts +2 -3
  327. package/dist/ui/sheet.d.ts +8 -9
  328. package/dist/ui/sheet.js +7 -5
  329. package/dist/ui/sidebar-menu.d.ts +24 -15
  330. package/dist/ui/sidebar-menu.js +30 -4
  331. package/dist/ui/sidebar-provider.d.ts +32 -7
  332. package/dist/ui/sidebar-provider.js +82 -22
  333. package/dist/ui/sidebar-resize-rail.d.ts +8 -0
  334. package/dist/ui/sidebar-resize-rail.js +192 -0
  335. package/dist/ui/sidebar.d.ts +20 -14
  336. package/dist/ui/sidebar.js +122 -57
  337. package/dist/ui/skeleton.d.ts +7 -4
  338. package/dist/ui/skeleton.js +9 -2
  339. package/dist/ui/slider.d.ts +6 -5
  340. package/dist/ui/slider.js +16 -13
  341. package/dist/ui/spinner.d.ts +3 -4
  342. package/dist/ui/stepper.d.ts +22 -23
  343. package/dist/ui/switch.d.ts +3 -4
  344. package/dist/ui/switch.js +12 -1
  345. package/dist/ui/table-of-contents.d.ts +7 -8
  346. package/dist/ui/table-of-contents.js +4 -2
  347. package/dist/ui/table.d.ts +17 -18
  348. package/dist/ui/tabs.d.ts +14 -11
  349. package/dist/ui/textarea.d.ts +3 -4
  350. package/dist/ui/timeline.d.ts +18 -19
  351. package/dist/ui/toast.d.ts +9 -9
  352. package/dist/ui/toast.js +21 -14
  353. package/dist/ui/toggle.d.ts +5 -6
  354. package/dist/ui/toggle.js +3 -2
  355. package/dist/ui/toolbar.d.ts +15 -16
  356. package/dist/ui/toolbar.js +15 -4
  357. package/dist/ui/tooltip.d.ts +6 -13
  358. package/dist/ui/tooltip.js +7 -8
  359. package/dist/ui/tree.d.ts +18 -19
  360. package/dist/ui/tree.js +3 -2
  361. package/dist/ui/trigger-menu.d.ts +15 -16
  362. package/dist/ui/trigger-menu.js +5 -3
  363. package/dist/ui/use-switch-drag.d.ts +7 -0
  364. package/dist/ui/use-switch-drag.js +104 -0
  365. package/dist/user-ask.d.ts +24 -25
  366. package/package.json +15 -15
  367. package/dist/code-block-editor.d.ts +0 -59
  368. package/dist/code-block-editor.js +0 -250
  369. package/dist/knob-contracts/code-block-editor-knobs.d.ts +0 -5
  370. package/dist/knob-contracts/code-block-editor-knobs.js +0 -11
  371. package/dist/lib/code-block-shiki.d.ts +0 -9
  372. package/dist/lib/code-block-shiki.js +0 -6
  373. package/dist/skin.config.d.ts +0 -5
  374. package/dist/skin.config.js +0 -12
  375. package/dist/styles/recipes/code-block-editor.css +0 -136
  376. package/dist/styles/skin-theme.css +0 -137
  377. package/dist/styles/skin.css +0 -143
@@ -2,12 +2,12 @@ import { FormSubmitEvent, OpenChangeEventDetails, OpenChangeReason } from "../co
2
2
  import { DynamicNotificationKnobStyle } from "../knob-contracts/dynamic-notification-knobs.js";
3
3
  import { CSSProperties, ComponentProps } from "react";
4
4
  //#region src/hooks/use-dynamic-notification.d.ts
5
- type DynamicNotificationVariant = "surface" | "glass" | "liquid";
6
- type DynamicNotificationReplyPayload = {
5
+ export type DynamicNotificationVariant = "surface" | "glass" | "liquid";
6
+ export type DynamicNotificationReplyPayload = {
7
7
  value: string;
8
8
  clear: () => void;
9
9
  };
10
- type DynamicNotificationProps = Omit<ComponentProps<"div">, "onChange" | "style"> & {
10
+ export type DynamicNotificationProps = Omit<ComponentProps<"div">, "onChange" | "style"> & {
11
11
  open?: boolean;
12
12
  defaultOpen?: boolean;
13
13
  onOpenChange?: (open: boolean, eventDetails: OpenChangeEventDetails) => void;
@@ -20,7 +20,7 @@ type DynamicNotificationProps = Omit<ComponentProps<"div">, "onChange" | "style"
20
20
  disabled?: boolean;
21
21
  style?: CSSProperties & DynamicNotificationKnobStyle;
22
22
  };
23
- type DynamicNotificationController = {
23
+ export type DynamicNotificationController = {
24
24
  open: boolean;
25
25
  disabled: boolean;
26
26
  setOpen: (nextOpen: boolean, reason: OpenChangeReason, event: Event, trigger?: Element) => void;
@@ -32,6 +32,5 @@ type DynamicNotificationController = {
32
32
  submitReply: () => void;
33
33
  handleReplySubmit: (event: FormSubmitEvent) => void;
34
34
  };
35
- declare function useDynamicNotification({ open, defaultOpen, onOpenChange, replyValue, defaultReplyValue, onReplyValueChange, onReply, disabled }: Pick<DynamicNotificationProps, "open" | "defaultOpen" | "onOpenChange" | "replyValue" | "defaultReplyValue" | "onReplyValueChange" | "onReply" | "disabled">): DynamicNotificationController;
36
- //#endregion
37
- export { DynamicNotificationController, DynamicNotificationProps, DynamicNotificationReplyPayload, DynamicNotificationVariant, useDynamicNotification };
35
+ export declare function useDynamicNotification({ open, defaultOpen, onOpenChange, replyValue, defaultReplyValue, onReplyValueChange, onReply, disabled }: Pick<DynamicNotificationProps, "open" | "defaultOpen" | "onOpenChange" | "replyValue" | "defaultReplyValue" | "onReplyValueChange" | "onReply" | "disabled">): DynamicNotificationController;
36
+ //#endregion
@@ -1,8 +1,8 @@
1
1
  import { EnvironmentVariableEntry } from "../lib/env-file.js";
2
2
  //#region src/hooks/use-environment-variables.d.ts
3
- type EnvironmentVariableRow = EnvironmentVariableEntry;
4
- type EnvironmentVariablesImportMode = "auto" | "bulk";
5
- interface UseEnvironmentVariablesOptions<TRow extends EnvironmentVariableRow = EnvironmentVariableRow> {
3
+ export type EnvironmentVariableRow = EnvironmentVariableEntry;
4
+ export type EnvironmentVariablesImportMode = "auto" | "bulk";
5
+ export interface UseEnvironmentVariablesOptions<TRow extends EnvironmentVariableRow = EnvironmentVariableRow> {
6
6
  initialRows?: readonly TRow[];
7
7
  rows?: readonly TRow[];
8
8
  onRowsChange?: (rows: TRow[]) => void;
@@ -12,17 +12,17 @@ interface UseEnvironmentVariablesOptions<TRow extends EnvironmentVariableRow = E
12
12
  getPreservedRows?: (rows: readonly TRow[]) => readonly TRow[];
13
13
  maxUploadSize?: number;
14
14
  }
15
- interface EnvironmentVariablesFileUploadEvent {
15
+ export interface EnvironmentVariablesFileUploadEvent {
16
16
  target: {
17
17
  files?: FileList | readonly File[] | null;
18
18
  value: string;
19
19
  };
20
20
  }
21
- interface EnvironmentVariablesImportOptions {
21
+ export interface EnvironmentVariablesImportOptions {
22
22
  targetIndex?: number;
23
23
  mode?: EnvironmentVariablesImportMode;
24
24
  }
25
- interface EnvironmentVariablesController<TRow extends EnvironmentVariableRow = EnvironmentVariableRow> {
25
+ export interface EnvironmentVariablesController<TRow extends EnvironmentVariableRow = EnvironmentVariableRow> {
26
26
  rows: readonly TRow[];
27
27
  uploadError: string | null;
28
28
  duplicateKeys: Set<string>;
@@ -45,7 +45,6 @@ interface EnvironmentVariablesController<TRow extends EnvironmentVariableRow = E
45
45
  toggleValueVisibility: (index: number) => void;
46
46
  rowHasDuplicateKey: (index: number) => boolean;
47
47
  }
48
- declare function useEnvironmentVariables<TRow extends EnvironmentVariableRow = EnvironmentVariableRow>(options?: UseEnvironmentVariablesOptions<TRow>): EnvironmentVariablesController<TRow>;
49
- declare function parseEnvironmentVariablesImportText(text: string, mode?: EnvironmentVariablesImportMode): EnvironmentVariableEntry[];
50
- //#endregion
51
- export { EnvironmentVariableRow, EnvironmentVariablesController, EnvironmentVariablesFileUploadEvent, EnvironmentVariablesImportMode, EnvironmentVariablesImportOptions, UseEnvironmentVariablesOptions, parseEnvironmentVariablesImportText, useEnvironmentVariables };
48
+ export declare function useEnvironmentVariables<TRow extends EnvironmentVariableRow = EnvironmentVariableRow>(options?: UseEnvironmentVariablesOptions<TRow>): EnvironmentVariablesController<TRow>;
49
+ export declare function parseEnvironmentVariablesImportText(text: string, mode?: EnvironmentVariablesImportMode): EnvironmentVariableEntry[];
50
+ //#endregion
@@ -0,0 +1,3 @@
1
+ //#region src/hooks/use-keyboard-navigation.d.ts
2
+ export declare function useKeyboardNavigation(): boolean;
3
+ //#endregion
@@ -0,0 +1,22 @@
1
+ import { useEffect, useState } from "react";
2
+ //#region src/hooks/use-keyboard-navigation.ts
3
+ function useKeyboardNavigation() {
4
+ const [keyboardNavigation, setKeyboardNavigation] = useState(false);
5
+ useEffect(() => {
6
+ function markKeyboardNavigation(event) {
7
+ if (event.key === "Tab") setKeyboardNavigation(true);
8
+ }
9
+ function clearKeyboardNavigation() {
10
+ setKeyboardNavigation(false);
11
+ }
12
+ document.addEventListener("keydown", markKeyboardNavigation, true);
13
+ document.addEventListener("pointerdown", clearKeyboardNavigation, true);
14
+ return () => {
15
+ document.removeEventListener("keydown", markKeyboardNavigation, true);
16
+ document.removeEventListener("pointerdown", clearKeyboardNavigation, true);
17
+ };
18
+ }, []);
19
+ return keyboardNavigation;
20
+ }
21
+ //#endregion
22
+ export { useKeyboardNavigation };
@@ -1,5 +1,4 @@
1
1
  //#region src/hooks/use-mobile.d.ts
2
2
  /** True below `breakpoint` px (Tailwind `md` by default); pass another breakpoint to match layout that switches elsewhere. */
3
- declare function useIsMobile(breakpoint?: number): boolean;
4
- //#endregion
5
- export { useIsMobile };
3
+ export declare function useIsMobile(breakpoint?: number): boolean;
4
+ //#endregion
@@ -1,8 +1,7 @@
1
1
  import { TriggerConfig, TriggerMenuController, TriggerMenuItemData } from "./use-trigger-menu.js";
2
2
  import { RefObject } from "react";
3
3
  //#region src/hooks/use-textarea-trigger-menu.d.ts
4
- declare function useTextareaTriggerMenu<Item extends TriggerMenuItemData>(ref: RefObject<HTMLTextAreaElement | null>, options: {
4
+ export declare function useTextareaTriggerMenu<Item extends TriggerMenuItemData>(ref: RefObject<HTMLTextAreaElement | null>, options: {
5
5
  triggers: readonly TriggerConfig<Item>[];
6
6
  }): TriggerMenuController<Item>;
7
- //#endregion
8
- export { useTextareaTriggerMenu };
7
+ //#endregion
@@ -1,7 +1,7 @@
1
1
  import { TriggerMatch } from "../lib/trigger-detect.js";
2
2
  import { ReactNode } from "react";
3
3
  //#region src/hooks/use-trigger-menu.d.ts
4
- type TriggerMenuItemData = {
4
+ export type TriggerMenuItemData = {
5
5
  id: string;
6
6
  label: string;
7
7
  description?: string;
@@ -11,11 +11,11 @@ type TriggerMenuItemData = {
11
11
  kind?: string;
12
12
  image?: string;
13
13
  };
14
- type TriggerSelectContext = {
14
+ export type TriggerSelectContext = {
15
15
  char: string;
16
16
  query: string;
17
17
  };
18
- type TriggerConfig<Item extends TriggerMenuItemData = TriggerMenuItemData> = {
18
+ export type TriggerConfig<Item extends TriggerMenuItemData = TriggerMenuItemData> = {
19
19
  char: string;
20
20
  items: readonly Item[] | ((query: string) => readonly Item[]);
21
21
  filter?: (item: Item, query: string) => boolean;
@@ -23,11 +23,11 @@ type TriggerConfig<Item extends TriggerMenuItemData = TriggerMenuItemData> = {
23
23
  insertText?: (item: Item) => string;
24
24
  onSelect?: (item: Item, ctx: TriggerSelectContext) => void;
25
25
  };
26
- type UseTriggerMenuOptions<Item extends TriggerMenuItemData> = {
26
+ export type UseTriggerMenuOptions<Item extends TriggerMenuItemData> = {
27
27
  triggers: readonly TriggerConfig<Item>[];
28
28
  onCommit: (item: Item, trigger: TriggerConfig<Item>, match: TriggerMatch) => void;
29
29
  };
30
- type TriggerMenuController<Item extends TriggerMenuItemData> = {
30
+ export type TriggerMenuController<Item extends TriggerMenuItemData> = {
31
31
  open: boolean;
32
32
  items: readonly Item[];
33
33
  activeIndex: number;
@@ -44,6 +44,5 @@ type TriggerMenuController<Item extends TriggerMenuItemData> = {
44
44
  close: () => void;
45
45
  setOpen: (open: boolean) => void;
46
46
  };
47
- declare function useTriggerMenu<Item extends TriggerMenuItemData>({ triggers, onCommit }: UseTriggerMenuOptions<Item>): TriggerMenuController<Item>;
48
- //#endregion
49
- export { TriggerConfig, TriggerMenuController, TriggerMenuItemData, TriggerSelectContext, UseTriggerMenuOptions, useTriggerMenu };
47
+ export declare function useTriggerMenu<Item extends TriggerMenuItemData>({ triggers, onCommit }: UseTriggerMenuOptions<Item>): TriggerMenuController<Item>;
48
+ //#endregion
@@ -1,27 +1,27 @@
1
1
  import { UserAskKnobStyle } from "../knob-contracts/user-ask-knobs.js";
2
2
  import { CSSProperties, ComponentProps, KeyboardEvent, ReactNode } from "react";
3
3
  //#region src/hooks/use-user-ask.d.ts
4
- type UserAskAnswers = Record<string, string>;
5
- type UserAskProps = Omit<ComponentProps<"section">, "style"> & {
4
+ export type UserAskAnswers = Record<string, string>;
5
+ export type UserAskProps = Omit<ComponentProps<"section">, "style"> & {
6
6
  children?: ReactNode;
7
7
  onComplete?: (answers: UserAskAnswers) => void;
8
8
  onDismiss?: () => void;
9
9
  style?: CSSProperties & UserAskKnobStyle;
10
10
  };
11
- type UserAskQuestionEntry = {
11
+ export type UserAskQuestionEntry = {
12
12
  key: string;
13
13
  id: string;
14
14
  title: string;
15
15
  defaultValue?: string;
16
16
  };
17
- type UserAskOptionEntry = {
17
+ export type UserAskOptionEntry = {
18
18
  key: string;
19
19
  value: string;
20
20
  disabled?: boolean;
21
21
  /** Freeform options resolve to user's typed text instead of `value`. */
22
22
  freeform?: boolean;
23
23
  };
24
- declare function useUserAsk({ onComplete, onDismiss }: Pick<UserAskProps, "onComplete" | "onDismiss">): {
24
+ export declare function useUserAsk({ onComplete, onDismiss }: Pick<UserAskProps, "onComplete" | "onDismiss">): {
25
25
  questions: UserAskQuestionEntry[];
26
26
  activeIndex: number;
27
27
  activeQuestion: UserAskQuestionEntry;
@@ -44,5 +44,4 @@ declare function useUserAsk({ onComplete, onDismiss }: Pick<UserAskProps, "onCom
44
44
  dismiss: () => void;
45
45
  handleKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
46
46
  };
47
- //#endregion
48
- export { UserAskAnswers, UserAskOptionEntry, UserAskProps, UserAskQuestionEntry, useUserAsk };
47
+ //#endregion
@@ -1,37 +1,36 @@
1
1
  import { InlineAttachmentKnobStyle } from "./knob-contracts/inline-attachment-knobs.js";
2
2
  import { CSSProperties, ComponentProps } from "react";
3
3
  //#region src/inline-attachment.d.ts
4
- type InlineAttachmentState = "ready" | "pending" | "error";
4
+ export type InlineAttachmentState = "ready" | "pending" | "error";
5
5
  type InlineAttachmentStyleProps<Props, Style> = Omit<Props, "style"> & {
6
6
  style?: CSSProperties & Style;
7
7
  };
8
- type InlineAttachmentProps = InlineAttachmentStyleProps<ComponentProps<"button">, InlineAttachmentKnobStyle> & {
8
+ export type InlineAttachmentProps = InlineAttachmentStyleProps<ComponentProps<"button">, InlineAttachmentKnobStyle> & {
9
9
  name: string;
10
10
  state?: InlineAttachmentState;
11
11
  /** Width-to-height ratio of the reserved box — generated media knows its ratio before its pixels, so arrival never reflows the turn. */
12
12
  aspect?: number;
13
13
  };
14
- declare function InlineAttachment({ name, state, aspect, disabled, className, children, style, "aria-label": ariaLabel, ...props }: InlineAttachmentProps): import("react").JSX.Element;
15
- type InlineAttachmentMediaProps = ComponentProps<"div"> & {
14
+ export declare function InlineAttachment({ name, state, aspect, disabled, className, children, style, "aria-label": ariaLabel, ...props }: InlineAttachmentProps): import("react").JSX.Element;
15
+ export type InlineAttachmentMediaProps = ComponentProps<"div"> & {
16
16
  src?: string;
17
17
  alt?: string;
18
18
  } & {
19
19
  style?: CSSProperties & InlineAttachmentKnobStyle;
20
20
  };
21
- declare function InlineAttachmentMedia({ src, alt, className, children, ...props }: InlineAttachmentMediaProps): import("react").JSX.Element;
22
- type InlineAttachmentContentProps = InlineAttachmentStyleProps<ComponentProps<"div">, InlineAttachmentKnobStyle>;
23
- declare function InlineAttachmentContent({ className, ...props }: InlineAttachmentContentProps): import("react").JSX.Element;
24
- type InlineAttachmentTitleProps = ComponentProps<"div"> & {
21
+ export declare function InlineAttachmentMedia({ src, alt, className, children, ...props }: InlineAttachmentMediaProps): import("react").JSX.Element;
22
+ export type InlineAttachmentContentProps = InlineAttachmentStyleProps<ComponentProps<"div">, InlineAttachmentKnobStyle>;
23
+ export declare function InlineAttachmentContent({ className, ...props }: InlineAttachmentContentProps): import("react").JSX.Element;
24
+ export type InlineAttachmentTitleProps = ComponentProps<"div"> & {
25
25
  style?: CSSProperties & InlineAttachmentKnobStyle;
26
26
  };
27
- declare function InlineAttachmentTitle({ children, className, ...props }: InlineAttachmentTitleProps): import("react").JSX.Element;
28
- type InlineAttachmentDescriptionProps = InlineAttachmentStyleProps<ComponentProps<"div">, InlineAttachmentKnobStyle>;
29
- declare function InlineAttachmentDescription({ className, ...props }: InlineAttachmentDescriptionProps): import("react").JSX.Element;
30
- type InlineAttachmentActionsProps = ComponentProps<"div"> & {
27
+ export declare function InlineAttachmentTitle({ children, className, ...props }: InlineAttachmentTitleProps): import("react").JSX.Element;
28
+ export type InlineAttachmentDescriptionProps = InlineAttachmentStyleProps<ComponentProps<"div">, InlineAttachmentKnobStyle>;
29
+ export declare function InlineAttachmentDescription({ className, ...props }: InlineAttachmentDescriptionProps): import("react").JSX.Element;
30
+ export type InlineAttachmentActionsProps = ComponentProps<"div"> & {
31
31
  style?: CSSProperties & InlineAttachmentKnobStyle;
32
32
  };
33
- declare function InlineAttachmentActions({ className, ...props }: InlineAttachmentActionsProps): import("react").JSX.Element;
34
- type InlineAttachmentActionProps = InlineAttachmentStyleProps<ComponentProps<"span">, InlineAttachmentKnobStyle>;
35
- declare function InlineAttachmentAction({ className, ...props }: InlineAttachmentActionProps): import("react").JSX.Element;
36
- //#endregion
37
- export { InlineAttachment, InlineAttachmentAction, InlineAttachmentActionProps, InlineAttachmentActions, InlineAttachmentActionsProps, InlineAttachmentContent, InlineAttachmentContentProps, InlineAttachmentDescription, InlineAttachmentDescriptionProps, InlineAttachmentMedia, InlineAttachmentMediaProps, InlineAttachmentProps, InlineAttachmentState, InlineAttachmentTitle, InlineAttachmentTitleProps };
33
+ export declare function InlineAttachmentActions({ className, ...props }: InlineAttachmentActionsProps): import("react").JSX.Element;
34
+ export type InlineAttachmentActionProps = InlineAttachmentStyleProps<ComponentProps<"span">, InlineAttachmentKnobStyle>;
35
+ export declare function InlineAttachmentAction({ className, ...props }: InlineAttachmentActionProps): import("react").JSX.Element;
36
+ //#endregion
@@ -3,7 +3,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover.js";
3
3
  import { InlineCitationKnobStyle } from "./knob-contracts/inline-citation-knobs.js";
4
4
  import { CSSProperties, ComponentProps, ReactNode } from "react";
5
5
  //#region src/inline-citation.d.ts
6
- type SourceReference = {
6
+ export type SourceReference = {
7
7
  href: string;
8
8
  title?: string;
9
9
  description?: string;
@@ -14,7 +14,7 @@ type InlineCitationStyleProps<Props, Style> = Omit<Props, "style"> & {
14
14
  style?: CSSProperties & Style;
15
15
  };
16
16
  type PopoverRootProps = ComponentProps<typeof Popover>;
17
- type InlineCitationProps = ComponentProps<"span"> & {
17
+ export type InlineCitationProps = ComponentProps<"span"> & {
18
18
  sources: readonly SourceReference[];
19
19
  open?: PopoverRootProps["open"];
20
20
  defaultOpen?: PopoverRootProps["defaultOpen"];
@@ -22,35 +22,34 @@ type InlineCitationProps = ComponentProps<"span"> & {
22
22
  } & {
23
23
  style?: CSSProperties & InlineCitationKnobStyle;
24
24
  };
25
- declare function InlineCitation({ sources, open, defaultOpen, onOpenChange, className, children, ...props }: InlineCitationProps): import("react").JSX.Element;
26
- type InlineCitationTriggerProps = InlineCitationStyleProps<ComponentProps<typeof PopoverTrigger>, InlineCitationKnobStyle>;
27
- declare function InlineCitationTrigger({ "aria-label": ariaLabel, className, children, disabled, render, ...props }: InlineCitationTriggerProps): import("react").JSX.Element;
28
- type InlineCitationFaviconsProps = InlineCitationStyleProps<ComponentProps<"span">, InlineCitationKnobStyle> & {
25
+ export declare function InlineCitation({ sources, open, defaultOpen, onOpenChange, className, children, ...props }: InlineCitationProps): import("react").JSX.Element;
26
+ export type InlineCitationTriggerProps = InlineCitationStyleProps<ComponentProps<typeof PopoverTrigger>, InlineCitationKnobStyle>;
27
+ export declare function InlineCitationTrigger({ "aria-label": ariaLabel, className, children, disabled, render, ...props }: InlineCitationTriggerProps): import("react").JSX.Element;
28
+ export type InlineCitationFaviconsProps = InlineCitationStyleProps<ComponentProps<"span">, InlineCitationKnobStyle> & {
29
29
  limit?: number;
30
30
  };
31
- declare function InlineCitationFavicons({ limit, className, ...props }: InlineCitationFaviconsProps): import("react").JSX.Element;
32
- type InlineCitationLabelProps = ComponentProps<"span"> & {
31
+ export declare function InlineCitationFavicons({ limit, className, ...props }: InlineCitationFaviconsProps): import("react").JSX.Element;
32
+ export type InlineCitationLabelProps = ComponentProps<"span"> & {
33
33
  style?: CSSProperties & InlineCitationKnobStyle;
34
34
  };
35
- declare function InlineCitationLabel({ className, children, ...props }: InlineCitationLabelProps): import("react").JSX.Element;
36
- type InlineCitationContentProps = ComponentProps<typeof PopoverContent>;
37
- declare function InlineCitationContent({ className, children, align, padding, ...props }: InlineCitationContentProps): import("react").JSX.Element;
38
- type InlineCitationNavigationProps = InlineCitationStyleProps<ComponentProps<"div">, InlineCitationKnobStyle>;
39
- declare function InlineCitationNavigation({ className, children, ...props }: InlineCitationNavigationProps): import("react").JSX.Element;
40
- type InlineCitationPreviousProps = Omit<ComponentProps<typeof Button>, "children"> & {
35
+ export declare function InlineCitationLabel({ className, children, ...props }: InlineCitationLabelProps): import("react").JSX.Element;
36
+ export type InlineCitationContentProps = ComponentProps<typeof PopoverContent>;
37
+ export declare function InlineCitationContent({ className, children, align, padding, ...props }: InlineCitationContentProps): import("react").JSX.Element;
38
+ export type InlineCitationNavigationProps = InlineCitationStyleProps<ComponentProps<"div">, InlineCitationKnobStyle>;
39
+ export declare function InlineCitationNavigation({ className, children, ...props }: InlineCitationNavigationProps): import("react").JSX.Element;
40
+ export type InlineCitationPreviousProps = Omit<ComponentProps<typeof Button>, "children"> & {
41
41
  children?: ReactNode;
42
42
  };
43
- declare function InlineCitationPrevious({ className, children, disabled, onClick, ...props }: InlineCitationPreviousProps): import("react").JSX.Element;
44
- type InlineCitationNextProps = Omit<ComponentProps<typeof Button>, "children"> & {
43
+ export declare function InlineCitationPrevious({ className, children, disabled, onClick, ...props }: InlineCitationPreviousProps): import("react").JSX.Element;
44
+ export type InlineCitationNextProps = Omit<ComponentProps<typeof Button>, "children"> & {
45
45
  children?: ReactNode;
46
46
  };
47
- declare function InlineCitationNext({ className, children, disabled, onClick, ...props }: InlineCitationNextProps): import("react").JSX.Element;
48
- type InlineCitationPositionProps = InlineCitationStyleProps<ComponentProps<"span">, InlineCitationKnobStyle>;
49
- declare function InlineCitationPosition({ className, children, ...props }: InlineCitationPositionProps): import("react").JSX.Element;
50
- type InlineCitationSourceProps = Omit<ComponentProps<"article">, "style"> & {
47
+ export declare function InlineCitationNext({ className, children, disabled, onClick, ...props }: InlineCitationNextProps): import("react").JSX.Element;
48
+ export type InlineCitationPositionProps = InlineCitationStyleProps<ComponentProps<"span">, InlineCitationKnobStyle>;
49
+ export declare function InlineCitationPosition({ className, children, ...props }: InlineCitationPositionProps): import("react").JSX.Element;
50
+ export type InlineCitationSourceProps = Omit<ComponentProps<"article">, "style"> & {
51
51
  source?: SourceReference;
52
52
  style?: CSSProperties & InlineCitationKnobStyle;
53
53
  };
54
- declare function InlineCitationSource({ source: sourceProp, className, children, style, ref, ...props }: InlineCitationSourceProps): import("react").JSX.Element | null;
55
- //#endregion
56
- export { InlineCitation, InlineCitationContent, InlineCitationContentProps, InlineCitationFavicons, InlineCitationFaviconsProps, InlineCitationLabel, InlineCitationLabelProps, InlineCitationNavigation, InlineCitationNavigationProps, InlineCitationNext, InlineCitationNextProps, InlineCitationPosition, InlineCitationPositionProps, InlineCitationPrevious, InlineCitationPreviousProps, InlineCitationProps, InlineCitationSource, InlineCitationSourceProps, InlineCitationTrigger, InlineCitationTriggerProps, SourceReference };
54
+ export declare function InlineCitationSource({ source: sourceProp, className, children, style, ref, ...props }: InlineCitationSourceProps): import("react").JSX.Element | null;
55
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/accordion-knobs.d.ts
2
- declare const accordionKnobs: readonly ["--cui-accordion-item-border-color", "--cui-accordion-trigger-foreground", "--cui-accordion-trigger-hover-foreground", "--cui-accordion-icon-foreground"];
3
- type AccordionKnobStyle = Partial<Record<(typeof accordionKnobs)[number], string>>;
4
- //#endregion
5
- export { AccordionKnobStyle, accordionKnobs };
2
+ export declare const accordionKnobs: readonly ["--cui-accordion-item-border-color", "--cui-accordion-item-border-width", "--cui-accordion-trigger-foreground", "--cui-accordion-trigger-hover-foreground", "--cui-accordion-icon-foreground"];
3
+ export type AccordionKnobStyle = Partial<Record<(typeof accordionKnobs)[number], string>>;
4
+ //#endregion
@@ -1,6 +1,7 @@
1
1
  //#region src/knob-contracts/accordion-knobs.ts
2
2
  const accordionKnobs = [
3
3
  "--cui-accordion-item-border-color",
4
+ "--cui-accordion-item-border-width",
4
5
  "--cui-accordion-trigger-foreground",
5
6
  "--cui-accordion-trigger-hover-foreground",
6
7
  "--cui-accordion-icon-foreground"
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/action-bar-knobs.d.ts
2
- declare const actionBarKnobs: readonly [];
3
- type ActionBarKnobStyle = Partial<Record<(typeof actionBarKnobs)[number], string>>;
4
- //#endregion
5
- export { ActionBarKnobStyle, actionBarKnobs };
2
+ export declare const actionBarKnobs: readonly [];
3
+ export type ActionBarKnobStyle = Partial<Record<(typeof actionBarKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/activity-knobs.d.ts
2
- declare const activityKnobs: readonly ["--cui-activity-row-foreground", "--cui-activity-trigger-radius", "--cui-activity-trigger-hover-background", "--cui-activity-code-background"];
3
- type ActivityKnobStyle = Partial<Record<(typeof activityKnobs)[number], string>>;
4
- //#endregion
5
- export { ActivityKnobStyle, activityKnobs };
2
+ export declare const activityKnobs: readonly ["--cui-activity-row-foreground", "--cui-activity-trigger-radius", "--cui-activity-trigger-hover-background", "--cui-activity-code-background"];
3
+ export type ActivityKnobStyle = Partial<Record<(typeof activityKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/alert-knobs.d.ts
2
- declare const alertKnobs: readonly ["--cui-alert-radius", "--cui-alert-background", "--cui-alert-border-color", "--cui-alert-shadow"];
3
- type AlertKnobStyle = Partial<Record<(typeof alertKnobs)[number], string>>;
4
- //#endregion
5
- export { AlertKnobStyle, alertKnobs };
2
+ export declare const alertKnobs: readonly ["--cui-alert-radius", "--cui-alert-background", "--cui-alert-border-color", "--cui-alert-shadow", "--cui-alert-foreground", "--cui-alert-description-foreground", "--cui-alert-border-width", "--cui-alert-padding", "--cui-alert-padding-inline", "--cui-alert-gap", "--cui-alert-icon-gap", "--cui-alert-icon-size", "--cui-alert-font-size", "--cui-alert-description-gap", "--cui-alert-title-font-weight"];
3
+ export type AlertKnobStyle = Partial<Record<(typeof alertKnobs)[number], string>>;
4
+ //#endregion
@@ -3,7 +3,18 @@ const alertKnobs = [
3
3
  "--cui-alert-radius",
4
4
  "--cui-alert-background",
5
5
  "--cui-alert-border-color",
6
- "--cui-alert-shadow"
6
+ "--cui-alert-shadow",
7
+ "--cui-alert-foreground",
8
+ "--cui-alert-description-foreground",
9
+ "--cui-alert-border-width",
10
+ "--cui-alert-padding",
11
+ "--cui-alert-padding-inline",
12
+ "--cui-alert-gap",
13
+ "--cui-alert-icon-gap",
14
+ "--cui-alert-icon-size",
15
+ "--cui-alert-font-size",
16
+ "--cui-alert-description-gap",
17
+ "--cui-alert-title-font-weight"
7
18
  ];
8
19
  //#endregion
9
20
  export { alertKnobs };
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/audio-recorder-knobs.d.ts
2
- declare const audioRecorderKnobs: readonly ["--cui-audio-recorder-foreground", "--cui-audio-recorder-active-foreground", "--cui-audio-recorder-recording-ring-color", "--cui-audio-recorder-error-foreground"];
3
- type AudioRecorderKnobStyle = Partial<Record<(typeof audioRecorderKnobs)[number], string>>;
4
- //#endregion
5
- export { AudioRecorderKnobStyle, audioRecorderKnobs };
2
+ export declare const audioRecorderKnobs: readonly ["--cui-audio-recorder-foreground", "--cui-audio-recorder-active-foreground", "--cui-audio-recorder-recording-ring-color", "--cui-audio-recorder-error-foreground"];
3
+ export type AudioRecorderKnobStyle = Partial<Record<(typeof audioRecorderKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/audio-visualizer-knobs.d.ts
2
- declare const audioVisualizerKnobs: readonly ["--cui-audio-visualizer-radius", "--cui-audio-visualizer-bar-background", "--cui-audio-visualizer-line-fill", "--cui-audio-visualizer-line-stroke"];
3
- type AudioVisualizerKnobStyle = Partial<Record<(typeof audioVisualizerKnobs)[number], string>>;
4
- //#endregion
5
- export { AudioVisualizerKnobStyle, audioVisualizerKnobs };
2
+ export declare const audioVisualizerKnobs: readonly ["--cui-audio-visualizer-radius", "--cui-audio-visualizer-bar-background", "--cui-audio-visualizer-line-fill", "--cui-audio-visualizer-line-stroke"];
3
+ export type AudioVisualizerKnobStyle = Partial<Record<(typeof audioVisualizerKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/avatar-knobs.d.ts
2
- declare const avatarKnobs: readonly ["--cui-avatar-radius", "--cui-avatar-group-ring-color", "--cui-avatar-fallback-background", "--cui-avatar-fallback-foreground"];
3
- type AvatarKnobStyle = Partial<Record<(typeof avatarKnobs)[number], string>>;
4
- //#endregion
5
- export { AvatarKnobStyle, avatarKnobs };
2
+ export declare const avatarKnobs: readonly ["--cui-avatar-radius", "--cui-avatar-group-ring-color", "--cui-avatar-fallback-background", "--cui-avatar-fallback-foreground", "--cui-avatar-image-outline-color"];
3
+ export type AvatarKnobStyle = Partial<Record<(typeof avatarKnobs)[number], string>>;
4
+ //#endregion
@@ -3,7 +3,8 @@ const avatarKnobs = [
3
3
  "--cui-avatar-radius",
4
4
  "--cui-avatar-group-ring-color",
5
5
  "--cui-avatar-fallback-background",
6
- "--cui-avatar-fallback-foreground"
6
+ "--cui-avatar-fallback-foreground",
7
+ "--cui-avatar-image-outline-color"
7
8
  ];
8
9
  //#endregion
9
10
  export { avatarKnobs };
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/badge-knobs.d.ts
2
- declare const badgeKnobs: readonly ["--cui-badge-radius", "--cui-badge-background", "--cui-badge-foreground", "--cui-badge-border-color"];
3
- type BadgeKnobStyle = Partial<Record<(typeof badgeKnobs)[number], string>>;
4
- //#endregion
5
- export { BadgeKnobStyle, badgeKnobs };
2
+ export declare const badgeKnobs: readonly ["--cui-badge-radius", "--cui-badge-background", "--cui-badge-foreground", "--cui-badge-border-color"];
3
+ export type BadgeKnobStyle = Partial<Record<(typeof badgeKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/button-group-knobs.d.ts
2
- declare const buttonGroupKnobs: readonly ["--cui-button-group-text-radius", "--cui-button-group-text-background", "--cui-button-group-text-foreground", "--cui-button-group-separator-background"];
3
- type ButtonGroupKnobStyle = Partial<Record<(typeof buttonGroupKnobs)[number], string>>;
4
- //#endregion
5
- export { ButtonGroupKnobStyle, buttonGroupKnobs };
2
+ export declare const buttonGroupKnobs: readonly ["--cui-button-group-text-radius", "--cui-button-group-text-background", "--cui-button-group-text-foreground", "--cui-button-group-separator-background"];
3
+ export type ButtonGroupKnobStyle = Partial<Record<(typeof buttonGroupKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/button-knobs.d.ts
2
- declare const buttonKnobs: readonly ["--cui-button-radius", "--cui-button-gap", "--cui-button-icon", "--cui-button-height", "--cui-button-padding-inline", "--cui-button-font-size", "--cui-button-background", "--cui-button-background-image", "--cui-button-foreground", "--cui-button-hover-background", "--cui-button-hover-foreground", "--cui-button-press-background", "--cui-button-press-scale", "--cui-button-active-background", "--cui-button-active-foreground", "--cui-button-active-hover-background", "--cui-button-shadow", "--cui-button-hover-shadow", "--cui-button-press-shadow", "--cui-button-active-shadow", "--cui-button-open-background", "--cui-button-open-foreground", "--cui-button-open-shadow"];
3
- type ButtonKnobStyle = Partial<Record<(typeof buttonKnobs)[number], string>>;
4
- //#endregion
5
- export { ButtonKnobStyle, buttonKnobs };
2
+ export declare const buttonKnobs: readonly ["--cui-button-radius", "--cui-button-gap", "--cui-button-icon", "--cui-button-height", "--cui-button-padding-inline", "--cui-button-icon-padding-inline", "--cui-button-font-size", "--cui-button-background", "--cui-button-background-image", "--cui-button-foreground", "--cui-button-hover-background", "--cui-button-hover-foreground", "--cui-button-press-background", "--cui-button-press-scale", "--cui-button-active-background", "--cui-button-active-foreground", "--cui-button-active-hover-background", "--cui-button-shadow", "--cui-button-hover-shadow", "--cui-button-press-shadow", "--cui-button-active-shadow", "--cui-button-open-background", "--cui-button-open-foreground", "--cui-button-open-shadow"];
3
+ export type ButtonKnobStyle = Partial<Record<(typeof buttonKnobs)[number], string>>;
4
+ //#endregion
@@ -5,6 +5,7 @@ const buttonKnobs = [
5
5
  "--cui-button-icon",
6
6
  "--cui-button-height",
7
7
  "--cui-button-padding-inline",
8
+ "--cui-button-icon-padding-inline",
8
9
  "--cui-button-font-size",
9
10
  "--cui-button-background",
10
11
  "--cui-button-background-image",
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/calendar-knobs.d.ts
2
- declare const calendarKnobs: readonly ["--cui-calendar-day-radius", "--cui-calendar-today-background", "--cui-calendar-selected-background", "--cui-calendar-selected-foreground", "--cui-calendar-range-background"];
3
- type CalendarKnobStyle = Partial<Record<(typeof calendarKnobs)[number], string>>;
4
- //#endregion
5
- export { CalendarKnobStyle, calendarKnobs };
2
+ export declare const calendarKnobs: readonly ["--cui-calendar-day-radius", "--cui-calendar-today-background", "--cui-calendar-selected-background", "--cui-calendar-selected-foreground", "--cui-calendar-range-background"];
3
+ export type CalendarKnobStyle = Partial<Record<(typeof calendarKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/card-knobs.d.ts
2
- declare const cardKnobs: readonly ["--cui-card-radius", "--cui-card-background", "--cui-card-border-color", "--cui-card-border-width", "--cui-card-shadow", "--cui-card-backdrop-filter"];
3
- type CardKnobStyle = Partial<Record<(typeof cardKnobs)[number], string>>;
4
- //#endregion
5
- export { CardKnobStyle, cardKnobs };
2
+ export declare const cardKnobs: readonly ["--cui-card-radius", "--cui-card-background", "--cui-card-border-color", "--cui-card-border-width", "--cui-card-shadow", "--cui-card-backdrop-filter"];
3
+ export type CardKnobStyle = Partial<Record<(typeof cardKnobs)[number], string>>;
4
+ //#endregion
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/chat-composer-attachment-knobs.d.ts
2
- declare const chatComposerAttachmentKnobs: readonly ["--cui-chat-composer-attachment-radius", "--cui-chat-composer-attachment-background", "--cui-chat-composer-attachment-border-color", "--cui-chat-composer-attachment-shadow", "--cui-chat-composer-attachment-progress-background", "--cui-chat-composer-attachment-progress-foreground"];
3
- type ChatComposerAttachmentKnobStyle = Partial<Record<(typeof chatComposerAttachmentKnobs)[number], string>>;
4
- //#endregion
5
- export { ChatComposerAttachmentKnobStyle, chatComposerAttachmentKnobs };
2
+ export declare const chatComposerAttachmentKnobs: readonly ["--cui-chat-composer-attachment-radius", "--cui-chat-composer-attachment-background", "--cui-chat-composer-attachment-border-color", "--cui-chat-composer-attachment-shadow", "--cui-chat-composer-attachment-backdrop-filter", "--cui-chat-composer-attachment-progress-background", "--cui-chat-composer-attachment-progress-foreground", "--cui-chat-composer-attachment-image-outline-color"];
3
+ export type ChatComposerAttachmentKnobStyle = Partial<Record<(typeof chatComposerAttachmentKnobs)[number], string>>;
4
+ //#endregion
@@ -4,8 +4,10 @@ const chatComposerAttachmentKnobs = [
4
4
  "--cui-chat-composer-attachment-background",
5
5
  "--cui-chat-composer-attachment-border-color",
6
6
  "--cui-chat-composer-attachment-shadow",
7
+ "--cui-chat-composer-attachment-backdrop-filter",
7
8
  "--cui-chat-composer-attachment-progress-background",
8
- "--cui-chat-composer-attachment-progress-foreground"
9
+ "--cui-chat-composer-attachment-progress-foreground",
10
+ "--cui-chat-composer-attachment-image-outline-color"
9
11
  ];
10
12
  //#endregion
11
13
  export { chatComposerAttachmentKnobs };
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/chat-composer-knobs.d.ts
2
- declare const chatComposerKnobs: readonly ["--cui-chat-composer-root-background", "--cui-chat-composer-shell-radius", "--cui-chat-composer-shell-background", "--cui-chat-composer-shell-background-image", "--cui-chat-composer-shell-backdrop-filter", "--cui-chat-composer-shell-border-color", "--cui-chat-composer-shell-shadow", "--cui-chat-composer-input-foreground", "--cui-chat-composer-input-placeholder-foreground", "--cui-chat-composer-mention-background", "--cui-chat-composer-mention-radius", "--cui-chat-composer-mention-border-color", "--cui-chat-composer-mention-border-width"];
3
- type ChatComposerKnobStyle = Partial<Record<(typeof chatComposerKnobs)[number], string>>;
4
- //#endregion
5
- export { ChatComposerKnobStyle, chatComposerKnobs };
2
+ export declare const chatComposerKnobs: readonly ["--cui-chat-composer-root-background", "--cui-chat-composer-shell-radius", "--cui-chat-composer-shell-background", "--cui-chat-composer-shell-background-image", "--cui-chat-composer-shell-backdrop-filter", "--cui-chat-composer-shell-border-color", "--cui-chat-composer-shell-border-width", "--cui-chat-composer-shell-shadow", "--cui-chat-composer-input-foreground", "--cui-chat-composer-input-placeholder-foreground", "--cui-chat-composer-mention-background", "--cui-chat-composer-mention-radius", "--cui-chat-composer-mention-border-color", "--cui-chat-composer-mention-border-width"];
3
+ export type ChatComposerKnobStyle = Partial<Record<(typeof chatComposerKnobs)[number], string>>;
4
+ //#endregion
@@ -6,6 +6,7 @@ const chatComposerKnobs = [
6
6
  "--cui-chat-composer-shell-background-image",
7
7
  "--cui-chat-composer-shell-backdrop-filter",
8
8
  "--cui-chat-composer-shell-border-color",
9
+ "--cui-chat-composer-shell-border-width",
9
10
  "--cui-chat-composer-shell-shadow",
10
11
  "--cui-chat-composer-input-foreground",
11
12
  "--cui-chat-composer-input-placeholder-foreground",
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/chat-layout-knobs.d.ts
2
- declare const chatLayoutKnobs: readonly ["--cui-chat-layout-radius", "--cui-chat-layout-background", "--cui-chat-layout-border-color", "--cui-chat-layout-shadow", "--cui-chat-layout-thought-foreground", "--cui-chat-layout-thought-hover-background"];
3
- type ChatLayoutKnobStyle = Partial<Record<(typeof chatLayoutKnobs)[number], string>>;
4
- //#endregion
5
- export { ChatLayoutKnobStyle, chatLayoutKnobs };
2
+ export declare const chatLayoutKnobs: readonly ["--cui-chat-layout-radius", "--cui-chat-layout-background", "--cui-chat-layout-border-color", "--cui-chat-layout-border-width", "--cui-chat-layout-shadow"];
3
+ export type ChatLayoutKnobStyle = Partial<Record<(typeof chatLayoutKnobs)[number], string>>;
4
+ //#endregion
@@ -3,9 +3,8 @@ const chatLayoutKnobs = [
3
3
  "--cui-chat-layout-radius",
4
4
  "--cui-chat-layout-background",
5
5
  "--cui-chat-layout-border-color",
6
- "--cui-chat-layout-shadow",
7
- "--cui-chat-layout-thought-foreground",
8
- "--cui-chat-layout-thought-hover-background"
6
+ "--cui-chat-layout-border-width",
7
+ "--cui-chat-layout-shadow"
9
8
  ];
10
9
  //#endregion
11
10
  export { chatLayoutKnobs };
@@ -1,5 +1,4 @@
1
1
  //#region src/knob-contracts/chat-message-knobs.d.ts
2
- declare const chatMessageKnobs: readonly ["--cui-chat-message-avatar-radius", "--cui-chat-message-avatar-background", "--cui-chat-message-avatar-border-color", "--cui-chat-message-avatar-border-width", "--cui-chat-message-radius", "--cui-chat-message-corner-radius", "--cui-chat-message-background", "--cui-chat-message-background-image", "--cui-chat-message-foreground", "--cui-chat-message-border-color", "--cui-chat-message-border-width", "--cui-chat-message-shadow"];
3
- type ChatMessageKnobStyle = Partial<Record<(typeof chatMessageKnobs)[number], string>>;
4
- //#endregion
5
- export { ChatMessageKnobStyle, chatMessageKnobs };
2
+ export declare const chatMessageKnobs: readonly ["--cui-chat-message-avatar-radius", "--cui-chat-message-avatar-background", "--cui-chat-message-avatar-border-color", "--cui-chat-message-avatar-border-width", "--cui-chat-message-radius", "--cui-chat-message-corner-radius", "--cui-chat-message-background", "--cui-chat-message-background-image", "--cui-chat-message-foreground", "--cui-chat-message-border-color", "--cui-chat-message-border-width", "--cui-chat-message-shadow"];
3
+ export type ChatMessageKnobStyle = Partial<Record<(typeof chatMessageKnobs)[number], string>>;
4
+ //#endregion