@assistant-ui/react 0.5.90 → 0.5.92

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,288 @@
2
2
 
3
3
  // src/tailwindcss/index.ts
4
4
  var _pluginjs = require('tailwindcss/plugin.js'); var _pluginjs2 = _interopRequireDefault(_pluginjs);
5
+
6
+ // src/tailwindcss/data/base-components.css.json
7
+ var base_components_css_default = {
8
+ ".aui-root": {
9
+ "@apply text-aui-foreground": {}
10
+ },
11
+ ".aui-root *": {
12
+ "@apply border-aui-border": {}
13
+ },
14
+ ".aui-button": {
15
+ "@apply focus-visible:ring-aui-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50": {}
16
+ },
17
+ ".aui-button-primary": {
18
+ "@apply bg-aui-primary text-aui-primary-foreground hover:bg-aui-primary/90 shadow": {}
19
+ },
20
+ ".aui-button-outline": {
21
+ "@apply border-aui-input bg-aui-background hover:bg-aui-accent hover:text-aui-accent-foreground border shadow-sm": {}
22
+ },
23
+ ".aui-button-ghost": {
24
+ "@apply hover:bg-aui-accent hover:text-aui-accent-foreground": {}
25
+ },
26
+ ".aui-button-medium": {
27
+ "@apply h-9 px-4 py-2": {}
28
+ },
29
+ ".aui-button-icon": {
30
+ "@apply size-6 p-1": {}
31
+ },
32
+ ".aui-sr-only": {
33
+ "@apply sr-only": {}
34
+ },
35
+ ".aui-avatar-root": {
36
+ "@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full": {}
37
+ },
38
+ ".aui-avatar-image": {
39
+ "@apply aspect-square h-full w-full object-cover": {}
40
+ },
41
+ ".aui-avatar-fallback": {
42
+ "@apply bg-aui-muted flex h-full w-full items-center justify-center rounded-full": {}
43
+ },
44
+ ".aui-tooltip-content": {
45
+ "@apply bg-aui-popover text-aui-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md": {}
46
+ },
47
+ ".aui-dialog-overlay": {
48
+ "@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80": {}
49
+ },
50
+ ".aui-dialog-content": {
51
+ "@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50": {},
52
+ "@apply grid translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200": {}
53
+ }
54
+ };
55
+
56
+ // src/tailwindcss/data/thread.css.json
57
+ var thread_css_default = {
58
+ ".aui-thread-root": {
59
+ "@apply bg-aui-background box-border h-full": {},
60
+ "@apply [&>.aui-thread-viewport]:bg-inherit": {}
61
+ },
62
+ ".aui-thread-viewport": {
63
+ "@apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8": {}
64
+ },
65
+ ".aui-thread-viewport-footer": {
66
+ "@apply sticky bottom-0 mt-3 flex w-full max-w-2xl flex-col items-center justify-end rounded-t-lg bg-inherit pb-4": {}
67
+ },
68
+ ".aui-thread-scroll-to-bottom": {
69
+ "@apply absolute -top-8 rounded-full disabled:invisible": {}
70
+ },
71
+ ".aui-thread-followup-suggestions": {
72
+ "@apply flex min-h-8 items-center justify-center gap-2": {}
73
+ },
74
+ ".aui-thread-followup-suggestion": {
75
+ "@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in": {}
76
+ },
77
+ ".aui-thread-welcome-root": {
78
+ "@apply flex w-full max-w-2xl flex-grow flex-col": {}
79
+ },
80
+ ".aui-thread-welcome-center": {
81
+ "@apply flex w-full flex-grow flex-col items-center justify-center": {}
82
+ },
83
+ ".aui-thread-welcome-message": {
84
+ "@apply mt-4 font-medium": {}
85
+ },
86
+ ".aui-thread-welcome-suggestion-container": {
87
+ "@apply mt-3 flex w-full items-stretch justify-center gap-4": {}
88
+ },
89
+ ".aui-thread-welcome-suggestion": {
90
+ "@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": {}
91
+ },
92
+ ".aui-thread-welcome-suggestion-text": {
93
+ "@apply line-clamp-2 text-ellipsis text-sm font-semibold": {}
94
+ },
95
+ ".aui-composer-root": {
96
+ "@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": {}
97
+ },
98
+ ".aui-composer-input": {
99
+ "@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": {}
100
+ },
101
+ ".aui-composer-send,\n.aui-composer-cancel,\n.aui-composer-attach": {
102
+ "@apply my-2.5 size-8 p-2 transition-opacity ease-in": {}
103
+ },
104
+ ".aui-composer-attachments": {
105
+ "@apply flex w-full flex-row gap-3 px-10": {}
106
+ },
107
+ ".aui-attachment-root": {
108
+ "@apply relative mt-3 flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1": {}
109
+ },
110
+ ".aui-attachment-preview-trigger": {
111
+ "@apply hover:bg-aui-accent/50 cursor-pointer transition-colors": {}
112
+ },
113
+ ".aui-attachment-thumb": {
114
+ "@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm": {}
115
+ },
116
+ ".aui-attachment-text": {
117
+ "@apply flex-grow basis-0": {}
118
+ },
119
+ ".aui-attachment-name": {
120
+ "@apply text-aui-muted-foreground line-clamp-1 text-ellipsis text-xs font-bold": {}
121
+ },
122
+ ".aui-attachment-type": {
123
+ "@apply text-aui-muted-foreground text-xs": {}
124
+ },
125
+ ".aui-attachment-remove": {
126
+ "@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full": {}
127
+ },
128
+ ".aui-user-message-root": {
129
+ "@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2": {},
130
+ "@apply w-full max-w-2xl py-4": {}
131
+ },
132
+ ":where(.aui-user-message-root) > .aui-user-action-bar-root": {
133
+ "@apply col-start-1 row-start-2 mr-3 mt-2.5": {}
134
+ },
135
+ ":where(.aui-user-message-root) > .aui-user-message-attachments": {
136
+ "@apply col-span-full col-start-1 row-start-1": {},
137
+ "@apply justify-end": {}
138
+ },
139
+ ":where(.aui-user-message-root) > .aui-user-message-content": {
140
+ "@apply col-start-2 row-start-2": {}
141
+ },
142
+ ":where(.aui-user-message-root) > .aui-branch-picker-root": {
143
+ "@apply col-span-full col-start-1 row-start-3": {},
144
+ "@apply -mr-1 justify-end": {}
145
+ },
146
+ ".aui-user-message-content": {
147
+ "@apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5": {}
148
+ },
149
+ ".aui-user-message-attachments": {
150
+ "@apply flex w-full flex-row gap-3": {}
151
+ },
152
+ ".aui-user-action-bar-root": {
153
+ "@apply flex flex-col items-end": {}
154
+ },
155
+ ".aui-edit-composer-root": {
156
+ "@apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl": {}
157
+ },
158
+ ".aui-edit-composer-input": {
159
+ "@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none": {}
160
+ },
161
+ ".aui-edit-composer-footer": {
162
+ "@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end": {}
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-2xl py-4": {}
167
+ },
168
+ ":where(.aui-assistant-message-root) > .aui-avatar-root": {
169
+ "@apply col-start-1 row-span-full row-start-1 mr-4": {}
170
+ },
171
+ ":where(.aui-assistant-message-root) > .aui-branch-picker-root": {
172
+ "@apply col-start-2 row-start-2": {},
173
+ "@apply -ml-2 mr-2": {}
174
+ },
175
+ ":where(.aui-assistant-message-root) > .aui-assistant-action-bar-root": {
176
+ "@apply col-start-3 row-start-2": {},
177
+ "@apply -ml-1": {}
178
+ },
179
+ ":where(.aui-assistant-message-root) > .aui-assistant-message-content": {
180
+ "@apply col-span-2 col-start-2 row-start-1 my-1.5": {}
181
+ },
182
+ ".aui-assistant-message-content": {
183
+ "@apply text-aui-foreground max-w-xl break-words leading-7": {}
184
+ },
185
+ ".aui-assistant-action-bar-root": {
186
+ "@apply text-aui-muted-foreground flex gap-1": {}
187
+ },
188
+ ":where(.aui-assistant-action-bar-root)[data-floating]": {
189
+ "@apply bg-aui-background absolute rounded-md border p-1 shadow-sm": {}
190
+ },
191
+ ":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]": {
192
+ "@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400": {}
193
+ },
194
+ ":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]": {
195
+ "@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400": {}
196
+ },
197
+ ".aui-branch-picker-root": {
198
+ "@apply text-aui-muted-foreground inline-flex items-center text-xs": {}
199
+ },
200
+ ".aui-branch-picker-state": {
201
+ "@apply font-medium": {}
202
+ },
203
+ ".aui-text": {
204
+ "@apply whitespace-pre-line": {}
205
+ },
206
+ ".aui-text-running::after": {
207
+ "@apply animate-pulse font-sans content-['\\25CF'] ltr:ml-1 rtl:mr-1": {}
208
+ }
209
+ };
210
+
211
+ // src/tailwindcss/data/modal.css.json
212
+ var modal_css_default = {
213
+ ".aui-modal-content": {
214
+ "@apply bg-aui-popover text-aui-popover-foreground z-50 h-[500px] w-[400px] overflow-clip rounded-xl border p-0 shadow-md outline-none": {},
215
+ "@apply [&>.aui-thread-root]:bg-inherit": {},
216
+ "@apply data-[state=closed]:animate-out data-[state=open]:animate-in": {},
217
+ "@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0": {},
218
+ "@apply data-[state=closed]:zoom-out data-[state=open]:zoom-in": {},
219
+ "@apply data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2": {}
220
+ },
221
+ ".aui-modal-anchor": {
222
+ "@apply fixed bottom-4 right-4 size-11": {}
223
+ },
224
+ ".aui-modal-button": {
225
+ "@apply size-full rounded-full shadow transition-transform hover:scale-110 active:scale-90": {}
226
+ },
227
+ ".aui-modal-button-closed-icon": {
228
+ "@apply absolute size-6 transition-all": {},
229
+ "@apply data-[state=closed]:rotate-0 data-[state=open]:rotate-90": {},
230
+ "@apply data-[state=closed]:scale-100 data-[state=open]:scale-0": {}
231
+ },
232
+ ".aui-modal-button-open-icon": {
233
+ "@apply absolute size-6 transition-all": {},
234
+ "@apply data-[state=closed]:-rotate-90 data-[state=open]:rotate-0": {},
235
+ "@apply data-[state=closed]:scale-0 data-[state=open]:scale-100": {}
236
+ }
237
+ };
238
+
239
+ // src/tailwindcss/data/default.css.json
240
+ var default_css_default = {
241
+ ":root": {
242
+ "--aui-background": "0 0% 100%",
243
+ "--aui-foreground": "240 10% 3.9%",
244
+ "--aui-card": "0 0% 100%",
245
+ "--aui-card-foreground": "240 10% 3.9%",
246
+ "--aui-popover": "0 0% 100%",
247
+ "--aui-popover-foreground": "240 10% 3.9%",
248
+ "--aui-primary": "240 5.9% 10%",
249
+ "--aui-primary-foreground": "0 0% 98%",
250
+ "--aui-secondary": "240 4.8% 95.9%",
251
+ "--aui-secondary-foreground": "240 5.9% 10%",
252
+ "--aui-muted": "240 4.8% 95.9%",
253
+ "--aui-muted-foreground": "240 3.8% 46.1%",
254
+ "--aui-accent": "240 4.8% 95.9%",
255
+ "--aui-accent-foreground": "240 5.9% 10%",
256
+ "--aui-destructive": "0 84.2% 60.2%",
257
+ "--aui-destructive-foreground": "0 0% 98%",
258
+ "--aui-border": "240 5.9% 90%",
259
+ "--aui-input": "240 5.9% 90%",
260
+ "--aui-ring": "240 10% 3.9%",
261
+ "--aui-radius": "0.5rem"
262
+ },
263
+ ".dark": {
264
+ "--aui-background": "0 0% 7%",
265
+ "--aui-foreground": "0 0% 98%",
266
+ "--aui-card": "240 10% 3.9%",
267
+ "--aui-card-foreground": "0 0% 98%",
268
+ "--aui-popover": "240 10% 3.9%",
269
+ "--aui-popover-foreground": "0 0% 98%",
270
+ "--aui-primary": "0 0% 98%",
271
+ "--aui-primary-foreground": "240 5.9% 10%",
272
+ "--aui-secondary": "240 3.7% 15.9%",
273
+ "--aui-secondary-foreground": "0 0% 98%",
274
+ "--aui-muted": "240 3.7% 15.9%",
275
+ "--aui-muted-foreground": "240 5% 64.9%",
276
+ "--aui-accent": "240 3.7% 15.9%",
277
+ "--aui-accent-foreground": "0 0% 98%",
278
+ "--aui-destructive": "0 62.8% 30.6%",
279
+ "--aui-destructive-foreground": "0 0% 98%",
280
+ "--aui-border": "240 3.7% 15.9%",
281
+ "--aui-input": "240 3.7% 15.9%",
282
+ "--aui-ring": "240 4.9% 83.9%"
283
+ }
284
+ };
285
+
286
+ // src/tailwindcss/index.ts
5
287
  var auiPlugin = _pluginjs2.default.withOptions(
6
288
  ({ components = ["assistant-modal", "thread"], shadcn = false } = {}) => ({ addComponents }) => {
7
289
  const assistantModal = components.includes("assistant-modal");
@@ -11,29 +293,22 @@ var auiPlugin = _pluginjs2.default.withOptions(
11
293
  if (defaultTheme && shadcn)
12
294
  throw new Error("default-theme cannot be used with shadcn");
13
295
  if (defaultTheme || base && !shadcn) {
14
- addComponents({
15
- '@import "@assistant-ui/react/styles/themes/default.css"': ""
16
- });
296
+ addComponents(default_css_default);
17
297
  }
18
298
  if (base) {
19
- addComponents({
20
- '@import "@assistant-ui/react/styles/tailwindcss/base-components.css"': ""
21
- });
299
+ addComponents(base_components_css_default);
22
300
  }
23
301
  if (thread) {
24
- addComponents({
25
- '@import "@assistant-ui/react/styles/tailwindcss/thread.css"': ""
26
- });
302
+ addComponents(thread_css_default);
27
303
  }
28
304
  if (assistantModal) {
29
- addComponents({
30
- '@import "@assistant-ui/react/styles/tailwindcss/modal.css"': ""
31
- });
305
+ addComponents(modal_css_default);
32
306
  }
33
307
  },
34
308
  ({ shadcn = false, colors = {} } = {}) => {
35
309
  const prefix = !shadcn ? "--aui-" : "--";
36
310
  return {
311
+ safelist: [{ pattern: /aui-/ }],
37
312
  theme: {
38
313
  extend: {
39
314
  colors: {
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","../../src/tailwindcss/index.ts"],"names":[],"mappings":"AAAA,izBAA6B;AAC7B;AACA;ACFA,qGAAmB;AA4CnB,IAAM,UAAA,EAAY,kBAAA,CAAO,WAAA;AAAA,EACvB,CAAC,EAAE,WAAA,EAAa,CAAC,iBAAA,EAAmB,QAAQ,CAAA,EAAG,OAAA,EAAS,MAAM,EAAA,EAAI,CAAC,CAAA,EAAA,GACjE,CAAC,EAAE,cAAc,CAAA,EAAA,GAAM;AACrB,IAAA,MAAM,eAAA,EAAiB,UAAA,CAAW,QAAA,CAAS,iBAAiB,CAAA;AAC5D,IAAA,MAAM,OAAA,EAAS,eAAA,GAAkB,UAAA,CAAW,QAAA,CAAS,QAAQ,CAAA;AAC7D,IAAA,MAAM,KAAA,EAAO,OAAA,GAAU,UAAA,CAAW,QAAA,CAAS,MAAM,CAAA;AACjD,IAAA,MAAM,aAAA,EAAe,UAAA,CAAW,QAAA,CAAS,eAAe,CAAA;AAExD,IAAA,GAAA,CAAI,aAAA,GAAgB,MAAA;AAClB,MAAA,MAAM,IAAI,KAA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A;AAAA,cACA,OAAA,EAAS;AAAA,gBACP,OAAA,mCACE,MAAA,uBAAO,OAAA,+BAAS,SAAA,UAAW,CAAA,QAAA,EAAW,MAAM,CAAA,SAAA,GAAA;AAAA,gBAC9C,UAAA,mCACE,MAAA,uBAAO,OAAA,+BAAS,YAAA,UAChB,CAAA,QAAA,EAAW,MAAM,CAAA,oBAAA;AAAA,cACrB,CAAA;AAAA,cACA,IAAA,EAAM;AAAA,gBACJ,OAAA,mCAAS,MAAA,uBAAO,IAAA,+BAAM,SAAA,UAAW,CAAA,QAAA,EAAW,MAAM,CAAA,MAAA,GAAA;AAAA,gBAClD,UAAA,mCACE,MAAA,uBAAO,IAAA,+BAAM,YAAA,UACb,CAAA,QAAA,EAAW,MAAM,CAAA,iBAAA;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAA;AAEA,IAAO,oBAAA,EAAQ,SAAA;ADhEf;AACE;AACF,sCAAC","file":"/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","sourcesContent":[null,"import plugin from \"tailwindcss/plugin.js\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents({\n '@import \"@assistant-ui/react/styles/themes/default.css\"': \"\",\n });\n }\n\n if (base) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/base-components.css\"':\n \"\",\n });\n }\n\n if (thread) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/thread.css\"': \"\",\n });\n }\n\n if (assistantModal) {\n addComponents({\n '@import \"@assistant-ui/react/styles/tailwindcss/modal.css\"': \"\",\n });\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n"]}
1
+ {"version":3,"sources":["/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","../../src/tailwindcss/index.ts","../../src/tailwindcss/data/base-components.css.json","../../src/tailwindcss/data/thread.css.json","../../src/tailwindcss/data/modal.css.json","../../src/tailwindcss/data/default.css.json"],"names":[],"mappings":"AAAA,izBAA6B;AAC7B;AACA;ACFA,qGAAmB;ADInB;AACA;AELA,IAAA,4BAAA,EAAA;AAAA,EACE,WAAA,EAAa;AAAA,IACX,4BAAA,EAA8B,CAAC;AAAA,EACjC,CAAA;AAAA,EACA,aAAA,EAAe;AAAA,IACb,0BAAA,EAA4B,CAAC;AAAA,EAC/B,CAAA;AAAA,EACA,aAAA,EAAe;AAAA,IACb,gPAAA,EAAkP,CAAC;AAAA,EACrP,CAAA;AAAA,EACA,qBAAA,EAAuB;AAAA,IACrB,kFAAA,EAAoF,CAAC;AAAA,EACvF,CAAA;AAAA,EACA,qBAAA,EAAuB;AAAA,IACrB,iHAAA,EAAmH,CAAC;AAAA,EACtH,CAAA;AAAA,EACA,mBAAA,EAAqB;AAAA,IACnB,6DAAA,EAA+D,CAAC;AAAA,EAClE,CAAA;AAAA,EACA,oBAAA,EAAsB;AAAA,IACpB,sBAAA,EAAwB,CAAC;AAAA,EAC3B,CAAA;AAAA,EACA,kBAAA,EAAoB;AAAA,IAClB,mBAAA,EAAqB,CAAC;AAAA,EACxB,CAAA;AAAA,EACA,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A,+BAAS,YAAA,UAChB,CAAA,QAAA,EAAW,MAAM,CAAA,oBAAA;AAAA,cACrB,CAAA;AAAA,cACA,IAAA,EAAM;AAAA,gBACJ,OAAA,mCAAS,MAAA,uBAAO,IAAA,+BAAM,SAAA,UAAW,CAAA,QAAA,EAAW,MAAM,CAAA,MAAA,GAAA;AAAA,gBAClD,UAAA,mCACE,MAAA,uBAAO,IAAA,+BAAM,YAAA,UACb,CAAA,QAAA,EAAW,MAAM,CAAA,iBAAA;AAAA,cACrB;AAAA,YACF;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAA;AAAA,EACF;AACF,CAAA;AAEA,IAAO,oBAAA,EAAQ,SAAA;ADuNf;AACE;AACF,sCAAC","file":"/home/runner/work/assistant-ui/assistant-ui/packages/react/dist/tailwindcss/index.js","sourcesContent":[null,"import plugin from \"tailwindcss/plugin.js\";\nimport baseComponentsCSS from \"./data/base-components.css.json\";\nimport threadCSS from \"./data/thread.css.json\";\nimport modalCSS from \"./data/modal.css.json\";\nimport defaultThemeCSS from \"./data/default.css.json\";\n\ntype AssistantTailwindPluginColors = {\n border: string;\n input: string;\n ring: string;\n background: string;\n foreground: string;\n primary: {\n DEFAULT: string;\n foreground: string;\n };\n secondary: {\n DEFAULT: string;\n foreground: string;\n };\n destructive: {\n DEFAULT: string;\n foreground: string;\n };\n muted: {\n DEFAULT: string;\n foreground: string;\n };\n accent: {\n DEFAULT: string;\n foreground: string;\n };\n popover: {\n DEFAULT: string;\n foreground: string;\n };\n card: {\n DEFAULT: string;\n foreground: string;\n };\n};\n\ntype AssisstantTailwindPluginOptions = {\n components?: (\"default-theme\" | \"base\" | \"thread\" | \"assistant-modal\")[];\n colors?: AssistantTailwindPluginColors;\n shadcn?: boolean;\n};\n\nconst auiPlugin = plugin.withOptions<AssisstantTailwindPluginOptions>(\n ({ components = [\"assistant-modal\", \"thread\"], shadcn = false } = {}) =>\n ({ addComponents }) => {\n const assistantModal = components.includes(\"assistant-modal\");\n const thread = assistantModal || components.includes(\"thread\");\n const base = thread || components.includes(\"base\");\n const defaultTheme = components.includes(\"default-theme\");\n\n if (defaultTheme && shadcn)\n throw new Error(\"default-theme cannot be used with shadcn\");\n\n if (defaultTheme || (base && !shadcn)) {\n addComponents(defaultThemeCSS);\n }\n\n if (base) {\n addComponents(baseComponentsCSS);\n }\n\n if (thread) {\n addComponents(threadCSS);\n }\n\n if (assistantModal) {\n addComponents(modalCSS);\n }\n },\n ({ shadcn = false, colors = {} } = {}) => {\n const prefix = !shadcn ? \"--aui-\" : \"--\";\n return {\n safelist: [{ pattern: /aui-/ }],\n theme: {\n extend: {\n colors: {\n aui: {\n border: colors.border ?? `hsl(var(${prefix}border))`,\n input: colors.input ?? `hsl(var(${prefix}input))`,\n ring: colors.ring ?? `hsl(var(${prefix}ring))`,\n background: colors.background ?? `hsl(var(${prefix}background))`,\n foreground: colors.foreground ?? `hsl(var(${prefix}foreground))`,\n primary: {\n DEFAULT:\n colors.primary?.DEFAULT ?? `hsl(var(${prefix}primary))`,\n foreground:\n colors.primary?.foreground ??\n `hsl(var(${prefix}primary-foreground))`,\n },\n secondary: {\n DEFAULT:\n colors.secondary?.DEFAULT ?? `hsl(var(${prefix}secondary))`,\n foreground:\n colors.secondary?.foreground ??\n `hsl(var(${prefix}secondary-foreground))`,\n },\n destructive: {\n DEFAULT:\n colors.destructive?.DEFAULT ??\n `hsl(var(${prefix}destructive))`,\n foreground: `hsl(var(${prefix}destructive-foreground))`,\n },\n muted: {\n DEFAULT: `hsl(var(${prefix}muted))`,\n foreground:\n colors.muted?.foreground ??\n `hsl(var(${prefix}muted-foreground))`,\n },\n accent: {\n DEFAULT: colors.accent?.DEFAULT ?? `hsl(var(${prefix}accent))`,\n foreground:\n colors.accent?.foreground ??\n `hsl(var(${prefix}accent-foreground))`,\n },\n popover: {\n DEFAULT:\n colors.popover?.DEFAULT ?? `hsl(var(${prefix}popover))`,\n foreground:\n colors.popover?.foreground ??\n `hsl(var(${prefix}popover-foreground))`,\n },\n card: {\n DEFAULT: colors.card?.DEFAULT ?? `hsl(var(${prefix}card))`,\n foreground:\n colors.card?.foreground ??\n `hsl(var(${prefix}card-foreground))`,\n },\n },\n },\n },\n },\n };\n },\n);\n\nexport default auiPlugin;\n","{\n \".aui-root\": {\n \"@apply text-aui-foreground\": {}\n },\n \".aui-root *\": {\n \"@apply border-aui-border\": {}\n },\n \".aui-button\": {\n \"@apply focus-visible:ring-aui-ring inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50\": {}\n },\n \".aui-button-primary\": {\n \"@apply bg-aui-primary text-aui-primary-foreground hover:bg-aui-primary/90 shadow\": {}\n },\n \".aui-button-outline\": {\n \"@apply border-aui-input bg-aui-background hover:bg-aui-accent hover:text-aui-accent-foreground border shadow-sm\": {}\n },\n \".aui-button-ghost\": {\n \"@apply hover:bg-aui-accent hover:text-aui-accent-foreground\": {}\n },\n \".aui-button-medium\": {\n \"@apply h-9 px-4 py-2\": {}\n },\n \".aui-button-icon\": {\n \"@apply size-6 p-1\": {}\n },\n \".aui-sr-only\": {\n \"@apply sr-only\": {}\n },\n \".aui-avatar-root\": {\n \"@apply relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full\": {}\n },\n \".aui-avatar-image\": {\n \"@apply aspect-square h-full w-full object-cover\": {}\n },\n \".aui-avatar-fallback\": {\n \"@apply bg-aui-muted flex h-full w-full items-center justify-center rounded-full\": {}\n },\n \".aui-tooltip-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md\": {}\n },\n \".aui-dialog-overlay\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80\": {}\n },\n \".aui-dialog-content\": {\n \"@apply data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-[50%] top-[50%] z-50\": {},\n \"@apply grid translate-x-[-50%] translate-y-[-50%] shadow-lg duration-200\": {}\n }\n}","{\n \".aui-thread-root\": {\n \"@apply bg-aui-background box-border h-full\": {},\n \"@apply [&>.aui-thread-viewport]:bg-inherit\": {}\n },\n \".aui-thread-viewport\": {\n \"@apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8\": {}\n },\n \".aui-thread-viewport-footer\": {\n \"@apply sticky bottom-0 mt-3 flex w-full max-w-2xl flex-col items-center justify-end rounded-t-lg bg-inherit pb-4\": {}\n },\n \".aui-thread-scroll-to-bottom\": {\n \"@apply absolute -top-8 rounded-full disabled:invisible\": {}\n },\n \".aui-thread-followup-suggestions\": {\n \"@apply flex min-h-8 items-center justify-center gap-2\": {}\n },\n \".aui-thread-followup-suggestion\": {\n \"@apply bg-aui-background hover:bg-aui-muted/80 rounded-full border px-3 py-1 text-sm transition-colors ease-in\": {}\n },\n \".aui-thread-welcome-root\": {\n \"@apply flex w-full max-w-2xl flex-grow flex-col\": {}\n },\n \".aui-thread-welcome-center\": {\n \"@apply flex w-full flex-grow flex-col items-center justify-center\": {}\n },\n \".aui-thread-welcome-message\": {\n \"@apply mt-4 font-medium\": {}\n },\n \".aui-thread-welcome-suggestion-container\": {\n \"@apply mt-3 flex w-full items-stretch justify-center gap-4\": {}\n },\n \".aui-thread-welcome-suggestion\": {\n \"@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\": {}\n },\n \".aui-thread-welcome-suggestion-text\": {\n \"@apply line-clamp-2 text-ellipsis text-sm font-semibold\": {}\n },\n \".aui-composer-root\": {\n \"@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\": {}\n },\n \".aui-composer-input\": {\n \"@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\": {}\n },\n \".aui-composer-send,\\n.aui-composer-cancel,\\n.aui-composer-attach\": {\n \"@apply my-2.5 size-8 p-2 transition-opacity ease-in\": {}\n },\n \".aui-composer-attachments\": {\n \"@apply flex w-full flex-row gap-3 px-10\": {}\n },\n \".aui-attachment-root\": {\n \"@apply relative mt-3 flex h-12 w-40 items-center justify-center gap-2 rounded-lg border p-1\": {}\n },\n \".aui-attachment-preview-trigger\": {\n \"@apply hover:bg-aui-accent/50 cursor-pointer transition-colors\": {}\n },\n \".aui-attachment-thumb\": {\n \"@apply bg-aui-muted flex size-10 items-center justify-center rounded border text-sm\": {}\n },\n \".aui-attachment-text\": {\n \"@apply flex-grow basis-0\": {}\n },\n \".aui-attachment-name\": {\n \"@apply text-aui-muted-foreground line-clamp-1 text-ellipsis text-xs font-bold\": {}\n },\n \".aui-attachment-type\": {\n \"@apply text-aui-muted-foreground text-xs\": {}\n },\n \".aui-attachment-remove\": {\n \"@apply text-aui-muted-foreground [&>svg]:bg-aui-background absolute -right-3 -top-3 size-6 [&>svg]:size-4 [&>svg]:rounded-full\": {}\n },\n \".aui-user-message-root\": {\n \"@apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2\": {},\n \"@apply w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-action-bar-root\": {\n \"@apply col-start-1 row-start-2 mr-3 mt-2.5\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-attachments\": {\n \"@apply col-span-full col-start-1 row-start-1\": {},\n \"@apply justify-end\": {}\n },\n \":where(.aui-user-message-root) > .aui-user-message-content\": {\n \"@apply col-start-2 row-start-2\": {}\n },\n \":where(.aui-user-message-root) > .aui-branch-picker-root\": {\n \"@apply col-span-full col-start-1 row-start-3\": {},\n \"@apply -mr-1 justify-end\": {}\n },\n \".aui-user-message-content\": {\n \"@apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5\": {}\n },\n \".aui-user-message-attachments\": {\n \"@apply flex w-full flex-row gap-3\": {}\n },\n \".aui-user-action-bar-root\": {\n \"@apply flex flex-col items-end\": {}\n },\n \".aui-edit-composer-root\": {\n \"@apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl\": {}\n },\n \".aui-edit-composer-input\": {\n \"@apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none\": {}\n },\n \".aui-edit-composer-footer\": {\n \"@apply mx-3 mb-3 flex items-center justify-center gap-2 self-end\": {}\n },\n \".aui-assistant-message-root\": {\n \"@apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr]\": {},\n \"@apply relative w-full max-w-2xl py-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-avatar-root\": {\n \"@apply col-start-1 row-span-full row-start-1 mr-4\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-branch-picker-root\": {\n \"@apply col-start-2 row-start-2\": {},\n \"@apply -ml-2 mr-2\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-action-bar-root\": {\n \"@apply col-start-3 row-start-2\": {},\n \"@apply -ml-1\": {}\n },\n \":where(.aui-assistant-message-root) > .aui-assistant-message-content\": {\n \"@apply col-span-2 col-start-2 row-start-1 my-1.5\": {}\n },\n \".aui-assistant-message-content\": {\n \"@apply text-aui-foreground max-w-xl break-words leading-7\": {}\n },\n \".aui-assistant-action-bar-root\": {\n \"@apply text-aui-muted-foreground flex gap-1\": {}\n },\n \":where(.aui-assistant-action-bar-root)[data-floating]\": {\n \"@apply bg-aui-background absolute rounded-md border p-1 shadow-sm\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-positive)[data-submitted]\": {\n \"@apply text-green-600 hover:text-green-700 dark:text-green-500 dark:hover:text-green-400\": {}\n },\n \":where(.aui-assistant-action-bar-feedback-negative)[data-submitted]\": {\n \"@apply text-red-600 hover:text-red-700 dark:text-red-500 dark:hover:text-red-400\": {}\n },\n \".aui-branch-picker-root\": {\n \"@apply text-aui-muted-foreground inline-flex items-center text-xs\": {}\n },\n \".aui-branch-picker-state\": {\n \"@apply font-medium\": {}\n },\n \".aui-text\": {\n \"@apply whitespace-pre-line\": {}\n },\n \".aui-text-running::after\": {\n \"@apply animate-pulse font-sans content-['\\\\25CF'] ltr:ml-1 rtl:mr-1\": {}\n }\n}","{\n \".aui-modal-content\": {\n \"@apply bg-aui-popover text-aui-popover-foreground z-50 h-[500px] w-[400px] overflow-clip rounded-xl border p-0 shadow-md outline-none\": {},\n \"@apply [&>.aui-thread-root]:bg-inherit\": {},\n \"@apply data-[state=closed]:animate-out data-[state=open]:animate-in\": {},\n \"@apply data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\": {},\n \"@apply data-[state=closed]:zoom-out data-[state=open]:zoom-in\": {},\n \"@apply data-[state=open]:slide-in-from-bottom-1/2 data-[state=open]:slide-in-from-right-1/2 data-[state=closed]:slide-out-to-bottom-1/2 data-[state=closed]:slide-out-to-right-1/2\": {}\n },\n \".aui-modal-anchor\": {\n \"@apply fixed bottom-4 right-4 size-11\": {}\n },\n \".aui-modal-button\": {\n \"@apply size-full rounded-full shadow transition-transform hover:scale-110 active:scale-90\": {}\n },\n \".aui-modal-button-closed-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:rotate-0 data-[state=open]:rotate-90\": {},\n \"@apply data-[state=closed]:scale-100 data-[state=open]:scale-0\": {}\n },\n \".aui-modal-button-open-icon\": {\n \"@apply absolute size-6 transition-all\": {},\n \"@apply data-[state=closed]:-rotate-90 data-[state=open]:rotate-0\": {},\n \"@apply data-[state=closed]:scale-0 data-[state=open]:scale-100\": {}\n }\n}","{\n \":root\": {\n \"--aui-background\": \"0 0% 100%\",\n \"--aui-foreground\": \"240 10% 3.9%\",\n \"--aui-card\": \"0 0% 100%\",\n \"--aui-card-foreground\": \"240 10% 3.9%\",\n \"--aui-popover\": \"0 0% 100%\",\n \"--aui-popover-foreground\": \"240 10% 3.9%\",\n \"--aui-primary\": \"240 5.9% 10%\",\n \"--aui-primary-foreground\": \"0 0% 98%\",\n \"--aui-secondary\": \"240 4.8% 95.9%\",\n \"--aui-secondary-foreground\": \"240 5.9% 10%\",\n \"--aui-muted\": \"240 4.8% 95.9%\",\n \"--aui-muted-foreground\": \"240 3.8% 46.1%\",\n \"--aui-accent\": \"240 4.8% 95.9%\",\n \"--aui-accent-foreground\": \"240 5.9% 10%\",\n \"--aui-destructive\": \"0 84.2% 60.2%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 5.9% 90%\",\n \"--aui-input\": \"240 5.9% 90%\",\n \"--aui-ring\": \"240 10% 3.9%\",\n \"--aui-radius\": \"0.5rem\"\n },\n \".dark\": {\n \"--aui-background\": \"0 0% 7%\",\n \"--aui-foreground\": \"0 0% 98%\",\n \"--aui-card\": \"240 10% 3.9%\",\n \"--aui-card-foreground\": \"0 0% 98%\",\n \"--aui-popover\": \"240 10% 3.9%\",\n \"--aui-popover-foreground\": \"0 0% 98%\",\n \"--aui-primary\": \"0 0% 98%\",\n \"--aui-primary-foreground\": \"240 5.9% 10%\",\n \"--aui-secondary\": \"240 3.7% 15.9%\",\n \"--aui-secondary-foreground\": \"0 0% 98%\",\n \"--aui-muted\": \"240 3.7% 15.9%\",\n \"--aui-muted-foreground\": \"240 5% 64.9%\",\n \"--aui-accent\": \"240 3.7% 15.9%\",\n \"--aui-accent-foreground\": \"0 0% 98%\",\n \"--aui-destructive\": \"0 62.8% 30.6%\",\n \"--aui-destructive-foreground\": \"0 0% 98%\",\n \"--aui-border\": \"240 3.7% 15.9%\",\n \"--aui-input\": \"240 3.7% 15.9%\",\n \"--aui-ring\": \"240 4.9% 83.9%\"\n }\n}"]}