@vantageos/mosaic-blocks 0.5.21-alpha → 0.5.23-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 +1029 -220
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +765 -2
- package/dist/index.d.ts +765 -2
- package/dist/index.js +1001 -221
- 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.23-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"
|
|
@@ -8200,8 +8523,131 @@ function MosaicMarketplaceList(props) {
|
|
|
8200
8523
|
const { isMobile } = useDevice();
|
|
8201
8524
|
return isMobile ? /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsxRuntime.jsx(MarketplaceListDesktop, { ...props });
|
|
8202
8525
|
}
|
|
8203
|
-
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
8204
|
-
|
|
8526
|
+
MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
|
|
8527
|
+
var marketplaceCardVariants = classVarianceAuthority.cva(
|
|
8528
|
+
["rounded-xl border border-border bg-card p-4 transition-shadow", "hover:shadow-md"],
|
|
8529
|
+
{
|
|
8530
|
+
variants: {
|
|
8531
|
+
variant: {
|
|
8532
|
+
default: "flex flex-col gap-3",
|
|
8533
|
+
compact: "flex flex-row items-center gap-3"
|
|
8534
|
+
}
|
|
8535
|
+
},
|
|
8536
|
+
defaultVariants: {
|
|
8537
|
+
variant: "default"
|
|
8538
|
+
}
|
|
8539
|
+
}
|
|
8540
|
+
);
|
|
8541
|
+
function cn64(...classes) {
|
|
8542
|
+
return classes.filter(Boolean).join(" ");
|
|
8543
|
+
}
|
|
8544
|
+
function MosaicMarketplaceCard({
|
|
8545
|
+
id,
|
|
8546
|
+
name,
|
|
8547
|
+
description,
|
|
8548
|
+
icon,
|
|
8549
|
+
rating,
|
|
8550
|
+
mentions,
|
|
8551
|
+
isAdopted = false,
|
|
8552
|
+
onAdopt,
|
|
8553
|
+
onUnadopt,
|
|
8554
|
+
onPreview,
|
|
8555
|
+
adoptLabel,
|
|
8556
|
+
unadoptLabel,
|
|
8557
|
+
previewLabel,
|
|
8558
|
+
ratingLabel,
|
|
8559
|
+
variant = "default",
|
|
8560
|
+
className
|
|
8561
|
+
}) {
|
|
8562
|
+
const compact = variant === "compact";
|
|
8563
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8564
|
+
MosaicCard,
|
|
8565
|
+
{
|
|
8566
|
+
"data-slot": "marketplace-card",
|
|
8567
|
+
className: cn64(marketplaceCardVariants({ variant }), className),
|
|
8568
|
+
children: [
|
|
8569
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8570
|
+
"div",
|
|
8571
|
+
{
|
|
8572
|
+
className: cn64(
|
|
8573
|
+
"flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
|
|
8574
|
+
compact ? "h-10 w-10" : "h-12 w-12"
|
|
8575
|
+
),
|
|
8576
|
+
children: icon
|
|
8577
|
+
}
|
|
8578
|
+
),
|
|
8579
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
8580
|
+
/* @__PURE__ */ jsxRuntime.jsx(MosaicCardTitle, { className: cn64("truncate", compact ? "text-sm" : "text-base"), children: name }),
|
|
8581
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8582
|
+
MosaicCardDescription,
|
|
8583
|
+
{
|
|
8584
|
+
"data-slot": "marketplace-card-description",
|
|
8585
|
+
className: "mt-1 line-clamp-2",
|
|
8586
|
+
children: description
|
|
8587
|
+
}
|
|
8588
|
+
),
|
|
8589
|
+
mentions && mentions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: mentions.map((mention) => /* @__PURE__ */ jsxRuntime.jsx(MosaicBadge, { variant: "secondary", children: mention }, mention)) }),
|
|
8590
|
+
rating != null && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8591
|
+
"div",
|
|
8592
|
+
{
|
|
8593
|
+
"data-slot": "marketplace-card-rating",
|
|
8594
|
+
className: "mt-2 flex items-center gap-1 text-xs text-muted-foreground",
|
|
8595
|
+
children: [
|
|
8596
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium text-foreground", children: rating }),
|
|
8597
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: ratingLabel })
|
|
8598
|
+
]
|
|
8599
|
+
}
|
|
8600
|
+
)
|
|
8601
|
+
] }),
|
|
8602
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn64("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
|
|
8603
|
+
onPreview && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8604
|
+
"button",
|
|
8605
|
+
{
|
|
8606
|
+
type: "button",
|
|
8607
|
+
onClick: () => onPreview(id),
|
|
8608
|
+
className: cn64(
|
|
8609
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
|
|
8610
|
+
"bg-background px-3 text-xs font-medium text-foreground",
|
|
8611
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
8612
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8613
|
+
),
|
|
8614
|
+
children: previewLabel
|
|
8615
|
+
}
|
|
8616
|
+
),
|
|
8617
|
+
isAdopted ? onUnadopt && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8618
|
+
"button",
|
|
8619
|
+
{
|
|
8620
|
+
type: "button",
|
|
8621
|
+
onClick: () => onUnadopt(id),
|
|
8622
|
+
className: cn64(
|
|
8623
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8624
|
+
"bg-secondary px-3 text-xs font-medium text-secondary-foreground",
|
|
8625
|
+
"hover:bg-secondary/80",
|
|
8626
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8627
|
+
),
|
|
8628
|
+
children: unadoptLabel
|
|
8629
|
+
}
|
|
8630
|
+
) : onAdopt && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8631
|
+
"button",
|
|
8632
|
+
{
|
|
8633
|
+
type: "button",
|
|
8634
|
+
onClick: () => onAdopt(id),
|
|
8635
|
+
className: cn64(
|
|
8636
|
+
"inline-flex min-h-[36px] items-center justify-center rounded-md",
|
|
8637
|
+
"bg-primary px-3 text-xs font-medium text-primary-foreground",
|
|
8638
|
+
"hover:bg-primary/90",
|
|
8639
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8640
|
+
),
|
|
8641
|
+
children: adoptLabel
|
|
8642
|
+
}
|
|
8643
|
+
)
|
|
8644
|
+
] })
|
|
8645
|
+
]
|
|
8646
|
+
}
|
|
8647
|
+
);
|
|
8648
|
+
}
|
|
8649
|
+
MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
|
|
8650
|
+
function cn65(...classes) {
|
|
8205
8651
|
return classes.filter(Boolean).join(" ");
|
|
8206
8652
|
}
|
|
8207
8653
|
function StarIcon2() {
|
|
@@ -8322,7 +8768,7 @@ function MosaicTemplateCard({
|
|
|
8322
8768
|
type: "button",
|
|
8323
8769
|
onClick: () => onSelect(template),
|
|
8324
8770
|
"data-slot": "template-card",
|
|
8325
|
-
className:
|
|
8771
|
+
className: cn65(
|
|
8326
8772
|
"w-full text-left rounded-lg border transition-all duration-200",
|
|
8327
8773
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
8328
8774
|
isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
|
|
@@ -8423,7 +8869,7 @@ function MosaicTemplatePreview({
|
|
|
8423
8869
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8424
8870
|
"span",
|
|
8425
8871
|
{
|
|
8426
|
-
className:
|
|
8872
|
+
className: cn65("h-2 w-2 rounded-full", agent.accentColor),
|
|
8427
8873
|
"aria-hidden": "true"
|
|
8428
8874
|
}
|
|
8429
8875
|
),
|
|
@@ -8483,7 +8929,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
|
|
|
8483
8929
|
agent.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8484
8930
|
"span",
|
|
8485
8931
|
{
|
|
8486
|
-
className:
|
|
8932
|
+
className: cn65("h-2.5 w-2.5 rounded-full", agent.accentColor),
|
|
8487
8933
|
"aria-hidden": "true"
|
|
8488
8934
|
}
|
|
8489
8935
|
),
|
|
@@ -8507,7 +8953,7 @@ function MosaicQuickStartPanel({
|
|
|
8507
8953
|
scratchLabel,
|
|
8508
8954
|
className
|
|
8509
8955
|
}) {
|
|
8510
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className:
|
|
8956
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "quick-start-panel", className: cn65("flex flex-col gap-6", className), children: [
|
|
8511
8957
|
scenarios.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
8512
8958
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
|
|
8513
8959
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -8515,7 +8961,7 @@ function MosaicQuickStartPanel({
|
|
|
8515
8961
|
{
|
|
8516
8962
|
type: "button",
|
|
8517
8963
|
onClick: () => onSelectScenario(scenario),
|
|
8518
|
-
className:
|
|
8964
|
+
className: cn65(
|
|
8519
8965
|
"flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
|
|
8520
8966
|
"hover:border-primary/50 hover:bg-primary/5",
|
|
8521
8967
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8547,7 +8993,7 @@ function MosaicQuickStartPanel({
|
|
|
8547
8993
|
{
|
|
8548
8994
|
type: "button",
|
|
8549
8995
|
onClick: () => onSelectPreset(preset),
|
|
8550
|
-
className:
|
|
8996
|
+
className: cn65(
|
|
8551
8997
|
"flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
|
|
8552
8998
|
"hover:border-primary/50",
|
|
8553
8999
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
@@ -8561,7 +9007,7 @@ function MosaicQuickStartPanel({
|
|
|
8561
9007
|
a.accentColor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8562
9008
|
"span",
|
|
8563
9009
|
{
|
|
8564
|
-
className:
|
|
9010
|
+
className: cn65("h-2 w-2 rounded-full", a.accentColor),
|
|
8565
9011
|
"aria-hidden": "true"
|
|
8566
9012
|
}
|
|
8567
9013
|
),
|
|
@@ -8579,7 +9025,7 @@ function MosaicQuickStartPanel({
|
|
|
8579
9025
|
{
|
|
8580
9026
|
type: "button",
|
|
8581
9027
|
onClick: onStartFromScratch,
|
|
8582
|
-
className:
|
|
9028
|
+
className: cn65(
|
|
8583
9029
|
"inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
|
|
8584
9030
|
"bg-background px-4 text-sm font-medium text-foreground",
|
|
8585
9031
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -8673,7 +9119,7 @@ function TemplateGalleryContent({
|
|
|
8673
9119
|
value: query,
|
|
8674
9120
|
onChange: (e) => setQuery(e.target.value),
|
|
8675
9121
|
placeholder: searchPlaceholder,
|
|
8676
|
-
className:
|
|
9122
|
+
className: cn65(
|
|
8677
9123
|
"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
9124
|
)
|
|
8679
9125
|
}
|
|
@@ -8724,7 +9170,7 @@ function TemplateGalleryContent({
|
|
|
8724
9170
|
value: query,
|
|
8725
9171
|
onChange: (e) => setQuery(e.target.value),
|
|
8726
9172
|
placeholder: searchPlaceholder,
|
|
8727
|
-
className:
|
|
9173
|
+
className: cn65(
|
|
8728
9174
|
"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
9175
|
)
|
|
8730
9176
|
}
|
|
@@ -8756,7 +9202,7 @@ function MosaicTemplateGallery(props) {
|
|
|
8756
9202
|
return /* @__PURE__ */ jsxRuntime.jsx(TemplateGalleryContent, { ...props, isMobile });
|
|
8757
9203
|
}
|
|
8758
9204
|
MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
|
|
8759
|
-
function
|
|
9205
|
+
function cn66(...classes) {
|
|
8760
9206
|
return classes.filter(Boolean).join(" ");
|
|
8761
9207
|
}
|
|
8762
9208
|
function PlusIcon5() {
|
|
@@ -8907,7 +9353,7 @@ function MosaicModuleForm(props) {
|
|
|
8907
9353
|
onChange: (e) => update("name", e.target.value),
|
|
8908
9354
|
placeholder: namePlaceholder,
|
|
8909
9355
|
required: true,
|
|
8910
|
-
className:
|
|
9356
|
+
className: cn66(
|
|
8911
9357
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8912
9358
|
"text-sm placeholder:text-muted-foreground",
|
|
8913
9359
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8925,7 +9371,7 @@ function MosaicModuleForm(props) {
|
|
|
8925
9371
|
onChange: (e) => update("description", e.target.value),
|
|
8926
9372
|
placeholder: descriptionPlaceholder,
|
|
8927
9373
|
rows: 3,
|
|
8928
|
-
className:
|
|
9374
|
+
className: cn66(
|
|
8929
9375
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8930
9376
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8931
9377
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8947,7 +9393,7 @@ function MosaicModuleForm(props) {
|
|
|
8947
9393
|
value: formData[field.id] ?? "",
|
|
8948
9394
|
onChange: (e) => update(field.id, e.target.value),
|
|
8949
9395
|
placeholder: field.placeholder,
|
|
8950
|
-
className:
|
|
9396
|
+
className: cn66(
|
|
8951
9397
|
"w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
|
|
8952
9398
|
"text-sm placeholder:text-muted-foreground",
|
|
8953
9399
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8962,7 +9408,7 @@ function MosaicModuleForm(props) {
|
|
|
8962
9408
|
onChange: (e) => update(field.id, e.target.value),
|
|
8963
9409
|
placeholder: field.placeholder,
|
|
8964
9410
|
rows: 3,
|
|
8965
|
-
className:
|
|
9411
|
+
className: cn66(
|
|
8966
9412
|
"w-full rounded-md border border-input bg-background px-3 py-2",
|
|
8967
9413
|
"text-sm placeholder:text-muted-foreground resize-none",
|
|
8968
9414
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -8978,7 +9424,7 @@ function MosaicModuleForm(props) {
|
|
|
8978
9424
|
onChange: (e) => update(field.id, e.target.value),
|
|
8979
9425
|
placeholder: field.placeholder ?? "\u{1F9E0}",
|
|
8980
9426
|
maxLength: 4,
|
|
8981
|
-
className:
|
|
9427
|
+
className: cn66(
|
|
8982
9428
|
"w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
|
|
8983
9429
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
8984
9430
|
)
|
|
@@ -8999,7 +9445,7 @@ function MosaicModuleForm(props) {
|
|
|
8999
9445
|
}
|
|
9000
9446
|
},
|
|
9001
9447
|
placeholder: field.placeholder ?? tagListAddPlaceholder,
|
|
9002
|
-
className:
|
|
9448
|
+
className: cn66(
|
|
9003
9449
|
"flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
|
|
9004
9450
|
"text-sm placeholder:text-muted-foreground",
|
|
9005
9451
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9211,7 +9657,7 @@ function LibraryContent({
|
|
|
9211
9657
|
{
|
|
9212
9658
|
type: "button",
|
|
9213
9659
|
onClick: openCreate,
|
|
9214
|
-
className:
|
|
9660
|
+
className: cn66(
|
|
9215
9661
|
"inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
|
|
9216
9662
|
"hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9217
9663
|
),
|
|
@@ -9231,7 +9677,7 @@ function LibraryContent({
|
|
|
9231
9677
|
value: query,
|
|
9232
9678
|
onChange: (e) => setQuery(e.target.value),
|
|
9233
9679
|
placeholder: searchPlaceholder,
|
|
9234
|
-
className:
|
|
9680
|
+
className: cn66(
|
|
9235
9681
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
9236
9682
|
"text-sm placeholder:text-muted-foreground",
|
|
9237
9683
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9244,7 +9690,7 @@ function LibraryContent({
|
|
|
9244
9690
|
{
|
|
9245
9691
|
type: "button",
|
|
9246
9692
|
onClick: () => setActiveTab(tab.id),
|
|
9247
|
-
className:
|
|
9693
|
+
className: cn66(
|
|
9248
9694
|
"rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9249
9695
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
9250
9696
|
),
|
|
@@ -9296,7 +9742,7 @@ function MosaicModuleLibrary(props) {
|
|
|
9296
9742
|
return /* @__PURE__ */ jsxRuntime.jsx(LibraryContent, { ...props });
|
|
9297
9743
|
}
|
|
9298
9744
|
MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
|
|
9299
|
-
function
|
|
9745
|
+
function cn67(...classes) {
|
|
9300
9746
|
return classes.filter(Boolean).join(" ");
|
|
9301
9747
|
}
|
|
9302
9748
|
var roleConfig = {
|
|
@@ -9323,7 +9769,7 @@ function MosaicOrgRoleBadge({ role, className }) {
|
|
|
9323
9769
|
{
|
|
9324
9770
|
"data-slot": "org-role-badge",
|
|
9325
9771
|
title: config.description,
|
|
9326
|
-
className:
|
|
9772
|
+
className: cn67(
|
|
9327
9773
|
"inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
|
|
9328
9774
|
config.className,
|
|
9329
9775
|
className
|
|
@@ -9340,13 +9786,13 @@ function MosaicMultiOrgIndicator({
|
|
|
9340
9786
|
className
|
|
9341
9787
|
}) {
|
|
9342
9788
|
if (orgCount <= 1) return null;
|
|
9343
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className:
|
|
9789
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "multi-org-indicator", className: cn67("flex items-center gap-2", className), children: [
|
|
9344
9790
|
onSwitchOrg ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9345
9791
|
"button",
|
|
9346
9792
|
{
|
|
9347
9793
|
type: "button",
|
|
9348
9794
|
onClick: onSwitchOrg,
|
|
9349
|
-
className:
|
|
9795
|
+
className: cn67(
|
|
9350
9796
|
"inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
|
|
9351
9797
|
"hover:bg-secondary/80",
|
|
9352
9798
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -9460,7 +9906,7 @@ function MosaicCreateOrgDialog({
|
|
|
9460
9906
|
onChange: (e) => setName(e.target.value),
|
|
9461
9907
|
placeholder: orgNamePlaceholder,
|
|
9462
9908
|
required: true,
|
|
9463
|
-
className:
|
|
9909
|
+
className: cn67(
|
|
9464
9910
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9465
9911
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9466
9912
|
errors.name ? "border-destructive" : "border-input"
|
|
@@ -9480,7 +9926,7 @@ function MosaicCreateOrgDialog({
|
|
|
9480
9926
|
onChange: (e) => setSlug(e.target.value),
|
|
9481
9927
|
placeholder: "acme-inc",
|
|
9482
9928
|
required: true,
|
|
9483
|
-
className:
|
|
9929
|
+
className: cn67(
|
|
9484
9930
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9485
9931
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9486
9932
|
errors.slug ? "border-destructive" : "border-input"
|
|
@@ -9593,7 +10039,7 @@ function MosaicInviteMemberDialog({
|
|
|
9593
10039
|
onChange: (e) => setEmail(e.target.value),
|
|
9594
10040
|
placeholder: emailPlaceholder,
|
|
9595
10041
|
required: true,
|
|
9596
|
-
className:
|
|
10042
|
+
className: cn67(
|
|
9597
10043
|
"w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
|
|
9598
10044
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9599
10045
|
errors.email ? "border-destructive" : "border-input"
|
|
@@ -9780,7 +10226,7 @@ function MosaicMemberList({
|
|
|
9780
10226
|
const filtered = members.filter(
|
|
9781
10227
|
(m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
|
|
9782
10228
|
);
|
|
9783
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className:
|
|
10229
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "member-list", className: cn67("flex flex-col gap-4", className), children: [
|
|
9784
10230
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
9785
10231
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex-1", children: [
|
|
9786
10232
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -9876,7 +10322,7 @@ function MosaicOrgPanel({
|
|
|
9876
10322
|
const { isMobile } = useDevice();
|
|
9877
10323
|
const [activeTab, setActiveTab] = React29__namespace.useState(defaultTab ?? tabs[0]?.id ?? "");
|
|
9878
10324
|
const activeContent = tabs.find((t) => t.id === activeTab)?.content;
|
|
9879
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className:
|
|
10325
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "org-panel", className: cn67("flex h-full flex-col", className), children: [
|
|
9880
10326
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
|
|
9881
10327
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
9882
10328
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -9898,12 +10344,12 @@ function MosaicOrgPanel({
|
|
|
9898
10344
|
] }),
|
|
9899
10345
|
headerActions
|
|
9900
10346
|
] }),
|
|
9901
|
-
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10347
|
+
tabs.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn67("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9902
10348
|
"button",
|
|
9903
10349
|
{
|
|
9904
10350
|
type: "button",
|
|
9905
10351
|
onClick: () => setActiveTab(tab.id),
|
|
9906
|
-
className:
|
|
10352
|
+
className: cn67(
|
|
9907
10353
|
"shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
|
|
9908
10354
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
9909
10355
|
activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
|
|
@@ -9917,7 +10363,7 @@ function MosaicOrgPanel({
|
|
|
9917
10363
|
] });
|
|
9918
10364
|
}
|
|
9919
10365
|
MosaicOrgPanel.displayName = "MosaicOrgPanel";
|
|
9920
|
-
function
|
|
10366
|
+
function cn68(...classes) {
|
|
9921
10367
|
return classes.filter(Boolean).join(" ");
|
|
9922
10368
|
}
|
|
9923
10369
|
var ANIM_ID8 = "mosaic-dashboard-content-kf";
|
|
@@ -9954,7 +10400,7 @@ function MosaicDashboardContent({
|
|
|
9954
10400
|
"div",
|
|
9955
10401
|
{
|
|
9956
10402
|
"data-slot": "dashboard-content",
|
|
9957
|
-
className:
|
|
10403
|
+
className: cn68("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
|
|
9958
10404
|
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
10405
|
"View not found: ",
|
|
9960
10406
|
currentView
|
|
@@ -9963,7 +10409,7 @@ function MosaicDashboardContent({
|
|
|
9963
10409
|
);
|
|
9964
10410
|
}
|
|
9965
10411
|
MosaicDashboardContent.displayName = "MosaicDashboardContent";
|
|
9966
|
-
function
|
|
10412
|
+
function cn69(...classes) {
|
|
9967
10413
|
return classes.filter(Boolean).join(" ");
|
|
9968
10414
|
}
|
|
9969
10415
|
var ANIM_ID9 = "mosaic-dashboard-header2-kf";
|
|
@@ -10075,16 +10521,16 @@ function MosaicDashboardHeader({
|
|
|
10075
10521
|
"header",
|
|
10076
10522
|
{
|
|
10077
10523
|
"data-slot": "dashboard-header",
|
|
10078
|
-
className:
|
|
10524
|
+
className: cn69(
|
|
10079
10525
|
"mosaic-dashboard-header2",
|
|
10080
10526
|
"sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
|
|
10081
10527
|
className
|
|
10082
10528
|
),
|
|
10083
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
10529
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn69(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
10530
|
/* @__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
10531
|
logoSlot ?? /* @__PURE__ */ jsxRuntime.jsx(SparklesIcon4, {}),
|
|
10086
10532
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
10087
|
-
/* @__PURE__ */ jsxRuntime.jsx("h1", { className:
|
|
10533
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn69("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
|
|
10088
10534
|
subtitle && !isMobile && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
|
|
10089
10535
|
] })
|
|
10090
10536
|
] }) }),
|
|
@@ -10097,7 +10543,7 @@ function MosaicDashboardHeader({
|
|
|
10097
10543
|
value: searchQuery,
|
|
10098
10544
|
onChange: handleSearch,
|
|
10099
10545
|
placeholder: searchPlaceholder,
|
|
10100
|
-
className:
|
|
10546
|
+
className: cn69(
|
|
10101
10547
|
"w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
|
|
10102
10548
|
"text-sm placeholder:text-muted-foreground",
|
|
10103
10549
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -10137,7 +10583,7 @@ function MosaicDashboardHeader({
|
|
|
10137
10583
|
);
|
|
10138
10584
|
}
|
|
10139
10585
|
MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
|
|
10140
|
-
function
|
|
10586
|
+
function cn70(...classes) {
|
|
10141
10587
|
return classes.filter(Boolean).join(" ");
|
|
10142
10588
|
}
|
|
10143
10589
|
function ChevronDownIcon4() {
|
|
@@ -10220,13 +10666,13 @@ function MosaicOrgSwitcher({
|
|
|
10220
10666
|
}, [open]);
|
|
10221
10667
|
if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
|
|
10222
10668
|
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:
|
|
10669
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "org-switcher", className: cn70("relative", className), children: [
|
|
10224
10670
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10225
10671
|
"button",
|
|
10226
10672
|
{
|
|
10227
10673
|
type: "button",
|
|
10228
10674
|
onClick: () => setOpen((v) => !v),
|
|
10229
|
-
className:
|
|
10675
|
+
className: cn70(
|
|
10230
10676
|
"inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
|
|
10231
10677
|
"text-sm font-medium text-foreground",
|
|
10232
10678
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10253,7 +10699,7 @@ function MosaicOrgSwitcher({
|
|
|
10253
10699
|
{
|
|
10254
10700
|
role: "menu",
|
|
10255
10701
|
"aria-label": triggerAriaLabel,
|
|
10256
|
-
className:
|
|
10702
|
+
className: cn70(
|
|
10257
10703
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
|
|
10258
10704
|
"bg-popover py-1 shadow-md"
|
|
10259
10705
|
),
|
|
@@ -10268,7 +10714,7 @@ function MosaicOrgSwitcher({
|
|
|
10268
10714
|
onSelectOrg?.(org.id);
|
|
10269
10715
|
setOpen(false);
|
|
10270
10716
|
},
|
|
10271
|
-
className:
|
|
10717
|
+
className: cn70(
|
|
10272
10718
|
"flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
|
|
10273
10719
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10274
10720
|
org.id === currentOrgId && "bg-primary/10 text-primary"
|
|
@@ -10305,7 +10751,7 @@ function MosaicOrgSwitcher({
|
|
|
10305
10751
|
] });
|
|
10306
10752
|
}
|
|
10307
10753
|
MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
|
|
10308
|
-
function
|
|
10754
|
+
function cn71(...classes) {
|
|
10309
10755
|
return classes.filter(Boolean).join(" ");
|
|
10310
10756
|
}
|
|
10311
10757
|
function PlusIcon7() {
|
|
@@ -10350,19 +10796,19 @@ function MosaicQuickActionsMenu({
|
|
|
10350
10796
|
document.addEventListener("mousedown", h);
|
|
10351
10797
|
return () => document.removeEventListener("mousedown", h);
|
|
10352
10798
|
}, [open]);
|
|
10353
|
-
const itemClass =
|
|
10799
|
+
const itemClass = cn71(
|
|
10354
10800
|
"flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
|
|
10355
10801
|
"hover:bg-accent hover:text-accent-foreground",
|
|
10356
10802
|
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
10357
10803
|
"min-h-[44px]"
|
|
10358
10804
|
);
|
|
10359
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className:
|
|
10805
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn71("relative", className), children: [
|
|
10360
10806
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
10361
10807
|
"button",
|
|
10362
10808
|
{
|
|
10363
10809
|
type: "button",
|
|
10364
10810
|
onClick: () => setOpen((v) => !v),
|
|
10365
|
-
className:
|
|
10811
|
+
className: cn71(
|
|
10366
10812
|
"inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
|
|
10367
10813
|
"min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
|
|
10368
10814
|
"hover:bg-accent hover:text-accent-foreground",
|
|
@@ -10373,7 +10819,7 @@ function MosaicQuickActionsMenu({
|
|
|
10373
10819
|
"aria-label": label,
|
|
10374
10820
|
children: [
|
|
10375
10821
|
triggerIcon ?? /* @__PURE__ */ jsxRuntime.jsx(PlusIcon7, {}),
|
|
10376
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
10822
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: cn71("hidden md:inline"), children: label })
|
|
10377
10823
|
]
|
|
10378
10824
|
}
|
|
10379
10825
|
),
|
|
@@ -10382,13 +10828,13 @@ function MosaicQuickActionsMenu({
|
|
|
10382
10828
|
{
|
|
10383
10829
|
role: "menu",
|
|
10384
10830
|
"aria-label": menuTitle,
|
|
10385
|
-
className:
|
|
10831
|
+
className: cn71(
|
|
10386
10832
|
"absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
|
|
10387
10833
|
isMobile ? "w-[min(90vw,280px)]" : "w-56"
|
|
10388
10834
|
),
|
|
10389
10835
|
children: [
|
|
10390
10836
|
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:
|
|
10837
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn71(menuTitle && "border-t border-border") }),
|
|
10392
10838
|
actions.map((action) => /* @__PURE__ */ jsxRuntime.jsxs(React29__namespace.Fragment, { children: [
|
|
10393
10839
|
action.separator && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-1 border-t border-border" }),
|
|
10394
10840
|
action.href && renderLink ? renderLink(
|
|
@@ -10693,7 +11139,7 @@ function MosaicOrgProfilePage({
|
|
|
10693
11139
|
);
|
|
10694
11140
|
}
|
|
10695
11141
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
10696
|
-
function
|
|
11142
|
+
function cn72(...classes) {
|
|
10697
11143
|
return classes.filter(Boolean).join(" ");
|
|
10698
11144
|
}
|
|
10699
11145
|
function defaultCompare(a, b) {
|
|
@@ -10756,7 +11202,7 @@ function MosaicDataTable({
|
|
|
10756
11202
|
{
|
|
10757
11203
|
ref,
|
|
10758
11204
|
"data-slot": "data-table",
|
|
10759
|
-
className:
|
|
11205
|
+
className: cn72("w-full border-collapse text-sm", className),
|
|
10760
11206
|
children: [
|
|
10761
11207
|
/* @__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
11208
|
const isSortable = masterSortable && col.sortable;
|
|
@@ -10774,7 +11220,7 @@ function MosaicDataTable({
|
|
|
10774
11220
|
handleHeaderClick(col);
|
|
10775
11221
|
}
|
|
10776
11222
|
} : void 0,
|
|
10777
|
-
className:
|
|
11223
|
+
className: cn72(
|
|
10778
11224
|
"px-4 py-3 font-medium text-muted-foreground",
|
|
10779
11225
|
alignClass(col.align),
|
|
10780
11226
|
col.className,
|
|
@@ -10810,7 +11256,7 @@ function MosaicDataTable({
|
|
|
10810
11256
|
"td",
|
|
10811
11257
|
{
|
|
10812
11258
|
"data-slot": "data-table-td",
|
|
10813
|
-
className:
|
|
11259
|
+
className: cn72(
|
|
10814
11260
|
"px-4 py-3 text-foreground",
|
|
10815
11261
|
alignClass(col.align),
|
|
10816
11262
|
col.className
|
|
@@ -10949,7 +11395,7 @@ var stepSegmentVariants = classVarianceAuthority.cva(["h-1.5 flex-1 min-w-2 roun
|
|
|
10949
11395
|
filled: false
|
|
10950
11396
|
}
|
|
10951
11397
|
});
|
|
10952
|
-
function
|
|
11398
|
+
function cn73(...classes) {
|
|
10953
11399
|
return classes.filter(Boolean).join(" ");
|
|
10954
11400
|
}
|
|
10955
11401
|
function resolveStatus(step, index, currentIndex) {
|
|
@@ -10990,7 +11436,7 @@ function MosaicStepPipelineSegments({
|
|
|
10990
11436
|
"aria-valuemax": total,
|
|
10991
11437
|
"aria-valuenow": current,
|
|
10992
11438
|
"aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
|
|
10993
|
-
className:
|
|
11439
|
+
className: cn73(stepSegmentBarVariants(), className),
|
|
10994
11440
|
children: steps.map((step, index) => {
|
|
10995
11441
|
const status = resolveStatus(step, index, currentIndex);
|
|
10996
11442
|
const filled = status !== "upcoming";
|
|
@@ -11002,7 +11448,7 @@ function MosaicStepPipelineSegments({
|
|
|
11002
11448
|
"data-status": status,
|
|
11003
11449
|
"data-filled": filled,
|
|
11004
11450
|
"aria-hidden": "true",
|
|
11005
|
-
className:
|
|
11451
|
+
className: cn73(stepSegmentVariants({ filled }))
|
|
11006
11452
|
},
|
|
11007
11453
|
key
|
|
11008
11454
|
);
|
|
@@ -11023,7 +11469,7 @@ function MosaicStepPipelineDots({
|
|
|
11023
11469
|
{
|
|
11024
11470
|
ref,
|
|
11025
11471
|
"data-slot": "step-pipeline",
|
|
11026
|
-
className:
|
|
11472
|
+
className: cn73(stepPipelineVariants({ orientation }), className),
|
|
11027
11473
|
children: steps.map((step, index) => {
|
|
11028
11474
|
const status = resolveStatus(step, index, currentIndex);
|
|
11029
11475
|
const isCurrent = status === "current";
|
|
@@ -11035,7 +11481,7 @@ function MosaicStepPipelineDots({
|
|
|
11035
11481
|
"data-slot": "step",
|
|
11036
11482
|
"data-status": status,
|
|
11037
11483
|
"aria-current": isCurrent ? "step" : void 0,
|
|
11038
|
-
className:
|
|
11484
|
+
className: cn73(
|
|
11039
11485
|
"flex shrink-0",
|
|
11040
11486
|
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
11041
11487
|
orientation === "horizontal" && !isLast && "flex-1"
|
|
@@ -11046,14 +11492,14 @@ function MosaicStepPipelineDots({
|
|
|
11046
11492
|
"div",
|
|
11047
11493
|
{
|
|
11048
11494
|
"data-slot": "step-connector",
|
|
11049
|
-
className:
|
|
11495
|
+
className: cn73(stepConnectorVariants({ status, orientation }))
|
|
11050
11496
|
}
|
|
11051
11497
|
),
|
|
11052
11498
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11053
11499
|
"div",
|
|
11054
11500
|
{
|
|
11055
11501
|
"data-slot": "step-indicator",
|
|
11056
|
-
className:
|
|
11502
|
+
className: cn73(stepIndicatorVariants({ status, orientation })),
|
|
11057
11503
|
"aria-hidden": "true",
|
|
11058
11504
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11059
11505
|
}
|
|
@@ -11062,7 +11508,7 @@ function MosaicStepPipelineDots({
|
|
|
11062
11508
|
"div",
|
|
11063
11509
|
{
|
|
11064
11510
|
"data-slot": "step-connector",
|
|
11065
|
-
className:
|
|
11511
|
+
className: cn73(
|
|
11066
11512
|
stepConnectorVariants({
|
|
11067
11513
|
// connector after current step is still upcoming
|
|
11068
11514
|
status: status === "done" ? "done" : "upcoming",
|
|
@@ -11073,12 +11519,12 @@ function MosaicStepPipelineDots({
|
|
|
11073
11519
|
)
|
|
11074
11520
|
] }),
|
|
11075
11521
|
/* @__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:
|
|
11522
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn73(stepLabelVariants({ status })), children: step.label }),
|
|
11077
11523
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11078
11524
|
"span",
|
|
11079
11525
|
{
|
|
11080
11526
|
"data-slot": "step-description",
|
|
11081
|
-
className:
|
|
11527
|
+
className: cn73(stepDescriptionVariants({ status })),
|
|
11082
11528
|
children: step.description
|
|
11083
11529
|
}
|
|
11084
11530
|
)
|
|
@@ -11089,7 +11535,7 @@ function MosaicStepPipelineDots({
|
|
|
11089
11535
|
"div",
|
|
11090
11536
|
{
|
|
11091
11537
|
"data-slot": "step-indicator",
|
|
11092
|
-
className:
|
|
11538
|
+
className: cn73(stepIndicatorVariants({ status, orientation })),
|
|
11093
11539
|
"aria-hidden": "true",
|
|
11094
11540
|
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
11095
11541
|
}
|
|
@@ -11098,7 +11544,7 @@ function MosaicStepPipelineDots({
|
|
|
11098
11544
|
"div",
|
|
11099
11545
|
{
|
|
11100
11546
|
"data-slot": "step-connector",
|
|
11101
|
-
className:
|
|
11547
|
+
className: cn73(
|
|
11102
11548
|
stepConnectorVariants({
|
|
11103
11549
|
status: status === "done" ? "done" : "upcoming",
|
|
11104
11550
|
orientation
|
|
@@ -11108,12 +11554,12 @@ function MosaicStepPipelineDots({
|
|
|
11108
11554
|
)
|
|
11109
11555
|
] }),
|
|
11110
11556
|
/* @__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:
|
|
11557
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn73(stepLabelVariants({ status })), children: step.label }),
|
|
11112
11558
|
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11113
11559
|
"span",
|
|
11114
11560
|
{
|
|
11115
11561
|
"data-slot": "step-description",
|
|
11116
|
-
className:
|
|
11562
|
+
className: cn73(stepDescriptionVariants({ status })),
|
|
11117
11563
|
children: step.description
|
|
11118
11564
|
}
|
|
11119
11565
|
)
|
|
@@ -11127,7 +11573,7 @@ function MosaicStepPipelineDots({
|
|
|
11127
11573
|
);
|
|
11128
11574
|
}
|
|
11129
11575
|
MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
|
|
11130
|
-
function
|
|
11576
|
+
function cn74(...classes) {
|
|
11131
11577
|
return classes.filter(Boolean).join(" ");
|
|
11132
11578
|
}
|
|
11133
11579
|
function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
@@ -11136,7 +11582,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11136
11582
|
{
|
|
11137
11583
|
ref,
|
|
11138
11584
|
"data-slot": "kanban-board",
|
|
11139
|
-
className:
|
|
11585
|
+
className: cn74(
|
|
11140
11586
|
"flex gap-4 overflow-x-auto pb-4",
|
|
11141
11587
|
"min-h-0",
|
|
11142
11588
|
// Smooth momentum scrolling on iOS
|
|
@@ -11149,7 +11595,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
|
|
|
11149
11595
|
);
|
|
11150
11596
|
}
|
|
11151
11597
|
MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
|
|
11152
|
-
function
|
|
11598
|
+
function cn75(...classes) {
|
|
11153
11599
|
return classes.filter(Boolean).join(" ");
|
|
11154
11600
|
}
|
|
11155
11601
|
function MosaicKanbanColumn({
|
|
@@ -11167,7 +11613,7 @@ function MosaicKanbanColumn({
|
|
|
11167
11613
|
{
|
|
11168
11614
|
ref,
|
|
11169
11615
|
"data-slot": "kanban-column",
|
|
11170
|
-
className:
|
|
11616
|
+
className: cn75(
|
|
11171
11617
|
// Fixed column width, never shrink so board stays scrollable
|
|
11172
11618
|
"flex flex-col w-72 shrink-0",
|
|
11173
11619
|
// Surface
|
|
@@ -11188,7 +11634,7 @@ function MosaicKanbanColumn({
|
|
|
11188
11634
|
{
|
|
11189
11635
|
"data-slot": "kanban-column-count",
|
|
11190
11636
|
"aria-label": countLabel(count),
|
|
11191
|
-
className:
|
|
11637
|
+
className: cn75(
|
|
11192
11638
|
"inline-flex items-center justify-center",
|
|
11193
11639
|
"min-w-[1.25rem] h-5 px-1.5 rounded-full",
|
|
11194
11640
|
"bg-muted text-muted-foreground",
|
|
@@ -11410,7 +11856,7 @@ var documentUploadProgressFillVariants = classVarianceAuthority.cva(
|
|
|
11410
11856
|
defaultVariants: {}
|
|
11411
11857
|
}
|
|
11412
11858
|
);
|
|
11413
|
-
function
|
|
11859
|
+
function cn76(...classes) {
|
|
11414
11860
|
return classes.filter(Boolean).join(" ");
|
|
11415
11861
|
}
|
|
11416
11862
|
function MosaicDocumentUpload({
|
|
@@ -11451,7 +11897,7 @@ function MosaicDocumentUpload({
|
|
|
11451
11897
|
if (selected.length > 0) onFilesSelected(selected);
|
|
11452
11898
|
event.target.value = "";
|
|
11453
11899
|
}
|
|
11454
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className:
|
|
11900
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "document-upload", className: cn76("flex flex-col gap-4", className), children: [
|
|
11455
11901
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11456
11902
|
"div",
|
|
11457
11903
|
{
|
|
@@ -11516,7 +11962,7 @@ function MosaicDocumentUpload({
|
|
|
11516
11962
|
"aria-valuemin": 0,
|
|
11517
11963
|
"aria-valuemax": 100,
|
|
11518
11964
|
"aria-valuenow": file.progress ?? 0,
|
|
11519
|
-
className:
|
|
11965
|
+
className: cn76(documentUploadProgressTrackVariants(), "mt-2"),
|
|
11520
11966
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11521
11967
|
"div",
|
|
11522
11968
|
{
|
|
@@ -11593,7 +12039,7 @@ var urlScraperCardVariants = classVarianceAuthority.cva(["flex flex-col gap-2 ro
|
|
|
11593
12039
|
tone: "neutral"
|
|
11594
12040
|
}
|
|
11595
12041
|
});
|
|
11596
|
-
function
|
|
12042
|
+
function cn77(...classes) {
|
|
11597
12043
|
return classes.filter(Boolean).join(" ");
|
|
11598
12044
|
}
|
|
11599
12045
|
function isSyntacticallyValidUrl(candidate) {
|
|
@@ -11632,7 +12078,7 @@ function MosaicUrlScraper(props) {
|
|
|
11632
12078
|
setIsLocallyInvalid(false);
|
|
11633
12079
|
onUrlChange(event.target.value);
|
|
11634
12080
|
}
|
|
11635
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className:
|
|
12081
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "url-scraper", className: cn77("flex flex-col gap-4", className), children: [
|
|
11636
12082
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
11637
12083
|
"form",
|
|
11638
12084
|
{
|
|
@@ -11768,7 +12214,7 @@ var chatThreadScrollButtonVariants = classVarianceAuthority.cva([
|
|
|
11768
12214
|
"items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
|
|
11769
12215
|
"transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
11770
12216
|
]);
|
|
11771
|
-
function
|
|
12217
|
+
function cn78(...classes) {
|
|
11772
12218
|
return classes.filter(Boolean).join(" ");
|
|
11773
12219
|
}
|
|
11774
12220
|
var BOTTOM_THRESHOLD_PX = 24;
|
|
@@ -11852,7 +12298,7 @@ function MosaicChatThread({
|
|
|
11852
12298
|
role: "log",
|
|
11853
12299
|
onScroll: handleScroll,
|
|
11854
12300
|
onKeyDown: handleKeyDown,
|
|
11855
|
-
className:
|
|
12301
|
+
className: cn78(chatThreadRootVariants(), className),
|
|
11856
12302
|
children: [
|
|
11857
12303
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
|
|
11858
12304
|
!isAtBottom && /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11893,7 +12339,7 @@ var chatComposerActionButtonVariants = classVarianceAuthority.cva(
|
|
|
11893
12339
|
}
|
|
11894
12340
|
}
|
|
11895
12341
|
);
|
|
11896
|
-
function
|
|
12342
|
+
function cn79(...classes) {
|
|
11897
12343
|
return classes.filter(Boolean).join(" ");
|
|
11898
12344
|
}
|
|
11899
12345
|
function MosaicChatComposer(props) {
|
|
@@ -11948,7 +12394,7 @@ function MosaicChatComposer(props) {
|
|
|
11948
12394
|
{
|
|
11949
12395
|
ref,
|
|
11950
12396
|
"data-slot": "chat-composer",
|
|
11951
|
-
className:
|
|
12397
|
+
className: cn79(chatComposerRootVariants(), className),
|
|
11952
12398
|
onSubmit: handleSubmit,
|
|
11953
12399
|
children: [
|
|
11954
12400
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -12064,7 +12510,7 @@ var markdownTableCellVariants = classVarianceAuthority.cva(["border border-borde
|
|
|
12064
12510
|
align: "left"
|
|
12065
12511
|
}
|
|
12066
12512
|
});
|
|
12067
|
-
function
|
|
12513
|
+
function cn80(...classes) {
|
|
12068
12514
|
return classes.filter(Boolean).join(" ");
|
|
12069
12515
|
}
|
|
12070
12516
|
function sanitizeHref(rawHref) {
|
|
@@ -12259,7 +12705,7 @@ function parseBlocks(content) {
|
|
|
12259
12705
|
function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
|
|
12260
12706
|
const blocks = parseBlocks(content);
|
|
12261
12707
|
const ids = makeIdSource();
|
|
12262
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className:
|
|
12708
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "markdown", className: cn80(markdownRootVariants(), className), children: blocks.map((block) => {
|
|
12263
12709
|
if (block.kind === "heading") {
|
|
12264
12710
|
const HeadingTag = `h${block.level}`;
|
|
12265
12711
|
return /* @__PURE__ */ jsxRuntime.jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
|
|
@@ -12337,7 +12783,7 @@ var chatMessageToolStatusVariants = classVarianceAuthority.cva(["text-xs font-me
|
|
|
12337
12783
|
status: "running"
|
|
12338
12784
|
}
|
|
12339
12785
|
});
|
|
12340
|
-
function
|
|
12786
|
+
function cn81(...classes) {
|
|
12341
12787
|
return classes.filter(Boolean).join(" ");
|
|
12342
12788
|
}
|
|
12343
12789
|
function partKey(part, index) {
|
|
@@ -12503,7 +12949,7 @@ function MosaicChatMessage({
|
|
|
12503
12949
|
ref,
|
|
12504
12950
|
"data-slot": "chat-message",
|
|
12505
12951
|
"data-role": messageRole,
|
|
12506
|
-
className:
|
|
12952
|
+
className: cn81(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
|
|
12507
12953
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12508
12954
|
ChatMessagePartView,
|
|
12509
12955
|
{
|
|
@@ -12558,7 +13004,7 @@ var approvalPromptButtonVariants = classVarianceAuthority.cva(
|
|
|
12558
13004
|
}
|
|
12559
13005
|
}
|
|
12560
13006
|
);
|
|
12561
|
-
function
|
|
13007
|
+
function cn82(...classes) {
|
|
12562
13008
|
return classes.filter(Boolean).join(" ");
|
|
12563
13009
|
}
|
|
12564
13010
|
function MosaicApprovalPrompt(props) {
|
|
@@ -12570,7 +13016,7 @@ function MosaicApprovalPrompt(props) {
|
|
|
12570
13016
|
ref,
|
|
12571
13017
|
"data-slot": "approval-prompt",
|
|
12572
13018
|
"aria-label": promptTitle,
|
|
12573
|
-
className:
|
|
13019
|
+
className: cn82("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
|
|
12574
13020
|
children: [
|
|
12575
13021
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
|
|
12576
13022
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
|
|
@@ -12647,7 +13093,7 @@ var toolToggleListRowVariants = classVarianceAuthority.cva(
|
|
|
12647
13093
|
}
|
|
12648
13094
|
}
|
|
12649
13095
|
);
|
|
12650
|
-
function
|
|
13096
|
+
function cn83(...classes) {
|
|
12651
13097
|
return classes.filter(Boolean).join(" ");
|
|
12652
13098
|
}
|
|
12653
13099
|
function MosaicToolToggleList({
|
|
@@ -12663,7 +13109,7 @@ function MosaicToolToggleList({
|
|
|
12663
13109
|
}) {
|
|
12664
13110
|
const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
|
|
12665
13111
|
const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
|
|
12666
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className:
|
|
13112
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn83("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12667
13113
|
"div",
|
|
12668
13114
|
{
|
|
12669
13115
|
"data-slot": "tool-toggle-list-section",
|
|
@@ -12694,7 +13140,7 @@ function MosaicToolToggleList({
|
|
|
12694
13140
|
onCheckedChange: (checked) => onToggleTool(tool.id, checked),
|
|
12695
13141
|
"aria-label": toggleAriaLabel(tool.name),
|
|
12696
13142
|
"data-slot": "tool-toggle-list-switch",
|
|
12697
|
-
className:
|
|
13143
|
+
className: cn83(
|
|
12698
13144
|
"relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
|
|
12699
13145
|
"rounded-full border-2 border-transparent outline-none",
|
|
12700
13146
|
"bg-muted transition-colors",
|
|
@@ -12705,7 +13151,7 @@ function MosaicToolToggleList({
|
|
|
12705
13151
|
_switch.Switch.Thumb,
|
|
12706
13152
|
{
|
|
12707
13153
|
"data-slot": "tool-toggle-list-switch-thumb",
|
|
12708
|
-
className:
|
|
13154
|
+
className: cn83(
|
|
12709
13155
|
"pointer-events-none block h-4 w-4 rounded-full",
|
|
12710
13156
|
"bg-background shadow-sm",
|
|
12711
13157
|
"translate-x-0 transition-transform",
|
|
@@ -12747,7 +13193,7 @@ function MosaicToolToggleList({
|
|
|
12747
13193
|
{
|
|
12748
13194
|
"aria-label": approvalSelectAriaLabel(tool.name),
|
|
12749
13195
|
"data-slot": "tool-toggle-list-approval-trigger",
|
|
12750
|
-
className:
|
|
13196
|
+
className: cn83(
|
|
12751
13197
|
"inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
|
|
12752
13198
|
"rounded-md border border-border bg-background px-3 py-2",
|
|
12753
13199
|
"text-sm text-foreground shadow-xs outline-none",
|
|
@@ -12765,7 +13211,7 @@ function MosaicToolToggleList({
|
|
|
12765
13211
|
select.Select.Popup,
|
|
12766
13212
|
{
|
|
12767
13213
|
"data-slot": "tool-toggle-list-approval-popup",
|
|
12768
|
-
className:
|
|
13214
|
+
className: cn83(
|
|
12769
13215
|
"z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
|
|
12770
13216
|
"bg-popover p-1 text-popover-foreground shadow-md",
|
|
12771
13217
|
"origin-[var(--transform-origin)]",
|
|
@@ -12778,7 +13224,7 @@ function MosaicToolToggleList({
|
|
|
12778
13224
|
select.Select.Item,
|
|
12779
13225
|
{
|
|
12780
13226
|
value: level.id,
|
|
12781
|
-
className:
|
|
13227
|
+
className: cn83(
|
|
12782
13228
|
"relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
|
|
12783
13229
|
"text-sm text-popover-foreground outline-none",
|
|
12784
13230
|
"data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
|
|
@@ -12886,7 +13332,7 @@ var apiKeyPanelMessageVariants = classVarianceAuthority.cva(["text-sm"], {
|
|
|
12886
13332
|
tone: "muted"
|
|
12887
13333
|
}
|
|
12888
13334
|
});
|
|
12889
|
-
function
|
|
13335
|
+
function cn84(...classes) {
|
|
12890
13336
|
return classes.filter(Boolean).join(" ");
|
|
12891
13337
|
}
|
|
12892
13338
|
function MosaicApiKeyPanel(props) {
|
|
@@ -12914,7 +13360,7 @@ function MosaicApiKeyPanel(props) {
|
|
|
12914
13360
|
function handleKeyChange(event) {
|
|
12915
13361
|
onKeyChange(event.target.value);
|
|
12916
13362
|
}
|
|
12917
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className:
|
|
13363
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "api-key-panel", className: cn84("flex flex-col gap-3", className), children: [
|
|
12918
13364
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12919
13365
|
"div",
|
|
12920
13366
|
{
|
|
@@ -13009,7 +13455,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
|
|
|
13009
13455
|
var agentChatRootVariants = classVarianceAuthority.cva([
|
|
13010
13456
|
"flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
|
|
13011
13457
|
]);
|
|
13012
|
-
function
|
|
13458
|
+
function cn85(...classes) {
|
|
13013
13459
|
return classes.filter(Boolean).join(" ");
|
|
13014
13460
|
}
|
|
13015
13461
|
function formatPayload2(value) {
|
|
@@ -13145,7 +13591,7 @@ function MosaicAgentChat(props) {
|
|
|
13145
13591
|
setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
|
|
13146
13592
|
onApprovalResponse(payload);
|
|
13147
13593
|
}
|
|
13148
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className:
|
|
13594
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "agent-chat", className: cn85(agentChatRootVariants(), className), children: [
|
|
13149
13595
|
/* @__PURE__ */ jsxRuntime.jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
13150
13596
|
MosaicChatMessage,
|
|
13151
13597
|
{
|
|
@@ -13234,7 +13680,7 @@ var toastProviderPositionVariants = classVarianceAuthority.cva(
|
|
|
13234
13680
|
}
|
|
13235
13681
|
}
|
|
13236
13682
|
);
|
|
13237
|
-
function
|
|
13683
|
+
function cn86(...classes) {
|
|
13238
13684
|
return classes.filter(Boolean).join(" ");
|
|
13239
13685
|
}
|
|
13240
13686
|
function MosaicToast({
|
|
@@ -13260,7 +13706,7 @@ function MosaicToast({
|
|
|
13260
13706
|
ref,
|
|
13261
13707
|
"data-slot": "toast",
|
|
13262
13708
|
role,
|
|
13263
|
-
className:
|
|
13709
|
+
className: cn86(toastCardVariants({ variant }), className),
|
|
13264
13710
|
children: [
|
|
13265
13711
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
13266
13712
|
/* @__PURE__ */ jsxRuntime.jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
|
|
@@ -13300,7 +13746,7 @@ function MosaicToast({
|
|
|
13300
13746
|
);
|
|
13301
13747
|
}
|
|
13302
13748
|
MosaicToast.displayName = "MosaicToast";
|
|
13303
|
-
function
|
|
13749
|
+
function cn87(...classes) {
|
|
13304
13750
|
return classes.filter(Boolean).join(" ");
|
|
13305
13751
|
}
|
|
13306
13752
|
function MosaicToastProvider({
|
|
@@ -13314,7 +13760,7 @@ function MosaicToastProvider({
|
|
|
13314
13760
|
{
|
|
13315
13761
|
ref,
|
|
13316
13762
|
"data-slot": "toast-provider",
|
|
13317
|
-
className:
|
|
13763
|
+
className: cn87(toastProviderPositionVariants({ position }), className),
|
|
13318
13764
|
children
|
|
13319
13765
|
}
|
|
13320
13766
|
);
|
|
@@ -13341,7 +13787,7 @@ var pdfViewerToolbarButtonVariants = classVarianceAuthority.cva([
|
|
|
13341
13787
|
"inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
|
|
13342
13788
|
"transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
|
|
13343
13789
|
]);
|
|
13344
|
-
function
|
|
13790
|
+
function cn88(...classes) {
|
|
13345
13791
|
return classes.filter(Boolean).join(" ");
|
|
13346
13792
|
}
|
|
13347
13793
|
function buildFrameSrc(fileUrl, currentPage, zoom) {
|
|
@@ -13406,7 +13852,7 @@ function MosaicPdfViewer({
|
|
|
13406
13852
|
if (zoom === void 0 || onZoomChange === void 0) return;
|
|
13407
13853
|
onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
|
|
13408
13854
|
}
|
|
13409
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className:
|
|
13855
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn88("flex flex-col gap-2", className), children: [
|
|
13410
13856
|
(showPageControls || showZoomControls) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13411
13857
|
"div",
|
|
13412
13858
|
{
|
|
@@ -13495,7 +13941,7 @@ function MosaicPdfViewer({
|
|
|
13495
13941
|
"data-slot": "pdf-viewer-frame",
|
|
13496
13942
|
src: buildFrameSrc(fileUrl, currentPage, zoom),
|
|
13497
13943
|
title: fileUrl,
|
|
13498
|
-
className:
|
|
13944
|
+
className: cn88(
|
|
13499
13945
|
"h-full min-h-64 w-full border-0",
|
|
13500
13946
|
status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
|
|
13501
13947
|
)
|
|
@@ -13514,7 +13960,7 @@ var splitPaneCollapseButtonVariants = classVarianceAuthority.cva([
|
|
|
13514
13960
|
"inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
|
|
13515
13961
|
"transition-colors hover:bg-accent/50"
|
|
13516
13962
|
]);
|
|
13517
|
-
function
|
|
13963
|
+
function cn89(...classes) {
|
|
13518
13964
|
return classes.filter(Boolean).join(" ");
|
|
13519
13965
|
}
|
|
13520
13966
|
function mergeRefs(externalRef, node) {
|
|
@@ -13587,7 +14033,7 @@ function MosaicResizableSplitPane({
|
|
|
13587
14033
|
mergeRefs(ref, node);
|
|
13588
14034
|
},
|
|
13589
14035
|
"data-slot": "resizable-split-pane",
|
|
13590
|
-
className:
|
|
14036
|
+
className: cn89(splitPaneRootVariants(), className),
|
|
13591
14037
|
children: [
|
|
13592
14038
|
/* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
|
|
13593
14039
|
!isSideCollapsed && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -13654,7 +14100,7 @@ var tagInputFieldVariants = classVarianceAuthority.cva([
|
|
|
13654
14100
|
"min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
|
|
13655
14101
|
"placeholder:text-muted-foreground"
|
|
13656
14102
|
]);
|
|
13657
|
-
function
|
|
14103
|
+
function cn90(...classes) {
|
|
13658
14104
|
return classes.filter(Boolean).join(" ");
|
|
13659
14105
|
}
|
|
13660
14106
|
function mergeRefs2(externalRef, node) {
|
|
@@ -13705,7 +14151,7 @@ function MosaicTagInput({
|
|
|
13705
14151
|
if (lastTag !== void 0) onRemoveTag(lastTag);
|
|
13706
14152
|
}
|
|
13707
14153
|
}
|
|
13708
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className:
|
|
14154
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "tag-input", className: cn90(tagInputRootVariants(), className), children: [
|
|
13709
14155
|
tags.map((tag) => /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
|
|
13710
14156
|
tag,
|
|
13711
14157
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -13742,7 +14188,7 @@ function MosaicTagInput({
|
|
|
13742
14188
|
"ul",
|
|
13743
14189
|
{
|
|
13744
14190
|
"data-slot": "tag-input-suggestions",
|
|
13745
|
-
className:
|
|
14191
|
+
className: cn90(
|
|
13746
14192
|
"z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
|
|
13747
14193
|
"bg-popover p-1 text-sm text-popover-foreground shadow-md"
|
|
13748
14194
|
),
|
|
@@ -13782,7 +14228,7 @@ var drawerPopupVariants = classVarianceAuthority.cva(
|
|
|
13782
14228
|
}
|
|
13783
14229
|
);
|
|
13784
14230
|
var drawerBackdropVariants = classVarianceAuthority.cva(["fixed inset-0 z-50 bg-black/50"]);
|
|
13785
|
-
function
|
|
14231
|
+
function cn91(...classes) {
|
|
13786
14232
|
return classes.filter(Boolean).join(" ");
|
|
13787
14233
|
}
|
|
13788
14234
|
function MosaicDrawer({
|
|
@@ -13803,7 +14249,7 @@ function MosaicDrawer({
|
|
|
13803
14249
|
"data-slot": "drawer",
|
|
13804
14250
|
"aria-labelledby": titleId,
|
|
13805
14251
|
"aria-modal": "true",
|
|
13806
|
-
className:
|
|
14252
|
+
className: cn91(drawerPopupVariants({ side }), className),
|
|
13807
14253
|
children: [
|
|
13808
14254
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
13809
14255
|
"div",
|
|
@@ -13816,7 +14262,7 @@ function MosaicDrawer({
|
|
|
13816
14262
|
dialog.Dialog.Close,
|
|
13817
14263
|
{
|
|
13818
14264
|
"aria-label": closeAriaLabel,
|
|
13819
|
-
className:
|
|
14265
|
+
className: cn91(
|
|
13820
14266
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
|
|
13821
14267
|
"hover:bg-muted hover:text-foreground",
|
|
13822
14268
|
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
@@ -13851,6 +14297,340 @@ function MosaicDrawer({
|
|
|
13851
14297
|
] }) });
|
|
13852
14298
|
}
|
|
13853
14299
|
MosaicDrawer.displayName = "MosaicDrawer";
|
|
14300
|
+
var templateCategoryChipVariants = classVarianceAuthority.cva(
|
|
14301
|
+
[
|
|
14302
|
+
"inline-flex items-center justify-center whitespace-nowrap",
|
|
14303
|
+
"rounded-full border px-3 py-1.5",
|
|
14304
|
+
"text-xs font-medium transition-colors",
|
|
14305
|
+
"focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
|
|
14306
|
+
],
|
|
14307
|
+
{
|
|
14308
|
+
variants: {
|
|
14309
|
+
selected: {
|
|
14310
|
+
true: "border-transparent bg-primary text-primary-foreground",
|
|
14311
|
+
false: "border-border bg-background text-foreground hover:bg-muted"
|
|
14312
|
+
}
|
|
14313
|
+
},
|
|
14314
|
+
defaultVariants: {
|
|
14315
|
+
selected: false
|
|
14316
|
+
}
|
|
14317
|
+
}
|
|
14318
|
+
);
|
|
14319
|
+
function cn92(...classes) {
|
|
14320
|
+
return classes.filter(Boolean).join(" ");
|
|
14321
|
+
}
|
|
14322
|
+
function MosaicTemplateCategoryChips({
|
|
14323
|
+
categories,
|
|
14324
|
+
selected,
|
|
14325
|
+
onSelect,
|
|
14326
|
+
className,
|
|
14327
|
+
ref
|
|
14328
|
+
}) {
|
|
14329
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14330
|
+
"div",
|
|
14331
|
+
{
|
|
14332
|
+
ref,
|
|
14333
|
+
"data-slot": "template-category-chips",
|
|
14334
|
+
className: cn92("flex flex-wrap items-center gap-2", className),
|
|
14335
|
+
children: categories.map((category) => {
|
|
14336
|
+
const isSelected = category.id === selected;
|
|
14337
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14338
|
+
"button",
|
|
14339
|
+
{
|
|
14340
|
+
type: "button",
|
|
14341
|
+
"data-slot": "template-category-chip",
|
|
14342
|
+
"aria-pressed": isSelected,
|
|
14343
|
+
onClick: () => onSelect(category.id),
|
|
14344
|
+
className: templateCategoryChipVariants({ selected: isSelected }),
|
|
14345
|
+
children: category.label
|
|
14346
|
+
},
|
|
14347
|
+
category.id
|
|
14348
|
+
);
|
|
14349
|
+
})
|
|
14350
|
+
}
|
|
14351
|
+
);
|
|
14352
|
+
}
|
|
14353
|
+
MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
|
|
14354
|
+
var saveTemplateModalBodyVariants = classVarianceAuthority.cva(["flex flex-col gap-4"]);
|
|
14355
|
+
var saveTemplateModalFieldVariants = classVarianceAuthority.cva(["flex flex-col gap-1.5"]);
|
|
14356
|
+
var saveTemplateModalErrorVariants = classVarianceAuthority.cva(["text-xs font-medium text-destructive"]);
|
|
14357
|
+
var saveTemplateModalFooterVariants = classVarianceAuthority.cva([
|
|
14358
|
+
"flex items-center justify-end gap-3 border-t border-border pt-4"
|
|
14359
|
+
]);
|
|
14360
|
+
var saveTemplateModalButtonVariants = classVarianceAuthority.cva(
|
|
14361
|
+
[
|
|
14362
|
+
"inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
|
|
14363
|
+
"transition-colors disabled:cursor-not-allowed disabled:opacity-50"
|
|
14364
|
+
],
|
|
14365
|
+
{
|
|
14366
|
+
variants: {
|
|
14367
|
+
intent: {
|
|
14368
|
+
cancel: "border border-border bg-background hover:bg-muted",
|
|
14369
|
+
save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
|
|
14370
|
+
}
|
|
14371
|
+
},
|
|
14372
|
+
defaultVariants: {
|
|
14373
|
+
intent: "cancel"
|
|
14374
|
+
}
|
|
14375
|
+
}
|
|
14376
|
+
);
|
|
14377
|
+
function cn93(...classes) {
|
|
14378
|
+
return classes.filter(Boolean).join(" ");
|
|
14379
|
+
}
|
|
14380
|
+
function MosaicSaveTemplateModal({
|
|
14381
|
+
open,
|
|
14382
|
+
onOpenChange,
|
|
14383
|
+
title,
|
|
14384
|
+
description,
|
|
14385
|
+
closeAriaLabel,
|
|
14386
|
+
name,
|
|
14387
|
+
onNameChange,
|
|
14388
|
+
nameLabel,
|
|
14389
|
+
namePlaceholder,
|
|
14390
|
+
nameError,
|
|
14391
|
+
templateDescription,
|
|
14392
|
+
onTemplateDescriptionChange,
|
|
14393
|
+
descriptionLabel,
|
|
14394
|
+
descriptionPlaceholder,
|
|
14395
|
+
descriptionError,
|
|
14396
|
+
categories,
|
|
14397
|
+
category,
|
|
14398
|
+
onCategoryChange,
|
|
14399
|
+
categoryLabel,
|
|
14400
|
+
tags,
|
|
14401
|
+
onAddTag,
|
|
14402
|
+
onRemoveTag,
|
|
14403
|
+
tagsLabel,
|
|
14404
|
+
tagInputPlaceholder,
|
|
14405
|
+
removeTagAriaLabel,
|
|
14406
|
+
suggestedTags,
|
|
14407
|
+
maxTags,
|
|
14408
|
+
isSaving,
|
|
14409
|
+
canSave,
|
|
14410
|
+
onSave,
|
|
14411
|
+
onCancel,
|
|
14412
|
+
saveButtonLabel,
|
|
14413
|
+
savingLabel,
|
|
14414
|
+
cancelButtonLabel,
|
|
14415
|
+
children,
|
|
14416
|
+
className
|
|
14417
|
+
}) {
|
|
14418
|
+
const nameErrorId = React29.useId();
|
|
14419
|
+
const descriptionErrorId = React29.useId();
|
|
14420
|
+
if (!open) return null;
|
|
14421
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14422
|
+
MosaicAdaptiveModal,
|
|
14423
|
+
{
|
|
14424
|
+
isOpen: open,
|
|
14425
|
+
onClose: () => onOpenChange(false),
|
|
14426
|
+
title,
|
|
14427
|
+
description,
|
|
14428
|
+
closeAriaLabel,
|
|
14429
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
14430
|
+
"div",
|
|
14431
|
+
{
|
|
14432
|
+
"data-slot": "save-template-modal",
|
|
14433
|
+
className: cn93(saveTemplateModalBodyVariants(), className),
|
|
14434
|
+
children: [
|
|
14435
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14436
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14437
|
+
"label",
|
|
14438
|
+
{
|
|
14439
|
+
htmlFor: "mosaic-save-template-name",
|
|
14440
|
+
className: "text-sm font-medium text-foreground",
|
|
14441
|
+
children: nameLabel
|
|
14442
|
+
}
|
|
14443
|
+
),
|
|
14444
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14445
|
+
MosaicInput,
|
|
14446
|
+
{
|
|
14447
|
+
id: "mosaic-save-template-name",
|
|
14448
|
+
value: name,
|
|
14449
|
+
placeholder: namePlaceholder,
|
|
14450
|
+
onChange: (e) => onNameChange(e.target.value),
|
|
14451
|
+
"aria-invalid": nameError ? "true" : "false",
|
|
14452
|
+
"aria-describedby": nameError ? nameErrorId : void 0
|
|
14453
|
+
}
|
|
14454
|
+
),
|
|
14455
|
+
nameError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: nameErrorId, className: saveTemplateModalErrorVariants(), children: nameError })
|
|
14456
|
+
] }),
|
|
14457
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14458
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14459
|
+
"label",
|
|
14460
|
+
{
|
|
14461
|
+
htmlFor: "mosaic-save-template-description",
|
|
14462
|
+
className: "text-sm font-medium text-foreground",
|
|
14463
|
+
children: descriptionLabel
|
|
14464
|
+
}
|
|
14465
|
+
),
|
|
14466
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14467
|
+
MosaicTextarea,
|
|
14468
|
+
{
|
|
14469
|
+
id: "mosaic-save-template-description",
|
|
14470
|
+
value: templateDescription,
|
|
14471
|
+
placeholder: descriptionPlaceholder,
|
|
14472
|
+
onChange: (e) => onTemplateDescriptionChange(e.target.value),
|
|
14473
|
+
rows: 3,
|
|
14474
|
+
"aria-invalid": descriptionError ? "true" : "false",
|
|
14475
|
+
"aria-describedby": descriptionError ? descriptionErrorId : void 0
|
|
14476
|
+
}
|
|
14477
|
+
),
|
|
14478
|
+
descriptionError && /* @__PURE__ */ jsxRuntime.jsx("p", { id: descriptionErrorId, className: saveTemplateModalErrorVariants(), children: descriptionError })
|
|
14479
|
+
] }),
|
|
14480
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14481
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: categoryLabel }),
|
|
14482
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14483
|
+
MosaicSelect,
|
|
14484
|
+
{
|
|
14485
|
+
items: categories,
|
|
14486
|
+
value: category,
|
|
14487
|
+
onValueChange: (value) => {
|
|
14488
|
+
if (value) onCategoryChange(value);
|
|
14489
|
+
}
|
|
14490
|
+
}
|
|
14491
|
+
)
|
|
14492
|
+
] }),
|
|
14493
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
|
|
14494
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
|
|
14495
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14496
|
+
MosaicTagInput,
|
|
14497
|
+
{
|
|
14498
|
+
tags,
|
|
14499
|
+
onAddTag,
|
|
14500
|
+
onRemoveTag,
|
|
14501
|
+
placeholder: tagInputPlaceholder,
|
|
14502
|
+
removeTagAriaLabel,
|
|
14503
|
+
suggestions: suggestedTags,
|
|
14504
|
+
maxTags
|
|
14505
|
+
}
|
|
14506
|
+
)
|
|
14507
|
+
] }),
|
|
14508
|
+
children,
|
|
14509
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: saveTemplateModalFooterVariants(), children: [
|
|
14510
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14511
|
+
"button",
|
|
14512
|
+
{
|
|
14513
|
+
type: "button",
|
|
14514
|
+
"data-slot": "save-template-modal-cancel-button",
|
|
14515
|
+
onClick: onCancel,
|
|
14516
|
+
disabled: isSaving,
|
|
14517
|
+
className: saveTemplateModalButtonVariants({ intent: "cancel" }),
|
|
14518
|
+
children: cancelButtonLabel
|
|
14519
|
+
}
|
|
14520
|
+
),
|
|
14521
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14522
|
+
"button",
|
|
14523
|
+
{
|
|
14524
|
+
type: "button",
|
|
14525
|
+
"data-slot": "save-template-modal-save-button",
|
|
14526
|
+
onClick: onSave,
|
|
14527
|
+
disabled: !canSave || isSaving,
|
|
14528
|
+
"aria-busy": isSaving ? "true" : "false",
|
|
14529
|
+
className: saveTemplateModalButtonVariants({ intent: "save" }),
|
|
14530
|
+
children: isSaving ? savingLabel : saveButtonLabel
|
|
14531
|
+
}
|
|
14532
|
+
)
|
|
14533
|
+
] })
|
|
14534
|
+
]
|
|
14535
|
+
}
|
|
14536
|
+
)
|
|
14537
|
+
}
|
|
14538
|
+
);
|
|
14539
|
+
}
|
|
14540
|
+
MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
|
|
14541
|
+
var templateListVariants = classVarianceAuthority.cva(["grid gap-4"], {
|
|
14542
|
+
variants: {
|
|
14543
|
+
layout: {
|
|
14544
|
+
grid: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
14545
|
+
list: "grid-cols-1"
|
|
14546
|
+
}
|
|
14547
|
+
},
|
|
14548
|
+
defaultVariants: {
|
|
14549
|
+
layout: "grid"
|
|
14550
|
+
}
|
|
14551
|
+
});
|
|
14552
|
+
function cn94(...classes) {
|
|
14553
|
+
return classes.filter(Boolean).join(" ");
|
|
14554
|
+
}
|
|
14555
|
+
var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
|
|
14556
|
+
var PREV_KEYS = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
|
|
14557
|
+
function MosaicTemplateList({
|
|
14558
|
+
items,
|
|
14559
|
+
renderItem,
|
|
14560
|
+
layout = "grid",
|
|
14561
|
+
emptyMessage,
|
|
14562
|
+
className,
|
|
14563
|
+
itemClassName,
|
|
14564
|
+
ref
|
|
14565
|
+
}) {
|
|
14566
|
+
const itemRefs = React29.useRef([]);
|
|
14567
|
+
const [focusedIndex, setFocusedIndex] = React29.useState(0);
|
|
14568
|
+
function focusItem(index) {
|
|
14569
|
+
if (items.length === 0) {
|
|
14570
|
+
return;
|
|
14571
|
+
}
|
|
14572
|
+
const clamped = Math.max(0, Math.min(items.length - 1, index));
|
|
14573
|
+
setFocusedIndex(clamped);
|
|
14574
|
+
itemRefs.current[clamped]?.focus();
|
|
14575
|
+
}
|
|
14576
|
+
function handleKeyDown(event, index) {
|
|
14577
|
+
if (NEXT_KEYS.has(event.key)) {
|
|
14578
|
+
event.preventDefault();
|
|
14579
|
+
focusItem(index + 1);
|
|
14580
|
+
} else if (PREV_KEYS.has(event.key)) {
|
|
14581
|
+
event.preventDefault();
|
|
14582
|
+
focusItem(index - 1);
|
|
14583
|
+
} else if (event.key === "Home") {
|
|
14584
|
+
event.preventDefault();
|
|
14585
|
+
focusItem(0);
|
|
14586
|
+
} else if (event.key === "End") {
|
|
14587
|
+
event.preventDefault();
|
|
14588
|
+
focusItem(items.length - 1);
|
|
14589
|
+
}
|
|
14590
|
+
}
|
|
14591
|
+
if (items.length === 0) {
|
|
14592
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14593
|
+
"div",
|
|
14594
|
+
{
|
|
14595
|
+
ref,
|
|
14596
|
+
"data-slot": "template-list",
|
|
14597
|
+
className: cn94(templateListVariants({ layout }), className),
|
|
14598
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14599
|
+
"p",
|
|
14600
|
+
{
|
|
14601
|
+
"data-slot": "template-list-empty",
|
|
14602
|
+
className: "col-span-full py-12 text-center text-sm text-muted-foreground",
|
|
14603
|
+
children: emptyMessage
|
|
14604
|
+
}
|
|
14605
|
+
)
|
|
14606
|
+
}
|
|
14607
|
+
);
|
|
14608
|
+
}
|
|
14609
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14610
|
+
"ul",
|
|
14611
|
+
{
|
|
14612
|
+
ref,
|
|
14613
|
+
"data-slot": "template-list",
|
|
14614
|
+
className: cn94("list-none", templateListVariants({ layout }), className),
|
|
14615
|
+
children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
14616
|
+
"li",
|
|
14617
|
+
{
|
|
14618
|
+
ref: (node) => {
|
|
14619
|
+
itemRefs.current[index] = node;
|
|
14620
|
+
},
|
|
14621
|
+
"data-slot": "template-list-item",
|
|
14622
|
+
tabIndex: index === focusedIndex ? 0 : -1,
|
|
14623
|
+
onKeyDown: (event) => handleKeyDown(event, index),
|
|
14624
|
+
onFocus: () => setFocusedIndex(index),
|
|
14625
|
+
className: itemClassName,
|
|
14626
|
+
children: renderItem(item, index)
|
|
14627
|
+
},
|
|
14628
|
+
item.id
|
|
14629
|
+
))
|
|
14630
|
+
}
|
|
14631
|
+
);
|
|
14632
|
+
}
|
|
14633
|
+
MosaicTemplateList.displayName = "MosaicTemplateList";
|
|
13854
14634
|
|
|
13855
14635
|
Object.defineProperty(exports, "Accordion", {
|
|
13856
14636
|
enumerable: true,
|
|
@@ -13874,10 +14654,23 @@ exports.MosaicAgentChat = MosaicAgentChat;
|
|
|
13874
14654
|
exports.MosaicAgentComposer = MosaicAgentComposer;
|
|
13875
14655
|
exports.MosaicAgentComposerDesktop = MosaicAgentComposerDesktop;
|
|
13876
14656
|
exports.MosaicAgentComposerMobile = MosaicAgentComposerMobile;
|
|
14657
|
+
exports.MosaicAgentEditor = MosaicAgentEditor;
|
|
13877
14658
|
exports.MosaicAgentList = MosaicAgentList;
|
|
13878
14659
|
exports.MosaicAgentListDesktop = AgentListDesktop;
|
|
13879
14660
|
exports.MosaicAgentListMobile = AgentListMobile;
|
|
14661
|
+
exports.MosaicAgentPreview = MosaicAgentPreview;
|
|
13880
14662
|
exports.MosaicAgentTeamPreview = MosaicAgentTeamPreview;
|
|
14663
|
+
exports.MosaicAlertDialog = MosaicAlertDialog;
|
|
14664
|
+
exports.MosaicAlertDialogAction = MosaicAlertDialogAction;
|
|
14665
|
+
exports.MosaicAlertDialogCancel = MosaicAlertDialogCancel;
|
|
14666
|
+
exports.MosaicAlertDialogContent = MosaicAlertDialogContent;
|
|
14667
|
+
exports.MosaicAlertDialogDescription = MosaicAlertDialogDescription;
|
|
14668
|
+
exports.MosaicAlertDialogFooter = MosaicAlertDialogFooter;
|
|
14669
|
+
exports.MosaicAlertDialogHeader = MosaicAlertDialogHeader;
|
|
14670
|
+
exports.MosaicAlertDialogOverlay = MosaicAlertDialogOverlay;
|
|
14671
|
+
exports.MosaicAlertDialogPortal = MosaicAlertDialogPortal;
|
|
14672
|
+
exports.MosaicAlertDialogTitle = MosaicAlertDialogTitle;
|
|
14673
|
+
exports.MosaicAlertDialogTrigger = MosaicAlertDialogTrigger;
|
|
13881
14674
|
exports.MosaicAnimatedList = MosaicAnimatedList;
|
|
13882
14675
|
exports.MosaicApiKeyPanel = MosaicApiKeyPanel;
|
|
13883
14676
|
exports.MosaicAppSidebar = MosaicAppSidebar;
|
|
@@ -13935,6 +14728,7 @@ exports.MosaicKanbanColumn = MosaicKanbanColumn;
|
|
|
13935
14728
|
exports.MosaicLogosGrid = MosaicLogosGrid;
|
|
13936
14729
|
exports.MosaicMainNav = MosaicMainNav;
|
|
13937
14730
|
exports.MosaicMarkdown = MosaicMarkdown;
|
|
14731
|
+
exports.MosaicMarketplaceCard = MosaicMarketplaceCard;
|
|
13938
14732
|
exports.MosaicMarketplaceList = MosaicMarketplaceList;
|
|
13939
14733
|
exports.MosaicMarketplaceListDesktop = MarketplaceListDesktop;
|
|
13940
14734
|
exports.MosaicMarketplaceListMobile = MarketplaceListMobile;
|
|
@@ -13967,6 +14761,7 @@ exports.MosaicQuickStartPanel = MosaicQuickStartPanel;
|
|
|
13967
14761
|
exports.MosaicRadioGroup = MosaicRadioGroup;
|
|
13968
14762
|
exports.MosaicRadioGroupItem = MosaicRadioGroupItem;
|
|
13969
14763
|
exports.MosaicResizableSplitPane = MosaicResizableSplitPane;
|
|
14764
|
+
exports.MosaicSaveTemplateModal = MosaicSaveTemplateModal;
|
|
13970
14765
|
exports.MosaicScrollArea = MosaicScrollArea;
|
|
13971
14766
|
exports.MosaicSelect = MosaicSelect;
|
|
13972
14767
|
exports.MosaicSelectorModal = MosaicSelectorModal;
|
|
@@ -13985,7 +14780,9 @@ exports.MosaicTabsTrigger = MosaicTabsTrigger;
|
|
|
13985
14780
|
exports.MosaicTagInput = MosaicTagInput;
|
|
13986
14781
|
exports.MosaicTemplateAgentCard = MosaicTemplateAgentCard;
|
|
13987
14782
|
exports.MosaicTemplateCard = MosaicTemplateCard;
|
|
14783
|
+
exports.MosaicTemplateCategoryChips = MosaicTemplateCategoryChips;
|
|
13988
14784
|
exports.MosaicTemplateGallery = MosaicTemplateGallery;
|
|
14785
|
+
exports.MosaicTemplateList = MosaicTemplateList;
|
|
13989
14786
|
exports.MosaicTemplatePreview = MosaicTemplatePreview;
|
|
13990
14787
|
exports.MosaicTestimonialsGrid = MosaicTestimonialsGrid;
|
|
13991
14788
|
exports.MosaicTextarea = MosaicTextarea;
|
|
@@ -14003,6 +14800,10 @@ exports.MosaicUrlScraper = MosaicUrlScraper;
|
|
|
14003
14800
|
exports.MosaicUserButton = MosaicUserButton;
|
|
14004
14801
|
exports.Placeholder = Placeholder;
|
|
14005
14802
|
exports.agentChatRootVariants = agentChatRootVariants;
|
|
14803
|
+
exports.agentEditorVariants = agentEditorVariants;
|
|
14804
|
+
exports.agentPreviewVariants = agentPreviewVariants;
|
|
14805
|
+
exports.alertDialogContentVariants = alertDialogContentVariants;
|
|
14806
|
+
exports.alertDialogOverlayVariants = alertDialogOverlayVariants;
|
|
14006
14807
|
exports.badgeVariants = badgeVariants;
|
|
14007
14808
|
exports.buttonVariants = buttonVariants;
|
|
14008
14809
|
exports.chatMessageBubbleVariants = chatMessageBubbleVariants;
|
|
@@ -14010,9 +14811,15 @@ exports.chatMessageContainerVariants = chatMessageContainerVariants;
|
|
|
14010
14811
|
exports.chatMessageToolStatusVariants = chatMessageToolStatusVariants;
|
|
14011
14812
|
exports.drawerBackdropVariants = drawerBackdropVariants;
|
|
14012
14813
|
exports.drawerPopupVariants = drawerPopupVariants;
|
|
14814
|
+
exports.marketplaceCardVariants = marketplaceCardVariants;
|
|
14013
14815
|
exports.pdfViewerFrameVariants = pdfViewerFrameVariants;
|
|
14014
14816
|
exports.pdfViewerStatusVariants = pdfViewerStatusVariants;
|
|
14015
14817
|
exports.pdfViewerToolbarButtonVariants = pdfViewerToolbarButtonVariants;
|
|
14818
|
+
exports.saveTemplateModalBodyVariants = saveTemplateModalBodyVariants;
|
|
14819
|
+
exports.saveTemplateModalButtonVariants = saveTemplateModalButtonVariants;
|
|
14820
|
+
exports.saveTemplateModalErrorVariants = saveTemplateModalErrorVariants;
|
|
14821
|
+
exports.saveTemplateModalFieldVariants = saveTemplateModalFieldVariants;
|
|
14822
|
+
exports.saveTemplateModalFooterVariants = saveTemplateModalFooterVariants;
|
|
14016
14823
|
exports.skeletonVariants = skeletonVariants;
|
|
14017
14824
|
exports.splitPaneCollapseButtonVariants = splitPaneCollapseButtonVariants;
|
|
14018
14825
|
exports.splitPaneHandleVariants = splitPaneHandleVariants;
|
|
@@ -14024,6 +14831,8 @@ exports.tagInputTagVariants = tagInputTagVariants;
|
|
|
14024
14831
|
exports.templateAgentCardBadgeVariants = templateAgentCardBadgeVariants;
|
|
14025
14832
|
exports.templateAgentCardTagVariants = templateAgentCardTagVariants;
|
|
14026
14833
|
exports.templateAgentCardVariants = templateAgentCardVariants;
|
|
14834
|
+
exports.templateCategoryChipVariants = templateCategoryChipVariants;
|
|
14835
|
+
exports.templateListVariants = templateListVariants;
|
|
14027
14836
|
exports.toastCardVariants = toastCardVariants;
|
|
14028
14837
|
exports.toastDismissButtonVariants = toastDismissButtonVariants;
|
|
14029
14838
|
exports.toastProviderPositionVariants = toastProviderPositionVariants;
|