@vantageos/mosaic-blocks 0.5.21-alpha → 0.5.22-alpha
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 +3 -3
- package/dist/index.cjs +615 -219
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +376 -2
- package/dist/index.d.ts +376 -2
- package/dist/index.js +597 -220
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -47,7 +47,7 @@ function _interopNamespace(e) {
|
|
|
47
47
|
var React29__namespace = /*#__PURE__*/_interopNamespace(React29);
|
|
48
48
|
|
|
49
49
|
// src/version.ts
|
|
50
|
-
var version = "0.5.
|
|
50
|
+
var version = "0.5.22-alpha";
|
|
51
51
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
52
52
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
53
53
|
}
|
|
@@ -4590,6 +4590,107 @@ function MosaicAgentComposer(props) {
|
|
|
4590
4590
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MosaicAgentComposerDesktop, { ...props });
|
|
4591
4591
|
}
|
|
4592
4592
|
MosaicAgentComposer.displayName = "MosaicAgentComposer";
|
|
4593
|
+
var agentEditorVariants = classVarianceAuthority.cva("flex flex-col gap-4 w-full", {
|
|
4594
|
+
variants: {},
|
|
4595
|
+
defaultVariants: {}
|
|
4596
|
+
});
|
|
4597
|
+
function MosaicAgentEditor({
|
|
4598
|
+
className,
|
|
4599
|
+
ref,
|
|
4600
|
+
nameLabel,
|
|
4601
|
+
nameValue,
|
|
4602
|
+
onNameChange,
|
|
4603
|
+
nameError,
|
|
4604
|
+
roleLabel,
|
|
4605
|
+
roleValue,
|
|
4606
|
+
onRoleChange,
|
|
4607
|
+
roleError,
|
|
4608
|
+
instructionsLabel,
|
|
4609
|
+
instructionsValue,
|
|
4610
|
+
onInstructionsChange,
|
|
4611
|
+
instructionsError,
|
|
4612
|
+
saveLabel,
|
|
4613
|
+
cancelLabel,
|
|
4614
|
+
onSave,
|
|
4615
|
+
onCancel,
|
|
4616
|
+
canSave,
|
|
4617
|
+
isSaving,
|
|
4618
|
+
savingLabel
|
|
4619
|
+
}) {
|
|
4620
|
+
const nameErrorId = nameError ? "mosaic-agent-editor-name-error" : void 0;
|
|
4621
|
+
const roleErrorId = roleError ? "mosaic-agent-editor-role-error" : void 0;
|
|
4622
|
+
const instructionsErrorId = instructionsError ? "mosaic-agent-editor-instructions-error" : void 0;
|
|
4623
|
+
const saveDisabled = !canSave || isSaving;
|
|
4624
|
+
const handleSave = () => {
|
|
4625
|
+
if (saveDisabled) return;
|
|
4626
|
+
onSave();
|
|
4627
|
+
};
|
|
4628
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4629
|
+
"div",
|
|
4630
|
+
{
|
|
4631
|
+
ref,
|
|
4632
|
+
"data-slot": "agent-editor",
|
|
4633
|
+
"aria-busy": isSaving ? "true" : void 0,
|
|
4634
|
+
className: agentEditorVariants({ className }),
|
|
4635
|
+
children: [
|
|
4636
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4637
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: "mosaic-agent-editor-name", className: "text-sm font-medium text-foreground", children: nameLabel }),
|
|
4638
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4639
|
+
MosaicInput,
|
|
4640
|
+
{
|
|
4641
|
+
id: "mosaic-agent-editor-name",
|
|
4642
|
+
value: nameValue,
|
|
4643
|
+
onChange: (event) => onNameChange(event.target.value),
|
|
4644
|
+
"aria-invalid": nameError ? "true" : void 0,
|
|
4645
|
+
"aria-describedby": nameErrorId
|
|
4646
|
+
}
|
|
4647
|
+
),
|
|
4648
|
+
nameError ? /* @__PURE__ */ jsxRuntime.jsx("p", { id: nameErrorId, className: "text-xs font-medium text-destructive", children: nameError }) : null
|
|
4649
|
+
] }),
|
|
4650
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4651
|
+
/* @__PURE__ */ jsxRuntime.jsx("label", { htmlFor: "mosaic-agent-editor-role", className: "text-sm font-medium text-foreground", children: roleLabel }),
|
|
4652
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4653
|
+
MosaicInput,
|
|
4654
|
+
{
|
|
4655
|
+
id: "mosaic-agent-editor-role",
|
|
4656
|
+
value: roleValue,
|
|
4657
|
+
onChange: (event) => onRoleChange(event.target.value),
|
|
4658
|
+
"aria-invalid": roleError ? "true" : void 0,
|
|
4659
|
+
"aria-describedby": roleErrorId
|
|
4660
|
+
}
|
|
4661
|
+
),
|
|
4662
|
+
roleError ? /* @__PURE__ */ jsxRuntime.jsx("p", { id: roleErrorId, className: "text-xs font-medium text-destructive", children: roleError }) : null
|
|
4663
|
+
] }),
|
|
4664
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
4665
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4666
|
+
"label",
|
|
4667
|
+
{
|
|
4668
|
+
htmlFor: "mosaic-agent-editor-instructions",
|
|
4669
|
+
className: "text-sm font-medium text-foreground",
|
|
4670
|
+
children: instructionsLabel
|
|
4671
|
+
}
|
|
4672
|
+
),
|
|
4673
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4674
|
+
MosaicTextarea,
|
|
4675
|
+
{
|
|
4676
|
+
id: "mosaic-agent-editor-instructions",
|
|
4677
|
+
value: instructionsValue,
|
|
4678
|
+
onChange: (event) => onInstructionsChange(event.target.value),
|
|
4679
|
+
"aria-invalid": instructionsError ? "true" : void 0,
|
|
4680
|
+
"aria-describedby": instructionsErrorId
|
|
4681
|
+
}
|
|
4682
|
+
),
|
|
4683
|
+
instructionsError ? /* @__PURE__ */ jsxRuntime.jsx("p", { id: instructionsErrorId, className: "text-xs font-medium text-destructive", children: instructionsError }) : null
|
|
4684
|
+
] }),
|
|
4685
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-end gap-2", children: [
|
|
4686
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicButton, { type: "button", variant: "outline", onClick: onCancel, children: cancelLabel }),
|
|
4687
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicButton, { type: "button", onClick: handleSave, disabled: saveDisabled, children: isSaving ? savingLabel : saveLabel })
|
|
4688
|
+
] })
|
|
4689
|
+
]
|
|
4690
|
+
}
|
|
4691
|
+
);
|
|
4692
|
+
}
|
|
4693
|
+
MosaicAgentEditor.displayName = "MosaicAgentEditor";
|
|
4593
4694
|
function cn47(...classes) {
|
|
4594
4695
|
return classes.filter(Boolean).join(" ");
|
|
4595
4696
|
}
|
|
@@ -4813,9 +4914,156 @@ function MosaicDeleteConfirmationDialog({
|
|
|
4813
4914
|
] }) });
|
|
4814
4915
|
}
|
|
4815
4916
|
MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
|
|
4917
|
+
var alertDialogContentVariants = classVarianceAuthority.cva([
|
|
4918
|
+
"fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)]",
|
|
4919
|
+
"-translate-x-1/2 -translate-y-1/2 gap-4",
|
|
4920
|
+
"rounded-lg border border-border bg-background p-6 shadow-lg",
|
|
4921
|
+
"sm:max-w-lg"
|
|
4922
|
+
]);
|
|
4923
|
+
var alertDialogOverlayVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
4816
4924
|
function cn49(...classes) {
|
|
4817
4925
|
return classes.filter(Boolean).join(" ");
|
|
4818
4926
|
}
|
|
4927
|
+
function MosaicAlertDialog(props) {
|
|
4928
|
+
return /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Root, { "data-slot": "alert-dialog", ...props });
|
|
4929
|
+
}
|
|
4930
|
+
MosaicAlertDialog.displayName = "MosaicAlertDialog";
|
|
4931
|
+
function MosaicAlertDialogTrigger(props) {
|
|
4932
|
+
return /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
|
|
4933
|
+
}
|
|
4934
|
+
MosaicAlertDialogTrigger.displayName = "MosaicAlertDialogTrigger";
|
|
4935
|
+
function MosaicAlertDialogPortal(props) {
|
|
4936
|
+
return /* @__PURE__ */ jsxRuntime.jsx(alertDialog.AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
|
|
4937
|
+
}
|
|
4938
|
+
MosaicAlertDialogPortal.displayName = "MosaicAlertDialogPortal";
|
|
4939
|
+
function MosaicAlertDialogOverlay({ className, ...props }) {
|
|
4940
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4941
|
+
alertDialog.AlertDialog.Backdrop,
|
|
4942
|
+
{
|
|
4943
|
+
"data-slot": "alert-dialog-overlay",
|
|
4944
|
+
className: cn49(alertDialogOverlayVariants(), className),
|
|
4945
|
+
...props
|
|
4946
|
+
}
|
|
4947
|
+
);
|
|
4948
|
+
}
|
|
4949
|
+
MosaicAlertDialogOverlay.displayName = "MosaicAlertDialogOverlay";
|
|
4950
|
+
function MosaicAlertDialogContent({ className, ...props }) {
|
|
4951
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(MosaicAlertDialogPortal, { children: [
|
|
4952
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicAlertDialogOverlay, {}),
|
|
4953
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4954
|
+
alertDialog.AlertDialog.Popup,
|
|
4955
|
+
{
|
|
4956
|
+
"data-slot": "alert-dialog-content",
|
|
4957
|
+
className: cn49(alertDialogContentVariants(), className),
|
|
4958
|
+
...props
|
|
4959
|
+
}
|
|
4960
|
+
)
|
|
4961
|
+
] });
|
|
4962
|
+
}
|
|
4963
|
+
MosaicAlertDialogContent.displayName = "MosaicAlertDialogContent";
|
|
4964
|
+
function MosaicAlertDialogHeader({ className, ...props }) {
|
|
4965
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4966
|
+
"div",
|
|
4967
|
+
{
|
|
4968
|
+
"data-slot": "alert-dialog-header",
|
|
4969
|
+
className: cn49("flex flex-col gap-2 text-center sm:text-left", className),
|
|
4970
|
+
...props
|
|
4971
|
+
}
|
|
4972
|
+
);
|
|
4973
|
+
}
|
|
4974
|
+
MosaicAlertDialogHeader.displayName = "MosaicAlertDialogHeader";
|
|
4975
|
+
function MosaicAlertDialogFooter({ className, ...props }) {
|
|
4976
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4977
|
+
"div",
|
|
4978
|
+
{
|
|
4979
|
+
"data-slot": "alert-dialog-footer",
|
|
4980
|
+
className: cn49("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
4981
|
+
...props
|
|
4982
|
+
}
|
|
4983
|
+
);
|
|
4984
|
+
}
|
|
4985
|
+
MosaicAlertDialogFooter.displayName = "MosaicAlertDialogFooter";
|
|
4986
|
+
function MosaicAlertDialogTitle({
|
|
4987
|
+
className,
|
|
4988
|
+
children,
|
|
4989
|
+
...props
|
|
4990
|
+
}) {
|
|
4991
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4992
|
+
alertDialog.AlertDialog.Title,
|
|
4993
|
+
{
|
|
4994
|
+
"data-slot": "alert-dialog-title",
|
|
4995
|
+
className: cn49("text-lg font-semibold text-foreground", className),
|
|
4996
|
+
...props,
|
|
4997
|
+
children
|
|
4998
|
+
}
|
|
4999
|
+
);
|
|
5000
|
+
}
|
|
5001
|
+
MosaicAlertDialogTitle.displayName = "MosaicAlertDialogTitle";
|
|
5002
|
+
function MosaicAlertDialogDescription({
|
|
5003
|
+
className,
|
|
5004
|
+
children,
|
|
5005
|
+
...props
|
|
5006
|
+
}) {
|
|
5007
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5008
|
+
alertDialog.AlertDialog.Description,
|
|
5009
|
+
{
|
|
5010
|
+
"data-slot": "alert-dialog-description",
|
|
5011
|
+
className: cn49("text-sm text-muted-foreground", className),
|
|
5012
|
+
...props,
|
|
5013
|
+
children
|
|
5014
|
+
}
|
|
5015
|
+
);
|
|
5016
|
+
}
|
|
5017
|
+
MosaicAlertDialogDescription.displayName = "MosaicAlertDialogDescription";
|
|
5018
|
+
function MosaicAlertDialogAction({
|
|
5019
|
+
className,
|
|
5020
|
+
children,
|
|
5021
|
+
...props
|
|
5022
|
+
}) {
|
|
5023
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5024
|
+
alertDialog.AlertDialog.Close,
|
|
5025
|
+
{
|
|
5026
|
+
"data-slot": "alert-dialog-action",
|
|
5027
|
+
className: cn49(
|
|
5028
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
|
|
5029
|
+
"bg-destructive text-sm font-medium text-destructive-foreground",
|
|
5030
|
+
"hover:bg-destructive/90",
|
|
5031
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
5032
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
5033
|
+
className
|
|
5034
|
+
),
|
|
5035
|
+
...props,
|
|
5036
|
+
children
|
|
5037
|
+
}
|
|
5038
|
+
);
|
|
5039
|
+
}
|
|
5040
|
+
MosaicAlertDialogAction.displayName = "MosaicAlertDialogAction";
|
|
5041
|
+
function MosaicAlertDialogCancel({
|
|
5042
|
+
className,
|
|
5043
|
+
children,
|
|
5044
|
+
...props
|
|
5045
|
+
}) {
|
|
5046
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5047
|
+
alertDialog.AlertDialog.Close,
|
|
5048
|
+
{
|
|
5049
|
+
"data-slot": "alert-dialog-cancel",
|
|
5050
|
+
className: cn49(
|
|
5051
|
+
"inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
|
|
5052
|
+
"bg-background text-sm font-medium text-foreground shadow-xs",
|
|
5053
|
+
"hover:bg-muted hover:text-foreground",
|
|
5054
|
+
"focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
|
|
5055
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
5056
|
+
className
|
|
5057
|
+
),
|
|
5058
|
+
...props,
|
|
5059
|
+
children
|
|
5060
|
+
}
|
|
5061
|
+
);
|
|
5062
|
+
}
|
|
5063
|
+
MosaicAlertDialogCancel.displayName = "MosaicAlertDialogCancel";
|
|
5064
|
+
function cn50(...classes) {
|
|
5065
|
+
return classes.filter(Boolean).join(" ");
|
|
5066
|
+
}
|
|
4819
5067
|
function Toggle({
|
|
4820
5068
|
id,
|
|
4821
5069
|
checked,
|
|
@@ -4829,7 +5077,7 @@ function Toggle({
|
|
|
4829
5077
|
id,
|
|
4830
5078
|
"aria-checked": checked,
|
|
4831
5079
|
onClick: () => onChange(!checked),
|
|
4832
|
-
className:
|
|
5080
|
+
className: cn50(
|
|
4833
5081
|
"relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
|
|
4834
5082
|
"transition-colors duration-200 ease-in-out",
|
|
4835
5083
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
@@ -4838,7 +5086,7 @@ function Toggle({
|
|
|
4838
5086
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4839
5087
|
"span",
|
|
4840
5088
|
{
|
|
4841
|
-
className:
|
|
5089
|
+
className: cn50(
|
|
4842
5090
|
"pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
|
|
4843
5091
|
"transform transition duration-200 ease-in-out",
|
|
4844
5092
|
checked ? "translate-x-5" : "translate-x-0"
|
|
@@ -4860,7 +5108,7 @@ function NativeSelect({
|
|
|
4860
5108
|
id,
|
|
4861
5109
|
value,
|
|
4862
5110
|
onChange: (e) => onChange(e.target.value),
|
|
4863
|
-
className:
|
|
5111
|
+
className: cn50(
|
|
4864
5112
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
4865
5113
|
"text-sm text-foreground",
|
|
4866
5114
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -4880,7 +5128,7 @@ function MosaicPreferencesPanel({
|
|
|
4880
5128
|
className
|
|
4881
5129
|
}) {
|
|
4882
5130
|
const { isMobile } = useDevice();
|
|
4883
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className:
|
|
5131
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "preferences-panel", className: cn50("space-y-4 md:space-y-6", className), children: [
|
|
4884
5132
|
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4885
5133
|
"div",
|
|
4886
5134
|
{
|
|
@@ -4923,13 +5171,13 @@ function MosaicPreferencesPanel({
|
|
|
4923
5171
|
},
|
|
4924
5172
|
group.id
|
|
4925
5173
|
)),
|
|
4926
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5174
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn50("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4927
5175
|
"button",
|
|
4928
5176
|
{
|
|
4929
5177
|
type: "button",
|
|
4930
5178
|
onClick: onSave,
|
|
4931
5179
|
disabled: isSaving,
|
|
4932
|
-
className:
|
|
5180
|
+
className: cn50(
|
|
4933
5181
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
4934
5182
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
4935
5183
|
"hover:bg-primary/90",
|
|
@@ -4965,7 +5213,7 @@ function MosaicPreferencesPanel({
|
|
|
4965
5213
|
] });
|
|
4966
5214
|
}
|
|
4967
5215
|
MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
|
|
4968
|
-
function
|
|
5216
|
+
function cn51(...classes) {
|
|
4969
5217
|
return classes.filter(Boolean).join(" ");
|
|
4970
5218
|
}
|
|
4971
5219
|
function AvatarDisplay({
|
|
@@ -4978,7 +5226,7 @@ function AvatarDisplay({
|
|
|
4978
5226
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4979
5227
|
"span",
|
|
4980
5228
|
{
|
|
4981
|
-
className:
|
|
5229
|
+
className: cn51(
|
|
4982
5230
|
"inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
|
|
4983
5231
|
sizeClass
|
|
4984
5232
|
),
|
|
@@ -5010,7 +5258,7 @@ function MosaicProfilePanel({
|
|
|
5010
5258
|
className
|
|
5011
5259
|
}) {
|
|
5012
5260
|
const { isMobile } = useDevice();
|
|
5013
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className:
|
|
5261
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "profile-panel", className: cn51("space-y-4 md:space-y-6", className), children: [
|
|
5014
5262
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
|
|
5015
5263
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
|
|
5016
5264
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
|
|
@@ -5030,7 +5278,7 @@ function MosaicProfilePanel({
|
|
|
5030
5278
|
{
|
|
5031
5279
|
type: "button",
|
|
5032
5280
|
onClick: onAvatarUpload,
|
|
5033
|
-
className:
|
|
5281
|
+
className: cn51(
|
|
5034
5282
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
|
|
5035
5283
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5036
5284
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5080,7 +5328,7 @@ function MosaicProfilePanel({
|
|
|
5080
5328
|
placeholder: field.placeholder,
|
|
5081
5329
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5082
5330
|
rows: 4,
|
|
5083
|
-
className:
|
|
5331
|
+
className: cn51(
|
|
5084
5332
|
"flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5085
5333
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5086
5334
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5096,7 +5344,7 @@ function MosaicProfilePanel({
|
|
|
5096
5344
|
readOnly: field.readOnly,
|
|
5097
5345
|
placeholder: field.placeholder,
|
|
5098
5346
|
onChange: (e) => onFieldChange?.(field.id, e.target.value),
|
|
5099
|
-
className:
|
|
5347
|
+
className: cn51(
|
|
5100
5348
|
"flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
|
|
5101
5349
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
5102
5350
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5116,7 +5364,7 @@ function MosaicProfilePanel({
|
|
|
5116
5364
|
{
|
|
5117
5365
|
type: "button",
|
|
5118
5366
|
onClick: onChangePassword,
|
|
5119
|
-
className:
|
|
5367
|
+
className: cn51(
|
|
5120
5368
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
5121
5369
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
5122
5370
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5128,13 +5376,13 @@ function MosaicProfilePanel({
|
|
|
5128
5376
|
) })
|
|
5129
5377
|
] }),
|
|
5130
5378
|
extraSections,
|
|
5131
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5379
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn51("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5132
5380
|
"button",
|
|
5133
5381
|
{
|
|
5134
5382
|
type: "button",
|
|
5135
5383
|
onClick: onSave,
|
|
5136
5384
|
disabled: isSaving,
|
|
5137
|
-
className:
|
|
5385
|
+
className: cn51(
|
|
5138
5386
|
"inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
|
|
5139
5387
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
5140
5388
|
"hover:bg-primary/90",
|
|
@@ -5170,7 +5418,7 @@ function MosaicProfilePanel({
|
|
|
5170
5418
|
] });
|
|
5171
5419
|
}
|
|
5172
5420
|
MosaicProfilePanel.displayName = "MosaicProfilePanel";
|
|
5173
|
-
function
|
|
5421
|
+
function cn52(...classes) {
|
|
5174
5422
|
return classes.filter(Boolean).join(" ");
|
|
5175
5423
|
}
|
|
5176
5424
|
var ANIM_ID7 = "mosaic-main-nav-kf";
|
|
@@ -5283,7 +5531,7 @@ function MosaicMainNav({
|
|
|
5283
5531
|
{
|
|
5284
5532
|
type: "button",
|
|
5285
5533
|
onClick: () => setIsOpen(!isOpen),
|
|
5286
|
-
className:
|
|
5534
|
+
className: cn52(
|
|
5287
5535
|
"inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
|
|
5288
5536
|
"text-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5289
5537
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5309,7 +5557,7 @@ function MosaicMainNav({
|
|
|
5309
5557
|
"aria-label": drawerNavAriaLabel,
|
|
5310
5558
|
open: isOpen,
|
|
5311
5559
|
"data-open": isOpen ? "true" : "false",
|
|
5312
|
-
className:
|
|
5560
|
+
className: cn52(
|
|
5313
5561
|
"mosaic-nav-drawer",
|
|
5314
5562
|
"fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
|
|
5315
5563
|
"border-r border-border bg-background shadow-xl",
|
|
@@ -5326,7 +5574,7 @@ function MosaicMainNav({
|
|
|
5326
5574
|
{
|
|
5327
5575
|
type: "button",
|
|
5328
5576
|
onClick: () => setIsOpen(false),
|
|
5329
|
-
className:
|
|
5577
|
+
className: cn52(
|
|
5330
5578
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5331
5579
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5332
5580
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5339,7 +5587,7 @@ function MosaicMainNav({
|
|
|
5339
5587
|
/* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
|
|
5340
5588
|
const Icon = item.icon;
|
|
5341
5589
|
const active = isItemActive(item);
|
|
5342
|
-
const itemClass =
|
|
5590
|
+
const itemClass = cn52(
|
|
5343
5591
|
"flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
|
|
5344
5592
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5345
5593
|
"min-h-[44px]",
|
|
@@ -5365,12 +5613,12 @@ function MosaicMainNav({
|
|
|
5365
5613
|
"nav",
|
|
5366
5614
|
{
|
|
5367
5615
|
"data-slot": "main-nav",
|
|
5368
|
-
className:
|
|
5616
|
+
className: cn52("flex items-center gap-1", className),
|
|
5369
5617
|
"aria-label": mainNavAriaLabel,
|
|
5370
5618
|
children: filteredItems.map((item) => {
|
|
5371
5619
|
const Icon = item.icon;
|
|
5372
5620
|
const active = isItemActive(item);
|
|
5373
|
-
const itemClass =
|
|
5621
|
+
const itemClass = cn52(
|
|
5374
5622
|
"flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
|
|
5375
5623
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5376
5624
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -5390,7 +5638,7 @@ function MosaicMainNav({
|
|
|
5390
5638
|
);
|
|
5391
5639
|
}
|
|
5392
5640
|
MosaicMainNav.displayName = "MosaicMainNav";
|
|
5393
|
-
function
|
|
5641
|
+
function cn53(...classes) {
|
|
5394
5642
|
return classes.filter(Boolean).join(" ");
|
|
5395
5643
|
}
|
|
5396
5644
|
function MoreVertIcon() {
|
|
@@ -5530,7 +5778,7 @@ function MosaicAgentCard({
|
|
|
5530
5778
|
"div",
|
|
5531
5779
|
{
|
|
5532
5780
|
"data-slot": "agent-card",
|
|
5533
|
-
className:
|
|
5781
|
+
className: cn53(
|
|
5534
5782
|
"relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
5535
5783
|
"transition-shadow hover:shadow-md",
|
|
5536
5784
|
agent.isActive && "ring-2 ring-primary",
|
|
@@ -5540,7 +5788,7 @@ function MosaicAgentCard({
|
|
|
5540
5788
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5541
5789
|
"div",
|
|
5542
5790
|
{
|
|
5543
|
-
className:
|
|
5791
|
+
className: cn53(
|
|
5544
5792
|
"absolute left-0 top-0 h-1 w-full",
|
|
5545
5793
|
agent.isActive ? "bg-primary" : "bg-muted"
|
|
5546
5794
|
)
|
|
@@ -5552,7 +5800,7 @@ function MosaicAgentCard({
|
|
|
5552
5800
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5553
5801
|
"span",
|
|
5554
5802
|
{
|
|
5555
|
-
className:
|
|
5803
|
+
className: cn53("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5556
5804
|
"aria-hidden": "true"
|
|
5557
5805
|
}
|
|
5558
5806
|
),
|
|
@@ -5570,7 +5818,7 @@ function MosaicAgentCard({
|
|
|
5570
5818
|
{
|
|
5571
5819
|
type: "button",
|
|
5572
5820
|
onClick: () => setMenuOpen((v) => !v),
|
|
5573
|
-
className:
|
|
5821
|
+
className: cn53(
|
|
5574
5822
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
5575
5823
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
5576
5824
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5585,7 +5833,7 @@ function MosaicAgentCard({
|
|
|
5585
5833
|
"div",
|
|
5586
5834
|
{
|
|
5587
5835
|
role: "menu",
|
|
5588
|
-
className:
|
|
5836
|
+
className: cn53(
|
|
5589
5837
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
5590
5838
|
"bg-popover py-1 shadow-md"
|
|
5591
5839
|
),
|
|
@@ -5600,7 +5848,7 @@ function MosaicAgentCard({
|
|
|
5600
5848
|
onToggleStatus(agent.id);
|
|
5601
5849
|
setMenuOpen(false);
|
|
5602
5850
|
},
|
|
5603
|
-
className:
|
|
5851
|
+
className: cn53(
|
|
5604
5852
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
5605
5853
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5606
5854
|
"disabled:pointer-events-none disabled:opacity-50"
|
|
@@ -5659,7 +5907,7 @@ function MosaicAgentCard({
|
|
|
5659
5907
|
type: "button",
|
|
5660
5908
|
disabled: isLoading,
|
|
5661
5909
|
onClick: () => onToggleStatus(agent.id),
|
|
5662
|
-
className:
|
|
5910
|
+
className: cn53(
|
|
5663
5911
|
"inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
|
|
5664
5912
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
5665
5913
|
"disabled:pointer-events-none disabled:opacity-50",
|
|
@@ -5675,7 +5923,7 @@ function MosaicAgentCard({
|
|
|
5675
5923
|
);
|
|
5676
5924
|
}
|
|
5677
5925
|
MosaicAgentCard.displayName = "MosaicAgentCard";
|
|
5678
|
-
function
|
|
5926
|
+
function cn54(...classes) {
|
|
5679
5927
|
return classes.filter(Boolean).join(" ");
|
|
5680
5928
|
}
|
|
5681
5929
|
function PlusIcon3() {
|
|
@@ -5758,7 +6006,7 @@ function PickerContent({
|
|
|
5758
6006
|
{
|
|
5759
6007
|
type: "button",
|
|
5760
6008
|
onClick: () => onAdd(agent.id),
|
|
5761
|
-
className:
|
|
6009
|
+
className: cn54(
|
|
5762
6010
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5763
6011
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5764
6012
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5767,7 +6015,7 @@ function PickerContent({
|
|
|
5767
6015
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5768
6016
|
"span",
|
|
5769
6017
|
{
|
|
5770
|
-
className:
|
|
6018
|
+
className: cn54("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
|
|
5771
6019
|
"aria-hidden": "true"
|
|
5772
6020
|
}
|
|
5773
6021
|
),
|
|
@@ -5784,7 +6032,7 @@ function PickerContent({
|
|
|
5784
6032
|
{
|
|
5785
6033
|
type: "button",
|
|
5786
6034
|
onClick: onOpenBuilder,
|
|
5787
|
-
className:
|
|
6035
|
+
className: cn54(
|
|
5788
6036
|
"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
|
|
5789
6037
|
"hover:bg-accent hover:text-accent-foreground",
|
|
5790
6038
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -5839,11 +6087,11 @@ function MosaicQuickAgentSelector({
|
|
|
5839
6087
|
setPickerOpen(false);
|
|
5840
6088
|
};
|
|
5841
6089
|
const canAdd = selectedAgents.length < maxAgents;
|
|
5842
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className:
|
|
6090
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-agent-selector", className: cn54("flex items-center gap-2", className), children: [
|
|
5843
6091
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5844
6092
|
"div",
|
|
5845
6093
|
{
|
|
5846
|
-
className:
|
|
6094
|
+
className: cn54(
|
|
5847
6095
|
"group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
|
|
5848
6096
|
isMobile ? "px-2 py-1" : "px-3 py-1.5"
|
|
5849
6097
|
),
|
|
@@ -5851,17 +6099,17 @@ function MosaicQuickAgentSelector({
|
|
|
5851
6099
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5852
6100
|
"span",
|
|
5853
6101
|
{
|
|
5854
|
-
className:
|
|
6102
|
+
className: cn54("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
|
|
5855
6103
|
"aria-hidden": "true"
|
|
5856
6104
|
}
|
|
5857
6105
|
),
|
|
5858
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6106
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn54("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
|
|
5859
6107
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5860
6108
|
"button",
|
|
5861
6109
|
{
|
|
5862
6110
|
type: "button",
|
|
5863
6111
|
onClick: () => onRemoveAgent(agent.id),
|
|
5864
|
-
className:
|
|
6112
|
+
className: cn54(
|
|
5865
6113
|
"inline-flex h-4 w-4 items-center justify-center rounded",
|
|
5866
6114
|
"text-muted-foreground hover:text-foreground",
|
|
5867
6115
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -5881,7 +6129,7 @@ function MosaicQuickAgentSelector({
|
|
|
5881
6129
|
{
|
|
5882
6130
|
type: "button",
|
|
5883
6131
|
onClick: () => setPickerOpen((v) => !v),
|
|
5884
|
-
className:
|
|
6132
|
+
className: cn54(
|
|
5885
6133
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
5886
6134
|
"px-3 py-1.5 text-sm font-medium text-foreground",
|
|
5887
6135
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -5896,7 +6144,7 @@ function MosaicQuickAgentSelector({
|
|
|
5896
6144
|
!isMobile && pickerOpen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5897
6145
|
"div",
|
|
5898
6146
|
{
|
|
5899
|
-
className:
|
|
6147
|
+
className: cn54(
|
|
5900
6148
|
"absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
|
|
5901
6149
|
"bg-popover shadow-lg"
|
|
5902
6150
|
),
|
|
@@ -5945,7 +6193,7 @@ function MosaicQuickAgentSelector({
|
|
|
5945
6193
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5946
6194
|
"span",
|
|
5947
6195
|
{
|
|
5948
|
-
className:
|
|
6196
|
+
className: cn54(
|
|
5949
6197
|
"shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
|
|
5950
6198
|
),
|
|
5951
6199
|
children: [
|
|
@@ -5958,6 +6206,81 @@ function MosaicQuickAgentSelector({
|
|
|
5958
6206
|
] });
|
|
5959
6207
|
}
|
|
5960
6208
|
MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
|
|
6209
|
+
var agentPreviewVariants = classVarianceAuthority.cva(["rounded-lg border border-border"], {
|
|
6210
|
+
variants: {
|
|
6211
|
+
variant: {
|
|
6212
|
+
summary: ["flex items-center gap-3 p-3 bg-background"],
|
|
6213
|
+
detailed: []
|
|
6214
|
+
}
|
|
6215
|
+
},
|
|
6216
|
+
defaultVariants: {
|
|
6217
|
+
variant: "summary"
|
|
6218
|
+
}
|
|
6219
|
+
});
|
|
6220
|
+
function cn55(...classes) {
|
|
6221
|
+
return classes.filter(Boolean).join(" ");
|
|
6222
|
+
}
|
|
6223
|
+
function MosaicAgentPreview(props) {
|
|
6224
|
+
if (props.variant === "detailed") {
|
|
6225
|
+
const { name: name2, title, attributes, className: className2 } = props;
|
|
6226
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6227
|
+
"div",
|
|
6228
|
+
{
|
|
6229
|
+
"data-slot": "agent-preview",
|
|
6230
|
+
className: cn55(agentPreviewVariants({ variant: "detailed" }), className2),
|
|
6231
|
+
children: [
|
|
6232
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "agent-preview-header", className: "p-4 pb-0", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-base font-semibold leading-none tracking-tight", children: title }) }),
|
|
6233
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-4", children: [
|
|
6234
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-3 truncate text-sm font-medium", children: name2 }),
|
|
6235
|
+
attributes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2", children: attributes.map((attribute) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6236
|
+
"li",
|
|
6237
|
+
{
|
|
6238
|
+
"data-slot": "agent-preview-attribute",
|
|
6239
|
+
className: "flex items-start justify-between gap-3",
|
|
6240
|
+
children: [
|
|
6241
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium text-muted-foreground", children: attribute.label }),
|
|
6242
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-medium", children: attribute.value })
|
|
6243
|
+
]
|
|
6244
|
+
},
|
|
6245
|
+
attribute.id
|
|
6246
|
+
)) })
|
|
6247
|
+
] })
|
|
6248
|
+
]
|
|
6249
|
+
}
|
|
6250
|
+
);
|
|
6251
|
+
}
|
|
6252
|
+
const { name, tagline, badgeLabel, className } = props;
|
|
6253
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6254
|
+
"div",
|
|
6255
|
+
{
|
|
6256
|
+
"data-slot": "agent-preview",
|
|
6257
|
+
className: cn55(agentPreviewVariants({ variant: "summary" }), className),
|
|
6258
|
+
children: [
|
|
6259
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6260
|
+
"span",
|
|
6261
|
+
{
|
|
6262
|
+
"aria-hidden": "true",
|
|
6263
|
+
"data-slot": "agent-preview-avatar",
|
|
6264
|
+
className: "h-10 w-10 shrink-0 rounded-full bg-primary/10"
|
|
6265
|
+
}
|
|
6266
|
+
),
|
|
6267
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6268
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-medium", children: name }),
|
|
6269
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: tagline })
|
|
6270
|
+
] }),
|
|
6271
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6272
|
+
"span",
|
|
6273
|
+
{
|
|
6274
|
+
"data-slot": "agent-preview-badge",
|
|
6275
|
+
className: "shrink-0 rounded-full bg-secondary px-2.5 py-0.5 text-xs font-semibold text-secondary-foreground",
|
|
6276
|
+
children: badgeLabel
|
|
6277
|
+
}
|
|
6278
|
+
)
|
|
6279
|
+
]
|
|
6280
|
+
}
|
|
6281
|
+
);
|
|
6282
|
+
}
|
|
6283
|
+
MosaicAgentPreview.displayName = "MosaicAgentPreview";
|
|
5961
6284
|
var memoryCardVariants = classVarianceAuthority.cva(
|
|
5962
6285
|
[
|
|
5963
6286
|
"group relative rounded-lg border border-border bg-card text-card-foreground shadow-sm",
|
|
@@ -6023,7 +6346,7 @@ var memoryActionsMenuTriggerVariants = classVarianceAuthority.cva(
|
|
|
6023
6346
|
}
|
|
6024
6347
|
}
|
|
6025
6348
|
);
|
|
6026
|
-
function
|
|
6349
|
+
function cn56(...classes) {
|
|
6027
6350
|
return classes.filter(Boolean).join(" ");
|
|
6028
6351
|
}
|
|
6029
6352
|
var MAX_VISIBLE_TAGS = 3;
|
|
@@ -6201,7 +6524,7 @@ function MosaicMemoryCard(props) {
|
|
|
6201
6524
|
"aria-label": moreActionsLabel,
|
|
6202
6525
|
"aria-haspopup": "menu",
|
|
6203
6526
|
"aria-expanded": menuOpen,
|
|
6204
|
-
className:
|
|
6527
|
+
className: cn56(memoryActionsMenuTriggerVariants({ variant })),
|
|
6205
6528
|
children: /* @__PURE__ */ jsxRuntime.jsx(MoreVertIcon2, {})
|
|
6206
6529
|
}
|
|
6207
6530
|
),
|
|
@@ -6209,7 +6532,7 @@ function MosaicMemoryCard(props) {
|
|
|
6209
6532
|
"div",
|
|
6210
6533
|
{
|
|
6211
6534
|
role: "menu",
|
|
6212
|
-
className:
|
|
6535
|
+
className: cn56(
|
|
6213
6536
|
"absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
|
|
6214
6537
|
"bg-popover py-1 shadow-md"
|
|
6215
6538
|
),
|
|
@@ -6250,7 +6573,7 @@ function MosaicMemoryCard(props) {
|
|
|
6250
6573
|
ref,
|
|
6251
6574
|
"data-slot": "memory-card",
|
|
6252
6575
|
"data-variant": variant,
|
|
6253
|
-
className:
|
|
6576
|
+
className: cn56(memoryCardVariants({ variant }), className),
|
|
6254
6577
|
children: props.variant !== "compact" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3", children: [
|
|
6255
6578
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-3", children: [
|
|
6256
6579
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
|
|
@@ -6260,7 +6583,7 @@ function MosaicMemoryCard(props) {
|
|
|
6260
6583
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6261
6584
|
"span",
|
|
6262
6585
|
{
|
|
6263
|
-
className:
|
|
6586
|
+
className: cn56(
|
|
6264
6587
|
memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
|
|
6265
6588
|
"mt-1"
|
|
6266
6589
|
),
|
|
@@ -6273,8 +6596,8 @@ function MosaicMemoryCard(props) {
|
|
|
6273
6596
|
] }),
|
|
6274
6597
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
|
|
6275
6598
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "memory-tags", className: "flex flex-wrap gap-1", children: [
|
|
6276
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6277
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6599
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn56(memoryTagBadgeVariants()), children: tag }, tag)),
|
|
6600
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn56(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
|
|
6278
6601
|
] }),
|
|
6279
6602
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
|
|
6280
6603
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex items-center gap-1", children: [
|
|
@@ -6302,7 +6625,7 @@ function MosaicMemoryCard(props) {
|
|
|
6302
6625
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6303
6626
|
"span",
|
|
6304
6627
|
{
|
|
6305
|
-
className:
|
|
6628
|
+
className: cn56(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
|
|
6306
6629
|
children: formatScope(memory.scope)
|
|
6307
6630
|
}
|
|
6308
6631
|
),
|
|
@@ -6344,7 +6667,7 @@ var templateAgentCardBadgeVariants = classVarianceAuthority.cva([
|
|
|
6344
6667
|
var templateAgentCardTagVariants = classVarianceAuthority.cva([
|
|
6345
6668
|
"inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
|
|
6346
6669
|
]);
|
|
6347
|
-
function
|
|
6670
|
+
function cn57(...classes) {
|
|
6348
6671
|
return classes.filter(Boolean).join(" ");
|
|
6349
6672
|
}
|
|
6350
6673
|
var MAX_VISIBLE_TAGS2 = 3;
|
|
@@ -6413,7 +6736,7 @@ function MosaicTemplateAgentCard({
|
|
|
6413
6736
|
{
|
|
6414
6737
|
ref,
|
|
6415
6738
|
"data-slot": "template-agent-card",
|
|
6416
|
-
className:
|
|
6739
|
+
className: cn57(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
|
|
6417
6740
|
children: [
|
|
6418
6741
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6419
6742
|
"button",
|
|
@@ -6422,7 +6745,7 @@ function MosaicTemplateAgentCard({
|
|
|
6422
6745
|
onClick: () => onSelect(template),
|
|
6423
6746
|
"aria-label": selectAriaLabel,
|
|
6424
6747
|
"aria-pressed": isSelected,
|
|
6425
|
-
className:
|
|
6748
|
+
className: cn57(
|
|
6426
6749
|
"flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
|
|
6427
6750
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
6428
6751
|
),
|
|
@@ -6436,11 +6759,11 @@ function MosaicTemplateAgentCard({
|
|
|
6436
6759
|
}
|
|
6437
6760
|
) }),
|
|
6438
6761
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
|
|
6439
|
-
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6440
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6441
|
-
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6442
|
-
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6443
|
-
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
6762
|
+
template.category && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: template.category }),
|
|
6763
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: agentCountLabel }),
|
|
6764
|
+
formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
|
|
6765
|
+
visibleTags.map((tag) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(templateAgentCardTagVariants()), children: tag }, tag)),
|
|
6766
|
+
hiddenTagCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn57(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
|
|
6444
6767
|
] }),
|
|
6445
6768
|
(onPreview || onDuplicate) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
|
|
6446
6769
|
onPreview && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6449,7 +6772,7 @@ function MosaicTemplateAgentCard({
|
|
|
6449
6772
|
type: "button",
|
|
6450
6773
|
onClick: () => onPreview(template),
|
|
6451
6774
|
"aria-label": previewAriaLabel,
|
|
6452
|
-
className:
|
|
6775
|
+
className: cn57(
|
|
6453
6776
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6454
6777
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6455
6778
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6466,7 +6789,7 @@ function MosaicTemplateAgentCard({
|
|
|
6466
6789
|
type: "button",
|
|
6467
6790
|
onClick: () => onDuplicate(template),
|
|
6468
6791
|
"aria-label": duplicateAriaLabel,
|
|
6469
|
-
className:
|
|
6792
|
+
className: cn57(
|
|
6470
6793
|
"inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
|
|
6471
6794
|
"text-muted-foreground hover:bg-accent hover:text-accent-foreground",
|
|
6472
6795
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6483,7 +6806,7 @@ function MosaicTemplateAgentCard({
|
|
|
6483
6806
|
);
|
|
6484
6807
|
}
|
|
6485
6808
|
MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
|
|
6486
|
-
function
|
|
6809
|
+
function cn58(...classes) {
|
|
6487
6810
|
return classes.filter(Boolean).join(" ");
|
|
6488
6811
|
}
|
|
6489
6812
|
function SearchIcon() {
|
|
@@ -6584,7 +6907,7 @@ function MosaicSelectorModal({
|
|
|
6584
6907
|
value: query,
|
|
6585
6908
|
onChange: (e) => setQuery(e.target.value),
|
|
6586
6909
|
placeholder: searchPlaceholder,
|
|
6587
|
-
className:
|
|
6910
|
+
className: cn58(
|
|
6588
6911
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
6589
6912
|
"text-sm text-foreground placeholder:text-muted-foreground",
|
|
6590
6913
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -6598,7 +6921,7 @@ function MosaicSelectorModal({
|
|
|
6598
6921
|
{
|
|
6599
6922
|
type: "button",
|
|
6600
6923
|
onClick: () => setActiveCategory("all"),
|
|
6601
|
-
className:
|
|
6924
|
+
className: cn58(
|
|
6602
6925
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6603
6926
|
activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6604
6927
|
),
|
|
@@ -6610,7 +6933,7 @@ function MosaicSelectorModal({
|
|
|
6610
6933
|
{
|
|
6611
6934
|
type: "button",
|
|
6612
6935
|
onClick: () => setActiveCategory(cat.id),
|
|
6613
|
-
className:
|
|
6936
|
+
className: cn58(
|
|
6614
6937
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
6615
6938
|
activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
6616
6939
|
),
|
|
@@ -6622,7 +6945,7 @@ function MosaicSelectorModal({
|
|
|
6622
6945
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
6623
6946
|
"div",
|
|
6624
6947
|
{
|
|
6625
|
-
className:
|
|
6948
|
+
className: cn58(
|
|
6626
6949
|
"max-h-[50vh] overflow-y-auto",
|
|
6627
6950
|
columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
|
|
6628
6951
|
),
|
|
@@ -6634,7 +6957,7 @@ function MosaicSelectorModal({
|
|
|
6634
6957
|
{
|
|
6635
6958
|
type: "button",
|
|
6636
6959
|
onClick: () => setPendingId(item.id),
|
|
6637
|
-
className:
|
|
6960
|
+
className: cn58(
|
|
6638
6961
|
"group relative rounded-lg border p-4 text-left transition-all duration-150",
|
|
6639
6962
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
6640
6963
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
|
|
@@ -6672,7 +6995,7 @@ function MosaicSelectorModal({
|
|
|
6672
6995
|
{
|
|
6673
6996
|
type: "button",
|
|
6674
6997
|
onClick: onClose,
|
|
6675
|
-
className:
|
|
6998
|
+
className: cn58(
|
|
6676
6999
|
"inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
|
|
6677
7000
|
"bg-background px-4 py-2 text-sm font-medium text-foreground",
|
|
6678
7001
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -6687,7 +7010,7 @@ function MosaicSelectorModal({
|
|
|
6687
7010
|
type: "button",
|
|
6688
7011
|
onClick: handleConfirm,
|
|
6689
7012
|
disabled: !pendingItem,
|
|
6690
|
-
className:
|
|
7013
|
+
className: cn58(
|
|
6691
7014
|
"inline-flex min-h-[44px] items-center justify-center rounded-md",
|
|
6692
7015
|
"bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
6693
7016
|
"hover:bg-primary/90",
|
|
@@ -6703,7 +7026,7 @@ function MosaicSelectorModal({
|
|
|
6703
7026
|
);
|
|
6704
7027
|
}
|
|
6705
7028
|
MosaicSelectorModal.displayName = "MosaicSelectorModal";
|
|
6706
|
-
function
|
|
7029
|
+
function cn59(...classes) {
|
|
6707
7030
|
return classes.filter(Boolean).join(" ");
|
|
6708
7031
|
}
|
|
6709
7032
|
function relativeTime(ts) {
|
|
@@ -6959,7 +7282,7 @@ function MosaicMessageCard({
|
|
|
6959
7282
|
"div",
|
|
6960
7283
|
{
|
|
6961
7284
|
"data-slot": "message-card",
|
|
6962
|
-
className:
|
|
7285
|
+
className: cn59(
|
|
6963
7286
|
"rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
|
|
6964
7287
|
compact && "p-3",
|
|
6965
7288
|
message.sender.type === "user" && "bg-primary/5",
|
|
@@ -6969,7 +7292,7 @@ function MosaicMessageCard({
|
|
|
6969
7292
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6970
7293
|
"span",
|
|
6971
7294
|
{
|
|
6972
|
-
className:
|
|
7295
|
+
className: cn59(
|
|
6973
7296
|
"inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
|
|
6974
7297
|
compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
|
|
6975
7298
|
message.sender.accentColor ?? "bg-muted text-muted-foreground"
|
|
@@ -6987,7 +7310,7 @@ function MosaicMessageCard({
|
|
|
6987
7310
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
6988
7311
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
|
|
6989
7312
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
6990
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
7313
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn59("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
|
|
6991
7314
|
message.sender.type === "ai" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
|
|
6992
7315
|
] }),
|
|
6993
7316
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
|
|
@@ -6995,7 +7318,7 @@ function MosaicMessageCard({
|
|
|
6995
7318
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6996
7319
|
"p",
|
|
6997
7320
|
{
|
|
6998
|
-
className:
|
|
7321
|
+
className: cn59(
|
|
6999
7322
|
"leading-relaxed text-foreground mb-3",
|
|
7000
7323
|
compact ? "text-sm" : "text-base"
|
|
7001
7324
|
),
|
|
@@ -7010,7 +7333,7 @@ function MosaicMessageCard({
|
|
|
7010
7333
|
{
|
|
7011
7334
|
type: "button",
|
|
7012
7335
|
onClick: handleLike,
|
|
7013
|
-
className:
|
|
7336
|
+
className: cn59(
|
|
7014
7337
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7015
7338
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7016
7339
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7028,7 +7351,7 @@ function MosaicMessageCard({
|
|
|
7028
7351
|
{
|
|
7029
7352
|
type: "button",
|
|
7030
7353
|
onClick: handleDislike,
|
|
7031
|
-
className:
|
|
7354
|
+
className: cn59(
|
|
7032
7355
|
"inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
|
|
7033
7356
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7034
7357
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7073,7 +7396,7 @@ function MosaicMessageCard({
|
|
|
7073
7396
|
{
|
|
7074
7397
|
type: "button",
|
|
7075
7398
|
onClick: handleBookmark,
|
|
7076
|
-
className:
|
|
7399
|
+
className: cn59(
|
|
7077
7400
|
"inline-flex h-8 w-8 items-center justify-center rounded-md",
|
|
7078
7401
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7079
7402
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
@@ -7174,7 +7497,7 @@ function MosaicMessageCard({
|
|
|
7174
7497
|
);
|
|
7175
7498
|
}
|
|
7176
7499
|
MosaicMessageCard.displayName = "MosaicMessageCard";
|
|
7177
|
-
function
|
|
7500
|
+
function cn60(...classes) {
|
|
7178
7501
|
return classes.filter(Boolean).join(" ");
|
|
7179
7502
|
}
|
|
7180
7503
|
function SearchIcon2() {
|
|
@@ -7224,7 +7547,7 @@ function MessageListDesktop({
|
|
|
7224
7547
|
const filtered = query ? messages.filter(
|
|
7225
7548
|
(m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
|
|
7226
7549
|
) : messages;
|
|
7227
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className:
|
|
7550
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-desktop", className: cn60("flex h-full flex-col", className), children: [
|
|
7228
7551
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
|
|
7229
7552
|
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-lg font-semibold", children: title }),
|
|
7230
7553
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
|
|
@@ -7236,7 +7559,7 @@ function MessageListDesktop({
|
|
|
7236
7559
|
value: query,
|
|
7237
7560
|
onChange: (e) => setQuery(e.target.value),
|
|
7238
7561
|
placeholder: searchPlaceholder,
|
|
7239
|
-
className:
|
|
7562
|
+
className: cn60(
|
|
7240
7563
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7241
7564
|
"text-sm placeholder:text-muted-foreground",
|
|
7242
7565
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7272,7 +7595,7 @@ function MessageListDesktop({
|
|
|
7272
7595
|
{
|
|
7273
7596
|
type: "button",
|
|
7274
7597
|
onClick: onLoadMore,
|
|
7275
|
-
className:
|
|
7598
|
+
className: cn60(
|
|
7276
7599
|
"w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7277
7600
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7278
7601
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7303,7 +7626,7 @@ function MessageListMobile({
|
|
|
7303
7626
|
copyMessageLabel,
|
|
7304
7627
|
className
|
|
7305
7628
|
}) {
|
|
7306
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className:
|
|
7629
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "message-list-mobile", className: cn60("flex flex-col", className), children: [
|
|
7307
7630
|
title && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-base font-semibold", children: title }) }),
|
|
7308
7631
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-3 p-4", children: [
|
|
7309
7632
|
isLoading && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
|
|
@@ -7333,7 +7656,7 @@ function MessageListMobile({
|
|
|
7333
7656
|
{
|
|
7334
7657
|
type: "button",
|
|
7335
7658
|
onClick: onLoadMore,
|
|
7336
|
-
className:
|
|
7659
|
+
className: cn60(
|
|
7337
7660
|
"w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
|
|
7338
7661
|
"hover:bg-accent hover:text-accent-foreground",
|
|
7339
7662
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7348,7 +7671,7 @@ function MosaicMessageList(props) {
|
|
|
7348
7671
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MessageListDesktop, { ...props });
|
|
7349
7672
|
}
|
|
7350
7673
|
MosaicMessageList.displayName = "MosaicMessageList";
|
|
7351
|
-
function
|
|
7674
|
+
function cn61(...classes) {
|
|
7352
7675
|
return classes.filter(Boolean).join(" ");
|
|
7353
7676
|
}
|
|
7354
7677
|
function ChevronLeftIcon2() {
|
|
@@ -7428,7 +7751,7 @@ function MosaicFilterSidebar({
|
|
|
7428
7751
|
{
|
|
7429
7752
|
"data-slot": "filter-sidebar",
|
|
7430
7753
|
style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
|
|
7431
|
-
className:
|
|
7754
|
+
className: cn61(
|
|
7432
7755
|
"relative flex flex-col border-r border-border bg-card",
|
|
7433
7756
|
"transition-[width] duration-200 ease-in-out",
|
|
7434
7757
|
"overflow-hidden",
|
|
@@ -7440,7 +7763,7 @@ function MosaicFilterSidebar({
|
|
|
7440
7763
|
{
|
|
7441
7764
|
type: "button",
|
|
7442
7765
|
onClick: onToggleCollapse,
|
|
7443
|
-
className:
|
|
7766
|
+
className: cn61(
|
|
7444
7767
|
"absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
|
|
7445
7768
|
"border border-border bg-background shadow-sm",
|
|
7446
7769
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7470,7 +7793,7 @@ function MosaicFilterSidebar({
|
|
|
7470
7793
|
{
|
|
7471
7794
|
type: "button",
|
|
7472
7795
|
onClick: () => onFilterChange(f.id),
|
|
7473
|
-
className:
|
|
7796
|
+
className: cn61(
|
|
7474
7797
|
"flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
|
|
7475
7798
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7476
7799
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7490,7 +7813,7 @@ function MosaicFilterSidebar({
|
|
|
7490
7813
|
{
|
|
7491
7814
|
type: "button",
|
|
7492
7815
|
onClick: () => onCategoryChange(cat.id),
|
|
7493
|
-
className:
|
|
7816
|
+
className: cn61(
|
|
7494
7817
|
"flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
|
|
7495
7818
|
"transition-colors hover:bg-accent hover:text-accent-foreground",
|
|
7496
7819
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -7510,7 +7833,7 @@ function MosaicFilterSidebar({
|
|
|
7510
7833
|
);
|
|
7511
7834
|
}
|
|
7512
7835
|
MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
|
|
7513
|
-
function
|
|
7836
|
+
function cn62(...classes) {
|
|
7514
7837
|
return classes.filter(Boolean).join(" ");
|
|
7515
7838
|
}
|
|
7516
7839
|
function SearchIcon3() {
|
|
@@ -7635,7 +7958,7 @@ function AgentListDesktop({
|
|
|
7635
7958
|
value: query,
|
|
7636
7959
|
onChange: (e) => setQuery(e.target.value),
|
|
7637
7960
|
placeholder: searchPlaceholder,
|
|
7638
|
-
className:
|
|
7961
|
+
className: cn62(
|
|
7639
7962
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7640
7963
|
"text-sm placeholder:text-muted-foreground",
|
|
7641
7964
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7648,7 +7971,7 @@ function AgentListDesktop({
|
|
|
7648
7971
|
{
|
|
7649
7972
|
type: "button",
|
|
7650
7973
|
onClick: onCreateAgent,
|
|
7651
|
-
className:
|
|
7974
|
+
className: cn62(
|
|
7652
7975
|
"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
|
|
7653
7976
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7654
7977
|
),
|
|
@@ -7717,7 +8040,7 @@ function AgentListMobile({
|
|
|
7717
8040
|
{
|
|
7718
8041
|
type: "button",
|
|
7719
8042
|
onClick: () => setFilterOpen(true),
|
|
7720
|
-
className:
|
|
8043
|
+
className: cn62(
|
|
7721
8044
|
"inline-flex h-9 w-9 items-center justify-center rounded-md",
|
|
7722
8045
|
"border border-border bg-background text-foreground",
|
|
7723
8046
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7732,7 +8055,7 @@ function AgentListMobile({
|
|
|
7732
8055
|
{
|
|
7733
8056
|
type: "button",
|
|
7734
8057
|
onClick: onCreateAgent,
|
|
7735
|
-
className:
|
|
8058
|
+
className: cn62(
|
|
7736
8059
|
"inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
|
|
7737
8060
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
7738
8061
|
),
|
|
@@ -7753,7 +8076,7 @@ function AgentListMobile({
|
|
|
7753
8076
|
value: query,
|
|
7754
8077
|
onChange: (e) => setQuery(e.target.value),
|
|
7755
8078
|
placeholder: searchPlaceholder,
|
|
7756
|
-
className:
|
|
8079
|
+
className: cn62(
|
|
7757
8080
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
7758
8081
|
"text-sm placeholder:text-muted-foreground",
|
|
7759
8082
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -7815,7 +8138,7 @@ function MosaicAgentList(props) {
|
|
|
7815
8138
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(AgentListDesktop, { ...props });
|
|
7816
8139
|
}
|
|
7817
8140
|
MosaicAgentList.displayName = "MosaicAgentList";
|
|
7818
|
-
function
|
|
8141
|
+
function cn63(...classes) {
|
|
7819
8142
|
return classes.filter(Boolean).join(" ");
|
|
7820
8143
|
}
|
|
7821
8144
|
function StarIcon({ filled }) {
|
|
@@ -7912,7 +8235,7 @@ function MarketplaceCard({
|
|
|
7912
8235
|
"div",
|
|
7913
8236
|
{
|
|
7914
8237
|
"data-slot": "marketplace-card",
|
|
7915
|
-
className:
|
|
8238
|
+
className: cn63(
|
|
7916
8239
|
"rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
|
|
7917
8240
|
compact ? "flex items-center gap-3" : "flex flex-col gap-3"
|
|
7918
8241
|
),
|
|
@@ -7920,7 +8243,7 @@ function MarketplaceCard({
|
|
|
7920
8243
|
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7921
8244
|
"div",
|
|
7922
8245
|
{
|
|
7923
|
-
className:
|
|
8246
|
+
className: cn63(
|
|
7924
8247
|
"flex shrink-0 items-center justify-center rounded-lg",
|
|
7925
8248
|
compact ? "h-10 w-10" : "h-12 w-12",
|
|
7926
8249
|
item.accentClass ?? "bg-muted text-muted-foreground"
|
|
@@ -7931,7 +8254,7 @@ function MarketplaceCard({
|
|
|
7931
8254
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
7932
8255
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
7933
8256
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
7934
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
8257
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn63("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
|
|
7935
8258
|
item.description && !compact && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
|
|
7936
8259
|
] }),
|
|
7937
8260
|
item.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
|
|
@@ -7948,13 +8271,13 @@ function MarketplaceCard({
|
|
|
7948
8271
|
] })
|
|
7949
8272
|
] })
|
|
7950
8273
|
] }),
|
|
7951
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
8274
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn63("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
7952
8275
|
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7953
8276
|
"button",
|
|
7954
8277
|
{
|
|
7955
8278
|
type: "button",
|
|
7956
8279
|
onClick: () => onPreview(item.id),
|
|
7957
|
-
className:
|
|
8280
|
+
className: cn63(
|
|
7958
8281
|
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
7959
8282
|
"bg-background px-3 text-xs font-medium text-foreground",
|
|
7960
8283
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -7968,7 +8291,7 @@ function MarketplaceCard({
|
|
|
7968
8291
|
{
|
|
7969
8292
|
type: "button",
|
|
7970
8293
|
onClick: () => onUninstall(item.id),
|
|
7971
|
-
className:
|
|
8294
|
+
className: cn63(
|
|
7972
8295
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7973
8296
|
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
7974
8297
|
"hover:bg-secondary/80",
|
|
@@ -7981,7 +8304,7 @@ function MarketplaceCard({
|
|
|
7981
8304
|
{
|
|
7982
8305
|
type: "button",
|
|
7983
8306
|
onClick: () => onInstall(item.id),
|
|
7984
|
-
className:
|
|
8307
|
+
className: cn63(
|
|
7985
8308
|
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
7986
8309
|
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
7987
8310
|
"hover:bg-primary/90",
|
|
@@ -8053,7 +8376,7 @@ function MarketplaceListDesktop(props) {
|
|
|
8053
8376
|
value: query,
|
|
8054
8377
|
onChange: (e) => setQuery(e.target.value),
|
|
8055
8378
|
placeholder: searchPlaceholder,
|
|
8056
|
-
className:
|
|
8379
|
+
className: cn63(
|
|
8057
8380
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8058
8381
|
"text-sm placeholder:text-muted-foreground",
|
|
8059
8382
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8136,7 +8459,7 @@ function MarketplaceListMobile(props) {
|
|
|
8136
8459
|
value: query,
|
|
8137
8460
|
onChange: (e) => setQuery(e.target.value),
|
|
8138
8461
|
placeholder: searchPlaceholder,
|
|
8139
|
-
className:
|
|
8462
|
+
className: cn63(
|
|
8140
8463
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
8141
8464
|
"text-sm placeholder:text-muted-foreground",
|
|
8142
8465
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8201,7 +8524,7 @@ function MosaicMarketplaceList(props) {
|
|
|
8201
8524
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
8202
8525
|
}
|
|
8203
8526
|
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
8204
|
-
function
|
|
8527
|
+
function cn64(...classes) {
|
|
8205
8528
|
return classes.filter(Boolean).join(" ");
|
|
8206
8529
|
}
|
|
8207
8530
|
function StarIcon2() {
|
|
@@ -8322,7 +8645,7 @@ function MosaicTemplateCard({
|
|
|
8322
8645
|
type: "button",
|
|
8323
8646
|
onClick: () => onSelect(template),
|
|
8324
8647
|
"data-slot": "template-card",
|
|
8325
|
-
className:
|
|
8648
|
+
className: cn64(
|
|
8326
8649
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8327
8650
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8328
8651
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8423,7 +8746,7 @@ function MosaicTemplatePreview({
|
|
|
8423
8746
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8424
8747
|
"span",
|
|
8425
8748
|
{
|
|
8426
|
-
className:
|
|
8749
|
+
className: cn64("h-2 w-2 rounded-full", agent.accentColor),
|
|
8427
8750
|
"aria-hidden": "true"
|
|
8428
8751
|
}
|
|
8429
8752
|
),
|
|
@@ -8483,7 +8806,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8483
8806
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8484
8807
|
"span",
|
|
8485
8808
|
{
|
|
8486
|
-
className:
|
|
8809
|
+
className: cn64("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8487
8810
|
"aria-hidden": "true"
|
|
8488
8811
|
}
|
|
8489
8812
|
),
|
|
@@ -8507,7 +8830,7 @@ function MosaicQuickStartPanel({
|
|
|
8507
8830
|
scratchLabel,
|
|
8508
8831
|
className
|
|
8509
8832
|
}) {
|
|
8510
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
8833
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn64("flex flex-col gap-6", className), children: [
|
|
8511
8834
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8512
8835
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8513
8836
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8515,7 +8838,7 @@ function MosaicQuickStartPanel({
|
|
|
8515
8838
|
{
|
|
8516
8839
|
type: "button",
|
|
8517
8840
|
onClick: () => onSelectScenario(scenario),
|
|
8518
|
-
className:
|
|
8841
|
+
className: cn64(
|
|
8519
8842
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8520
8843
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8521
8844
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8547,7 +8870,7 @@ function MosaicQuickStartPanel({
|
|
|
8547
8870
|
{
|
|
8548
8871
|
type: "button",
|
|
8549
8872
|
onClick: () => onSelectPreset(preset),
|
|
8550
|
-
className:
|
|
8873
|
+
className: cn64(
|
|
8551
8874
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8552
8875
|
"hover:border-primary/50",
|
|
8553
8876
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8561,7 +8884,7 @@ function MosaicQuickStartPanel({
|
|
|
8561
8884
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8562
8885
|
"span",
|
|
8563
8886
|
{
|
|
8564
|
-
className:
|
|
8887
|
+
className: cn64("h-2 w-2 rounded-full", a.accentColor),
|
|
8565
8888
|
"aria-hidden": "true"
|
|
8566
8889
|
}
|
|
8567
8890
|
),
|
|
@@ -8579,7 +8902,7 @@ function MosaicQuickStartPanel({
|
|
|
8579
8902
|
{
|
|
8580
8903
|
type: "button",
|
|
8581
8904
|
onClick: onStartFromScratch,
|
|
8582
|
-
className:
|
|
8905
|
+
className: cn64(
|
|
8583
8906
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
8584
8907
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
8585
8908
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8673,7 +8996,7 @@ function TemplateGalleryContent({
|
|
|
8673
8996
|
value: query,
|
|
8674
8997
|
onChange: (e) => setQuery(e.target.value),
|
|
8675
8998
|
placeholder: searchPlaceholder,
|
|
8676
|
-
className:
|
|
8999
|
+
className: cn64(
|
|
8677
9000
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8678
9001
|
)
|
|
8679
9002
|
}
|
|
@@ -8724,7 +9047,7 @@ function TemplateGalleryContent({
|
|
|
8724
9047
|
value: query,
|
|
8725
9048
|
onChange: (e) => setQuery(e.target.value),
|
|
8726
9049
|
placeholder: searchPlaceholder,
|
|
8727
|
-
className:
|
|
9050
|
+
className: cn64(
|
|
8728
9051
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8729
9052
|
)
|
|
8730
9053
|
}
|
|
@@ -8756,7 +9079,7 @@ function MosaicTemplateGallery(props) {
|
|
|
8756
9079
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
8757
9080
|
}
|
|
8758
9081
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
8759
|
-
function
|
|
9082
|
+
function cn65(...classes) {
|
|
8760
9083
|
return classes.filter(Boolean).join(" ");
|
|
8761
9084
|
}
|
|
8762
9085
|
function PlusIcon5() {
|
|
@@ -8907,7 +9230,7 @@ function MosaicModuleForm(props) {
|
|
|
8907
9230
|
onChange: (e) => update("name", e.target.value),
|
|
8908
9231
|
placeholder: namePlaceholder,
|
|
8909
9232
|
required: true,
|
|
8910
|
-
className:
|
|
9233
|
+
className: cn65(
|
|
8911
9234
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8912
9235
|
"text-sm placeholder:text-muted-foreground",
|
|
8913
9236
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8925,7 +9248,7 @@ function MosaicModuleForm(props) {
|
|
|
8925
9248
|
onChange: (e) => update("description", e.target.value),
|
|
8926
9249
|
placeholder: descriptionPlaceholder,
|
|
8927
9250
|
rows: 3,
|
|
8928
|
-
className:
|
|
9251
|
+
className: cn65(
|
|
8929
9252
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8930
9253
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8931
9254
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8947,7 +9270,7 @@ function MosaicModuleForm(props) {
|
|
|
8947
9270
|
value: formData[field.id] ?? "",
|
|
8948
9271
|
onChange: (e) => update(field.id, e.target.value),
|
|
8949
9272
|
placeholder: field.placeholder,
|
|
8950
|
-
className:
|
|
9273
|
+
className: cn65(
|
|
8951
9274
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8952
9275
|
"text-sm placeholder:text-muted-foreground",
|
|
8953
9276
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8962,7 +9285,7 @@ function MosaicModuleForm(props) {
|
|
|
8962
9285
|
onChange: (e) => update(field.id, e.target.value),
|
|
8963
9286
|
placeholder: field.placeholder,
|
|
8964
9287
|
rows: 3,
|
|
8965
|
-
className:
|
|
9288
|
+
className: cn65(
|
|
8966
9289
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8967
9290
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8968
9291
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8978,7 +9301,7 @@ function MosaicModuleForm(props) {
|
|
|
8978
9301
|
onChange: (e) => update(field.id, e.target.value),
|
|
8979
9302
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
8980
9303
|
maxLength: 4,
|
|
8981
|
-
className:
|
|
9304
|
+
className: cn65(
|
|
8982
9305
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8983
9306
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8984
9307
|
)
|
|
@@ -8999,7 +9322,7 @@ function MosaicModuleForm(props) {
|
|
|
8999
9322
|
}
|
|
9000
9323
|
},
|
|
9001
9324
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9002
|
-
className:
|
|
9325
|
+
className: cn65(
|
|
9003
9326
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9004
9327
|
"text-sm placeholder:text-muted-foreground",
|
|
9005
9328
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9211,7 +9534,7 @@ function LibraryContent({
|
|
|
9211
9534
|
{
|
|
9212
9535
|
type: "button",
|
|
9213
9536
|
onClick: openCreate,
|
|
9214
|
-
className:
|
|
9537
|
+
className: cn65(
|
|
9215
9538
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9216
9539
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9217
9540
|
),
|
|
@@ -9231,7 +9554,7 @@ function LibraryContent({
|
|
|
9231
9554
|
value: query,
|
|
9232
9555
|
onChange: (e) => setQuery(e.target.value),
|
|
9233
9556
|
placeholder: searchPlaceholder,
|
|
9234
|
-
className:
|
|
9557
|
+
className: cn65(
|
|
9235
9558
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9236
9559
|
"text-sm placeholder:text-muted-foreground",
|
|
9237
9560
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9244,7 +9567,7 @@ function LibraryContent({
|
|
|
9244
9567
|
{
|
|
9245
9568
|
type: "button",
|
|
9246
9569
|
onClick: () => setActiveTab(tab.id),
|
|
9247
|
-
className:
|
|
9570
|
+
className: cn65(
|
|
9248
9571
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9249
9572
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9250
9573
|
),
|
|
@@ -9296,7 +9619,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9296
9619
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
9297
9620
|
}
|
|
9298
9621
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9299
|
-
function
|
|
9622
|
+
function cn66(...classes) {
|
|
9300
9623
|
return classes.filter(Boolean).join(" ");
|
|
9301
9624
|
}
|
|
9302
9625
|
var roleConfig = {
|
|
@@ -9323,7 +9646,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9323
9646
|
{
|
|
9324
9647
|
"data-slot": "org-role-badge",
|
|
9325
9648
|
title: config.description,
|
|
9326
|
-
className:
|
|
9649
|
+
className: cn66(
|
|
9327
9650
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9328
9651
|
config.className,
|
|
9329
9652
|
className
|
|
@@ -9340,13 +9663,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9340
9663
|
className
|
|
9341
9664
|
}) {
|
|
9342
9665
|
if (orgCount <= 1) return null;
|
|
9343
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9666
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn66("flex items-center gap-2", className), children: [
|
|
9344
9667
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9345
9668
|
"button",
|
|
9346
9669
|
{
|
|
9347
9670
|
type: "button",
|
|
9348
9671
|
onClick: onSwitchOrg,
|
|
9349
|
-
className:
|
|
9672
|
+
className: cn66(
|
|
9350
9673
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9351
9674
|
"hover:bg-secondary/80",
|
|
9352
9675
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9460,7 +9783,7 @@ function MosaicCreateOrgDialog({
|
|
|
9460
9783
|
onChange: (e) => setName(e.target.value),
|
|
9461
9784
|
placeholder: orgNamePlaceholder,
|
|
9462
9785
|
required: true,
|
|
9463
|
-
className:
|
|
9786
|
+
className: cn66(
|
|
9464
9787
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9465
9788
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9466
9789
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9480,7 +9803,7 @@ function MosaicCreateOrgDialog({
|
|
|
9480
9803
|
onChange: (e) => setSlug(e.target.value),
|
|
9481
9804
|
placeholder: "acme-inc",
|
|
9482
9805
|
required: true,
|
|
9483
|
-
className:
|
|
9806
|
+
className: cn66(
|
|
9484
9807
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9485
9808
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9486
9809
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9593,7 +9916,7 @@ function MosaicInviteMemberDialog({
|
|
|
9593
9916
|
onChange: (e) => setEmail(e.target.value),
|
|
9594
9917
|
placeholder: emailPlaceholder,
|
|
9595
9918
|
required: true,
|
|
9596
|
-
className:
|
|
9919
|
+
className: cn66(
|
|
9597
9920
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9598
9921
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9599
9922
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -9780,7 +10103,7 @@ function MosaicMemberList({
|
|
|
9780
10103
|
const filtered = members.filter(
|
|
9781
10104
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
9782
10105
|
);
|
|
9783
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
10106
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn66("flex flex-col gap-4", className), children: [
|
|
9784
10107
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9785
10108
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
9786
10109
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9876,7 +10199,7 @@ function MosaicOrgPanel({
|
|
|
9876
10199
|
const { isMobile } = useDevice();
|
|
9877
10200
|
const [activeTab, setActiveTab] = React29__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
9878
10201
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
9879
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
10202
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn66("flex h-full flex-col", className), children: [
|
|
9880
10203
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
9881
10204
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
9882
10205
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -9898,12 +10221,12 @@ function MosaicOrgPanel({
|
|
|
9898
10221
|
] }),
|
|
9899
10222
|
headerActions
|
|
9900
10223
|
] }),
|
|
9901
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10224
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn66("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9902
10225
|
"button",
|
|
9903
10226
|
{
|
|
9904
10227
|
type: "button",
|
|
9905
10228
|
onClick: () => setActiveTab(tab.id),
|
|
9906
|
-
className:
|
|
10229
|
+
className: cn66(
|
|
9907
10230
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9908
10231
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9909
10232
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -9917,7 +10240,7 @@ function MosaicOrgPanel({
|
|
|
9917
10240
|
] });
|
|
9918
10241
|
}
|
|
9919
10242
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
9920
|
-
function
|
|
10243
|
+
function cn67(...classes) {
|
|
9921
10244
|
return classes.filter(Boolean).join(" ");
|
|
9922
10245
|
}
|
|
9923
10246
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -9954,7 +10277,7 @@ function MosaicDashboardContent({
|
|
|
9954
10277
|
"div",
|
|
9955
10278
|
{
|
|
9956
10279
|
"data-slot": "dashboard-content",
|
|
9957
|
-
className:
|
|
10280
|
+
className: cn67("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
9958
10281
|
children: activeView ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
|
|
9959
10282
|
"View not found: ",
|
|
9960
10283
|
currentView
|
|
@@ -9963,7 +10286,7 @@ function MosaicDashboardContent({
|
|
|
9963
10286
|
);
|
|
9964
10287
|
}
|
|
9965
10288
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
9966
|
-
function
|
|
10289
|
+
function cn68(...classes) {
|
|
9967
10290
|
return classes.filter(Boolean).join(" ");
|
|
9968
10291
|
}
|
|
9969
10292
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10075,16 +10398,16 @@ function MosaicDashboardHeader({
|
|
|
10075
10398
|
"header",
|
|
10076
10399
|
{
|
|
10077
10400
|
"data-slot": "dashboard-header",
|
|
10078
|
-
className:
|
|
10401
|
+
className: cn68(
|
|
10079
10402
|
"mosaic-dashboard-header2",
|
|
10080
10403
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10081
10404
|
className
|
|
10082
10405
|
),
|
|
10083
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10406
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn68(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
10084
10407
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
10085
10408
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
10086
10409
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
10087
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
10410
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn68("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10088
10411
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10089
10412
|
] })
|
|
10090
10413
|
] }) }),
|
|
@@ -10097,7 +10420,7 @@ function MosaicDashboardHeader({
|
|
|
10097
10420
|
value: searchQuery,
|
|
10098
10421
|
onChange: handleSearch,
|
|
10099
10422
|
placeholder: searchPlaceholder,
|
|
10100
|
-
className:
|
|
10423
|
+
className: cn68(
|
|
10101
10424
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10102
10425
|
"text-sm placeholder:text-muted-foreground",
|
|
10103
10426
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10137,7 +10460,7 @@ function MosaicDashboardHeader({
|
|
|
10137
10460
|
);
|
|
10138
10461
|
}
|
|
10139
10462
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10140
|
-
function
|
|
10463
|
+
function cn69(...classes) {
|
|
10141
10464
|
return classes.filter(Boolean).join(" ");
|
|
10142
10465
|
}
|
|
10143
10466
|
function ChevronDownIcon4() {
|
|
@@ -10220,13 +10543,13 @@ function MosaicOrgSwitcher({
|
|
|
10220
10543
|
}, [open]);
|
|
10221
10544
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10222
10545
|
const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
|
|
10223
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className:
|
|
10546
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn69("relative", className), children: [
|
|
10224
10547
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10225
10548
|
"button",
|
|
10226
10549
|
{
|
|
10227
10550
|
type: "button",
|
|
10228
10551
|
onClick: () => setOpen((v) => !v),
|
|
10229
|
-
className:
|
|
10552
|
+
className: cn69(
|
|
10230
10553
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10231
10554
|
"text-sm font-medium text-foreground",
|
|
10232
10555
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10253,7 +10576,7 @@ function MosaicOrgSwitcher({
|
|
|
10253
10576
|
{
|
|
10254
10577
|
role: "menu",
|
|
10255
10578
|
"aria-label": triggerAriaLabel,
|
|
10256
|
-
className:
|
|
10579
|
+
className: cn69(
|
|
10257
10580
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10258
10581
|
"bg-popover py-1 shadow-md"
|
|
10259
10582
|
),
|
|
@@ -10268,7 +10591,7 @@ function MosaicOrgSwitcher({
|
|
|
10268
10591
|
onSelectOrg?.(org.id);
|
|
10269
10592
|
setOpen(false);
|
|
10270
10593
|
},
|
|
10271
|
-
className:
|
|
10594
|
+
className: cn69(
|
|
10272
10595
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10273
10596
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10274
10597
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10305,7 +10628,7 @@ function MosaicOrgSwitcher({
|
|
|
10305
10628
|
] });
|
|
10306
10629
|
}
|
|
10307
10630
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10308
|
-
function
|
|
10631
|
+
function cn70(...classes) {
|
|
10309
10632
|
return classes.filter(Boolean).join(" ");
|
|
10310
10633
|
}
|
|
10311
10634
|
function PlusIcon7() {
|
|
@@ -10350,19 +10673,19 @@ function MosaicQuickActionsMenu({
|
|
|
10350
10673
|
document.addEventListener("mousedown", h);
|
|
10351
10674
|
return () => document.removeEventListener("mousedown", h);
|
|
10352
10675
|
}, [open]);
|
|
10353
|
-
const itemClass =
|
|
10676
|
+
const itemClass = cn70(
|
|
10354
10677
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10355
10678
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10356
10679
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10357
10680
|
"min-h-[44px]"
|
|
10358
10681
|
);
|
|
10359
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10682
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn70("relative", className), children: [
|
|
10360
10683
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10361
10684
|
"button",
|
|
10362
10685
|
{
|
|
10363
10686
|
type: "button",
|
|
10364
10687
|
onClick: () => setOpen((v) => !v),
|
|
10365
|
-
className:
|
|
10688
|
+
className: cn70(
|
|
10366
10689
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10367
10690
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10368
10691
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10373,7 +10696,7 @@ function MosaicQuickActionsMenu({
|
|
|
10373
10696
|
"aria-label": label,
|
|
10374
10697
|
children: [
|
|
10375
10698
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
10376
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
10699
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn70("hidden md:inline"), children: label })
|
|
10377
10700
|
]
|
|
10378
10701
|
}
|
|
10379
10702
|
),
|
|
@@ -10382,13 +10705,13 @@ function MosaicQuickActionsMenu({
|
|
|
10382
10705
|
{
|
|
10383
10706
|
role: "menu",
|
|
10384
10707
|
"aria-label": menuTitle,
|
|
10385
|
-
className:
|
|
10708
|
+
className: cn70(
|
|
10386
10709
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10387
10710
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10388
10711
|
),
|
|
10389
10712
|
children: [
|
|
10390
10713
|
menuTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
|
|
10391
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10714
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn70(menuTitle && "border-t border-border") }),
|
|
10392
10715
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React29__namespace.Fragment, { children: [
|
|
10393
10716
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
10394
10717
|
action.href && renderLink ? renderLink(
|
|
@@ -10693,7 +11016,7 @@ function MosaicOrgProfilePage({
|
|
|
10693
11016
|
);
|
|
10694
11017
|
}
|
|
10695
11018
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
10696
|
-
function
|
|
11019
|
+
function cn71(...classes) {
|
|
10697
11020
|
return classes.filter(Boolean).join(" ");
|
|
10698
11021
|
}
|
|
10699
11022
|
function defaultCompare(a, b) {
|
|
@@ -10756,7 +11079,7 @@ function MosaicDataTable({
|
|
|
10756
11079
|
{
|
|
10757
11080
|
ref,
|
|
10758
11081
|
"data-slot": "data-table",
|
|
10759
|
-
className:
|
|
11082
|
+
className: cn71("w-full border-collapse text-sm", className),
|
|
10760
11083
|
children: [
|
|
10761
11084
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
10762
11085
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -10774,7 +11097,7 @@ function MosaicDataTable({
|
|
|
10774
11097
|
handleHeaderClick(col);
|
|
10775
11098
|
}
|
|
10776
11099
|
} : void 0,
|
|
10777
|
-
className:
|
|
11100
|
+
className: cn71(
|
|
10778
11101
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
10779
11102
|
alignClass(col.align),
|
|
10780
11103
|
col.className,
|
|
@@ -10810,7 +11133,7 @@ function MosaicDataTable({
|
|
|
10810
11133
|
"td",
|
|
10811
11134
|
{
|
|
10812
11135
|
"data-slot": "data-table-td",
|
|
10813
|
-
className:
|
|
11136
|
+
className: cn71(
|
|
10814
11137
|
"px-4 py-3 text-foreground",
|
|
10815
11138
|
alignClass(col.align),
|
|
10816
11139
|
col.className
|
|
@@ -10949,7 +11272,7 @@ var stepSegmentVariants = classVarianceAuthority.cva(["h-1.5 flex-1 min-w-2 roun
|
|
|
10949
11272
|
filled: false
|
|
10950
11273
|
}
|
|
10951
11274
|
});
|
|
10952
|
-
function
|
|
11275
|
+
function cn72(...classes) {
|
|
10953
11276
|
return classes.filter(Boolean).join(" ");
|
|
10954
11277
|
}
|
|
10955
11278
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -10990,7 +11313,7 @@ function MosaicStepPipelineSegments({
|
|
|
10990
11313
|
"aria-valuemax": total,
|
|
10991
11314
|
"aria-valuenow": current,
|
|
10992
11315
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
10993
|
-
className:
|
|
11316
|
+
className: cn72(stepSegmentBarVariants(), className),
|
|
10994
11317
|
children: steps.map((step, index) => {
|
|
10995
11318
|
const status = resolveStatus(step, index, currentIndex);
|
|
10996
11319
|
const filled = status !== "upcoming";
|
|
@@ -11002,7 +11325,7 @@ function MosaicStepPipelineSegments({
|
|
|
11002
11325
|
"data-status": status,
|
|
11003
11326
|
"data-filled": filled,
|
|
11004
11327
|
"aria-hidden": "true",
|
|
11005
|
-
className:
|
|
11328
|
+
className: cn72(stepSegmentVariants({ filled }))
|
|
11006
11329
|
},
|
|
11007
11330
|
key
|
|
11008
11331
|
);
|
|
@@ -11023,7 +11346,7 @@ function MosaicStepPipelineDots({
|
|
|
11023
11346
|
{
|
|
11024
11347
|
ref,
|
|
11025
11348
|
"data-slot": "step-pipeline",
|
|
11026
|
-
className:
|
|
11349
|
+
className: cn72(stepPipelineVariants({ orientation }), className),
|
|
11027
11350
|
children: steps.map((step, index) => {
|
|
11028
11351
|
const status = resolveStatus(step, index, currentIndex);
|
|
11029
11352
|
const isCurrent = status === "current";
|
|
@@ -11035,7 +11358,7 @@ function MosaicStepPipelineDots({
|
|
|
11035
11358
|
"data-slot": "step",
|
|
11036
11359
|
"data-status": status,
|
|
11037
11360
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11038
|
-
className:
|
|
11361
|
+
className: cn72(
|
|
11039
11362
|
"flex shrink-0",
|
|
11040
11363
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11041
11364
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11046,14 +11369,14 @@ function MosaicStepPipelineDots({
|
|
|
11046
11369
|
"div",
|
|
11047
11370
|
{
|
|
11048
11371
|
"data-slot": "step-connector",
|
|
11049
|
-
className:
|
|
11372
|
+
className: cn72(stepConnectorVariants({ status, orientation }))
|
|
11050
11373
|
}
|
|
11051
11374
|
),
|
|
11052
11375
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11053
11376
|
"div",
|
|
11054
11377
|
{
|
|
11055
11378
|
"data-slot": "step-indicator",
|
|
11056
|
-
className:
|
|
11379
|
+
className: cn72(stepIndicatorVariants({ status, orientation })),
|
|
11057
11380
|
"aria-hidden": "true",
|
|
11058
11381
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11059
11382
|
}
|
|
@@ -11062,7 +11385,7 @@ function MosaicStepPipelineDots({
|
|
|
11062
11385
|
"div",
|
|
11063
11386
|
{
|
|
11064
11387
|
"data-slot": "step-connector",
|
|
11065
|
-
className:
|
|
11388
|
+
className: cn72(
|
|
11066
11389
|
stepConnectorVariants({
|
|
11067
11390
|
// connector after current step is still upcoming
|
|
11068
11391
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11073,12 +11396,12 @@ function MosaicStepPipelineDots({
|
|
|
11073
11396
|
)
|
|
11074
11397
|
] }),
|
|
11075
11398
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
11076
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11399
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
|
|
11077
11400
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11078
11401
|
"span",
|
|
11079
11402
|
{
|
|
11080
11403
|
"data-slot": "step-description",
|
|
11081
|
-
className:
|
|
11404
|
+
className: cn72(stepDescriptionVariants({ status })),
|
|
11082
11405
|
children: step.description
|
|
11083
11406
|
}
|
|
11084
11407
|
)
|
|
@@ -11089,7 +11412,7 @@ function MosaicStepPipelineDots({
|
|
|
11089
11412
|
"div",
|
|
11090
11413
|
{
|
|
11091
11414
|
"data-slot": "step-indicator",
|
|
11092
|
-
className:
|
|
11415
|
+
className: cn72(stepIndicatorVariants({ status, orientation })),
|
|
11093
11416
|
"aria-hidden": "true",
|
|
11094
11417
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11095
11418
|
}
|
|
@@ -11098,7 +11421,7 @@ function MosaicStepPipelineDots({
|
|
|
11098
11421
|
"div",
|
|
11099
11422
|
{
|
|
11100
11423
|
"data-slot": "step-connector",
|
|
11101
|
-
className:
|
|
11424
|
+
className: cn72(
|
|
11102
11425
|
stepConnectorVariants({
|
|
11103
11426
|
status: status === "done" ? "done" : "upcoming",
|
|
11104
11427
|
orientation
|
|
@@ -11108,12 +11431,12 @@ function MosaicStepPipelineDots({
|
|
|
11108
11431
|
)
|
|
11109
11432
|
] }),
|
|
11110
11433
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
11111
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className:
|
|
11434
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
|
|
11112
11435
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11113
11436
|
"span",
|
|
11114
11437
|
{
|
|
11115
11438
|
"data-slot": "step-description",
|
|
11116
|
-
className:
|
|
11439
|
+
className: cn72(stepDescriptionVariants({ status })),
|
|
11117
11440
|
children: step.description
|
|
11118
11441
|
}
|
|
11119
11442
|
)
|
|
@@ -11127,7 +11450,7 @@ function MosaicStepPipelineDots({
|
|
|
11127
11450
|
);
|
|
11128
11451
|
}
|
|
11129
11452
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11130
|
-
function
|
|
11453
|
+
function cn73(...classes) {
|
|
11131
11454
|
return classes.filter(Boolean).join(" ");
|
|
11132
11455
|
}
|
|
11133
11456
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11136,7 +11459,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11136
11459
|
{
|
|
11137
11460
|
ref,
|
|
11138
11461
|
"data-slot": "kanban-board",
|
|
11139
|
-
className:
|
|
11462
|
+
className: cn73(
|
|
11140
11463
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11141
11464
|
"min-h-0",
|
|
11142
11465
|
// Smooth momentum scrolling on iOS
|
|
@@ -11149,7 +11472,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11149
11472
|
);
|
|
11150
11473
|
}
|
|
11151
11474
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11152
|
-
function
|
|
11475
|
+
function cn74(...classes) {
|
|
11153
11476
|
return classes.filter(Boolean).join(" ");
|
|
11154
11477
|
}
|
|
11155
11478
|
function MosaicKanbanColumn({
|
|
@@ -11167,7 +11490,7 @@ function MosaicKanbanColumn({
|
|
|
11167
11490
|
{
|
|
11168
11491
|
ref,
|
|
11169
11492
|
"data-slot": "kanban-column",
|
|
11170
|
-
className:
|
|
11493
|
+
className: cn74(
|
|
11171
11494
|
// Fixed column width, never shrink so board stays scrollable
|
|
11172
11495
|
"flex flex-col w-72 shrink-0",
|
|
11173
11496
|
// Surface
|
|
@@ -11188,7 +11511,7 @@ function MosaicKanbanColumn({
|
|
|
11188
11511
|
{
|
|
11189
11512
|
"data-slot": "kanban-column-count",
|
|
11190
11513
|
"aria-label": countLabel(count),
|
|
11191
|
-
className:
|
|
11514
|
+
className: cn74(
|
|
11192
11515
|
"inline-flex items-center justify-center",
|
|
11193
11516
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11194
11517
|
"bg-muted text-muted-foreground",
|
|
@@ -11410,7 +11733,7 @@ var documentUploadProgressFillVariants = classVarianceAuthority.cva(
|
|
|
11410
11733
|
defaultVariants: {}
|
|
11411
11734
|
}
|
|
11412
11735
|
);
|
|
11413
|
-
function
|
|
11736
|
+
function cn75(...classes) {
|
|
11414
11737
|
return classes.filter(Boolean).join(" ");
|
|
11415
11738
|
}
|
|
11416
11739
|
function MosaicDocumentUpload({
|
|
@@ -11451,7 +11774,7 @@ function MosaicDocumentUpload({
|
|
|
11451
11774
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11452
11775
|
event.target.value = "";
|
|
11453
11776
|
}
|
|
11454
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
11777
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className: cn75("flex flex-col gap-4", className), children: [
|
|
11455
11778
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11456
11779
|
"div",
|
|
11457
11780
|
{
|
|
@@ -11516,7 +11839,7 @@ function MosaicDocumentUpload({
|
|
|
11516
11839
|
"aria-valuemin": 0,
|
|
11517
11840
|
"aria-valuemax": 100,
|
|
11518
11841
|
"aria-valuenow": file.progress ?? 0,
|
|
11519
|
-
className:
|
|
11842
|
+
className: cn75(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11520
11843
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11521
11844
|
"div",
|
|
11522
11845
|
{
|
|
@@ -11593,7 +11916,7 @@ var urlScraperCardVariants = classVarianceAuthority.cva(["flex flex-col gap-2 ro
|
|
|
11593
11916
|
tone: "neutral"
|
|
11594
11917
|
}
|
|
11595
11918
|
});
|
|
11596
|
-
function
|
|
11919
|
+
function cn76(...classes) {
|
|
11597
11920
|
return classes.filter(Boolean).join(" ");
|
|
11598
11921
|
}
|
|
11599
11922
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -11632,7 +11955,7 @@ function MosaicUrlScraper(props) {
|
|
|
11632
11955
|
setIsLocallyInvalid(false);
|
|
11633
11956
|
onUrlChange(event.target.value);
|
|
11634
11957
|
}
|
|
11635
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
11958
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className: cn76("flex flex-col gap-4", className), children: [
|
|
11636
11959
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11637
11960
|
"form",
|
|
11638
11961
|
{
|
|
@@ -11768,7 +12091,7 @@ var chatThreadScrollButtonVariants = classVarianceAuthority.cva([
|
|
|
11768
12091
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
11769
12092
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
11770
12093
|
]);
|
|
11771
|
-
function
|
|
12094
|
+
function cn77(...classes) {
|
|
11772
12095
|
return classes.filter(Boolean).join(" ");
|
|
11773
12096
|
}
|
|
11774
12097
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -11852,7 +12175,7 @@ function MosaicChatThread({
|
|
|
11852
12175
|
role: "log",
|
|
11853
12176
|
onScroll: handleScroll,
|
|
11854
12177
|
onKeyDown: handleKeyDown,
|
|
11855
|
-
className:
|
|
12178
|
+
className: cn77(chatThreadRootVariants(), className),
|
|
11856
12179
|
children: [
|
|
11857
12180
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
11858
12181
|
!isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11893,7 +12216,7 @@ var chatComposerActionButtonVariants = classVarianceAuthority.cva(
|
|
|
11893
12216
|
}
|
|
11894
12217
|
}
|
|
11895
12218
|
);
|
|
11896
|
-
function
|
|
12219
|
+
function cn78(...classes) {
|
|
11897
12220
|
return classes.filter(Boolean).join(" ");
|
|
11898
12221
|
}
|
|
11899
12222
|
function MosaicChatComposer(props) {
|
|
@@ -11948,7 +12271,7 @@ function MosaicChatComposer(props) {
|
|
|
11948
12271
|
{
|
|
11949
12272
|
ref,
|
|
11950
12273
|
"data-slot": "chat-composer",
|
|
11951
|
-
className:
|
|
12274
|
+
className: cn78(chatComposerRootVariants(), className),
|
|
11952
12275
|
onSubmit: handleSubmit,
|
|
11953
12276
|
children: [
|
|
11954
12277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12064,7 +12387,7 @@ var markdownTableCellVariants = classVarianceAuthority.cva(["border border-borde
|
|
|
12064
12387
|
align: "left"
|
|
12065
12388
|
}
|
|
12066
12389
|
});
|
|
12067
|
-
function
|
|
12390
|
+
function cn79(...classes) {
|
|
12068
12391
|
return classes.filter(Boolean).join(" ");
|
|
12069
12392
|
}
|
|
12070
12393
|
function sanitizeHref(rawHref) {
|
|
@@ -12259,7 +12582,7 @@ function parseBlocks(content) {
|
|
|
12259
12582
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12260
12583
|
const blocks = parseBlocks(content);
|
|
12261
12584
|
const ids = makeIdSource();
|
|
12262
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className:
|
|
12585
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className: cn79(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12263
12586
|
if (block.kind === "heading") {
|
|
12264
12587
|
const HeadingTag = `h${block.level}`;
|
|
12265
12588
|
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12337,7 +12660,7 @@ var chatMessageToolStatusVariants = classVarianceAuthority.cva(["text-xs font-me
|
|
|
12337
12660
|
status: "running"
|
|
12338
12661
|
}
|
|
12339
12662
|
});
|
|
12340
|
-
function
|
|
12663
|
+
function cn80(...classes) {
|
|
12341
12664
|
return classes.filter(Boolean).join(" ");
|
|
12342
12665
|
}
|
|
12343
12666
|
function partKey(part, index) {
|
|
@@ -12503,7 +12826,7 @@ function MosaicChatMessage({
|
|
|
12503
12826
|
ref,
|
|
12504
12827
|
"data-slot": "chat-message",
|
|
12505
12828
|
"data-role": messageRole,
|
|
12506
|
-
className:
|
|
12829
|
+
className: cn80(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12507
12830
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12508
12831
|
ChatMessagePartView,
|
|
12509
12832
|
{
|
|
@@ -12558,7 +12881,7 @@ var approvalPromptButtonVariants = classVarianceAuthority.cva(
|
|
|
12558
12881
|
}
|
|
12559
12882
|
}
|
|
12560
12883
|
);
|
|
12561
|
-
function
|
|
12884
|
+
function cn81(...classes) {
|
|
12562
12885
|
return classes.filter(Boolean).join(" ");
|
|
12563
12886
|
}
|
|
12564
12887
|
function MosaicApprovalPrompt(props) {
|
|
@@ -12570,7 +12893,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
12570
12893
|
ref,
|
|
12571
12894
|
"data-slot": "approval-prompt",
|
|
12572
12895
|
"aria-label": promptTitle,
|
|
12573
|
-
className:
|
|
12896
|
+
className: cn81("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12574
12897
|
children: [
|
|
12575
12898
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12576
12899
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -12647,7 +12970,7 @@ var toolToggleListRowVariants = classVarianceAuthority.cva(
|
|
|
12647
12970
|
}
|
|
12648
12971
|
}
|
|
12649
12972
|
);
|
|
12650
|
-
function
|
|
12973
|
+
function cn82(...classes) {
|
|
12651
12974
|
return classes.filter(Boolean).join(" ");
|
|
12652
12975
|
}
|
|
12653
12976
|
function MosaicToolToggleList({
|
|
@@ -12663,7 +12986,7 @@ function MosaicToolToggleList({
|
|
|
12663
12986
|
}) {
|
|
12664
12987
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
12665
12988
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
12666
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
12989
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn82("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12667
12990
|
"div",
|
|
12668
12991
|
{
|
|
12669
12992
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -12694,7 +13017,7 @@ function MosaicToolToggleList({
|
|
|
12694
13017
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
12695
13018
|
"aria-label": toggleAriaLabel(tool.name),
|
|
12696
13019
|
"data-slot": "tool-toggle-list-switch",
|
|
12697
|
-
className:
|
|
13020
|
+
className: cn82(
|
|
12698
13021
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
12699
13022
|
"rounded-full border-2 border-transparent outline-none",
|
|
12700
13023
|
"bg-muted transition-colors",
|
|
@@ -12705,7 +13028,7 @@ function MosaicToolToggleList({
|
|
|
12705
13028
|
_switch.Switch.Thumb,
|
|
12706
13029
|
{
|
|
12707
13030
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
12708
|
-
className:
|
|
13031
|
+
className: cn82(
|
|
12709
13032
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
12710
13033
|
"bg-background shadow-sm",
|
|
12711
13034
|
"translate-x-0 transition-transform",
|
|
@@ -12747,7 +13070,7 @@ function MosaicToolToggleList({
|
|
|
12747
13070
|
{
|
|
12748
13071
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
12749
13072
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
12750
|
-
className:
|
|
13073
|
+
className: cn82(
|
|
12751
13074
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
12752
13075
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
12753
13076
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -12765,7 +13088,7 @@ function MosaicToolToggleList({
|
|
|
12765
13088
|
select.Select.Popup,
|
|
12766
13089
|
{
|
|
12767
13090
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
12768
|
-
className:
|
|
13091
|
+
className: cn82(
|
|
12769
13092
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
12770
13093
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
12771
13094
|
"origin-[var(--transform-origin)]",
|
|
@@ -12778,7 +13101,7 @@ function MosaicToolToggleList({
|
|
|
12778
13101
|
select.Select.Item,
|
|
12779
13102
|
{
|
|
12780
13103
|
value: level.id,
|
|
12781
|
-
className:
|
|
13104
|
+
className: cn82(
|
|
12782
13105
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
12783
13106
|
"text-sm text-popover-foreground outline-none",
|
|
12784
13107
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -12886,7 +13209,7 @@ var apiKeyPanelMessageVariants = classVarianceAuthority.cva(["text-sm"], {
|
|
|
12886
13209
|
tone: "muted"
|
|
12887
13210
|
}
|
|
12888
13211
|
});
|
|
12889
|
-
function
|
|
13212
|
+
function cn83(...classes) {
|
|
12890
13213
|
return classes.filter(Boolean).join(" ");
|
|
12891
13214
|
}
|
|
12892
13215
|
function MosaicApiKeyPanel(props) {
|
|
@@ -12914,7 +13237,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
12914
13237
|
function handleKeyChange(event) {
|
|
12915
13238
|
onKeyChange(event.target.value);
|
|
12916
13239
|
}
|
|
12917
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13240
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className: cn83("flex flex-col gap-3", className), children: [
|
|
12918
13241
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12919
13242
|
"div",
|
|
12920
13243
|
{
|
|
@@ -13009,7 +13332,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13009
13332
|
var agentChatRootVariants = classVarianceAuthority.cva([
|
|
13010
13333
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13011
13334
|
]);
|
|
13012
|
-
function
|
|
13335
|
+
function cn84(...classes) {
|
|
13013
13336
|
return classes.filter(Boolean).join(" ");
|
|
13014
13337
|
}
|
|
13015
13338
|
function formatPayload2(value) {
|
|
@@ -13145,7 +13468,7 @@ function MosaicAgentChat(props) {
|
|
|
13145
13468
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13146
13469
|
onApprovalResponse(payload);
|
|
13147
13470
|
}
|
|
13148
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13471
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className: cn84(agentChatRootVariants(), className), children: [
|
|
13149
13472
|
/* @__PURE__ */ jsxRuntime.jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13150
13473
|
MosaicChatMessage,
|
|
13151
13474
|
{
|
|
@@ -13234,7 +13557,7 @@ var toastProviderPositionVariants = classVarianceAuthority.cva(
|
|
|
13234
13557
|
}
|
|
13235
13558
|
}
|
|
13236
13559
|
);
|
|
13237
|
-
function
|
|
13560
|
+
function cn85(...classes) {
|
|
13238
13561
|
return classes.filter(Boolean).join(" ");
|
|
13239
13562
|
}
|
|
13240
13563
|
function MosaicToast({
|
|
@@ -13260,7 +13583,7 @@ function MosaicToast({
|
|
|
13260
13583
|
ref,
|
|
13261
13584
|
"data-slot": "toast",
|
|
13262
13585
|
role,
|
|
13263
|
-
className:
|
|
13586
|
+
className: cn85(toastCardVariants({ variant }), className),
|
|
13264
13587
|
children: [
|
|
13265
13588
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13266
13589
|
/* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13300,7 +13623,7 @@ function MosaicToast({
|
|
|
13300
13623
|
);
|
|
13301
13624
|
}
|
|
13302
13625
|
MosaicToast.displayName = "MosaicToast";
|
|
13303
|
-
function
|
|
13626
|
+
function cn86(...classes) {
|
|
13304
13627
|
return classes.filter(Boolean).join(" ");
|
|
13305
13628
|
}
|
|
13306
13629
|
function MosaicToastProvider({
|
|
@@ -13314,7 +13637,7 @@ function MosaicToastProvider({
|
|
|
13314
13637
|
{
|
|
13315
13638
|
ref,
|
|
13316
13639
|
"data-slot": "toast-provider",
|
|
13317
|
-
className:
|
|
13640
|
+
className: cn86(toastProviderPositionVariants({ position }), className),
|
|
13318
13641
|
children
|
|
13319
13642
|
}
|
|
13320
13643
|
);
|
|
@@ -13341,7 +13664,7 @@ var pdfViewerToolbarButtonVariants = classVarianceAuthority.cva([
|
|
|
13341
13664
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13342
13665
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13343
13666
|
]);
|
|
13344
|
-
function
|
|
13667
|
+
function cn87(...classes) {
|
|
13345
13668
|
return classes.filter(Boolean).join(" ");
|
|
13346
13669
|
}
|
|
13347
13670
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13406,7 +13729,7 @@ function MosaicPdfViewer({
|
|
|
13406
13729
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13407
13730
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13408
13731
|
}
|
|
13409
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13732
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn87("flex flex-col gap-2", className), children: [
|
|
13410
13733
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13411
13734
|
"div",
|
|
13412
13735
|
{
|
|
@@ -13495,7 +13818,7 @@ function MosaicPdfViewer({
|
|
|
13495
13818
|
"data-slot": "pdf-viewer-frame",
|
|
13496
13819
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13497
13820
|
title: fileUrl,
|
|
13498
|
-
className:
|
|
13821
|
+
className: cn87(
|
|
13499
13822
|
"h-full min-h-64 w-full border-0",
|
|
13500
13823
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13501
13824
|
)
|
|
@@ -13514,7 +13837,7 @@ var splitPaneCollapseButtonVariants = classVarianceAuthority.cva([
|
|
|
13514
13837
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13515
13838
|
"transition-colors hover:bg-accent/50"
|
|
13516
13839
|
]);
|
|
13517
|
-
function
|
|
13840
|
+
function cn88(...classes) {
|
|
13518
13841
|
return classes.filter(Boolean).join(" ");
|
|
13519
13842
|
}
|
|
13520
13843
|
function mergeRefs(externalRef, node) {
|
|
@@ -13587,7 +13910,7 @@ function MosaicResizableSplitPane({
|
|
|
13587
13910
|
mergeRefs(ref, node);
|
|
13588
13911
|
},
|
|
13589
13912
|
"data-slot": "resizable-split-pane",
|
|
13590
|
-
className:
|
|
13913
|
+
className: cn88(splitPaneRootVariants(), className),
|
|
13591
13914
|
children: [
|
|
13592
13915
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
13593
13916
|
!isSideCollapsed && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -13654,7 +13977,7 @@ var tagInputFieldVariants = classVarianceAuthority.cva([
|
|
|
13654
13977
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
13655
13978
|
"placeholder:text-muted-foreground"
|
|
13656
13979
|
]);
|
|
13657
|
-
function
|
|
13980
|
+
function cn89(...classes) {
|
|
13658
13981
|
return classes.filter(Boolean).join(" ");
|
|
13659
13982
|
}
|
|
13660
13983
|
function mergeRefs2(externalRef, node) {
|
|
@@ -13705,7 +14028,7 @@ function MosaicTagInput({
|
|
|
13705
14028
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
13706
14029
|
}
|
|
13707
14030
|
}
|
|
13708
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className:
|
|
14031
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className: cn89(tagInputRootVariants(), className), children: [
|
|
13709
14032
|
tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
13710
14033
|
tag,
|
|
13711
14034
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13742,7 +14065,7 @@ function MosaicTagInput({
|
|
|
13742
14065
|
"ul",
|
|
13743
14066
|
{
|
|
13744
14067
|
"data-slot": "tag-input-suggestions",
|
|
13745
|
-
className:
|
|
14068
|
+
className: cn89(
|
|
13746
14069
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
13747
14070
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
13748
14071
|
),
|
|
@@ -13782,7 +14105,7 @@ var drawerPopupVariants = classVarianceAuthority.cva(
|
|
|
13782
14105
|
}
|
|
13783
14106
|
);
|
|
13784
14107
|
var drawerBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
13785
|
-
function
|
|
14108
|
+
function cn90(...classes) {
|
|
13786
14109
|
return classes.filter(Boolean).join(" ");
|
|
13787
14110
|
}
|
|
13788
14111
|
function MosaicDrawer({
|
|
@@ -13803,7 +14126,7 @@ function MosaicDrawer({
|
|
|
13803
14126
|
"data-slot": "drawer",
|
|
13804
14127
|
"aria-labelledby": titleId,
|
|
13805
14128
|
"aria-modal": "true",
|
|
13806
|
-
className:
|
|
14129
|
+
className: cn90(drawerPopupVariants({ side }), className),
|
|
13807
14130
|
children: [
|
|
13808
14131
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13809
14132
|
"div",
|
|
@@ -13816,7 +14139,7 @@ function MosaicDrawer({
|
|
|
13816
14139
|
dialog.Dialog.Close,
|
|
13817
14140
|
{
|
|
13818
14141
|
"aria-label": closeAriaLabel,
|
|
13819
|
-
className:
|
|
14142
|
+
className: cn90(
|
|
13820
14143
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
13821
14144
|
"hover:bg-muted hover:text-foreground",
|
|
13822
14145
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -13851,6 +14174,60 @@ function MosaicDrawer({
|
|
|
13851
14174
|
] }) });
|
|
13852
14175
|
}
|
|
13853
14176
|
MosaicDrawer.displayName = "MosaicDrawer";
|
|
14177
|
+
var templateCategoryChipVariants = classVarianceAuthority.cva(
|
|
14178
|
+
[
|
|
14179
|
+
"inline-flex items-center justify-center whitespace-nowrap",
|
|
14180
|
+
"rounded-full border px-3 py-1.5",
|
|
14181
|
+
"text-xs font-medium transition-colors",
|
|
14182
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
14183
|
+
],
|
|
14184
|
+
{
|
|
14185
|
+
variants: {
|
|
14186
|
+
selected: {
|
|
14187
|
+
true: "border-transparent bg-primary text-primary-foreground",
|
|
14188
|
+
false: "border-border bg-background text-foreground hover:bg-muted"
|
|
14189
|
+
}
|
|
14190
|
+
},
|
|
14191
|
+
defaultVariants: {
|
|
14192
|
+
selected: false
|
|
14193
|
+
}
|
|
14194
|
+
}
|
|
14195
|
+
);
|
|
14196
|
+
function cn91(...classes) {
|
|
14197
|
+
return classes.filter(Boolean).join(" ");
|
|
14198
|
+
}
|
|
14199
|
+
function MosaicTemplateCategoryChips({
|
|
14200
|
+
categories,
|
|
14201
|
+
selected,
|
|
14202
|
+
onSelect,
|
|
14203
|
+
className,
|
|
14204
|
+
ref
|
|
14205
|
+
}) {
|
|
14206
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14207
|
+
"div",
|
|
14208
|
+
{
|
|
14209
|
+
ref,
|
|
14210
|
+
"data-slot": "template-category-chips",
|
|
14211
|
+
className: cn91("flex flex-wrap items-center gap-2", className),
|
|
14212
|
+
children: categories.map((category) => {
|
|
14213
|
+
const isSelected = category.id === selected;
|
|
14214
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14215
|
+
"button",
|
|
14216
|
+
{
|
|
14217
|
+
type: "button",
|
|
14218
|
+
"data-slot": "template-category-chip",
|
|
14219
|
+
"aria-pressed": isSelected,
|
|
14220
|
+
onClick: () => onSelect(category.id),
|
|
14221
|
+
className: templateCategoryChipVariants({ selected: isSelected }),
|
|
14222
|
+
children: category.label
|
|
14223
|
+
},
|
|
14224
|
+
category.id
|
|
14225
|
+
);
|
|
14226
|
+
})
|
|
14227
|
+
}
|
|
14228
|
+
);
|
|
14229
|
+
}
|
|
14230
|
+
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
13854
14231
|
|
|
13855
14232
|
Object.defineProperty(exports, "Accordion", {
|
|
13856
14233
|
enumerable: true,
|
|
@@ -13874,10 +14251,23 @@ exports.MosaicAgentChat = MosaicAgentChat;
|
|
|
13874
14251
|
exports.MosaicAgentComposer = MosaicAgentComposer;
|
|
13875
14252
|
exports.MosaicAgentComposerDesktop = MosaicAgentComposerDesktop;
|
|
13876
14253
|
exports.MosaicAgentComposerMobile = MosaicAgentComposerMobile;
|
|
14254
|
+
exports.MosaicAgentEditor = MosaicAgentEditor;
|
|
13877
14255
|
exports.MosaicAgentList = MosaicAgentList;
|
|
13878
14256
|
exports.MosaicAgentListDesktop = AgentListDesktop;
|
|
13879
14257
|
exports.MosaicAgentListMobile = AgentListMobile;
|
|
14258
|
+
exports.MosaicAgentPreview = MosaicAgentPreview;
|
|
13880
14259
|
exports.MosaicAgentTeamPreview = MosaicAgentTeamPreview;
|
|
14260
|
+
exports.MosaicAlertDialog = MosaicAlertDialog;
|
|
14261
|
+
exports.MosaicAlertDialogAction = MosaicAlertDialogAction;
|
|
14262
|
+
exports.MosaicAlertDialogCancel = MosaicAlertDialogCancel;
|
|
14263
|
+
exports.MosaicAlertDialogContent = MosaicAlertDialogContent;
|
|
14264
|
+
exports.MosaicAlertDialogDescription = MosaicAlertDialogDescription;
|
|
14265
|
+
exports.MosaicAlertDialogFooter = MosaicAlertDialogFooter;
|
|
14266
|
+
exports.MosaicAlertDialogHeader = MosaicAlertDialogHeader;
|
|
14267
|
+
exports.MosaicAlertDialogOverlay = MosaicAlertDialogOverlay;
|
|
14268
|
+
exports.MosaicAlertDialogPortal = MosaicAlertDialogPortal;
|
|
14269
|
+
exports.MosaicAlertDialogTitle = MosaicAlertDialogTitle;
|
|
14270
|
+
exports.MosaicAlertDialogTrigger = MosaicAlertDialogTrigger;
|
|
13881
14271
|
exports.MosaicAnimatedList = MosaicAnimatedList;
|
|
13882
14272
|
exports.MosaicApiKeyPanel = MosaicApiKeyPanel;
|
|
13883
14273
|
exports.MosaicAppSidebar = MosaicAppSidebar;
|
|
@@ -13985,6 +14375,7 @@ exports.MosaicTabsTrigger = MosaicTabsTrigger;
|
|
|
13985
14375
|
exports.MosaicTagInput = MosaicTagInput;
|
|
13986
14376
|
exports.MosaicTemplateAgentCard = MosaicTemplateAgentCard;
|
|
13987
14377
|
exports.MosaicTemplateCard = MosaicTemplateCard;
|
|
14378
|
+
exports.MosaicTemplateCategoryChips = MosaicTemplateCategoryChips;
|
|
13988
14379
|
exports.MosaicTemplateGallery = MosaicTemplateGallery;
|
|
13989
14380
|
exports.MosaicTemplatePreview = MosaicTemplatePreview;
|
|
13990
14381
|
exports.MosaicTestimonialsGrid = MosaicTestimonialsGrid;
|
|
@@ -14003,6 +14394,10 @@ exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
|
14003
14394
|
exports.MosaicUserButton = MosaicUserButton;
|
|
14004
14395
|
exports.Placeholder = Placeholder;
|
|
14005
14396
|
exports.agentChatRootVariants = agentChatRootVariants;
|
|
14397
|
+
exports.agentEditorVariants = agentEditorVariants;
|
|
14398
|
+
exports.agentPreviewVariants = agentPreviewVariants;
|
|
14399
|
+
exports.alertDialogContentVariants = alertDialogContentVariants;
|
|
14400
|
+
exports.alertDialogOverlayVariants = alertDialogOverlayVariants;
|
|
14006
14401
|
exports.badgeVariants = badgeVariants;
|
|
14007
14402
|
exports.buttonVariants = buttonVariants;
|
|
14008
14403
|
exports.chatMessageBubbleVariants = chatMessageBubbleVariants;
|
|
@@ -14024,6 +14419,7 @@ exports.tagInputTagVariants = tagInputTagVariants;
|
|
|
14024
14419
|
exports.templateAgentCardBadgeVariants = templateAgentCardBadgeVariants;
|
|
14025
14420
|
exports.templateAgentCardTagVariants = templateAgentCardTagVariants;
|
|
14026
14421
|
exports.templateAgentCardVariants = templateAgentCardVariants;
|
|
14422
|
+
exports.templateCategoryChipVariants = templateCategoryChipVariants;
|
|
14027
14423
|
exports.toastCardVariants = toastCardVariants;
|
|
14028
14424
|
exports.toastDismissButtonVariants = toastDismissButtonVariants;
|
|
14029
14425
|
exports.toastProviderPositionVariants = toastProviderPositionVariants;
|