@epicbagel/saas-kit 1.0.0 → 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/README.md +38 -1
- package/THIRD_PARTY_NOTICES.md +13 -7
- package/dist/chunk-2AU7ZRGX.cjs +96 -0
- package/dist/chunk-2BTDBZYN.cjs +154 -0
- package/dist/chunk-2HV2KKOE.cjs +38 -0
- package/dist/chunk-2KFZQJH5.cjs +29 -0
- package/dist/chunk-32Q4XOTU.cjs +204 -0
- package/dist/chunk-42RTTHND.js +29 -0
- package/dist/chunk-6FC65AZQ.js +38 -0
- package/dist/chunk-6V4XMQ6D.js +118 -0
- package/dist/chunk-B765DSRG.cjs +66 -0
- package/dist/chunk-ELPV44S6.cjs +44 -0
- package/dist/chunk-EOUO3ORO.cjs +244 -0
- package/dist/chunk-EZCKWTH7.js +204 -0
- package/dist/chunk-F366BHWH.js +116 -0
- package/dist/chunk-GFG2R5BZ.js +132 -0
- package/dist/chunk-HAC32ALJ.js +244 -0
- package/dist/chunk-I5UQSBBZ.cjs +118 -0
- package/dist/chunk-INNGGLMZ.js +44 -0
- package/dist/chunk-IW4ZIXXG.js +66 -0
- package/dist/chunk-JZOBIPFC.js +96 -0
- package/dist/chunk-KENBU3NV.cjs +27 -0
- package/dist/chunk-MHYAVXOE.js +159 -0
- package/dist/chunk-RIWLAMME.cjs +159 -0
- package/dist/chunk-SUB4BAYE.cjs +73 -0
- package/dist/chunk-THWIJG5C.js +73 -0
- package/dist/chunk-V4YWTRLD.cjs +116 -0
- package/dist/chunk-VY5U4VGV.js +27 -0
- package/dist/chunk-XABXUP6L.cjs +132 -0
- package/dist/chunk-Z45YKVAM.js +154 -0
- package/dist/primitives/action-dock.cjs +8 -0
- package/dist/primitives/action-dock.d.cts +10 -0
- package/dist/primitives/action-dock.d.ts +10 -0
- package/dist/primitives/action-dock.js +8 -0
- package/dist/primitives/alert.d.cts +1 -1
- package/dist/primitives/alert.d.ts +1 -1
- package/dist/primitives/attachment.cjs +25 -203
- package/dist/primitives/attachment.d.cts +1 -1
- package/dist/primitives/attachment.d.ts +1 -1
- package/dist/primitives/attachment.js +12 -190
- package/dist/primitives/badge.d.cts +1 -1
- package/dist/primitives/badge.d.ts +1 -1
- package/dist/primitives/board-view.cjs +3 -3
- package/dist/primitives/board-view.js +2 -2
- package/dist/primitives/bubble.cjs +14 -0
- package/dist/primitives/bubble.d.cts +21 -0
- package/dist/primitives/bubble.d.ts +21 -0
- package/dist/primitives/bubble.js +14 -0
- package/dist/primitives/button.d.cts +2 -2
- package/dist/primitives/button.d.ts +2 -2
- package/dist/primitives/chat.cjs +864 -0
- package/dist/primitives/chat.d.cts +326 -0
- package/dist/primitives/chat.d.ts +326 -0
- package/dist/primitives/chat.js +864 -0
- package/dist/primitives/connection.cjs +6 -6
- package/dist/primitives/connection.js +7 -7
- package/dist/primitives/file-dropzone.cjs +7 -113
- package/dist/primitives/file-dropzone.js +6 -112
- package/dist/primitives/input-group.cjs +21 -0
- package/dist/primitives/input-group.d.cts +20 -0
- package/dist/primitives/input-group.d.ts +20 -0
- package/dist/primitives/input-group.js +21 -0
- package/dist/primitives/item.cjs +197 -0
- package/dist/primitives/item.d.cts +28 -0
- package/dist/primitives/item.d.ts +28 -0
- package/dist/primitives/item.js +197 -0
- package/dist/primitives/lazy-markdown.cjs +10 -0
- package/dist/primitives/lazy-markdown.d.cts +20 -0
- package/dist/primitives/lazy-markdown.d.ts +20 -0
- package/dist/primitives/lazy-markdown.js +10 -0
- package/dist/primitives/markdown.cjs +17 -0
- package/dist/primitives/markdown.d.cts +32 -0
- package/dist/primitives/markdown.d.ts +32 -0
- package/dist/primitives/markdown.js +17 -0
- package/dist/primitives/marker.cjs +14 -0
- package/dist/primitives/marker.d.cts +15 -0
- package/dist/primitives/marker.d.ts +15 -0
- package/dist/primitives/marker.js +14 -0
- package/dist/primitives/message-scroller.cjs +26 -0
- package/dist/primitives/message-scroller.d.cts +16 -0
- package/dist/primitives/message-scroller.d.ts +16 -0
- package/dist/primitives/message-scroller.js +26 -0
- package/dist/primitives/message.cjs +7 -84
- package/dist/primitives/message.js +8 -85
- package/dist/primitives/resource-list.cjs +3 -3
- package/dist/primitives/resource-list.js +2 -2
- package/dist/primitives/rich-text.cjs +3 -38
- package/dist/primitives/rich-text.js +3 -38
- package/dist/primitives/section-header.d.cts +1 -1
- package/dist/primitives/section-header.d.ts +1 -1
- package/dist/primitives/spinner.cjs +23 -0
- package/dist/primitives/spinner.d.cts +6 -0
- package/dist/primitives/spinner.d.ts +6 -0
- package/dist/primitives/spinner.js +23 -0
- package/dist/primitives/suggestion.cjs +11 -0
- package/dist/primitives/suggestion.d.cts +19 -0
- package/dist/primitives/suggestion.d.ts +19 -0
- package/dist/primitives/suggestion.js +11 -0
- package/dist/primitives/switch-field.cjs +2 -2
- package/dist/primitives/switch-field.js +3 -3
- package/dist/primitives/textarea.cjs +4 -33
- package/dist/primitives/textarea.js +3 -32
- package/dist/primitives/toggle-group.d.cts +2 -2
- package/dist/primitives/toggle-group.d.ts +2 -2
- package/dist/primitives/toggle.d.cts +2 -2
- package/dist/primitives/toggle.d.ts +2 -2
- package/dist/primitives/trace.cjs +23 -0
- package/dist/primitives/trace.d.cts +22 -0
- package/dist/primitives/trace.d.ts +22 -0
- package/dist/primitives/trace.js +23 -0
- package/dist/primitives/voice-dictation-button.cjs +5 -239
- package/dist/primitives/voice-dictation-button.js +4 -238
- package/package.json +125 -2
- package/src/styles/components/bubble.css +81 -0
- package/src/styles/components/marker.css +27 -0
- package/src/styles/components/message-scroller.css +11 -0
- package/src/styles/components.css +3 -0
- package/src/styles/utilities.css +3 -2
- package/dist/{chunk-UGF2K6NR.js → chunk-HRLP4BHJ.js} +6 -6
- package/dist/{chunk-RWWOFWLP.cjs → chunk-IH3COANJ.cjs} +3 -3
|
@@ -1,90 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "message-group",
|
|
13
|
-
className: cn("cn-message-group flex min-w-0 flex-col", className),
|
|
14
|
-
...props
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
}
|
|
18
|
-
function Message({
|
|
19
|
-
className,
|
|
20
|
-
align = "start",
|
|
21
|
-
...props
|
|
22
|
-
}) {
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
"data-slot": "message",
|
|
27
|
-
"data-align": align,
|
|
28
|
-
className: cn(
|
|
29
|
-
"cn-message group/message relative flex w-full min-w-0 data-[align=end]:flex-row-reverse",
|
|
30
|
-
className
|
|
31
|
-
),
|
|
32
|
-
...props
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
function MessageAvatar({ className, ...props }) {
|
|
37
|
-
return /* @__PURE__ */ jsx(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
"data-slot": "message-avatar",
|
|
41
|
-
className: cn(
|
|
42
|
-
"cn-message-avatar flex w-fit shrink-0 items-center justify-center self-end overflow-hidden rounded-full bg-muted",
|
|
43
|
-
className
|
|
44
|
-
),
|
|
45
|
-
...props
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
function MessageContent({ className, ...props }) {
|
|
50
|
-
return /* @__PURE__ */ jsx(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "message-content",
|
|
54
|
-
className: cn(
|
|
55
|
-
"cn-message-content flex w-full min-w-0 flex-col wrap-break-word",
|
|
56
|
-
className
|
|
57
|
-
),
|
|
58
|
-
...props
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
function MessageHeader({ className, ...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "message-header",
|
|
67
|
-
className: cn(
|
|
68
|
-
"cn-message-header flex max-w-full min-w-0 items-center",
|
|
69
|
-
className
|
|
70
|
-
),
|
|
71
|
-
...props
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
function MessageFooter({ className, ...props }) {
|
|
76
|
-
return /* @__PURE__ */ jsx(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
"data-slot": "message-footer",
|
|
80
|
-
className: cn(
|
|
81
|
-
"cn-message-footer flex max-w-full min-w-0 items-center group-data-[align=end]/message:justify-end",
|
|
82
|
-
className
|
|
83
|
-
),
|
|
84
|
-
...props
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
3
|
+
Message,
|
|
4
|
+
MessageAvatar,
|
|
5
|
+
MessageContent,
|
|
6
|
+
MessageFooter,
|
|
7
|
+
MessageGroup,
|
|
8
|
+
MessageHeader
|
|
9
|
+
} from "../chunk-JZOBIPFC.js";
|
|
10
|
+
import "../chunk-G6SRSWXB.js";
|
|
88
11
|
export {
|
|
89
12
|
Message,
|
|
90
13
|
MessageAvatar,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIH3COANJcjs = require('../chunk-IH3COANJ.cjs');
|
|
6
6
|
require('../chunk-PNWNU6JW.cjs');
|
|
7
7
|
require('../chunk-FNDBM67K.cjs');
|
|
8
|
-
require('../chunk-U2NES7VR.cjs');
|
|
9
8
|
require('../chunk-SGW4FWBX.cjs');
|
|
10
9
|
require('../chunk-PPX2VPGI.cjs');
|
|
11
10
|
require('../chunk-WNXVGUBF.cjs');
|
|
12
11
|
require('../chunk-IQZLUT2Y.cjs');
|
|
13
12
|
require('../chunk-LELBCBDT.cjs');
|
|
14
13
|
require('../chunk-R5L4CM6V.cjs');
|
|
14
|
+
require('../chunk-U2NES7VR.cjs');
|
|
15
15
|
require('../chunk-JH4GAGOQ.cjs');
|
|
16
16
|
require('../chunk-YYFVG5A6.cjs');
|
|
17
17
|
require('../chunk-XLIAY56V.cjs');
|
|
@@ -25,4 +25,4 @@ require('../chunk-R35FT53G.cjs');
|
|
|
25
25
|
require('../chunk-KWLSBTB2.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.ResourceList =
|
|
28
|
+
exports.ResourceList = _chunkIH3COANJcjs.ResourceList;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
ResourceList
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-HRLP4BHJ.js";
|
|
6
6
|
import "../chunk-LI5EOSQG.js";
|
|
7
7
|
import "../chunk-J3GQXM37.js";
|
|
8
|
-
import "../chunk-ZRLUUZHK.js";
|
|
9
8
|
import "../chunk-MLHNYRFX.js";
|
|
10
9
|
import "../chunk-G76JANB4.js";
|
|
11
10
|
import "../chunk-YG7FBJRM.js";
|
|
12
11
|
import "../chunk-E2TQMDO7.js";
|
|
13
12
|
import "../chunk-H2O6NMLZ.js";
|
|
14
13
|
import "../chunk-RRRD5EUI.js";
|
|
14
|
+
import "../chunk-ZRLUUZHK.js";
|
|
15
15
|
import "../chunk-OICAYRVH.js";
|
|
16
16
|
import "../chunk-62UTAG2C.js";
|
|
17
17
|
import "../chunk-LELFPLTE.js";
|
|
@@ -1,43 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkELPV44S6cjs = require('../chunk-ELPV44S6.cjs');
|
|
5
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
5
6
|
|
|
6
|
-
// src/primitives/rich-text.tsx
|
|
7
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
-
function RichText({ size = "sm", tone = "default", className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "rich-text",
|
|
13
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
14
|
-
size === "sm" ? "text-sm" : "text-base",
|
|
15
|
-
tone === "soft" && "text-foreground/90",
|
|
16
|
-
tone === "muted" && "text-muted-foreground",
|
|
17
|
-
"leading-relaxed",
|
|
18
|
-
"[&_p]:mb-2 [&_p:last-child]:mb-0",
|
|
19
|
-
"[&_a]:font-medium [&_a]:underline [&_a]:underline-offset-4",
|
|
20
|
-
"[&_strong]:font-semibold",
|
|
21
|
-
"[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-xl [&_h1]:font-semibold [&_h1]:tracking-tight [&_h1:first-child]:mt-0",
|
|
22
|
-
"[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2:first-child]:mt-0",
|
|
23
|
-
"[&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:font-semibold [&_h3:first-child]:mt-0",
|
|
24
|
-
"[&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5",
|
|
25
|
-
"[&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5",
|
|
26
|
-
"[&_li]:my-1 [&_li>p]:mb-0",
|
|
27
|
-
"[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground",
|
|
28
|
-
"[&_hr]:my-4 [&_hr]:border-border",
|
|
29
|
-
"[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.875em]",
|
|
30
|
-
"[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:border [&_pre]:border-border [&_pre]:bg-muted/40 [&_pre]:p-3",
|
|
31
|
-
"[&_pre_code]:bg-transparent [&_pre_code]:p-0",
|
|
32
|
-
"[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_table]:text-left",
|
|
33
|
-
"[&_th]:border-b [&_th]:border-border [&_th]:px-2 [&_th]:py-1.5 [&_th]:font-semibold",
|
|
34
|
-
"[&_td]:border-b [&_td]:border-border/70 [&_td]:px-2 [&_td]:py-1.5",
|
|
35
|
-
className
|
|
36
|
-
),
|
|
37
|
-
...props
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
7
|
|
|
42
|
-
|
|
43
|
-
exports.RichText = RichText;
|
|
8
|
+
exports.RichText = _chunkELPV44S6cjs.RichText;
|
|
@@ -1,43 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
|
|
6
|
-
// src/primitives/rich-text.tsx
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
function RichText({ size = "sm", tone = "default", className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "rich-text",
|
|
13
|
-
className: cn(
|
|
14
|
-
size === "sm" ? "text-sm" : "text-base",
|
|
15
|
-
tone === "soft" && "text-foreground/90",
|
|
16
|
-
tone === "muted" && "text-muted-foreground",
|
|
17
|
-
"leading-relaxed",
|
|
18
|
-
"[&_p]:mb-2 [&_p:last-child]:mb-0",
|
|
19
|
-
"[&_a]:font-medium [&_a]:underline [&_a]:underline-offset-4",
|
|
20
|
-
"[&_strong]:font-semibold",
|
|
21
|
-
"[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-xl [&_h1]:font-semibold [&_h1]:tracking-tight [&_h1:first-child]:mt-0",
|
|
22
|
-
"[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-base [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2:first-child]:mt-0",
|
|
23
|
-
"[&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:font-semibold [&_h3:first-child]:mt-0",
|
|
24
|
-
"[&_ul]:my-2 [&_ul]:list-disc [&_ul]:pl-5",
|
|
25
|
-
"[&_ol]:my-2 [&_ol]:list-decimal [&_ol]:pl-5",
|
|
26
|
-
"[&_li]:my-1 [&_li>p]:mb-0",
|
|
27
|
-
"[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground",
|
|
28
|
-
"[&_hr]:my-4 [&_hr]:border-border",
|
|
29
|
-
"[&_code]:rounded [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.875em]",
|
|
30
|
-
"[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:border [&_pre]:border-border [&_pre]:bg-muted/40 [&_pre]:p-3",
|
|
31
|
-
"[&_pre_code]:bg-transparent [&_pre_code]:p-0",
|
|
32
|
-
"[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_table]:text-left",
|
|
33
|
-
"[&_th]:border-b [&_th]:border-border [&_th]:px-2 [&_th]:py-1.5 [&_th]:font-semibold",
|
|
34
|
-
"[&_td]:border-b [&_td]:border-border/70 [&_td]:px-2 [&_td]:py-1.5",
|
|
35
|
-
className
|
|
36
|
-
),
|
|
37
|
-
...props
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
}
|
|
3
|
+
RichText
|
|
4
|
+
} from "../chunk-INNGGLMZ.js";
|
|
5
|
+
import "../chunk-G6SRSWXB.js";
|
|
41
6
|
export {
|
|
42
7
|
RichText
|
|
43
8
|
};
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const sectionHeaderVariants: (props?: ({
|
|
7
7
|
variant?: "muted" | "plain" | null | undefined;
|
|
8
|
-
spacing?: "
|
|
8
|
+
spacing?: "none" | "tight" | "loose" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface SectionHeaderProps extends Omit<HTMLAttributes<HTMLHeadingElement>, "children">, VariantProps<typeof sectionHeaderVariants> {
|
|
11
11
|
/** Pre-rendered icon node. Sized to match the header text. */
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const sectionHeaderVariants: (props?: ({
|
|
7
7
|
variant?: "muted" | "plain" | null | undefined;
|
|
8
|
-
spacing?: "
|
|
8
|
+
spacing?: "none" | "tight" | "loose" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
interface SectionHeaderProps extends Omit<HTMLAttributes<HTMLHeadingElement>, "children">, VariantProps<typeof sectionHeaderVariants> {
|
|
11
11
|
/** Pre-rendered icon node. Sized to match the header text. */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
|
|
5
|
+
|
|
6
|
+
// src/primitives/spinner.tsx
|
|
7
|
+
var _lucidereact = require('lucide-react');
|
|
8
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
9
|
+
function Spinner({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11
|
+
_lucidereact.Loader2,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "spinner",
|
|
14
|
+
role: "status",
|
|
15
|
+
"aria-label": "Loading",
|
|
16
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0, "size-4 animate-spin", className),
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.Spinner = Spinner;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "../chunk-G6SRSWXB.js";
|
|
5
|
+
|
|
6
|
+
// src/primitives/spinner.tsx
|
|
7
|
+
import { Loader2 } from "lucide-react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
function Spinner({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
Loader2,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "spinner",
|
|
14
|
+
role: "status",
|
|
15
|
+
"aria-label": "Loading",
|
|
16
|
+
className: cn("size-4 animate-spin", className),
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
Spinner
|
|
23
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkSUB4BAYEcjs = require('../chunk-SUB4BAYE.cjs');
|
|
6
|
+
require('../chunk-L4DH72UF.cjs');
|
|
7
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.Suggestion = _chunkSUB4BAYEcjs.Suggestion; exports.Suggestions = _chunkSUB4BAYEcjs.Suggestions;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { Button } from './button.cjs';
|
|
6
|
+
|
|
7
|
+
declare const suggestionsVariants: (props?: ({
|
|
8
|
+
layout?: "grid" | "row" | "wrap" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
declare function Suggestions({ className, layout, ...props }: React.ComponentProps<"div"> & VariantProps<typeof suggestionsVariants>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
type SuggestionProps = Omit<React.ComponentProps<typeof Button>, "onClick"> & {
|
|
12
|
+
/** The prompt. It is the label too, unless children are given. */
|
|
13
|
+
suggestion: string;
|
|
14
|
+
/** Called with `suggestion` when the button is pressed. */
|
|
15
|
+
onClick?: (suggestion: string) => void;
|
|
16
|
+
};
|
|
17
|
+
declare function Suggestion({ suggestion, onClick, className, children, type, variant, size, ...props }: SuggestionProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Suggestion, type SuggestionProps, Suggestions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
|
|
7
|
+
declare const suggestionsVariants: (props?: ({
|
|
8
|
+
layout?: "grid" | "row" | "wrap" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
declare function Suggestions({ className, layout, ...props }: React.ComponentProps<"div"> & VariantProps<typeof suggestionsVariants>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
type SuggestionProps = Omit<React.ComponentProps<typeof Button>, "onClick"> & {
|
|
12
|
+
/** The prompt. It is the label too, unless children are given. */
|
|
13
|
+
suggestion: string;
|
|
14
|
+
/** Called with `suggestion` when the button is pressed. */
|
|
15
|
+
onClick?: (suggestion: string) => void;
|
|
16
|
+
};
|
|
17
|
+
declare function Suggestion({ suggestion, onClick, className, children, type, variant, size, ...props }: SuggestionProps): react_jsx_runtime.JSX.Element;
|
|
18
|
+
|
|
19
|
+
export { Suggestion, type SuggestionProps, Suggestions };
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var _chunk2XDFTB2Wcjs = require('../chunk-2XDFTB2W.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkR3DQS6U4cjs = require('../chunk-R3DQS6U4.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk373W6VADcjs = require('../chunk-373W6VAD.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkIQZLUT2Ycjs = require('../chunk-IQZLUT2Y.cjs');
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Switch
|
|
4
4
|
} from "../chunk-XAPPU3MD.js";
|
|
5
|
-
import {
|
|
6
|
-
Text
|
|
7
|
-
} from "../chunk-EIY5LLSP.js";
|
|
8
5
|
import {
|
|
9
6
|
Card
|
|
10
7
|
} from "../chunk-35YMAIEL.js";
|
|
8
|
+
import {
|
|
9
|
+
Text
|
|
10
|
+
} from "../chunk-EIY5LLSP.js";
|
|
11
11
|
import {
|
|
12
12
|
Label
|
|
13
13
|
} from "../chunk-E2TQMDO7.js";
|
|
@@ -1,37 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk2HV2KKOEcjs = require('../chunk-2HV2KKOE.cjs');
|
|
5
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
5
6
|
|
|
6
|
-
// src/primitives/textarea.tsx
|
|
7
|
-
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
8
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
9
|
-
var Textarea = React.forwardRef(
|
|
10
|
-
({ className, textSize = "sm", resize = "vertical", grow = false, font = "sans", height = "auto", ...props }, ref) => {
|
|
11
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12
|
-
"textarea",
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "textarea",
|
|
15
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
16
|
-
"flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
17
|
-
// Entered text keeps the iOS-safe floor. The shared stylesheet sizes
|
|
18
|
-
// placeholder copy independently at the compact 14px base scale.
|
|
19
|
-
textSize === "sm" ? "text-[16px] md:text-sm" : "text-[16px] md:text-xs",
|
|
20
|
-
resize === "none" && "resize-none",
|
|
21
|
-
grow && "flex-1",
|
|
22
|
-
font === "mono" && "font-mono",
|
|
23
|
-
height === "panel" && "h-32",
|
|
24
|
-
height === "editor" && "h-72",
|
|
25
|
-
height === "editor-lg" && "h-80",
|
|
26
|
-
className
|
|
27
|
-
),
|
|
28
|
-
ref,
|
|
29
|
-
...props
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
Textarea.displayName = "Textarea";
|
|
35
7
|
|
|
36
|
-
|
|
37
|
-
exports.Textarea = Textarea;
|
|
8
|
+
exports.Textarea = _chunk2HV2KKOEcjs.Textarea;
|
|
@@ -1,37 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
|
|
6
|
-
// src/primitives/textarea.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var Textarea = React.forwardRef(
|
|
10
|
-
({ className, textSize = "sm", resize = "vertical", grow = false, font = "sans", height = "auto", ...props }, ref) => {
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
"textarea",
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "textarea",
|
|
15
|
-
className: cn(
|
|
16
|
-
"flex min-h-[80px] w-full rounded-md border bg-background px-3 py-2 ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
17
|
-
// Entered text keeps the iOS-safe floor. The shared stylesheet sizes
|
|
18
|
-
// placeholder copy independently at the compact 14px base scale.
|
|
19
|
-
textSize === "sm" ? "text-[16px] md:text-sm" : "text-[16px] md:text-xs",
|
|
20
|
-
resize === "none" && "resize-none",
|
|
21
|
-
grow && "flex-1",
|
|
22
|
-
font === "mono" && "font-mono",
|
|
23
|
-
height === "panel" && "h-32",
|
|
24
|
-
height === "editor" && "h-72",
|
|
25
|
-
height === "editor-lg" && "h-80",
|
|
26
|
-
className
|
|
27
|
-
),
|
|
28
|
-
ref,
|
|
29
|
-
...props
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
Textarea.displayName = "Textarea";
|
|
3
|
+
Textarea
|
|
4
|
+
} from "../chunk-6FC65AZQ.js";
|
|
5
|
+
import "../chunk-G6SRSWXB.js";
|
|
35
6
|
export {
|
|
36
7
|
Textarea
|
|
37
8
|
};
|
|
@@ -5,11 +5,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
14
14
|
grow?: boolean;
|
|
15
15
|
textSize?: "inherit" | "xs";
|
|
@@ -5,11 +5,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
5
5
|
|
|
6
6
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
14
14
|
grow?: boolean;
|
|
15
15
|
textSize?: "inherit" | "xs";
|
|
@@ -5,11 +5,11 @@ import * as React from 'react';
|
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
|
|
15
15
|
export { Toggle, toggleVariants };
|
|
@@ -5,11 +5,11 @@ import * as React from 'react';
|
|
|
5
5
|
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "outline" | null | undefined;
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
11
|
variant?: "default" | "outline" | null | undefined;
|
|
12
|
-
size?: "
|
|
12
|
+
size?: "sm" | "lg" | "default" | "icon" | "icon-lg" | "avatar" | "chip" | null | undefined;
|
|
13
13
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
14
14
|
|
|
15
15
|
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunk2BTDBZYNcjs = require('../chunk-2BTDBZYN.cjs');
|
|
12
|
+
require('../chunk-W5HPHEE7.cjs');
|
|
13
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.Trace = _chunk2BTDBZYNcjs.Trace; exports.TraceCollapsible = _chunk2BTDBZYNcjs.TraceCollapsible; exports.TraceCollapsibleContent = _chunk2BTDBZYNcjs.TraceCollapsibleContent; exports.TraceCollapsibleTrigger = _chunk2BTDBZYNcjs.TraceCollapsibleTrigger; exports.TraceDescription = _chunk2BTDBZYNcjs.TraceDescription; exports.TraceIcon = _chunk2BTDBZYNcjs.TraceIcon; exports.TraceLine = _chunk2BTDBZYNcjs.TraceLine; exports.TraceTitle = _chunk2BTDBZYNcjs.TraceTitle;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible.cjs';
|
|
4
|
+
import '@radix-ui/react-collapsible';
|
|
5
|
+
|
|
6
|
+
declare function Trace({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function TraceLine({ className, status, ...props }: React.ComponentProps<"span"> & {
|
|
8
|
+
status?: "running" | "error" | "pending";
|
|
9
|
+
}): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function TraceIcon({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function TraceTitle({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function TraceDescription({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function TraceCollapsible({ className, ...props }: Omit<React.ComponentProps<typeof Collapsible>, "asChild" | "open"> & ({
|
|
14
|
+
open?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
open: boolean;
|
|
17
|
+
onOpenChange: NonNullable<React.ComponentProps<typeof Collapsible>["onOpenChange"]>;
|
|
18
|
+
})): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: Omit<React.ComponentProps<typeof CollapsibleTrigger>, "asChild" | "appearance">): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function TraceCollapsibleContent({ className, children, ...props }: Omit<React.ComponentProps<typeof CollapsibleContent>, "asChild" | "padding">): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from './collapsible.js';
|
|
4
|
+
import '@radix-ui/react-collapsible';
|
|
5
|
+
|
|
6
|
+
declare function Trace({ className, ...props }: React.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function TraceLine({ className, status, ...props }: React.ComponentProps<"span"> & {
|
|
8
|
+
status?: "running" | "error" | "pending";
|
|
9
|
+
}): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function TraceIcon({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function TraceTitle({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function TraceDescription({ className, ...props }: React.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function TraceCollapsible({ className, ...props }: Omit<React.ComponentProps<typeof Collapsible>, "asChild" | "open"> & ({
|
|
14
|
+
open?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
open: boolean;
|
|
17
|
+
onOpenChange: NonNullable<React.ComponentProps<typeof Collapsible>["onOpenChange"]>;
|
|
18
|
+
})): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function TraceCollapsibleTrigger({ className, children, ...props }: Omit<React.ComponentProps<typeof CollapsibleTrigger>, "asChild" | "appearance">): react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare function TraceCollapsibleContent({ className, children, ...props }: Omit<React.ComponentProps<typeof CollapsibleContent>, "asChild" | "padding">): react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { Trace, TraceCollapsible, TraceCollapsibleContent, TraceCollapsibleTrigger, TraceDescription, TraceIcon, TraceLine, TraceTitle };
|