@wealthx/shadcn 1.5.38 → 1.5.40
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/.turbo/turbo-build.log +98 -95
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-LSSIWLYU.mjs → chunk-6XNEHTII.mjs} +1 -1
- package/dist/{chunk-ULQ53FRJ.mjs → chunk-7NQKFPXE.mjs} +1 -1
- package/dist/{chunk-DSVKEVX6.mjs → chunk-CZOGJC76.mjs} +1 -1
- package/dist/{chunk-JPGL36WQ.mjs → chunk-FL7DEYUA.mjs} +6 -7
- package/dist/{chunk-2CHH5QOA.mjs → chunk-FQUT5XD6.mjs} +1 -1
- package/dist/chunk-MGIDYXOP.mjs +814 -0
- package/dist/{chunk-OG2VM34K.mjs → chunk-MHBQJVHE.mjs} +1 -1
- package/dist/{chunk-R7M657QL.mjs → chunk-STN5QIWN.mjs} +36 -1
- package/dist/components/ui/file-preview-dialog.js +6 -7
- package/dist/components/ui/file-preview-dialog.mjs +2 -2
- package/dist/components/ui/kanban-column.js +6 -7
- package/dist/components/ui/kanban-column.mjs +3 -3
- package/dist/components/ui/opportunity-card.js +6 -7
- package/dist/components/ui/opportunity-card.mjs +2 -2
- package/dist/components/ui/pipeline-board.js +6 -7
- package/dist/components/ui/pipeline-board.mjs +4 -4
- package/dist/components/ui/policy-ai/index.js +1636 -0
- package/dist/components/ui/policy-ai/index.mjs +36 -0
- package/dist/components/ui/progress.js +6 -7
- package/dist/components/ui/progress.mjs +1 -1
- package/dist/components/ui/stage-timeline.js +6 -7
- package/dist/components/ui/stage-timeline.mjs +2 -2
- package/dist/components/ui/support-agent/index.js +31 -1
- package/dist/components/ui/support-agent/index.mjs +1 -1
- package/dist/index.js +4105 -3299
- package/dist/index.mjs +25 -7
- package/dist/styles.css +1 -1
- package/package.json +10 -5
- package/src/components/index.tsx +30 -0
- package/src/components/ui/policy-ai/index.tsx +41 -0
- package/src/components/ui/policy-ai/policy-ai-panel.tsx +526 -0
- package/src/components/ui/policy-ai/policy-ai-primitives.tsx +332 -0
- package/src/components/ui/policy-ai/policy-ai-responses.tsx +543 -0
- package/src/components/ui/progress.tsx +15 -12
- package/src/components/ui/support-agent/support-agent-panel.tsx +46 -2
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +2 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PolicyAIFAB,
|
|
3
|
+
PolicyAIPanel,
|
|
4
|
+
PolicyCitationPanel,
|
|
5
|
+
PolicyComparisonTable,
|
|
6
|
+
PolicyQueryChip,
|
|
7
|
+
PolicyRankedList,
|
|
8
|
+
PolicySingleBankAnswer,
|
|
9
|
+
PolicyVerdictBadge
|
|
10
|
+
} from "../../../chunk-MGIDYXOP.mjs";
|
|
11
|
+
import "../../../chunk-FL7DEYUA.mjs";
|
|
12
|
+
import "../../../chunk-FQYFPHDO.mjs";
|
|
13
|
+
import "../../../chunk-3S6KVFF5.mjs";
|
|
14
|
+
import "../../../chunk-WE4YKBDE.mjs";
|
|
15
|
+
import "../../../chunk-H6NQTIF4.mjs";
|
|
16
|
+
import "../../../chunk-EFHPSKVF.mjs";
|
|
17
|
+
import "../../../chunk-BS75ICOO.mjs";
|
|
18
|
+
import "../../../chunk-X6RC5UWB.mjs";
|
|
19
|
+
import "../../../chunk-F3CU6KEI.mjs";
|
|
20
|
+
import "../../../chunk-LBTHZSBT.mjs";
|
|
21
|
+
import "../../../chunk-XYSRRDBH.mjs";
|
|
22
|
+
import "../../../chunk-FRCTOAKZ.mjs";
|
|
23
|
+
import "../../../chunk-NOOEKOWY.mjs";
|
|
24
|
+
import "../../../chunk-R4HCRDU5.mjs";
|
|
25
|
+
import "../../../chunk-AFML43VJ.mjs";
|
|
26
|
+
import "../../../chunk-WNQUEZJF.mjs";
|
|
27
|
+
export {
|
|
28
|
+
PolicyAIFAB,
|
|
29
|
+
PolicyAIPanel,
|
|
30
|
+
PolicyCitationPanel,
|
|
31
|
+
PolicyComparisonTable,
|
|
32
|
+
PolicyQueryChip,
|
|
33
|
+
PolicyRankedList,
|
|
34
|
+
PolicySingleBankAnswer,
|
|
35
|
+
PolicyVerdictBadge
|
|
36
|
+
};
|
|
@@ -98,25 +98,24 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
98
98
|
function Progress(_a) {
|
|
99
99
|
var _b = _a, {
|
|
100
100
|
className,
|
|
101
|
-
value
|
|
101
|
+
value,
|
|
102
|
+
indicatorClassName
|
|
102
103
|
} = _b, props = __objRest(_b, [
|
|
103
104
|
"className",
|
|
104
|
-
"value"
|
|
105
|
+
"value",
|
|
106
|
+
"indicatorClassName"
|
|
105
107
|
]);
|
|
106
108
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
107
109
|
import_progress.Progress.Root,
|
|
108
110
|
__spreadProps(__spreadValues({
|
|
109
|
-
className: cn(
|
|
110
|
-
"relative h-2 w-full overflow-hidden bg-muted",
|
|
111
|
-
className
|
|
112
|
-
),
|
|
111
|
+
className: cn("relative h-2 w-full overflow-hidden bg-muted", className),
|
|
113
112
|
"data-slot": "progress",
|
|
114
113
|
value
|
|
115
114
|
}, props), {
|
|
116
115
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_progress.Progress.Track, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
116
|
import_progress.Progress.Indicator,
|
|
118
117
|
{
|
|
119
|
-
className: "h-full bg-primary transition-all",
|
|
118
|
+
className: cn("h-full bg-primary transition-all", indicatorClassName),
|
|
120
119
|
"data-slot": "progress-indicator"
|
|
121
120
|
}
|
|
122
121
|
) })
|
|
@@ -184,25 +184,24 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
|
184
184
|
function Progress(_a) {
|
|
185
185
|
var _b = _a, {
|
|
186
186
|
className,
|
|
187
|
-
value
|
|
187
|
+
value,
|
|
188
|
+
indicatorClassName
|
|
188
189
|
} = _b, props = __objRest(_b, [
|
|
189
190
|
"className",
|
|
190
|
-
"value"
|
|
191
|
+
"value",
|
|
192
|
+
"indicatorClassName"
|
|
191
193
|
]);
|
|
192
194
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
193
195
|
import_progress.Progress.Root,
|
|
194
196
|
__spreadProps(__spreadValues({
|
|
195
|
-
className: cn(
|
|
196
|
-
"relative h-2 w-full overflow-hidden bg-muted",
|
|
197
|
-
className
|
|
198
|
-
),
|
|
197
|
+
className: cn("relative h-2 w-full overflow-hidden bg-muted", className),
|
|
199
198
|
"data-slot": "progress",
|
|
200
199
|
value
|
|
201
200
|
}, props), {
|
|
202
201
|
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_progress.Progress.Track, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
203
202
|
import_progress.Progress.Indicator,
|
|
204
203
|
{
|
|
205
|
-
className: "h-full bg-primary transition-all",
|
|
204
|
+
className: cn("h-full bg-primary transition-all", indicatorClassName),
|
|
206
205
|
"data-slot": "progress-indicator"
|
|
207
206
|
}
|
|
208
207
|
) })
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StageTimeline
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6XNEHTII.mjs";
|
|
4
4
|
import "../../chunk-L6LE4OIM.mjs";
|
|
5
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-FL7DEYUA.mjs";
|
|
6
6
|
import "../../chunk-PNSYFE3K.mjs";
|
|
7
7
|
import "../../chunk-IKXYTCSB.mjs";
|
|
8
8
|
import "../../chunk-JVMXMFBB.mjs";
|
|
@@ -508,6 +508,9 @@ function SupportAgentFAB({
|
|
|
508
508
|
|
|
509
509
|
// src/components/ui/support-agent/support-agent-panel.tsx
|
|
510
510
|
var React5 = __toESM(require("react"));
|
|
511
|
+
var import_react_markdown = __toESM(require("react-markdown"));
|
|
512
|
+
var import_rehype_raw = __toESM(require("rehype-raw"));
|
|
513
|
+
var import_rehype_sanitize = __toESM(require("rehype-sanitize"));
|
|
511
514
|
var import_lucide_react7 = require("lucide-react");
|
|
512
515
|
|
|
513
516
|
// src/components/ui/sheet.tsx
|
|
@@ -850,6 +853,21 @@ function SupportTypingIndicator() {
|
|
|
850
853
|
}
|
|
851
854
|
);
|
|
852
855
|
}
|
|
856
|
+
function StreamingStatus({ label }) {
|
|
857
|
+
if (!label) return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SupportTypingIndicator, {});
|
|
858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
859
|
+
"span",
|
|
860
|
+
{
|
|
861
|
+
className: "flex items-center gap-1.5 text-sm text-muted-foreground",
|
|
862
|
+
role: "status",
|
|
863
|
+
"aria-label": `${label}\u2026`,
|
|
864
|
+
children: [
|
|
865
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { children: label }),
|
|
866
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SupportTypingIndicator, {})
|
|
867
|
+
]
|
|
868
|
+
}
|
|
869
|
+
);
|
|
870
|
+
}
|
|
853
871
|
function MessageBubble({ message }) {
|
|
854
872
|
const isUser = message.role === "user";
|
|
855
873
|
const isEmpty = !message.content.trim();
|
|
@@ -872,7 +890,19 @@ function MessageBubble({ message }) {
|
|
|
872
890
|
"data-slot": "support-message-bubble",
|
|
873
891
|
"data-role": message.role,
|
|
874
892
|
children: [
|
|
875
|
-
isEmpty && message.isStreaming ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
893
|
+
isEmpty && message.isStreaming ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(StreamingStatus, { label: message.streamingLabel }) : isUser ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "whitespace-pre-wrap break-words leading-relaxed", children: message.content }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "break-words text-sm leading-relaxed [&_a]:text-primary [&_a]:underline [&_p]:m-0 [&_p:not(:last-child)]:mb-2 [&_ul]:my-1 [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:my-1 [&_ol]:list-decimal [&_ol]:pl-4 [&_li]:mb-0.5", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
894
|
+
import_react_markdown.default,
|
|
895
|
+
{
|
|
896
|
+
rehypePlugins: [import_rehype_raw.default, [import_rehype_sanitize.default, import_rehype_sanitize.defaultSchema]],
|
|
897
|
+
components: {
|
|
898
|
+
a: (_a) => {
|
|
899
|
+
var _b = _a, { node } = _b, props = __objRest(_b, ["node"]);
|
|
900
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("a", __spreadProps(__spreadValues({}, props), { target: "_blank", rel: "noopener noreferrer" }));
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
children: message.content
|
|
904
|
+
}
|
|
905
|
+
) }),
|
|
876
906
|
message.isErrored && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mt-1 text-xs opacity-70", children: "Failed to send. Please try again." })
|
|
877
907
|
]
|
|
878
908
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SupportContextChip,
|
|
6
6
|
SupportStepGuideCard,
|
|
7
7
|
SupportSuggestedQuestion
|
|
8
|
-
} from "../../../chunk-
|
|
8
|
+
} from "../../../chunk-STN5QIWN.mjs";
|
|
9
9
|
import "../../../chunk-GTAVSBDO.mjs";
|
|
10
10
|
import "../../../chunk-EFHPSKVF.mjs";
|
|
11
11
|
import "../../../chunk-H3PTREG6.mjs";
|