@diegopluna/narvi 0.1.0 → 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 (259) hide show
  1. package/README.md +102 -41
  2. package/dist/base.css +2 -2
  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 +3 -3
  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 -16
  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 +37 -61
  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 +91 -19
  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 +219 -40
  36. package/dist/components/button/Button.svelte.d.ts +38 -2
  37. package/dist/components/card/Card.svelte +15 -26
  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 +18 -15
  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/CollapsibleTrigger.svelte +2 -2
  44. package/dist/components/command/CommandItem.svelte +1 -1
  45. package/dist/components/command/styles.d.ts +3 -2
  46. package/dist/components/command/styles.js +13 -10
  47. package/dist/components/composer/ComposerAttachButton.svelte +1 -1
  48. package/dist/components/composer/ComposerAttachment.svelte +9 -12
  49. package/dist/components/composer/ComposerModelPicker.svelte +18 -20
  50. package/dist/components/composer/ComposerRoot.svelte +8 -7
  51. package/dist/components/composer/ComposerSubmit.svelte +8 -15
  52. package/dist/components/composer/ComposerTextarea.svelte +1 -1
  53. package/dist/components/composer/ComposerToggle.svelte +9 -11
  54. package/dist/components/composer/ComposerTray.svelte +78 -0
  55. package/dist/components/composer/ComposerTray.svelte.d.ts +15 -0
  56. package/dist/components/composer/index.d.ts +3 -1
  57. package/dist/components/composer/index.js +3 -2
  58. package/dist/components/conversation/ConversationContent.svelte +3 -2
  59. package/dist/components/conversation/ConversationEmpty.svelte +1 -1
  60. package/dist/components/conversation/ConversationScrollButton.svelte +3 -3
  61. package/dist/components/dialog/ConfirmDialog.svelte +1 -1
  62. package/dist/components/dialog/styles.d.ts +2 -3
  63. package/dist/components/dialog/styles.js +5 -6
  64. package/dist/components/divider/Divider.svelte +3 -3
  65. package/dist/components/empty-state/EmptyState.svelte +4 -5
  66. package/dist/components/field/Field.svelte +4 -4
  67. package/dist/components/frame/Frame.svelte +6 -7
  68. package/dist/components/frame/Frame.svelte.d.ts +1 -1
  69. package/dist/components/heading/Heading.svelte +2 -2
  70. package/dist/components/kbd/Kbd.svelte +12 -7
  71. package/dist/components/link/Link.svelte +7 -3
  72. package/dist/components/link/Link.svelte.d.ts +4 -1
  73. package/dist/components/markdown/Markdown.svelte +714 -0
  74. package/dist/components/markdown/Markdown.svelte.d.ts +80 -0
  75. package/dist/components/markdown/MarkdownBlock.svelte +231 -0
  76. package/dist/components/markdown/MarkdownBlock.svelte.d.ts +11 -0
  77. package/dist/components/markdown/MarkdownBlocks.svelte +115 -0
  78. package/dist/components/markdown/MarkdownBlocks.svelte.d.ts +15 -0
  79. package/dist/components/markdown/MarkdownCode.svelte +583 -0
  80. package/dist/components/markdown/MarkdownCode.svelte.d.ts +23 -0
  81. package/dist/components/markdown/MarkdownDiagram.svelte +310 -0
  82. package/dist/components/markdown/MarkdownDiagram.svelte.d.ts +6 -0
  83. package/dist/components/markdown/MarkdownFile.svelte +134 -0
  84. package/dist/components/markdown/MarkdownFile.svelte.d.ts +19 -0
  85. package/dist/components/markdown/MarkdownFootnotes.svelte +61 -0
  86. package/dist/components/markdown/MarkdownFootnotes.svelte.d.ts +8 -0
  87. package/dist/components/markdown/MarkdownFresh.svelte +69 -0
  88. package/dist/components/markdown/MarkdownFresh.svelte.d.ts +6 -0
  89. package/dist/components/markdown/MarkdownHtml.svelte +72 -0
  90. package/dist/components/markdown/MarkdownHtml.svelte.d.ts +7 -0
  91. package/dist/components/markdown/MarkdownImage.svelte +150 -0
  92. package/dist/components/markdown/MarkdownImage.svelte.d.ts +8 -0
  93. package/dist/components/markdown/MarkdownInlines.svelte +225 -0
  94. package/dist/components/markdown/MarkdownInlines.svelte.d.ts +7 -0
  95. package/dist/components/markdown/MarkdownLink.svelte +120 -0
  96. package/dist/components/markdown/MarkdownLink.svelte.d.ts +25 -0
  97. package/dist/components/markdown/MarkdownMath.svelte +138 -0
  98. package/dist/components/markdown/MarkdownMath.svelte.d.ts +7 -0
  99. package/dist/components/markdown/MarkdownTable.svelte +265 -0
  100. package/dist/components/markdown/MarkdownTable.svelte.d.ts +17 -0
  101. package/dist/components/markdown/caret.d.ts +14 -0
  102. package/dist/components/markdown/caret.js +67 -0
  103. package/dist/components/markdown/context.d.ts +93 -0
  104. package/dist/components/markdown/context.js +128 -0
  105. package/dist/components/markdown/copy.d.ts +13 -0
  106. package/dist/components/markdown/copy.js +74 -0
  107. package/dist/components/markdown/hidden.d.ts +12 -0
  108. package/dist/components/markdown/hidden.js +31 -0
  109. package/dist/components/markdown/kept.d.ts +32 -0
  110. package/dist/components/markdown/kept.js +71 -0
  111. package/dist/components/markdown/labels.d.ts +46 -0
  112. package/dist/components/markdown/labels.js +35 -0
  113. package/dist/components/markdown/save.d.ts +11 -0
  114. package/dist/components/markdown/save.js +58 -0
  115. package/dist/components/markdown/scrollable.d.ts +24 -0
  116. package/dist/components/markdown/scrollable.js +152 -0
  117. package/dist/components/markdown/static.d.ts +37 -0
  118. package/dist/components/markdown/static.js +233 -0
  119. package/dist/components/markdown/styles.d.ts +328 -0
  120. package/dist/components/markdown/styles.js +302 -0
  121. package/dist/components/menu/MenuRadioItem.svelte +3 -3
  122. package/dist/components/menu/index.d.ts +23 -0
  123. package/dist/components/menu/index.js +3 -1
  124. package/dist/components/message/MessageAction.svelte +22 -2
  125. package/dist/components/message/MessageAction.svelte.d.ts +9 -0
  126. package/dist/components/message/MessageContent.svelte +2 -3
  127. package/dist/components/message/MessageCopy.svelte +62 -3
  128. package/dist/components/message/MessageCopy.svelte.d.ts +17 -1
  129. package/dist/components/message/MessageHeader.svelte +3 -3
  130. package/dist/components/message/MessagePending.svelte +1 -1
  131. package/dist/components/message/MessageTime.svelte +1 -1
  132. package/dist/components/notice/Notice.svelte +14 -10
  133. package/dist/components/plan/Plan.svelte +22 -17
  134. package/dist/components/progress/Progress.svelte +31 -33
  135. package/dist/components/questionnaire/Questionnaire.svelte +19 -22
  136. package/dist/components/queued-message/QueuedMessage.svelte +14 -7
  137. package/dist/components/rail/RailItem.svelte +37 -34
  138. package/dist/components/rail/RailItem.svelte.d.ts +3 -1
  139. package/dist/components/rail/RailRoot.svelte +18 -4
  140. package/dist/components/rail/RailRoot.svelte.d.ts +1 -1
  141. package/dist/components/rail/RailSeparator.svelte +17 -0
  142. package/dist/components/rail/RailSeparator.svelte.d.ts +18 -0
  143. package/dist/components/rail/index.d.ts +2 -1
  144. package/dist/components/rail/index.js +2 -1
  145. package/dist/components/reasoning/ReasoningContent.svelte +4 -8
  146. package/dist/components/reasoning/ReasoningTrigger.svelte +2 -2
  147. package/dist/components/resize-handle/ResizeHandle.svelte +2 -3
  148. package/dist/components/segmented/SegmentedControl.svelte +7 -8
  149. package/dist/components/select/Select.svelte +1 -1
  150. package/dist/components/separator/Separator.svelte +1 -1
  151. package/dist/components/settings-row/SettingsRow.svelte +5 -5
  152. package/dist/components/shimmer/Shimmer.svelte +34 -21
  153. package/dist/components/sidebar/SidebarContent.svelte +1 -1
  154. package/dist/components/sidebar/SidebarFolder.svelte +142 -0
  155. package/dist/components/sidebar/SidebarFolder.svelte.d.ts +19 -0
  156. package/dist/components/sidebar/SidebarFooter.svelte +1 -1
  157. package/dist/components/sidebar/SidebarGroup.svelte +36 -32
  158. package/dist/components/sidebar/SidebarGroup.svelte.d.ts +3 -3
  159. package/dist/components/sidebar/SidebarHeader.svelte +12 -6
  160. package/dist/components/sidebar/SidebarHeader.svelte.d.ts +4 -1
  161. package/dist/components/sidebar/SidebarItem.svelte +26 -32
  162. package/dist/components/sidebar/SidebarRoot.svelte +62 -0
  163. package/dist/components/sidebar/SidebarRoot.svelte.d.ts +14 -0
  164. package/dist/components/sidebar/index.d.ts +5 -1
  165. package/dist/components/sidebar/index.js +3 -1
  166. package/dist/components/skeleton/Skeleton.svelte +26 -15
  167. package/dist/components/slider/Slider.svelte +11 -10
  168. package/dist/components/spinner/Spinner.svelte +4 -11
  169. package/dist/components/status-indicator/StatusIndicator.svelte +1 -1
  170. package/dist/components/suggestions/SuggestionsItem.svelte +5 -5
  171. package/dist/components/switch/Switch.svelte +9 -14
  172. package/dist/components/tab-strip/TabStrip.svelte +340 -0
  173. package/dist/components/tab-strip/TabStrip.svelte.d.ts +31 -0
  174. package/dist/components/tabs/Tabs.svelte +13 -9
  175. package/dist/components/tabs/Tabs.svelte.d.ts +4 -0
  176. package/dist/components/text/Text.svelte +31 -23
  177. package/dist/components/text/Text.svelte.d.ts +8 -4
  178. package/dist/components/toast/Toaster.svelte +5 -5
  179. package/dist/components/tool/ToolContent.svelte +3 -8
  180. package/dist/components/tool/ToolSection.svelte +4 -5
  181. package/dist/components/tool/ToolTrigger.svelte +10 -9
  182. package/dist/components/tooltip/TooltipContent.svelte +3 -3
  183. package/dist/components/work-fold/WorkFold.svelte +5 -9
  184. package/dist/index.d.ts +16 -8
  185. package/dist/index.js +17 -10
  186. package/dist/internal/Code.svelte +3 -4
  187. package/dist/internal/Glyph.svelte +16 -0
  188. package/dist/internal/Glyph.svelte.d.ts +6 -0
  189. package/dist/internal/Tile.svelte +17 -37
  190. package/dist/internal/control.d.ts +4 -4
  191. package/dist/internal/control.js +20 -17
  192. package/dist/internal/layer.d.ts +3 -5
  193. package/dist/internal/layer.js +10 -12
  194. package/dist/internal/markers.stylex.d.ts +8 -0
  195. package/dist/internal/markers.stylex.js +4 -0
  196. package/dist/internal/plugin-order.d.ts +8 -0
  197. package/dist/internal/plugin-order.js +16 -0
  198. package/dist/internal/roving.js +5 -2
  199. package/dist/internal/shared.d.ts +8 -1
  200. package/dist/internal/shared.js +21 -5
  201. package/dist/internal/sx.d.ts +1 -1
  202. package/dist/internal/toggle.d.ts +1 -2
  203. package/dist/internal/toggle.js +8 -12
  204. package/dist/internal/visible.d.ts +32 -0
  205. package/dist/internal/visible.js +44 -0
  206. package/dist/markdown/ast.d.ts +209 -0
  207. package/dist/markdown/ast.js +10 -0
  208. package/dist/markdown/blocks.d.ts +177 -0
  209. package/dist/markdown/blocks.js +1489 -0
  210. package/dist/markdown/code-info.d.ts +10 -0
  211. package/dist/markdown/code-info.js +16 -0
  212. package/dist/markdown/common.d.ts +25 -0
  213. package/dist/markdown/common.js +107 -0
  214. package/dist/markdown/diagrams.d.ts +2 -0
  215. package/dist/markdown/diagrams.js +18 -0
  216. package/dist/markdown/file-paths.d.ts +29 -0
  217. package/dist/markdown/file-paths.js +80 -0
  218. package/dist/markdown/files.d.ts +16 -0
  219. package/dist/markdown/files.js +133 -0
  220. package/dist/markdown/highlight.d.ts +30 -0
  221. package/dist/markdown/highlight.js +127 -0
  222. package/dist/markdown/html.d.ts +23 -0
  223. package/dist/markdown/html.js +289 -0
  224. package/dist/markdown/images.d.ts +15 -0
  225. package/dist/markdown/images.js +45 -0
  226. package/dist/markdown/index.d.ts +12 -0
  227. package/dist/markdown/index.js +5 -0
  228. package/dist/markdown/inlines.d.ts +48 -0
  229. package/dist/markdown/inlines.js +1714 -0
  230. package/dist/markdown/math.d.ts +2 -0
  231. package/dist/markdown/math.js +22 -0
  232. package/dist/markdown/parse.d.ts +81 -0
  233. package/dist/markdown/parse.js +204 -0
  234. package/dist/markdown/plugin.d.ts +178 -0
  235. package/dist/markdown/plugin.js +160 -0
  236. package/dist/markdown/sanitize.d.ts +78 -0
  237. package/dist/markdown/sanitize.js +522 -0
  238. package/dist/markdown/share.d.ts +12 -0
  239. package/dist/markdown/share.js +59 -0
  240. package/dist/markdown/table.d.ts +13 -0
  241. package/dist/markdown/table.js +60 -0
  242. package/dist/preset.d.ts +40 -16
  243. package/dist/preset.js +169 -51
  244. package/dist/tokens.stylex.d.ts +55 -37
  245. package/dist/tokens.stylex.js +107 -62
  246. package/dist/typography.d.ts +48 -0
  247. package/dist/typography.js +55 -0
  248. package/dist/vite.d.ts +7 -1
  249. package/dist/vite.js +27 -2
  250. package/package.json +53 -6
  251. package/skills/building-ui/SKILL.md +242 -0
  252. package/skills/building-ui/references/components.md +207 -0
  253. package/skills/markdown/SKILL.md +452 -0
  254. package/skills/markdown/references/plugins.md +103 -0
  255. package/skills/setup/SKILL.md +191 -0
  256. package/skills/styling/SKILL.md +269 -0
  257. package/skills/theming/SKILL.md +184 -0
  258. package/dist/internal/loop.d.ts +0 -35
  259. package/dist/internal/loop.js +0 -72
@@ -14,6 +14,11 @@ export type CheckboxProps = Omit<HTMLInputAttributes, 'type' | 'children'> & {
14
14
  /** Label content. Without it, give the checkbox an `aria-label`. */
15
15
  children?: Snippet;
16
16
  };
17
+ /**
18
+ * The class of a checkbox that stands alone, as the component gives it one: for the parts
19
+ * of Markdown that are written as a string.
20
+ */
21
+ export declare function checkboxClass(sx?: Sx): string;
17
22
  declare const Checkbox: import("svelte").Component<CheckboxProps, {}, "ref" | "checked" | "indeterminate">;
18
23
  type Checkbox = ReturnType<typeof Checkbox>;
19
24
  export default Checkbox;
@@ -15,8 +15,7 @@
15
15
  paddingBlock: '0.125em',
16
16
  paddingInline: '0.35em',
17
17
  borderRadius: '0.35em',
18
- backgroundColor: colors.surfaceRaised,
19
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
18
+ backgroundColor: colors.fillSunken,
20
19
  color: colors.text,
21
20
  fontFamily: font.mono,
22
21
  fontSize: '0.875em',
@@ -28,11 +28,11 @@
28
28
  margin: 0,
29
29
  padding: 0,
30
30
  borderWidth: 0,
31
- borderRadius: radius.xs,
31
+ borderRadius: radius.chip,
32
32
  backgroundColor: 'transparent',
33
33
  color: { default: colors.textMuted, ':hover': { default: null, [media.hover]: colors.text } },
34
34
  fontFamily: 'inherit',
35
- fontSize: font.sizeMd,
35
+ fontSize: font.sizeBody,
36
36
  fontWeight: font.weightMedium,
37
37
  lineHeight: font.leadingSnug,
38
38
  textAlign: 'start',
@@ -37,7 +37,7 @@
37
37
  {#if icon}<span {...stylex.attrs(layer.icon)}>{@render icon()}</span>{/if}
38
38
  <span {...stylex.attrs(layer.label)}>
39
39
  {@render children?.()}
40
- {#if detail}<span {...stylex.attrs(command.detail)}>&nbsp;· {detail}</span>{/if}
40
+ {#if detail}<span {...stylex.attrs(command.detail)}>{detail}</span>{/if}
41
41
  </span>
42
42
  <span {...stylex.attrs(layer.trailing)}>
43
43
  {#if shortcut}{shortcut}{/if}
@@ -58,6 +58,7 @@ export declare const command: Readonly<{
58
58
  readonly forcedColorAdjust: stylex.StyleXClassNameFor<"forcedColorAdjust", "none">;
59
59
  }>;
60
60
  readonly detail: Readonly<{
61
+ readonly marginInlineStart: stylex.StyleXClassNameFor<"marginInlineStart", "0.5rem">;
61
62
  readonly color: stylex.StyleXClassNameFor<"color", string>;
62
63
  readonly fontSize: stylex.StyleXClassNameFor<"fontSize", string>;
63
64
  readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
@@ -95,7 +96,7 @@ export declare const command: Readonly<{
95
96
  readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
96
97
  readonly borderRadius: stylex.StyleXClassNameFor<"borderRadius", string>;
97
98
  readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", string>;
98
- readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `inset 0 0 0 1px ${stylex.StyleXVar<string>}, inset 0 1px 0 ${stylex.StyleXVar<string>}, 0 32px 80px -16px rgb(0 0 0 / 0.55)`>;
99
+ readonly boxShadow: stylex.StyleXClassNameFor<"boxShadow", `inset 0 0 0 1px ${stylex.StyleXVar<string>}, 0 32px 80px -16px ${stylex.StyleXVar<string>}`>;
99
100
  readonly outlineStyle: stylex.StyleXClassNameFor<"outlineStyle", "solid">;
100
101
  readonly outlineWidth: stylex.StyleXClassNameFor<"outlineWidth", 0 | "1px">;
101
102
  readonly outlineColor: stylex.StyleXClassNameFor<"outlineColor", "CanvasText">;
@@ -104,7 +105,7 @@ export declare const command: Readonly<{
104
105
  readonly position: stylex.StyleXClassNameFor<"position", "fixed">;
105
106
  readonly inset: stylex.StyleXClassNameFor<"inset", 0>;
106
107
  readonly zIndex: stylex.StyleXClassNameFor<"zIndex", 50>;
107
- readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "light-dark(rgb(20 23 28 / 0.2), rgb(0 0 0 / 0.45))">;
108
+ readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", `color-mix(in oklab, ${stylex.StyleXVar<string>} 70%, transparent)`>;
108
109
  }>;
109
110
  readonly hidden: Readonly<{
110
111
  readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
@@ -9,7 +9,7 @@ export const command = stylex.create({
9
9
  minHeight: 0,
10
10
  color: colors.text,
11
11
  fontFamily: font.body,
12
- fontSize: font.sizeMd
12
+ fontSize: font.sizeBody
13
13
  },
14
14
  search: {
15
15
  display: 'flex',
@@ -19,7 +19,7 @@ export const command = stylex.create({
19
19
  paddingInline: space.x4,
20
20
  borderBottomWidth: '1px',
21
21
  borderBottomStyle: 'solid',
22
- borderBottomColor: colors.line,
22
+ borderBottomColor: colors.border,
23
23
  color: colors.textSubtle
24
24
  },
25
25
  input: {
@@ -32,7 +32,7 @@ export const command = stylex.create({
32
32
  backgroundColor: 'transparent',
33
33
  color: colors.text,
34
34
  fontFamily: 'inherit',
35
- fontSize: font.sizeLg,
35
+ fontSize: font.sizeReading,
36
36
  outlineStyle: 'none',
37
37
  '::placeholder': { color: colors.textSubtle, opacity: 1 }
38
38
  },
@@ -50,19 +50,21 @@ export const command = stylex.create({
50
50
  gap: '0.625rem',
51
51
  minHeight: '2.375rem',
52
52
  paddingInline: '0.625rem',
53
- borderRadius: radius.md,
53
+ borderRadius: radius.control,
54
54
  color: colors.text,
55
55
  cursor: 'default',
56
56
  userSelect: 'none',
57
57
  backgroundColor: {
58
58
  default: 'transparent',
59
- [SELECTED]: { default: colors.hover, [media.forcedColors]: 'Highlight' }
59
+ [SELECTED]: { default: colors.fillHover, [media.forcedColors]: 'Highlight' }
60
60
  },
61
61
  forcedColorAdjust: 'none'
62
62
  },
63
+ // Beside the label, set off by room
63
64
  detail: {
65
+ marginInlineStart: '0.5rem',
64
66
  color: colors.textSubtle,
65
- fontSize: font.sizeSm,
67
+ fontSize: font.sizeMeta,
66
68
  overflow: 'hidden',
67
69
  textOverflow: 'ellipsis',
68
70
  whiteSpace: 'nowrap'
@@ -81,9 +83,9 @@ export const command = stylex.create({
81
83
  paddingInline: space.x4,
82
84
  borderTopWidth: '1px',
83
85
  borderTopStyle: 'solid',
84
- borderTopColor: colors.line,
86
+ borderTopColor: colors.border,
85
87
  color: colors.textSubtle,
86
- fontSize: font.sizeXs
88
+ fontSize: font.sizeCaption
87
89
  },
88
90
  // The palette is opened many times a day, so it opens and closes at once
89
91
  dialog: {
@@ -99,7 +101,7 @@ export const command = stylex.create({
99
101
  overflow: 'hidden',
100
102
  borderRadius: radius.frame,
101
103
  backgroundColor: colors.bgRaised,
102
- boxShadow: `inset 0 0 0 1px ${colors.lineStrong}, inset 0 1px 0 ${colors.highlight}, 0 32px 80px -16px rgb(0 0 0 / 0.55)`,
104
+ boxShadow: `inset 0 0 0 1px ${colors.borderStrong}, 0 32px 80px -16px ${colors.shadow}`,
103
105
  outlineStyle: 'solid',
104
106
  outlineWidth: { default: 0, [media.forcedColors]: '1px' },
105
107
  outlineColor: 'CanvasText'
@@ -108,7 +110,8 @@ export const command = stylex.create({
108
110
  position: 'fixed',
109
111
  inset: 0,
110
112
  zIndex: 50,
111
- backgroundColor: 'light-dark(rgb(20 23 28 / 0.2), rgb(0 0 0 / 0.45))'
113
+ // Lighter than a dialog's: the page behind is what is being searched
114
+ backgroundColor: `color-mix(in oklab, ${colors.scrim} 70%, transparent)`
112
115
  },
113
116
  hidden: {
114
117
  position: 'absolute',
@@ -20,7 +20,7 @@
20
20
  };
21
21
 
22
22
  const styles = stylex.create({
23
- button: { borderRadius: `calc(${radius.xl} * 4 / 3)` }
23
+ button: { borderRadius: `calc(${radius.card} * 4 / 3)` }
24
24
  });
25
25
  </script>
26
26
 
@@ -35,9 +35,8 @@
35
35
  padding: '0.375rem',
36
36
  // Clear of the remove button on the corner
37
37
  paddingInlineEnd: '1rem',
38
- borderRadius: radius.xl,
39
- backgroundColor: colors.surface,
40
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
38
+ borderRadius: radius.card,
39
+ boxShadow: `inset 0 0 0 1px ${colors.border}`,
41
40
  cursor: 'default',
42
41
  opacity: { default: 1, '@starting-style': 0 },
43
42
  scale: { default: null, [media.motion]: { default: 1, '@starting-style': 0.94 } },
@@ -52,9 +51,8 @@
52
51
  width: '2rem',
53
52
  height: '2rem',
54
53
  overflow: 'hidden',
55
- borderRadius: radius.sm,
56
- backgroundColor: colors.well,
57
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
54
+ borderRadius: radius.item,
55
+ backgroundColor: colors.fillSunken,
58
56
  color: colors.textMuted
59
57
  },
60
58
  image: {
@@ -75,13 +73,12 @@
75
73
  textOverflow: 'ellipsis',
76
74
  whiteSpace: 'nowrap',
77
75
  color: colors.text,
78
- fontSize: font.sizeSm,
76
+ fontSize: font.sizeMeta,
79
77
  fontWeight: font.weightMedium
80
78
  },
81
79
  meta: {
82
80
  color: colors.textSubtle,
83
- fontFamily: font.mono,
84
- fontSize: '0.6875rem',
81
+ fontSize: font.sizeMicro,
85
82
  fontVariantNumeric: 'tabular-nums'
86
83
  },
87
84
  // A small round button on the corner, out of the way of the name
@@ -96,9 +93,9 @@
96
93
  margin: 0,
97
94
  padding: 0,
98
95
  borderWidth: 0,
99
- borderRadius: radius.full,
96
+ borderRadius: radius.pill,
100
97
  backgroundColor: colors.bgRaised,
101
- boxShadow: `inset 0 0 0 1px ${colors.lineStrong}, 0 1px 2px ${colors.shade}`,
98
+ boxShadow: `inset 0 0 0 1px ${colors.borderStrong}`,
102
99
  color: {
103
100
  default: colors.textMuted,
104
101
  ':hover': { default: null, [media.hover]: colors.text }
@@ -152,7 +149,7 @@
152
149
  <span {...stylex.attrs(styles.text)}>
153
150
  <span {...stylex.attrs(styles.name)} title={file.name}>{file.name}</span>
154
151
  <span {...stylex.attrs(styles.meta)}>
155
- {extension ? `${extension} · ` : ''}{formatSize(file.size)}
152
+ {extension ? `${extension} ` : ''}{formatSize(file.size)}
156
153
  </span>
157
154
  </span>
158
155
  <button
@@ -47,17 +47,17 @@
47
47
  paddingInlineStart: '0.625rem',
48
48
  paddingInlineEnd: '0.375rem',
49
49
  borderWidth: 0,
50
- borderRadius: `calc(${radius.xl} * 4 / 3)`,
50
+ borderRadius: `calc(${radius.card} * 4 / 3)`,
51
51
  backgroundColor: {
52
52
  default: 'transparent',
53
- ':hover': { default: null, [media.hover]: colors.hover }
53
+ ':hover': { default: null, [media.hover]: colors.fillHover }
54
54
  },
55
55
  color: {
56
56
  default: colors.textMuted,
57
57
  ':hover': { default: null, [media.hover]: colors.text }
58
58
  },
59
59
  fontFamily: 'inherit',
60
- fontSize: font.sizeSm,
60
+ fontSize: font.sizeMeta,
61
61
  fontWeight: font.weightMedium,
62
62
  lineHeight: 1,
63
63
  whiteSpace: 'nowrap',
@@ -69,7 +69,7 @@
69
69
  transitionTimingFunction: 'ease'
70
70
  },
71
71
  triggerOpen: {
72
- backgroundColor: colors.hover,
72
+ backgroundColor: colors.fillSelected,
73
73
  color: colors.text
74
74
  },
75
75
  triggerText: {
@@ -94,9 +94,9 @@
94
94
  overscrollBehavior: 'contain',
95
95
  borderWidth: 0,
96
96
  // Inner items are 8px round with 4px of padding: 12px outside
97
- borderRadius: radius.xl,
97
+ borderRadius: radius.card,
98
98
  backgroundColor: colors.bgRaised,
99
- 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}`,
100
100
  color: colors.text,
101
101
  fontFamily: font.body,
102
102
  scrollbarWidth: 'thin',
@@ -134,11 +134,9 @@
134
134
  paddingBottom: '0.25rem',
135
135
  paddingInline: '0.625rem',
136
136
  color: colors.textSubtle,
137
- fontFamily: font.mono,
138
- fontSize: '0.6875rem',
139
- letterSpacing: '0.04em',
140
- lineHeight: 1,
141
- textTransform: 'uppercase'
137
+ fontSize: font.sizeCaption,
138
+ fontWeight: font.weightMedium,
139
+ lineHeight: 1
142
140
  },
143
141
  option: {
144
142
  display: 'grid',
@@ -148,7 +146,7 @@
148
146
  minHeight: '2.25rem',
149
147
  paddingBlock: '0.4375rem',
150
148
  paddingInline: '0.625rem',
151
- borderRadius: radius.md,
149
+ borderRadius: radius.control,
152
150
  cursor: 'pointer',
153
151
  userSelect: 'none',
154
152
  WebkitTapHighlightColor: 'transparent'
@@ -156,7 +154,7 @@
156
154
  // The option the keyboard or pointer is on. No transition: it follows the
157
155
  // arrow keys, which are pressed many times in a row.
158
156
  active: {
159
- backgroundColor: { default: colors.hover, [media.forcedColors]: 'Highlight' },
157
+ backgroundColor: { default: colors.fillHover, [media.forcedColors]: 'Highlight' },
160
158
  color: { default: null, [media.forcedColors]: 'HighlightText' },
161
159
  forcedColorAdjust: 'none'
162
160
  },
@@ -169,7 +167,7 @@
169
167
  alignItems: 'center',
170
168
  gap: '0.375rem',
171
169
  minWidth: 0,
172
- fontSize: font.sizeMd,
170
+ fontSize: font.sizeBody,
173
171
  fontWeight: font.weightMedium,
174
172
  lineHeight: font.leadingSnug
175
173
  },
@@ -182,10 +180,10 @@
182
180
  flexShrink: 0,
183
181
  paddingBlock: '2px',
184
182
  paddingInline: '0.375rem',
185
- borderRadius: radius.lg,
186
- backgroundColor: colors.ithilSoft,
187
- color: colors.ithil,
188
- fontSize: '0.6875rem',
183
+ borderRadius: radius.panel,
184
+ backgroundColor: colors.accentSoft,
185
+ color: colors.accent,
186
+ fontSize: font.sizeMicro,
189
187
  fontWeight: font.weightMedium,
190
188
  lineHeight: 1.3
191
189
  },
@@ -193,14 +191,14 @@
193
191
  gridColumn: '1',
194
192
  marginTop: '2px',
195
193
  color: colors.textMuted,
196
- fontSize: font.sizeXs,
194
+ fontSize: font.sizeCaption,
197
195
  lineHeight: font.leadingSnug
198
196
  },
199
197
  check: {
200
198
  gridColumn: '2',
201
199
  gridRow: '1',
202
200
  display: 'grid',
203
- color: colors.ithil
201
+ color: colors.accent
204
202
  }
205
203
  });
206
204
 
@@ -62,14 +62,16 @@
62
62
  padding: '0.5rem',
63
63
  // The controls' radius plus this padding, so the corners sit concentric.
64
64
  // Both follow the radius scale: 1rem and 1.5rem by default.
65
- borderRadius: `calc(${radius.xl} * 4 / 3 + 0.5rem)`,
65
+ borderRadius: `calc(${radius.card} * 4 / 3 + 0.5rem)`,
66
66
  backgroundColor: colors.bgRaised,
67
67
  color: colors.text,
68
68
  fontFamily: font.body,
69
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.
70
72
  boxShadow: {
71
- 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}`,
72
- ':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}`
73
75
  },
74
76
  // In forced colours the shadow is gone; the outline is the edge, and thickens with focus
75
77
  outlineWidth: {
@@ -93,10 +95,9 @@
93
95
  placeItems: 'center',
94
96
  borderRadius: 'inherit',
95
97
  backgroundColor: `color-mix(in oklab, ${colors.bgRaised} 86%, transparent)`,
96
- backdropFilter: 'blur(2px)',
97
- boxShadow: `inset 0 0 0 1.5px ${colors.ithil}, 0 0 24px ${colors.glow}`,
98
- color: colors.ithil,
99
- fontSize: font.sizeMd,
98
+ boxShadow: `inset 0 0 0 1.5px ${colors.accent}`,
99
+ color: colors.accent,
100
+ fontSize: font.sizeBody,
100
101
  fontWeight: font.weightMedium,
101
102
  pointerEvents: 'none',
102
103
  opacity: { default: 1, '@starting-style': 0 },
@@ -1,7 +1,8 @@
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';
7
8
  import { media } from '../../media.stylex.js';
@@ -20,26 +21,18 @@
20
21
  ref?: HTMLButtonElement | null;
21
22
  };
22
23
 
23
- // While the reply has not started, an arc circles the square, on the shared clock
24
- const spin = loop(
25
- (reduced) => (reduced ? 2400 : 900),
26
- (element, { progress }) => (element.style.rotate = `${progress}turn`),
27
- (element) => (element.style.rotate = '')
28
- );
29
-
30
24
  const styles = stylex.create({
31
25
  button: {
32
26
  marginInlineStart: 'auto',
33
27
  // Round by default; squarer when the radius scale is sharp
34
- borderRadius: `calc(${radius.xl} * 4 / 3)`
28
+ borderRadius: `calc(${radius.card} * 4 / 3)`
35
29
  },
36
- // Nothing to send yet: a quiet socket in the stone, not a greyed-out button.
37
- // 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.
38
32
  idle: {
39
33
  opacity: 1,
40
34
  backgroundImage: 'none',
41
- backgroundColor: colors.well,
42
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
35
+ backgroundColor: colors.fillMuted,
43
36
  color: colors.textSubtle,
44
37
  '::before': { display: 'none' }
45
38
  },
@@ -115,8 +108,8 @@
115
108
  viewBox="0 0 26 26"
116
109
  fill="none"
117
110
  aria-hidden="true"
118
- {...stylex.attrs(styles.ring)}
119
- {@attach spin}
111
+ {...stylex.attrs(styles.ring, shared.spin)}
112
+ {@attach whileVisible}
120
113
  >
121
114
  <path
122
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',
@@ -27,18 +27,17 @@
27
27
  margin: 0,
28
28
  paddingInline: '0.625rem',
29
29
  borderWidth: 0,
30
- borderRadius: `calc(${radius.xl} * 4 / 3)`,
30
+ borderRadius: `calc(${radius.card} * 4 / 3)`,
31
31
  backgroundColor: {
32
32
  default: 'transparent',
33
- ':hover': { default: null, [media.hover]: colors.hover }
33
+ ':hover': { default: null, [media.hover]: colors.fillHover }
34
34
  },
35
- boxShadow: `inset 0 0 0 1px ${colors.line}`,
36
35
  color: {
37
36
  default: colors.textMuted,
38
37
  ':hover': { default: null, [media.hover]: colors.text }
39
38
  },
40
39
  fontFamily: 'inherit',
41
- fontSize: font.sizeSm,
40
+ fontSize: font.sizeMeta,
42
41
  fontWeight: font.weightMedium,
43
42
  lineHeight: 1,
44
43
  whiteSpace: 'nowrap',
@@ -47,25 +46,24 @@
47
46
  WebkitTapHighlightColor: 'transparent',
48
47
  scale: { default: null, ':active': { default: null, [media.motion]: 0.96 } },
49
48
  transitionProperty: {
50
- default: 'background-color, color, box-shadow',
51
- [media.motion]: 'scale, background-color, color, box-shadow'
49
+ default: 'background-color, color',
50
+ [media.motion]: 'scale, background-color, color'
52
51
  },
53
52
  transitionDuration: motion.base,
54
53
  transitionTimingFunction: {
55
54
  default: 'ease',
56
- [media.motion]: `${motion.easeOut}, ease, ease, ease`
55
+ [media.motion]: `${motion.easeOut}, ease, ease`
57
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,
63
+ default: colors.accentSoft,
65
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, [media.forcedColors]: '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: {