@assistant-ui/react 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,159 +1,159 @@
1
1
  /* thread */
2
- .aui-root.aui-thread-root {
2
+ .aui-thread-root {
3
3
  @apply bg-aui-background box-border h-full;
4
4
  @apply [&>.aui-thread-viewport]:bg-inherit;
5
5
  }
6
6
 
7
- .aui-root .aui-thread-viewport {
7
+ .aui-thread-viewport {
8
8
  @apply bg-aui-background flex h-full flex-col items-center overflow-y-scroll scroll-smooth px-4 pt-8;
9
9
  }
10
10
 
11
- .aui-root .aui-thread-viewport-footer {
11
+ .aui-thread-viewport-footer {
12
12
  @apply sticky bottom-0 mt-4 flex w-full max-w-2xl flex-grow flex-col items-center justify-end rounded-t-lg bg-inherit pb-4;
13
13
  }
14
14
 
15
- .aui-root .aui-thread-scroll-to-bottom {
15
+ .aui-thread-scroll-to-bottom {
16
16
  @apply absolute -top-8 rounded-full disabled:invisible;
17
17
  }
18
18
 
19
19
  /* thread welcome */
20
20
 
21
- .aui-root .aui-thread-welcome-root {
21
+ .aui-thread-welcome-root {
22
22
  @apply flex w-full max-w-2xl flex-grow basis-full flex-col;
23
23
  }
24
24
 
25
- .aui-root .aui-thread-welcome-center {
25
+ .aui-thread-welcome-center {
26
26
  @apply flex w-full flex-grow flex-col items-center justify-center;
27
27
  }
28
28
 
29
- .aui-root .aui-thread-welcome-message {
29
+ .aui-thread-welcome-message {
30
30
  @apply mt-4 font-medium;
31
31
  }
32
32
 
33
- .aui-root .aui-thread-welcome-suggestion-container {
33
+ .aui-thread-welcome-suggestion-container {
34
34
  @apply mt-4 flex w-full items-stretch justify-center gap-4;
35
35
  }
36
36
 
37
- .aui-root .aui-thread-welcome-suggestion {
37
+ .aui-thread-welcome-suggestion {
38
38
  @apply flex max-w-sm grow basis-0 flex-col items-center justify-center rounded-lg border px-3 py-3;
39
39
  }
40
40
 
41
- .aui-root .aui-thread-welcome-suggestion-text {
41
+ .aui-thread-welcome-suggestion-text {
42
42
  @apply line-clamp-2 text-ellipsis text-sm font-semibold;
43
43
  }
44
44
 
45
45
  /* composer */
46
46
 
47
- .aui-root .aui-composer-root {
47
+ .aui-composer-root {
48
48
  @apply relative flex w-full items-end rounded-lg border transition-shadow focus-within:shadow-sm;
49
49
  }
50
50
 
51
- .aui-root .aui-composer-input {
51
+ .aui-composer-input {
52
52
  @apply placeholder:text-aui-muted-foreground size-full max-h-40 resize-none bg-transparent p-4 pr-12 text-sm outline-none;
53
53
  }
54
54
 
55
- .aui-root .aui-composer-send,
56
- .aui-root .aui-composer-cancel {
55
+ .aui-composer-send,
56
+ .aui-composer-cancel {
57
57
  @apply absolute bottom-0 right-0 m-2.5 size-8 p-2 transition-opacity;
58
58
  }
59
59
 
60
60
  /* user message */
61
61
 
62
- .aui-root .aui-user-message-root {
62
+ .aui-user-message-root {
63
63
  @apply grid auto-rows-auto grid-cols-[minmax(72px,1fr)_auto] gap-y-2 [&>*]:col-start-2;
64
64
  @apply w-full max-w-2xl py-4;
65
65
  }
66
66
 
67
- .aui-root .aui-user-message-root > .aui-user-action-bar-root {
67
+ :where(.aui-user-message-root) > .aui-user-action-bar-root {
68
68
  @apply col-start-1 mr-3 mt-2.5;
69
69
  }
70
70
 
71
- .aui-root .aui-user-message-root > .aui-user-message-content {
71
+ :where(.aui-user-message-root) > .aui-user-message-content {
72
72
  @apply col-start-2 row-start-1;
73
73
  }
74
74
 
75
- .aui-root .aui-user-message-root > .aui-branch-picker-root {
75
+ :where(.aui-user-message-root) > .aui-branch-picker-root {
76
76
  @apply col-span-full col-start-1 row-start-2;
77
77
  @apply -mr-1 justify-end;
78
78
  }
79
79
 
80
- .aui-root .aui-user-message-content {
80
+ .aui-user-message-content {
81
81
  @apply bg-aui-muted text-aui-foreground max-w-xl break-words rounded-3xl px-5 py-2.5;
82
82
  }
83
83
 
84
84
  /* thread action bar */
85
85
 
86
- .aui-root .aui-user-action-bar-root {
86
+ .aui-user-action-bar-root {
87
87
  @apply flex flex-col items-end;
88
88
  }
89
89
 
90
- .aui-root .aui-edit-composer-root {
90
+ .aui-edit-composer-root {
91
91
  @apply bg-aui-muted my-4 flex w-full max-w-2xl flex-col gap-2 rounded-xl;
92
92
  }
93
93
 
94
- .aui-root .aui-edit-composer-input {
94
+ .aui-edit-composer-input {
95
95
  @apply text-aui-foreground flex h-8 w-full resize-none bg-transparent p-4 pb-0 outline-none;
96
96
  }
97
97
 
98
- .aui-root .aui-edit-composer-footer {
98
+ .aui-edit-composer-footer {
99
99
  @apply mx-3 mb-3 flex items-center justify-center gap-2 self-end;
100
100
  }
101
101
 
102
102
  /* assistant message */
103
103
 
104
- .aui-root .aui-assistant-message-root {
104
+ .aui-assistant-message-root {
105
105
  @apply grid grid-cols-[auto_auto_1fr] grid-rows-[auto_1fr];
106
106
  @apply relative w-full max-w-2xl py-4;
107
107
  }
108
108
 
109
- .aui-root .aui-assistant-message-root > .aui-avatar-root {
109
+ :where(.aui-assistant-message-root) > .aui-avatar-root {
110
110
  @apply col-start-1 row-span-full row-start-1 mr-4;
111
111
  }
112
112
 
113
- .aui-root .aui-assistant-message-root > .aui-branch-picker-root {
113
+ :where(.aui-assistant-message-root) > .aui-branch-picker-root {
114
114
  @apply col-start-2 row-start-2;
115
115
  @apply -ml-2 mr-2;
116
116
  }
117
117
 
118
- .aui-root .aui-assistant-message-root > .aui-assistant-action-bar-root {
118
+ :where(.aui-assistant-message-root) > .aui-assistant-action-bar-root {
119
119
  @apply col-start-3 row-start-2;
120
120
  @apply -ml-1;
121
121
  }
122
122
 
123
- .aui-root .aui-assistant-message-root > .aui-assistant-message-content {
123
+ :where(.aui-assistant-message-root) > .aui-assistant-message-content {
124
124
  @apply col-span-2 col-start-2 row-start-1 my-1.5;
125
125
  }
126
126
 
127
- .aui-root .aui-assistant-message-content {
127
+ .aui-assistant-message-content {
128
128
  @apply text-aui-foreground max-w-xl break-words leading-7;
129
129
  }
130
130
 
131
131
  /* assistant action bar */
132
132
 
133
- .aui-root .aui-assistant-action-bar-root {
133
+ .aui-assistant-action-bar-root {
134
134
  @apply text-aui-muted-foreground flex gap-1;
135
135
  }
136
136
 
137
- .aui-root .aui-assistant-action-bar-root[data-floating] {
137
+ :where(.aui-assistant-action-bar-root)[data-floating] {
138
138
  @apply bg-aui-background absolute rounded-md border p-1 shadow-sm;
139
139
  }
140
140
 
141
141
  /* branch picker */
142
142
 
143
- .aui-root .aui-branch-picker-root {
143
+ .aui-branch-picker-root {
144
144
  @apply text-aui-muted-foreground inline-flex items-center text-xs;
145
145
  }
146
146
 
147
- .aui-root .aui-branch-picker-state {
147
+ .aui-branch-picker-state {
148
148
  @apply font-medium;
149
149
  }
150
150
 
151
151
  /* text */
152
152
 
153
- .aui-root .aui-text {
153
+ .aui-text {
154
154
  @apply whitespace-pre-line;
155
155
  }
156
156
 
157
- .aui-root .aui-text-in-progress::after {
157
+ .aui-text-in-progress::after {
158
158
  @apply animate-pulse font-sans content-['\25CF'] ltr:ml-1 rtl:mr-1;
159
159
  }
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "conversational-ui",
30
30
  "conversational-ai"
31
31
  ],
32
- "version": "0.4.2",
32
+ "version": "0.4.4",
33
33
  "license": "MIT",
34
34
  "exports": {
35
35
  ".": {