@wealthx/shadcn 1.5.37 → 1.5.39
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 +142 -133
- 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-734FOOJC.mjs → chunk-B5PSUONN.mjs} +25 -58
- package/dist/{chunk-DSVKEVX6.mjs → chunk-CZOGJC76.mjs} +1 -1
- package/dist/chunk-EFHPSKVF.mjs +192 -0
- 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-NB3ZL36B.mjs → chunk-MZI77ZMX.mjs} +17 -2
- package/dist/chunk-R7M657QL.mjs +587 -0
- package/dist/{chunk-DIH2NZZ3.mjs → chunk-RRROLESJ.mjs} +33 -23
- package/dist/components/ui/ai-assistant-drawer.js +269 -121
- package/dist/components/ui/ai-assistant-drawer.mjs +2 -1
- package/dist/components/ui/ai-conversations/index.js +474 -286
- package/dist/components/ui/ai-conversations/index.mjs +2 -1
- package/dist/components/ui/chat-input-area.js +429 -0
- package/dist/components/ui/chat-input-area.mjs +11 -0
- 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/page-top-bar.js +182 -5
- package/dist/components/ui/page-top-bar.mjs +3 -1
- 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 +1131 -0
- package/dist/components/ui/support-agent/index.mjs +27 -0
- package/dist/index.js +5609 -4100
- package/dist/index.mjs +77 -41
- package/dist/styles.css +1 -1
- package/package.json +16 -1
- package/src/components/index.tsx +54 -0
- package/src/components/ui/ai-assistant-drawer.tsx +24 -51
- package/src/components/ui/ai-conversations/index.tsx +16 -8
- package/src/components/ui/ai-conversations/thread.tsx +38 -27
- package/src/components/ui/chat-input-area.tsx +244 -0
- package/src/components/ui/page-top-bar.tsx +31 -5
- 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/index.tsx +25 -0
- package/src/components/ui/support-agent/support-agent-fab.tsx +116 -0
- package/src/components/ui/support-agent/support-agent-panel.tsx +498 -0
- package/src/components/ui/support-agent/support-agent-primitives.tsx +354 -0
- package/src/styles/globals.css +1 -0
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +3 -0
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
3
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
9
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
6
37
|
var __export = (target, all) => {
|
|
7
38
|
for (var name in all)
|
|
8
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +46,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
46
|
}
|
|
16
47
|
return to;
|
|
17
48
|
};
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
50
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
51
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
52
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
53
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
54
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
55
|
+
mod
|
|
56
|
+
));
|
|
18
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
58
|
|
|
20
59
|
// src/components/ui/page-top-bar.tsx
|
|
@@ -23,6 +62,12 @@ __export(page_top_bar_exports, {
|
|
|
23
62
|
PageTopBar: () => PageTopBar
|
|
24
63
|
});
|
|
25
64
|
module.exports = __toCommonJS(page_top_bar_exports);
|
|
65
|
+
var import_lucide_react2 = require("lucide-react");
|
|
66
|
+
|
|
67
|
+
// src/components/ui/button.tsx
|
|
68
|
+
var import_react = require("react");
|
|
69
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
70
|
+
var import_lucide_react = require("lucide-react");
|
|
26
71
|
|
|
27
72
|
// src/lib/utils.ts
|
|
28
73
|
var import_clsx = require("clsx");
|
|
@@ -63,10 +108,136 @@ function cn(...inputs) {
|
|
|
63
108
|
return twMerge((0, import_clsx.clsx)(inputs));
|
|
64
109
|
}
|
|
65
110
|
|
|
66
|
-
// src/
|
|
111
|
+
// src/lib/slot.tsx
|
|
112
|
+
var React = __toESM(require("react"));
|
|
113
|
+
function mergeRefs(...refs) {
|
|
114
|
+
return (value) => {
|
|
115
|
+
for (const ref of refs) {
|
|
116
|
+
if (typeof ref === "function") ref(value);
|
|
117
|
+
else if (ref !== null)
|
|
118
|
+
ref.current = value;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
var Slot = React.forwardRef(
|
|
123
|
+
(_a, forwardedRef) => {
|
|
124
|
+
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
125
|
+
const child = React.Children.only(children);
|
|
126
|
+
if (!React.isValidElement(child)) return null;
|
|
127
|
+
const childProps = child.props;
|
|
128
|
+
const merged = __spreadValues({}, props);
|
|
129
|
+
for (const key of Object.keys(childProps)) {
|
|
130
|
+
if (key === "className") {
|
|
131
|
+
merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
|
|
132
|
+
} else if (key === "style") {
|
|
133
|
+
merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
|
|
134
|
+
} else if (key.startsWith("on") && typeof childProps[key] === "function") {
|
|
135
|
+
const parentHandler = props[key];
|
|
136
|
+
if (typeof parentHandler === "function") {
|
|
137
|
+
merged[key] = (...args) => {
|
|
138
|
+
childProps[key](...args);
|
|
139
|
+
parentHandler(...args);
|
|
140
|
+
};
|
|
141
|
+
} else {
|
|
142
|
+
merged[key] = childProps[key];
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
merged[key] = childProps[key];
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const childRef = child.ref;
|
|
149
|
+
merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
|
|
150
|
+
return React.cloneElement(
|
|
151
|
+
child,
|
|
152
|
+
merged
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
Slot.displayName = "Slot";
|
|
157
|
+
|
|
158
|
+
// src/components/ui/button.tsx
|
|
67
159
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
68
|
-
|
|
69
|
-
|
|
160
|
+
var buttonVariants = (0, import_class_variance_authority.cva)(
|
|
161
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-button whitespace-nowrap transition-all active:scale-[0.98] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
162
|
+
{
|
|
163
|
+
variants: {
|
|
164
|
+
variant: {
|
|
165
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
166
|
+
secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
|
|
167
|
+
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
|
|
168
|
+
outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground focus-visible:border-border focus-visible:ring-border/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
169
|
+
"outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
|
|
170
|
+
"outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:border-brand-secondary focus-visible:ring-brand-secondary/30",
|
|
171
|
+
ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs focus-visible:ring-border/50 dark:hover:bg-accent/50",
|
|
172
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
173
|
+
},
|
|
174
|
+
size: {
|
|
175
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
176
|
+
xs: "h-6 gap-1 px-2 text-button-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
177
|
+
sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
178
|
+
lg: "h-10 px-6 has-[>svg]:px-4",
|
|
179
|
+
icon: "size-9",
|
|
180
|
+
"icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
|
|
181
|
+
"icon-sm": "size-8",
|
|
182
|
+
"icon-lg": "size-10"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
defaultVariants: {
|
|
186
|
+
variant: "default",
|
|
187
|
+
size: "default"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
var Button = (0, import_react.forwardRef)(function Button2(_a, ref) {
|
|
192
|
+
var _b = _a, {
|
|
193
|
+
className,
|
|
194
|
+
variant,
|
|
195
|
+
size,
|
|
196
|
+
asChild = false,
|
|
197
|
+
loading = false,
|
|
198
|
+
disabled,
|
|
199
|
+
type = "button",
|
|
200
|
+
children
|
|
201
|
+
} = _b, props = __objRest(_b, [
|
|
202
|
+
"className",
|
|
203
|
+
"variant",
|
|
204
|
+
"size",
|
|
205
|
+
"asChild",
|
|
206
|
+
"loading",
|
|
207
|
+
"disabled",
|
|
208
|
+
"type",
|
|
209
|
+
"children"
|
|
210
|
+
]);
|
|
211
|
+
const Comp = asChild ? Slot : "button";
|
|
212
|
+
const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
|
|
213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
214
|
+
Comp,
|
|
215
|
+
__spreadProps(__spreadValues({
|
|
216
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
217
|
+
"data-size": size,
|
|
218
|
+
"data-slot": "button",
|
|
219
|
+
"data-variant": variant,
|
|
220
|
+
disabled: loading || disabled,
|
|
221
|
+
ref,
|
|
222
|
+
type
|
|
223
|
+
}, props), {
|
|
224
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
225
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
|
|
226
|
+
!isIconOnly && children
|
|
227
|
+
] }) : children
|
|
228
|
+
})
|
|
229
|
+
);
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
// src/components/ui/page-top-bar.tsx
|
|
233
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
234
|
+
function PageTopBar({
|
|
235
|
+
title,
|
|
236
|
+
actions,
|
|
237
|
+
onAskSupport,
|
|
238
|
+
className
|
|
239
|
+
}) {
|
|
240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
70
241
|
"div",
|
|
71
242
|
{
|
|
72
243
|
"data-slot": "page-top-bar",
|
|
@@ -76,8 +247,14 @@ function PageTopBar({ title, actions, className }) {
|
|
|
76
247
|
className
|
|
77
248
|
),
|
|
78
249
|
children: [
|
|
79
|
-
/* @__PURE__ */ (0,
|
|
80
|
-
|
|
250
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)("h1", { className: "text-lg font-semibold leading-tight", children: title }),
|
|
251
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
252
|
+
actions,
|
|
253
|
+
onAskSupport && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(Button, { variant: "outline", size: "sm", onClick: onAskSupport, children: [
|
|
254
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react2.Bot, { className: "size-3.5", "aria-hidden": "true" }),
|
|
255
|
+
"Ask Support"
|
|
256
|
+
] })
|
|
257
|
+
] })
|
|
81
258
|
]
|
|
82
259
|
}
|
|
83
260
|
);
|
|
@@ -827,25 +827,24 @@ var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
|
827
827
|
function Progress(_a) {
|
|
828
828
|
var _b = _a, {
|
|
829
829
|
className,
|
|
830
|
-
value
|
|
830
|
+
value,
|
|
831
|
+
indicatorClassName
|
|
831
832
|
} = _b, props = __objRest(_b, [
|
|
832
833
|
"className",
|
|
833
|
-
"value"
|
|
834
|
+
"value",
|
|
835
|
+
"indicatorClassName"
|
|
834
836
|
]);
|
|
835
837
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
836
838
|
import_progress.Progress.Root,
|
|
837
839
|
__spreadProps(__spreadValues({
|
|
838
|
-
className: cn(
|
|
839
|
-
"relative h-2 w-full overflow-hidden bg-muted",
|
|
840
|
-
className
|
|
841
|
-
),
|
|
840
|
+
className: cn("relative h-2 w-full overflow-hidden bg-muted", className),
|
|
842
841
|
"data-slot": "progress",
|
|
843
842
|
value
|
|
844
843
|
}, props), {
|
|
845
844
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_progress.Progress.Track, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
846
845
|
import_progress.Progress.Indicator,
|
|
847
846
|
{
|
|
848
|
-
className: "h-full bg-primary transition-all",
|
|
847
|
+
className: cn("h-full bg-primary transition-all", indicatorClassName),
|
|
849
848
|
"data-slot": "progress-indicator"
|
|
850
849
|
}
|
|
851
850
|
) })
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PipelineBoard
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FQUT5XD6.mjs";
|
|
4
|
+
import "../../chunk-MHBQJVHE.mjs";
|
|
5
|
+
import "../../chunk-CZOGJC76.mjs";
|
|
6
6
|
import "../../chunk-L6LE4OIM.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-FL7DEYUA.mjs";
|
|
8
8
|
import "../../chunk-3S6KVFF5.mjs";
|
|
9
9
|
import "../../chunk-PNSYFE3K.mjs";
|
|
10
10
|
import "../../chunk-IKXYTCSB.mjs";
|