@timbal-ai/timbal-react 0.8.2 → 1.1.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.
- package/CHANGELOG.md +49 -0
- package/README.md +100 -6
- package/dist/app.cjs +2538 -1262
- package/dist/app.d.cts +11 -6
- package/dist/app.d.ts +11 -6
- package/dist/app.esm.js +43 -6
- package/dist/{button-ClSgD6OF.d.cts → button-BoyX5pM_.d.cts} +1 -1
- package/dist/{button-ClSgD6OF.d.ts → button-BoyX5pM_.d.ts} +1 -1
- package/dist/{chart-artifact-Bl67kre7.d.ts → chart-artifact-BZp7nmaf.d.ts} +430 -14
- package/dist/{chart-artifact-BzcvblDe.d.cts → chart-artifact-CX-rh9nq.d.cts} +430 -14
- package/dist/{chat-Bed4FQSl.d.cts → chat-DCms8pJ_.d.cts} +31 -4
- package/dist/{chat-Bed4FQSl.d.ts → chat-DCms8pJ_.d.ts} +31 -4
- package/dist/chat.cjs +1111 -776
- package/dist/chat.d.cts +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.esm.js +3 -3
- package/dist/{chunk-QVAUCVQA.esm.js → chunk-4AKJ6FKE.esm.js} +277 -4
- package/dist/chunk-6HWMJNZT.esm.js +3439 -0
- package/dist/{chunk-VWHHKAHN.esm.js → chunk-FRZOEYBO.esm.js} +4 -4
- package/dist/chunk-JEAUF54A.esm.js +52 -0
- package/dist/{chunk-OISVICYF.esm.js → chunk-P3KDAYX6.esm.js} +1 -1
- package/dist/{chunk-6YVKCVEP.esm.js → chunk-TK2AGIME.esm.js} +1106 -298
- package/dist/{chunk-CFU3YDTV.esm.js → chunk-XCM3V6RK.esm.js} +5 -5
- package/dist/{chunk-5ZKLPWVN.esm.js → chunk-YXZ22OJN.esm.js} +849 -667
- package/dist/index.cjs +6070 -1605
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.esm.js +427 -11
- package/dist/pill-segmented-tabs-Ba5q0feL.d.cts +500 -0
- package/dist/pill-segmented-tabs-Ba5q0feL.d.ts +500 -0
- package/dist/studio.cjs +1333 -998
- package/dist/studio.d.cts +2 -2
- package/dist/studio.d.ts +2 -2
- package/dist/studio.esm.js +5 -5
- package/dist/styles.css +220 -0
- package/dist/ui.cjs +3592 -89
- package/dist/ui.d.cts +72 -96
- package/dist/ui.d.ts +72 -96
- package/dist/ui.esm.js +400 -6
- package/dist/{welcome-COOb05a5.d.cts → welcome-CRqOPKMp.d.cts} +1 -1
- package/dist/{welcome-DE08m9ca.d.ts → welcome-DlHUa3OL.d.ts} +1 -1
- package/package.json +9 -3
- package/dist/chunk-P4SN7M67.esm.js +0 -435
package/dist/studio.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as ModeToggle, a as ModeToggleProps, b as ModeToggleTheme, S as STUDIO_NAV_MODE, c as StudioModeSwitch, d as StudioModeSwitchProps, e as StudioNavMode, f as StudioSidebar, g as StudioSidebarProps, h as StudioWelcome, i as StudioWelcomeProps, T as TimbalChatShell, j as TimbalChatShellProps, k as TimbalMark, l as TimbalMarkProps, m as TimbalStudioShell, n as TimbalStudioShellProps } from './welcome-
|
|
1
|
+
export { M as ModeToggle, a as ModeToggleProps, b as ModeToggleTheme, S as STUDIO_NAV_MODE, c as StudioModeSwitch, d as StudioModeSwitchProps, e as StudioNavMode, f as StudioSidebar, g as StudioSidebarProps, h as StudioWelcome, i as StudioWelcomeProps, T as TimbalChatShell, j as TimbalChatShellProps, k as TimbalMark, l as TimbalMarkProps, m as TimbalStudioShell, n as TimbalStudioShellProps } from './welcome-CRqOPKMp.cjs';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './chat-
|
|
3
|
+
import './chat-DCms8pJ_.cjs';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@assistant-ui/react';
|
|
6
6
|
import '@timbal-ai/timbal-sdk';
|
package/dist/studio.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { M as ModeToggle, a as ModeToggleProps, b as ModeToggleTheme, S as STUDIO_NAV_MODE, c as StudioModeSwitch, d as StudioModeSwitchProps, e as StudioNavMode, f as StudioSidebar, g as StudioSidebarProps, h as StudioWelcome, i as StudioWelcomeProps, T as TimbalChatShell, j as TimbalChatShellProps, k as TimbalMark, l as TimbalMarkProps, m as TimbalStudioShell, n as TimbalStudioShellProps } from './welcome-
|
|
1
|
+
export { M as ModeToggle, a as ModeToggleProps, b as ModeToggleTheme, S as STUDIO_NAV_MODE, c as StudioModeSwitch, d as StudioModeSwitchProps, e as StudioNavMode, f as StudioSidebar, g as StudioSidebarProps, h as StudioWelcome, i as StudioWelcomeProps, T as TimbalChatShell, j as TimbalChatShellProps, k as TimbalMark, l as TimbalMarkProps, m as TimbalStudioShell, n as TimbalStudioShellProps } from './welcome-DlHUa3OL.js';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
-
import './chat-
|
|
3
|
+
import './chat-DCms8pJ_.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '@assistant-ui/react';
|
|
6
6
|
import '@timbal-ai/timbal-sdk';
|
package/dist/studio.esm.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
TimbalChatShell,
|
|
9
9
|
TimbalMark,
|
|
10
10
|
TimbalStudioShell
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FRZOEYBO.esm.js";
|
|
12
12
|
import "./chunk-QIABF4KB.esm.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XCM3V6RK.esm.js";
|
|
14
|
+
import "./chunk-YXZ22OJN.esm.js";
|
|
15
|
+
import "./chunk-P3KDAYX6.esm.js";
|
|
16
|
+
import "./chunk-4AKJ6FKE.esm.js";
|
|
17
17
|
export {
|
|
18
18
|
ModeToggle,
|
|
19
19
|
STUDIO_NAV_MODE,
|
package/dist/styles.css
CHANGED
|
@@ -106,6 +106,16 @@
|
|
|
106
106
|
--ghost-fill-hover: oklch(0.965 0.002 260 / 0.7);
|
|
107
107
|
--ghost-fill-active: oklch(0.91 0.004 260 / 0.7);
|
|
108
108
|
|
|
109
|
+
/* Chart series palette — shadcn-style categorical tokens. Series 1 leans on
|
|
110
|
+
the brand primary so single-series charts feel native; 2–6 are distinct.
|
|
111
|
+
Override any of these in your host app's :root to rebrand every chart. */
|
|
112
|
+
--chart-1: var(--primary);
|
|
113
|
+
--chart-2: oklch(0.62 0.13 184);
|
|
114
|
+
--chart-3: oklch(0.7 0.16 70);
|
|
115
|
+
--chart-4: oklch(0.62 0.2 300);
|
|
116
|
+
--chart-5: oklch(0.65 0.21 28);
|
|
117
|
+
--chart-6: oklch(0.6 0.13 233);
|
|
118
|
+
|
|
109
119
|
/* Code block surface (markdown). */
|
|
110
120
|
--code-block-bg: oklch(0.98 0 0);
|
|
111
121
|
--code-header-bg: oklch(0.965 0 0);
|
|
@@ -235,6 +245,15 @@
|
|
|
235
245
|
--ghost-fill-hover: oklch(1 0 0 / 0.10);
|
|
236
246
|
--ghost-fill-active: oklch(1 0 0 / 0.15);
|
|
237
247
|
|
|
248
|
+
/* Chart series palette (dark) — brighter, higher-chroma so lines/areas read
|
|
249
|
+
against the dark surface. Series 1 still follows the brand primary. */
|
|
250
|
+
--chart-1: var(--primary);
|
|
251
|
+
--chart-2: oklch(0.7 0.14 184);
|
|
252
|
+
--chart-3: oklch(0.77 0.16 70);
|
|
253
|
+
--chart-4: oklch(0.7 0.19 300);
|
|
254
|
+
--chart-5: oklch(0.7 0.2 28);
|
|
255
|
+
--chart-6: oklch(0.68 0.13 233);
|
|
256
|
+
|
|
238
257
|
--code-block-bg: oklch(0.19 0 0);
|
|
239
258
|
--code-header-bg: oklch(0.22 0 0 / 0.8);
|
|
240
259
|
|
|
@@ -306,6 +325,13 @@
|
|
|
306
325
|
--color-bubble-user: var(--bubble-user);
|
|
307
326
|
--color-bubble-user-foreground: var(--bubble-user-foreground);
|
|
308
327
|
|
|
328
|
+
--color-chart-1: var(--chart-1);
|
|
329
|
+
--color-chart-2: var(--chart-2);
|
|
330
|
+
--color-chart-3: var(--chart-3);
|
|
331
|
+
--color-chart-4: var(--chart-4);
|
|
332
|
+
--color-chart-5: var(--chart-5);
|
|
333
|
+
--color-chart-6: var(--chart-6);
|
|
334
|
+
|
|
309
335
|
--color-primary-fill-from: var(--primary-fill-from);
|
|
310
336
|
--color-primary-fill-to: var(--primary-fill-to);
|
|
311
337
|
--color-primary-fill-hover-from: var(--primary-fill-hover-from);
|
|
@@ -338,6 +364,200 @@
|
|
|
338
364
|
from `<html>` and every utility flips together with the base tokens. */
|
|
339
365
|
@custom-variant dark (&:is(.dark *));
|
|
340
366
|
|
|
367
|
+
/* =============================================================== *
|
|
368
|
+
* Motion engine — enter/exit, fade, zoom, slide, accordion *
|
|
369
|
+
* --------------------------------------------------------------- *
|
|
370
|
+
* Every overlay in the package (Dialog, Sheet, DropdownMenu, *
|
|
371
|
+
* Popover, Select, Tooltip, Toast, NavigationMenu) is authored *
|
|
372
|
+
* against these `animate-in` / `animate-out` + modifier classes. *
|
|
373
|
+
* They are inlined here so the shipped stylesheet animates with *
|
|
374
|
+
* zero extra dependencies and zero consumer config. Duration flows *
|
|
375
|
+
* from any `duration-*` utility on the element (var --tw-duration).*
|
|
376
|
+
* =============================================================== */
|
|
377
|
+
|
|
378
|
+
@keyframes tw-enter {
|
|
379
|
+
from {
|
|
380
|
+
opacity: var(--tw-enter-opacity, 1);
|
|
381
|
+
transform: translate3d(
|
|
382
|
+
var(--tw-enter-translate-x, 0),
|
|
383
|
+
var(--tw-enter-translate-y, 0),
|
|
384
|
+
0
|
|
385
|
+
)
|
|
386
|
+
scale3d(
|
|
387
|
+
var(--tw-enter-scale, 1),
|
|
388
|
+
var(--tw-enter-scale, 1),
|
|
389
|
+
var(--tw-enter-scale, 1)
|
|
390
|
+
)
|
|
391
|
+
rotate(var(--tw-enter-rotate, 0));
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@keyframes tw-exit {
|
|
396
|
+
to {
|
|
397
|
+
opacity: var(--tw-exit-opacity, 1);
|
|
398
|
+
transform: translate3d(
|
|
399
|
+
var(--tw-exit-translate-x, 0),
|
|
400
|
+
var(--tw-exit-translate-y, 0),
|
|
401
|
+
0
|
|
402
|
+
)
|
|
403
|
+
scale3d(
|
|
404
|
+
var(--tw-exit-scale, 1),
|
|
405
|
+
var(--tw-exit-scale, 1),
|
|
406
|
+
var(--tw-exit-scale, 1)
|
|
407
|
+
)
|
|
408
|
+
rotate(var(--tw-exit-rotate, 0));
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@utility animate-in {
|
|
413
|
+
animation: tw-enter var(--tw-duration, 150ms) ease-out;
|
|
414
|
+
}
|
|
415
|
+
@utility animate-out {
|
|
416
|
+
animation: tw-exit var(--tw-duration, 150ms) ease-in;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* Fade modifiers (number = target opacity ÷ 100). */
|
|
420
|
+
@utility fade-in {
|
|
421
|
+
--tw-enter-opacity: 0;
|
|
422
|
+
}
|
|
423
|
+
@utility fade-in-0 {
|
|
424
|
+
--tw-enter-opacity: 0;
|
|
425
|
+
}
|
|
426
|
+
@utility fade-out {
|
|
427
|
+
--tw-exit-opacity: 0;
|
|
428
|
+
}
|
|
429
|
+
@utility fade-out-0 {
|
|
430
|
+
--tw-exit-opacity: 0;
|
|
431
|
+
}
|
|
432
|
+
@utility fade-out-80 {
|
|
433
|
+
--tw-exit-opacity: 0.8;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* Zoom modifiers (number = scale × 100). */
|
|
437
|
+
@utility zoom-in-95 {
|
|
438
|
+
--tw-enter-scale: 0.95;
|
|
439
|
+
}
|
|
440
|
+
@utility zoom-out-95 {
|
|
441
|
+
--tw-exit-scale: 0.95;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Slide-in (starting offset). Unitless + `-full` = 100%; `-2` = 0.5rem; `-52` = 13rem. */
|
|
445
|
+
@utility slide-in-from-top {
|
|
446
|
+
--tw-enter-translate-y: -100%;
|
|
447
|
+
}
|
|
448
|
+
@utility slide-in-from-top-full {
|
|
449
|
+
--tw-enter-translate-y: -100%;
|
|
450
|
+
}
|
|
451
|
+
@utility slide-in-from-bottom {
|
|
452
|
+
--tw-enter-translate-y: 100%;
|
|
453
|
+
}
|
|
454
|
+
@utility slide-in-from-bottom-full {
|
|
455
|
+
--tw-enter-translate-y: 100%;
|
|
456
|
+
}
|
|
457
|
+
@utility slide-in-from-left {
|
|
458
|
+
--tw-enter-translate-x: -100%;
|
|
459
|
+
}
|
|
460
|
+
@utility slide-in-from-right {
|
|
461
|
+
--tw-enter-translate-x: 100%;
|
|
462
|
+
}
|
|
463
|
+
@utility slide-in-from-top-2 {
|
|
464
|
+
--tw-enter-translate-y: -0.5rem;
|
|
465
|
+
}
|
|
466
|
+
@utility slide-in-from-bottom-2 {
|
|
467
|
+
--tw-enter-translate-y: 0.5rem;
|
|
468
|
+
}
|
|
469
|
+
@utility slide-in-from-left-2 {
|
|
470
|
+
--tw-enter-translate-x: -0.5rem;
|
|
471
|
+
}
|
|
472
|
+
@utility slide-in-from-right-2 {
|
|
473
|
+
--tw-enter-translate-x: 0.5rem;
|
|
474
|
+
}
|
|
475
|
+
@utility slide-in-from-bottom-1 {
|
|
476
|
+
--tw-enter-translate-y: 0.25rem;
|
|
477
|
+
}
|
|
478
|
+
@utility slide-in-from-left-52 {
|
|
479
|
+
--tw-enter-translate-x: -13rem;
|
|
480
|
+
}
|
|
481
|
+
@utility slide-in-from-right-52 {
|
|
482
|
+
--tw-enter-translate-x: 13rem;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
/* Slide-out (ending offset). */
|
|
486
|
+
@utility slide-out-to-top {
|
|
487
|
+
--tw-exit-translate-y: -100%;
|
|
488
|
+
}
|
|
489
|
+
@utility slide-out-to-bottom {
|
|
490
|
+
--tw-exit-translate-y: 100%;
|
|
491
|
+
}
|
|
492
|
+
@utility slide-out-to-left {
|
|
493
|
+
--tw-exit-translate-x: -100%;
|
|
494
|
+
}
|
|
495
|
+
@utility slide-out-to-right {
|
|
496
|
+
--tw-exit-translate-x: 100%;
|
|
497
|
+
}
|
|
498
|
+
@utility slide-out-to-right-full {
|
|
499
|
+
--tw-exit-translate-x: 100%;
|
|
500
|
+
}
|
|
501
|
+
@utility slide-out-to-left-52 {
|
|
502
|
+
--tw-exit-translate-x: -13rem;
|
|
503
|
+
}
|
|
504
|
+
@utility slide-out-to-right-52 {
|
|
505
|
+
--tw-exit-translate-x: 13rem;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/* Disclosure height transitions — read Radix's measured content height. */
|
|
509
|
+
@keyframes accordion-down {
|
|
510
|
+
from {
|
|
511
|
+
height: 0;
|
|
512
|
+
}
|
|
513
|
+
to {
|
|
514
|
+
height: var(--radix-accordion-content-height);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
@keyframes accordion-up {
|
|
518
|
+
from {
|
|
519
|
+
height: var(--radix-accordion-content-height);
|
|
520
|
+
}
|
|
521
|
+
to {
|
|
522
|
+
height: 0;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
@keyframes collapsible-down {
|
|
526
|
+
from {
|
|
527
|
+
height: 0;
|
|
528
|
+
}
|
|
529
|
+
to {
|
|
530
|
+
height: var(--radix-collapsible-content-height);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
@keyframes collapsible-up {
|
|
534
|
+
from {
|
|
535
|
+
height: var(--radix-collapsible-content-height);
|
|
536
|
+
}
|
|
537
|
+
to {
|
|
538
|
+
height: 0;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
@keyframes caret-blink {
|
|
542
|
+
0%,
|
|
543
|
+
70%,
|
|
544
|
+
100% {
|
|
545
|
+
opacity: 1;
|
|
546
|
+
}
|
|
547
|
+
20%,
|
|
548
|
+
50% {
|
|
549
|
+
opacity: 0;
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
@theme {
|
|
554
|
+
--animate-accordion-down: accordion-down 200ms ease-out;
|
|
555
|
+
--animate-accordion-up: accordion-up 200ms ease-out;
|
|
556
|
+
--animate-collapsible-down: collapsible-down 200ms ease-out;
|
|
557
|
+
--animate-collapsible-up: collapsible-up 200ms ease-out;
|
|
558
|
+
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
|
|
559
|
+
}
|
|
560
|
+
|
|
341
561
|
/** Pill segmented track — supports solid or gradient via `--pill-segmented-track`. */
|
|
342
562
|
@utility bg-pill-segmented-track {
|
|
343
563
|
background: var(--pill-segmented-track);
|