@designa8/vibedesign-v6 1.10.6 → 1.12.1

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/dist/index.cjs CHANGED
@@ -37,6 +37,7 @@ __export(src_exports, {
37
37
  ChatScreen: () => ChatScreen,
38
38
  Chip: () => Chip,
39
39
  ComponentCard: () => ComponentCard,
40
+ ExportDesignMdModal: () => ExportDesignMdModal,
40
41
  FilterTabBar: () => FilterTabBar,
41
42
  HomePageTemplate: () => HomePageTemplate,
42
43
  Input: () => Input,
@@ -44,6 +45,7 @@ __export(src_exports, {
44
45
  NavItem: () => NavItem,
45
46
  PreviewToolbar: () => PreviewToolbar,
46
47
  PromptInputBar: () => PromptInputBar,
48
+ PublishModal: () => PublishModal,
47
49
  TopNavbar: () => TopNavbar,
48
50
  Typography: () => Typography,
49
51
  UpgradeCard: () => UpgradeCard,
@@ -1043,287 +1045,189 @@ PromptInputBar.displayName = "PromptInputBar";
1043
1045
 
1044
1046
  // virtual-pkg:src/atoms/ChatScreen/ChatScreen.tsx
1045
1047
  var import_jsx_runtime5 = require("react/jsx-runtime");
1046
- var ChatEmptyIllustration = () => (
1047
- // 112px container — stable width regardless of Tailwind spacing scale.
1048
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1049
- "div",
1050
- {
1051
- className: "relative flex-shrink-0",
1052
- "aria-hidden": "true",
1053
- style: { width: 112 },
1054
- children: [
1055
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1056
- "svg",
1057
- {
1058
- viewBox: "0 0 160 140",
1059
- width: "112",
1060
- height: "98",
1061
- className: "text-primary",
1062
- fill: "currentColor",
1063
- style: { opacity: 0.15, display: "block" },
1064
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M78 8c28-6 52 10 58 34 6 24-6 44-4 62 2 16-14 30-36 32-26 2-48-8-62-28-12-18-22-42-10-58C36 30 52 14 78 8z" })
1065
- }
1066
- ),
1067
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1068
- "div",
1069
- {
1070
- className: "relative flex items-center justify-center rounded-full bg-primary shadow-sm",
1071
- style: { width: 64, height: 64 },
1072
- children: [
1073
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col", style: { width: 32, gap: 6 }, children: [
1074
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1075
- "span",
1076
- {
1077
- className: "rounded-full bg-on-primary",
1078
- style: { height: 6, width: "100%" }
1079
- }
1080
- ),
1081
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1082
- "span",
1083
- {
1084
- className: "rounded-full bg-on-primary",
1085
- style: { height: 6, width: "66%" }
1086
- }
1087
- )
1088
- ] }),
1048
+ var ChatEmptyIllustration = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1049
+ "div",
1050
+ {
1051
+ className: "relative flex-shrink-0",
1052
+ "aria-hidden": "true",
1053
+ style: { width: 112 },
1054
+ children: [
1055
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1056
+ "svg",
1057
+ {
1058
+ viewBox: "0 0 160 140",
1059
+ width: "112",
1060
+ height: "98",
1061
+ className: "text-primary",
1062
+ fill: "currentColor",
1063
+ style: { opacity: 0.15, display: "block" },
1064
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M78 8c28-6 52 10 58 34 6 24-6 44-4 62 2 16-14 30-36 32-26 2-48-8-62-28-12-18-22-42-10-58C36 30 52 14 78 8z" })
1065
+ }
1066
+ ),
1067
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1068
+ "div",
1069
+ {
1070
+ className: "relative flex items-center justify-center rounded-full bg-primary shadow-sm",
1071
+ style: { width: 64, height: 64 },
1072
+ children: [
1073
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col", style: { width: 32, gap: 6 }, children: [
1089
1074
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1090
1075
  "span",
1091
1076
  {
1092
- className: "absolute bg-primary",
1093
- style: {
1094
- width: 12,
1095
- height: 12,
1096
- bottom: -2,
1097
- right: 8,
1098
- transform: "rotate(45deg)",
1099
- borderRadius: 2
1100
- }
1077
+ className: "rounded-full bg-on-primary",
1078
+ style: { height: 6, width: "100%" }
1079
+ }
1080
+ ),
1081
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1082
+ "span",
1083
+ {
1084
+ className: "rounded-full bg-on-primary",
1085
+ style: { height: 6, width: "66%" }
1101
1086
  }
1102
1087
  )
1103
- ]
1104
- }
1105
- ) }),
1106
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1107
- "svg",
1108
- {
1109
- viewBox: "0 0 24 24",
1110
- width: "12",
1111
- height: "12",
1112
- className: "absolute text-primary",
1113
- fill: "currentColor",
1114
- "aria-hidden": "true",
1115
- style: { left: 8, top: 16 },
1116
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1117
- }
1118
- ),
1119
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1120
- "svg",
1121
- {
1122
- viewBox: "0 0 24 24",
1123
- width: "10",
1124
- height: "10",
1125
- className: "absolute text-primary",
1126
- fill: "currentColor",
1127
- "aria-hidden": "true",
1128
- style: { right: 12, top: 32 },
1129
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1130
- }
1131
- ),
1132
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1133
- "svg",
1134
- {
1135
- viewBox: "0 0 24 24",
1136
- width: "8",
1137
- height: "8",
1138
- className: "absolute text-primary",
1139
- fill: "currentColor",
1140
- "aria-hidden": "true",
1141
- style: { left: 24, bottom: 24 },
1142
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1143
- }
1144
- ),
1145
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1146
- "svg",
1147
- {
1148
- viewBox: "0 0 24 24",
1149
- width: "14",
1150
- height: "14",
1151
- className: "absolute text-primary",
1152
- fill: "currentColor",
1153
- "aria-hidden": "true",
1154
- style: { right: 8, bottom: 32 },
1155
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" })
1156
- }
1157
- )
1158
- ]
1159
- }
1160
- )
1088
+ ] }),
1089
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1090
+ "span",
1091
+ {
1092
+ className: "absolute bg-primary",
1093
+ style: {
1094
+ width: 12,
1095
+ height: 12,
1096
+ bottom: -2,
1097
+ right: 8,
1098
+ transform: "rotate(45deg)",
1099
+ borderRadius: 2
1100
+ }
1101
+ }
1102
+ )
1103
+ ]
1104
+ }
1105
+ ) }),
1106
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "12", height: "12", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { left: 8, top: 16 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1107
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "10", height: "10", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { right: 12, top: 32 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1108
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "8", height: "8", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { left: 24, bottom: 24 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) }),
1109
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", className: "absolute text-primary", fill: "currentColor", "aria-hidden": "true", style: { right: 8, bottom: 32 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 0l1.5 8.5L22 12l-8.5 1.5L12 22l-1.5-8.5L2 12l8.5-1.5L12 0z" }) })
1110
+ ]
1111
+ }
1161
1112
  );
1162
1113
  var ChatEmptyStateContent = ({
1163
1114
  title,
1164
1115
  description
1165
- }) => (
1166
- // Use inline gap so the layout is robust when gap-lg is absent in the consumer theme.
1167
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center px-lg", style: { gap: 24 }, children: [
1168
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatEmptyIllustration, {}),
1169
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-w-0 flex-col gap-xs", children: [
1170
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h2", { className: "text-heading-sm font-weight-heading-sm text-ink", children: title }),
1171
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-sm text-muted", style: { maxWidth: "24rem" }, children: description })
1172
- ] })
1116
+ }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center px-lg", style: { gap: 24 }, children: [
1117
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChatEmptyIllustration, {}),
1118
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-w-0 flex-col gap-xs", children: [
1119
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h2", { className: "text-heading-sm font-weight-heading-sm text-ink", children: title }),
1120
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-sm text-muted", style: { maxWidth: "24rem" }, children: description })
1173
1121
  ] })
1174
- );
1175
- var ChevronIcon2 = ({ expanded }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1176
- "svg",
1177
- {
1178
- xmlns: "http://www.w3.org/2000/svg",
1179
- viewBox: "0 0 24 24",
1180
- fill: "none",
1181
- stroke: "currentColor",
1182
- strokeWidth: "2",
1183
- strokeLinecap: "round",
1184
- strokeLinejoin: "round",
1185
- className: "size-4 text-muted flex-shrink-0 transition-transform duration-200",
1186
- style: { transform: expanded ? "rotate(180deg)" : "rotate(0deg)" },
1187
- "aria-hidden": "true",
1188
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("polyline", { points: "6 9 12 15 18 9" })
1122
+ ] });
1123
+ var TimelineKindIcon = ({
1124
+ kind,
1125
+ status
1126
+ }) => {
1127
+ const colorClass = status === "error" ? "text-semantic-error" : status === "running" ? "text-primary" : "text-semantic-success";
1128
+ if (kind === "thinking") {
1129
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1130
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
1131
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M12 8v4l2 2" })
1132
+ ] });
1189
1133
  }
1190
- );
1191
- var PlanCardBlock = ({ plan }) => {
1192
- const [titleExpanded, setTitleExpanded] = import_react5.default.useState(false);
1193
- const titleRef = import_react5.default.useRef(null);
1194
- const [isOverflowing, setIsOverflowing] = import_react5.default.useState(false);
1195
- import_react5.default.useEffect(() => {
1196
- const el = titleRef.current;
1197
- if (!el) return;
1198
- const check = () => {
1199
- if (el) {
1200
- setIsOverflowing(el.scrollHeight > el.clientHeight + 2);
1201
- }
1202
- };
1203
- check();
1204
- const ro = new ResizeObserver(check);
1205
- ro.observe(el);
1206
- return () => ro.disconnect();
1207
- }, [plan.title]);
1208
- const hasActivity = plan.tasks.some(
1209
- (t) => t.status === "in_progress" || t.status === "done" || t.status === "failed"
1210
- );
1211
- const visibleTasks = plan.tasks.filter(
1212
- (t) => t.status === "in_progress" || t.status === "done" || t.status === "failed"
1213
- );
1214
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "mt-md rounded-xl border border-hairline bg-canvas shadow-sm overflow-hidden", children: [
1215
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-start gap-sm px-lg py-md border-b border-hairline-soft", children: [
1216
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1217
- "svg",
1134
+ if (kind === "read") {
1135
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1136
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }),
1137
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" })
1138
+ ] });
1139
+ }
1140
+ if (kind === "write") {
1141
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: [
1142
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
1143
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" })
1144
+ ] });
1145
+ }
1146
+ if (kind === "verify") {
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("polyline", { points: "20 6 9 17 4 12" }) });
1148
+ }
1149
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: colorClass, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" }) });
1150
+ };
1151
+ var TimelineRow = ({ item, isLast }) => {
1152
+ const borderColor = item.status === "error" ? "border-semantic-error" : item.status === "running" ? "border-primary" : "border-semantic-success";
1153
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex gap-sm", children: [
1154
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col items-center", style: { width: 20 }, children: [
1155
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1156
+ "div",
1218
1157
  {
1219
- xmlns: "http://www.w3.org/2000/svg",
1220
- viewBox: "0 0 24 24",
1221
- fill: "none",
1222
- stroke: "currentColor",
1223
- strokeWidth: "2",
1224
- strokeLinecap: "round",
1225
- strokeLinejoin: "round",
1226
- className: "size-4 text-primary flex-shrink-0 mt-xs",
1227
- "aria-hidden": "true",
1228
- children: [
1229
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "8", y1: "6", x2: "21", y2: "6" }),
1230
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "8", y1: "12", x2: "21", y2: "12" }),
1231
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "8", y1: "18", x2: "21", y2: "18" }),
1232
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "3", y1: "6", x2: "3.01", y2: "6" }),
1233
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "3", y1: "12", x2: "3.01", y2: "12" }),
1234
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "3", y1: "18", x2: "3.01", y2: "18" })
1235
- ]
1158
+ className: [
1159
+ "flex items-center justify-center rounded-full flex-shrink-0 border",
1160
+ borderColor,
1161
+ "bg-canvas"
1162
+ ].join(" "),
1163
+ style: { width: 20, height: 20 },
1164
+ children: item.status === "running" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "10", height: "10", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", className: "text-primary animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TimelineKindIcon, { kind: item.kind, status: item.status })
1236
1165
  }
1237
1166
  ),
1238
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex-1 min-w-0 flex items-start gap-xs", children: [
1239
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1240
- "span",
1241
- {
1242
- ref: titleRef,
1243
- className: "text-body-sm font-weight-heading-sm text-primary flex-1 min-w-0",
1244
- style: titleExpanded ? void 0 : {
1245
- display: "-webkit-box",
1246
- WebkitLineClamp: 2,
1247
- WebkitBoxOrient: "vertical",
1248
- overflow: "hidden"
1249
- },
1250
- children: plan.title
1251
- }
1252
- ),
1253
- isOverflowing && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1254
- Button,
1255
- {
1256
- variant: "ghost",
1257
- size: "sm",
1258
- type: "button",
1259
- onClick: () => setTitleExpanded((prev) => !prev),
1260
- "aria-label": titleExpanded ? "Collapse plan title" : "Expand plan title",
1261
- className: "flex-shrink-0 !p-xxs !rounded-xs",
1262
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ChevronIcon2, { expanded: titleExpanded })
1263
- }
1264
- )
1265
- ] })
1167
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex-1 w-px bg-hairline-soft", style: { minHeight: 8 } })
1266
1168
  ] }),
1267
- hasActivity && visibleTasks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("ol", { className: "flex flex-col divide-y divide-hairline-soft", children: visibleTasks.map((task) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1268
- "li",
1169
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col min-w-0 pb-sm", children: [
1170
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1171
+ "span",
1172
+ {
1173
+ className: [
1174
+ "text-body-sm",
1175
+ item.status === "error" ? "text-semantic-error" : item.status === "running" ? "text-ink font-weight-heading-sm" : "text-muted"
1176
+ ].join(" "),
1177
+ children: item.label
1178
+ }
1179
+ ),
1180
+ item.detail && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-caption text-muted-soft mt-xxs", children: item.detail })
1181
+ ] })
1182
+ ] });
1183
+ };
1184
+ var TimelineBlock = ({ items }) => {
1185
+ const [expanded, setExpanded] = import_react5.default.useState(false);
1186
+ if (items.length === 0) return null;
1187
+ const latestItem = items[items.length - 1];
1188
+ const hasMore = items.length > 1;
1189
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "mt-md rounded-xl border border-hairline bg-canvas overflow-hidden", children: [
1190
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1191
+ Button,
1269
1192
  {
1270
- className: "flex items-center gap-md px-lg py-md",
1193
+ variant: "ghost",
1194
+ size: "sm",
1195
+ type: "button",
1196
+ onClick: () => setExpanded((prev) => !prev),
1197
+ "aria-expanded": expanded,
1198
+ "aria-label": expanded ? "Collapse agent steps" : "Expand agent steps",
1199
+ className: "w-full flex items-center gap-sm !px-md !py-sm !text-left !justify-start !rounded-none",
1271
1200
  children: [
1272
- task.status === "in_progress" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1273
- "span",
1274
- {
1275
- className: "flex-shrink-0 size-3 rounded-full bg-primary animate-pulse",
1276
- "aria-label": "In progress"
1277
- }
1278
- ),
1279
- task.status === "done" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex-shrink-0", "aria-label": "Done", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1280
- "svg",
1281
- {
1282
- xmlns: "http://www.w3.org/2000/svg",
1283
- viewBox: "0 0 24 24",
1284
- fill: "none",
1285
- stroke: "currentColor",
1286
- strokeWidth: "2.5",
1287
- strokeLinecap: "round",
1288
- strokeLinejoin: "round",
1289
- className: "size-4 text-semantic-success",
1290
- "aria-hidden": "true",
1291
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("polyline", { points: "20 6 9 17 4 12" })
1292
- }
1293
- ) }),
1294
- task.status === "failed" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex-shrink-0", "aria-label": "Failed", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1201
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "flex-shrink-0 flex items-center justify-center", style: { width: 20, height: 20 }, children: latestItem.status === "running" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("svg", { viewBox: "0 0 24 24", width: "12", height: "12", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", className: "text-primary animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }) }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TimelineKindIcon, { kind: latestItem.kind, status: latestItem.status }) }),
1202
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "flex-1 min-w-0 text-body-sm text-muted truncate", children: [
1203
+ latestItem.label,
1204
+ hasMore && !expanded && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { className: "ml-xs text-caption text-muted-soft", children: [
1205
+ "(+",
1206
+ items.length - 1,
1207
+ " more)"
1208
+ ] })
1209
+ ] }),
1210
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1295
1211
  "svg",
1296
1212
  {
1297
- xmlns: "http://www.w3.org/2000/svg",
1298
1213
  viewBox: "0 0 24 24",
1214
+ width: "14",
1215
+ height: "14",
1299
1216
  fill: "none",
1300
1217
  stroke: "currentColor",
1301
- strokeWidth: "2.5",
1218
+ strokeWidth: "2",
1302
1219
  strokeLinecap: "round",
1303
1220
  strokeLinejoin: "round",
1304
- className: "size-4 text-semantic-error",
1221
+ className: "text-muted flex-shrink-0 transition-transform duration-200",
1222
+ style: { transform: expanded ? "rotate(180deg)" : "rotate(0deg)" },
1305
1223
  "aria-hidden": "true",
1306
- children: [
1307
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
1308
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
1309
- ]
1310
- }
1311
- ) }),
1312
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1313
- "span",
1314
- {
1315
- className: [
1316
- "text-body-sm",
1317
- task.status === "in_progress" ? "font-weight-heading-sm text-ink" : task.status === "done" ? "line-through text-muted" : task.status === "failed" ? "text-semantic-error" : "text-ink"
1318
- ].filter(Boolean).join(" "),
1319
- children: task.label
1224
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("polyline", { points: "6 9 12 15 18 9" })
1320
1225
  }
1321
- ),
1322
- task.status === "in_progress" && task.currentTool && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "ml-auto text-caption text-muted flex-shrink-0", children: task.currentTool })
1226
+ )
1323
1227
  ]
1324
- },
1325
- task.id
1326
- )) })
1228
+ }
1229
+ ),
1230
+ expanded && hasMore && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "px-md pb-sm pt-xs border-t border-hairline-soft", children: items.map((item, idx) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TimelineRow, { item, isLast: idx === items.length - 1 }, item.id)) })
1327
1231
  ] });
1328
1232
  };
1329
1233
  var AIAvatar = () => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
@@ -1365,7 +1269,7 @@ var AiMessage = ({ message }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("
1365
1269
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-body-sm text-primary", children: message.currentToolLabel ?? "Working\u2026" })
1366
1270
  ] }),
1367
1271
  /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-sm text-body leading-relaxed", children: message.content }),
1368
- message.plan && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PlanCardBlock, { plan: message.plan }),
1272
+ message.timeline && message.timeline.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TimelineBlock, { items: message.timeline }),
1369
1273
  message.postContent && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-body-sm text-body leading-relaxed mt-md", children: message.postContent })
1370
1274
  ] })
1371
1275
  ] });
@@ -1394,29 +1298,28 @@ var ChatScreen = import_react5.default.forwardRef(
1394
1298
  {
1395
1299
  id: "1",
1396
1300
  role: "user",
1397
- content: "Build a `PromptInputBar` Molecule that reproduces the Lovable-style prompt bar with placeholder and the bottom toolbar.",
1301
+ content: "Build a `PromptInputBar` Molecule that reproduces the Lovable-style prompt bar.",
1398
1302
  userInitials: "DU"
1399
1303
  },
1400
1304
  {
1401
1305
  id: "2",
1402
1306
  role: "ai",
1403
- content: "I'll build the `PromptInputBar` Molecule to match the Lovable-style prompt bar. It will include a soft surface background, large rounded container, textarea with placeholder, and the bottom toolbar with `+`, `Visual edits`, `Build` mode dropdown, mic, and send buttons.\n\nHere's my plan for building this component:",
1404
- plan: {
1405
- title: "Plan: Build the PromptInputBar Molecule with all toolbar controls, placeholder text, and mode-switching behaviour for the Lovable editor canvas",
1406
- tasks: [
1407
- { id: "p1", label: "Create the PromptInputBar structure and styling", status: "done" },
1408
- { id: "p2", label: "Add textarea with placeholder", status: "done" },
1409
- { id: "p3", label: "Build bottom toolbar with all button elements", status: "done" },
1410
- { id: "p4", label: "Add interactions and states" },
1411
- { id: "p5", label: "Create stories and tests" }
1412
- ]
1413
- },
1414
- postContent: "The plan above outlines all the steps. Let me start building the component now."
1307
+ content: "I'll build the `PromptInputBar` Molecule now. Here's what the agent is doing:",
1308
+ timeline: [
1309
+ { id: "t1", kind: "thinking", label: "Planning component structure", status: "done" },
1310
+ { id: "t2", kind: "read", label: "Reading design tokens", detail: "colors, spacing, typography", status: "done" },
1311
+ { id: "t3", kind: "write", label: "Writing PromptInputBar.tsx", status: "done" },
1312
+ { id: "t4", kind: "verify", label: "Verifying atom", status: "running" }
1313
+ ],
1314
+ postContent: "The component is being verified \u2014 it will be ready shortly."
1415
1315
  },
1416
1316
  {
1417
1317
  id: "3",
1418
1318
  role: "ai",
1419
- content: "Let me start building the `PromptInputBar` Molecule."
1319
+ content: "Done! The `PromptInputBar` atom has been created and verified.",
1320
+ timeline: [
1321
+ { id: "t5", kind: "verify", label: "Atom verified successfully", status: "done" }
1322
+ ]
1420
1323
  }
1421
1324
  ];
1422
1325
  const [messages, setMessages] = import_react5.default.useState(
@@ -1529,7 +1432,7 @@ var DeleteIcon = () => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1529
1432
  ]
1530
1433
  }
1531
1434
  );
1532
- var ChevronIcon3 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1435
+ var ChevronIcon2 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1533
1436
  "svg",
1534
1437
  {
1535
1438
  "aria-hidden": "true",
@@ -1623,7 +1526,7 @@ var WorkspaceMenu = import_react6.default.forwardRef(
1623
1526
  style: { minWidth: "200px" },
1624
1527
  children: [
1625
1528
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "flex-1 text-left truncate text-body-sm font-weight-heading-sm", children: workspaceName }),
1626
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ChevronIcon3, { open })
1529
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ChevronIcon2, { open })
1627
1530
  ]
1628
1531
  }
1629
1532
  ),
@@ -3706,78 +3609,500 @@ function DefaultThumbnail({ kind }) {
3706
3609
  );
3707
3610
  }
3708
3611
 
3709
- // virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
3612
+ // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3613
+ var import_react17 = __toESM(require("react"));
3614
+
3615
+ // virtual-pkg:src/atoms/Modal/Modal.tsx
3710
3616
  var import_react15 = __toESM(require("react"));
3711
3617
  var import_jsx_runtime15 = require("react/jsx-runtime");
3712
- var FilterTabBar = import_react15.default.forwardRef(
3713
- ({ tabs, value, onChange, className = "", ...rest }, ref) => {
3618
+ var sizeMap = {
3619
+ sm: "max-w-sm",
3620
+ md: "max-w-lg",
3621
+ lg: "max-w-2xl",
3622
+ xl: "max-w-4xl"
3623
+ };
3624
+ var Modal = import_react15.default.forwardRef(
3625
+ ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
3626
+ const [mounted, setMounted] = (0, import_react15.useState)(false);
3627
+ const [visible, setVisible] = (0, import_react15.useState)(false);
3628
+ const overlayRef = (0, import_react15.useRef)(null);
3629
+ (0, import_react15.useEffect)(() => {
3630
+ if (isOpen) {
3631
+ setMounted(true);
3632
+ const raf = requestAnimationFrame(() => {
3633
+ requestAnimationFrame(() => setVisible(true));
3634
+ });
3635
+ return () => cancelAnimationFrame(raf);
3636
+ } else {
3637
+ setVisible(false);
3638
+ const timer = setTimeout(() => setMounted(false), 250);
3639
+ return () => clearTimeout(timer);
3640
+ }
3641
+ }, [isOpen]);
3642
+ (0, import_react15.useEffect)(() => {
3643
+ if (!mounted) return;
3644
+ const handleKey = (e) => {
3645
+ if (e.key === "Escape") onClose();
3646
+ };
3647
+ document.addEventListener("keydown", handleKey);
3648
+ return () => document.removeEventListener("keydown", handleKey);
3649
+ }, [mounted, onClose]);
3650
+ if (!mounted) return null;
3651
+ const handleBackdropClick = (e) => {
3652
+ if (e.target === overlayRef.current) onClose();
3653
+ };
3714
3654
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3715
3655
  "div",
3716
3656
  {
3717
- ref,
3718
- role: "tablist",
3719
- "aria-label": "Filter tabs",
3657
+ ref: overlayRef,
3658
+ role: "dialog",
3659
+ "aria-modal": "true",
3660
+ "aria-labelledby": title ? "modal-title" : void 0,
3661
+ onClick: handleBackdropClick,
3720
3662
  className: [
3721
- "inline-flex items-center gap-xs p-xs",
3722
- "bg-canvas border border-hairline rounded-xl shadow-sm",
3723
- className
3724
- ].filter(Boolean).join(" "),
3725
- ...rest,
3726
- children: tabs.map((tab) => {
3727
- const isActive = tab.value === value;
3728
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3729
- Button,
3730
- {
3731
- role: "tab",
3732
- "aria-selected": isActive,
3733
- "aria-label": tab.label ?? tab.value,
3734
- variant: isActive ? "primary" : "ghost",
3735
- size: "sm",
3736
- onClick: () => onChange(tab.value),
3737
- className: "gap-xs",
3738
- children: [
3739
- tab.icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
3740
- tab.label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: tab.label }),
3741
- tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3742
- "span",
3663
+ "fixed inset-0 flex items-center justify-center p-base",
3664
+ "bg-[var(--color-scrim)]/60",
3665
+ "transition-opacity duration-250 ease-in-out",
3666
+ visible ? "opacity-100" : "opacity-0"
3667
+ ].join(" "),
3668
+ style: { zIndex: "var(--z-modal, 1000)" },
3669
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3670
+ "div",
3671
+ {
3672
+ ref,
3673
+ className: [
3674
+ "relative w-full max-h-[90vh] bg-surface border border-hairline rounded-lg",
3675
+ "shadow-[0_8px_40px_0_rgba(0,0,0,0.18)]",
3676
+ "flex flex-col overflow-hidden",
3677
+ sizeMap[size],
3678
+ "transition-all duration-250 ease-in-out",
3679
+ visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
3680
+ ].join(" "),
3681
+ children: [
3682
+ title && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
3683
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
3684
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3685
+ Button,
3743
3686
  {
3744
- className: [
3745
- "inline-flex items-center justify-center",
3746
- "min-w-[1.25rem] h-5 px-xs rounded-sm",
3747
- "text-caption leading-none",
3748
- "transition-[background-color,color] duration-200 ease-in-out",
3749
- isActive ? "bg-ink text-canvas" : "bg-surface-strong text-muted"
3750
- ].filter(Boolean).join(" "),
3751
- "aria-label": `${tab.count} items`,
3752
- children: tab.count
3753
- }
3754
- )
3755
- ]
3756
- },
3757
- tab.value
3758
- );
3759
- })
3760
- }
3761
- );
3762
- }
3687
+ variant: "ghost",
3688
+ size: "sm",
3689
+ "aria-label": "Close modal",
3690
+ onClick: onClose,
3691
+ className: "!px-xs !py-xs",
3692
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3693
+ "svg",
3694
+ {
3695
+ xmlns: "http://www.w3.org/2000/svg",
3696
+ width: "16",
3697
+ height: "16",
3698
+ viewBox: "0 0 24 24",
3699
+ fill: "none",
3700
+ stroke: "currentColor",
3701
+ strokeWidth: "2",
3702
+ strokeLinecap: "round",
3703
+ strokeLinejoin: "round",
3704
+ "aria-hidden": "true",
3705
+ children: [
3706
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3707
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3708
+ ]
3709
+ }
3710
+ )
3711
+ }
3712
+ )
3713
+ ] }),
3714
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
3715
+ footer && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
3716
+ ]
3717
+ }
3718
+ )
3719
+ }
3720
+ );
3721
+ }
3763
3722
  );
3764
- FilterTabBar.displayName = "FilterTabBar";
3723
+ Modal.displayName = "Modal";
3765
3724
 
3766
- // virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
3725
+ // virtual-pkg:src/atoms/Typography/Typography.tsx
3767
3726
  var import_react16 = __toESM(require("react"));
3768
3727
  var import_jsx_runtime16 = require("react/jsx-runtime");
3769
- var HomeIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
3770
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
3771
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("polyline", { points: "9 22 9 12 15 12 15 22" })
3728
+ var roleTagMap = {
3729
+ "display-lg": "h1",
3730
+ "heading-lg": "h2",
3731
+ "heading-md": "h3",
3732
+ "heading-sm": "h4",
3733
+ "body-lg": "p",
3734
+ "body-md": "p",
3735
+ "body-sm": "p",
3736
+ caption: "span"
3737
+ };
3738
+ var roleClassMap = {
3739
+ "display-lg": "text-display-lg",
3740
+ "heading-lg": "text-heading-lg",
3741
+ "heading-md": "text-heading-md",
3742
+ "heading-sm": "text-heading-sm",
3743
+ "body-lg": "text-body-lg",
3744
+ "body-md": "text-body-md",
3745
+ "body-sm": "text-body-sm",
3746
+ caption: "text-caption"
3747
+ };
3748
+ var colorClassMap = {
3749
+ ink: "text-ink",
3750
+ body: "text-body",
3751
+ muted: "text-muted",
3752
+ "muted-soft": "text-muted-soft",
3753
+ primary: "text-primary",
3754
+ "semantic-error": "text-semantic-error",
3755
+ "semantic-success": "text-semantic-success",
3756
+ "semantic-warning": "text-semantic-warning",
3757
+ "on-primary": "text-on-primary"
3758
+ };
3759
+ var Typography = import_react16.default.forwardRef(
3760
+ ({
3761
+ role = "body-md",
3762
+ color = "ink",
3763
+ as,
3764
+ truncate = false,
3765
+ uppercase = false,
3766
+ className = "",
3767
+ children,
3768
+ ...rest
3769
+ }, ref) => {
3770
+ const Tag = as ?? roleTagMap[role];
3771
+ const classes = [
3772
+ roleClassMap[role],
3773
+ colorClassMap[color],
3774
+ truncate ? "truncate" : "",
3775
+ uppercase ? "uppercase tracking-wide" : "",
3776
+ className
3777
+ ].filter(Boolean).join(" ");
3778
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Tag, { ref, className: classes, ...rest, children });
3779
+ }
3780
+ );
3781
+ Typography.displayName = "Typography";
3782
+
3783
+ // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3784
+ var import_jsx_runtime17 = require("react/jsx-runtime");
3785
+ var defaultLines = [
3786
+ { text: "# Design System", tone: "heading" },
3787
+ { text: "" },
3788
+ { text: "Design system generated by Atoms Design." },
3789
+ { text: "Consume it via the npm registry." },
3790
+ { text: "" },
3791
+ {
3792
+ text: "IMPORTANT: Read this skill file in full BEFORE editing any file in the consumer app."
3793
+ },
3794
+ { text: "" },
3795
+ {
3796
+ text: "Use this skill whenever the user wants to add, change, fix, restyle, resize,"
3797
+ },
3798
+ { text: "extend, or audit UI in their app." },
3799
+ { text: "" },
3800
+ { text: "## 1. Colors", tone: "heading" },
3801
+ { text: "" },
3802
+ { text: "primary: {colors.primary}" },
3803
+ { text: "on-primary: {colors.on-primary}" },
3804
+ { text: "primary-hover: {colors.primary-hover}" },
3805
+ { text: "primary-active: {colors.primary-active}" },
3806
+ { text: "canvas: {colors.canvas}" },
3807
+ { text: "surface: {colors.surface}" },
3808
+ { text: "ink: {colors.ink}" },
3809
+ { text: "body: {colors.body}" },
3810
+ { text: "muted: {colors.muted}" },
3811
+ { text: "hairline: {colors.hairline}" }
3812
+ ];
3813
+ var CloudIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3814
+ "svg",
3815
+ {
3816
+ viewBox: "0 0 24 24",
3817
+ width: "16",
3818
+ height: "16",
3819
+ fill: "none",
3820
+ stroke: "currentColor",
3821
+ strokeWidth: "2",
3822
+ strokeLinecap: "round",
3823
+ strokeLinejoin: "round",
3824
+ "aria-hidden": "true",
3825
+ children: [
3826
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16" }),
3827
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M8 19h9.5" })
3828
+ ]
3829
+ }
3830
+ );
3831
+ var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3832
+ "svg",
3833
+ {
3834
+ viewBox: "0 0 24 24",
3835
+ width: "16",
3836
+ height: "16",
3837
+ fill: "none",
3838
+ stroke: "currentColor",
3839
+ strokeWidth: "2",
3840
+ strokeLinecap: "round",
3841
+ strokeLinejoin: "round",
3842
+ "aria-hidden": "true",
3843
+ children: [
3844
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
3845
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
3846
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
3847
+ ]
3848
+ }
3849
+ );
3850
+ var CopyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3851
+ "svg",
3852
+ {
3853
+ viewBox: "0 0 24 24",
3854
+ width: "14",
3855
+ height: "14",
3856
+ fill: "none",
3857
+ stroke: "currentColor",
3858
+ strokeWidth: "2",
3859
+ strokeLinecap: "round",
3860
+ strokeLinejoin: "round",
3861
+ "aria-hidden": "true",
3862
+ children: [
3863
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
3864
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
3865
+ ]
3866
+ }
3867
+ );
3868
+ var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3869
+ "svg",
3870
+ {
3871
+ viewBox: "0 0 24 24",
3872
+ width: "14",
3873
+ height: "14",
3874
+ fill: "none",
3875
+ stroke: "currentColor",
3876
+ strokeWidth: "2",
3877
+ strokeLinecap: "round",
3878
+ strokeLinejoin: "round",
3879
+ "aria-hidden": "true",
3880
+ children: [
3881
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M12 3v12" }),
3882
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M7 10l5 5 5-5" }),
3883
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M5 21h14" })
3884
+ ]
3885
+ }
3886
+ );
3887
+ var ExportDesignMdModal = import_react17.default.forwardRef(
3888
+ ({
3889
+ isOpen,
3890
+ onClose,
3891
+ onExport,
3892
+ onDownload,
3893
+ onCopy,
3894
+ designSystemName = "Design System",
3895
+ defaultSource = "production",
3896
+ lines = defaultLines
3897
+ }, ref) => {
3898
+ const [source, setSource] = (0, import_react17.useState)(defaultSource);
3899
+ const handleCopy = () => {
3900
+ const text = lines.map((l) => l.text).join("\n");
3901
+ if (typeof navigator !== "undefined" && navigator.clipboard) {
3902
+ navigator.clipboard.writeText(text).catch(() => {
3903
+ });
3904
+ }
3905
+ onCopy?.();
3906
+ };
3907
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3908
+ Modal,
3909
+ {
3910
+ ref,
3911
+ isOpen,
3912
+ onClose,
3913
+ title: "Export DESIGN.md",
3914
+ size: "xl",
3915
+ footer: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
3916
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
3917
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DownloadIcon, {}),
3918
+ "Download .md"
3919
+ ] }),
3920
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-sm", children: [
3921
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
3922
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { variant: "primary", onClick: onExport, children: "Export" })
3923
+ ] })
3924
+ ] }),
3925
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full space-y-lg", children: [
3926
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
3927
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
3928
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
3929
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3930
+ Button,
3931
+ {
3932
+ variant: source === "production" ? "primary" : "ghost",
3933
+ size: "sm",
3934
+ onClick: () => setSource("production"),
3935
+ children: [
3936
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloudIcon, {}),
3937
+ "Production"
3938
+ ]
3939
+ }
3940
+ ),
3941
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3942
+ Button,
3943
+ {
3944
+ variant: source === "local" ? "primary" : "ghost",
3945
+ size: "sm",
3946
+ onClick: () => setSource("local"),
3947
+ children: [
3948
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LinkIcon, {}),
3949
+ "Local (npm link)"
3950
+ ]
3951
+ }
3952
+ )
3953
+ ] }),
3954
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", className: "flex-1 min-w-[16rem]", children: source === "production" ? "Consumer apps install from the public npm registry ('npm install')." : "Consumer apps resolve the package via a local 'npm link' during development." })
3955
+ ] }),
3956
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
3957
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3958
+ Typography,
3959
+ {
3960
+ role: "caption",
3961
+ color: "muted",
3962
+ uppercase: true,
3963
+ className: "mb-xs block",
3964
+ children: "Preview"
3965
+ }
3966
+ ),
3967
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
3968
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3969
+ Button,
3970
+ {
3971
+ variant: "secondary",
3972
+ size: "sm",
3973
+ onClick: handleCopy,
3974
+ className: "absolute top-sm right-sm",
3975
+ children: [
3976
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CopyIcon, {}),
3977
+ "Copy"
3978
+ ]
3979
+ }
3980
+ ),
3981
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex gap-md", children: [
3982
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
3983
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3984
+ "span",
3985
+ {
3986
+ className: line.tone === "heading" ? "text-primary font-weight-heading-sm" : "text-body",
3987
+ children: line.text.replace("Design System", designSystemName) || "\xA0"
3988
+ }
3989
+ )
3990
+ ] }, i)) })
3991
+ ] })
3992
+ ] }),
3993
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full space-y-sm", children: [
3994
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
3995
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloudIcon, {}) }),
3996
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "min-w-0 flex-1", children: [
3997
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
3998
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
3999
+ ] }),
4000
+ source === "production" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4001
+ Button,
4002
+ {
4003
+ variant: "secondary",
4004
+ size: "sm",
4005
+ onClick: () => setSource("production"),
4006
+ children: "Switch"
4007
+ }
4008
+ )
4009
+ ] }),
4010
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4011
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-muted", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LinkIcon, {}) }),
4012
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "min-w-0 flex-1", children: [
4013
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
4014
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
4015
+ ] }),
4016
+ source === "local" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4017
+ Button,
4018
+ {
4019
+ variant: "secondary",
4020
+ size: "sm",
4021
+ onClick: () => setSource("local"),
4022
+ children: "Switch"
4023
+ }
4024
+ )
4025
+ ] })
4026
+ ] })
4027
+ ] })
4028
+ }
4029
+ );
4030
+ }
4031
+ );
4032
+ ExportDesignMdModal.displayName = "ExportDesignMdModal";
4033
+
4034
+ // virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
4035
+ var import_react18 = __toESM(require("react"));
4036
+ var import_jsx_runtime18 = require("react/jsx-runtime");
4037
+ var FilterTabBar = import_react18.default.forwardRef(
4038
+ ({ tabs, value, onChange, className = "", ...rest }, ref) => {
4039
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4040
+ "div",
4041
+ {
4042
+ ref,
4043
+ role: "tablist",
4044
+ "aria-label": "Filter tabs",
4045
+ className: [
4046
+ "inline-flex items-center gap-xs p-xs",
4047
+ "bg-canvas border border-hairline rounded-xl shadow-sm",
4048
+ className
4049
+ ].filter(Boolean).join(" "),
4050
+ ...rest,
4051
+ children: tabs.map((tab) => {
4052
+ const isActive = tab.value === value;
4053
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4054
+ Button,
4055
+ {
4056
+ role: "tab",
4057
+ "aria-selected": isActive,
4058
+ "aria-label": tab.label ?? tab.value,
4059
+ variant: isActive ? "primary" : "ghost",
4060
+ size: "sm",
4061
+ onClick: () => onChange(tab.value),
4062
+ className: "gap-xs",
4063
+ children: [
4064
+ tab.icon && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4065
+ tab.label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: tab.label }),
4066
+ tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4067
+ "span",
4068
+ {
4069
+ className: [
4070
+ "inline-flex items-center justify-center",
4071
+ "min-w-[1.25rem] h-5 px-xs rounded-sm",
4072
+ "text-caption leading-none",
4073
+ "transition-[background-color,color] duration-200 ease-in-out",
4074
+ isActive ? "bg-ink text-canvas" : "bg-surface-strong text-muted"
4075
+ ].filter(Boolean).join(" "),
4076
+ "aria-label": `${tab.count} items`,
4077
+ children: tab.count
4078
+ }
4079
+ )
4080
+ ]
4081
+ },
4082
+ tab.value
4083
+ );
4084
+ })
4085
+ }
4086
+ );
4087
+ }
4088
+ );
4089
+ FilterTabBar.displayName = "FilterTabBar";
4090
+
4091
+ // virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
4092
+ var import_react19 = __toESM(require("react"));
4093
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4094
+ var HomeIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
4095
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4096
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("polyline", { points: "9 22 9 12 15 12 15 22" })
3772
4097
  ] });
3773
- var FolderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
3774
- var LogoIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
3775
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
3776
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
3777
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
4098
+ var FolderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
4099
+ var LogoIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4100
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
4101
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
4102
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
3778
4103
  ] });
3779
- var SparkleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
3780
- var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4104
+ var SparkleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
4105
+ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3781
4106
  Button,
3782
4107
  {
3783
4108
  type: "button",
@@ -3795,11 +4120,11 @@ var DEFAULT_MODELS = [
3795
4120
  ];
3796
4121
  var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
3797
4122
  var NAV_ENTRIES = [
3798
- { id: "home", label: "Home", icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeIcon2, {}) },
4123
+ { id: "home", label: "Home", icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(HomeIcon2, {}) },
3799
4124
  {
3800
4125
  id: "projects",
3801
4126
  label: "All projects",
3802
- icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FolderIcon, {}),
4127
+ icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FolderIcon, {}),
3803
4128
  subItems: [
3804
4129
  { id: "proj-1", label: "Design system" },
3805
4130
  { id: "proj-2", label: "Landing page" },
@@ -3819,7 +4144,7 @@ var GRADIENT_BG = `
3819
4144
  radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
3820
4145
  var(--color-canvas)
3821
4146
  `;
3822
- var HomePageTemplate = import_react16.default.forwardRef(
4147
+ var HomePageTemplate = import_react19.default.forwardRef(
3823
4148
  ({
3824
4149
  userName = "Hello Designer",
3825
4150
  userInitials = "N",
@@ -3843,8 +4168,8 @@ var HomePageTemplate = import_react16.default.forwardRef(
3843
4168
  className,
3844
4169
  style
3845
4170
  }, ref) => {
3846
- const [internalPrompt, setInternalPrompt] = import_react16.default.useState("");
3847
- const [internalActiveId, setInternalActiveId] = import_react16.default.useState("home");
4171
+ const [internalPrompt, setInternalPrompt] = import_react19.default.useState("");
4172
+ const [internalActiveId, setInternalActiveId] = import_react19.default.useState("home");
3848
4173
  const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
3849
4174
  const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
3850
4175
  const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
@@ -3867,14 +4192,14 @@ var HomePageTemplate = import_react16.default.forwardRef(
3867
4192
  if (activeIdProp === void 0) setInternalActiveId(id);
3868
4193
  onSelect?.(id);
3869
4194
  };
3870
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4195
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3871
4196
  "div",
3872
4197
  {
3873
4198
  ref,
3874
4199
  className: ["flex w-full", className].filter(Boolean).join(" "),
3875
4200
  style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
3876
4201
  children: [
3877
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4202
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3878
4203
  AppSidebar,
3879
4204
  {
3880
4205
  workspaceName: userName,
@@ -3893,14 +4218,14 @@ var HomePageTemplate = import_react16.default.forwardRef(
3893
4218
  style: { height: "100%" }
3894
4219
  }
3895
4220
  ) }),
3896
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4221
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3897
4222
  "main",
3898
4223
  {
3899
4224
  className: "flex-1 relative flex flex-col overflow-hidden",
3900
4225
  style: { height: "100%" },
3901
4226
  "aria-label": "Home canvas",
3902
4227
  children: [
3903
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4228
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3904
4229
  "div",
3905
4230
  {
3906
4231
  "aria-hidden": "true",
@@ -3908,9 +4233,9 @@ var HomePageTemplate = import_react16.default.forwardRef(
3908
4233
  style: { background: GRADIENT_BG }
3909
4234
  }
3910
4235
  ),
3911
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
3912
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-sm", children: [
3913
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4236
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4237
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-sm", children: [
4238
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3914
4239
  AppSidebarMobile,
3915
4240
  {
3916
4241
  brandName: "Atoms",
@@ -3927,12 +4252,12 @@ var HomePageTemplate = import_react16.default.forwardRef(
3927
4252
  onDarkModeToggle
3928
4253
  }
3929
4254
  ),
3930
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-xs", children: [
3931
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LogoIcon3, {}),
3932
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4255
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-xs", children: [
4256
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(LogoIcon3, {}),
4257
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
3933
4258
  ] })
3934
4259
  ] }),
3935
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4260
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3936
4261
  "span",
3937
4262
  {
3938
4263
  className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
@@ -3942,8 +4267,8 @@ var HomePageTemplate = import_react16.default.forwardRef(
3942
4267
  }
3943
4268
  )
3944
4269
  ] }),
3945
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
3946
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4270
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
4271
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3947
4272
  Button,
3948
4273
  {
3949
4274
  variant: "secondary",
@@ -3951,13 +4276,13 @@ var HomePageTemplate = import_react16.default.forwardRef(
3951
4276
  "aria-label": "New design system",
3952
4277
  className: "!rounded-full flex items-center gap-xs",
3953
4278
  children: [
3954
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SparkleIcon, {}),
4279
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SparkleIcon, {}),
3955
4280
  "New design system"
3956
4281
  ]
3957
4282
  }
3958
4283
  ),
3959
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "text-center flex flex-col gap-sm", children: [
3960
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
4284
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "text-center flex flex-col gap-sm", children: [
4285
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3961
4286
  "h1",
3962
4287
  {
3963
4288
  className: "text-ink",
@@ -3970,12 +4295,12 @@ var HomePageTemplate = import_react16.default.forwardRef(
3970
4295
  },
3971
4296
  children: [
3972
4297
  "What atom should we",
3973
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("br", {}),
4298
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("br", {}),
3974
4299
  "build?"
3975
4300
  ]
3976
4301
  }
3977
4302
  ),
3978
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4303
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3979
4304
  "p",
3980
4305
  {
3981
4306
  className: "text-muted text-body-sm md:text-body-md",
@@ -3984,7 +4309,7 @@ var HomePageTemplate = import_react16.default.forwardRef(
3984
4309
  }
3985
4310
  )
3986
4311
  ] }),
3987
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4312
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3988
4313
  PromptInputBar,
3989
4314
  {
3990
4315
  placeholder: "Describe an atom or design token to create...",
@@ -4000,13 +4325,13 @@ var HomePageTemplate = import_react16.default.forwardRef(
4000
4325
  onModelChange
4001
4326
  }
4002
4327
  ) }),
4003
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
4328
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4004
4329
  "div",
4005
4330
  {
4006
4331
  className: "flex flex-wrap justify-center gap-sm",
4007
4332
  role: "list",
4008
4333
  "aria-label": "Suggested prompts",
4009
- children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4334
+ children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4010
4335
  }
4011
4336
  )
4012
4337
  ] }) })
@@ -4020,154 +4345,45 @@ var HomePageTemplate = import_react16.default.forwardRef(
4020
4345
  );
4021
4346
  HomePageTemplate.displayName = "HomePageTemplate";
4022
4347
 
4023
- // virtual-pkg:src/atoms/Modal/Modal.tsx
4024
- var import_react17 = __toESM(require("react"));
4025
- var import_jsx_runtime17 = require("react/jsx-runtime");
4026
- var sizeMap = {
4027
- sm: "max-w-sm",
4028
- md: "max-w-lg",
4029
- lg: "max-w-2xl"
4030
- };
4031
- var Modal = import_react17.default.forwardRef(
4032
- ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
4033
- const [mounted, setMounted] = (0, import_react17.useState)(false);
4034
- const [visible, setVisible] = (0, import_react17.useState)(false);
4035
- const overlayRef = (0, import_react17.useRef)(null);
4036
- (0, import_react17.useEffect)(() => {
4037
- if (isOpen) {
4038
- setMounted(true);
4039
- const raf = requestAnimationFrame(() => {
4040
- requestAnimationFrame(() => setVisible(true));
4041
- });
4042
- return () => cancelAnimationFrame(raf);
4043
- } else {
4044
- setVisible(false);
4045
- const timer = setTimeout(() => setMounted(false), 250);
4046
- return () => clearTimeout(timer);
4047
- }
4048
- }, [isOpen]);
4049
- (0, import_react17.useEffect)(() => {
4050
- if (!mounted) return;
4051
- const handleKey = (e) => {
4052
- if (e.key === "Escape") onClose();
4053
- };
4054
- document.addEventListener("keydown", handleKey);
4055
- return () => document.removeEventListener("keydown", handleKey);
4056
- }, [mounted, onClose]);
4057
- if (!mounted) return null;
4058
- const handleBackdropClick = (e) => {
4059
- if (e.target === overlayRef.current) onClose();
4060
- };
4061
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4062
- "div",
4063
- {
4064
- ref: overlayRef,
4065
- role: "dialog",
4066
- "aria-modal": "true",
4067
- "aria-labelledby": title ? "modal-title" : void 0,
4068
- onClick: handleBackdropClick,
4069
- className: [
4070
- "fixed inset-0 flex items-center justify-center p-base",
4071
- "bg-[var(--color-scrim)]/50",
4072
- "transition-opacity duration-250 ease-in-out",
4073
- visible ? "opacity-100" : "opacity-0"
4074
- ].join(" "),
4075
- style: { zIndex: "var(--z-modal, 1000)" },
4076
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4077
- "div",
4078
- {
4079
- ref,
4080
- className: [
4081
- "relative w-full bg-canvas rounded-lg",
4082
- "shadow-[0_8px_40px_0_rgba(0,0,0,0.18)]",
4083
- "flex flex-col overflow-hidden",
4084
- sizeMap[size],
4085
- "transition-all duration-250 ease-in-out",
4086
- visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
4087
- ].join(" "),
4088
- children: [
4089
- title && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
4090
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
4091
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4092
- Button,
4093
- {
4094
- variant: "ghost",
4095
- size: "sm",
4096
- "aria-label": "Close modal",
4097
- onClick: onClose,
4098
- className: "!px-xs !py-xs",
4099
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4100
- "svg",
4101
- {
4102
- xmlns: "http://www.w3.org/2000/svg",
4103
- width: "16",
4104
- height: "16",
4105
- viewBox: "0 0 24 24",
4106
- fill: "none",
4107
- stroke: "currentColor",
4108
- strokeWidth: "2",
4109
- strokeLinecap: "round",
4110
- strokeLinejoin: "round",
4111
- "aria-hidden": "true",
4112
- children: [
4113
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
4114
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
4115
- ]
4116
- }
4117
- )
4118
- }
4119
- )
4120
- ] }),
4121
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
4122
- footer && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
4123
- ]
4124
- }
4125
- )
4126
- }
4127
- );
4128
- }
4129
- );
4130
- Modal.displayName = "Modal";
4131
-
4132
4348
  // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
4133
- var import_react18 = __toESM(require("react"));
4134
- var import_jsx_runtime18 = require("react/jsx-runtime");
4135
- var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4136
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4137
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M8 21h8M12 17v4" })
4349
+ var import_react20 = __toESM(require("react"));
4350
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4351
+ var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4352
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4353
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M8 21h8M12 17v4" })
4138
4354
  ] });
4139
- var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4140
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
4141
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M9 3v18" })
4355
+ var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4356
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
4357
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M9 3v18" })
4142
4358
  ] });
4143
- var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4144
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4145
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4359
+ var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4360
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4361
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4146
4362
  ] });
4147
- var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4148
- var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4149
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4150
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M12 8v4l3 3" }),
4151
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4363
+ var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4364
+ var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4365
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4366
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M12 8v4l3 3" }),
4367
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4152
4368
  ] });
4153
- var MoonIcon4 = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4154
- var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4155
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("polyline", { points: "15 3 21 3 21 9" }),
4156
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("polyline", { points: "9 21 3 21 3 15" }),
4157
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4158
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4369
+ var MoonIcon4 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4370
+ var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4371
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("polyline", { points: "15 3 21 3 21 9" }),
4372
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("polyline", { points: "9 21 3 21 3 15" }),
4373
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4374
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4159
4375
  ] });
4160
- var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4161
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
4162
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
4163
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
4376
+ var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4377
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
4378
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
4379
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
4164
4380
  ] });
4165
4381
  var VIEWPORT_OPTIONS = [
4166
4382
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4167
4383
  { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
4168
4384
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4169
4385
  ];
4170
- var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4386
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4171
4387
  Button,
4172
4388
  {
4173
4389
  variant: active ? "primary" : "ghost",
@@ -4179,7 +4395,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0,
4179
4395
  children
4180
4396
  }
4181
4397
  );
4182
- var PreviewToolbar = import_react18.default.forwardRef(
4398
+ var PreviewToolbar = import_react20.default.forwardRef(
4183
4399
  ({
4184
4400
  viewport = "desktop",
4185
4401
  onViewportChange,
@@ -4194,7 +4410,7 @@ var PreviewToolbar = import_react18.default.forwardRef(
4194
4410
  kindLabel = "ATOM",
4195
4411
  onOverflow,
4196
4412
  className = ""
4197
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4413
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4198
4414
  "div",
4199
4415
  {
4200
4416
  ref,
@@ -4208,24 +4424,24 @@ var PreviewToolbar = import_react18.default.forwardRef(
4208
4424
  className
4209
4425
  ].filter(Boolean).join(" "),
4210
4426
  children: [
4211
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4427
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4212
4428
  "div",
4213
4429
  {
4214
4430
  role: "group",
4215
4431
  "aria-label": "Viewport size",
4216
4432
  className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
4217
4433
  children: [
4218
- VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4434
+ VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4219
4435
  ViewportBtn,
4220
4436
  {
4221
4437
  label,
4222
4438
  active: !expanded && viewport === id,
4223
4439
  onClick: () => onViewportChange?.(id),
4224
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, {})
4440
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, {})
4225
4441
  },
4226
4442
  id
4227
4443
  )),
4228
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4444
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4229
4445
  Button,
4230
4446
  {
4231
4447
  variant: expanded ? "primary" : "ghost",
@@ -4237,14 +4453,14 @@ var PreviewToolbar = import_react18.default.forwardRef(
4237
4453
  "!w-8 !h-8 !p-0 rounded-sm shrink-0",
4238
4454
  expanded ? "" : "text-muted"
4239
4455
  ].join(" "),
4240
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ExpandIcon, {})
4456
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandIcon, {})
4241
4457
  }
4242
4458
  )
4243
4459
  ]
4244
4460
  }
4245
4461
  ),
4246
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
4247
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4462
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
4463
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4248
4464
  Button,
4249
4465
  {
4250
4466
  variant: inspecting ? "primary" : "secondary",
@@ -4253,12 +4469,12 @@ var PreviewToolbar = import_react18.default.forwardRef(
4253
4469
  onClick: onInspectTokens,
4254
4470
  className: "gap-xs rounded-xl",
4255
4471
  children: [
4256
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InspectIcon, {}),
4472
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InspectIcon, {}),
4257
4473
  inspecting ? "Exit inspect" : "Inspect tokens"
4258
4474
  ]
4259
4475
  }
4260
4476
  ),
4261
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4477
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4262
4478
  Button,
4263
4479
  {
4264
4480
  variant: darkMode ? "primary" : "secondary",
@@ -4267,12 +4483,12 @@ var PreviewToolbar = import_react18.default.forwardRef(
4267
4483
  onClick: onDarkToggle,
4268
4484
  className: "gap-xs rounded-xl",
4269
4485
  children: [
4270
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MoonIcon4, {}),
4486
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MoonIcon4, {}),
4271
4487
  "Dark"
4272
4488
  ]
4273
4489
  }
4274
4490
  ),
4275
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4491
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4276
4492
  Button,
4277
4493
  {
4278
4494
  variant: "secondary",
@@ -4280,12 +4496,12 @@ var PreviewToolbar = import_react18.default.forwardRef(
4280
4496
  onClick: onFullscreen,
4281
4497
  className: "gap-xs rounded-xl",
4282
4498
  children: [
4283
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FullscreenIcon, {}),
4499
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FullscreenIcon, {}),
4284
4500
  "Fullscreen"
4285
4501
  ]
4286
4502
  }
4287
4503
  ),
4288
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4504
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4289
4505
  Chip,
4290
4506
  {
4291
4507
  label: modelLabel ?? "",
@@ -4294,7 +4510,7 @@ var PreviewToolbar = import_react18.default.forwardRef(
4294
4510
  className: "border-primary text-primary bg-canvas cursor-default select-none"
4295
4511
  }
4296
4512
  ),
4297
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4513
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4298
4514
  Chip,
4299
4515
  {
4300
4516
  label: kindLabel ?? "",
@@ -4303,7 +4519,7 @@ var PreviewToolbar = import_react18.default.forwardRef(
4303
4519
  className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
4304
4520
  }
4305
4521
  ),
4306
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4522
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4307
4523
  Button,
4308
4524
  {
4309
4525
  variant: "ghost",
@@ -4311,7 +4527,7 @@ var PreviewToolbar = import_react18.default.forwardRef(
4311
4527
  "aria-label": "More options",
4312
4528
  onClick: onOverflow,
4313
4529
  className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
4314
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DotsIcon, {})
4530
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DotsIcon, {})
4315
4531
  }
4316
4532
  )
4317
4533
  ] })
@@ -4321,60 +4537,248 @@ var PreviewToolbar = import_react18.default.forwardRef(
4321
4537
  );
4322
4538
  PreviewToolbar.displayName = "PreviewToolbar";
4323
4539
 
4324
- // virtual-pkg:src/atoms/Typography/Typography.tsx
4325
- var import_react19 = __toESM(require("react"));
4326
- var import_jsx_runtime19 = require("react/jsx-runtime");
4327
- var roleTagMap = {
4328
- "display-lg": "h1",
4329
- "heading-lg": "h2",
4330
- "heading-md": "h3",
4331
- "heading-sm": "h4",
4332
- "body-lg": "p",
4333
- "body-md": "p",
4334
- "body-sm": "p",
4335
- caption: "span"
4336
- };
4337
- var roleClassMap = {
4338
- "display-lg": "text-display-lg",
4339
- "heading-lg": "text-heading-lg",
4340
- "heading-md": "text-heading-md",
4341
- "heading-sm": "text-heading-sm",
4342
- "body-lg": "text-body-lg",
4343
- "body-md": "text-body-md",
4344
- "body-sm": "text-body-sm",
4345
- caption: "text-caption"
4346
- };
4347
- var colorClassMap = {
4348
- ink: "text-ink",
4349
- body: "text-body",
4350
- muted: "text-muted",
4351
- "muted-soft": "text-muted-soft",
4352
- primary: "text-primary",
4353
- "semantic-error": "text-semantic-error",
4354
- "semantic-success": "text-semantic-success",
4355
- "semantic-warning": "text-semantic-warning",
4356
- "on-primary": "text-on-primary"
4357
- };
4358
- var Typography = import_react19.default.forwardRef(
4540
+ // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
4541
+ var import_react21 = __toESM(require("react"));
4542
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4543
+ var GlobeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4544
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4545
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M3 12h18" }),
4546
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
4547
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
4548
+ ] });
4549
+ var LinkIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4550
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4551
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4552
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4553
+ ] });
4554
+ var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
4555
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
4556
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "7.5", r: "1.15" }),
4557
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
4558
+ ] });
4559
+ var CheckCircleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4560
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4561
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
4562
+ ] });
4563
+ var LockIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4564
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
4565
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
4566
+ ] });
4567
+ var RefreshIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4568
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M4 4v5h5" }),
4569
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M20 20v-5h-5" }),
4570
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
4571
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
4572
+ ] });
4573
+ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4574
+ "svg",
4575
+ {
4576
+ viewBox: "0 0 24 24",
4577
+ width: "14",
4578
+ height: "14",
4579
+ fill: "none",
4580
+ stroke: "currentColor",
4581
+ strokeWidth: "2",
4582
+ strokeLinecap: "round",
4583
+ strokeLinejoin: "round",
4584
+ "aria-hidden": "true",
4585
+ className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
4586
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M9 6l6 6-6 6" })
4587
+ }
4588
+ );
4589
+ function bumpMinor(version) {
4590
+ const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
4591
+ const [major = 0, minor = 0] = parts;
4592
+ return `${major}.${minor + 1}.0`;
4593
+ }
4594
+ var PublishModal = import_react21.default.forwardRef(
4359
4595
  ({
4360
- role = "body-md",
4361
- color = "ink",
4362
- as,
4363
- truncate = false,
4364
- uppercase = false,
4365
- className = "",
4366
- children,
4367
- ...rest
4596
+ isOpen,
4597
+ onClose,
4598
+ onPublish,
4599
+ packageName = "@plasma/vibedesign",
4600
+ currentVersion = "1.10.9",
4601
+ defaultNextVersion,
4602
+ defaultTarget = "production"
4368
4603
  }, ref) => {
4369
- const Tag = as ?? roleTagMap[role];
4370
- const classes = [
4371
- roleClassMap[role],
4372
- colorClassMap[color],
4373
- truncate ? "truncate" : "",
4374
- uppercase ? "uppercase tracking-wide" : "",
4375
- className
4376
- ].filter(Boolean).join(" ");
4377
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tag, { ref, className: classes, ...rest, children });
4604
+ const [target, setTarget] = (0, import_react21.useState)(defaultTarget);
4605
+ const [nextVersion, setNextVersion] = (0, import_react21.useState)(
4606
+ defaultNextVersion ?? bumpMinor(currentVersion)
4607
+ );
4608
+ const [notesOpen, setNotesOpen] = (0, import_react21.useState)(false);
4609
+ const [notes, setNotes] = (0, import_react21.useState)("");
4610
+ const isProduction = target === "production";
4611
+ const summaryItems = isProduction ? [
4612
+ { title: "Package validated", desc: "All required fields are valid." },
4613
+ { title: "No breaking changes", desc: "Compatible with previous versions." },
4614
+ { title: "Access", desc: "You have publish access to this package." }
4615
+ ] : [
4616
+ { title: "Package built", desc: "Local build artifacts are up to date." },
4617
+ { title: "Link target resolved", desc: "A local npm link target was found." },
4618
+ { title: "No global conflicts", desc: "No other project links this package name." }
4619
+ ];
4620
+ const noticeText = isProduction ? "Publishing to npm registry makes your package publicly available to the world. Make sure you're ready to release this version." : "Local publish creates an npm link only visible on this machine, for testing and internal use before a real release.";
4621
+ const handlePublish = () => onPublish?.(target, nextVersion);
4622
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4623
+ Modal,
4624
+ {
4625
+ ref,
4626
+ isOpen,
4627
+ onClose,
4628
+ title: "Publish package",
4629
+ size: "xl",
4630
+ footer: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex w-full items-center justify-end gap-sm", children: [
4631
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
4632
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "primary", onClick: handlePublish, children: isProduction ? "Publish to npm registry" : "Publish locally (npm link)" })
4633
+ ] }),
4634
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full space-y-lg", children: [
4635
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
4636
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4637
+ "div",
4638
+ {
4639
+ role: "tablist",
4640
+ "aria-label": "Publish target",
4641
+ className: "flex items-center gap-lg border-b border-hairline",
4642
+ children: [
4643
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4644
+ Button,
4645
+ {
4646
+ type: "button",
4647
+ role: "tab",
4648
+ "aria-selected": isProduction,
4649
+ variant: "ghost",
4650
+ size: "sm",
4651
+ onClick: () => setTarget("production"),
4652
+ className: [
4653
+ "!rounded-none border-b-2 -mb-px",
4654
+ isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4655
+ ].join(" "),
4656
+ children: [
4657
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(GlobeIcon, {}),
4658
+ "Production (npm registry)"
4659
+ ]
4660
+ }
4661
+ ),
4662
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4663
+ Button,
4664
+ {
4665
+ type: "button",
4666
+ role: "tab",
4667
+ "aria-selected": !isProduction,
4668
+ variant: "ghost",
4669
+ size: "sm",
4670
+ onClick: () => setTarget("local"),
4671
+ className: [
4672
+ "!rounded-none border-b-2 -mb-px",
4673
+ !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4674
+ ].join(" "),
4675
+ children: [
4676
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkIcon2, {}),
4677
+ "Local (npm link)"
4678
+ ]
4679
+ }
4680
+ )
4681
+ ]
4682
+ }
4683
+ ),
4684
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
4685
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4686
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
4687
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4688
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
4689
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
4690
+ ] }),
4691
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4692
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
4693
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-xs", children: [
4694
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
4695
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
4696
+ ] })
4697
+ ] }),
4698
+ isProduction ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4699
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
4700
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-xs", children: [
4701
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4702
+ Input,
4703
+ {
4704
+ "aria-label": "Next version",
4705
+ value: nextVersion,
4706
+ onChange: (e) => setNextVersion(e.target.value),
4707
+ fullWidth: true
4708
+ }
4709
+ ),
4710
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4711
+ Button,
4712
+ {
4713
+ variant: "secondary",
4714
+ size: "md",
4715
+ "aria-label": "Reset to suggested version",
4716
+ onClick: () => setNextVersion(bumpMinor(currentVersion)),
4717
+ className: "!px-sm",
4718
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RefreshIcon, {})
4719
+ }
4720
+ )
4721
+ ] })
4722
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4723
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
4724
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
4725
+ "npm link ",
4726
+ packageName
4727
+ ] })
4728
+ ] }),
4729
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "border border-hairline rounded-sm", children: [
4730
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4731
+ Button,
4732
+ {
4733
+ type: "button",
4734
+ variant: "ghost",
4735
+ size: "sm",
4736
+ onClick: () => setNotesOpen((v) => !v),
4737
+ "aria-expanded": notesOpen,
4738
+ className: "w-full !justify-start !rounded-none gap-xs text-body",
4739
+ children: [
4740
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronIcon3, { open: notesOpen }),
4741
+ "Release notes (optional)"
4742
+ ]
4743
+ }
4744
+ ),
4745
+ notesOpen && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4746
+ "textarea",
4747
+ {
4748
+ value: notes,
4749
+ onChange: (e) => setNotes(e.target.value),
4750
+ placeholder: "What changed in this release?",
4751
+ rows: 3,
4752
+ className: "w-full resize-none rounded-sm border border-hairline bg-surface px-sm py-xs text-body-sm text-ink placeholder:text-muted-soft outline-none focus:ring-2 focus:ring-primary-focus/20 focus:border-primary-focus"
4753
+ }
4754
+ ) })
4755
+ ] })
4756
+ ] }),
4757
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4758
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
4759
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
4760
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InfoIcon, {}) }),
4761
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
4762
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
4763
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
4764
+ ] })
4765
+ ] }),
4766
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-start gap-sm", children: [
4767
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckCircleIcon, {}) }),
4768
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
4769
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
4770
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-muted", children: item.desc })
4771
+ ] })
4772
+ ] }, item.title)) })
4773
+ ] })
4774
+ ] }),
4775
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
4776
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LockIcon, {}) }),
4777
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-body", children: noticeText })
4778
+ ] })
4779
+ ] })
4780
+ }
4781
+ );
4378
4782
  }
4379
4783
  );
4380
- Typography.displayName = "Typography";
4784
+ PublishModal.displayName = "PublishModal";