@designa8/vibedesign-v6 1.12.17 → 1.15.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.js CHANGED
@@ -1595,6 +1595,7 @@ var COLLAPSE_DURATION = 250;
1595
1595
  var COLLAPSED_RAIL_WIDTH = 12;
1596
1596
  var PANEL_GAP_RIGHT = CURVE_R;
1597
1597
  var MOBILE_BREAKPOINT = 768;
1598
+ var FALLBACK_HEIGHT = 640;
1598
1599
  function useIsMobile() {
1599
1600
  const [mobile, setMobile] = React7.useState(
1600
1601
  () => typeof window !== "undefined" && window.innerWidth < MOBILE_BREAKPOINT
@@ -1772,7 +1773,7 @@ var AvatarNav = ({ initials, onBackToProjects, onHome }) => {
1772
1773
  {
1773
1774
  role: "menu",
1774
1775
  "aria-label": "Navigation",
1775
- className: "absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs",
1776
+ className: "absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs overflow-hidden",
1776
1777
  style: { minWidth: 200, zIndex: 1e3, top: "100%" },
1777
1778
  children: [
1778
1779
  /* @__PURE__ */ jsxs7(
@@ -1974,9 +1975,11 @@ var AppLayout = React7.forwardRef(
1974
1975
  avatarInitials = "A",
1975
1976
  defaultMobilePanel = "chat",
1976
1977
  hideProjectName = false,
1978
+ fillViewport = true,
1977
1979
  className
1978
1980
  }, ref) => {
1979
1981
  const isMobile = useIsMobile();
1982
+ const rootHeight = fillViewport ? "100vh" : `${FALLBACK_HEIGHT}px`;
1980
1983
  const [activeTab, setActiveTab] = React7.useState(rightPanelActiveTab);
1981
1984
  const [chatWidth, setChatWidth] = React7.useState(defaultChatWidth);
1982
1985
  const [chatCollapsed, setChatCollapsed] = React7.useState(false);
@@ -2042,7 +2045,7 @@ var AppLayout = React7.forwardRef(
2042
2045
  {
2043
2046
  ref,
2044
2047
  className: ["w-full flex flex-col overflow-hidden bg-canvas", className].filter(Boolean).join(" "),
2045
- style: { height: "100vh" },
2048
+ style: { height: rootHeight },
2046
2049
  children: [
2047
2050
  /* @__PURE__ */ jsx7(
2048
2051
  MobileTopBar,
@@ -2104,7 +2107,7 @@ var AppLayout = React7.forwardRef(
2104
2107
  {
2105
2108
  ref,
2106
2109
  className: ["w-full flex flex-col overflow-hidden", className].filter(Boolean).join(" "),
2107
- style: { height: "100vh", background: "var(--color-surface-soft)" },
2110
+ style: { height: rootHeight, background: "var(--color-surface-soft)" },
2108
2111
  children: [
2109
2112
  /* @__PURE__ */ jsxs7(
2110
2113
  "div",
@@ -3526,9 +3529,391 @@ var Chip = React13.forwardRef(
3526
3529
  );
3527
3530
  Chip.displayName = "Chip";
3528
3531
 
3532
+ // virtual-pkg:src/atoms/CodeEditor/CodeEditor.tsx
3533
+ import React15 from "react";
3534
+
3535
+ // virtual-pkg:src/atoms/Icon/Icon.tsx
3536
+ import * as React14 from "react";
3537
+
3538
+ // virtual-pkg:src/atoms/Icon/icons.data.ts
3539
+ var ICON_REGISTRY = {
3540
+ "close": { viewBox: "0 0 24 24", paths: ["M18 6 6 18", "M6 6l12 12"] },
3541
+ "chevron-down": { viewBox: "0 0 24 24", paths: ["M6 9l6 6 6-6"] },
3542
+ "copy-clipboard": { viewBox: "0 0 24 24", paths: ["M9 9h10v10H9z", "M5 15V5h10"] },
3543
+ "check-checkmark": { viewBox: "0 0 24 24", paths: ["M5 13l4 4L19 7"] },
3544
+ "grid": { viewBox: "0 0 24 24", paths: ["M4 4h6v6H4z", "M14 4h6v6h-6z", "M4 14h6v6H4z", "M14 14h6v6h-6z"] },
3545
+ "atom": { viewBox: "0 0 24 24", paths: ["M12 12m-1.5 0a1.5 1.5 0 1 0 3 0a1.5 1.5 0 1 0 -3 0", "M12 3.5c4 0 8 3.6 8 8.5s-4 8.5-8 8.5", "M12 3.5c-4 1.8-8 5.6-8 8.5s4 6.7 8 8.5", "M4 8.5c1.8-4 5.6-5 8-5s6.2 1 8 5"] },
3546
+ "layers": { viewBox: "0 0 24 24", paths: ["M12 3l8 4.5-8 4.5-8-4.5 8-4.5z", "M4 12l8 4.5 8-4.5", "M4 16.5l8 4.5 8-4.5"] },
3547
+ "star": { viewBox: "0 0 24 24", paths: ["M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6-5.4-3-5.4 3 1.2-6-4.5-4.2 6.1-.7L12 3z"] },
3548
+ "archive": { viewBox: "0 0 24 24", paths: ["M3 4h18v4H3z", "M4.5 8v11a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1V8", "M10 12.5h4"] }
3549
+ };
3550
+
3551
+ // virtual-pkg:src/atoms/Icon/Icon.tsx
3552
+ import { jsx as jsx14 } from "react/jsx-runtime";
3553
+ var Icon = React14.forwardRef(
3554
+ ({ name, size = 20, strokeWidth = 2, className, ...props }, ref) => {
3555
+ const glyph = ICON_REGISTRY[name];
3556
+ return /* @__PURE__ */ jsx14(
3557
+ "svg",
3558
+ {
3559
+ ref,
3560
+ viewBox: glyph.viewBox,
3561
+ width: size,
3562
+ height: size,
3563
+ fill: "none",
3564
+ stroke: "currentColor",
3565
+ strokeWidth,
3566
+ strokeLinecap: "round",
3567
+ strokeLinejoin: "round",
3568
+ className,
3569
+ "aria-hidden": "true",
3570
+ ...props,
3571
+ children: glyph.paths.map((d, i) => /* @__PURE__ */ jsx14("path", { d }, i))
3572
+ }
3573
+ );
3574
+ }
3575
+ );
3576
+ Icon.displayName = "Icon";
3577
+
3578
+ // virtual-pkg:src/atoms/CodeEditor/CodeEditor.tsx
3579
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
3580
+ var LANG_LABEL = {
3581
+ tsx: "TSX",
3582
+ ts: "TS",
3583
+ css: "CSS",
3584
+ json: "JSON",
3585
+ md: "MD",
3586
+ txt: "TXT"
3587
+ };
3588
+ function LangBadge({ language }) {
3589
+ return /* @__PURE__ */ jsx15("span", { className: "inline-flex h-lg min-w-[1.6rem] items-center justify-center rounded-xs bg-surface-strong px-xxs text-caption text-muted", children: LANG_LABEL[language] });
3590
+ }
3591
+ var SYNTAX_CLASS = {
3592
+ plain: "text-ink",
3593
+ comment: "text-syntax-comment italic",
3594
+ string: "text-syntax-string",
3595
+ number: "text-syntax-number",
3596
+ keyword: "text-syntax-keyword",
3597
+ function: "text-syntax-function",
3598
+ type: "text-syntax-type",
3599
+ tag: "text-syntax-tag",
3600
+ property: "text-syntax-property",
3601
+ punctuation: "text-muted"
3602
+ };
3603
+ var JS_KEYWORDS = /* @__PURE__ */ new Set([
3604
+ "import",
3605
+ "export",
3606
+ "default",
3607
+ "from",
3608
+ "const",
3609
+ "let",
3610
+ "var",
3611
+ "function",
3612
+ "return",
3613
+ "interface",
3614
+ "type",
3615
+ "extends",
3616
+ "implements",
3617
+ "class",
3618
+ "new",
3619
+ "this",
3620
+ "if",
3621
+ "else",
3622
+ "for",
3623
+ "while",
3624
+ "switch",
3625
+ "case",
3626
+ "break",
3627
+ "continue",
3628
+ "true",
3629
+ "false",
3630
+ "null",
3631
+ "undefined",
3632
+ "void",
3633
+ "async",
3634
+ "await",
3635
+ "of",
3636
+ "in",
3637
+ "as",
3638
+ "public",
3639
+ "private",
3640
+ "protected",
3641
+ "readonly",
3642
+ "static",
3643
+ "enum",
3644
+ "namespace",
3645
+ "declare",
3646
+ "try",
3647
+ "catch",
3648
+ "finally",
3649
+ "throw",
3650
+ "yield",
3651
+ "typeof",
3652
+ "instanceof",
3653
+ "super"
3654
+ ]);
3655
+ var TS_TYPES = /* @__PURE__ */ new Set([
3656
+ "string",
3657
+ "number",
3658
+ "boolean",
3659
+ "any",
3660
+ "unknown",
3661
+ "never",
3662
+ "object",
3663
+ "React",
3664
+ "Record",
3665
+ "Partial",
3666
+ "Readonly",
3667
+ "Promise",
3668
+ "HTMLDivElement",
3669
+ "HTMLButtonElement"
3670
+ ]);
3671
+ var JS_TOKEN_RE = /(\/\/.*)|('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`)|(\b\d+(?:\.\d+)?\b)|(<\/?[A-Za-z][\w.]*)|([A-Za-z_$][\w$]*)/g;
3672
+ function tokenizeJs(line) {
3673
+ const tokens = [];
3674
+ let lastIndex = 0;
3675
+ let match;
3676
+ JS_TOKEN_RE.lastIndex = 0;
3677
+ while ((match = JS_TOKEN_RE.exec(line)) !== null) {
3678
+ if (match.index > lastIndex) {
3679
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3680
+ }
3681
+ if (match[1] !== void 0) {
3682
+ tokens.push({ text: match[1], type: "comment" });
3683
+ } else if (match[2] !== void 0) {
3684
+ tokens.push({ text: match[2], type: "string" });
3685
+ } else if (match[3] !== void 0) {
3686
+ tokens.push({ text: match[3], type: "number" });
3687
+ } else if (match[4] !== void 0) {
3688
+ tokens.push({ text: match[4], type: "tag" });
3689
+ } else if (match[5] !== void 0) {
3690
+ const word = match[5];
3691
+ const after = line.slice(JS_TOKEN_RE.lastIndex).match(/^\s*\(/);
3692
+ if (JS_KEYWORDS.has(word)) {
3693
+ tokens.push({ text: word, type: "keyword" });
3694
+ } else if (TS_TYPES.has(word)) {
3695
+ tokens.push({ text: word, type: "type" });
3696
+ } else if (after) {
3697
+ tokens.push({ text: word, type: "function" });
3698
+ } else {
3699
+ tokens.push({ text: word, type: "plain" });
3700
+ }
3701
+ }
3702
+ lastIndex = JS_TOKEN_RE.lastIndex;
3703
+ }
3704
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3705
+ return tokens;
3706
+ }
3707
+ var CSS_TOKEN_RE = /(\/\*[\s\S]*?\*\/)|('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*")|(@[a-zA-Z-]+)|(#[0-9a-fA-F]{3,8}\b)|(-?\d+\.?\d*(?:px|em|rem|%|deg|s|ms|vh|vw)?\b)|([a-zA-Z-]+)(?=\s*:)/g;
3708
+ function tokenizeCss(line) {
3709
+ const tokens = [];
3710
+ let lastIndex = 0;
3711
+ let match;
3712
+ CSS_TOKEN_RE.lastIndex = 0;
3713
+ while ((match = CSS_TOKEN_RE.exec(line)) !== null) {
3714
+ if (match.index > lastIndex) {
3715
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3716
+ }
3717
+ if (match[1] !== void 0) tokens.push({ text: match[1], type: "comment" });
3718
+ else if (match[2] !== void 0) tokens.push({ text: match[2], type: "string" });
3719
+ else if (match[3] !== void 0) tokens.push({ text: match[3], type: "keyword" });
3720
+ else if (match[4] !== void 0) tokens.push({ text: match[4], type: "number" });
3721
+ else if (match[5] !== void 0) tokens.push({ text: match[5], type: "number" });
3722
+ else if (match[6] !== void 0) tokens.push({ text: match[6], type: "property" });
3723
+ lastIndex = CSS_TOKEN_RE.lastIndex;
3724
+ }
3725
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3726
+ return tokens;
3727
+ }
3728
+ var JSON_TOKEN_RE = /("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?)|\b(true|false|null)\b/g;
3729
+ function tokenizeJson(line) {
3730
+ const tokens = [];
3731
+ let lastIndex = 0;
3732
+ let match;
3733
+ JSON_TOKEN_RE.lastIndex = 0;
3734
+ while ((match = JSON_TOKEN_RE.exec(line)) !== null) {
3735
+ if (match.index > lastIndex) {
3736
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3737
+ }
3738
+ if (match[1] !== void 0) {
3739
+ const hasColon = match[2] !== void 0;
3740
+ tokens.push({ text: match[1], type: hasColon ? "property" : "string" });
3741
+ if (hasColon) tokens.push({ text: match[2], type: "punctuation" });
3742
+ } else if (match[3] !== void 0) {
3743
+ tokens.push({ text: match[3], type: "number" });
3744
+ } else if (match[4] !== void 0) {
3745
+ tokens.push({ text: match[4], type: "keyword" });
3746
+ }
3747
+ lastIndex = JSON_TOKEN_RE.lastIndex;
3748
+ }
3749
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3750
+ return tokens;
3751
+ }
3752
+ var MD_TOKEN_RE = /(^#{1,6}\s.*)|(`[^`]*`)/g;
3753
+ function tokenizeMd(line) {
3754
+ const tokens = [];
3755
+ let lastIndex = 0;
3756
+ let match;
3757
+ MD_TOKEN_RE.lastIndex = 0;
3758
+ while ((match = MD_TOKEN_RE.exec(line)) !== null) {
3759
+ if (match.index > lastIndex) {
3760
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3761
+ }
3762
+ if (match[1] !== void 0) tokens.push({ text: match[1], type: "keyword" });
3763
+ else if (match[2] !== void 0) tokens.push({ text: match[2], type: "string" });
3764
+ lastIndex = MD_TOKEN_RE.lastIndex;
3765
+ }
3766
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3767
+ return tokens;
3768
+ }
3769
+ function tokenizeLine(line, language) {
3770
+ if (line.length === 0) return [{ text: " ", type: "plain" }];
3771
+ switch (language) {
3772
+ case "tsx":
3773
+ case "ts":
3774
+ return tokenizeJs(line);
3775
+ case "css":
3776
+ return tokenizeCss(line);
3777
+ case "json":
3778
+ return tokenizeJson(line);
3779
+ case "md":
3780
+ return tokenizeMd(line);
3781
+ default:
3782
+ return [{ text: line, type: "plain" }];
3783
+ }
3784
+ }
3785
+ var CodeEditor = React15.forwardRef(
3786
+ ({
3787
+ files,
3788
+ activeFile,
3789
+ onActiveFileChange,
3790
+ folderLabel = "atoms",
3791
+ pathPrefix,
3792
+ dark = false,
3793
+ readOnly = true,
3794
+ streamingFileNames = [],
3795
+ onChange,
3796
+ onCopy,
3797
+ className = ""
3798
+ }, ref) => {
3799
+ const [copied, setCopied] = React15.useState(false);
3800
+ const [openRoot, setOpenRoot] = React15.useState(true);
3801
+ const current = files.find((f) => f.name === activeFile) ?? files[0] ?? null;
3802
+ const streaming = current ? streamingFileNames.includes(current.name) : false;
3803
+ const path = [pathPrefix, current?.name].filter(Boolean).join(" / ");
3804
+ async function copy() {
3805
+ if (!current) return;
3806
+ try {
3807
+ await navigator.clipboard.writeText(current.source);
3808
+ } catch {
3809
+ }
3810
+ setCopied(true);
3811
+ window.setTimeout(() => setCopied(false), 1200);
3812
+ onCopy?.();
3813
+ }
3814
+ const lines = (current?.source ?? "").split("\n");
3815
+ const statusLabel = streaming ? "Writing" : readOnly ? "Read-only" : "Editing";
3816
+ return /* @__PURE__ */ jsxs14(
3817
+ "div",
3818
+ {
3819
+ ref,
3820
+ "data-theme": dark ? "dark" : void 0,
3821
+ className: ["flex w-full overflow-hidden rounded-lg border border-hairline bg-canvas text-ink", className].join(" "),
3822
+ children: [
3823
+ /* @__PURE__ */ jsxs14("aside", { className: "flex w-56 shrink-0 flex-col overflow-y-auto border-r border-hairline bg-canvas", children: [
3824
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-between px-lg py-md", children: /* @__PURE__ */ jsx15("span", { className: "text-caption font-weight-heading-sm uppercase tracking-widest text-muted-soft", children: "Files" }) }),
3825
+ /* @__PURE__ */ jsxs14("nav", { className: "flex flex-col gap-xxs px-sm pb-lg", children: [
3826
+ /* @__PURE__ */ jsxs14(
3827
+ Button,
3828
+ {
3829
+ type: "button",
3830
+ variant: "ghost",
3831
+ size: "sm",
3832
+ className: "w-full justify-start gap-xs px-sm py-xs text-body-sm text-muted",
3833
+ onClick: () => setOpenRoot((o) => !o),
3834
+ children: [
3835
+ /* @__PURE__ */ jsx15(
3836
+ Icon,
3837
+ {
3838
+ name: "chevron-down",
3839
+ className: ["h-3 w-3 shrink-0 transition-transform", openRoot ? "rotate-0" : "-rotate-90"].join(" ")
3840
+ }
3841
+ ),
3842
+ folderLabel
3843
+ ]
3844
+ }
3845
+ ),
3846
+ openRoot && files.map((f) => /* @__PURE__ */ jsxs14(
3847
+ Button,
3848
+ {
3849
+ type: "button",
3850
+ variant: "ghost",
3851
+ size: "sm",
3852
+ onClick: () => onActiveFileChange?.(f.name),
3853
+ "aria-current": f.name === current?.name ? "true" : void 0,
3854
+ className: [
3855
+ "w-full justify-start gap-sm py-xs pr-sm pl-lg text-body-sm",
3856
+ f.name === current?.name ? "bg-primary-disabled text-primary" : "text-body"
3857
+ ].join(" "),
3858
+ children: [
3859
+ /* @__PURE__ */ jsx15(LangBadge, { language: f.language }),
3860
+ /* @__PURE__ */ jsx15("span", { className: "truncate", children: f.name })
3861
+ ]
3862
+ },
3863
+ f.name
3864
+ ))
3865
+ ] })
3866
+ ] }),
3867
+ /* @__PURE__ */ jsxs14("div", { className: "flex min-w-0 flex-1 flex-col overflow-hidden bg-canvas", children: [
3868
+ /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between border-b border-hairline bg-surface-soft px-lg py-sm", children: [
3869
+ /* @__PURE__ */ jsxs14("div", { className: "flex min-w-0 items-center gap-sm font-mono text-caption text-muted", children: [
3870
+ current ? /* @__PURE__ */ jsx15(LangBadge, { language: current.language }) : null,
3871
+ /* @__PURE__ */ jsx15("span", { className: "truncate", children: path }),
3872
+ /* @__PURE__ */ jsx15("span", { className: "rounded-xs bg-surface-strong px-sm py-xxs text-caption font-weight-heading-sm uppercase tracking-wide text-muted", children: statusLabel })
3873
+ ] }),
3874
+ /* @__PURE__ */ jsxs14(
3875
+ Button,
3876
+ {
3877
+ type: "button",
3878
+ variant: "secondary",
3879
+ size: "sm",
3880
+ onClick: () => void copy(),
3881
+ disabled: !current || streaming,
3882
+ children: [
3883
+ /* @__PURE__ */ jsx15(Icon, { name: copied ? "check-checkmark" : "copy-clipboard", className: "h-3 w-3" }),
3884
+ copied ? "Copied" : "Copy"
3885
+ ]
3886
+ }
3887
+ )
3888
+ ] }),
3889
+ /* @__PURE__ */ jsx15("div", { className: "flex-1 overflow-auto bg-canvas", children: readOnly || streaming ? /* @__PURE__ */ jsx15("pre", { className: "m-0 p-0 text-body-sm leading-[1.55] text-ink", children: lines.map((line, i) => /* @__PURE__ */ jsxs14("div", { className: "flex", children: [
3890
+ /* @__PURE__ */ jsx15("span", { className: "select-none px-md text-right text-caption text-muted-soft", children: /* @__PURE__ */ jsx15("span", { className: "inline-block min-w-[2ch]", children: i + 1 }) }),
3891
+ /* @__PURE__ */ jsx15("span", { className: "flex-1 whitespace-pre pr-xl font-mono", children: current ? tokenizeLine(line, current.language).map((tok, ti) => /* @__PURE__ */ jsx15("span", { className: SYNTAX_CLASS[tok.type], children: tok.text }, ti)) : line || " " })
3892
+ ] }, i)) }) : /* @__PURE__ */ jsxs14("div", { className: "flex min-h-full", children: [
3893
+ /* @__PURE__ */ jsx15("div", { className: "select-none px-md py-sm text-right text-caption text-muted-soft", children: lines.map((_, i) => /* @__PURE__ */ jsx15("div", { children: i + 1 }, i)) }),
3894
+ /* @__PURE__ */ jsx15(
3895
+ "textarea",
3896
+ {
3897
+ className: "min-h-full flex-1 resize-none bg-transparent p-sm font-mono text-body-sm leading-[1.55] text-ink outline-none",
3898
+ value: current?.source ?? "",
3899
+ spellCheck: false,
3900
+ onChange: (e) => {
3901
+ if (current) onChange?.(current.name, e.target.value);
3902
+ }
3903
+ }
3904
+ )
3905
+ ] }) })
3906
+ ] })
3907
+ ]
3908
+ }
3909
+ );
3910
+ }
3911
+ );
3912
+ CodeEditor.displayName = "CodeEditor";
3913
+
3529
3914
  // virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
3530
- import React14 from "react";
3531
- import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
3915
+ import React16 from "react";
3916
+ import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
3532
3917
  var kindColors = {
3533
3918
  Atom: "bg-[var(--color-kind-atom-bg)] text-[var(--color-kind-atom-text)] border-[var(--color-kind-atom-border)]",
3534
3919
  Molecule: "bg-[var(--color-kind-molecule-bg)] text-[var(--color-kind-molecule-text)] border-[var(--color-kind-molecule-border)]",
@@ -3541,7 +3926,7 @@ var iconBg = {
3541
3926
  Organism: "bg-primary text-on-primary",
3542
3927
  Template: "bg-[var(--color-kind-template-bg)] text-[var(--color-kind-template-text)]"
3543
3928
  };
3544
- var ComponentCard = React14.forwardRef(
3929
+ var ComponentCard = React16.forwardRef(
3545
3930
  ({
3546
3931
  name,
3547
3932
  kind = "Organism",
@@ -3552,7 +3937,7 @@ var ComponentCard = React14.forwardRef(
3552
3937
  className,
3553
3938
  ...rest
3554
3939
  }, ref) => {
3555
- return /* @__PURE__ */ jsxs14(
3940
+ return /* @__PURE__ */ jsxs15(
3556
3941
  "div",
3557
3942
  {
3558
3943
  ref,
@@ -3567,7 +3952,7 @@ var ComponentCard = React14.forwardRef(
3567
3952
  ].filter(Boolean).join(" "),
3568
3953
  ...rest,
3569
3954
  children: [
3570
- /* @__PURE__ */ jsx14(
3955
+ /* @__PURE__ */ jsx16(
3571
3956
  "div",
3572
3957
  {
3573
3958
  className: [
@@ -3575,15 +3960,15 @@ var ComponentCard = React14.forwardRef(
3575
3960
  "w-full aspect-[4/3] overflow-hidden",
3576
3961
  thumbnailBg ?? "bg-surface-soft"
3577
3962
  ].join(" "),
3578
- children: thumbnailContent ?? /* @__PURE__ */ jsx14(DefaultThumbnail, { kind })
3963
+ children: thumbnailContent ?? /* @__PURE__ */ jsx16(DefaultThumbnail, { kind })
3579
3964
  }
3580
3965
  ),
3581
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
3582
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-xxs min-w-0", children: [
3583
- /* @__PURE__ */ jsx14("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
3584
- /* @__PURE__ */ jsx14("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
3966
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
3967
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-xxs min-w-0", children: [
3968
+ /* @__PURE__ */ jsx16("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
3969
+ /* @__PURE__ */ jsx16("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
3585
3970
  ] }),
3586
- /* @__PURE__ */ jsx14(
3971
+ /* @__PURE__ */ jsx16(
3587
3972
  "span",
3588
3973
  {
3589
3974
  className: [
@@ -3604,27 +3989,27 @@ var ComponentCard = React14.forwardRef(
3604
3989
  ComponentCard.displayName = "ComponentCard";
3605
3990
  function DefaultThumbnail({ kind }) {
3606
3991
  const icons = {
3607
- Atom: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3608
- /* @__PURE__ */ jsx14("circle", { cx: "12", cy: "12", r: "1" }),
3609
- /* @__PURE__ */ jsx14("path", { d: "M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z" }),
3610
- /* @__PURE__ */ jsx14("path", { d: "M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z" })
3992
+ Atom: /* @__PURE__ */ jsxs15("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3993
+ /* @__PURE__ */ jsx16("circle", { cx: "12", cy: "12", r: "1" }),
3994
+ /* @__PURE__ */ jsx16("path", { d: "M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z" }),
3995
+ /* @__PURE__ */ jsx16("path", { d: "M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z" })
3611
3996
  ] }),
3612
- Molecule: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3613
- /* @__PURE__ */ jsx14("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
3614
- /* @__PURE__ */ jsx14("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
3615
- /* @__PURE__ */ jsx14("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
3997
+ Molecule: /* @__PURE__ */ jsxs15("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3998
+ /* @__PURE__ */ jsx16("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
3999
+ /* @__PURE__ */ jsx16("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
4000
+ /* @__PURE__ */ jsx16("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
3616
4001
  ] }),
3617
- Organism: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3618
- /* @__PURE__ */ jsx14("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
3619
- /* @__PURE__ */ jsx14("path", { d: "M2 17l10 5 10-5" }),
3620
- /* @__PURE__ */ jsx14("path", { d: "M2 12l10 5 10-5" })
4002
+ Organism: /* @__PURE__ */ jsxs15("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4003
+ /* @__PURE__ */ jsx16("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
4004
+ /* @__PURE__ */ jsx16("path", { d: "M2 17l10 5 10-5" }),
4005
+ /* @__PURE__ */ jsx16("path", { d: "M2 12l10 5 10-5" })
3621
4006
  ] }),
3622
- Template: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3623
- /* @__PURE__ */ jsx14("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
3624
- /* @__PURE__ */ jsx14("path", { d: "M3 9h18M9 21V9" })
4007
+ Template: /* @__PURE__ */ jsxs15("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4008
+ /* @__PURE__ */ jsx16("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
4009
+ /* @__PURE__ */ jsx16("path", { d: "M3 9h18M9 21V9" })
3625
4010
  ] })
3626
4011
  };
3627
- return /* @__PURE__ */ jsx14(
4012
+ return /* @__PURE__ */ jsx16(
3628
4013
  "div",
3629
4014
  {
3630
4015
  className: [
@@ -3637,18 +4022,18 @@ function DefaultThumbnail({ kind }) {
3637
4022
  }
3638
4023
 
3639
4024
  // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3640
- import React17, { useState as useState3 } from "react";
4025
+ import React19, { useState as useState3 } from "react";
3641
4026
 
3642
4027
  // virtual-pkg:src/atoms/Modal/Modal.tsx
3643
- import React15, { useEffect, useRef, useState as useState2 } from "react";
3644
- import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
4028
+ import React17, { useEffect, useRef, useState as useState2 } from "react";
4029
+ import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
3645
4030
  var sizeMap = {
3646
4031
  sm: "max-w-sm",
3647
4032
  md: "max-w-lg",
3648
4033
  lg: "max-w-2xl",
3649
4034
  xl: "max-w-4xl"
3650
4035
  };
3651
- var Modal = React15.forwardRef(
4036
+ var Modal = React17.forwardRef(
3652
4037
  ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
3653
4038
  const [mounted, setMounted] = useState2(false);
3654
4039
  const [visible, setVisible] = useState2(false);
@@ -3678,7 +4063,7 @@ var Modal = React15.forwardRef(
3678
4063
  const handleBackdropClick = (e) => {
3679
4064
  if (e.target === overlayRef.current) onClose();
3680
4065
  };
3681
- return /* @__PURE__ */ jsx15(
4066
+ return /* @__PURE__ */ jsx17(
3682
4067
  "div",
3683
4068
  {
3684
4069
  ref: overlayRef,
@@ -3693,7 +4078,7 @@ var Modal = React15.forwardRef(
3693
4078
  visible ? "opacity-100" : "opacity-0"
3694
4079
  ].join(" "),
3695
4080
  style: { zIndex: "var(--z-modal, 1000)" },
3696
- children: /* @__PURE__ */ jsxs15(
4081
+ children: /* @__PURE__ */ jsxs16(
3697
4082
  "div",
3698
4083
  {
3699
4084
  ref,
@@ -3706,9 +4091,9 @@ var Modal = React15.forwardRef(
3706
4091
  visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
3707
4092
  ].join(" "),
3708
4093
  children: [
3709
- title && /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
3710
- /* @__PURE__ */ jsx15("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
3711
- /* @__PURE__ */ jsx15(
4094
+ title && /* @__PURE__ */ jsxs16("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
4095
+ /* @__PURE__ */ jsx17("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
4096
+ /* @__PURE__ */ jsx17(
3712
4097
  Button,
3713
4098
  {
3714
4099
  variant: "ghost",
@@ -3716,7 +4101,7 @@ var Modal = React15.forwardRef(
3716
4101
  "aria-label": "Close modal",
3717
4102
  onClick: onClose,
3718
4103
  className: "!px-xs !py-xs",
3719
- children: /* @__PURE__ */ jsxs15(
4104
+ children: /* @__PURE__ */ jsxs16(
3720
4105
  "svg",
3721
4106
  {
3722
4107
  xmlns: "http://www.w3.org/2000/svg",
@@ -3730,16 +4115,16 @@ var Modal = React15.forwardRef(
3730
4115
  strokeLinejoin: "round",
3731
4116
  "aria-hidden": "true",
3732
4117
  children: [
3733
- /* @__PURE__ */ jsx15("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3734
- /* @__PURE__ */ jsx15("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
4118
+ /* @__PURE__ */ jsx17("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
4119
+ /* @__PURE__ */ jsx17("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3735
4120
  ]
3736
4121
  }
3737
4122
  )
3738
4123
  }
3739
4124
  )
3740
4125
  ] }),
3741
- /* @__PURE__ */ jsx15("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
3742
- footer && /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
4126
+ /* @__PURE__ */ jsx17("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
4127
+ footer && /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
3743
4128
  ]
3744
4129
  }
3745
4130
  )
@@ -3750,8 +4135,8 @@ var Modal = React15.forwardRef(
3750
4135
  Modal.displayName = "Modal";
3751
4136
 
3752
4137
  // virtual-pkg:src/atoms/Typography/Typography.tsx
3753
- import React16 from "react";
3754
- import { jsx as jsx16 } from "react/jsx-runtime";
4138
+ import React18 from "react";
4139
+ import { jsx as jsx18 } from "react/jsx-runtime";
3755
4140
  var roleTagMap = {
3756
4141
  "display-lg": "h1",
3757
4142
  "heading-lg": "h2",
@@ -3783,7 +4168,7 @@ var colorClassMap = {
3783
4168
  "semantic-warning": "text-semantic-warning",
3784
4169
  "on-primary": "text-on-primary"
3785
4170
  };
3786
- var Typography = React16.forwardRef(
4171
+ var Typography = React18.forwardRef(
3787
4172
  ({
3788
4173
  role = "body-md",
3789
4174
  color = "ink",
@@ -3802,13 +4187,13 @@ var Typography = React16.forwardRef(
3802
4187
  uppercase ? "uppercase tracking-wide" : "",
3803
4188
  className
3804
4189
  ].filter(Boolean).join(" ");
3805
- return /* @__PURE__ */ jsx16(Tag, { ref, className: classes, ...rest, children });
4190
+ return /* @__PURE__ */ jsx18(Tag, { ref, className: classes, ...rest, children });
3806
4191
  }
3807
4192
  );
3808
4193
  Typography.displayName = "Typography";
3809
4194
 
3810
4195
  // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3811
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
4196
+ import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
3812
4197
  var defaultLines = [
3813
4198
  { text: "# Design System", tone: "heading" },
3814
4199
  { text: "" },
@@ -3837,7 +4222,7 @@ var defaultLines = [
3837
4222
  { text: "muted: {colors.muted}" },
3838
4223
  { text: "hairline: {colors.hairline}" }
3839
4224
  ];
3840
- var CloudIcon = () => /* @__PURE__ */ jsxs16(
4225
+ var CloudIcon = () => /* @__PURE__ */ jsxs17(
3841
4226
  "svg",
3842
4227
  {
3843
4228
  viewBox: "0 0 24 24",
@@ -3850,12 +4235,12 @@ var CloudIcon = () => /* @__PURE__ */ jsxs16(
3850
4235
  strokeLinejoin: "round",
3851
4236
  "aria-hidden": "true",
3852
4237
  children: [
3853
- /* @__PURE__ */ jsx17("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" }),
3854
- /* @__PURE__ */ jsx17("path", { d: "M8 19h9.5" })
4238
+ /* @__PURE__ */ jsx19("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" }),
4239
+ /* @__PURE__ */ jsx19("path", { d: "M8 19h9.5" })
3855
4240
  ]
3856
4241
  }
3857
4242
  );
3858
- var LinkIcon = () => /* @__PURE__ */ jsxs16(
4243
+ var LinkIcon = () => /* @__PURE__ */ jsxs17(
3859
4244
  "svg",
3860
4245
  {
3861
4246
  viewBox: "0 0 24 24",
@@ -3868,13 +4253,13 @@ var LinkIcon = () => /* @__PURE__ */ jsxs16(
3868
4253
  strokeLinejoin: "round",
3869
4254
  "aria-hidden": "true",
3870
4255
  children: [
3871
- /* @__PURE__ */ jsx17("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
3872
- /* @__PURE__ */ jsx17("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
3873
- /* @__PURE__ */ jsx17("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4256
+ /* @__PURE__ */ jsx19("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4257
+ /* @__PURE__ */ jsx19("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4258
+ /* @__PURE__ */ jsx19("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
3874
4259
  ]
3875
4260
  }
3876
4261
  );
3877
- var CopyIcon = () => /* @__PURE__ */ jsxs16(
4262
+ var CopyIcon = () => /* @__PURE__ */ jsxs17(
3878
4263
  "svg",
3879
4264
  {
3880
4265
  viewBox: "0 0 24 24",
@@ -3887,12 +4272,12 @@ var CopyIcon = () => /* @__PURE__ */ jsxs16(
3887
4272
  strokeLinejoin: "round",
3888
4273
  "aria-hidden": "true",
3889
4274
  children: [
3890
- /* @__PURE__ */ jsx17("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
3891
- /* @__PURE__ */ jsx17("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
4275
+ /* @__PURE__ */ jsx19("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
4276
+ /* @__PURE__ */ jsx19("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
3892
4277
  ]
3893
4278
  }
3894
4279
  );
3895
- var DownloadIcon = () => /* @__PURE__ */ jsxs16(
4280
+ var DownloadIcon = () => /* @__PURE__ */ jsxs17(
3896
4281
  "svg",
3897
4282
  {
3898
4283
  viewBox: "0 0 24 24",
@@ -3905,13 +4290,13 @@ var DownloadIcon = () => /* @__PURE__ */ jsxs16(
3905
4290
  strokeLinejoin: "round",
3906
4291
  "aria-hidden": "true",
3907
4292
  children: [
3908
- /* @__PURE__ */ jsx17("path", { d: "M12 3v12" }),
3909
- /* @__PURE__ */ jsx17("path", { d: "M7 10l5 5 5-5" }),
3910
- /* @__PURE__ */ jsx17("path", { d: "M5 21h14" })
4293
+ /* @__PURE__ */ jsx19("path", { d: "M12 3v12" }),
4294
+ /* @__PURE__ */ jsx19("path", { d: "M7 10l5 5 5-5" }),
4295
+ /* @__PURE__ */ jsx19("path", { d: "M5 21h14" })
3911
4296
  ]
3912
4297
  }
3913
4298
  );
3914
- var SpinnerIcon2 = () => /* @__PURE__ */ jsxs16(
4299
+ var SpinnerIcon2 = () => /* @__PURE__ */ jsxs17(
3915
4300
  "svg",
3916
4301
  {
3917
4302
  viewBox: "0 0 24 24",
@@ -3921,7 +4306,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ jsxs16(
3921
4306
  className: "animate-spin text-primary",
3922
4307
  "aria-hidden": "true",
3923
4308
  children: [
3924
- /* @__PURE__ */ jsx17(
4309
+ /* @__PURE__ */ jsx19(
3925
4310
  "circle",
3926
4311
  {
3927
4312
  cx: "12",
@@ -3932,7 +4317,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ jsxs16(
3932
4317
  strokeOpacity: "0.25"
3933
4318
  }
3934
4319
  ),
3935
- /* @__PURE__ */ jsx17(
4320
+ /* @__PURE__ */ jsx19(
3936
4321
  "path",
3937
4322
  {
3938
4323
  d: "M21 12a9 9 0 0 0-9-9",
@@ -3944,7 +4329,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ jsxs16(
3944
4329
  ]
3945
4330
  }
3946
4331
  );
3947
- var ExportDesignMdModal = React17.forwardRef(
4332
+ var ExportDesignMdModal = React19.forwardRef(
3948
4333
  ({
3949
4334
  isOpen,
3950
4335
  onClose,
@@ -3970,7 +4355,7 @@ var ExportDesignMdModal = React17.forwardRef(
3970
4355
  }
3971
4356
  onCopy?.();
3972
4357
  };
3973
- return /* @__PURE__ */ jsx17(
4358
+ return /* @__PURE__ */ jsx19(
3974
4359
  Modal,
3975
4360
  {
3976
4361
  ref,
@@ -3978,49 +4363,49 @@ var ExportDesignMdModal = React17.forwardRef(
3978
4363
  onClose,
3979
4364
  title: "Export DESIGN.md",
3980
4365
  size: "xl",
3981
- footer: /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center justify-between", children: [
3982
- /* @__PURE__ */ jsxs16(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
3983
- /* @__PURE__ */ jsx17(DownloadIcon, {}),
4366
+ footer: /* @__PURE__ */ jsxs17("div", { className: "flex w-full items-center justify-between", children: [
4367
+ /* @__PURE__ */ jsxs17(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
4368
+ /* @__PURE__ */ jsx19(DownloadIcon, {}),
3984
4369
  "Download .md"
3985
4370
  ] }),
3986
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-sm", children: [
3987
- /* @__PURE__ */ jsx17(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
3988
- /* @__PURE__ */ jsx17(Button, { variant: "primary", onClick: onExport, children: "Export" })
4371
+ /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-sm", children: [
4372
+ /* @__PURE__ */ jsx19(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
4373
+ /* @__PURE__ */ jsx19(Button, { variant: "primary", onClick: onExport, children: "Export" })
3989
4374
  ] })
3990
4375
  ] }),
3991
- children: /* @__PURE__ */ jsxs16("div", { className: "w-full space-y-lg", children: [
3992
- /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
3993
- /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
3994
- /* @__PURE__ */ jsxs16("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
3995
- /* @__PURE__ */ jsxs16(
4376
+ children: /* @__PURE__ */ jsxs17("div", { className: "w-full space-y-lg", children: [
4377
+ /* @__PURE__ */ jsx19(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
4378
+ /* @__PURE__ */ jsxs17("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
4379
+ /* @__PURE__ */ jsxs17("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
4380
+ /* @__PURE__ */ jsxs17(
3996
4381
  Button,
3997
4382
  {
3998
4383
  variant: source === "production" ? "primary" : "ghost",
3999
4384
  size: "sm",
4000
4385
  onClick: () => changeSource("production"),
4001
4386
  children: [
4002
- /* @__PURE__ */ jsx17(CloudIcon, {}),
4387
+ /* @__PURE__ */ jsx19(CloudIcon, {}),
4003
4388
  "Production"
4004
4389
  ]
4005
4390
  }
4006
4391
  ),
4007
- /* @__PURE__ */ jsxs16(
4392
+ /* @__PURE__ */ jsxs17(
4008
4393
  Button,
4009
4394
  {
4010
4395
  variant: source === "local" ? "primary" : "ghost",
4011
4396
  size: "sm",
4012
4397
  onClick: () => changeSource("local"),
4013
4398
  children: [
4014
- /* @__PURE__ */ jsx17(LinkIcon, {}),
4399
+ /* @__PURE__ */ jsx19(LinkIcon, {}),
4015
4400
  "Local (npm link)"
4016
4401
  ]
4017
4402
  }
4018
4403
  )
4019
4404
  ] }),
4020
- /* @__PURE__ */ jsx17(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." })
4405
+ /* @__PURE__ */ jsx19(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." })
4021
4406
  ] }),
4022
- /* @__PURE__ */ jsxs16("div", { children: [
4023
- /* @__PURE__ */ jsx17(
4407
+ /* @__PURE__ */ jsxs17("div", { children: [
4408
+ /* @__PURE__ */ jsx19(
4024
4409
  Typography,
4025
4410
  {
4026
4411
  role: "caption",
@@ -4030,8 +4415,8 @@ var ExportDesignMdModal = React17.forwardRef(
4030
4415
  children: "Preview"
4031
4416
  }
4032
4417
  ),
4033
- /* @__PURE__ */ jsxs16("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
4034
- /* @__PURE__ */ jsxs16(
4418
+ /* @__PURE__ */ jsxs17("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
4419
+ /* @__PURE__ */ jsxs17(
4035
4420
  Button,
4036
4421
  {
4037
4422
  variant: "secondary",
@@ -4039,14 +4424,14 @@ var ExportDesignMdModal = React17.forwardRef(
4039
4424
  onClick: handleCopy,
4040
4425
  className: "absolute top-sm right-sm",
4041
4426
  children: [
4042
- /* @__PURE__ */ jsx17(CopyIcon, {}),
4427
+ /* @__PURE__ */ jsx19(CopyIcon, {}),
4043
4428
  "Copy"
4044
4429
  ]
4045
4430
  }
4046
4431
  ),
4047
- /* @__PURE__ */ jsx17("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ jsxs16("div", { className: "flex gap-md", children: [
4048
- /* @__PURE__ */ jsx17("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
4049
- /* @__PURE__ */ jsx17(
4432
+ /* @__PURE__ */ jsx19("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ jsxs17("div", { className: "flex gap-md", children: [
4433
+ /* @__PURE__ */ jsx19("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
4434
+ /* @__PURE__ */ jsx19(
4050
4435
  "span",
4051
4436
  {
4052
4437
  className: line.tone === "heading" ? "text-primary font-weight-heading-sm" : "text-body",
@@ -4054,7 +4439,7 @@ var ExportDesignMdModal = React17.forwardRef(
4054
4439
  }
4055
4440
  )
4056
4441
  ] }, i)) }),
4057
- loading ? /* @__PURE__ */ jsxs16(
4442
+ loading ? /* @__PURE__ */ jsxs17(
4058
4443
  "div",
4059
4444
  {
4060
4445
  role: "status",
@@ -4062,21 +4447,21 @@ var ExportDesignMdModal = React17.forwardRef(
4062
4447
  "aria-label": "Loading preview",
4063
4448
  className: "absolute inset-0 flex items-center justify-center gap-sm bg-canvas opacity-90",
4064
4449
  children: [
4065
- /* @__PURE__ */ jsx17(SpinnerIcon2, {}),
4066
- /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
4450
+ /* @__PURE__ */ jsx19(SpinnerIcon2, {}),
4451
+ /* @__PURE__ */ jsx19(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
4067
4452
  ]
4068
4453
  }
4069
4454
  ) : null
4070
4455
  ] })
4071
4456
  ] }),
4072
- /* @__PURE__ */ jsxs16("div", { className: "w-full space-y-sm", children: [
4073
- /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4074
- /* @__PURE__ */ jsx17("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__ */ jsx17(CloudIcon, {}) }),
4075
- /* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
4076
- /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
4077
- /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
4457
+ /* @__PURE__ */ jsxs17("div", { className: "w-full space-y-sm", children: [
4458
+ /* @__PURE__ */ jsxs17("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4459
+ /* @__PURE__ */ jsx19("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__ */ jsx19(CloudIcon, {}) }),
4460
+ /* @__PURE__ */ jsxs17("div", { className: "min-w-0 flex-1", children: [
4461
+ /* @__PURE__ */ jsx19(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
4462
+ /* @__PURE__ */ jsx19(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
4078
4463
  ] }),
4079
- source === "production" ? /* @__PURE__ */ jsx17(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx17(
4464
+ source === "production" ? /* @__PURE__ */ jsx19(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx19(
4080
4465
  Button,
4081
4466
  {
4082
4467
  variant: "secondary",
@@ -4086,13 +4471,13 @@ var ExportDesignMdModal = React17.forwardRef(
4086
4471
  }
4087
4472
  )
4088
4473
  ] }),
4089
- /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4090
- /* @__PURE__ */ jsx17("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__ */ jsx17(LinkIcon, {}) }),
4091
- /* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
4092
- /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
4093
- /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
4474
+ /* @__PURE__ */ jsxs17("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4475
+ /* @__PURE__ */ jsx19("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__ */ jsx19(LinkIcon, {}) }),
4476
+ /* @__PURE__ */ jsxs17("div", { className: "min-w-0 flex-1", children: [
4477
+ /* @__PURE__ */ jsx19(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
4478
+ /* @__PURE__ */ jsx19(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
4094
4479
  ] }),
4095
- source === "local" ? /* @__PURE__ */ jsx17(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx17(
4480
+ source === "local" ? /* @__PURE__ */ jsx19(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx19(
4096
4481
  Button,
4097
4482
  {
4098
4483
  variant: "secondary",
@@ -4111,11 +4496,11 @@ var ExportDesignMdModal = React17.forwardRef(
4111
4496
  ExportDesignMdModal.displayName = "ExportDesignMdModal";
4112
4497
 
4113
4498
  // virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
4114
- import React18 from "react";
4115
- import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
4116
- var FilterTabBar = React18.forwardRef(
4499
+ import React20 from "react";
4500
+ import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
4501
+ var FilterTabBar = React20.forwardRef(
4117
4502
  ({ tabs, value, onChange, className = "", ...rest }, ref) => {
4118
- return /* @__PURE__ */ jsx18(
4503
+ return /* @__PURE__ */ jsx20(
4119
4504
  "div",
4120
4505
  {
4121
4506
  ref,
@@ -4129,7 +4514,8 @@ var FilterTabBar = React18.forwardRef(
4129
4514
  ...rest,
4130
4515
  children: tabs.map((tab) => {
4131
4516
  const isActive = tab.value === value;
4132
- return /* @__PURE__ */ jsxs17(
4517
+ const isIconOnly = Boolean(tab.icon) && !tab.label;
4518
+ return /* @__PURE__ */ jsxs18(
4133
4519
  Button,
4134
4520
  {
4135
4521
  role: "tab",
@@ -4138,11 +4524,11 @@ var FilterTabBar = React18.forwardRef(
4138
4524
  variant: isActive ? "primary" : "ghost",
4139
4525
  size: "sm",
4140
4526
  onClick: () => onChange(tab.value),
4141
- className: "gap-xs",
4527
+ className: isIconOnly ? "gap-xs p-xs aspect-square leading-none" : "gap-xs",
4142
4528
  children: [
4143
- tab.icon && /* @__PURE__ */ jsx18("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4144
- tab.label && /* @__PURE__ */ jsx18("span", { children: tab.label }),
4145
- tab.count !== void 0 && /* @__PURE__ */ jsx18(
4529
+ tab.icon && /* @__PURE__ */ jsx20("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4530
+ tab.label && /* @__PURE__ */ jsx20("span", { children: tab.label }),
4531
+ tab.count !== void 0 && /* @__PURE__ */ jsx20(
4146
4532
  "span",
4147
4533
  {
4148
4534
  className: [
@@ -4168,20 +4554,20 @@ var FilterTabBar = React18.forwardRef(
4168
4554
  FilterTabBar.displayName = "FilterTabBar";
4169
4555
 
4170
4556
  // virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
4171
- import React19 from "react";
4172
- import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
4173
- var HomeIcon2 = () => /* @__PURE__ */ jsxs18("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: [
4174
- /* @__PURE__ */ jsx19("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4175
- /* @__PURE__ */ jsx19("polyline", { points: "9 22 9 12 15 12 15 22" })
4557
+ import React21 from "react";
4558
+ import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
4559
+ var HomeIcon2 = () => /* @__PURE__ */ jsxs19("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: [
4560
+ /* @__PURE__ */ jsx21("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4561
+ /* @__PURE__ */ jsx21("polyline", { points: "9 22 9 12 15 12 15 22" })
4176
4562
  ] });
4177
- var FolderIcon = () => /* @__PURE__ */ jsx19("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__ */ jsx19("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" }) });
4178
- var LogoIcon3 = () => /* @__PURE__ */ jsxs18("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4179
- /* @__PURE__ */ jsx19("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)" } }),
4180
- /* @__PURE__ */ jsx19("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)" } }),
4181
- /* @__PURE__ */ jsx19("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 } })
4563
+ var FolderIcon = () => /* @__PURE__ */ jsx21("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__ */ jsx21("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" }) });
4564
+ var LogoIcon3 = () => /* @__PURE__ */ jsxs19("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4565
+ /* @__PURE__ */ jsx21("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)" } }),
4566
+ /* @__PURE__ */ jsx21("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)" } }),
4567
+ /* @__PURE__ */ jsx21("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 } })
4182
4568
  ] });
4183
- var SparkleIcon = () => /* @__PURE__ */ jsx19("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__ */ jsx19("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" }) });
4184
- var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx19(
4569
+ var SparkleIcon = () => /* @__PURE__ */ jsx21("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__ */ jsx21("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" }) });
4570
+ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx21(
4185
4571
  Button,
4186
4572
  {
4187
4573
  type: "button",
@@ -4199,11 +4585,11 @@ var DEFAULT_MODELS = [
4199
4585
  ];
4200
4586
  var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
4201
4587
  var NAV_ENTRIES = [
4202
- { id: "home", label: "Home", icon: /* @__PURE__ */ jsx19(HomeIcon2, {}) },
4588
+ { id: "home", label: "Home", icon: /* @__PURE__ */ jsx21(HomeIcon2, {}) },
4203
4589
  {
4204
4590
  id: "projects",
4205
4591
  label: "All projects",
4206
- icon: /* @__PURE__ */ jsx19(FolderIcon, {}),
4592
+ icon: /* @__PURE__ */ jsx21(FolderIcon, {}),
4207
4593
  subItems: [
4208
4594
  { id: "proj-1", label: "Design system" },
4209
4595
  { id: "proj-2", label: "Landing page" },
@@ -4223,7 +4609,7 @@ var GRADIENT_BG = `
4223
4609
  radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
4224
4610
  var(--color-canvas)
4225
4611
  `;
4226
- var HomePageTemplate = React19.forwardRef(
4612
+ var HomePageTemplate = React21.forwardRef(
4227
4613
  ({
4228
4614
  userName = "Hello Designer",
4229
4615
  userInitials = "N",
@@ -4248,8 +4634,8 @@ var HomePageTemplate = React19.forwardRef(
4248
4634
  className,
4249
4635
  style
4250
4636
  }, ref) => {
4251
- const [internalPrompt, setInternalPrompt] = React19.useState("");
4252
- const [internalActiveId, setInternalActiveId] = React19.useState("home");
4637
+ const [internalPrompt, setInternalPrompt] = React21.useState("");
4638
+ const [internalActiveId, setInternalActiveId] = React21.useState("home");
4253
4639
  const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
4254
4640
  const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
4255
4641
  const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
@@ -4272,14 +4658,14 @@ var HomePageTemplate = React19.forwardRef(
4272
4658
  if (activeIdProp === void 0) setInternalActiveId(id);
4273
4659
  onSelect?.(id);
4274
4660
  };
4275
- return /* @__PURE__ */ jsxs18(
4661
+ return /* @__PURE__ */ jsxs19(
4276
4662
  "div",
4277
4663
  {
4278
4664
  ref,
4279
4665
  className: ["flex w-full", className].filter(Boolean).join(" "),
4280
4666
  style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
4281
4667
  children: [
4282
- /* @__PURE__ */ jsx19("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx19(
4668
+ /* @__PURE__ */ jsx21("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx21(
4283
4669
  AppSidebar,
4284
4670
  {
4285
4671
  workspaceName: userName,
@@ -4299,14 +4685,14 @@ var HomePageTemplate = React19.forwardRef(
4299
4685
  style: { height: "100%" }
4300
4686
  }
4301
4687
  ) }),
4302
- /* @__PURE__ */ jsxs18(
4688
+ /* @__PURE__ */ jsxs19(
4303
4689
  "main",
4304
4690
  {
4305
4691
  className: "flex-1 relative flex flex-col overflow-hidden",
4306
4692
  style: { height: "100%" },
4307
4693
  "aria-label": "Home canvas",
4308
4694
  children: [
4309
- /* @__PURE__ */ jsx19(
4695
+ /* @__PURE__ */ jsx21(
4310
4696
  "div",
4311
4697
  {
4312
4698
  "aria-hidden": "true",
@@ -4314,9 +4700,9 @@ var HomePageTemplate = React19.forwardRef(
4314
4700
  style: { background: GRADIENT_BG }
4315
4701
  }
4316
4702
  ),
4317
- /* @__PURE__ */ jsxs18("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4318
- /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-sm", children: [
4319
- /* @__PURE__ */ jsx19(
4703
+ /* @__PURE__ */ jsxs19("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4704
+ /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-sm", children: [
4705
+ /* @__PURE__ */ jsx21(
4320
4706
  AppSidebarMobile,
4321
4707
  {
4322
4708
  brandName: "Atoms",
@@ -4333,12 +4719,12 @@ var HomePageTemplate = React19.forwardRef(
4333
4719
  onDarkModeToggle
4334
4720
  }
4335
4721
  ),
4336
- /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-xs", children: [
4337
- /* @__PURE__ */ jsx19(LogoIcon3, {}),
4338
- /* @__PURE__ */ jsx19("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4722
+ /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-xs", children: [
4723
+ /* @__PURE__ */ jsx21(LogoIcon3, {}),
4724
+ /* @__PURE__ */ jsx21("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4339
4725
  ] })
4340
4726
  ] }),
4341
- /* @__PURE__ */ jsx19(
4727
+ /* @__PURE__ */ jsx21(
4342
4728
  "span",
4343
4729
  {
4344
4730
  className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
@@ -4348,8 +4734,8 @@ var HomePageTemplate = React19.forwardRef(
4348
4734
  }
4349
4735
  )
4350
4736
  ] }),
4351
- /* @__PURE__ */ jsx19("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ jsxs18("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: [
4352
- /* @__PURE__ */ jsxs18(
4737
+ /* @__PURE__ */ jsx21("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ jsxs19("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: [
4738
+ /* @__PURE__ */ jsxs19(
4353
4739
  Button,
4354
4740
  {
4355
4741
  variant: "secondary",
@@ -4357,13 +4743,13 @@ var HomePageTemplate = React19.forwardRef(
4357
4743
  "aria-label": "New design system",
4358
4744
  className: "!rounded-full flex items-center gap-xs",
4359
4745
  children: [
4360
- /* @__PURE__ */ jsx19(SparkleIcon, {}),
4746
+ /* @__PURE__ */ jsx21(SparkleIcon, {}),
4361
4747
  "New design system"
4362
4748
  ]
4363
4749
  }
4364
4750
  ),
4365
- /* @__PURE__ */ jsxs18("div", { className: "text-center flex flex-col gap-sm", children: [
4366
- /* @__PURE__ */ jsxs18(
4751
+ /* @__PURE__ */ jsxs19("div", { className: "text-center flex flex-col gap-sm", children: [
4752
+ /* @__PURE__ */ jsxs19(
4367
4753
  "h1",
4368
4754
  {
4369
4755
  className: "text-ink",
@@ -4376,12 +4762,12 @@ var HomePageTemplate = React19.forwardRef(
4376
4762
  },
4377
4763
  children: [
4378
4764
  "What atom should we",
4379
- /* @__PURE__ */ jsx19("br", {}),
4765
+ /* @__PURE__ */ jsx21("br", {}),
4380
4766
  "build?"
4381
4767
  ]
4382
4768
  }
4383
4769
  ),
4384
- /* @__PURE__ */ jsx19(
4770
+ /* @__PURE__ */ jsx21(
4385
4771
  "p",
4386
4772
  {
4387
4773
  className: "text-muted text-body-sm md:text-body-md",
@@ -4390,7 +4776,7 @@ var HomePageTemplate = React19.forwardRef(
4390
4776
  }
4391
4777
  )
4392
4778
  ] }),
4393
- /* @__PURE__ */ jsx19("div", { className: "w-full", children: /* @__PURE__ */ jsx19(
4779
+ /* @__PURE__ */ jsx21("div", { className: "w-full", children: /* @__PURE__ */ jsx21(
4394
4780
  PromptInputBar,
4395
4781
  {
4396
4782
  placeholder: "Describe an atom or design token to create...",
@@ -4406,13 +4792,13 @@ var HomePageTemplate = React19.forwardRef(
4406
4792
  onModelChange
4407
4793
  }
4408
4794
  ) }),
4409
- /* @__PURE__ */ jsx19(
4795
+ /* @__PURE__ */ jsx21(
4410
4796
  "div",
4411
4797
  {
4412
4798
  className: "flex flex-wrap justify-center gap-sm",
4413
4799
  role: "list",
4414
4800
  "aria-label": "Suggested prompts",
4415
- children: suggestions.map((s) => /* @__PURE__ */ jsx19("div", { role: "listitem", children: /* @__PURE__ */ jsx19(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4801
+ children: suggestions.map((s) => /* @__PURE__ */ jsx21("div", { role: "listitem", children: /* @__PURE__ */ jsx21(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4416
4802
  }
4417
4803
  )
4418
4804
  ] }) })
@@ -4427,39 +4813,39 @@ var HomePageTemplate = React19.forwardRef(
4427
4813
  HomePageTemplate.displayName = "HomePageTemplate";
4428
4814
 
4429
4815
  // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
4430
- import React20 from "react";
4431
- import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
4432
- var DesktopIcon = () => /* @__PURE__ */ jsxs19("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: [
4433
- /* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4434
- /* @__PURE__ */ jsx20("path", { d: "M8 21h8M12 17v4" })
4816
+ import React22 from "react";
4817
+ import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
4818
+ var DesktopIcon = () => /* @__PURE__ */ jsxs20("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: [
4819
+ /* @__PURE__ */ jsx22("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4820
+ /* @__PURE__ */ jsx22("path", { d: "M8 21h8M12 17v4" })
4435
4821
  ] });
4436
- var MobileIcon = () => /* @__PURE__ */ jsxs19("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: [
4437
- /* @__PURE__ */ jsx20("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4438
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4822
+ var MobileIcon = () => /* @__PURE__ */ jsxs20("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: [
4823
+ /* @__PURE__ */ jsx22("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4824
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4439
4825
  ] });
4440
- var ExpandIcon = () => /* @__PURE__ */ jsx20("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__ */ jsx20("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4441
- var InspectIcon = () => /* @__PURE__ */ jsxs19("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: [
4442
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "9" }),
4443
- /* @__PURE__ */ jsx20("path", { d: "M12 8v4l3 3" }),
4444
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4826
+ var ExpandIcon = () => /* @__PURE__ */ jsx22("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__ */ jsx22("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4827
+ var InspectIcon = () => /* @__PURE__ */ jsxs20("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: [
4828
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "9" }),
4829
+ /* @__PURE__ */ jsx22("path", { d: "M12 8v4l3 3" }),
4830
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4445
4831
  ] });
4446
- var MoonIcon4 = () => /* @__PURE__ */ jsx20("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__ */ jsx20("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4447
- var FullscreenIcon = () => /* @__PURE__ */ jsxs19("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: [
4448
- /* @__PURE__ */ jsx20("polyline", { points: "15 3 21 3 21 9" }),
4449
- /* @__PURE__ */ jsx20("polyline", { points: "9 21 3 21 3 15" }),
4450
- /* @__PURE__ */ jsx20("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4451
- /* @__PURE__ */ jsx20("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4832
+ var MoonIcon4 = () => /* @__PURE__ */ jsx22("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__ */ jsx22("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4833
+ var FullscreenIcon = () => /* @__PURE__ */ jsxs20("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: [
4834
+ /* @__PURE__ */ jsx22("polyline", { points: "15 3 21 3 21 9" }),
4835
+ /* @__PURE__ */ jsx22("polyline", { points: "9 21 3 21 3 15" }),
4836
+ /* @__PURE__ */ jsx22("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4837
+ /* @__PURE__ */ jsx22("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4452
4838
  ] });
4453
- var DotsIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4454
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "5", r: "1.6" }),
4455
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "1.6" }),
4456
- /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "19", r: "1.6" })
4839
+ var DotsIcon = () => /* @__PURE__ */ jsxs20("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4840
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "5", r: "1.6" }),
4841
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "12", r: "1.6" }),
4842
+ /* @__PURE__ */ jsx22("circle", { cx: "12", cy: "19", r: "1.6" })
4457
4843
  ] });
4458
4844
  var VIEWPORT_OPTIONS = [
4459
4845
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4460
4846
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4461
4847
  ];
4462
- var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx20(
4848
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx22(
4463
4849
  Button,
4464
4850
  {
4465
4851
  variant: active ? "primary" : "ghost",
@@ -4471,7 +4857,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx2
4471
4857
  children
4472
4858
  }
4473
4859
  );
4474
- var PreviewToolbar = React20.forwardRef(
4860
+ var PreviewToolbar = React22.forwardRef(
4475
4861
  ({
4476
4862
  viewport = "desktop",
4477
4863
  onViewportChange,
@@ -4486,7 +4872,7 @@ var PreviewToolbar = React20.forwardRef(
4486
4872
  kindLabel = "ATOM",
4487
4873
  onOverflow,
4488
4874
  className = ""
4489
- }, ref) => /* @__PURE__ */ jsxs19(
4875
+ }, ref) => /* @__PURE__ */ jsxs20(
4490
4876
  "div",
4491
4877
  {
4492
4878
  ref,
@@ -4500,24 +4886,24 @@ var PreviewToolbar = React20.forwardRef(
4500
4886
  className
4501
4887
  ].filter(Boolean).join(" "),
4502
4888
  children: [
4503
- /* @__PURE__ */ jsxs19(
4889
+ /* @__PURE__ */ jsxs20(
4504
4890
  "div",
4505
4891
  {
4506
4892
  role: "group",
4507
4893
  "aria-label": "Viewport size",
4508
4894
  className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
4509
4895
  children: [
4510
- VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx20(
4896
+ VIEWPORT_OPTIONS.map(({ id, Icon: Icon2, label }) => /* @__PURE__ */ jsx22(
4511
4897
  ViewportBtn,
4512
4898
  {
4513
4899
  label,
4514
4900
  active: !expanded && viewport === id,
4515
4901
  onClick: () => onViewportChange?.(id),
4516
- children: /* @__PURE__ */ jsx20(Icon, {})
4902
+ children: /* @__PURE__ */ jsx22(Icon2, {})
4517
4903
  },
4518
4904
  id
4519
4905
  )),
4520
- /* @__PURE__ */ jsx20(
4906
+ /* @__PURE__ */ jsx22(
4521
4907
  Button,
4522
4908
  {
4523
4909
  variant: expanded ? "primary" : "ghost",
@@ -4529,14 +4915,14 @@ var PreviewToolbar = React20.forwardRef(
4529
4915
  "!w-8 !h-8 !p-0 rounded-sm shrink-0",
4530
4916
  expanded ? "" : "text-muted"
4531
4917
  ].join(" "),
4532
- children: /* @__PURE__ */ jsx20(ExpandIcon, {})
4918
+ children: /* @__PURE__ */ jsx22(ExpandIcon, {})
4533
4919
  }
4534
4920
  )
4535
4921
  ]
4536
4922
  }
4537
4923
  ),
4538
- /* @__PURE__ */ jsxs19("div", { className: "flex flex-wrap items-center gap-sm", children: [
4539
- /* @__PURE__ */ jsxs19(
4924
+ /* @__PURE__ */ jsxs20("div", { className: "flex flex-wrap items-center gap-sm", children: [
4925
+ /* @__PURE__ */ jsxs20(
4540
4926
  Button,
4541
4927
  {
4542
4928
  variant: inspecting ? "primary" : "secondary",
@@ -4545,12 +4931,12 @@ var PreviewToolbar = React20.forwardRef(
4545
4931
  onClick: onInspectTokens,
4546
4932
  className: "gap-xs rounded-xl",
4547
4933
  children: [
4548
- /* @__PURE__ */ jsx20(InspectIcon, {}),
4934
+ /* @__PURE__ */ jsx22(InspectIcon, {}),
4549
4935
  inspecting ? "Exit inspect" : "Inspect tokens"
4550
4936
  ]
4551
4937
  }
4552
4938
  ),
4553
- /* @__PURE__ */ jsxs19(
4939
+ /* @__PURE__ */ jsxs20(
4554
4940
  Button,
4555
4941
  {
4556
4942
  variant: darkMode ? "primary" : "secondary",
@@ -4559,12 +4945,12 @@ var PreviewToolbar = React20.forwardRef(
4559
4945
  onClick: onDarkToggle,
4560
4946
  className: "gap-xs rounded-xl",
4561
4947
  children: [
4562
- /* @__PURE__ */ jsx20(MoonIcon4, {}),
4948
+ /* @__PURE__ */ jsx22(MoonIcon4, {}),
4563
4949
  "Dark"
4564
4950
  ]
4565
4951
  }
4566
4952
  ),
4567
- /* @__PURE__ */ jsxs19(
4953
+ /* @__PURE__ */ jsxs20(
4568
4954
  Button,
4569
4955
  {
4570
4956
  variant: "secondary",
@@ -4572,12 +4958,12 @@ var PreviewToolbar = React20.forwardRef(
4572
4958
  onClick: onFullscreen,
4573
4959
  className: "gap-xs rounded-xl",
4574
4960
  children: [
4575
- /* @__PURE__ */ jsx20(FullscreenIcon, {}),
4961
+ /* @__PURE__ */ jsx22(FullscreenIcon, {}),
4576
4962
  "Fullscreen"
4577
4963
  ]
4578
4964
  }
4579
4965
  ),
4580
- /* @__PURE__ */ jsx20(
4966
+ /* @__PURE__ */ jsx22(
4581
4967
  Chip,
4582
4968
  {
4583
4969
  label: modelLabel ?? "",
@@ -4586,7 +4972,7 @@ var PreviewToolbar = React20.forwardRef(
4586
4972
  className: "border-primary text-primary bg-canvas cursor-default select-none"
4587
4973
  }
4588
4974
  ),
4589
- /* @__PURE__ */ jsx20(
4975
+ /* @__PURE__ */ jsx22(
4590
4976
  Chip,
4591
4977
  {
4592
4978
  label: kindLabel ?? "",
@@ -4595,7 +4981,7 @@ var PreviewToolbar = React20.forwardRef(
4595
4981
  className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
4596
4982
  }
4597
4983
  ),
4598
- /* @__PURE__ */ jsx20(
4984
+ /* @__PURE__ */ jsx22(
4599
4985
  Button,
4600
4986
  {
4601
4987
  variant: "ghost",
@@ -4603,7 +4989,7 @@ var PreviewToolbar = React20.forwardRef(
4603
4989
  "aria-label": "More options",
4604
4990
  onClick: onOverflow,
4605
4991
  className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
4606
- children: /* @__PURE__ */ jsx20(DotsIcon, {})
4992
+ children: /* @__PURE__ */ jsx22(DotsIcon, {})
4607
4993
  }
4608
4994
  )
4609
4995
  ] })
@@ -4614,39 +5000,39 @@ var PreviewToolbar = React20.forwardRef(
4614
5000
  PreviewToolbar.displayName = "PreviewToolbar";
4615
5001
 
4616
5002
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
4617
- import React21, { useState as useState4 } from "react";
4618
- import { Fragment as Fragment4, jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
4619
- var GlobeIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4620
- /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "9" }),
4621
- /* @__PURE__ */ jsx21("path", { d: "M3 12h18" }),
4622
- /* @__PURE__ */ jsx21("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
4623
- /* @__PURE__ */ jsx21("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
5003
+ import React23, { useState as useState4 } from "react";
5004
+ import { Fragment as Fragment4, jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
5005
+ var GlobeIcon = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5006
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "9" }),
5007
+ /* @__PURE__ */ jsx23("path", { d: "M3 12h18" }),
5008
+ /* @__PURE__ */ jsx23("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
5009
+ /* @__PURE__ */ jsx23("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
4624
5010
  ] });
4625
- var LinkIcon2 = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4626
- /* @__PURE__ */ jsx21("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4627
- /* @__PURE__ */ jsx21("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4628
- /* @__PURE__ */ jsx21("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
5011
+ var LinkIcon2 = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5012
+ /* @__PURE__ */ jsx23("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
5013
+ /* @__PURE__ */ jsx23("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
5014
+ /* @__PURE__ */ jsx23("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4629
5015
  ] });
4630
- var InfoIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
4631
- /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
4632
- /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "7.5", r: "1.15" }),
4633
- /* @__PURE__ */ jsx21("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
5016
+ var InfoIcon = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
5017
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
5018
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "7.5", r: "1.15" }),
5019
+ /* @__PURE__ */ jsx23("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
4634
5020
  ] });
4635
- var CheckCircleIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4636
- /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "9" }),
4637
- /* @__PURE__ */ jsx21("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
5021
+ var CheckCircleIcon = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5022
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "9" }),
5023
+ /* @__PURE__ */ jsx23("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
4638
5024
  ] });
4639
- var LockIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4640
- /* @__PURE__ */ jsx21("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
4641
- /* @__PURE__ */ jsx21("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
5025
+ var LockIcon = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5026
+ /* @__PURE__ */ jsx23("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
5027
+ /* @__PURE__ */ jsx23("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
4642
5028
  ] });
4643
- var RefreshIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4644
- /* @__PURE__ */ jsx21("path", { d: "M4 4v5h5" }),
4645
- /* @__PURE__ */ jsx21("path", { d: "M20 20v-5h-5" }),
4646
- /* @__PURE__ */ jsx21("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
4647
- /* @__PURE__ */ jsx21("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
5029
+ var RefreshIcon = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5030
+ /* @__PURE__ */ jsx23("path", { d: "M4 4v5h5" }),
5031
+ /* @__PURE__ */ jsx23("path", { d: "M20 20v-5h-5" }),
5032
+ /* @__PURE__ */ jsx23("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
5033
+ /* @__PURE__ */ jsx23("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
4648
5034
  ] });
4649
- var ChevronIcon3 = ({ open }) => /* @__PURE__ */ jsx21(
5035
+ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ jsx23(
4650
5036
  "svg",
4651
5037
  {
4652
5038
  viewBox: "0 0 24 24",
@@ -4659,19 +5045,19 @@ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ jsx21(
4659
5045
  strokeLinejoin: "round",
4660
5046
  "aria-hidden": "true",
4661
5047
  className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
4662
- children: /* @__PURE__ */ jsx21("path", { d: "M9 6l6 6-6 6" })
5048
+ children: /* @__PURE__ */ jsx23("path", { d: "M9 6l6 6-6 6" })
4663
5049
  }
4664
5050
  );
4665
- var SpinnerIcon3 = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
4666
- /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
4667
- /* @__PURE__ */ jsx21("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
5051
+ var SpinnerIcon3 = () => /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
5052
+ /* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
5053
+ /* @__PURE__ */ jsx23("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
4668
5054
  ] });
4669
5055
  function bumpMinor(version) {
4670
5056
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
4671
5057
  const [major = 0, minor = 0] = parts;
4672
5058
  return `${major}.${minor + 1}.0`;
4673
5059
  }
4674
- var PublishModal = React21.forwardRef(
5060
+ var PublishModal = React23.forwardRef(
4675
5061
  ({
4676
5062
  isOpen,
4677
5063
  onClose,
@@ -4700,7 +5086,7 @@ var PublishModal = React21.forwardRef(
4700
5086
  ];
4701
5087
  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.";
4702
5088
  const handlePublish = () => onPublish?.(target, nextVersion);
4703
- return /* @__PURE__ */ jsx21(
5089
+ return /* @__PURE__ */ jsx23(
4704
5090
  Modal,
4705
5091
  {
4706
5092
  ref,
@@ -4708,32 +5094,32 @@ var PublishModal = React21.forwardRef(
4708
5094
  onClose,
4709
5095
  title: "Publish package",
4710
5096
  size: "lg",
4711
- footer: /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-end gap-sm", children: [
4712
- /* @__PURE__ */ jsx21(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
4713
- /* @__PURE__ */ jsx21(
5097
+ footer: /* @__PURE__ */ jsxs21("div", { className: "flex w-full items-center justify-end gap-sm", children: [
5098
+ /* @__PURE__ */ jsx23(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
5099
+ /* @__PURE__ */ jsx23(
4714
5100
  Button,
4715
5101
  {
4716
5102
  variant: "primary",
4717
5103
  onClick: handlePublish,
4718
5104
  disabled: loading,
4719
5105
  "aria-busy": loading,
4720
- children: loading ? /* @__PURE__ */ jsxs20(Fragment4, { children: [
4721
- /* @__PURE__ */ jsx21(SpinnerIcon3, {}),
5106
+ children: loading ? /* @__PURE__ */ jsxs21(Fragment4, { children: [
5107
+ /* @__PURE__ */ jsx23(SpinnerIcon3, {}),
4722
5108
  isProduction ? "Publishing\u2026" : "Linking\u2026"
4723
5109
  ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
4724
5110
  }
4725
5111
  )
4726
5112
  ] }),
4727
- children: /* @__PURE__ */ jsxs20("div", { className: "w-full space-y-lg", children: [
4728
- /* @__PURE__ */ jsx21("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." }),
4729
- /* @__PURE__ */ jsxs20(
5113
+ children: /* @__PURE__ */ jsxs21("div", { className: "w-full space-y-lg", children: [
5114
+ /* @__PURE__ */ jsx23("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." }),
5115
+ /* @__PURE__ */ jsxs21(
4730
5116
  "div",
4731
5117
  {
4732
5118
  role: "tablist",
4733
5119
  "aria-label": "Publish target",
4734
5120
  className: "flex items-center gap-lg border-b border-hairline",
4735
5121
  children: [
4736
- /* @__PURE__ */ jsxs20(
5122
+ /* @__PURE__ */ jsxs21(
4737
5123
  Button,
4738
5124
  {
4739
5125
  type: "button",
@@ -4748,12 +5134,12 @@ var PublishModal = React21.forwardRef(
4748
5134
  isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4749
5135
  ].join(" "),
4750
5136
  children: [
4751
- /* @__PURE__ */ jsx21(GlobeIcon, {}),
5137
+ /* @__PURE__ */ jsx23(GlobeIcon, {}),
4752
5138
  "Production (npm registry)"
4753
5139
  ]
4754
5140
  }
4755
5141
  ),
4756
- /* @__PURE__ */ jsxs20(
5142
+ /* @__PURE__ */ jsxs21(
4757
5143
  Button,
4758
5144
  {
4759
5145
  type: "button",
@@ -4768,7 +5154,7 @@ var PublishModal = React21.forwardRef(
4768
5154
  !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4769
5155
  ].join(" "),
4770
5156
  children: [
4771
- /* @__PURE__ */ jsx21(LinkIcon2, {}),
5157
+ /* @__PURE__ */ jsx23(LinkIcon2, {}),
4772
5158
  "Local (npm link)"
4773
5159
  ]
4774
5160
  }
@@ -4776,24 +5162,24 @@ var PublishModal = React21.forwardRef(
4776
5162
  ]
4777
5163
  }
4778
5164
  ),
4779
- /* @__PURE__ */ jsxs20("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
4780
- /* @__PURE__ */ jsxs20("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4781
- /* @__PURE__ */ jsx21("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
4782
- /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4783
- /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
4784
- /* @__PURE__ */ jsx21("p", { className: "text-body-md text-ink font-mono", children: packageName })
5165
+ /* @__PURE__ */ jsxs21("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
5166
+ /* @__PURE__ */ jsxs21("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
5167
+ /* @__PURE__ */ jsx23("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
5168
+ /* @__PURE__ */ jsxs21("div", { className: "space-y-xxs", children: [
5169
+ /* @__PURE__ */ jsx23("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
5170
+ /* @__PURE__ */ jsx23("p", { className: "text-body-md text-ink font-mono", children: packageName })
4785
5171
  ] }),
4786
- /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4787
- /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
4788
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-xs", children: [
4789
- /* @__PURE__ */ jsx21("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
4790
- /* @__PURE__ */ jsx21(Chip, { label: "Latest", variant: "primary", size: "sm" })
5172
+ /* @__PURE__ */ jsxs21("div", { className: "space-y-xxs", children: [
5173
+ /* @__PURE__ */ jsx23("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
5174
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-xs", children: [
5175
+ /* @__PURE__ */ jsx23("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
5176
+ /* @__PURE__ */ jsx23(Chip, { label: "Latest", variant: "primary", size: "sm" })
4791
5177
  ] })
4792
5178
  ] }),
4793
- isProduction ? /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4794
- /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
4795
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-xs", children: [
4796
- /* @__PURE__ */ jsx21(
5179
+ isProduction ? /* @__PURE__ */ jsxs21("div", { className: "space-y-xxs", children: [
5180
+ /* @__PURE__ */ jsx23("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
5181
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-xs", children: [
5182
+ /* @__PURE__ */ jsx23(
4797
5183
  Input,
4798
5184
  {
4799
5185
  "aria-label": "Next version",
@@ -4803,7 +5189,7 @@ var PublishModal = React21.forwardRef(
4803
5189
  disabled: loading
4804
5190
  }
4805
5191
  ),
4806
- /* @__PURE__ */ jsx21(
5192
+ /* @__PURE__ */ jsx23(
4807
5193
  Button,
4808
5194
  {
4809
5195
  variant: "secondary",
@@ -4812,19 +5198,19 @@ var PublishModal = React21.forwardRef(
4812
5198
  onClick: () => setNextVersion(bumpMinor(currentVersion)),
4813
5199
  disabled: loading,
4814
5200
  className: "!px-sm",
4815
- children: /* @__PURE__ */ jsx21(RefreshIcon, {})
5201
+ children: /* @__PURE__ */ jsx23(RefreshIcon, {})
4816
5202
  }
4817
5203
  )
4818
5204
  ] })
4819
- ] }) : /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4820
- /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
4821
- /* @__PURE__ */ jsxs20("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
5205
+ ] }) : /* @__PURE__ */ jsxs21("div", { className: "space-y-xxs", children: [
5206
+ /* @__PURE__ */ jsx23("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
5207
+ /* @__PURE__ */ jsxs21("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
4822
5208
  "npm link ",
4823
5209
  packageName
4824
5210
  ] })
4825
5211
  ] }),
4826
- /* @__PURE__ */ jsxs20("div", { className: "border border-hairline rounded-sm", children: [
4827
- /* @__PURE__ */ jsxs20(
5212
+ /* @__PURE__ */ jsxs21("div", { className: "border border-hairline rounded-sm", children: [
5213
+ /* @__PURE__ */ jsxs21(
4828
5214
  Button,
4829
5215
  {
4830
5216
  type: "button",
@@ -4835,12 +5221,12 @@ var PublishModal = React21.forwardRef(
4835
5221
  disabled: loading,
4836
5222
  className: "w-full !justify-start !rounded-none gap-xs text-body",
4837
5223
  children: [
4838
- /* @__PURE__ */ jsx21(ChevronIcon3, { open: notesOpen }),
5224
+ /* @__PURE__ */ jsx23(ChevronIcon3, { open: notesOpen }),
4839
5225
  "Release notes (optional)"
4840
5226
  ]
4841
5227
  }
4842
5228
  ),
4843
- notesOpen && /* @__PURE__ */ jsx21("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ jsx21(
5229
+ notesOpen && /* @__PURE__ */ jsx23("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ jsx23(
4844
5230
  "textarea",
4845
5231
  {
4846
5232
  value: notes,
@@ -4853,27 +5239,27 @@ var PublishModal = React21.forwardRef(
4853
5239
  ) })
4854
5240
  ] })
4855
5241
  ] }),
4856
- /* @__PURE__ */ jsxs20("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4857
- /* @__PURE__ */ jsx21("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
4858
- /* @__PURE__ */ jsxs20("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
4859
- /* @__PURE__ */ jsx21("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx21(InfoIcon, {}) }),
4860
- /* @__PURE__ */ jsxs20("div", { children: [
4861
- /* @__PURE__ */ jsx21("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
4862
- /* @__PURE__ */ jsx21("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.` })
5242
+ /* @__PURE__ */ jsxs21("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
5243
+ /* @__PURE__ */ jsx23("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
5244
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
5245
+ /* @__PURE__ */ jsx23("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx23(InfoIcon, {}) }),
5246
+ /* @__PURE__ */ jsxs21("div", { children: [
5247
+ /* @__PURE__ */ jsx23("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
5248
+ /* @__PURE__ */ jsx23("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.` })
4863
5249
  ] })
4864
5250
  ] }),
4865
- /* @__PURE__ */ jsx21("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ jsxs20("div", { className: "flex items-start gap-sm", children: [
4866
- /* @__PURE__ */ jsx21("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx21(CheckCircleIcon, {}) }),
4867
- /* @__PURE__ */ jsxs20("div", { children: [
4868
- /* @__PURE__ */ jsx21("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
4869
- /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-muted", children: item.desc })
5251
+ /* @__PURE__ */ jsx23("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ jsxs21("div", { className: "flex items-start gap-sm", children: [
5252
+ /* @__PURE__ */ jsx23("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx23(CheckCircleIcon, {}) }),
5253
+ /* @__PURE__ */ jsxs21("div", { children: [
5254
+ /* @__PURE__ */ jsx23("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
5255
+ /* @__PURE__ */ jsx23("p", { className: "text-body-sm text-muted", children: item.desc })
4870
5256
  ] })
4871
5257
  ] }, item.title)) })
4872
5258
  ] })
4873
5259
  ] }),
4874
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
4875
- /* @__PURE__ */ jsx21("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ jsx21(LockIcon, {}) }),
4876
- /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-body", children: noticeText })
5260
+ /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
5261
+ /* @__PURE__ */ jsx23("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ jsx23(LockIcon, {}) }),
5262
+ /* @__PURE__ */ jsx23("p", { className: "text-body-sm text-body", children: noticeText })
4877
5263
  ] })
4878
5264
  ] })
4879
5265
  }
@@ -4881,6 +5267,98 @@ var PublishModal = React21.forwardRef(
4881
5267
  }
4882
5268
  );
4883
5269
  PublishModal.displayName = "PublishModal";
5270
+
5271
+ // virtual-pkg:src/atoms/StatusBar/StatusBar.tsx
5272
+ import React24 from "react";
5273
+ import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
5274
+ var toneBgClass = {
5275
+ info: "bg-semantic-info-soft",
5276
+ success: "bg-semantic-success-soft",
5277
+ warning: "bg-semantic-warning-soft",
5278
+ error: "bg-semantic-error-soft"
5279
+ };
5280
+ var toneBorderClass = {
5281
+ info: "border-primary",
5282
+ success: "border-semantic-success",
5283
+ warning: "border-semantic-warning",
5284
+ error: "border-semantic-error"
5285
+ };
5286
+ var toneDotClass = {
5287
+ info: "bg-primary",
5288
+ success: "bg-semantic-success",
5289
+ warning: "bg-semantic-warning",
5290
+ error: "bg-semantic-error"
5291
+ };
5292
+ var toneTextClass = {
5293
+ info: "text-primary",
5294
+ success: "text-semantic-success",
5295
+ warning: "text-semantic-warning",
5296
+ error: "text-semantic-error"
5297
+ };
5298
+ var StatusBar = React24.forwardRef(
5299
+ ({
5300
+ tone = "info",
5301
+ message,
5302
+ detail,
5303
+ onDetailClick,
5304
+ pulsing = true,
5305
+ onDismiss,
5306
+ className = "",
5307
+ ...rest
5308
+ }, ref) => {
5309
+ return /* @__PURE__ */ jsxs22(
5310
+ "div",
5311
+ {
5312
+ ref,
5313
+ role: "status",
5314
+ className: [
5315
+ "w-full flex items-center gap-sm px-lg py-sm",
5316
+ "border-b-2",
5317
+ toneBgClass[tone],
5318
+ toneBorderClass[tone],
5319
+ className
5320
+ ].filter(Boolean).join(" "),
5321
+ ...rest,
5322
+ children: [
5323
+ /* @__PURE__ */ jsxs22("span", { className: "relative inline-flex items-center justify-center w-4 h-4 shrink-0", "aria-hidden": "true", children: [
5324
+ pulsing && /* @__PURE__ */ jsx24(
5325
+ "span",
5326
+ {
5327
+ className: ["absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping", toneDotClass[tone]].join(" ")
5328
+ }
5329
+ ),
5330
+ /* @__PURE__ */ jsx24("span", { className: ["relative inline-flex w-2.5 h-2.5 rounded-full", toneDotClass[tone]].join(" ") })
5331
+ ] }),
5332
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-1 min-w-0 flex-wrap items-baseline gap-x-sm gap-y-xxs", children: [
5333
+ /* @__PURE__ */ jsx24(Typography, { role: "body-sm", className: ["font-weight-heading-sm truncate", toneTextClass[tone]].join(" "), children: message }),
5334
+ detail && (onDetailClick ? /* @__PURE__ */ jsx24(
5335
+ Button,
5336
+ {
5337
+ variant: "ghost",
5338
+ size: "sm",
5339
+ onClick: onDetailClick,
5340
+ className: ["!h-auto !p-0 rounded-xs text-body-sm font-weight-body-sm underline hover:no-underline hover:bg-transparent active:bg-transparent truncate", toneTextClass[tone]].join(" "),
5341
+ children: detail
5342
+ }
5343
+ ) : /* @__PURE__ */ jsx24(Typography, { role: "body-sm", color: "body", className: "truncate", children: detail }))
5344
+ ] }),
5345
+ onDismiss && /* @__PURE__ */ jsx24(
5346
+ Button,
5347
+ {
5348
+ variant: "ghost",
5349
+ size: "sm",
5350
+ "aria-label": "Dismiss status",
5351
+ onClick: onDismiss,
5352
+ className: ["!w-6 !h-6 !p-0 rounded-sm shrink-0 hover:bg-transparent active:bg-transparent", toneTextClass[tone]].join(" "),
5353
+ children: /* @__PURE__ */ jsx24(Icon, { name: "close", size: 14 })
5354
+ }
5355
+ )
5356
+ ]
5357
+ }
5358
+ );
5359
+ }
5360
+ );
5361
+ StatusBar.displayName = "StatusBar";
4884
5362
  export {
4885
5363
  AppLayout,
4886
5364
  AppSidebar,
@@ -4889,16 +5367,20 @@ export {
4889
5367
  Button,
4890
5368
  ChatScreen,
4891
5369
  Chip,
5370
+ CodeEditor,
4892
5371
  ComponentCard,
4893
5372
  ExportDesignMdModal,
4894
5373
  FilterTabBar,
4895
5374
  HomePageTemplate,
5375
+ ICON_REGISTRY,
5376
+ Icon,
4896
5377
  Input,
4897
5378
  Modal,
4898
5379
  NavItem,
4899
5380
  PreviewToolbar,
4900
5381
  PromptInputBar,
4901
5382
  PublishModal,
5383
+ StatusBar,
4902
5384
  TopNavbar,
4903
5385
  Typography,
4904
5386
  UpgradeCard,