@uipath/apollo-wind 2.72.2 → 2.73.1
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.
- package/dist/components/ui/alert-dialog.cjs +1 -1
- package/dist/components/ui/alert-dialog.js +1 -1
- package/dist/components/ui/attachment.cjs +40 -8
- package/dist/components/ui/attachment.d.ts +11 -1
- package/dist/components/ui/attachment.js +43 -11
- package/dist/components/ui/bubble.cjs +1 -1
- package/dist/components/ui/bubble.d.ts +6 -0
- package/dist/components/ui/bubble.js +1 -1
- package/dist/components/ui/chat-composer.cjs +8 -2
- package/dist/components/ui/chat-composer.d.ts +6 -0
- package/dist/components/ui/chat-composer.js +9 -3
- package/dist/components/ui/citation.cjs +5 -3
- package/dist/components/ui/citation.d.ts +6 -0
- package/dist/components/ui/citation.js +5 -3
- package/dist/components/ui/code-block.cjs +6 -6
- package/dist/components/ui/code-block.d.ts +6 -0
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/context-menu.cjs +2 -2
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.cjs +18 -5
- package/dist/components/ui/dialog.d.ts +15 -0
- package/dist/components/ui/dialog.js +16 -6
- package/dist/components/ui/disclosure-tree.cjs +269 -0
- package/dist/components/ui/disclosure-tree.d.ts +45 -0
- package/dist/components/ui/disclosure-tree.js +235 -0
- package/dist/components/ui/dropdown-menu.cjs +2 -2
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/dropzone-overlay.cjs +21 -5
- package/dist/components/ui/dropzone-overlay.d.ts +12 -1
- package/dist/components/ui/dropzone-overlay.js +21 -5
- package/dist/components/ui/empty-state.cjs +28 -10
- package/dist/components/ui/empty-state.d.ts +9 -0
- package/dist/components/ui/empty-state.js +30 -12
- package/dist/components/ui/hover-card.cjs +1 -1
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/index.cjs +221 -208
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown.cjs +129 -22
- package/dist/components/ui/markdown.d.ts +23 -4
- package/dist/components/ui/markdown.js +129 -22
- package/dist/components/ui/message-actions.cjs +1 -1
- package/dist/components/ui/message-actions.d.ts +3 -0
- package/dist/components/ui/message-actions.js +1 -1
- package/dist/components/ui/message.cjs +4 -4
- package/dist/components/ui/message.d.ts +7 -0
- package/dist/components/ui/message.js +4 -4
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/search.cjs +16 -5
- package/dist/components/ui/search.d.ts +9 -0
- package/dist/components/ui/search.js +13 -5
- package/dist/components/ui/select.cjs +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/sheet.cjs +12 -2
- package/dist/components/ui/sheet.d.ts +7 -0
- package/dist/components/ui/sheet.js +10 -3
- package/dist/components/ui/sources.cjs +1 -1
- package/dist/components/ui/sources.d.ts +6 -0
- package/dist/components/ui/sources.js +1 -1
- package/dist/components/ui/thinking-indicator.cjs +5 -3
- package/dist/components/ui/thinking-indicator.d.ts +6 -0
- package/dist/components/ui/thinking-indicator.js +5 -3
- package/dist/components/ui/tool-call.cjs +10 -7
- package/dist/components/ui/tool-call.d.ts +6 -0
- package/dist/components/ui/tool-call.js +10 -7
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/index.cjs +14 -1
- package/dist/index.d.ts +10 -6
- package/dist/index.js +5 -4
- package/dist/lib/disclosure-row.cjs +36 -0
- package/dist/lib/disclosure-row.d.ts +1 -0
- package/dist/lib/disclosure-row.js +2 -0
- package/dist/lib/use-ancestor-density.cjs +65 -0
- package/dist/lib/use-ancestor-density.d.ts +8 -0
- package/dist/lib/use-ancestor-density.js +31 -0
- package/dist/styles.css +679 -52
- package/dist/tailwind.utilities.css +173 -0
- package/package.json +1 -1
|
@@ -115,6 +115,179 @@
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
/* ============================================================================
|
|
119
|
+
* Enter and exit animations (shadcn's vocabulary)
|
|
120
|
+
*
|
|
121
|
+
* The overlays ported from shadcn/ui (Dialog, Popover, Tooltip, HoverCard,
|
|
122
|
+
* Sheet, DropdownMenu, ...) animate with `animate-in` / `animate-out` plus
|
|
123
|
+
* `fade-*`, `zoom-*` and `slide-*` modifiers, the class names and variables of
|
|
124
|
+
* tailwindcss-animate and tw-animate-css. These are the subset apollo-wind
|
|
125
|
+
* uses, defined here rather than importing tw-animate-css, which would also
|
|
126
|
+
* redefine `delay-*` for every consumer and clash with the collapsible
|
|
127
|
+
* keyframes in tailwind.consumer.css.
|
|
128
|
+
*
|
|
129
|
+
* `animate-in` plays from the `--tw-enter-*` values to the element's own
|
|
130
|
+
* style; `animate-out` plays to the `--tw-exit-*` values. The duration follows
|
|
131
|
+
* `duration-*` (150ms otherwise). The modifiers only set the variables, which
|
|
132
|
+
* do not inherit, so a nested animated element starts from its own values.
|
|
133
|
+
* Reduced motion turns both animations off through an unlayered rule that
|
|
134
|
+
* matches every variant (`data-[state=open]:animate-in`), so a layered
|
|
135
|
+
* definition of the same classes (tw-animate-css) cannot win over it.
|
|
136
|
+
*
|
|
137
|
+
* fade-in-0 / fade-out-0 opacity from or to 0 (fade-in-80: 0.8)
|
|
138
|
+
* zoom-in-95 / zoom-out-95 scale from or to 95%
|
|
139
|
+
* slide-in-from-top-2 from 0.5rem above (spacing scale)
|
|
140
|
+
* slide-in-from-right from a full width away
|
|
141
|
+
* slide-out-to-left-1/2 to half its width to the left
|
|
142
|
+
* slide-in-from-top-[48%] arbitrary percentage or length
|
|
143
|
+
* ============================================================================ */
|
|
144
|
+
|
|
145
|
+
@property --tw-enter-opacity { syntax: '*'; inherits: false; initial-value: 1; }
|
|
146
|
+
@property --tw-enter-scale { syntax: '*'; inherits: false; initial-value: 1; }
|
|
147
|
+
@property --tw-enter-translate-x { syntax: '*'; inherits: false; initial-value: 0; }
|
|
148
|
+
@property --tw-enter-translate-y { syntax: '*'; inherits: false; initial-value: 0; }
|
|
149
|
+
@property --tw-exit-opacity { syntax: '*'; inherits: false; initial-value: 1; }
|
|
150
|
+
@property --tw-exit-scale { syntax: '*'; inherits: false; initial-value: 1; }
|
|
151
|
+
@property --tw-exit-translate-x { syntax: '*'; inherits: false; initial-value: 0; }
|
|
152
|
+
@property --tw-exit-translate-y { syntax: '*'; inherits: false; initial-value: 0; }
|
|
153
|
+
|
|
154
|
+
@keyframes apollo-enter {
|
|
155
|
+
from {
|
|
156
|
+
opacity: var(--tw-enter-opacity, 1);
|
|
157
|
+
transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0)
|
|
158
|
+
scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1));
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
@keyframes apollo-exit {
|
|
163
|
+
to {
|
|
164
|
+
opacity: var(--tw-exit-opacity, 1);
|
|
165
|
+
transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0)
|
|
166
|
+
scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@utility animate-in {
|
|
171
|
+
animation: apollo-enter var(--tw-duration, 150ms) var(--tw-ease, ease);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@utility animate-out {
|
|
175
|
+
animation: apollo-exit var(--tw-duration, 150ms) var(--tw-ease, ease);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* Unlayered, so it also wins over a layered animate-in from tw-animate-css in the same page. It
|
|
179
|
+
matches the bare class and every variant of it (data-[state=open]:animate-in). */
|
|
180
|
+
@media (prefers-reduced-motion: reduce) {
|
|
181
|
+
[class~='animate-in'],
|
|
182
|
+
[class~='animate-out'],
|
|
183
|
+
[class*=':animate-in'],
|
|
184
|
+
[class*=':animate-out'] {
|
|
185
|
+
animation: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@utility fade-in {
|
|
190
|
+
--tw-enter-opacity: 0;
|
|
191
|
+
}
|
|
192
|
+
@utility fade-in-* {
|
|
193
|
+
--tw-enter-opacity: calc(--value(number) / 100);
|
|
194
|
+
--tw-enter-opacity: --value([number], [percentage]);
|
|
195
|
+
}
|
|
196
|
+
@utility fade-out {
|
|
197
|
+
--tw-exit-opacity: 0;
|
|
198
|
+
}
|
|
199
|
+
@utility fade-out-* {
|
|
200
|
+
--tw-exit-opacity: calc(--value(number) / 100);
|
|
201
|
+
--tw-exit-opacity: --value([number], [percentage]);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@utility zoom-in {
|
|
205
|
+
--tw-enter-scale: 0;
|
|
206
|
+
}
|
|
207
|
+
@utility zoom-in-* {
|
|
208
|
+
--tw-enter-scale: calc(--value(number) / 100);
|
|
209
|
+
--tw-enter-scale: --value([number], [percentage]);
|
|
210
|
+
}
|
|
211
|
+
@utility zoom-out {
|
|
212
|
+
--tw-exit-scale: 0;
|
|
213
|
+
}
|
|
214
|
+
@utility zoom-out-* {
|
|
215
|
+
--tw-exit-scale: calc(--value(number) / 100);
|
|
216
|
+
--tw-exit-scale: --value([number], [percentage]);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@utility slide-in-from-top {
|
|
220
|
+
--tw-enter-translate-y: -100%;
|
|
221
|
+
}
|
|
222
|
+
@utility slide-in-from-top-* {
|
|
223
|
+
--tw-enter-translate-y: calc(--value(number) * var(--spacing) * -1);
|
|
224
|
+
--tw-enter-translate-y: calc(--value(ratio) * -100%);
|
|
225
|
+
--tw-enter-translate-y: calc(--value([percentage], [length]) * -1);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@utility slide-in-from-bottom {
|
|
229
|
+
--tw-enter-translate-y: 100%;
|
|
230
|
+
}
|
|
231
|
+
@utility slide-in-from-bottom-* {
|
|
232
|
+
--tw-enter-translate-y: calc(--value(number) * var(--spacing));
|
|
233
|
+
--tw-enter-translate-y: calc(--value(ratio) * 100%);
|
|
234
|
+
--tw-enter-translate-y: calc(--value([percentage], [length]));
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@utility slide-in-from-left {
|
|
238
|
+
--tw-enter-translate-x: -100%;
|
|
239
|
+
}
|
|
240
|
+
@utility slide-in-from-left-* {
|
|
241
|
+
--tw-enter-translate-x: calc(--value(number) * var(--spacing) * -1);
|
|
242
|
+
--tw-enter-translate-x: calc(--value(ratio) * -100%);
|
|
243
|
+
--tw-enter-translate-x: calc(--value([percentage], [length]) * -1);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility slide-in-from-right {
|
|
247
|
+
--tw-enter-translate-x: 100%;
|
|
248
|
+
}
|
|
249
|
+
@utility slide-in-from-right-* {
|
|
250
|
+
--tw-enter-translate-x: calc(--value(number) * var(--spacing));
|
|
251
|
+
--tw-enter-translate-x: calc(--value(ratio) * 100%);
|
|
252
|
+
--tw-enter-translate-x: calc(--value([percentage], [length]));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
@utility slide-out-to-top {
|
|
256
|
+
--tw-exit-translate-y: -100%;
|
|
257
|
+
}
|
|
258
|
+
@utility slide-out-to-top-* {
|
|
259
|
+
--tw-exit-translate-y: calc(--value(number) * var(--spacing) * -1);
|
|
260
|
+
--tw-exit-translate-y: calc(--value(ratio) * -100%);
|
|
261
|
+
--tw-exit-translate-y: calc(--value([percentage], [length]) * -1);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@utility slide-out-to-bottom {
|
|
265
|
+
--tw-exit-translate-y: 100%;
|
|
266
|
+
}
|
|
267
|
+
@utility slide-out-to-bottom-* {
|
|
268
|
+
--tw-exit-translate-y: calc(--value(number) * var(--spacing));
|
|
269
|
+
--tw-exit-translate-y: calc(--value(ratio) * 100%);
|
|
270
|
+
--tw-exit-translate-y: calc(--value([percentage], [length]));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
@utility slide-out-to-left {
|
|
274
|
+
--tw-exit-translate-x: -100%;
|
|
275
|
+
}
|
|
276
|
+
@utility slide-out-to-left-* {
|
|
277
|
+
--tw-exit-translate-x: calc(--value(number) * var(--spacing) * -1);
|
|
278
|
+
--tw-exit-translate-x: calc(--value(ratio) * -100%);
|
|
279
|
+
--tw-exit-translate-x: calc(--value([percentage], [length]) * -1);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility slide-out-to-right {
|
|
283
|
+
--tw-exit-translate-x: 100%;
|
|
284
|
+
}
|
|
285
|
+
@utility slide-out-to-right-* {
|
|
286
|
+
--tw-exit-translate-x: calc(--value(number) * var(--spacing));
|
|
287
|
+
--tw-exit-translate-x: calc(--value(ratio) * 100%);
|
|
288
|
+
--tw-exit-translate-x: calc(--value([percentage], [length]));
|
|
289
|
+
}
|
|
290
|
+
|
|
118
291
|
/* ============================================================================
|
|
119
292
|
* Chat utilities (ported from shadcn/ui's packages/shadcn/src/tailwind.css)
|
|
120
293
|
*
|