@ai-matrx/summon 0.1.18 → 0.1.19
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/CHANGELOG.md +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/dist/window.cjs +25 -49
- package/dist/window.cjs.map +1 -1
- package/dist/window.js +15 -39
- package/dist/window.js.map +1 -1
- package/package.json +3 -3
package/dist/window.js
CHANGED
|
@@ -52,39 +52,13 @@ function glyph(children) {
|
|
|
52
52
|
);
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
var XIcon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
-
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
57
|
-
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
58
|
-
] }));
|
|
59
55
|
var MinusIcon = glyph(/* @__PURE__ */ jsx("path", { d: "M5 12h14" }));
|
|
60
|
-
var Maximize2Icon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
-
/* @__PURE__ */ jsx("path", { d: "M15 3h6v6" }),
|
|
62
|
-
/* @__PURE__ */ jsx("path", { d: "m21 3-7 7" }),
|
|
63
|
-
/* @__PURE__ */ jsx("path", { d: "m3 21 7-7" }),
|
|
64
|
-
/* @__PURE__ */ jsx("path", { d: "M9 21H3v-6" })
|
|
65
|
-
] }));
|
|
66
|
-
var Minimize2Icon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
|
-
/* @__PURE__ */ jsx("path", { d: "m14 10 7-7" }),
|
|
68
|
-
/* @__PURE__ */ jsx("path", { d: "M20 10h-6V4" }),
|
|
69
|
-
/* @__PURE__ */ jsx("path", { d: "m3 21 7-7" }),
|
|
70
|
-
/* @__PURE__ */ jsx("path", { d: "M4 14h6v6" })
|
|
71
|
-
] }));
|
|
72
56
|
var RectangleVerticalIcon = glyph(/* @__PURE__ */ jsx("rect", { width: "12", height: "20", x: "6", y: "2", rx: "2" }));
|
|
73
57
|
var PanelLeftCloseIcon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
74
58
|
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
75
59
|
/* @__PURE__ */ jsx("path", { d: "M9 3v18" }),
|
|
76
60
|
/* @__PURE__ */ jsx("path", { d: "m16 15-3-3 3-3" })
|
|
77
61
|
] }));
|
|
78
|
-
var PanelLeftIcon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
79
|
-
/* @__PURE__ */ jsx("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
80
|
-
/* @__PURE__ */ jsx("path", { d: "M9 3v18" })
|
|
81
|
-
] }));
|
|
82
|
-
var AppWindowIcon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
83
|
-
/* @__PURE__ */ jsx("rect", { x: "2", y: "4", width: "20", height: "16", rx: "2" }),
|
|
84
|
-
/* @__PURE__ */ jsx("path", { d: "M10 4v4" }),
|
|
85
|
-
/* @__PURE__ */ jsx("path", { d: "M2 8h20" }),
|
|
86
|
-
/* @__PURE__ */ jsx("path", { d: "M6 4v4" })
|
|
87
|
-
] }));
|
|
88
62
|
var SaveIcon = glyph(
|
|
89
63
|
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
64
|
/* @__PURE__ */ jsx("path", { d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z" }),
|
|
@@ -92,19 +66,15 @@ var SaveIcon = glyph(
|
|
|
92
66
|
/* @__PURE__ */ jsx("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
|
|
93
67
|
] })
|
|
94
68
|
);
|
|
95
|
-
var TriangleAlertIcon = glyph(
|
|
96
|
-
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
97
|
-
/* @__PURE__ */ jsx("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }),
|
|
98
|
-
/* @__PURE__ */ jsx("path", { d: "M12 9v4" }),
|
|
99
|
-
/* @__PURE__ */ jsx("path", { d: "M12 17h.01" })
|
|
100
|
-
] })
|
|
101
|
-
);
|
|
102
69
|
var ArrowLeftToLineIcon = glyph(/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
103
70
|
/* @__PURE__ */ jsx("path", { d: "M3 19V5" }),
|
|
104
71
|
/* @__PURE__ */ jsx("path", { d: "m13 6-6 6 6 6" }),
|
|
105
72
|
/* @__PURE__ */ jsx("path", { d: "M7 12h14" })
|
|
106
73
|
] }));
|
|
107
74
|
|
|
75
|
+
// src/window/WindowPanel.tsx
|
|
76
|
+
import { AppWindowIcon, Maximize2Icon, Minimize2Icon, PanelLeftIcon as PanelLeftIcon2, XIcon as XIcon5 } from "@ai-matrx/design-system/icons";
|
|
77
|
+
|
|
108
78
|
// src/window/LayoutIcon.tsx
|
|
109
79
|
import { cn } from "@ai-matrx/design-system/cn";
|
|
110
80
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -798,6 +768,7 @@ import {
|
|
|
798
768
|
} from "@ai-matrx/design-system";
|
|
799
769
|
import { Button } from "@ai-matrx/design-system";
|
|
800
770
|
import { cn as cn3 } from "@ai-matrx/design-system/cn";
|
|
771
|
+
import { PanelLeftIcon, XIcon } from "@ai-matrx/design-system/icons";
|
|
801
772
|
|
|
802
773
|
// src/window/chrome/MobileTitleRow.tsx
|
|
803
774
|
import { cn as cn2 } from "@ai-matrx/design-system/cn";
|
|
@@ -993,6 +964,7 @@ import { createPortal } from "react-dom";
|
|
|
993
964
|
import { FloatingLayer, useFloatingLayerZIndex } from "@ai-matrx/design-system";
|
|
994
965
|
import { Button as Button2 } from "@ai-matrx/design-system";
|
|
995
966
|
import { cn as cn4 } from "@ai-matrx/design-system/cn";
|
|
967
|
+
import { XIcon as XIcon2 } from "@ai-matrx/design-system/icons";
|
|
996
968
|
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
997
969
|
function MobileCardSurface({
|
|
998
970
|
title,
|
|
@@ -1049,7 +1021,7 @@ function MobileCardSurface({
|
|
|
1049
1021
|
className: "h-11 w-11 shrink-0",
|
|
1050
1022
|
"aria-label": "Close",
|
|
1051
1023
|
onClick: onClose,
|
|
1052
|
-
children: /* @__PURE__ */ jsx5(
|
|
1024
|
+
children: /* @__PURE__ */ jsx5(XIcon2, { className: "w-3.5 h-3.5" })
|
|
1053
1025
|
}
|
|
1054
1026
|
),
|
|
1055
1027
|
children: /* @__PURE__ */ jsx5(MobileWindowTitle, { title })
|
|
@@ -1142,6 +1114,9 @@ function DebugStrip({ rect, zIndex }) {
|
|
|
1142
1114
|
] });
|
|
1143
1115
|
}
|
|
1144
1116
|
|
|
1117
|
+
// src/window/chrome/MobileHeader.tsx
|
|
1118
|
+
import { XIcon as XIcon3 } from "@ai-matrx/design-system/icons";
|
|
1119
|
+
|
|
1145
1120
|
// src/window/chrome/chromeClasses.ts
|
|
1146
1121
|
import { cn as cn5 } from "@ai-matrx/design-system/cn";
|
|
1147
1122
|
var WINDOW_CHROME_INTERACTIVE = "[&_button:not(:disabled)]:cursor-pointer [&_a]:cursor-pointer [&_[role=button]:not([aria-disabled=true])]:cursor-pointer [&_summary]:cursor-pointer [&_label:has(input,[role=checkbox],[role=radio])]:cursor-pointer";
|
|
@@ -1170,7 +1145,7 @@ function MobileWindowHeader({
|
|
|
1170
1145
|
className: "flex h-11 w-11 shrink-0 cursor-pointer items-center justify-center",
|
|
1171
1146
|
onClick: onClose,
|
|
1172
1147
|
"aria-label": "Close",
|
|
1173
|
-
children: /* @__PURE__ */ jsx7("span", { className: "flex h-6 w-6 items-center justify-center rounded-full matrx-window-light-close", children: /* @__PURE__ */ jsx7(
|
|
1148
|
+
children: /* @__PURE__ */ jsx7("span", { className: "flex h-6 w-6 items-center justify-center rounded-full matrx-window-light-close", children: /* @__PURE__ */ jsx7(XIcon3, { className: "h-2.5 w-2.5 matrx-window-light-glyph" }) })
|
|
1174
1149
|
}
|
|
1175
1150
|
),
|
|
1176
1151
|
onMinimize && /* @__PURE__ */ jsx7(
|
|
@@ -1204,6 +1179,7 @@ function MobileWindowHeader({
|
|
|
1204
1179
|
|
|
1205
1180
|
// src/window/chrome/DeprecationBanner.tsx
|
|
1206
1181
|
import { useState as useState4 } from "react";
|
|
1182
|
+
import { AlertTriangleIcon, XIcon as XIcon4 } from "@ai-matrx/design-system/icons";
|
|
1207
1183
|
import { cn as cn6 } from "@ai-matrx/design-system/cn";
|
|
1208
1184
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1209
1185
|
function DeprecationBanner({
|
|
@@ -1222,7 +1198,7 @@ function DeprecationBanner({
|
|
|
1222
1198
|
className
|
|
1223
1199
|
),
|
|
1224
1200
|
children: [
|
|
1225
|
-
/* @__PURE__ */ jsx8(
|
|
1201
|
+
/* @__PURE__ */ jsx8(AlertTriangleIcon, { className: "w-3.5 h-3.5 mt-[1px] shrink-0" }),
|
|
1226
1202
|
/* @__PURE__ */ jsx8("span", { className: "flex-1 break-words", children: message }),
|
|
1227
1203
|
/* @__PURE__ */ jsx8(
|
|
1228
1204
|
"button",
|
|
@@ -1231,7 +1207,7 @@ function DeprecationBanner({
|
|
|
1231
1207
|
"aria-label": "Dismiss deprecation notice",
|
|
1232
1208
|
className: "shrink-0 rounded hover:bg-destructive/20 p-0.5 transition-colors",
|
|
1233
1209
|
onClick: () => setDismissed(true),
|
|
1234
|
-
children: /* @__PURE__ */ jsx8(
|
|
1210
|
+
children: /* @__PURE__ */ jsx8(XIcon4, { className: "w-3 h-3" })
|
|
1235
1211
|
}
|
|
1236
1212
|
)
|
|
1237
1213
|
]
|
|
@@ -3247,7 +3223,7 @@ function TrafficLightGroup({
|
|
|
3247
3223
|
TrafficLight,
|
|
3248
3224
|
{
|
|
3249
3225
|
color: "red",
|
|
3250
|
-
icon: /* @__PURE__ */ jsx14(
|
|
3226
|
+
icon: /* @__PURE__ */ jsx14(XIcon5, { className: "w-2 h-2 matrx-window-light-glyph" }),
|
|
3251
3227
|
onClick: onClose ?? void 0,
|
|
3252
3228
|
disabled: !onClose,
|
|
3253
3229
|
"aria-label": "Close"
|
|
@@ -3296,7 +3272,7 @@ function TrafficLightGroup({
|
|
|
3296
3272
|
onClick: onToggleSidebar,
|
|
3297
3273
|
title: sidebarOpen ? "Hide sidebar" : "Show sidebar",
|
|
3298
3274
|
"aria-label": sidebarOpen ? "Hide sidebar" : "Show sidebar",
|
|
3299
|
-
children: sidebarOpen ? /* @__PURE__ */ jsx14(PanelLeftCloseIcon, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx14(
|
|
3275
|
+
children: sidebarOpen ? /* @__PURE__ */ jsx14(PanelLeftCloseIcon, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx14(PanelLeftIcon2, { className: "w-3.5 h-3.5" })
|
|
3300
3276
|
}
|
|
3301
3277
|
)
|
|
3302
3278
|
] });
|