@assistant-ui/react 0.7.91 → 0.8.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 (298) hide show
  1. package/dist/cloud/auiV0.js.map +1 -1
  2. package/dist/cloud/auiV0.mjs.map +1 -1
  3. package/dist/index.d.ts +0 -1
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +0 -1
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/internal.d.ts +0 -1
  10. package/dist/internal.d.ts.map +1 -1
  11. package/dist/internal.js +0 -3
  12. package/dist/internal.js.map +1 -1
  13. package/dist/internal.mjs +0 -2
  14. package/dist/internal.mjs.map +1 -1
  15. package/dist/model-context/ModelContextTypes.d.ts +11 -0
  16. package/dist/model-context/ModelContextTypes.d.ts.map +1 -1
  17. package/dist/model-context/ModelContextTypes.js.map +1 -1
  18. package/dist/model-context/ModelContextTypes.mjs.map +1 -1
  19. package/dist/model-context/makeAssistantVisible.d.ts.map +1 -1
  20. package/dist/model-context/makeAssistantVisible.js +4 -2
  21. package/dist/model-context/makeAssistantVisible.js.map +1 -1
  22. package/dist/model-context/makeAssistantVisible.mjs +4 -2
  23. package/dist/model-context/makeAssistantVisible.mjs.map +1 -1
  24. package/dist/primitives/contentPart/index.d.ts +0 -1
  25. package/dist/primitives/contentPart/index.d.ts.map +1 -1
  26. package/dist/primitives/contentPart/index.js +0 -3
  27. package/dist/primitives/contentPart/index.js.map +1 -1
  28. package/dist/primitives/contentPart/index.mjs +0 -2
  29. package/dist/primitives/contentPart/index.mjs.map +1 -1
  30. package/dist/primitives/index.d.ts +0 -1
  31. package/dist/primitives/index.d.ts.map +1 -1
  32. package/dist/primitives/index.js +0 -3
  33. package/dist/primitives/index.js.map +1 -1
  34. package/dist/primitives/index.mjs +0 -2
  35. package/dist/primitives/index.mjs.map +1 -1
  36. package/dist/primitives/message/MessageContent.d.ts +1 -2
  37. package/dist/primitives/message/MessageContent.d.ts.map +1 -1
  38. package/dist/primitives/message/MessageContent.js +2 -7
  39. package/dist/primitives/message/MessageContent.js.map +1 -1
  40. package/dist/primitives/message/MessageContent.mjs +2 -7
  41. package/dist/primitives/message/MessageContent.mjs.map +1 -1
  42. package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.d.ts.map +1 -1
  43. package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js +1 -3
  44. package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.js.map +1 -1
  45. package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs +1 -3
  46. package/dist/runtimes/composer/DefaultEditComposerRuntimeCore.mjs.map +1 -1
  47. package/dist/runtimes/edge/converters/toCoreMessages.d.ts.map +1 -1
  48. package/dist/runtimes/edge/converters/toCoreMessages.js +1 -6
  49. package/dist/runtimes/edge/converters/toCoreMessages.js.map +1 -1
  50. package/dist/runtimes/edge/converters/toCoreMessages.mjs +1 -6
  51. package/dist/runtimes/edge/converters/toCoreMessages.mjs.map +1 -1
  52. package/dist/runtimes/edge/converters/toLanguageModelMessages.js.map +1 -1
  53. package/dist/runtimes/edge/converters/toLanguageModelMessages.mjs.map +1 -1
  54. package/dist/runtimes/external-store/ThreadMessageLike.d.ts +2 -2
  55. package/dist/runtimes/external-store/ThreadMessageLike.d.ts.map +1 -1
  56. package/dist/runtimes/external-store/ThreadMessageLike.js +0 -3
  57. package/dist/runtimes/external-store/ThreadMessageLike.js.map +1 -1
  58. package/dist/runtimes/external-store/ThreadMessageLike.mjs +0 -3
  59. package/dist/runtimes/external-store/ThreadMessageLike.mjs.map +1 -1
  60. package/dist/types/AssistantTypes.d.ts +3 -7
  61. package/dist/types/AssistantTypes.d.ts.map +1 -1
  62. package/dist/types/AssistantTypes.js.map +1 -1
  63. package/dist/types/ContentPartComponentTypes.d.ts +1 -3
  64. package/dist/types/ContentPartComponentTypes.d.ts.map +1 -1
  65. package/dist/types/ContentPartComponentTypes.js.map +1 -1
  66. package/dist/types/index.d.ts +1 -1
  67. package/dist/types/index.d.ts.map +1 -1
  68. package/dist/types/index.js.map +1 -1
  69. package/package.json +1 -21
  70. package/src/cloud/auiV0.ts +1 -1
  71. package/src/index.ts +0 -1
  72. package/src/internal.ts +0 -1
  73. package/src/model-context/ModelContextTypes.ts +19 -0
  74. package/src/model-context/makeAssistantVisible.tsx +4 -2
  75. package/src/primitives/contentPart/index.ts +0 -1
  76. package/src/primitives/index.ts +0 -1
  77. package/src/primitives/message/MessageContent.tsx +0 -9
  78. package/src/runtimes/composer/DefaultEditComposerRuntimeCore.tsx +1 -3
  79. package/src/runtimes/edge/converters/toCoreMessages.ts +11 -14
  80. package/src/runtimes/edge/converters/toLanguageModelMessages.ts +2 -2
  81. package/src/runtimes/external-store/ThreadMessageLike.tsx +0 -6
  82. package/src/types/AssistantTypes.ts +4 -9
  83. package/src/types/ContentPartComponentTypes.tsx +0 -4
  84. package/src/types/index.ts +0 -2
  85. package/dist/primitives/contentPart/ContentPartDisplay.d.ts +0 -9
  86. package/dist/primitives/contentPart/ContentPartDisplay.d.ts.map +0 -1
  87. package/dist/primitives/contentPart/ContentPartDisplay.js +0 -37
  88. package/dist/primitives/contentPart/ContentPartDisplay.js.map +0 -1
  89. package/dist/primitives/contentPart/ContentPartDisplay.mjs +0 -13
  90. package/dist/primitives/contentPart/ContentPartDisplay.mjs.map +0 -1
  91. package/dist/primitives/contentPart/useContentPartDisplay.d.ts +0 -8
  92. package/dist/primitives/contentPart/useContentPartDisplay.d.ts.map +0 -1
  93. package/dist/primitives/contentPart/useContentPartDisplay.js +0 -42
  94. package/dist/primitives/contentPart/useContentPartDisplay.js.map +0 -1
  95. package/dist/primitives/contentPart/useContentPartDisplay.mjs +0 -18
  96. package/dist/primitives/contentPart/useContentPartDisplay.mjs.map +0 -1
  97. package/dist/styles/index.css +0 -1261
  98. package/dist/styles/index.css.map +0 -1
  99. package/dist/styles/modal.css +0 -143
  100. package/dist/styles/modal.css.map +0 -1
  101. package/dist/styles/tailwindcss/base-components.css +0 -69
  102. package/dist/styles/tailwindcss/base-components.css.json +0 -48
  103. package/dist/styles/tailwindcss/modal.css +0 -29
  104. package/dist/styles/tailwindcss/modal.css.json +0 -26
  105. package/dist/styles/tailwindcss/thread.css +0 -262
  106. package/dist/styles/tailwindcss/thread.css.json +0 -183
  107. package/dist/styles/themes/default.css +0 -64
  108. package/dist/styles/themes/default.css.json +0 -46
  109. package/dist/styles/themes/shadcn-extras.css +0 -4
  110. package/dist/styles/themes/shadcn-extras.css.json +0 -5
  111. package/dist/tailwindcss/index.d.ts +0 -49
  112. package/dist/tailwindcss/index.d.ts.map +0 -1
  113. package/dist/tailwindcss/index.js +0 -189
  114. package/dist/tailwindcss/index.js.map +0 -1
  115. package/dist/tailwindcss/index.mjs +0 -181
  116. package/dist/tailwindcss/index.mjs.map +0 -1
  117. package/dist/ui/assistant-action-bar.d.ts +0 -24
  118. package/dist/ui/assistant-action-bar.d.ts.map +0 -1
  119. package/dist/ui/assistant-action-bar.js +0 -193
  120. package/dist/ui/assistant-action-bar.js.map +0 -1
  121. package/dist/ui/assistant-action-bar.mjs +0 -181
  122. package/dist/ui/assistant-action-bar.mjs.map +0 -1
  123. package/dist/ui/assistant-message.d.ts +0 -13
  124. package/dist/ui/assistant-message.d.ts.map +0 -1
  125. package/dist/ui/assistant-message.js +0 -107
  126. package/dist/ui/assistant-message.js.map +0 -1
  127. package/dist/ui/assistant-message.mjs +0 -77
  128. package/dist/ui/assistant-message.mjs.map +0 -1
  129. package/dist/ui/assistant-modal.d.ts +0 -23
  130. package/dist/ui/assistant-modal.d.ts.map +0 -1
  131. package/dist/ui/assistant-modal.js +0 -126
  132. package/dist/ui/assistant-modal.js.map +0 -1
  133. package/dist/ui/assistant-modal.mjs +0 -99
  134. package/dist/ui/assistant-modal.mjs.map +0 -1
  135. package/dist/ui/attachment-ui.d.ts +0 -12
  136. package/dist/ui/attachment-ui.d.ts.map +0 -1
  137. package/dist/ui/attachment-ui.js +0 -170
  138. package/dist/ui/attachment-ui.js.map +0 -1
  139. package/dist/ui/attachment-ui.mjs +0 -160
  140. package/dist/ui/attachment-ui.mjs.map +0 -1
  141. package/dist/ui/base/CircleStopIcon.d.ts +0 -3
  142. package/dist/ui/base/CircleStopIcon.d.ts.map +0 -1
  143. package/dist/ui/base/CircleStopIcon.js +0 -45
  144. package/dist/ui/base/CircleStopIcon.js.map +0 -1
  145. package/dist/ui/base/CircleStopIcon.mjs +0 -20
  146. package/dist/ui/base/CircleStopIcon.mjs.map +0 -1
  147. package/dist/ui/base/avatar.d.ts +0 -12
  148. package/dist/ui/base/avatar.d.ts.map +0 -1
  149. package/dist/ui/base/avatar.js +0 -69
  150. package/dist/ui/base/avatar.js.map +0 -1
  151. package/dist/ui/base/avatar.mjs +0 -31
  152. package/dist/ui/base/avatar.mjs.map +0 -1
  153. package/dist/ui/base/button.d.ts +0 -16
  154. package/dist/ui/base/button.d.ts.map +0 -1
  155. package/dist/ui/base/button.js +0 -66
  156. package/dist/ui/base/button.js.map +0 -1
  157. package/dist/ui/base/button.mjs +0 -40
  158. package/dist/ui/base/button.mjs.map +0 -1
  159. package/dist/ui/base/dialog.d.ts +0 -9
  160. package/dist/ui/base/dialog.d.ts.map +0 -1
  161. package/dist/ui/base/dialog.js +0 -80
  162. package/dist/ui/base/dialog.js.map +0 -1
  163. package/dist/ui/base/dialog.mjs +0 -40
  164. package/dist/ui/base/dialog.mjs.map +0 -1
  165. package/dist/ui/base/index.d.ts +0 -6
  166. package/dist/ui/base/index.d.ts.map +0 -1
  167. package/dist/ui/base/index.js +0 -55
  168. package/dist/ui/base/index.js.map +0 -1
  169. package/dist/ui/base/index.mjs +0 -25
  170. package/dist/ui/base/index.mjs.map +0 -1
  171. package/dist/ui/base/tooltip-icon-button.d.ts +0 -17
  172. package/dist/ui/base/tooltip-icon-button.d.ts.map +0 -1
  173. package/dist/ui/base/tooltip-icon-button.js +0 -44
  174. package/dist/ui/base/tooltip-icon-button.js.map +0 -1
  175. package/dist/ui/base/tooltip-icon-button.mjs +0 -19
  176. package/dist/ui/base/tooltip-icon-button.mjs.map +0 -1
  177. package/dist/ui/base/tooltip.d.ts +0 -6
  178. package/dist/ui/base/tooltip.d.ts.map +0 -1
  179. package/dist/ui/base/tooltip.js +0 -57
  180. package/dist/ui/base/tooltip.js.map +0 -1
  181. package/dist/ui/base/tooltip.mjs +0 -20
  182. package/dist/ui/base/tooltip.mjs.map +0 -1
  183. package/dist/ui/branch-picker.d.ts +0 -15
  184. package/dist/ui/branch-picker.d.ts.map +0 -1
  185. package/dist/ui/branch-picker.js +0 -89
  186. package/dist/ui/branch-picker.js.map +0 -1
  187. package/dist/ui/branch-picker.mjs +0 -69
  188. package/dist/ui/branch-picker.mjs.map +0 -1
  189. package/dist/ui/composer.d.ts +0 -25
  190. package/dist/ui/composer.d.ts.map +0 -1
  191. package/dist/ui/composer.js +0 -168
  192. package/dist/ui/composer.js.map +0 -1
  193. package/dist/ui/composer.mjs +0 -138
  194. package/dist/ui/composer.mjs.map +0 -1
  195. package/dist/ui/content-part.d.ts +0 -7
  196. package/dist/ui/content-part.d.ts.map +0 -1
  197. package/dist/ui/content-part.js +0 -61
  198. package/dist/ui/content-part.js.map +0 -1
  199. package/dist/ui/content-part.mjs +0 -27
  200. package/dist/ui/content-part.mjs.map +0 -1
  201. package/dist/ui/edit-composer.d.ts +0 -22
  202. package/dist/ui/edit-composer.d.ts.map +0 -1
  203. package/dist/ui/edit-composer.js +0 -77
  204. package/dist/ui/edit-composer.js.map +0 -1
  205. package/dist/ui/edit-composer.mjs +0 -57
  206. package/dist/ui/edit-composer.mjs.map +0 -1
  207. package/dist/ui/index.d.ts +0 -75
  208. package/dist/ui/index.d.ts.map +0 -1
  209. package/dist/ui/index.js +0 -86
  210. package/dist/ui/index.js.map +0 -1
  211. package/dist/ui/index.mjs +0 -38
  212. package/dist/ui/index.mjs.map +0 -1
  213. package/dist/ui/thread-config.d.ts +0 -162
  214. package/dist/ui/thread-config.d.ts.map +0 -1
  215. package/dist/ui/thread-config.js +0 -63
  216. package/dist/ui/thread-config.js.map +0 -1
  217. package/dist/ui/thread-config.mjs +0 -41
  218. package/dist/ui/thread-config.mjs.map +0 -1
  219. package/dist/ui/thread-list-item.d.ts +0 -13
  220. package/dist/ui/thread-list-item.d.ts.map +0 -1
  221. package/dist/ui/thread-list-item.js +0 -94
  222. package/dist/ui/thread-list-item.js.map +0 -1
  223. package/dist/ui/thread-list-item.mjs +0 -64
  224. package/dist/ui/thread-list-item.mjs.map +0 -1
  225. package/dist/ui/thread-list.d.ts +0 -27
  226. package/dist/ui/thread-list.d.ts.map +0 -1
  227. package/dist/ui/thread-list.js +0 -91
  228. package/dist/ui/thread-list.js.map +0 -1
  229. package/dist/ui/thread-list.mjs +0 -61
  230. package/dist/ui/thread-list.mjs.map +0 -1
  231. package/dist/ui/thread-welcome.d.ts +0 -21
  232. package/dist/ui/thread-welcome.d.ts.map +0 -1
  233. package/dist/ui/thread-welcome.js +0 -101
  234. package/dist/ui/thread-welcome.js.map +0 -1
  235. package/dist/ui/thread-welcome.mjs +0 -81
  236. package/dist/ui/thread-welcome.mjs.map +0 -1
  237. package/dist/ui/thread.d.ts +0 -30
  238. package/dist/ui/thread.d.ts.map +0 -1
  239. package/dist/ui/thread.js +0 -152
  240. package/dist/ui/thread.js.map +0 -1
  241. package/dist/ui/thread.mjs +0 -125
  242. package/dist/ui/thread.mjs.map +0 -1
  243. package/dist/ui/user-action-bar.d.ts +0 -16
  244. package/dist/ui/user-action-bar.d.ts.map +0 -1
  245. package/dist/ui/user-action-bar.js +0 -63
  246. package/dist/ui/user-action-bar.js.map +0 -1
  247. package/dist/ui/user-action-bar.mjs +0 -43
  248. package/dist/ui/user-action-bar.mjs.map +0 -1
  249. package/dist/ui/user-message.d.ts +0 -13
  250. package/dist/ui/user-message.d.ts.map +0 -1
  251. package/dist/ui/user-message.js +0 -96
  252. package/dist/ui/user-message.js.map +0 -1
  253. package/dist/ui/user-message.mjs +0 -65
  254. package/dist/ui/user-message.mjs.map +0 -1
  255. package/dist/ui/utils/withDefaults.d.ts +0 -7
  256. package/dist/ui/utils/withDefaults.d.ts.map +0 -1
  257. package/dist/ui/utils/withDefaults.js +0 -66
  258. package/dist/ui/utils/withDefaults.js.map +0 -1
  259. package/dist/ui/utils/withDefaults.mjs +0 -30
  260. package/dist/ui/utils/withDefaults.mjs.map +0 -1
  261. package/src/primitives/contentPart/ContentPartDisplay.tsx +0 -20
  262. package/src/primitives/contentPart/useContentPartDisplay.tsx +0 -21
  263. package/src/styles/base.css +0 -37
  264. package/src/styles/index.css +0 -4
  265. package/src/styles/modal.css +0 -1
  266. package/src/styles/tailwindcss/base-components.css +0 -69
  267. package/src/styles/tailwindcss/modal.css +0 -29
  268. package/src/styles/tailwindcss/thread.css +0 -262
  269. package/src/styles/themes/default.css +0 -64
  270. package/src/styles/themes/shadcn-extras.css +0 -4
  271. package/src/tailwindcss/index.ts +0 -149
  272. package/src/ui/assistant-action-bar.tsx +0 -301
  273. package/src/ui/assistant-message.tsx +0 -96
  274. package/src/ui/assistant-modal.tsx +0 -146
  275. package/src/ui/attachment-ui.tsx +0 -211
  276. package/src/ui/base/CircleStopIcon.tsx +0 -17
  277. package/src/ui/base/avatar.tsx +0 -41
  278. package/src/ui/base/button.tsx +0 -42
  279. package/src/ui/base/dialog.tsx +0 -113
  280. package/src/ui/base/index.ts +0 -15
  281. package/src/ui/base/tooltip-icon-button.tsx +0 -29
  282. package/src/ui/base/tooltip.tsx +0 -22
  283. package/src/ui/branch-picker.tsx +0 -117
  284. package/src/ui/composer.tsx +0 -210
  285. package/src/ui/content-part.tsx +0 -23
  286. package/src/ui/edit-composer.tsx +0 -98
  287. package/src/ui/index.ts +0 -98
  288. package/src/ui/thread-config.tsx +0 -246
  289. package/src/ui/thread-list-item.tsx +0 -91
  290. package/src/ui/thread-list.tsx +0 -78
  291. package/src/ui/thread-welcome.tsx +0 -140
  292. package/src/ui/thread.tsx +0 -176
  293. package/src/ui/user-action-bar.tsx +0 -66
  294. package/src/ui/user-message.tsx +0 -92
  295. package/src/ui/utils/withDefaults.tsx +0 -35
  296. package/tailwindcss/README.md +0 -1
  297. package/tailwindcss/package-lock.json +0 -6
  298. package/tailwindcss/package.json +0 -5
@@ -1,262 +0,0 @@
1
- /* thread */
2
- .aui-thread-root {
3
- @apply bg-aui-background box-border h-full;
4
- }
5
-
6
- .aui-thread-viewport {
7
- @apply flex h-full flex-col items-center overflow-y-scroll scroll-smooth bg-inherit px-4 pt-8;
8
- }
9
-
10
- .aui-thread-viewport-footer {
11
- @apply sticky bottom-0 mt-3 flex w-full max-w-[var(--aui-thread-max-width)] flex-col items-center justify-end rounded-t-lg bg-inherit pb-4;
12
- }
13
-
14
- .aui-thread-scroll-to-bottom {
15
- @apply absolute -top-8 rounded-full disabled:invisible;
16
- }
17
-
18
- .aui-thread-followup-suggestions {
19
- @apply flex min-h-8 items-center justify-center gap-2;
20
- }
21
-
22
- .aui-thread-followup-suggestion {
23
- @apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in;
24
- }
25
-
26
- /* thread welcome */
27
-
28
- .aui-thread-welcome-root {
29
- @apply flex w-full max-w-[var(--aui-thread-max-width)] flex-grow flex-col;
30
- }
31
-
32
- .aui-thread-welcome-center {
33
- @apply flex w-full flex-grow flex-col items-center justify-center;
34
- }
35
-
36
- .aui-thread-welcome-message {
37
- @apply mt-4 font-medium;
38
- }
39
-
40
- .aui-thread-welcome-suggestions {
41
- @apply mt-3 flex w-full items-stretch justify-center gap-4;
42
- }
43
-
44
- .aui-thread-welcome-suggestion {
45
- @apply hover:bg-aui-muted/80 flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border p-3 transition-colors ease-in;
46
- }
47
-
48
- .aui-thread-welcome-suggestion-text {
49
- @apply line-clamp-2 text-ellipsis text-sm font-semibold;
50
- }
51
-
52
- /* thread composer */
53
-
54
- .aui-composer-root {
55
- @apply focus-within:border-aui-ring/20 flex w-full flex-wrap items-end rounded-lg border bg-inherit px-2.5 shadow-sm transition-colors ease-in;
56
- }
57
-
58
- .aui-composer-input {
59
- @apply placeholder:text-aui-muted-foreground max-h-40 flex-grow resize-none border-none bg-transparent px-2 py-4 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed;
60
- }
61
-
62
- .aui-composer-send {
63
- @apply my-2.5 size-8 p-2 transition-opacity ease-in;
64
- }
65
- .aui-composer-cancel {
66
- @apply my-2.5 size-8 p-2 transition-opacity ease-in;
67
- }
68
- .aui-composer-attach {
69
- @apply my-2.5 size-8 p-2 transition-opacity ease-in;
70
- }
71
-
72
- .aui-composer-attachments {
73
- @apply flex w-full flex-row gap-3 px-10;
74
- }
75
-
76
- /* attachment */
77
-
78
- .aui-attachment-root {
79
- @apply relative mt-3;
80
- }
81
-
82
- .aui-attachment-content {
83
- @apply flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1;
84
- }
85
-
86
- .aui-attachment-preview-trigger {
87
- @apply hover:bg-aui-accent/50 cursor-pointer transition-colors;
88
- }
89
-
90
- .aui-attachment-thumb {
91
- @apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm;
92
- }
93
-
94
- .aui-attachment-text {
95
- @apply flex-grow basis-0;
96
- }
97
-
98
- .aui-attachment-name {
99
- @apply text-aui-muted-foreground line-clamp-1 text-ellipsis break-all text-xs font-bold;
100
- }
101
-
102
- .aui-attachment-type {
103
- @apply text-aui-muted-foreground text-xs;
104
- }
105
-
106
- .aui-attachment-remove {
107
- @apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full;
108
- }
109
-
110
- /* user message */
111
-
112
- .aui-user-message-root {
113
- @apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&:where(>*)]:col-start-2;
114
- @apply w-full max-w-[var(--aui-thread-max-width)] py-4;
115
- }
116
-
117
- :where(.aui-user-message-root) > .aui-branch-picker-root {
118
- @apply col-span-full col-start-1 row-start-3;
119
- @apply -mr-1 justify-end;
120
- }
121
-
122
- .aui-user-branch-picker {
123
- @apply col-span-full col-start-1 row-start-3;
124
- @apply -mr-1 justify-end;
125
- }
126
-
127
- .aui-user-message-content {
128
- @apply bg-aui-muted text-aui-foreground max-w-[calc(var(--aui-thread-max-width)*0.8)] break-words rounded-3xl px-5 py-2.5;
129
-
130
- @apply col-start-2 row-start-2;
131
- }
132
-
133
- .aui-user-message-attachments {
134
- @apply flex w-full flex-row gap-3;
135
-
136
- @apply col-span-full col-start-1 row-start-1;
137
- @apply justify-end;
138
- }
139
-
140
- /* user action bar */
141
-
142
- .aui-user-action-bar-root {
143
- @apply flex flex-col items-end;
144
-
145
- @apply col-start-1 row-start-2 mr-3 mt-2.5;
146
- }
147
-
148
- /* edit composer */
149
-
150
- .aui-edit-composer-root {
151
- @apply bg-aui-muted my-4 flex w-full max-w-[var(--aui-thread-max-width)] flex-col gap-2 rounded-xl;
152
- }
153
-
154
- .aui-edit-composer-input {
155
- @apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none;
156
- }
157
-
158
- .aui-edit-composer-footer {
159
- @apply mx-3 mb-3 flex items-center justify-center gap-2 self-end;
160
- }
161
-
162
- /* assistant message */
163
-
164
- .aui-assistant-message-root {
165
- @apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr];
166
- @apply relative w-full max-w-[var(--aui-thread-max-width)] py-4;
167
- }
168
-
169
- :where(.aui-assistant-message-root) > .aui-avatar-root {
170
- @apply col-start-1 row-span-full row-start-1 mr-4;
171
- }
172
-
173
- .aui-assistant-avatar {
174
- @apply col-start-1 row-span-full row-start-1 mr-4;
175
- }
176
-
177
- :where(.aui-assistant-message-root) > .aui-branch-picker-root {
178
- @apply col-start-2 row-start-2;
179
- @apply -ml-2 mr-2;
180
- }
181
-
182
- .aui-assistant-branch-picker {
183
- @apply col-start-2 row-start-2;
184
- @apply -ml-2 mr-2;
185
- }
186
-
187
- .aui-assistant-message-content {
188
- @apply text-aui-foreground max-w-[calc(var(--aui-thread-max-width)*0.8)] break-words leading-7;
189
-
190
- @apply col-span-2 col-start-2 row-start-1 my-1.5;
191
- }
192
-
193
- /* assistant action bar */
194
-
195
- .aui-assistant-action-bar-root {
196
- @apply text-aui-muted-foreground flex gap-1;
197
-
198
- @apply col-start-3 row-start-2;
199
- @apply -ml-1;
200
- }
201
-
202
- :where(.aui-assistant-action-bar-root)[data-floating] {
203
- @apply bg-aui-background absolute rounded-md border p-1 shadow-sm;
204
- }
205
-
206
- :where(.aui-assistant-action-bar-feedback-positive)[data-submitted] {
207
- @apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400;
208
- }
209
-
210
- :where(.aui-assistant-action-bar-feedback-negative)[data-submitted] {
211
- @apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400;
212
- }
213
-
214
- /* branch picker */
215
-
216
- .aui-branch-picker-root {
217
- @apply text-aui-muted-foreground inline-flex items-center text-xs;
218
- }
219
-
220
- .aui-branch-picker-state {
221
- @apply font-medium;
222
- }
223
-
224
- /* text */
225
-
226
- .aui-text {
227
- @apply whitespace-pre-line;
228
- }
229
-
230
- .aui-text-running::after {
231
- @apply animate-pulse font-sans content-['\25CF'] ltr:ml-1 rtl:mr-1;
232
- }
233
-
234
- /* thread-list */
235
-
236
- .aui-thread-list-root {
237
- @apply flex flex-col items-stretch gap-1.5;
238
- }
239
-
240
- .aui-thread-list-item {
241
- @apply data-[active]:bg-aui-muted hover:bg-aui-muted focus-visible:bg-aui-muted focus-visible:ring-aui-ring flex items-center gap-2 rounded-lg transition-all focus-visible:outline-none focus-visible:ring-2;
242
- }
243
-
244
- .aui-thread-list-new {
245
- @apply data-[active]:bg-aui-muted hover:bg-aui-muted flex items-center justify-start gap-1 rounded-lg px-2.5 py-2 text-start;
246
- }
247
-
248
- .aui-thread-list-new > .lucide-plus {
249
- @apply size-5;
250
- }
251
-
252
- .aui-thread-list-item-trigger {
253
- @apply flex-grow px-3 py-2 text-start;
254
- }
255
-
256
- .aui-thread-list-item-title {
257
- @apply text-sm;
258
- }
259
-
260
- .aui-thread-list-item-archive {
261
- @apply hover:text-aui-primary text-aui-foreground ml-auto mr-3 size-4 p-0;
262
- }
@@ -1,183 +0,0 @@
1
- {
2
- ".aui-thread-root": {
3
- "@apply bg-aui-background box-border h-full": {}
4
- },
5
- ".aui-thread-viewport": {
6
- "@apply flex h-full flex-col items-center overflow-y-scroll scroll-smooth bg-inherit px-4 pt-8": {}
7
- },
8
- ".aui-thread-viewport-footer": {
9
- "@apply sticky bottom-0 mt-3 flex w-full max-w-[var(--aui-thread-max-width)] flex-col items-center justify-end rounded-t-lg bg-inherit pb-4": {}
10
- },
11
- ".aui-thread-scroll-to-bottom": {
12
- "@apply absolute -top-8 rounded-full disabled:invisible": {}
13
- },
14
- ".aui-thread-followup-suggestions": {
15
- "@apply flex min-h-8 items-center justify-center gap-2": {}
16
- },
17
- ".aui-thread-followup-suggestion": {
18
- "@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in": {}
19
- },
20
- ".aui-thread-welcome-root": {
21
- "@apply flex w-full max-w-[var(--aui-thread-max-width)] flex-grow flex-col": {}
22
- },
23
- ".aui-thread-welcome-center": {
24
- "@apply flex w-full flex-grow flex-col items-center justify-center": {}
25
- },
26
- ".aui-thread-welcome-message": {
27
- "@apply mt-4 font-medium": {}
28
- },
29
- ".aui-thread-welcome-suggestions": {
30
- "@apply mt-3 flex w-full items-stretch justify-center gap-4": {}
31
- },
32
- ".aui-thread-welcome-suggestion": {
33
- "@apply hover:bg-aui-muted/80 flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border p-3 transition-colors ease-in": {}
34
- },
35
- ".aui-thread-welcome-suggestion-text": {
36
- "@apply line-clamp-2 text-ellipsis text-sm font-semibold": {}
37
- },
38
- ".aui-composer-root": {
39
- "@apply focus-within:border-aui-ring/20 flex w-full flex-wrap items-end rounded-lg border bg-inherit px-2.5 shadow-sm transition-colors ease-in": {}
40
- },
41
- ".aui-composer-input": {
42
- "@apply placeholder:text-aui-muted-foreground max-h-40 flex-grow resize-none border-none bg-transparent px-2 py-4 text-sm outline-none focus:ring-0 disabled:cursor-not-allowed": {}
43
- },
44
- ".aui-composer-send": {
45
- "@apply my-2.5 size-8 p-2 transition-opacity ease-in": {}
46
- },
47
- ".aui-composer-cancel": {
48
- "@apply my-2.5 size-8 p-2 transition-opacity ease-in": {}
49
- },
50
- ".aui-composer-attach": {
51
- "@apply my-2.5 size-8 p-2 transition-opacity ease-in": {}
52
- },
53
- ".aui-composer-attachments": {
54
- "@apply flex w-full flex-row gap-3 px-10": {}
55
- },
56
- ".aui-attachment-root": {
57
- "@apply relative mt-3": {}
58
- },
59
- ".aui-attachment-content": {
60
- "@apply flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1": {}
61
- },
62
- ".aui-attachment-preview-trigger": {
63
- "@apply hover:bg-aui-accent/50 cursor-pointer transition-colors": {}
64
- },
65
- ".aui-attachment-thumb": {
66
- "@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm": {}
67
- },
68
- ".aui-attachment-text": {
69
- "@apply flex-grow basis-0": {}
70
- },
71
- ".aui-attachment-name": {
72
- "@apply text-aui-muted-foreground line-clamp-1 text-ellipsis break-all text-xs font-bold": {}
73
- },
74
- ".aui-attachment-type": {
75
- "@apply text-aui-muted-foreground text-xs": {}
76
- },
77
- ".aui-attachment-remove": {
78
- "@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full": {}
79
- },
80
- ".aui-user-message-root": {
81
- "@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&:where(>*)]:col-start-2": {},
82
- "@apply w-full max-w-[var(--aui-thread-max-width)] py-4": {}
83
- },
84
- ":where(.aui-user-message-root) > .aui-branch-picker-root": {
85
- "@apply col-span-full col-start-1 row-start-3": {},
86
- "@apply -mr-1 justify-end": {}
87
- },
88
- ".aui-user-branch-picker": {
89
- "@apply col-span-full col-start-1 row-start-3": {},
90
- "@apply -mr-1 justify-end": {}
91
- },
92
- ".aui-user-message-content": {
93
- "@apply bg-aui-muted text-aui-foreground max-w-[calc(var(--aui-thread-max-width)*0.8)] break-words rounded-3xl px-5 py-2.5": {},
94
- "@apply col-start-2 row-start-2": {}
95
- },
96
- ".aui-user-message-attachments": {
97
- "@apply flex w-full flex-row gap-3": {},
98
- "@apply col-span-full col-start-1 row-start-1": {},
99
- "@apply justify-end": {}
100
- },
101
- ".aui-user-action-bar-root": {
102
- "@apply flex flex-col items-end": {},
103
- "@apply col-start-1 row-start-2 mr-3 mt-2.5": {}
104
- },
105
- ".aui-edit-composer-root": {
106
- "@apply bg-aui-muted my-4 flex w-full max-w-[var(--aui-thread-max-width)] flex-col gap-2 rounded-xl": {}
107
- },
108
- ".aui-edit-composer-input": {
109
- "@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none": {}
110
- },
111
- ".aui-edit-composer-footer": {
112
- "@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end": {}
113
- },
114
- ".aui-assistant-message-root": {
115
- "@apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr]": {},
116
- "@apply relative w-full max-w-[var(--aui-thread-max-width)] py-4": {}
117
- },
118
- ":where(.aui-assistant-message-root) > .aui-avatar-root": {
119
- "@apply col-start-1 row-span-full row-start-1 mr-4": {}
120
- },
121
- ".aui-assistant-avatar": {
122
- "@apply col-start-1 row-span-full row-start-1 mr-4": {}
123
- },
124
- ":where(.aui-assistant-message-root) > .aui-branch-picker-root": {
125
- "@apply col-start-2 row-start-2": {},
126
- "@apply -ml-2 mr-2": {}
127
- },
128
- ".aui-assistant-branch-picker": {
129
- "@apply col-start-2 row-start-2": {},
130
- "@apply -ml-2 mr-2": {}
131
- },
132
- ".aui-assistant-message-content": {
133
- "@apply text-aui-foreground max-w-[calc(var(--aui-thread-max-width)*0.8)] break-words leading-7": {},
134
- "@apply col-span-2 col-start-2 row-start-1 my-1.5": {}
135
- },
136
- ".aui-assistant-action-bar-root": {
137
- "@apply text-aui-muted-foreground flex gap-1": {},
138
- "@apply col-start-3 row-start-2": {},
139
- "@apply -ml-1": {}
140
- },
141
- ":where(.aui-assistant-action-bar-root)[data-floating]": {
142
- "@apply bg-aui-background absolute rounded-md border p-1 shadow-sm": {}
143
- },
144
- ":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]": {
145
- "@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400": {}
146
- },
147
- ":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]": {
148
- "@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400": {}
149
- },
150
- ".aui-branch-picker-root": {
151
- "@apply text-aui-muted-foreground inline-flex items-center text-xs": {}
152
- },
153
- ".aui-branch-picker-state": {
154
- "@apply font-medium": {}
155
- },
156
- ".aui-text": {
157
- "@apply whitespace-pre-line": {}
158
- },
159
- ".aui-text-running::after": {
160
- "@apply animate-pulse font-sans content-['\\25CF'] ltr:ml-1 rtl:mr-1": {}
161
- },
162
- ".aui-thread-list-root": {
163
- "@apply flex flex-col items-stretch gap-1.5": {}
164
- },
165
- ".aui-thread-list-item": {
166
- "@apply data-[active]:bg-aui-muted hover:bg-aui-muted focus-visible:bg-aui-muted focus-visible:ring-aui-ring flex items-center gap-2 rounded-lg transition-all focus-visible:outline-none focus-visible:ring-2": {}
167
- },
168
- ".aui-thread-list-new": {
169
- "@apply data-[active]:bg-aui-muted hover:bg-aui-muted flex items-center justify-start gap-1 rounded-lg px-2.5 py-2 text-start": {}
170
- },
171
- ".aui-thread-list-new > .lucide-plus": {
172
- "@apply size-5": {}
173
- },
174
- ".aui-thread-list-item-trigger": {
175
- "@apply flex-grow px-3 py-2 text-start": {}
176
- },
177
- ".aui-thread-list-item-title": {
178
- "@apply text-sm": {}
179
- },
180
- ".aui-thread-list-item-archive": {
181
- "@apply hover:text-aui-primary text-aui-foreground ml-auto mr-3 size-4 p-0": {}
182
- }
183
- }
@@ -1,64 +0,0 @@
1
- :root {
2
- --aui-background: 0 0% 100%;
3
- --aui-foreground: 240 10% 3.9%;
4
-
5
- --aui-card: 0 0% 100%;
6
- --aui-card-foreground: 240 10% 3.9%;
7
-
8
- --aui-popover: 0 0% 100%;
9
- --aui-popover-foreground: 240 10% 3.9%;
10
-
11
- --aui-primary: 240 5.9% 10%;
12
- --aui-primary-foreground: 0 0% 98%;
13
-
14
- --aui-secondary: 240 4.8% 95.9%;
15
- --aui-secondary-foreground: 240 5.9% 10%;
16
-
17
- --aui-muted: 240 4.8% 95.9%;
18
- --aui-muted-foreground: 240 3.8% 46.1%;
19
-
20
- --aui-accent: 240 4.8% 95.9%;
21
- --aui-accent-foreground: 240 5.9% 10%;
22
-
23
- --aui-destructive: 0 84.2% 60.2%;
24
- --aui-destructive-foreground: 0 0% 98%;
25
-
26
- --aui-border: 240 5.9% 90%;
27
- --aui-input: 240 5.9% 90%;
28
- --aui-ring: 240 10% 3.9%;
29
-
30
- --aui-radius: 0.5rem;
31
-
32
- /* aui specific */
33
- --aui-thread-max-width: 42rem;
34
- }
35
-
36
- .dark {
37
- --aui-background: 0 0% 7%;
38
- --aui-foreground: 0 0% 98%;
39
-
40
- --aui-card: 240 10% 3.9%;
41
- --aui-card-foreground: 0 0% 98%;
42
-
43
- --aui-popover: 240 10% 3.9%;
44
- --aui-popover-foreground: 0 0% 98%;
45
-
46
- --aui-primary: 0 0% 98%;
47
- --aui-primary-foreground: 240 5.9% 10%;
48
-
49
- --aui-secondary: 240 3.7% 15.9%;
50
- --aui-secondary-foreground: 0 0% 98%;
51
-
52
- --aui-muted: 240 3.7% 15.9%;
53
- --aui-muted-foreground: 240 5% 64.9%;
54
-
55
- --aui-accent: 240 3.7% 15.9%;
56
- --aui-accent-foreground: 0 0% 98%;
57
-
58
- --aui-destructive: 0 62.8% 30.6%;
59
- --aui-destructive-foreground: 0 0% 98%;
60
-
61
- --aui-border: 240 3.7% 15.9%;
62
- --aui-input: 240 3.7% 15.9%;
63
- --aui-ring: 240 4.9% 83.9%;
64
- }
@@ -1,46 +0,0 @@
1
- {
2
- ":root": {
3
- "--aui-background": "0 0% 100%",
4
- "--aui-foreground": "240 10% 3.9%",
5
- "--aui-card": "0 0% 100%",
6
- "--aui-card-foreground": "240 10% 3.9%",
7
- "--aui-popover": "0 0% 100%",
8
- "--aui-popover-foreground": "240 10% 3.9%",
9
- "--aui-primary": "240 5.9% 10%",
10
- "--aui-primary-foreground": "0 0% 98%",
11
- "--aui-secondary": "240 4.8% 95.9%",
12
- "--aui-secondary-foreground": "240 5.9% 10%",
13
- "--aui-muted": "240 4.8% 95.9%",
14
- "--aui-muted-foreground": "240 3.8% 46.1%",
15
- "--aui-accent": "240 4.8% 95.9%",
16
- "--aui-accent-foreground": "240 5.9% 10%",
17
- "--aui-destructive": "0 84.2% 60.2%",
18
- "--aui-destructive-foreground": "0 0% 98%",
19
- "--aui-border": "240 5.9% 90%",
20
- "--aui-input": "240 5.9% 90%",
21
- "--aui-ring": "240 10% 3.9%",
22
- "--aui-radius": "0.5rem",
23
- "--aui-thread-max-width": "42rem"
24
- },
25
- ".dark": {
26
- "--aui-background": "0 0% 7%",
27
- "--aui-foreground": "0 0% 98%",
28
- "--aui-card": "240 10% 3.9%",
29
- "--aui-card-foreground": "0 0% 98%",
30
- "--aui-popover": "240 10% 3.9%",
31
- "--aui-popover-foreground": "0 0% 98%",
32
- "--aui-primary": "0 0% 98%",
33
- "--aui-primary-foreground": "240 5.9% 10%",
34
- "--aui-secondary": "240 3.7% 15.9%",
35
- "--aui-secondary-foreground": "0 0% 98%",
36
- "--aui-muted": "240 3.7% 15.9%",
37
- "--aui-muted-foreground": "240 5% 64.9%",
38
- "--aui-accent": "240 3.7% 15.9%",
39
- "--aui-accent-foreground": "0 0% 98%",
40
- "--aui-destructive": "0 62.8% 30.6%",
41
- "--aui-destructive-foreground": "0 0% 98%",
42
- "--aui-border": "240 3.7% 15.9%",
43
- "--aui-input": "240 3.7% 15.9%",
44
- "--aui-ring": "240 4.9% 83.9%"
45
- }
46
- }
@@ -1,4 +0,0 @@
1
- /* duplicates from default.css for properties outside what is included in shadcn-ui themes */
2
- :root {
3
- --aui-thread-max-width: 42rem;
4
- }
@@ -1,5 +0,0 @@
1
- {
2
- ":root": {
3
- "--aui-thread-max-width": "42rem"
4
- }
5
- }
@@ -1,49 +0,0 @@
1
- type AssistantTailwindPluginColors = {
2
- border: string;
3
- input: string;
4
- ring: string;
5
- background: string;
6
- foreground: string;
7
- primary: {
8
- DEFAULT: string;
9
- foreground: string;
10
- };
11
- secondary: {
12
- DEFAULT: string;
13
- foreground: string;
14
- };
15
- destructive: {
16
- DEFAULT: string;
17
- foreground: string;
18
- };
19
- muted: {
20
- DEFAULT: string;
21
- foreground: string;
22
- };
23
- accent: {
24
- DEFAULT: string;
25
- foreground: string;
26
- };
27
- popover: {
28
- DEFAULT: string;
29
- foreground: string;
30
- };
31
- card: {
32
- DEFAULT: string;
33
- foreground: string;
34
- };
35
- };
36
- type AssisstantTailwindPluginOptions = {
37
- components?: ("default-theme" | "base" | "thread" | "assistant-modal")[];
38
- colors?: AssistantTailwindPluginColors;
39
- shadcn?: boolean;
40
- };
41
- declare const auiPlugin: {
42
- (options: AssisstantTailwindPluginOptions): {
43
- handler: import("tailwindcss/types/config").PluginCreator;
44
- config?: Partial<import("tailwindcss/types/config").Config>;
45
- };
46
- __isOptionsFunction: true;
47
- };
48
- export default auiPlugin;
49
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tailwindcss/index.ts"],"names":[],"mappings":"AAOA,KAAK,6BAA6B,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,WAAW,EAAE;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AAEF,KAAK,+BAA+B,GAAG;IACrC,UAAU,CAAC,EAAE,CAAC,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,iBAAiB,CAAC,EAAE,CAAC;IACzE,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,SAAS;;;cA/CkE,CAAC;;;CAgJjF,CAAC;AAEF,eAAe,SAAS,CAAC"}