@diegopluna/narvi 0.0.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/README.md +116 -44
  2. package/dist/base.css +96 -0
  3. package/dist/color.d.ts +1 -1
  4. package/dist/color.js +1 -1
  5. package/dist/components/activity/ActivityContent.svelte +3 -15
  6. package/dist/components/activity/ActivityStep.svelte +12 -12
  7. package/dist/components/activity/ActivityThought.svelte +4 -4
  8. package/dist/components/activity/ActivityTrigger.svelte +5 -6
  9. package/dist/components/app-shell/AppShellBar.svelte +89 -0
  10. package/dist/components/app-shell/AppShellBar.svelte.d.ts +20 -0
  11. package/dist/components/app-shell/AppShellHeader.svelte +17 -17
  12. package/dist/components/app-shell/AppShellHeader.svelte.d.ts +2 -2
  13. package/dist/components/app-shell/AppShellMain.svelte +4 -20
  14. package/dist/components/app-shell/AppShellPanel.svelte +21 -19
  15. package/dist/components/app-shell/AppShellPanes.svelte +58 -0
  16. package/dist/components/app-shell/AppShellPanes.svelte.d.ts +11 -0
  17. package/dist/components/app-shell/AppShellRail.svelte +85 -0
  18. package/dist/components/app-shell/AppShellRail.svelte.d.ts +11 -0
  19. package/dist/components/app-shell/AppShellRoot.svelte +50 -24
  20. package/dist/components/app-shell/AppShellRoot.svelte.d.ts +8 -6
  21. package/dist/components/app-shell/AppShellSheet.svelte +95 -0
  22. package/dist/components/app-shell/AppShellSheet.svelte.d.ts +17 -0
  23. package/dist/components/app-shell/AppShellSidebar.svelte +41 -65
  24. package/dist/components/app-shell/AppShellSidebar.svelte.d.ts +1 -5
  25. package/dist/components/app-shell/AppShellToggle.svelte +62 -23
  26. package/dist/components/app-shell/AppShellToggle.svelte.d.ts +2 -0
  27. package/dist/components/app-shell/context.d.ts +6 -0
  28. package/dist/components/app-shell/index.d.ts +9 -1
  29. package/dist/components/app-shell/index.js +5 -1
  30. package/dist/components/approval/Approval.svelte +99 -23
  31. package/dist/components/approval/Approval.svelte.d.ts +7 -0
  32. package/dist/components/avatar/AvatarFallback.svelte +1 -2
  33. package/dist/components/avatar/AvatarRoot.svelte +2 -2
  34. package/dist/components/badge/Badge.svelte +5 -5
  35. package/dist/components/button/Button.svelte +227 -51
  36. package/dist/components/button/Button.svelte.d.ts +38 -2
  37. package/dist/components/card/Card.svelte +19 -33
  38. package/dist/components/change-stats/ChangeStats.svelte +1 -2
  39. package/dist/components/changes-summary/ChangesSummary.svelte +14 -15
  40. package/dist/components/checkbox/Checkbox.svelte +31 -25
  41. package/dist/components/checkbox/Checkbox.svelte.d.ts +5 -0
  42. package/dist/components/code/Code.svelte +1 -2
  43. package/dist/components/collapsible/CollapsibleContent.svelte +38 -0
  44. package/dist/components/collapsible/CollapsibleContent.svelte.d.ts +11 -0
  45. package/dist/components/collapsible/CollapsibleRoot.svelte +44 -0
  46. package/dist/components/collapsible/CollapsibleRoot.svelte.d.ts +11 -0
  47. package/dist/components/collapsible/CollapsibleTrigger.svelte +83 -0
  48. package/dist/components/collapsible/CollapsibleTrigger.svelte.d.ts +13 -0
  49. package/dist/components/collapsible/context.d.ts +5 -0
  50. package/dist/components/collapsible/context.js +11 -0
  51. package/dist/components/collapsible/index.d.ts +7 -0
  52. package/dist/components/collapsible/index.js +4 -0
  53. package/dist/components/command/CommandItem.svelte +1 -1
  54. package/dist/components/command/styles.d.ts +3 -2
  55. package/dist/components/command/styles.js +15 -12
  56. package/dist/components/composer/ComposerAttachButton.svelte +1 -1
  57. package/dist/components/composer/ComposerAttachment.svelte +13 -18
  58. package/dist/components/composer/ComposerModelPicker.svelte +24 -28
  59. package/dist/components/composer/ComposerRoot.svelte +15 -13
  60. package/dist/components/composer/ComposerSubmit.svelte +12 -20
  61. package/dist/components/composer/ComposerTextarea.svelte +1 -1
  62. package/dist/components/composer/ComposerToggle.svelte +16 -18
  63. package/dist/components/composer/ComposerTray.svelte +78 -0
  64. package/dist/components/composer/ComposerTray.svelte.d.ts +15 -0
  65. package/dist/components/composer/index.d.ts +3 -1
  66. package/dist/components/composer/index.js +3 -2
  67. package/dist/components/conversation/ConversationContent.svelte +3 -2
  68. package/dist/components/conversation/ConversationEmpty.svelte +1 -1
  69. package/dist/components/conversation/ConversationScrollButton.svelte +9 -11
  70. package/dist/components/dialog/ConfirmDialog.svelte +1 -1
  71. package/dist/components/dialog/DialogContent.svelte +5 -1
  72. package/dist/components/dialog/styles.d.ts +2 -26
  73. package/dist/components/dialog/styles.js +12 -49
  74. package/dist/components/divider/Divider.svelte +3 -3
  75. package/dist/components/empty-state/EmptyState.svelte +4 -5
  76. package/dist/components/field/Field.svelte +4 -4
  77. package/dist/components/frame/Frame.svelte +6 -7
  78. package/dist/components/frame/Frame.svelte.d.ts +1 -1
  79. package/dist/components/grid/Grid.svelte +111 -0
  80. package/dist/components/grid/Grid.svelte.d.ts +27 -0
  81. package/dist/components/heading/Heading.svelte +2 -2
  82. package/dist/components/hover-card/HoverCardContent.svelte +50 -0
  83. package/dist/components/hover-card/HoverCardContent.svelte.d.ts +10 -0
  84. package/dist/components/hover-card/HoverCardRoot.svelte +22 -0
  85. package/dist/components/hover-card/HoverCardRoot.svelte.d.ts +5 -0
  86. package/dist/components/hover-card/index.d.ts +7 -0
  87. package/dist/components/hover-card/index.js +7 -0
  88. package/dist/components/kbd/Kbd.svelte +12 -7
  89. package/dist/components/link/Link.svelte +9 -7
  90. package/dist/components/link/Link.svelte.d.ts +4 -1
  91. package/dist/components/markdown/Markdown.svelte +714 -0
  92. package/dist/components/markdown/Markdown.svelte.d.ts +80 -0
  93. package/dist/components/markdown/MarkdownBlock.svelte +231 -0
  94. package/dist/components/markdown/MarkdownBlock.svelte.d.ts +11 -0
  95. package/dist/components/markdown/MarkdownBlocks.svelte +115 -0
  96. package/dist/components/markdown/MarkdownBlocks.svelte.d.ts +15 -0
  97. package/dist/components/markdown/MarkdownCode.svelte +583 -0
  98. package/dist/components/markdown/MarkdownCode.svelte.d.ts +23 -0
  99. package/dist/components/markdown/MarkdownDiagram.svelte +310 -0
  100. package/dist/components/markdown/MarkdownDiagram.svelte.d.ts +6 -0
  101. package/dist/components/markdown/MarkdownFile.svelte +134 -0
  102. package/dist/components/markdown/MarkdownFile.svelte.d.ts +19 -0
  103. package/dist/components/markdown/MarkdownFootnotes.svelte +61 -0
  104. package/dist/components/markdown/MarkdownFootnotes.svelte.d.ts +8 -0
  105. package/dist/components/markdown/MarkdownFresh.svelte +69 -0
  106. package/dist/components/markdown/MarkdownFresh.svelte.d.ts +6 -0
  107. package/dist/components/markdown/MarkdownHtml.svelte +72 -0
  108. package/dist/components/markdown/MarkdownHtml.svelte.d.ts +7 -0
  109. package/dist/components/markdown/MarkdownImage.svelte +150 -0
  110. package/dist/components/markdown/MarkdownImage.svelte.d.ts +8 -0
  111. package/dist/components/markdown/MarkdownInlines.svelte +225 -0
  112. package/dist/components/markdown/MarkdownInlines.svelte.d.ts +7 -0
  113. package/dist/components/markdown/MarkdownLink.svelte +120 -0
  114. package/dist/components/markdown/MarkdownLink.svelte.d.ts +25 -0
  115. package/dist/components/markdown/MarkdownMath.svelte +138 -0
  116. package/dist/components/markdown/MarkdownMath.svelte.d.ts +7 -0
  117. package/dist/components/markdown/MarkdownTable.svelte +265 -0
  118. package/dist/components/markdown/MarkdownTable.svelte.d.ts +17 -0
  119. package/dist/components/markdown/caret.d.ts +14 -0
  120. package/dist/components/markdown/caret.js +67 -0
  121. package/dist/components/markdown/context.d.ts +93 -0
  122. package/dist/components/markdown/context.js +128 -0
  123. package/dist/components/markdown/copy.d.ts +13 -0
  124. package/dist/components/markdown/copy.js +74 -0
  125. package/dist/components/markdown/hidden.d.ts +12 -0
  126. package/dist/components/markdown/hidden.js +31 -0
  127. package/dist/components/markdown/kept.d.ts +32 -0
  128. package/dist/components/markdown/kept.js +71 -0
  129. package/dist/components/markdown/labels.d.ts +46 -0
  130. package/dist/components/markdown/labels.js +35 -0
  131. package/dist/components/markdown/save.d.ts +11 -0
  132. package/dist/components/markdown/save.js +58 -0
  133. package/dist/components/markdown/scrollable.d.ts +24 -0
  134. package/dist/components/markdown/scrollable.js +152 -0
  135. package/dist/components/markdown/static.d.ts +37 -0
  136. package/dist/components/markdown/static.js +233 -0
  137. package/dist/components/markdown/styles.d.ts +328 -0
  138. package/dist/components/markdown/styles.js +302 -0
  139. package/dist/components/menu/MenuRadioItem.svelte +3 -3
  140. package/dist/components/menu/index.d.ts +23 -0
  141. package/dist/components/menu/index.js +3 -1
  142. package/dist/components/message/MessageAction.svelte +24 -5
  143. package/dist/components/message/MessageAction.svelte.d.ts +9 -0
  144. package/dist/components/message/MessageActions.svelte +2 -3
  145. package/dist/components/message/MessageContent.svelte +2 -3
  146. package/dist/components/message/MessageCopy.svelte +66 -8
  147. package/dist/components/message/MessageCopy.svelte.d.ts +17 -1
  148. package/dist/components/message/MessageHeader.svelte +3 -3
  149. package/dist/components/message/MessagePending.svelte +1 -1
  150. package/dist/components/message/MessageRoot.svelte +3 -4
  151. package/dist/components/message/MessageTime.svelte +3 -4
  152. package/dist/components/notice/Notice.svelte +14 -10
  153. package/dist/components/plan/Plan.svelte +25 -21
  154. package/dist/components/progress/Progress.svelte +34 -38
  155. package/dist/components/questionnaire/Questionnaire.svelte +19 -22
  156. package/dist/components/queued-message/QueuedMessage.svelte +14 -7
  157. package/dist/components/rail/RailItem.svelte +43 -40
  158. package/dist/components/rail/RailItem.svelte.d.ts +3 -1
  159. package/dist/components/rail/RailRoot.svelte +18 -4
  160. package/dist/components/rail/RailRoot.svelte.d.ts +1 -1
  161. package/dist/components/rail/RailSeparator.svelte +17 -0
  162. package/dist/components/rail/RailSeparator.svelte.d.ts +18 -0
  163. package/dist/components/rail/index.d.ts +2 -1
  164. package/dist/components/rail/index.js +2 -1
  165. package/dist/components/reasoning/ReasoningContent.svelte +4 -8
  166. package/dist/components/reasoning/ReasoningTrigger.svelte +4 -5
  167. package/dist/components/resize-handle/ResizeHandle.svelte +4 -7
  168. package/dist/components/reveal/Reveal.svelte +89 -0
  169. package/dist/components/reveal/Reveal.svelte.d.ts +17 -0
  170. package/dist/components/reveal/revealed.d.ts +38 -0
  171. package/dist/components/reveal/revealed.js +79 -0
  172. package/dist/components/segmented/SegmentedControl.svelte +11 -16
  173. package/dist/components/select/Select.svelte +1 -1
  174. package/dist/components/separator/Separator.svelte +1 -1
  175. package/dist/components/settings-row/SettingsRow.svelte +5 -5
  176. package/dist/components/sheet/SheetContent.svelte +63 -0
  177. package/dist/components/sheet/SheetContent.svelte.d.ts +18 -0
  178. package/dist/components/sheet/index.d.ts +12 -0
  179. package/dist/components/sheet/index.js +12 -0
  180. package/dist/components/sheet/styles.d.ts +51 -0
  181. package/dist/components/sheet/styles.js +65 -0
  182. package/dist/components/shimmer/Shimmer.svelte +41 -26
  183. package/dist/components/sidebar/SidebarContent.svelte +1 -1
  184. package/dist/components/sidebar/SidebarFolder.svelte +142 -0
  185. package/dist/components/sidebar/SidebarFolder.svelte.d.ts +19 -0
  186. package/dist/components/sidebar/SidebarFooter.svelte +1 -1
  187. package/dist/components/sidebar/SidebarGroup.svelte +41 -35
  188. package/dist/components/sidebar/SidebarGroup.svelte.d.ts +3 -3
  189. package/dist/components/sidebar/SidebarHeader.svelte +12 -6
  190. package/dist/components/sidebar/SidebarHeader.svelte.d.ts +4 -1
  191. package/dist/components/sidebar/SidebarItem.svelte +34 -38
  192. package/dist/components/sidebar/SidebarRoot.svelte +62 -0
  193. package/dist/components/sidebar/SidebarRoot.svelte.d.ts +14 -0
  194. package/dist/components/sidebar/index.d.ts +5 -1
  195. package/dist/components/sidebar/index.js +3 -1
  196. package/dist/components/skeleton/Skeleton.svelte +26 -15
  197. package/dist/components/slider/Slider.svelte +200 -0
  198. package/dist/components/slider/Slider.svelte.d.ts +55 -0
  199. package/dist/components/spinner/Spinner.svelte +4 -11
  200. package/dist/components/stack/Stack.svelte +37 -44
  201. package/dist/components/stack/Stack.svelte.d.ts +12 -6
  202. package/dist/components/status-indicator/StatusIndicator.svelte +1 -1
  203. package/dist/components/suggestions/SuggestionsItem.svelte +11 -13
  204. package/dist/components/switch/Switch.svelte +16 -25
  205. package/dist/components/tab-strip/TabStrip.svelte +340 -0
  206. package/dist/components/tab-strip/TabStrip.svelte.d.ts +31 -0
  207. package/dist/components/tabs/Tabs.svelte +15 -14
  208. package/dist/components/tabs/Tabs.svelte.d.ts +4 -0
  209. package/dist/components/text/Text.svelte +64 -14
  210. package/dist/components/text/Text.svelte.d.ts +13 -3
  211. package/dist/components/toast/Toaster.svelte +12 -10
  212. package/dist/components/toggle/Toggle.svelte +40 -0
  213. package/dist/components/toggle/Toggle.svelte.d.ts +15 -0
  214. package/dist/components/toggle-group/ToggleGroupItem.svelte +37 -0
  215. package/dist/components/toggle-group/ToggleGroupItem.svelte.d.ts +12 -0
  216. package/dist/components/toggle-group/ToggleGroupRoot.svelte +95 -0
  217. package/dist/components/toggle-group/ToggleGroupRoot.svelte.d.ts +33 -0
  218. package/dist/components/toggle-group/context.d.ts +6 -0
  219. package/dist/components/toggle-group/context.js +11 -0
  220. package/dist/components/toggle-group/index.d.ts +5 -0
  221. package/dist/components/toggle-group/index.js +3 -0
  222. package/dist/components/tool/ToolContent.svelte +3 -8
  223. package/dist/components/tool/ToolSection.svelte +4 -5
  224. package/dist/components/tool/ToolTrigger.svelte +14 -15
  225. package/dist/components/tooltip/TooltipContent.svelte +9 -6
  226. package/dist/components/work-fold/WorkFold.svelte +17 -34
  227. package/dist/components/work-fold/WorkFold.svelte.d.ts +1 -1
  228. package/dist/index.d.ts +38 -10
  229. package/dist/index.js +38 -12
  230. package/dist/internal/Chevron.svelte +2 -3
  231. package/dist/internal/Code.svelte +3 -4
  232. package/dist/internal/Collapse.svelte +6 -5
  233. package/dist/internal/Collapse.svelte.d.ts +2 -1
  234. package/dist/internal/Glyph.svelte +16 -0
  235. package/dist/internal/Glyph.svelte.d.ts +6 -0
  236. package/dist/internal/Tile.svelte +17 -37
  237. package/dist/internal/control.d.ts +4 -4
  238. package/dist/internal/control.js +21 -18
  239. package/dist/internal/layer.d.ts +3 -5
  240. package/dist/internal/layer.js +14 -18
  241. package/dist/internal/layout.d.ts +13 -0
  242. package/dist/internal/layout.js +453 -0
  243. package/dist/internal/markers.stylex.d.ts +8 -0
  244. package/dist/internal/markers.stylex.js +4 -0
  245. package/dist/internal/plugin-order.d.ts +8 -0
  246. package/dist/internal/plugin-order.js +16 -0
  247. package/dist/internal/responsive.d.ts +45 -0
  248. package/dist/internal/responsive.js +42 -0
  249. package/dist/internal/roving.js +5 -2
  250. package/dist/internal/shared.d.ts +8 -1
  251. package/dist/internal/shared.js +21 -5
  252. package/dist/internal/sx.d.ts +31 -4
  253. package/dist/internal/sx.js +17 -0
  254. package/dist/internal/toggle.d.ts +73 -0
  255. package/dist/internal/toggle.js +83 -0
  256. package/dist/internal/visible.d.ts +32 -0
  257. package/dist/internal/visible.js +44 -0
  258. package/dist/markdown/ast.d.ts +209 -0
  259. package/dist/markdown/ast.js +10 -0
  260. package/dist/markdown/blocks.d.ts +177 -0
  261. package/dist/markdown/blocks.js +1489 -0
  262. package/dist/markdown/code-info.d.ts +10 -0
  263. package/dist/markdown/code-info.js +16 -0
  264. package/dist/markdown/common.d.ts +25 -0
  265. package/dist/markdown/common.js +107 -0
  266. package/dist/markdown/diagrams.d.ts +2 -0
  267. package/dist/markdown/diagrams.js +18 -0
  268. package/dist/markdown/file-paths.d.ts +29 -0
  269. package/dist/markdown/file-paths.js +80 -0
  270. package/dist/markdown/files.d.ts +16 -0
  271. package/dist/markdown/files.js +133 -0
  272. package/dist/markdown/highlight.d.ts +30 -0
  273. package/dist/markdown/highlight.js +127 -0
  274. package/dist/markdown/html.d.ts +23 -0
  275. package/dist/markdown/html.js +289 -0
  276. package/dist/markdown/images.d.ts +15 -0
  277. package/dist/markdown/images.js +45 -0
  278. package/dist/markdown/index.d.ts +12 -0
  279. package/dist/markdown/index.js +5 -0
  280. package/dist/markdown/inlines.d.ts +48 -0
  281. package/dist/markdown/inlines.js +1714 -0
  282. package/dist/markdown/math.d.ts +2 -0
  283. package/dist/markdown/math.js +22 -0
  284. package/dist/markdown/parse.d.ts +81 -0
  285. package/dist/markdown/parse.js +204 -0
  286. package/dist/markdown/plugin.d.ts +178 -0
  287. package/dist/markdown/plugin.js +160 -0
  288. package/dist/markdown/sanitize.d.ts +78 -0
  289. package/dist/markdown/sanitize.js +522 -0
  290. package/dist/markdown/share.d.ts +12 -0
  291. package/dist/markdown/share.js +59 -0
  292. package/dist/markdown/table.d.ts +13 -0
  293. package/dist/markdown/table.js +60 -0
  294. package/dist/media.stylex.d.ts +52 -0
  295. package/dist/media.stylex.js +53 -0
  296. package/dist/preset.d.ts +40 -16
  297. package/dist/preset.js +169 -51
  298. package/dist/tokens.stylex.d.ts +70 -37
  299. package/dist/tokens.stylex.js +127 -62
  300. package/dist/typography.d.ts +48 -0
  301. package/dist/typography.js +55 -0
  302. package/dist/vite.d.ts +9 -1
  303. package/dist/vite.js +37 -4
  304. package/package.json +58 -6
  305. package/skills/building-ui/SKILL.md +242 -0
  306. package/skills/building-ui/references/components.md +207 -0
  307. package/skills/markdown/SKILL.md +452 -0
  308. package/skills/markdown/references/plugins.md +103 -0
  309. package/skills/setup/SKILL.md +191 -0
  310. package/skills/styling/SKILL.md +269 -0
  311. package/skills/theming/SKILL.md +184 -0
  312. package/dist/internal/loop.d.ts +0 -35
  313. package/dist/internal/loop.js +0 -72
@@ -5,6 +5,7 @@
5
5
  import { shared } from '../../internal/shared.js';
6
6
  import { attrs, type Sx } from '../../internal/sx.js';
7
7
  import { colors, font, motion, radius } from '../../tokens.stylex.js';
8
+ import { media } from '../../media.stylex.js';
8
9
  import { useComposer } from './context.js';
9
10
 
10
11
  export type ComposerAttachmentProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
@@ -21,9 +22,6 @@
21
22
  return `${(bytes / 1_000_000).toFixed(1)} MB`;
22
23
  }
23
24
 
24
- const HOVER = '@media (hover: hover) and (pointer: fine)';
25
- const MOTION = '@media (prefers-reduced-motion: no-preference)';
26
-
27
25
  const styles = stylex.create({
28
26
  // A chip: the thumbnail's radius plus the padding, so the corners sit concentric
29
27
  chip: {
@@ -37,13 +35,12 @@
37
35
  padding: '0.375rem',
38
36
  // Clear of the remove button on the corner
39
37
  paddingInlineEnd: '1rem',
40
- borderRadius: radius.xl,
41
- backgroundColor: colors.surface,
42
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
38
+ borderRadius: radius.card,
39
+ boxShadow: `inset 0 0 0 1px ${colors.border}`,
43
40
  cursor: 'default',
44
41
  opacity: { default: 1, '@starting-style': 0 },
45
- scale: { default: null, [MOTION]: { default: 1, '@starting-style': 0.94 } },
46
- transitionProperty: { default: 'opacity', [MOTION]: 'opacity, scale' },
42
+ scale: { default: null, [media.motion]: { default: 1, '@starting-style': 0.94 } },
43
+ transitionProperty: { default: 'opacity', [media.motion]: 'opacity, scale' },
47
44
  transitionDuration: motion.base,
48
45
  transitionTimingFunction: motion.easeOut
49
46
  },
@@ -54,9 +51,8 @@
54
51
  width: '2rem',
55
52
  height: '2rem',
56
53
  overflow: 'hidden',
57
- borderRadius: radius.sm,
58
- backgroundColor: colors.well,
59
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
54
+ borderRadius: radius.item,
55
+ backgroundColor: colors.fillSunken,
60
56
  color: colors.textMuted
61
57
  },
62
58
  image: {
@@ -77,13 +73,12 @@
77
73
  textOverflow: 'ellipsis',
78
74
  whiteSpace: 'nowrap',
79
75
  color: colors.text,
80
- fontSize: font.sizeSm,
76
+ fontSize: font.sizeMeta,
81
77
  fontWeight: font.weightMedium
82
78
  },
83
79
  meta: {
84
80
  color: colors.textSubtle,
85
- fontFamily: font.mono,
86
- fontSize: '0.6875rem',
81
+ fontSize: font.sizeMicro,
87
82
  fontVariantNumeric: 'tabular-nums'
88
83
  },
89
84
  // A small round button on the corner, out of the way of the name
@@ -98,12 +93,12 @@
98
93
  margin: 0,
99
94
  padding: 0,
100
95
  borderWidth: 0,
101
- borderRadius: radius.full,
96
+ borderRadius: radius.pill,
102
97
  backgroundColor: colors.bgRaised,
103
- boxShadow: `inset 0 0 0 1px ${colors.lineStrong}, 0 1px 2px ${colors.shade}`,
98
+ boxShadow: `inset 0 0 0 1px ${colors.borderStrong}`,
104
99
  color: {
105
100
  default: colors.textMuted,
106
- ':hover': { default: null, [HOVER]: colors.text }
101
+ ':hover': { default: null, [media.hover]: colors.text }
107
102
  },
108
103
  cursor: 'pointer',
109
104
  WebkitTapHighlightColor: 'transparent',
@@ -154,7 +149,7 @@
154
149
  <span {...stylex.attrs(styles.text)}>
155
150
  <span {...stylex.attrs(styles.name)} title={file.name}>{file.name}</span>
156
151
  <span {...stylex.attrs(styles.meta)}>
157
- {extension ? `${extension} · ` : ''}{formatSize(file.size)}
152
+ {extension ? `${extension} ` : ''}{formatSize(file.size)}
158
153
  </span>
159
154
  </span>
160
155
  <button
@@ -5,6 +5,7 @@
5
5
  import { shared } from '../../internal/shared.js';
6
6
  import { attrs, type Sx } from '../../internal/sx.js';
7
7
  import { colors, font, motion, radius } from '../../tokens.stylex.js';
8
+ import { media } from '../../media.stylex.js';
8
9
  import { getComposerContext } from './context.js';
9
10
 
10
11
  export type ComposerModel = {
@@ -31,9 +32,6 @@
31
32
  ref?: HTMLButtonElement | null;
32
33
  };
33
34
 
34
- const HOVER = '@media (hover: hover) and (pointer: fine)';
35
- const MOTION = '@media (prefers-reduced-motion: no-preference)';
36
- const FORCED = '@media (forced-colors: active)';
37
35
  const GAP = 6;
38
36
  const MARGIN = 8;
39
37
 
@@ -49,17 +47,17 @@
49
47
  paddingInlineStart: '0.625rem',
50
48
  paddingInlineEnd: '0.375rem',
51
49
  borderWidth: 0,
52
- borderRadius: `calc(${radius.xl} * 4 / 3)`,
50
+ borderRadius: `calc(${radius.card} * 4 / 3)`,
53
51
  backgroundColor: {
54
52
  default: 'transparent',
55
- ':hover': { default: null, [HOVER]: colors.hover }
53
+ ':hover': { default: null, [media.hover]: colors.fillHover }
56
54
  },
57
55
  color: {
58
56
  default: colors.textMuted,
59
- ':hover': { default: null, [HOVER]: colors.text }
57
+ ':hover': { default: null, [media.hover]: colors.text }
60
58
  },
61
59
  fontFamily: 'inherit',
62
- fontSize: font.sizeSm,
60
+ fontSize: font.sizeMeta,
63
61
  fontWeight: font.weightMedium,
64
62
  lineHeight: 1,
65
63
  whiteSpace: 'nowrap',
@@ -71,7 +69,7 @@
71
69
  transitionTimingFunction: 'ease'
72
70
  },
73
71
  triggerOpen: {
74
- backgroundColor: colors.hover,
72
+ backgroundColor: colors.fillSelected,
75
73
  color: colors.text
76
74
  },
77
75
  triggerText: {
@@ -96,24 +94,24 @@
96
94
  overscrollBehavior: 'contain',
97
95
  borderWidth: 0,
98
96
  // Inner items are 8px round with 4px of padding: 12px outside
99
- borderRadius: radius.xl,
97
+ borderRadius: radius.card,
100
98
  backgroundColor: colors.bgRaised,
101
- boxShadow: `inset 0 0 0 1px ${colors.lineStrong}, inset 0 1px 0 ${colors.highlight}, 0 2px 4px ${colors.shade}, 0 16px 40px -12px ${colors.shade}`,
99
+ boxShadow: `inset 0 0 0 1px ${colors.borderStrong}, 0 16px 40px -12px ${colors.shadow}`,
102
100
  color: colors.text,
103
101
  fontFamily: font.body,
104
102
  scrollbarWidth: 'thin',
105
103
  outlineStyle: 'solid',
106
- outlineWidth: { default: 0, [FORCED]: '1px' },
104
+ outlineWidth: { default: 0, [media.forcedColors]: '1px' },
107
105
  outlineColor: 'CanvasText',
108
106
  transformOrigin: 'var(--narvi-picker-origin, top left)',
109
107
  opacity: { default: 0, ':popover-open': { default: 1, '@starting-style': 0 } },
110
108
  scale: {
111
109
  default: null,
112
- [MOTION]: { default: 0.97, ':popover-open': { default: 1, '@starting-style': 0.97 } }
110
+ [media.motion]: { default: 0.97, ':popover-open': { default: 1, '@starting-style': 0.97 } }
113
111
  },
114
112
  transitionProperty: {
115
113
  default: 'opacity, display, overlay',
116
- [MOTION]: 'opacity, scale, display, overlay'
114
+ [media.motion]: 'opacity, scale, display, overlay'
117
115
  },
118
116
  transitionBehavior: 'allow-discrete',
119
117
  transitionDuration: { default: '100ms', ':popover-open': '160ms' },
@@ -136,11 +134,9 @@
136
134
  paddingBottom: '0.25rem',
137
135
  paddingInline: '0.625rem',
138
136
  color: colors.textSubtle,
139
- fontFamily: font.mono,
140
- fontSize: '0.6875rem',
141
- letterSpacing: '0.04em',
142
- lineHeight: 1,
143
- textTransform: 'uppercase'
137
+ fontSize: font.sizeCaption,
138
+ fontWeight: font.weightMedium,
139
+ lineHeight: 1
144
140
  },
145
141
  option: {
146
142
  display: 'grid',
@@ -150,7 +146,7 @@
150
146
  minHeight: '2.25rem',
151
147
  paddingBlock: '0.4375rem',
152
148
  paddingInline: '0.625rem',
153
- borderRadius: radius.md,
149
+ borderRadius: radius.control,
154
150
  cursor: 'pointer',
155
151
  userSelect: 'none',
156
152
  WebkitTapHighlightColor: 'transparent'
@@ -158,8 +154,8 @@
158
154
  // The option the keyboard or pointer is on. No transition: it follows the
159
155
  // arrow keys, which are pressed many times in a row.
160
156
  active: {
161
- backgroundColor: { default: colors.hover, [FORCED]: 'Highlight' },
162
- color: { default: null, [FORCED]: 'HighlightText' },
157
+ backgroundColor: { default: colors.fillHover, [media.forcedColors]: 'Highlight' },
158
+ color: { default: null, [media.forcedColors]: 'HighlightText' },
163
159
  forcedColorAdjust: 'none'
164
160
  },
165
161
  optionDisabled: {
@@ -171,7 +167,7 @@
171
167
  alignItems: 'center',
172
168
  gap: '0.375rem',
173
169
  minWidth: 0,
174
- fontSize: font.sizeMd,
170
+ fontSize: font.sizeBody,
175
171
  fontWeight: font.weightMedium,
176
172
  lineHeight: font.leadingSnug
177
173
  },
@@ -184,10 +180,10 @@
184
180
  flexShrink: 0,
185
181
  paddingBlock: '2px',
186
182
  paddingInline: '0.375rem',
187
- borderRadius: radius.lg,
188
- backgroundColor: colors.ithilSoft,
189
- color: colors.ithil,
190
- fontSize: '0.6875rem',
183
+ borderRadius: radius.panel,
184
+ backgroundColor: colors.accentSoft,
185
+ color: colors.accent,
186
+ fontSize: font.sizeMicro,
191
187
  fontWeight: font.weightMedium,
192
188
  lineHeight: 1.3
193
189
  },
@@ -195,14 +191,14 @@
195
191
  gridColumn: '1',
196
192
  marginTop: '2px',
197
193
  color: colors.textMuted,
198
- fontSize: font.sizeXs,
194
+ fontSize: font.sizeCaption,
199
195
  lineHeight: font.leadingSnug
200
196
  },
201
197
  check: {
202
198
  gridColumn: '2',
203
199
  gridRow: '1',
204
200
  display: 'grid',
205
- color: colors.ithil
201
+ color: colors.accent
206
202
  }
207
203
  });
208
204
 
@@ -5,6 +5,7 @@
5
5
  import { shared } from '../../internal/shared.js';
6
6
  import { attrs, type Sx } from '../../internal/sx.js';
7
7
  import { colors, font, motion, radius } from '../../tokens.stylex.js';
8
+ import { media } from '../../media.stylex.js';
8
9
  import {
9
10
  accepts,
10
11
  setComposerContext,
@@ -49,9 +50,6 @@
49
50
  children?: Snippet;
50
51
  };
51
52
 
52
- const FORCED = '@media (forced-colors: active)';
53
- const MOTION = '@media (prefers-reduced-motion: no-preference)';
54
-
55
53
  const styles = stylex.create({
56
54
  root: {
57
55
  position: 'relative',
@@ -64,17 +62,22 @@
64
62
  padding: '0.5rem',
65
63
  // The controls' radius plus this padding, so the corners sit concentric.
66
64
  // Both follow the radius scale: 1rem and 1.5rem by default.
67
- borderRadius: `calc(${radius.xl} * 4 / 3 + 0.5rem)`,
65
+ borderRadius: `calc(${radius.card} * 4 / 3 + 0.5rem)`,
68
66
  backgroundColor: colors.bgRaised,
69
67
  color: colors.text,
70
68
  fontFamily: font.body,
71
69
  cursor: 'text',
70
+ // Focus in the text field is shown as on every text field: the ring and its halo.
71
+ // Not for the buttons inside, which show their own.
72
72
  boxShadow: {
73
- default: `inset 0 0 0 1px ${colors.line}, inset 0 1px 0 ${colors.highlight}, 0 1px 2px ${colors.shade}, 0 16px 32px -20px ${colors.shade}`,
74
- ':focus-within': `inset 0 0 0 1px ${colors.edge}, inset 0 1px 0 ${colors.highlight}, 0 1px 2px ${colors.shade}, 0 16px 32px -20px ${colors.shade}`
73
+ default: `inset 0 0 0 1px ${colors.border}`,
74
+ ':has(textarea:focus-visible)': `inset 0 0 0 1px ${colors.focusRing}, 0 0 0 3px ${colors.focusHalo}`
75
75
  },
76
76
  // In forced colours the shadow is gone; the outline is the edge, and thickens with focus
77
- outlineWidth: { default: '1px', [FORCED]: { default: '1px', ':focus-within': '2px' } },
77
+ outlineWidth: {
78
+ default: '1px',
79
+ [media.forcedColors]: { default: '1px', ':focus-within': '2px' }
80
+ },
78
81
  transitionProperty: 'box-shadow',
79
82
  transitionDuration: motion.base,
80
83
  transitionTimingFunction: 'ease'
@@ -92,15 +95,14 @@
92
95
  placeItems: 'center',
93
96
  borderRadius: 'inherit',
94
97
  backgroundColor: `color-mix(in oklab, ${colors.bgRaised} 86%, transparent)`,
95
- backdropFilter: 'blur(2px)',
96
- boxShadow: `inset 0 0 0 1.5px ${colors.ithil}, 0 0 24px ${colors.glow}`,
97
- color: colors.ithil,
98
- fontSize: font.sizeMd,
98
+ boxShadow: `inset 0 0 0 1.5px ${colors.accent}`,
99
+ color: colors.accent,
100
+ fontSize: font.sizeBody,
99
101
  fontWeight: font.weightMedium,
100
102
  pointerEvents: 'none',
101
103
  opacity: { default: 1, '@starting-style': 0 },
102
- scale: { default: null, [MOTION]: { default: 1, '@starting-style': 0.98 } },
103
- transitionProperty: { default: 'opacity', [MOTION]: 'opacity, scale' },
104
+ scale: { default: null, [media.motion]: { default: 1, '@starting-style': 0.98 } },
105
+ transitionProperty: { default: 'opacity', [media.motion]: 'opacity, scale' },
104
106
  transitionDuration: motion.base,
105
107
  transitionTimingFunction: motion.easeOut
106
108
  },
@@ -1,9 +1,11 @@
1
1
  <script lang="ts" module>
2
2
  import * as stylex from '@stylexjs/stylex';
3
3
  import Glyph from '../../internal/Glyph.svelte';
4
- import { loop } from '../../internal/loop.js';
4
+ import { shared } from '../../internal/shared.js';
5
+ import { whileVisible } from '../../internal/visible.js';
5
6
  import type { Sx } from '../../internal/sx.js';
6
7
  import { colors, motion, radius } from '../../tokens.stylex.js';
8
+ import { media } from '../../media.stylex.js';
7
9
  import Button, { type ButtonProps } from '../button/Button.svelte';
8
10
  import { useComposer } from './context.js';
9
11
 
@@ -19,28 +21,18 @@
19
21
  ref?: HTMLButtonElement | null;
20
22
  };
21
23
 
22
- const MOTION = '@media (prefers-reduced-motion: no-preference)';
23
-
24
- // While the reply has not started, an arc circles the square, on the shared clock
25
- const spin = loop(
26
- (reduced) => (reduced ? 2400 : 900),
27
- (element, { progress }) => (element.style.rotate = `${progress}turn`),
28
- (element) => (element.style.rotate = '')
29
- );
30
-
31
24
  const styles = stylex.create({
32
25
  button: {
33
26
  marginInlineStart: 'auto',
34
27
  // Round by default; squarer when the radius scale is sharp
35
- borderRadius: `calc(${radius.xl} * 4 / 3)`
28
+ borderRadius: `calc(${radius.card} * 4 / 3)`
36
29
  },
37
- // Nothing to send yet: a quiet socket in the stone, not a greyed-out button.
38
- // It turns to mithril as soon as there is something to send.
30
+ // Nothing to send yet: a quiet flat fill, not a greyed-out button.
31
+ // It turns to the primary solid as soon as there is something to send.
39
32
  idle: {
40
33
  opacity: 1,
41
34
  backgroundImage: 'none',
42
- backgroundColor: colors.well,
43
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
35
+ backgroundColor: colors.fillMuted,
44
36
  color: colors.textSubtle,
45
37
  '::before': { display: 'none' }
46
38
  },
@@ -54,14 +46,14 @@
54
46
  gridArea: '1 / 1',
55
47
  display: 'grid',
56
48
  placeItems: 'center',
57
- transitionProperty: { default: 'opacity', [MOTION]: 'opacity, scale, filter' },
49
+ transitionProperty: { default: 'opacity', [media.motion]: 'opacity, scale, filter' },
58
50
  transitionDuration: motion.slow,
59
51
  transitionTimingFunction: motion.easeOut
60
52
  },
61
53
  gone: {
62
54
  opacity: 0,
63
- scale: { default: null, [MOTION]: 0.5 },
64
- filter: { default: null, [MOTION]: 'blur(2px)' }
55
+ scale: { default: null, [media.motion]: 0.5 },
56
+ filter: { default: null, [media.motion]: 'blur(2px)' }
65
57
  },
66
58
  // While the reply has not started, an arc circles the square
67
59
  ring: {
@@ -116,8 +108,8 @@
116
108
  viewBox="0 0 26 26"
117
109
  fill="none"
118
110
  aria-hidden="true"
119
- {...stylex.attrs(styles.ring)}
120
- {@attach spin}
111
+ {...stylex.attrs(styles.ring, shared.spin)}
112
+ {@attach whileVisible}
121
113
  >
122
114
  <path
123
115
  d="M13 2.5A10.5 10.5 0 0 1 23.5 13"
@@ -26,7 +26,7 @@
26
26
  color: colors.text,
27
27
  fontFamily: 'inherit',
28
28
  // The size messages are read at. At 16px, iOS also leaves the page unzoomed on focus.
29
- fontSize: font.sizeLg,
29
+ fontSize: font.sizeReading,
30
30
  lineHeight: font.leadingNormal,
31
31
  fieldSizing: 'content',
32
32
  resize: 'none',
@@ -5,6 +5,7 @@
5
5
  import { shared } from '../../internal/shared.js';
6
6
  import { attrs, type Sx } from '../../internal/sx.js';
7
7
  import { colors, font, motion, radius } from '../../tokens.stylex.js';
8
+ import { media } from '../../media.stylex.js';
8
9
  import { useComposer } from './context.js';
9
10
 
10
11
  export type ComposerToggleProps = Omit<HTMLButtonAttributes, 'children'> & {
@@ -16,10 +17,6 @@
16
17
  children?: Snippet;
17
18
  };
18
19
 
19
- const HOVER = '@media (hover: hover) and (pointer: fine)';
20
- const MOTION = '@media (prefers-reduced-motion: no-preference)';
21
- const FORCED = '@media (forced-colors: active)';
22
-
23
20
  const styles = stylex.create({
24
21
  toggle: {
25
22
  display: 'inline-flex',
@@ -30,42 +27,43 @@
30
27
  margin: 0,
31
28
  paddingInline: '0.625rem',
32
29
  borderWidth: 0,
33
- borderRadius: `calc(${radius.xl} * 4 / 3)`,
30
+ borderRadius: `calc(${radius.card} * 4 / 3)`,
34
31
  backgroundColor: {
35
32
  default: 'transparent',
36
- ':hover': { default: null, [HOVER]: colors.hover }
33
+ ':hover': { default: null, [media.hover]: colors.fillHover }
37
34
  },
38
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
39
35
  color: {
40
36
  default: colors.textMuted,
41
- ':hover': { default: null, [HOVER]: colors.text }
37
+ ':hover': { default: null, [media.hover]: colors.text }
42
38
  },
43
39
  fontFamily: 'inherit',
44
- fontSize: font.sizeSm,
40
+ fontSize: font.sizeMeta,
45
41
  fontWeight: font.weightMedium,
46
42
  lineHeight: 1,
47
43
  whiteSpace: 'nowrap',
48
44
  cursor: { default: 'pointer', ':disabled': 'not-allowed' },
49
45
  opacity: { default: 1, ':disabled': 0.5 },
50
46
  WebkitTapHighlightColor: 'transparent',
51
- scale: { default: null, ':active': { default: null, [MOTION]: 0.96 } },
47
+ scale: { default: null, ':active': { default: null, [media.motion]: 0.96 } },
52
48
  transitionProperty: {
53
- default: 'background-color, color, box-shadow',
54
- [MOTION]: 'scale, background-color, color, box-shadow'
49
+ default: 'background-color, color',
50
+ [media.motion]: 'scale, background-color, color'
55
51
  },
56
52
  transitionDuration: motion.base,
57
- transitionTimingFunction: { default: 'ease', [MOTION]: `${motion.easeOut}, ease, ease, ease` }
53
+ transitionTimingFunction: {
54
+ default: 'ease',
55
+ [media.motion]: `${motion.easeOut}, ease, ease`
56
+ }
58
57
  },
59
58
  // The icon leads, so the pill is a touch tighter on that side
60
59
  withIcon: { paddingInlineStart: '0.5rem' },
61
- // On: lit with ithildin, the one colour that marks state
60
+ // On: a fill of the accent, the one colour that marks state
62
61
  on: {
63
62
  backgroundColor: {
64
- default: colors.ithilSoft,
65
- ':hover': { default: null, [HOVER]: colors.focusHalo }
63
+ default: colors.accentSoft,
64
+ ':hover': { default: null, [media.hover]: colors.focusHalo }
66
65
  },
67
- boxShadow: `inset 0 0 0 1px color-mix(in oklab, ${colors.ithil} 35%, transparent)`,
68
- color: { default: colors.ithil, ':hover': colors.ithil, [FORCED]: 'Highlight' }
66
+ color: { default: colors.accent, ':hover': colors.accent, [media.forcedColors]: 'Highlight' }
69
67
  }
70
68
  });
71
69
  </script>
@@ -0,0 +1,78 @@
1
+ <!--
2
+ What is waiting on the person, held where their hands already are: over the
3
+ composer, not somewhere up the conversation. An approval, a question, a plan
4
+ to accept, the messages they have queued.
5
+
6
+ The tray is a shelf that rises behind the composer. With nothing waiting it
7
+ takes no room and draws nothing, so the composer does not move when work
8
+ arrives or is answered.
9
+ -->
10
+ <script lang="ts" module>
11
+ import * as stylex from '@stylexjs/stylex';
12
+ import type { Snippet } from 'svelte';
13
+ import type { HTMLAttributes } from 'svelte/elements';
14
+ import { attrs, type Sx } from '../../internal/sx.js';
15
+ import { colors, radius } from '../../tokens.stylex.js';
16
+
17
+ export type ComposerTrayProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
18
+ /** Names what is waiting, for assistive technology. */
19
+ label?: string;
20
+ /** What is waiting on the person: an Approval, a Questionnaire, QueuedMessages. */
21
+ pending?: Snippet;
22
+ sx?: Sx;
23
+ /** The Composer.Root. */
24
+ children?: Snippet;
25
+ };
26
+
27
+ const styles = stylex.create({
28
+ tray: { display: 'flex', flexDirection: 'column', minWidth: 0 },
29
+ // A flat fill whose foot tucks in behind the composer by the composer's own radius, so
30
+ // the two read as one piece. It is there only while something is in it.
31
+ pending: {
32
+ display: { default: 'none', ':has(> *)': 'flex' },
33
+ flexDirection: 'column',
34
+ gap: '0.375rem',
35
+ padding: '0.375rem',
36
+ paddingBottom: `calc(${radius.card} * 4 / 3 + 0.875rem)`,
37
+ marginBottom: `calc(-1 * (${radius.card} * 4 / 3 + 0.5rem))`,
38
+ borderStartStartRadius: `calc(${radius.card} + 0.375rem)`,
39
+ borderStartEndRadius: `calc(${radius.card} + 0.375rem)`,
40
+ backgroundColor: colors.fillMuted,
41
+ outlineStyle: 'solid',
42
+ outlineWidth: '1px',
43
+ outlineColor: 'transparent',
44
+ outlineOffset: '-1px'
45
+ },
46
+ // The composer stands in front of the shelf
47
+ front: {
48
+ position: 'relative',
49
+ zIndex: 1,
50
+ display: 'flex',
51
+ flexDirection: 'column',
52
+ minWidth: 0
53
+ }
54
+ });
55
+ </script>
56
+
57
+ <script lang="ts">
58
+ let {
59
+ label = 'Waiting for you',
60
+ pending,
61
+ sx,
62
+ class: className,
63
+ children,
64
+ ...rest
65
+ }: ComposerTrayProps = $props();
66
+ </script>
67
+
68
+ <div data-slot="composer-tray" {...rest} {...attrs([styles.tray, sx], className)}>
69
+ <div
70
+ role="group"
71
+ aria-label={label}
72
+ data-slot="composer-tray-pending"
73
+ {...stylex.attrs(styles.pending)}
74
+ >
75
+ {@render pending?.()}
76
+ </div>
77
+ <div {...stylex.attrs(styles.front)}>{@render children?.()}</div>
78
+ </div>
@@ -0,0 +1,15 @@
1
+ import type { Snippet } from 'svelte';
2
+ import type { HTMLAttributes } from 'svelte/elements';
3
+ import { type Sx } from '../../internal/sx.js';
4
+ export type ComposerTrayProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
5
+ /** Names what is waiting, for assistive technology. */
6
+ label?: string;
7
+ /** What is waiting on the person: an Approval, a Questionnaire, QueuedMessages. */
8
+ pending?: Snippet;
9
+ sx?: Sx;
10
+ /** The Composer.Root. */
11
+ children?: Snippet;
12
+ };
13
+ declare const ComposerTray: import("svelte").Component<ComposerTrayProps, {}, "">;
14
+ type ComposerTray = ReturnType<typeof ComposerTray>;
15
+ export default ComposerTray;
@@ -7,7 +7,8 @@ import Submit from './ComposerSubmit.svelte';
7
7
  import Textarea from './ComposerTextarea.svelte';
8
8
  import Toggle from './ComposerToggle.svelte';
9
9
  import Toolbar from './ComposerToolbar.svelte';
10
- export { Root, Attachments, Attachment, Textarea, Toolbar, AttachButton, Toggle, ModelPicker, Submit, Root as ComposerRoot, Attachments as ComposerAttachments, Attachment as ComposerAttachment, Textarea as ComposerTextarea, Toolbar as ComposerToolbar, AttachButton as ComposerAttachButton, Toggle as ComposerToggle, ModelPicker as ComposerModelPicker, Submit as ComposerSubmit };
10
+ import Tray from './ComposerTray.svelte';
11
+ export { Tray, Root, Attachments, Attachment, Textarea, Toolbar, AttachButton, Toggle, ModelPicker, Submit, Tray as ComposerTray, Root as ComposerRoot, Attachments as ComposerAttachments, Attachment as ComposerAttachment, Textarea as ComposerTextarea, Toolbar as ComposerToolbar, AttachButton as ComposerAttachButton, Toggle as ComposerToggle, ModelPicker as ComposerModelPicker, Submit as ComposerSubmit };
11
12
  export { getComposerContext } from './context.js';
12
13
  export type { ComposerContext, ComposerMessage, ComposerRejection, ComposerStatus } from './context.js';
13
14
  export type { ComposerAttachButtonProps } from './ComposerAttachButton.svelte';
@@ -19,3 +20,4 @@ export type { ComposerSubmitProps } from './ComposerSubmit.svelte';
19
20
  export type { ComposerTextareaProps } from './ComposerTextarea.svelte';
20
21
  export type { ComposerToggleProps } from './ComposerToggle.svelte';
21
22
  export type { ComposerToolbarProps } from './ComposerToolbar.svelte';
23
+ export type { ComposerTrayProps } from './ComposerTray.svelte';
@@ -7,7 +7,8 @@ import Submit from './ComposerSubmit.svelte';
7
7
  import Textarea from './ComposerTextarea.svelte';
8
8
  import Toggle from './ComposerToggle.svelte';
9
9
  import Toolbar from './ComposerToolbar.svelte';
10
- export { Root, Attachments, Attachment, Textarea, Toolbar, AttachButton, Toggle, ModelPicker, Submit,
10
+ import Tray from './ComposerTray.svelte';
11
+ export { Tray, Root, Attachments, Attachment, Textarea, Toolbar, AttachButton, Toggle, ModelPicker, Submit,
11
12
  //
12
- Root as ComposerRoot, Attachments as ComposerAttachments, Attachment as ComposerAttachment, Textarea as ComposerTextarea, Toolbar as ComposerToolbar, AttachButton as ComposerAttachButton, Toggle as ComposerToggle, ModelPicker as ComposerModelPicker, Submit as ComposerSubmit };
13
+ Tray as ComposerTray, Root as ComposerRoot, Attachments as ComposerAttachments, Attachment as ComposerAttachment, Textarea as ComposerTextarea, Toolbar as ComposerToolbar, AttachButton as ComposerAttachButton, Toggle as ComposerToggle, ModelPicker as ComposerModelPicker, Submit as ComposerSubmit };
13
14
  export { getComposerContext } from './context.js';
@@ -27,7 +27,7 @@
27
27
  overscrollBehavior: 'contain',
28
28
  scrollbarGutter: 'stable',
29
29
  scrollbarWidth: 'thin',
30
- scrollbarColor: `${colors.lineStrong} transparent`,
30
+ scrollbarColor: `${colors.borderStrong} transparent`,
31
31
  outlineStyle: 'solid',
32
32
  outlineWidth: { default: 0, ':focus-visible': '2px' },
33
33
  outlineColor: colors.focusRing,
@@ -39,7 +39,8 @@
39
39
  flexDirection: 'column',
40
40
  gap: space.x5,
41
41
  width: '100%',
42
- maxWidth: '46rem',
42
+ // 36rem of text at 16px: about 75 characters to a line
43
+ maxWidth: '38rem',
43
44
  minHeight: '100%',
44
45
  marginInline: 'auto',
45
46
  paddingBlock: space.x6,
@@ -50,7 +50,7 @@
50
50
  maxWidth: '32rem',
51
51
  margin: 0,
52
52
  color: colors.textMuted,
53
- fontSize: font.sizeMd,
53
+ fontSize: font.sizeBody,
54
54
  lineHeight: font.leadingNormal
55
55
  },
56
56
  children: {