@epicbagel/saas-kit 1.0.0 → 1.2.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 +72 -3
- package/THIRD_PARTY_NOTICES.md +230 -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-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-INNGGLMZ.js +44 -0
- package/dist/chunk-IW4ZIXXG.js +66 -0
- package/dist/chunk-JZOBIPFC.js +96 -0
- package/dist/chunk-KADJ56AH.cjs +416 -0
- package/dist/chunk-KENBU3NV.cjs +27 -0
- package/dist/chunk-M7FYGAGO.js +416 -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/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 +3 -3
- package/dist/primitives/button.d.ts +3 -3
- package/dist/primitives/chat.cjs +881 -0
- package/dist/primitives/chat.d.cts +345 -0
- package/dist/primitives/chat.d.ts +345 -0
- package/dist/primitives/chat.js +881 -0
- package/dist/primitives/connection.cjs +6 -6
- package/dist/primitives/connection.js +7 -7
- package/dist/primitives/file-dropzone.cjs +7 -107
- package/dist/primitives/file-dropzone.d.cts +66 -3
- package/dist/primitives/file-dropzone.d.ts +66 -3
- package/dist/primitives/file-dropzone.js +13 -113
- 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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkXABXUP6Lcjs = require('../chunk-XABXUP6L.cjs');
|
|
14
|
+
require('../chunk-L4DH72UF.cjs');
|
|
15
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
exports.MessageScroller = _chunkXABXUP6Lcjs.MessageScroller; exports.MessageScrollerButton = _chunkXABXUP6Lcjs.MessageScrollerButton; exports.MessageScrollerContent = _chunkXABXUP6Lcjs.MessageScrollerContent; exports.MessageScrollerItem = _chunkXABXUP6Lcjs.MessageScrollerItem; exports.MessageScrollerProvider = _chunkXABXUP6Lcjs.MessageScrollerProvider; exports.MessageScrollerViewport = _chunkXABXUP6Lcjs.MessageScrollerViewport; exports.useMessageScroller = _chunkXABXUP6Lcjs.useMessageScroller; exports.useMessageScrollerScrollable = _chunkXABXUP6Lcjs.useMessageScrollerScrollable; exports.useMessageScrollerVisibility = _chunkXABXUP6Lcjs.useMessageScrollerVisibility;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
|
|
4
|
+
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
|
|
5
|
+
import { Button } from './button.cjs';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScroller$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Root>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Viewport>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Content>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScroller$1.Item>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScroller$1.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { MessageScroller as MessageScroller$1 } from '@shadcn/react/message-scroller';
|
|
4
|
+
export { useMessageScroller, useMessageScrollerScrollable, useMessageScrollerVisibility } from '@shadcn/react/message-scroller';
|
|
5
|
+
import { Button } from './button.js';
|
|
6
|
+
import 'class-variance-authority/types';
|
|
7
|
+
import 'class-variance-authority';
|
|
8
|
+
|
|
9
|
+
declare function MessageScrollerProvider(props: React.ComponentProps<typeof MessageScroller$1.Provider>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function MessageScroller({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Root>): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare function MessageScrollerViewport({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Viewport>): react_jsx_runtime.JSX.Element;
|
|
12
|
+
declare function MessageScrollerContent({ className, ...props }: React.ComponentProps<typeof MessageScroller$1.Content>): react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React.ComponentProps<typeof MessageScroller$1.Item>): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React.ComponentProps<typeof MessageScroller$1.Button> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import {
|
|
4
|
+
MessageScroller,
|
|
5
|
+
MessageScrollerButton,
|
|
6
|
+
MessageScrollerContent,
|
|
7
|
+
MessageScrollerItem,
|
|
8
|
+
MessageScrollerProvider,
|
|
9
|
+
MessageScrollerViewport,
|
|
10
|
+
useMessageScroller,
|
|
11
|
+
useMessageScrollerScrollable,
|
|
12
|
+
useMessageScrollerVisibility
|
|
13
|
+
} from "../chunk-GFG2R5BZ.js";
|
|
14
|
+
import "../chunk-HQRWRRZJ.js";
|
|
15
|
+
import "../chunk-G6SRSWXB.js";
|
|
16
|
+
export {
|
|
17
|
+
MessageScroller,
|
|
18
|
+
MessageScrollerButton,
|
|
19
|
+
MessageScrollerContent,
|
|
20
|
+
MessageScrollerItem,
|
|
21
|
+
MessageScrollerProvider,
|
|
22
|
+
MessageScrollerViewport,
|
|
23
|
+
useMessageScroller,
|
|
24
|
+
useMessageScrollerScrollable,
|
|
25
|
+
useMessageScrollerVisibility
|
|
26
|
+
};
|
|
@@ -1,95 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
|
|
5
4
|
|
|
6
|
-
// src/primitives/message.tsx
|
|
7
|
-
var _jsxruntime = require('react/jsx-runtime');
|
|
8
|
-
function MessageGroup({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10
|
-
"div",
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "message-group",
|
|
13
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0, "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__ */ _jsxruntime.jsx.call(void 0,
|
|
24
|
-
"div",
|
|
25
|
-
{
|
|
26
|
-
"data-slot": "message",
|
|
27
|
-
"data-align": align,
|
|
28
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
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__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
"data-slot": "message-avatar",
|
|
41
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
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__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
"data-slot": "message-content",
|
|
54
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
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__ */ _jsxruntime.jsx.call(void 0,
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "message-header",
|
|
67
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
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__ */ _jsxruntime.jsx.call(void 0,
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
"data-slot": "message-footer",
|
|
80
|
-
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
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
|
-
}
|
|
88
5
|
|
|
89
6
|
|
|
90
7
|
|
|
91
8
|
|
|
9
|
+
var _chunk2AU7ZRGXcjs = require('../chunk-2AU7ZRGX.cjs');
|
|
10
|
+
require('../chunk-KWLSBTB2.cjs');
|
|
92
11
|
|
|
93
12
|
|
|
94
13
|
|
|
95
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.Message = _chunk2AU7ZRGXcjs.Message; exports.MessageAvatar = _chunk2AU7ZRGXcjs.MessageAvatar; exports.MessageContent = _chunk2AU7ZRGXcjs.MessageContent; exports.MessageFooter = _chunk2AU7ZRGXcjs.MessageFooter; exports.MessageGroup = _chunk2AU7ZRGXcjs.MessageGroup; exports.MessageHeader = _chunk2AU7ZRGXcjs.MessageHeader;
|
|
@@ -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";
|