@timbal-ai/timbal-react 1.4.0 → 1.6.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 (57) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +43 -4
  3. package/dist/app.cjs +3770 -1506
  4. package/dist/app.d.cts +76 -31
  5. package/dist/app.d.ts +76 -31
  6. package/dist/app.esm.js +30 -8
  7. package/dist/{chart-artifact-C8-Py6lc.d.cts → chart-artifact-C2pZQsaP.d.ts} +247 -41
  8. package/dist/{chart-artifact-CMnDys2t.d.ts → chart-artifact-VAqgH-My.d.cts} +247 -41
  9. package/dist/{chat-ClmzWzCX.d.cts → chat-DDsp-Vzz.d.cts} +1 -1
  10. package/dist/{chat-ClmzWzCX.d.ts → chat-DDsp-Vzz.d.ts} +1 -1
  11. package/dist/chat.cjs +280 -123
  12. package/dist/chat.d.cts +3 -3
  13. package/dist/chat.d.ts +3 -3
  14. package/dist/chat.esm.js +4 -3
  15. package/dist/chunk-24B4I4XC.esm.js +232 -0
  16. package/dist/{chunk-VOWNCS3F.esm.js → chunk-6SQMTBPL.esm.js} +1669 -504
  17. package/dist/chunk-EDEKQYSU.esm.js +10 -0
  18. package/dist/{chunk-QIABF4KB.esm.js → chunk-ELEY66OH.esm.js} +2 -2
  19. package/dist/{chunk-THBA27QY.esm.js → chunk-HSL36SJ4.esm.js} +243 -124
  20. package/dist/chunk-JJOO4PR5.esm.js +391 -0
  21. package/dist/{chunk-QU7ET55D.esm.js → chunk-MBS7XHV2.esm.js} +335 -192
  22. package/dist/chunk-NO5AWNWT.esm.js +1066 -0
  23. package/dist/{chunk-VXMM2HX7.esm.js → chunk-R4RQT2XQ.esm.js} +3 -3
  24. package/dist/{chunk-OFWC4MIY.esm.js → chunk-TMP7RIA7.esm.js} +5 -3
  25. package/dist/{chunk-GQBYZRD7.esm.js → chunk-WQIQW7EM.esm.js} +40 -28
  26. package/dist/{chunk-OH23AX2V.esm.js → chunk-YYEI6XME.esm.js} +441 -957
  27. package/dist/{circular-progress-Ci8L-Hfa.d.cts → circular-progress-B9nnwzCu.d.cts} +20 -78
  28. package/dist/{circular-progress-Ci8L-Hfa.d.ts → circular-progress-B9nnwzCu.d.ts} +20 -78
  29. package/dist/index.cjs +5547 -3192
  30. package/dist/index.d.cts +10 -8
  31. package/dist/index.d.ts +10 -8
  32. package/dist/index.esm.js +76 -44
  33. package/dist/kanban-FFBeaZPS.d.cts +212 -0
  34. package/dist/kanban-FFBeaZPS.d.ts +212 -0
  35. package/dist/{layout-BTJyU8wd.d.ts → layout-CuKeSY74.d.ts} +1 -1
  36. package/dist/{layout-C2G-FcER.d.cts → layout-PzVwkJyL.d.cts} +1 -1
  37. package/dist/site.cjs +429 -0
  38. package/dist/site.d.cts +198 -0
  39. package/dist/site.d.ts +198 -0
  40. package/dist/site.esm.js +23 -0
  41. package/dist/studio.cjs +722 -363
  42. package/dist/studio.d.cts +2 -2
  43. package/dist/studio.d.ts +2 -2
  44. package/dist/studio.esm.js +8 -6
  45. package/dist/styles.css +56 -0
  46. package/dist/{timbal-v2-button-CNfdwGq4.d.cts → timbal-v2-button-DCAZNyUx.d.cts} +3 -3
  47. package/dist/{timbal-v2-button-CNfdwGq4.d.ts → timbal-v2-button-DCAZNyUx.d.ts} +3 -3
  48. package/dist/ui.cjs +1553 -708
  49. package/dist/ui.d.cts +11 -4
  50. package/dist/ui.d.ts +11 -4
  51. package/dist/ui.esm.js +45 -36
  52. package/dist/{welcome-DXqsGTwH.d.ts → welcome-B00oH5Io.d.cts} +5 -1
  53. package/dist/{welcome-BFGRoNfK.d.cts → welcome-DU-4NTjZ.d.ts} +5 -1
  54. package/package.json +9 -1
  55. package/dist/button-BoyX5pM_.d.cts +0 -18
  56. package/dist/button-BoyX5pM_.d.ts +0 -18
  57. package/dist/chunk-UCGVL7ZY.esm.js +0 -52
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-BFGRoNfK.cjs';
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-B00oH5Io.cjs';
2
2
  import { FC } from 'react';
3
- import './chat-ClmzWzCX.cjs';
3
+ import './chat-DDsp-Vzz.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-DXqsGTwH.js';
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-DU-4NTjZ.js';
2
2
  import { FC } from 'react';
3
- import './chat-ClmzWzCX.js';
3
+ import './chat-DDsp-Vzz.js';
4
4
  import 'react/jsx-runtime';
5
5
  import '@assistant-ui/react';
6
6
  import '@timbal-ai/timbal-sdk';
@@ -8,12 +8,14 @@ import {
8
8
  TimbalChatShell,
9
9
  TimbalMark,
10
10
  TimbalStudioShell
11
- } from "./chunk-THBA27QY.esm.js";
12
- import "./chunk-QIABF4KB.esm.js";
13
- import "./chunk-OFWC4MIY.esm.js";
14
- import "./chunk-GQBYZRD7.esm.js";
15
- import "./chunk-VXMM2HX7.esm.js";
16
- import "./chunk-QU7ET55D.esm.js";
11
+ } from "./chunk-HSL36SJ4.esm.js";
12
+ import "./chunk-ELEY66OH.esm.js";
13
+ import "./chunk-TMP7RIA7.esm.js";
14
+ import "./chunk-WQIQW7EM.esm.js";
15
+ import "./chunk-24B4I4XC.esm.js";
16
+ import "./chunk-R4RQT2XQ.esm.js";
17
+ import "./chunk-MBS7XHV2.esm.js";
18
+ import "./chunk-EDEKQYSU.esm.js";
17
19
  export {
18
20
  ModeToggle,
19
21
  STUDIO_NAV_MODE,
package/dist/styles.css CHANGED
@@ -102,6 +102,14 @@
102
102
  --destructive-fill-active-from: oklch(0.93 0.09 27 / 0.9);
103
103
  --destructive-fill-active-to: oklch(0.86 0.13 27 / 0.65);
104
104
 
105
+ /* Solid destructive button (primary-destructive) — filled red CTA. */
106
+ --destructive-solid-from: oklch(0.62 0.23 27);
107
+ --destructive-solid-to: oklch(0.555 0.245 27.325);
108
+ --destructive-solid-hover-from: oklch(0.585 0.24 27);
109
+ --destructive-solid-hover-to: oklch(0.52 0.25 27.325);
110
+ --destructive-solid-active-from: oklch(0.535 0.25 27.325);
111
+ --destructive-solid-active-to: oklch(0.49 0.25 27.325);
112
+
105
113
  /* Ghost button hover/active fills. */
106
114
  --ghost-fill-hover: oklch(0.965 0.002 260 / 0.7);
107
115
  --ghost-fill-active: oklch(0.91 0.004 260 / 0.7);
@@ -241,6 +249,14 @@
241
249
  --destructive-fill-active-from: oklch(0.6 0.2 27 / 0.20);
242
250
  --destructive-fill-active-to: oklch(0.6 0.2 27 / 0.12);
243
251
 
252
+ /* Solid destructive button (primary-destructive) — vivid red on dark. */
253
+ --destructive-solid-from: oklch(0.66 0.205 25);
254
+ --destructive-solid-to: oklch(0.6 0.205 25);
255
+ --destructive-solid-hover-from: oklch(0.7 0.205 25);
256
+ --destructive-solid-hover-to: oklch(0.64 0.205 25);
257
+ --destructive-solid-active-from: oklch(0.58 0.205 25);
258
+ --destructive-solid-active-to: oklch(0.52 0.205 25);
259
+
244
260
  --ghost-fill-hover: oklch(1 0 0 / 0.10);
245
261
  --ghost-fill-active: oklch(1 0 0 / 0.15);
246
262
 
@@ -347,6 +363,13 @@
347
363
  --color-destructive-fill-active-from: var(--destructive-fill-active-from);
348
364
  --color-destructive-fill-active-to: var(--destructive-fill-active-to);
349
365
 
366
+ --color-destructive-solid-from: var(--destructive-solid-from);
367
+ --color-destructive-solid-to: var(--destructive-solid-to);
368
+ --color-destructive-solid-hover-from: var(--destructive-solid-hover-from);
369
+ --color-destructive-solid-hover-to: var(--destructive-solid-hover-to);
370
+ --color-destructive-solid-active-from: var(--destructive-solid-active-from);
371
+ --color-destructive-solid-active-to: var(--destructive-solid-active-to);
372
+
350
373
  --color-ghost-fill-hover: var(--ghost-fill-hover);
351
374
  --color-ghost-fill-active: var(--ghost-fill-active);
352
375
 
@@ -561,6 +584,18 @@
561
584
  background: var(--pill-segmented-track);
562
585
  }
563
586
 
587
+ @utility shadow-skeuomorphic-solid {
588
+ box-shadow:
589
+ 0px 1px 2px 0px rgba(16, 24, 40, 0.1),
590
+ inset 0px 1px 0px 0px rgba(255, 255, 255, 0.35) !important;
591
+ }
592
+
593
+ @utility shadow-skeuomorphic-bordered {
594
+ box-shadow:
595
+ 0px 1px 2px 0px rgba(16, 24, 40, 0.05),
596
+ inset 0px 1px 0px 0px rgba(255, 255, 255, 0.4) !important;
597
+ }
598
+
564
599
  /* =============================================================== *
565
600
  * Polish — markdown, shiki, katex, scrollbars *
566
601
  * =============================================================== */
@@ -744,3 +779,24 @@
744
779
  .aui-composer-action-wrapper {
745
780
  background-color: var(--composer-bg);
746
781
  }
782
+
783
+ /* Custom checkbox pop animation */
784
+ @keyframes checkbox-pop {
785
+ 0% {
786
+ transform: scale(0.6);
787
+ opacity: 0;
788
+ }
789
+ 75% {
790
+ transform: scale(1.15);
791
+ opacity: 1;
792
+ }
793
+ 100% {
794
+ transform: scale(1);
795
+ opacity: 1;
796
+ }
797
+ }
798
+
799
+ @utility animate-checkbox-pop {
800
+ animation: checkbox-pop 200ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
801
+ }
802
+
@@ -13,7 +13,7 @@ import * as React from 'react';
13
13
  * `styles.css`. There are NO hardcoded palette literals — light/dark mode
14
14
  * flips by swapping the variable values, not by toggling Tailwind classes.
15
15
  */
16
- type TimbalV2Variant = "primary" | "secondary" | "ghost" | "informative" | "destructive" | "link";
16
+ type TimbalV2Variant = "primary" | "secondary" | "ghost" | "informative" | "destructive" | "destructive-solid" | "link";
17
17
  type TimbalV2Size = "xs" | "sm" | "md" | "lg";
18
18
 
19
19
  interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
@@ -22,7 +22,7 @@ interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
22
22
  isIconOnly?: boolean;
23
23
  isLoading?: boolean;
24
24
  fullWidth?: boolean;
25
- /** Kept for API compatibility all shapes render fully rounded (`rounded-full`). */
25
+ /** Corner style `pill` (fully rounded, default) or `rect` (rounded-lg). */
26
26
  shape?: "pill" | "rect";
27
27
  /**
28
28
  * When true, merges props onto the single child element (Radix Slot).
@@ -37,4 +37,4 @@ interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
37
37
  */
38
38
  declare const TimbalV2Button: React.ForwardRefExoticComponent<Omit<TimbalV2ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
39
 
40
- export { type TimbalV2ButtonProps as T, TimbalV2Button as a };
40
+ export { TimbalV2Button as T, type TimbalV2ButtonProps as a };
@@ -13,7 +13,7 @@ import * as React from 'react';
13
13
  * `styles.css`. There are NO hardcoded palette literals — light/dark mode
14
14
  * flips by swapping the variable values, not by toggling Tailwind classes.
15
15
  */
16
- type TimbalV2Variant = "primary" | "secondary" | "ghost" | "informative" | "destructive" | "link";
16
+ type TimbalV2Variant = "primary" | "secondary" | "ghost" | "informative" | "destructive" | "destructive-solid" | "link";
17
17
  type TimbalV2Size = "xs" | "sm" | "md" | "lg";
18
18
 
19
19
  interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
@@ -22,7 +22,7 @@ interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
22
22
  isIconOnly?: boolean;
23
23
  isLoading?: boolean;
24
24
  fullWidth?: boolean;
25
- /** Kept for API compatibility all shapes render fully rounded (`rounded-full`). */
25
+ /** Corner style `pill` (fully rounded, default) or `rect` (rounded-lg). */
26
26
  shape?: "pill" | "rect";
27
27
  /**
28
28
  * When true, merges props onto the single child element (Radix Slot).
@@ -37,4 +37,4 @@ interface TimbalV2ButtonProps extends React.ComponentProps<"button"> {
37
37
  */
38
38
  declare const TimbalV2Button: React.ForwardRefExoticComponent<Omit<TimbalV2ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
39
 
40
- export { type TimbalV2ButtonProps as T, TimbalV2Button as a };
40
+ export { TimbalV2Button as T, type TimbalV2ButtonProps as a };