@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.cjs CHANGED
@@ -36,16 +36,20 @@ __export(src_exports, {
36
36
  Button: () => Button,
37
37
  ChatScreen: () => ChatScreen,
38
38
  Chip: () => Chip,
39
+ CodeEditor: () => CodeEditor,
39
40
  ComponentCard: () => ComponentCard,
40
41
  ExportDesignMdModal: () => ExportDesignMdModal,
41
42
  FilterTabBar: () => FilterTabBar,
42
43
  HomePageTemplate: () => HomePageTemplate,
44
+ ICON_REGISTRY: () => ICON_REGISTRY,
45
+ Icon: () => Icon,
43
46
  Input: () => Input,
44
47
  Modal: () => Modal,
45
48
  NavItem: () => NavItem,
46
49
  PreviewToolbar: () => PreviewToolbar,
47
50
  PromptInputBar: () => PromptInputBar,
48
51
  PublishModal: () => PublishModal,
52
+ StatusBar: () => StatusBar,
49
53
  TopNavbar: () => TopNavbar,
50
54
  Typography: () => Typography,
51
55
  UpgradeCard: () => UpgradeCard,
@@ -1648,6 +1652,7 @@ var COLLAPSE_DURATION = 250;
1648
1652
  var COLLAPSED_RAIL_WIDTH = 12;
1649
1653
  var PANEL_GAP_RIGHT = CURVE_R;
1650
1654
  var MOBILE_BREAKPOINT = 768;
1655
+ var FALLBACK_HEIGHT = 640;
1651
1656
  function useIsMobile() {
1652
1657
  const [mobile, setMobile] = import_react7.default.useState(
1653
1658
  () => typeof window !== "undefined" && window.innerWidth < MOBILE_BREAKPOINT
@@ -1825,7 +1830,7 @@ var AvatarNav = ({ initials, onBackToProjects, onHome }) => {
1825
1830
  {
1826
1831
  role: "menu",
1827
1832
  "aria-label": "Navigation",
1828
- className: "absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs",
1833
+ className: "absolute left-0 mt-xs rounded-xl bg-canvas border border-hairline-soft shadow-card py-xs overflow-hidden",
1829
1834
  style: { minWidth: 200, zIndex: 1e3, top: "100%" },
1830
1835
  children: [
1831
1836
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
@@ -2027,9 +2032,11 @@ var AppLayout = import_react7.default.forwardRef(
2027
2032
  avatarInitials = "A",
2028
2033
  defaultMobilePanel = "chat",
2029
2034
  hideProjectName = false,
2035
+ fillViewport = true,
2030
2036
  className
2031
2037
  }, ref) => {
2032
2038
  const isMobile = useIsMobile();
2039
+ const rootHeight = fillViewport ? "100vh" : `${FALLBACK_HEIGHT}px`;
2033
2040
  const [activeTab, setActiveTab] = import_react7.default.useState(rightPanelActiveTab);
2034
2041
  const [chatWidth, setChatWidth] = import_react7.default.useState(defaultChatWidth);
2035
2042
  const [chatCollapsed, setChatCollapsed] = import_react7.default.useState(false);
@@ -2095,7 +2102,7 @@ var AppLayout = import_react7.default.forwardRef(
2095
2102
  {
2096
2103
  ref,
2097
2104
  className: ["w-full flex flex-col overflow-hidden bg-canvas", className].filter(Boolean).join(" "),
2098
- style: { height: "100vh" },
2105
+ style: { height: rootHeight },
2099
2106
  children: [
2100
2107
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2101
2108
  MobileTopBar,
@@ -2157,7 +2164,7 @@ var AppLayout = import_react7.default.forwardRef(
2157
2164
  {
2158
2165
  ref,
2159
2166
  className: ["w-full flex flex-col overflow-hidden", className].filter(Boolean).join(" "),
2160
- style: { height: "100vh", background: "var(--color-surface-soft)" },
2167
+ style: { height: rootHeight, background: "var(--color-surface-soft)" },
2161
2168
  children: [
2162
2169
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
2163
2170
  "div",
@@ -3579,9 +3586,391 @@ var Chip = import_react13.default.forwardRef(
3579
3586
  );
3580
3587
  Chip.displayName = "Chip";
3581
3588
 
3582
- // virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
3589
+ // virtual-pkg:src/atoms/CodeEditor/CodeEditor.tsx
3583
3590
  var import_react14 = __toESM(require("react"));
3591
+
3592
+ // virtual-pkg:src/atoms/Icon/Icon.tsx
3593
+ var React14 = __toESM(require("react"));
3594
+
3595
+ // virtual-pkg:src/atoms/Icon/icons.data.ts
3596
+ var ICON_REGISTRY = {
3597
+ "close": { viewBox: "0 0 24 24", paths: ["M18 6 6 18", "M6 6l12 12"] },
3598
+ "chevron-down": { viewBox: "0 0 24 24", paths: ["M6 9l6 6 6-6"] },
3599
+ "copy-clipboard": { viewBox: "0 0 24 24", paths: ["M9 9h10v10H9z", "M5 15V5h10"] },
3600
+ "check-checkmark": { viewBox: "0 0 24 24", paths: ["M5 13l4 4L19 7"] },
3601
+ "grid": { viewBox: "0 0 24 24", paths: ["M4 4h6v6H4z", "M14 4h6v6h-6z", "M4 14h6v6H4z", "M14 14h6v6h-6z"] },
3602
+ "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"] },
3603
+ "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"] },
3604
+ "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"] },
3605
+ "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"] }
3606
+ };
3607
+
3608
+ // virtual-pkg:src/atoms/Icon/Icon.tsx
3584
3609
  var import_jsx_runtime14 = require("react/jsx-runtime");
3610
+ var Icon = React14.forwardRef(
3611
+ ({ name, size = 20, strokeWidth = 2, className, ...props }, ref) => {
3612
+ const glyph = ICON_REGISTRY[name];
3613
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3614
+ "svg",
3615
+ {
3616
+ ref,
3617
+ viewBox: glyph.viewBox,
3618
+ width: size,
3619
+ height: size,
3620
+ fill: "none",
3621
+ stroke: "currentColor",
3622
+ strokeWidth,
3623
+ strokeLinecap: "round",
3624
+ strokeLinejoin: "round",
3625
+ className,
3626
+ "aria-hidden": "true",
3627
+ ...props,
3628
+ children: glyph.paths.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d }, i))
3629
+ }
3630
+ );
3631
+ }
3632
+ );
3633
+ Icon.displayName = "Icon";
3634
+
3635
+ // virtual-pkg:src/atoms/CodeEditor/CodeEditor.tsx
3636
+ var import_jsx_runtime15 = require("react/jsx-runtime");
3637
+ var LANG_LABEL = {
3638
+ tsx: "TSX",
3639
+ ts: "TS",
3640
+ css: "CSS",
3641
+ json: "JSON",
3642
+ md: "MD",
3643
+ txt: "TXT"
3644
+ };
3645
+ function LangBadge({ language }) {
3646
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("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] });
3647
+ }
3648
+ var SYNTAX_CLASS = {
3649
+ plain: "text-ink",
3650
+ comment: "text-syntax-comment italic",
3651
+ string: "text-syntax-string",
3652
+ number: "text-syntax-number",
3653
+ keyword: "text-syntax-keyword",
3654
+ function: "text-syntax-function",
3655
+ type: "text-syntax-type",
3656
+ tag: "text-syntax-tag",
3657
+ property: "text-syntax-property",
3658
+ punctuation: "text-muted"
3659
+ };
3660
+ var JS_KEYWORDS = /* @__PURE__ */ new Set([
3661
+ "import",
3662
+ "export",
3663
+ "default",
3664
+ "from",
3665
+ "const",
3666
+ "let",
3667
+ "var",
3668
+ "function",
3669
+ "return",
3670
+ "interface",
3671
+ "type",
3672
+ "extends",
3673
+ "implements",
3674
+ "class",
3675
+ "new",
3676
+ "this",
3677
+ "if",
3678
+ "else",
3679
+ "for",
3680
+ "while",
3681
+ "switch",
3682
+ "case",
3683
+ "break",
3684
+ "continue",
3685
+ "true",
3686
+ "false",
3687
+ "null",
3688
+ "undefined",
3689
+ "void",
3690
+ "async",
3691
+ "await",
3692
+ "of",
3693
+ "in",
3694
+ "as",
3695
+ "public",
3696
+ "private",
3697
+ "protected",
3698
+ "readonly",
3699
+ "static",
3700
+ "enum",
3701
+ "namespace",
3702
+ "declare",
3703
+ "try",
3704
+ "catch",
3705
+ "finally",
3706
+ "throw",
3707
+ "yield",
3708
+ "typeof",
3709
+ "instanceof",
3710
+ "super"
3711
+ ]);
3712
+ var TS_TYPES = /* @__PURE__ */ new Set([
3713
+ "string",
3714
+ "number",
3715
+ "boolean",
3716
+ "any",
3717
+ "unknown",
3718
+ "never",
3719
+ "object",
3720
+ "React",
3721
+ "Record",
3722
+ "Partial",
3723
+ "Readonly",
3724
+ "Promise",
3725
+ "HTMLDivElement",
3726
+ "HTMLButtonElement"
3727
+ ]);
3728
+ var JS_TOKEN_RE = /(\/\/.*)|('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`)|(\b\d+(?:\.\d+)?\b)|(<\/?[A-Za-z][\w.]*)|([A-Za-z_$][\w$]*)/g;
3729
+ function tokenizeJs(line) {
3730
+ const tokens = [];
3731
+ let lastIndex = 0;
3732
+ let match;
3733
+ JS_TOKEN_RE.lastIndex = 0;
3734
+ while ((match = JS_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
+ tokens.push({ text: match[1], type: "comment" });
3740
+ } else if (match[2] !== void 0) {
3741
+ tokens.push({ text: match[2], type: "string" });
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: "tag" });
3746
+ } else if (match[5] !== void 0) {
3747
+ const word = match[5];
3748
+ const after = line.slice(JS_TOKEN_RE.lastIndex).match(/^\s*\(/);
3749
+ if (JS_KEYWORDS.has(word)) {
3750
+ tokens.push({ text: word, type: "keyword" });
3751
+ } else if (TS_TYPES.has(word)) {
3752
+ tokens.push({ text: word, type: "type" });
3753
+ } else if (after) {
3754
+ tokens.push({ text: word, type: "function" });
3755
+ } else {
3756
+ tokens.push({ text: word, type: "plain" });
3757
+ }
3758
+ }
3759
+ lastIndex = JS_TOKEN_RE.lastIndex;
3760
+ }
3761
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3762
+ return tokens;
3763
+ }
3764
+ 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;
3765
+ function tokenizeCss(line) {
3766
+ const tokens = [];
3767
+ let lastIndex = 0;
3768
+ let match;
3769
+ CSS_TOKEN_RE.lastIndex = 0;
3770
+ while ((match = CSS_TOKEN_RE.exec(line)) !== null) {
3771
+ if (match.index > lastIndex) {
3772
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3773
+ }
3774
+ if (match[1] !== void 0) tokens.push({ text: match[1], type: "comment" });
3775
+ else if (match[2] !== void 0) tokens.push({ text: match[2], type: "string" });
3776
+ else if (match[3] !== void 0) tokens.push({ text: match[3], type: "keyword" });
3777
+ else if (match[4] !== void 0) tokens.push({ text: match[4], type: "number" });
3778
+ else if (match[5] !== void 0) tokens.push({ text: match[5], type: "number" });
3779
+ else if (match[6] !== void 0) tokens.push({ text: match[6], type: "property" });
3780
+ lastIndex = CSS_TOKEN_RE.lastIndex;
3781
+ }
3782
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3783
+ return tokens;
3784
+ }
3785
+ var JSON_TOKEN_RE = /("(?:\\.|[^"\\])*")(\s*:)?|(-?\d+(?:\.\d+)?)|\b(true|false|null)\b/g;
3786
+ function tokenizeJson(line) {
3787
+ const tokens = [];
3788
+ let lastIndex = 0;
3789
+ let match;
3790
+ JSON_TOKEN_RE.lastIndex = 0;
3791
+ while ((match = JSON_TOKEN_RE.exec(line)) !== null) {
3792
+ if (match.index > lastIndex) {
3793
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3794
+ }
3795
+ if (match[1] !== void 0) {
3796
+ const hasColon = match[2] !== void 0;
3797
+ tokens.push({ text: match[1], type: hasColon ? "property" : "string" });
3798
+ if (hasColon) tokens.push({ text: match[2], type: "punctuation" });
3799
+ } else if (match[3] !== void 0) {
3800
+ tokens.push({ text: match[3], type: "number" });
3801
+ } else if (match[4] !== void 0) {
3802
+ tokens.push({ text: match[4], type: "keyword" });
3803
+ }
3804
+ lastIndex = JSON_TOKEN_RE.lastIndex;
3805
+ }
3806
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3807
+ return tokens;
3808
+ }
3809
+ var MD_TOKEN_RE = /(^#{1,6}\s.*)|(`[^`]*`)/g;
3810
+ function tokenizeMd(line) {
3811
+ const tokens = [];
3812
+ let lastIndex = 0;
3813
+ let match;
3814
+ MD_TOKEN_RE.lastIndex = 0;
3815
+ while ((match = MD_TOKEN_RE.exec(line)) !== null) {
3816
+ if (match.index > lastIndex) {
3817
+ tokens.push({ text: line.slice(lastIndex, match.index), type: "plain" });
3818
+ }
3819
+ if (match[1] !== void 0) tokens.push({ text: match[1], type: "keyword" });
3820
+ else if (match[2] !== void 0) tokens.push({ text: match[2], type: "string" });
3821
+ lastIndex = MD_TOKEN_RE.lastIndex;
3822
+ }
3823
+ if (lastIndex < line.length) tokens.push({ text: line.slice(lastIndex), type: "plain" });
3824
+ return tokens;
3825
+ }
3826
+ function tokenizeLine(line, language) {
3827
+ if (line.length === 0) return [{ text: " ", type: "plain" }];
3828
+ switch (language) {
3829
+ case "tsx":
3830
+ case "ts":
3831
+ return tokenizeJs(line);
3832
+ case "css":
3833
+ return tokenizeCss(line);
3834
+ case "json":
3835
+ return tokenizeJson(line);
3836
+ case "md":
3837
+ return tokenizeMd(line);
3838
+ default:
3839
+ return [{ text: line, type: "plain" }];
3840
+ }
3841
+ }
3842
+ var CodeEditor = import_react14.default.forwardRef(
3843
+ ({
3844
+ files,
3845
+ activeFile,
3846
+ onActiveFileChange,
3847
+ folderLabel = "atoms",
3848
+ pathPrefix,
3849
+ dark = false,
3850
+ readOnly = true,
3851
+ streamingFileNames = [],
3852
+ onChange,
3853
+ onCopy,
3854
+ className = ""
3855
+ }, ref) => {
3856
+ const [copied, setCopied] = import_react14.default.useState(false);
3857
+ const [openRoot, setOpenRoot] = import_react14.default.useState(true);
3858
+ const current = files.find((f) => f.name === activeFile) ?? files[0] ?? null;
3859
+ const streaming = current ? streamingFileNames.includes(current.name) : false;
3860
+ const path = [pathPrefix, current?.name].filter(Boolean).join(" / ");
3861
+ async function copy() {
3862
+ if (!current) return;
3863
+ try {
3864
+ await navigator.clipboard.writeText(current.source);
3865
+ } catch {
3866
+ }
3867
+ setCopied(true);
3868
+ window.setTimeout(() => setCopied(false), 1200);
3869
+ onCopy?.();
3870
+ }
3871
+ const lines = (current?.source ?? "").split("\n");
3872
+ const statusLabel = streaming ? "Writing" : readOnly ? "Read-only" : "Editing";
3873
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3874
+ "div",
3875
+ {
3876
+ ref,
3877
+ "data-theme": dark ? "dark" : void 0,
3878
+ className: ["flex w-full overflow-hidden rounded-lg border border-hairline bg-canvas text-ink", className].join(" "),
3879
+ children: [
3880
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("aside", { className: "flex w-56 shrink-0 flex-col overflow-y-auto border-r border-hairline bg-canvas", children: [
3881
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-between px-lg py-md", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-caption font-weight-heading-sm uppercase tracking-widest text-muted-soft", children: "Files" }) }),
3882
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("nav", { className: "flex flex-col gap-xxs px-sm pb-lg", children: [
3883
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3884
+ Button,
3885
+ {
3886
+ type: "button",
3887
+ variant: "ghost",
3888
+ size: "sm",
3889
+ className: "w-full justify-start gap-xs px-sm py-xs text-body-sm text-muted",
3890
+ onClick: () => setOpenRoot((o) => !o),
3891
+ children: [
3892
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3893
+ Icon,
3894
+ {
3895
+ name: "chevron-down",
3896
+ className: ["h-3 w-3 shrink-0 transition-transform", openRoot ? "rotate-0" : "-rotate-90"].join(" ")
3897
+ }
3898
+ ),
3899
+ folderLabel
3900
+ ]
3901
+ }
3902
+ ),
3903
+ openRoot && files.map((f) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3904
+ Button,
3905
+ {
3906
+ type: "button",
3907
+ variant: "ghost",
3908
+ size: "sm",
3909
+ onClick: () => onActiveFileChange?.(f.name),
3910
+ "aria-current": f.name === current?.name ? "true" : void 0,
3911
+ className: [
3912
+ "w-full justify-start gap-sm py-xs pr-sm pl-lg text-body-sm",
3913
+ f.name === current?.name ? "bg-primary-disabled text-primary" : "text-body"
3914
+ ].join(" "),
3915
+ children: [
3916
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LangBadge, { language: f.language }),
3917
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "truncate", children: f.name })
3918
+ ]
3919
+ },
3920
+ f.name
3921
+ ))
3922
+ ] })
3923
+ ] }),
3924
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col overflow-hidden bg-canvas", children: [
3925
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center justify-between border-b border-hairline bg-surface-soft px-lg py-sm", children: [
3926
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex min-w-0 items-center gap-sm font-mono text-caption text-muted", children: [
3927
+ current ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(LangBadge, { language: current.language }) : null,
3928
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "truncate", children: path }),
3929
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "rounded-xs bg-surface-strong px-sm py-xxs text-caption font-weight-heading-sm uppercase tracking-wide text-muted", children: statusLabel })
3930
+ ] }),
3931
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3932
+ Button,
3933
+ {
3934
+ type: "button",
3935
+ variant: "secondary",
3936
+ size: "sm",
3937
+ onClick: () => void copy(),
3938
+ disabled: !current || streaming,
3939
+ children: [
3940
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: copied ? "check-checkmark" : "copy-clipboard", className: "h-3 w-3" }),
3941
+ copied ? "Copied" : "Copy"
3942
+ ]
3943
+ }
3944
+ )
3945
+ ] }),
3946
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex-1 overflow-auto bg-canvas", children: readOnly || streaming ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("pre", { className: "m-0 p-0 text-body-sm leading-[1.55] text-ink", children: lines.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex", children: [
3947
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "select-none px-md text-right text-caption text-muted-soft", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "inline-block min-w-[2ch]", children: i + 1 }) }),
3948
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "flex-1 whitespace-pre pr-xl font-mono", children: current ? tokenizeLine(line, current.language).map((tok, ti) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: SYNTAX_CLASS[tok.type], children: tok.text }, ti)) : line || " " })
3949
+ ] }, i)) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex min-h-full", children: [
3950
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "select-none px-md py-sm text-right text-caption text-muted-soft", children: lines.map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { children: i + 1 }, i)) }),
3951
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3952
+ "textarea",
3953
+ {
3954
+ className: "min-h-full flex-1 resize-none bg-transparent p-sm font-mono text-body-sm leading-[1.55] text-ink outline-none",
3955
+ value: current?.source ?? "",
3956
+ spellCheck: false,
3957
+ onChange: (e) => {
3958
+ if (current) onChange?.(current.name, e.target.value);
3959
+ }
3960
+ }
3961
+ )
3962
+ ] }) })
3963
+ ] })
3964
+ ]
3965
+ }
3966
+ );
3967
+ }
3968
+ );
3969
+ CodeEditor.displayName = "CodeEditor";
3970
+
3971
+ // virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
3972
+ var import_react15 = __toESM(require("react"));
3973
+ var import_jsx_runtime16 = require("react/jsx-runtime");
3585
3974
  var kindColors = {
3586
3975
  Atom: "bg-[var(--color-kind-atom-bg)] text-[var(--color-kind-atom-text)] border-[var(--color-kind-atom-border)]",
3587
3976
  Molecule: "bg-[var(--color-kind-molecule-bg)] text-[var(--color-kind-molecule-text)] border-[var(--color-kind-molecule-border)]",
@@ -3594,7 +3983,7 @@ var iconBg = {
3594
3983
  Organism: "bg-primary text-on-primary",
3595
3984
  Template: "bg-[var(--color-kind-template-bg)] text-[var(--color-kind-template-text)]"
3596
3985
  };
3597
- var ComponentCard = import_react14.default.forwardRef(
3986
+ var ComponentCard = import_react15.default.forwardRef(
3598
3987
  ({
3599
3988
  name,
3600
3989
  kind = "Organism",
@@ -3605,7 +3994,7 @@ var ComponentCard = import_react14.default.forwardRef(
3605
3994
  className,
3606
3995
  ...rest
3607
3996
  }, ref) => {
3608
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3997
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3609
3998
  "div",
3610
3999
  {
3611
4000
  ref,
@@ -3620,7 +4009,7 @@ var ComponentCard = import_react14.default.forwardRef(
3620
4009
  ].filter(Boolean).join(" "),
3621
4010
  ...rest,
3622
4011
  children: [
3623
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4012
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3624
4013
  "div",
3625
4014
  {
3626
4015
  className: [
@@ -3628,15 +4017,15 @@ var ComponentCard = import_react14.default.forwardRef(
3628
4017
  "w-full aspect-[4/3] overflow-hidden",
3629
4018
  thumbnailBg ?? "bg-surface-soft"
3630
4019
  ].join(" "),
3631
- children: thumbnailContent ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DefaultThumbnail, { kind })
4020
+ children: thumbnailContent ?? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DefaultThumbnail, { kind })
3632
4021
  }
3633
4022
  ),
3634
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
3635
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col gap-xxs min-w-0", children: [
3636
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
3637
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
4023
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
4024
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-col gap-xxs min-w-0", children: [
4025
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
4026
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
3638
4027
  ] }),
3639
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4028
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3640
4029
  "span",
3641
4030
  {
3642
4031
  className: [
@@ -3657,27 +4046,27 @@ var ComponentCard = import_react14.default.forwardRef(
3657
4046
  ComponentCard.displayName = "ComponentCard";
3658
4047
  function DefaultThumbnail({ kind }) {
3659
4048
  const icons = {
3660
- Atom: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3661
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
3662
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" }),
3663
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("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" })
4049
+ Atom: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4050
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
4051
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("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" }),
4052
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("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" })
3664
4053
  ] }),
3665
- Molecule: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3666
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
3667
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
3668
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
4054
+ Molecule: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4055
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
4056
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
4057
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
3669
4058
  ] }),
3670
- Organism: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3671
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
3672
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M2 17l10 5 10-5" }),
3673
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M2 12l10 5 10-5" })
4059
+ Organism: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4060
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
4061
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M2 17l10 5 10-5" }),
4062
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M2 12l10 5 10-5" })
3674
4063
  ] }),
3675
- Template: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
3676
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
3677
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M3 9h18M9 21V9" })
4064
+ Template: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
4065
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
4066
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M3 9h18M9 21V9" })
3678
4067
  ] })
3679
4068
  };
3680
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
4069
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3681
4070
  "div",
3682
4071
  {
3683
4072
  className: [
@@ -3690,23 +4079,23 @@ function DefaultThumbnail({ kind }) {
3690
4079
  }
3691
4080
 
3692
4081
  // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3693
- var import_react17 = __toESM(require("react"));
4082
+ var import_react18 = __toESM(require("react"));
3694
4083
 
3695
4084
  // virtual-pkg:src/atoms/Modal/Modal.tsx
3696
- var import_react15 = __toESM(require("react"));
3697
- var import_jsx_runtime15 = require("react/jsx-runtime");
4085
+ var import_react16 = __toESM(require("react"));
4086
+ var import_jsx_runtime17 = require("react/jsx-runtime");
3698
4087
  var sizeMap = {
3699
4088
  sm: "max-w-sm",
3700
4089
  md: "max-w-lg",
3701
4090
  lg: "max-w-2xl",
3702
4091
  xl: "max-w-4xl"
3703
4092
  };
3704
- var Modal = import_react15.default.forwardRef(
4093
+ var Modal = import_react16.default.forwardRef(
3705
4094
  ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
3706
- const [mounted, setMounted] = (0, import_react15.useState)(false);
3707
- const [visible, setVisible] = (0, import_react15.useState)(false);
3708
- const overlayRef = (0, import_react15.useRef)(null);
3709
- (0, import_react15.useEffect)(() => {
4095
+ const [mounted, setMounted] = (0, import_react16.useState)(false);
4096
+ const [visible, setVisible] = (0, import_react16.useState)(false);
4097
+ const overlayRef = (0, import_react16.useRef)(null);
4098
+ (0, import_react16.useEffect)(() => {
3710
4099
  if (isOpen) {
3711
4100
  setMounted(true);
3712
4101
  const raf = requestAnimationFrame(() => {
@@ -3719,7 +4108,7 @@ var Modal = import_react15.default.forwardRef(
3719
4108
  return () => clearTimeout(timer);
3720
4109
  }
3721
4110
  }, [isOpen]);
3722
- (0, import_react15.useEffect)(() => {
4111
+ (0, import_react16.useEffect)(() => {
3723
4112
  if (!mounted) return;
3724
4113
  const handleKey = (e) => {
3725
4114
  if (e.key === "Escape") onClose();
@@ -3731,7 +4120,7 @@ var Modal = import_react15.default.forwardRef(
3731
4120
  const handleBackdropClick = (e) => {
3732
4121
  if (e.target === overlayRef.current) onClose();
3733
4122
  };
3734
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4123
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3735
4124
  "div",
3736
4125
  {
3737
4126
  ref: overlayRef,
@@ -3746,7 +4135,7 @@ var Modal = import_react15.default.forwardRef(
3746
4135
  visible ? "opacity-100" : "opacity-0"
3747
4136
  ].join(" "),
3748
4137
  style: { zIndex: "var(--z-modal, 1000)" },
3749
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
4138
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3750
4139
  "div",
3751
4140
  {
3752
4141
  ref,
@@ -3759,9 +4148,9 @@ var Modal = import_react15.default.forwardRef(
3759
4148
  visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
3760
4149
  ].join(" "),
3761
4150
  children: [
3762
- title && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
3763
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
3764
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
4151
+ title && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
4152
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
4153
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3765
4154
  Button,
3766
4155
  {
3767
4156
  variant: "ghost",
@@ -3769,7 +4158,7 @@ var Modal = import_react15.default.forwardRef(
3769
4158
  "aria-label": "Close modal",
3770
4159
  onClick: onClose,
3771
4160
  className: "!px-xs !py-xs",
3772
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
4161
+ children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3773
4162
  "svg",
3774
4163
  {
3775
4164
  xmlns: "http://www.w3.org/2000/svg",
@@ -3783,16 +4172,16 @@ var Modal = import_react15.default.forwardRef(
3783
4172
  strokeLinejoin: "round",
3784
4173
  "aria-hidden": "true",
3785
4174
  children: [
3786
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3787
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
4175
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
4176
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3788
4177
  ]
3789
4178
  }
3790
4179
  )
3791
4180
  }
3792
4181
  )
3793
4182
  ] }),
3794
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
3795
- footer && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
4183
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
4184
+ footer && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
3796
4185
  ]
3797
4186
  }
3798
4187
  )
@@ -3803,8 +4192,8 @@ var Modal = import_react15.default.forwardRef(
3803
4192
  Modal.displayName = "Modal";
3804
4193
 
3805
4194
  // virtual-pkg:src/atoms/Typography/Typography.tsx
3806
- var import_react16 = __toESM(require("react"));
3807
- var import_jsx_runtime16 = require("react/jsx-runtime");
4195
+ var import_react17 = __toESM(require("react"));
4196
+ var import_jsx_runtime18 = require("react/jsx-runtime");
3808
4197
  var roleTagMap = {
3809
4198
  "display-lg": "h1",
3810
4199
  "heading-lg": "h2",
@@ -3836,7 +4225,7 @@ var colorClassMap = {
3836
4225
  "semantic-warning": "text-semantic-warning",
3837
4226
  "on-primary": "text-on-primary"
3838
4227
  };
3839
- var Typography = import_react16.default.forwardRef(
4228
+ var Typography = import_react17.default.forwardRef(
3840
4229
  ({
3841
4230
  role = "body-md",
3842
4231
  color = "ink",
@@ -3855,13 +4244,13 @@ var Typography = import_react16.default.forwardRef(
3855
4244
  uppercase ? "uppercase tracking-wide" : "",
3856
4245
  className
3857
4246
  ].filter(Boolean).join(" ");
3858
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Tag, { ref, className: classes, ...rest, children });
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Tag, { ref, className: classes, ...rest, children });
3859
4248
  }
3860
4249
  );
3861
4250
  Typography.displayName = "Typography";
3862
4251
 
3863
4252
  // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3864
- var import_jsx_runtime17 = require("react/jsx-runtime");
4253
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3865
4254
  var defaultLines = [
3866
4255
  { text: "# Design System", tone: "heading" },
3867
4256
  { text: "" },
@@ -3890,7 +4279,7 @@ var defaultLines = [
3890
4279
  { text: "muted: {colors.muted}" },
3891
4280
  { text: "hairline: {colors.hairline}" }
3892
4281
  ];
3893
- var CloudIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4282
+ var CloudIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3894
4283
  "svg",
3895
4284
  {
3896
4285
  viewBox: "0 0 24 24",
@@ -3903,12 +4292,12 @@ var CloudIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3903
4292
  strokeLinejoin: "round",
3904
4293
  "aria-hidden": "true",
3905
4294
  children: [
3906
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16" }),
3907
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M8 19h9.5" })
4295
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16" }),
4296
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M8 19h9.5" })
3908
4297
  ]
3909
4298
  }
3910
4299
  );
3911
- var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4300
+ var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3912
4301
  "svg",
3913
4302
  {
3914
4303
  viewBox: "0 0 24 24",
@@ -3921,13 +4310,13 @@ var LinkIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3921
4310
  strokeLinejoin: "round",
3922
4311
  "aria-hidden": "true",
3923
4312
  children: [
3924
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
3925
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
3926
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4313
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4314
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4315
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
3927
4316
  ]
3928
4317
  }
3929
4318
  );
3930
- var CopyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4319
+ var CopyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3931
4320
  "svg",
3932
4321
  {
3933
4322
  viewBox: "0 0 24 24",
@@ -3940,12 +4329,12 @@ var CopyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3940
4329
  strokeLinejoin: "round",
3941
4330
  "aria-hidden": "true",
3942
4331
  children: [
3943
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
3944
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
4332
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
4333
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
3945
4334
  ]
3946
4335
  }
3947
4336
  );
3948
- var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4337
+ var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3949
4338
  "svg",
3950
4339
  {
3951
4340
  viewBox: "0 0 24 24",
@@ -3958,13 +4347,13 @@ var DownloadIcon = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3958
4347
  strokeLinejoin: "round",
3959
4348
  "aria-hidden": "true",
3960
4349
  children: [
3961
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M12 3v12" }),
3962
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M7 10l5 5 5-5" }),
3963
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("path", { d: "M5 21h14" })
4350
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 3v12" }),
4351
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M7 10l5 5 5-5" }),
4352
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M5 21h14" })
3964
4353
  ]
3965
4354
  }
3966
4355
  );
3967
- var SpinnerIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4356
+ var SpinnerIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
3968
4357
  "svg",
3969
4358
  {
3970
4359
  viewBox: "0 0 24 24",
@@ -3974,7 +4363,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3974
4363
  className: "animate-spin text-primary",
3975
4364
  "aria-hidden": "true",
3976
4365
  children: [
3977
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4366
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3978
4367
  "circle",
3979
4368
  {
3980
4369
  cx: "12",
@@ -3985,7 +4374,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3985
4374
  strokeOpacity: "0.25"
3986
4375
  }
3987
4376
  ),
3988
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4377
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3989
4378
  "path",
3990
4379
  {
3991
4380
  d: "M21 12a9 9 0 0 0-9-9",
@@ -3997,7 +4386,7 @@ var SpinnerIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
3997
4386
  ]
3998
4387
  }
3999
4388
  );
4000
- var ExportDesignMdModal = import_react17.default.forwardRef(
4389
+ var ExportDesignMdModal = import_react18.default.forwardRef(
4001
4390
  ({
4002
4391
  isOpen,
4003
4392
  onClose,
@@ -4010,7 +4399,7 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4010
4399
  lines = defaultLines,
4011
4400
  loading = false
4012
4401
  }, ref) => {
4013
- const [source, setSource] = (0, import_react17.useState)(defaultSource);
4402
+ const [source, setSource] = (0, import_react18.useState)(defaultSource);
4014
4403
  const changeSource = (next) => {
4015
4404
  setSource(next);
4016
4405
  onSourceChange?.(next);
@@ -4023,7 +4412,7 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4023
4412
  }
4024
4413
  onCopy?.();
4025
4414
  };
4026
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4415
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4027
4416
  Modal,
4028
4417
  {
4029
4418
  ref,
@@ -4031,49 +4420,49 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4031
4420
  onClose,
4032
4421
  title: "Export DESIGN.md",
4033
4422
  size: "xl",
4034
- footer: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
4035
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
4036
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DownloadIcon, {}),
4423
+ footer: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex w-full items-center justify-between", children: [
4424
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
4425
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(DownloadIcon, {}),
4037
4426
  "Download .md"
4038
4427
  ] }),
4039
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center gap-sm", children: [
4040
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
4041
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Button, { variant: "primary", onClick: onExport, children: "Export" })
4428
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-sm", children: [
4429
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
4430
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { variant: "primary", onClick: onExport, children: "Export" })
4042
4431
  ] })
4043
4432
  ] }),
4044
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full space-y-lg", children: [
4045
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
4046
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
4047
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
4048
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4433
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "w-full space-y-lg", children: [
4434
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
4435
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
4436
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
4437
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4049
4438
  Button,
4050
4439
  {
4051
4440
  variant: source === "production" ? "primary" : "ghost",
4052
4441
  size: "sm",
4053
4442
  onClick: () => changeSource("production"),
4054
4443
  children: [
4055
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloudIcon, {}),
4444
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CloudIcon, {}),
4056
4445
  "Production"
4057
4446
  ]
4058
4447
  }
4059
4448
  ),
4060
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4449
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4061
4450
  Button,
4062
4451
  {
4063
4452
  variant: source === "local" ? "primary" : "ghost",
4064
4453
  size: "sm",
4065
4454
  onClick: () => changeSource("local"),
4066
4455
  children: [
4067
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LinkIcon, {}),
4456
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(LinkIcon, {}),
4068
4457
  "Local (npm link)"
4069
4458
  ]
4070
4459
  }
4071
4460
  )
4072
4461
  ] }),
4073
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", className: "flex-1 min-w-[16rem]", children: source === "production" ? "Consumer apps install from the public npm registry ('npm install')." : "Consumer apps resolve the package via a local 'npm link' during development." })
4462
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-sm", color: "muted", className: "flex-1 min-w-[16rem]", children: source === "production" ? "Consumer apps install from the public npm registry ('npm install')." : "Consumer apps resolve the package via a local 'npm link' during development." })
4074
4463
  ] }),
4075
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { children: [
4076
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4464
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
4465
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4077
4466
  Typography,
4078
4467
  {
4079
4468
  role: "caption",
@@ -4083,8 +4472,8 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4083
4472
  children: "Preview"
4084
4473
  }
4085
4474
  ),
4086
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
4087
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4475
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
4476
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4088
4477
  Button,
4089
4478
  {
4090
4479
  variant: "secondary",
@@ -4092,14 +4481,14 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4092
4481
  onClick: handleCopy,
4093
4482
  className: "absolute top-sm right-sm",
4094
4483
  children: [
4095
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CopyIcon, {}),
4484
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CopyIcon, {}),
4096
4485
  "Copy"
4097
4486
  ]
4098
4487
  }
4099
4488
  ),
4100
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex gap-md", children: [
4101
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
4102
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4489
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex gap-md", children: [
4490
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
4491
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4103
4492
  "span",
4104
4493
  {
4105
4494
  className: line.tone === "heading" ? "text-primary font-weight-heading-sm" : "text-body",
@@ -4107,7 +4496,7 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4107
4496
  }
4108
4497
  )
4109
4498
  ] }, i)) }),
4110
- loading ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
4499
+ loading ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4111
4500
  "div",
4112
4501
  {
4113
4502
  role: "status",
@@ -4115,21 +4504,21 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4115
4504
  "aria-label": "Loading preview",
4116
4505
  className: "absolute inset-0 flex items-center justify-center gap-sm bg-canvas opacity-90",
4117
4506
  children: [
4118
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(SpinnerIcon2, {}),
4119
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
4507
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SpinnerIcon2, {}),
4508
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-sm", color: "muted", children: "Loading preview\u2026" })
4120
4509
  ]
4121
4510
  }
4122
4511
  ) : null
4123
4512
  ] })
4124
4513
  ] }),
4125
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full space-y-sm", children: [
4126
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4127
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(CloudIcon, {}) }),
4128
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "min-w-0 flex-1", children: [
4129
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
4130
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
4514
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "w-full space-y-sm", children: [
4515
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4516
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CloudIcon, {}) }),
4517
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "min-w-0 flex-1", children: [
4518
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
4519
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
4131
4520
  ] }),
4132
- source === "production" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4521
+ source === "production" ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4133
4522
  Button,
4134
4523
  {
4135
4524
  variant: "secondary",
@@ -4139,13 +4528,13 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4139
4528
  }
4140
4529
  )
4141
4530
  ] }),
4142
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4143
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-muted", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(LinkIcon, {}) }),
4144
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "min-w-0 flex-1", children: [
4145
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
4146
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
4531
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
4532
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-muted", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(LinkIcon, {}) }),
4533
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "min-w-0 flex-1", children: [
4534
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
4535
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
4147
4536
  ] }),
4148
- source === "local" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
4537
+ source === "local" ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4149
4538
  Button,
4150
4539
  {
4151
4540
  variant: "secondary",
@@ -4164,11 +4553,11 @@ var ExportDesignMdModal = import_react17.default.forwardRef(
4164
4553
  ExportDesignMdModal.displayName = "ExportDesignMdModal";
4165
4554
 
4166
4555
  // virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
4167
- var import_react18 = __toESM(require("react"));
4168
- var import_jsx_runtime18 = require("react/jsx-runtime");
4169
- var FilterTabBar = import_react18.default.forwardRef(
4556
+ var import_react19 = __toESM(require("react"));
4557
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4558
+ var FilterTabBar = import_react19.default.forwardRef(
4170
4559
  ({ tabs, value, onChange, className = "", ...rest }, ref) => {
4171
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4560
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4172
4561
  "div",
4173
4562
  {
4174
4563
  ref,
@@ -4182,7 +4571,8 @@ var FilterTabBar = import_react18.default.forwardRef(
4182
4571
  ...rest,
4183
4572
  children: tabs.map((tab) => {
4184
4573
  const isActive = tab.value === value;
4185
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4574
+ const isIconOnly = Boolean(tab.icon) && !tab.label;
4575
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4186
4576
  Button,
4187
4577
  {
4188
4578
  role: "tab",
@@ -4191,11 +4581,11 @@ var FilterTabBar = import_react18.default.forwardRef(
4191
4581
  variant: isActive ? "primary" : "ghost",
4192
4582
  size: "sm",
4193
4583
  onClick: () => onChange(tab.value),
4194
- className: "gap-xs",
4584
+ className: isIconOnly ? "gap-xs p-xs aspect-square leading-none" : "gap-xs",
4195
4585
  children: [
4196
- tab.icon && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4197
- tab.label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: tab.label }),
4198
- tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4586
+ tab.icon && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4587
+ tab.label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: tab.label }),
4588
+ tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4199
4589
  "span",
4200
4590
  {
4201
4591
  className: [
@@ -4221,20 +4611,20 @@ var FilterTabBar = import_react18.default.forwardRef(
4221
4611
  FilterTabBar.displayName = "FilterTabBar";
4222
4612
 
4223
4613
  // virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
4224
- var import_react19 = __toESM(require("react"));
4225
- var import_jsx_runtime19 = require("react/jsx-runtime");
4226
- var HomeIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
4227
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4228
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("polyline", { points: "9 22 9 12 15 12 15 22" })
4614
+ var import_react20 = __toESM(require("react"));
4615
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4616
+ var HomeIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
4617
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4618
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("polyline", { points: "9 22 9 12 15 12 15 22" })
4229
4619
  ] });
4230
- var FolderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
4231
- var LogoIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4232
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
4233
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
4234
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
4620
+ var FolderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
4621
+ var LogoIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4622
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
4623
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
4624
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
4235
4625
  ] });
4236
- var SparkleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
4237
- var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4626
+ var SparkleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
4627
+ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4238
4628
  Button,
4239
4629
  {
4240
4630
  type: "button",
@@ -4252,11 +4642,11 @@ var DEFAULT_MODELS = [
4252
4642
  ];
4253
4643
  var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
4254
4644
  var NAV_ENTRIES = [
4255
- { id: "home", label: "Home", icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(HomeIcon2, {}) },
4645
+ { id: "home", label: "Home", icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(HomeIcon2, {}) },
4256
4646
  {
4257
4647
  id: "projects",
4258
4648
  label: "All projects",
4259
- icon: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(FolderIcon, {}),
4649
+ icon: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FolderIcon, {}),
4260
4650
  subItems: [
4261
4651
  { id: "proj-1", label: "Design system" },
4262
4652
  { id: "proj-2", label: "Landing page" },
@@ -4276,7 +4666,7 @@ var GRADIENT_BG = `
4276
4666
  radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
4277
4667
  var(--color-canvas)
4278
4668
  `;
4279
- var HomePageTemplate = import_react19.default.forwardRef(
4669
+ var HomePageTemplate = import_react20.default.forwardRef(
4280
4670
  ({
4281
4671
  userName = "Hello Designer",
4282
4672
  userInitials = "N",
@@ -4301,8 +4691,8 @@ var HomePageTemplate = import_react19.default.forwardRef(
4301
4691
  className,
4302
4692
  style
4303
4693
  }, ref) => {
4304
- const [internalPrompt, setInternalPrompt] = import_react19.default.useState("");
4305
- const [internalActiveId, setInternalActiveId] = import_react19.default.useState("home");
4694
+ const [internalPrompt, setInternalPrompt] = import_react20.default.useState("");
4695
+ const [internalActiveId, setInternalActiveId] = import_react20.default.useState("home");
4306
4696
  const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
4307
4697
  const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
4308
4698
  const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
@@ -4325,14 +4715,14 @@ var HomePageTemplate = import_react19.default.forwardRef(
4325
4715
  if (activeIdProp === void 0) setInternalActiveId(id);
4326
4716
  onSelect?.(id);
4327
4717
  };
4328
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4718
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4329
4719
  "div",
4330
4720
  {
4331
4721
  ref,
4332
4722
  className: ["flex w-full", className].filter(Boolean).join(" "),
4333
4723
  style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
4334
4724
  children: [
4335
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4725
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4336
4726
  AppSidebar,
4337
4727
  {
4338
4728
  workspaceName: userName,
@@ -4352,14 +4742,14 @@ var HomePageTemplate = import_react19.default.forwardRef(
4352
4742
  style: { height: "100%" }
4353
4743
  }
4354
4744
  ) }),
4355
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4745
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4356
4746
  "main",
4357
4747
  {
4358
4748
  className: "flex-1 relative flex flex-col overflow-hidden",
4359
4749
  style: { height: "100%" },
4360
4750
  "aria-label": "Home canvas",
4361
4751
  children: [
4362
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4752
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4363
4753
  "div",
4364
4754
  {
4365
4755
  "aria-hidden": "true",
@@ -4367,9 +4757,9 @@ var HomePageTemplate = import_react19.default.forwardRef(
4367
4757
  style: { background: GRADIENT_BG }
4368
4758
  }
4369
4759
  ),
4370
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4371
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-sm", children: [
4372
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4760
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4761
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-sm", children: [
4762
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4373
4763
  AppSidebarMobile,
4374
4764
  {
4375
4765
  brandName: "Atoms",
@@ -4386,12 +4776,12 @@ var HomePageTemplate = import_react19.default.forwardRef(
4386
4776
  onDarkModeToggle
4387
4777
  }
4388
4778
  ),
4389
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-xs", children: [
4390
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(LogoIcon3, {}),
4391
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4779
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-xs", children: [
4780
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LogoIcon3, {}),
4781
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4392
4782
  ] })
4393
4783
  ] }),
4394
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4784
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4395
4785
  "span",
4396
4786
  {
4397
4787
  className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
@@ -4401,8 +4791,8 @@ var HomePageTemplate = import_react19.default.forwardRef(
4401
4791
  }
4402
4792
  )
4403
4793
  ] }),
4404
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
4405
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4794
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
4795
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4406
4796
  Button,
4407
4797
  {
4408
4798
  variant: "secondary",
@@ -4410,13 +4800,13 @@ var HomePageTemplate = import_react19.default.forwardRef(
4410
4800
  "aria-label": "New design system",
4411
4801
  className: "!rounded-full flex items-center gap-xs",
4412
4802
  children: [
4413
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SparkleIcon, {}),
4803
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SparkleIcon, {}),
4414
4804
  "New design system"
4415
4805
  ]
4416
4806
  }
4417
4807
  ),
4418
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "text-center flex flex-col gap-sm", children: [
4419
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4808
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "text-center flex flex-col gap-sm", children: [
4809
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4420
4810
  "h1",
4421
4811
  {
4422
4812
  className: "text-ink",
@@ -4429,12 +4819,12 @@ var HomePageTemplate = import_react19.default.forwardRef(
4429
4819
  },
4430
4820
  children: [
4431
4821
  "What atom should we",
4432
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("br", {}),
4822
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("br", {}),
4433
4823
  "build?"
4434
4824
  ]
4435
4825
  }
4436
4826
  ),
4437
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4827
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4438
4828
  "p",
4439
4829
  {
4440
4830
  className: "text-muted text-body-sm md:text-body-md",
@@ -4443,7 +4833,7 @@ var HomePageTemplate = import_react19.default.forwardRef(
4443
4833
  }
4444
4834
  )
4445
4835
  ] }),
4446
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4836
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4447
4837
  PromptInputBar,
4448
4838
  {
4449
4839
  placeholder: "Describe an atom or design token to create...",
@@ -4459,13 +4849,13 @@ var HomePageTemplate = import_react19.default.forwardRef(
4459
4849
  onModelChange
4460
4850
  }
4461
4851
  ) }),
4462
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4852
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4463
4853
  "div",
4464
4854
  {
4465
4855
  className: "flex flex-wrap justify-center gap-sm",
4466
4856
  role: "list",
4467
4857
  "aria-label": "Suggested prompts",
4468
- children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4858
+ children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4469
4859
  }
4470
4860
  )
4471
4861
  ] }) })
@@ -4480,39 +4870,39 @@ var HomePageTemplate = import_react19.default.forwardRef(
4480
4870
  HomePageTemplate.displayName = "HomePageTemplate";
4481
4871
 
4482
4872
  // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
4483
- var import_react20 = __toESM(require("react"));
4484
- var import_jsx_runtime20 = require("react/jsx-runtime");
4485
- var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4486
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4487
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M8 21h8M12 17v4" })
4873
+ var import_react21 = __toESM(require("react"));
4874
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4875
+ var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4876
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4877
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M8 21h8M12 17v4" })
4488
4878
  ] });
4489
- var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4490
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4491
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4879
+ var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4880
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4881
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4492
4882
  ] });
4493
- var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4494
- var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4495
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4496
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M12 8v4l3 3" }),
4497
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4883
+ var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4884
+ var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4885
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4886
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M12 8v4l3 3" }),
4887
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4498
4888
  ] });
4499
- var MoonIcon4 = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4500
- var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4501
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("polyline", { points: "15 3 21 3 21 9" }),
4502
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("polyline", { points: "9 21 3 21 3 15" }),
4503
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4504
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4889
+ var MoonIcon4 = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4890
+ var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4891
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("polyline", { points: "15 3 21 3 21 9" }),
4892
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("polyline", { points: "9 21 3 21 3 15" }),
4893
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4894
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4505
4895
  ] });
4506
- var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4507
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
4508
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
4509
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
4896
+ var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4897
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
4898
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
4899
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
4510
4900
  ] });
4511
4901
  var VIEWPORT_OPTIONS = [
4512
4902
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4513
4903
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4514
4904
  ];
4515
- var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4905
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4516
4906
  Button,
4517
4907
  {
4518
4908
  variant: active ? "primary" : "ghost",
@@ -4524,7 +4914,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0,
4524
4914
  children
4525
4915
  }
4526
4916
  );
4527
- var PreviewToolbar = import_react20.default.forwardRef(
4917
+ var PreviewToolbar = import_react21.default.forwardRef(
4528
4918
  ({
4529
4919
  viewport = "desktop",
4530
4920
  onViewportChange,
@@ -4539,7 +4929,7 @@ var PreviewToolbar = import_react20.default.forwardRef(
4539
4929
  kindLabel = "ATOM",
4540
4930
  onOverflow,
4541
4931
  className = ""
4542
- }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4932
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4543
4933
  "div",
4544
4934
  {
4545
4935
  ref,
@@ -4553,24 +4943,24 @@ var PreviewToolbar = import_react20.default.forwardRef(
4553
4943
  className
4554
4944
  ].filter(Boolean).join(" "),
4555
4945
  children: [
4556
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4946
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4557
4947
  "div",
4558
4948
  {
4559
4949
  role: "group",
4560
4950
  "aria-label": "Viewport size",
4561
4951
  className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
4562
4952
  children: [
4563
- VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4953
+ VIEWPORT_OPTIONS.map(({ id, Icon: Icon2, label }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4564
4954
  ViewportBtn,
4565
4955
  {
4566
4956
  label,
4567
4957
  active: !expanded && viewport === id,
4568
4958
  onClick: () => onViewportChange?.(id),
4569
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon, {})
4959
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon2, {})
4570
4960
  },
4571
4961
  id
4572
4962
  )),
4573
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4963
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4574
4964
  Button,
4575
4965
  {
4576
4966
  variant: expanded ? "primary" : "ghost",
@@ -4582,14 +4972,14 @@ var PreviewToolbar = import_react20.default.forwardRef(
4582
4972
  "!w-8 !h-8 !p-0 rounded-sm shrink-0",
4583
4973
  expanded ? "" : "text-muted"
4584
4974
  ].join(" "),
4585
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandIcon, {})
4975
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ExpandIcon, {})
4586
4976
  }
4587
4977
  )
4588
4978
  ]
4589
4979
  }
4590
4980
  ),
4591
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
4592
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4981
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
4982
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4593
4983
  Button,
4594
4984
  {
4595
4985
  variant: inspecting ? "primary" : "secondary",
@@ -4598,12 +4988,12 @@ var PreviewToolbar = import_react20.default.forwardRef(
4598
4988
  onClick: onInspectTokens,
4599
4989
  className: "gap-xs rounded-xl",
4600
4990
  children: [
4601
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(InspectIcon, {}),
4991
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(InspectIcon, {}),
4602
4992
  inspecting ? "Exit inspect" : "Inspect tokens"
4603
4993
  ]
4604
4994
  }
4605
4995
  ),
4606
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4996
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4607
4997
  Button,
4608
4998
  {
4609
4999
  variant: darkMode ? "primary" : "secondary",
@@ -4612,12 +5002,12 @@ var PreviewToolbar = import_react20.default.forwardRef(
4612
5002
  onClick: onDarkToggle,
4613
5003
  className: "gap-xs rounded-xl",
4614
5004
  children: [
4615
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(MoonIcon4, {}),
5005
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MoonIcon4, {}),
4616
5006
  "Dark"
4617
5007
  ]
4618
5008
  }
4619
5009
  ),
4620
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
5010
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4621
5011
  Button,
4622
5012
  {
4623
5013
  variant: "secondary",
@@ -4625,12 +5015,12 @@ var PreviewToolbar = import_react20.default.forwardRef(
4625
5015
  onClick: onFullscreen,
4626
5016
  className: "gap-xs rounded-xl",
4627
5017
  children: [
4628
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(FullscreenIcon, {}),
5018
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FullscreenIcon, {}),
4629
5019
  "Fullscreen"
4630
5020
  ]
4631
5021
  }
4632
5022
  ),
4633
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5023
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4634
5024
  Chip,
4635
5025
  {
4636
5026
  label: modelLabel ?? "",
@@ -4639,7 +5029,7 @@ var PreviewToolbar = import_react20.default.forwardRef(
4639
5029
  className: "border-primary text-primary bg-canvas cursor-default select-none"
4640
5030
  }
4641
5031
  ),
4642
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5032
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4643
5033
  Chip,
4644
5034
  {
4645
5035
  label: kindLabel ?? "",
@@ -4648,7 +5038,7 @@ var PreviewToolbar = import_react20.default.forwardRef(
4648
5038
  className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
4649
5039
  }
4650
5040
  ),
4651
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
5041
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4652
5042
  Button,
4653
5043
  {
4654
5044
  variant: "ghost",
@@ -4656,7 +5046,7 @@ var PreviewToolbar = import_react20.default.forwardRef(
4656
5046
  "aria-label": "More options",
4657
5047
  onClick: onOverflow,
4658
5048
  className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
4659
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DotsIcon, {})
5049
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DotsIcon, {})
4660
5050
  }
4661
5051
  )
4662
5052
  ] })
@@ -4667,39 +5057,39 @@ var PreviewToolbar = import_react20.default.forwardRef(
4667
5057
  PreviewToolbar.displayName = "PreviewToolbar";
4668
5058
 
4669
5059
  // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
4670
- var import_react21 = __toESM(require("react"));
4671
- var import_jsx_runtime21 = require("react/jsx-runtime");
4672
- var GlobeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4673
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4674
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M3 12h18" }),
4675
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
4676
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
5060
+ var import_react22 = __toESM(require("react"));
5061
+ var import_jsx_runtime23 = require("react/jsx-runtime");
5062
+ var GlobeIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5063
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
5064
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M3 12h18" }),
5065
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
5066
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
4677
5067
  ] });
4678
- var LinkIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4679
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4680
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4681
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
5068
+ var LinkIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5069
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
5070
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
5071
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4682
5072
  ] });
4683
- var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
4684
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
4685
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "7.5", r: "1.15" }),
4686
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
5073
+ var InfoIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
5074
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
5075
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "7.5", r: "1.15" }),
5076
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
4687
5077
  ] });
4688
- var CheckCircleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4689
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
4690
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
5078
+ var CheckCircleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5079
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
5080
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
4691
5081
  ] });
4692
- var LockIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4693
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
4694
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
5082
+ var LockIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5083
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
5084
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
4695
5085
  ] });
4696
- var RefreshIcon = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4697
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M4 4v5h5" }),
4698
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M20 20v-5h-5" }),
4699
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
4700
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
5086
+ var RefreshIcon = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
5087
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M4 4v5h5" }),
5088
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M20 20v-5h-5" }),
5089
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
5090
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
4701
5091
  ] });
4702
- var ChevronIcon3 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5092
+ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4703
5093
  "svg",
4704
5094
  {
4705
5095
  viewBox: "0 0 24 24",
@@ -4712,19 +5102,19 @@ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4712
5102
  strokeLinejoin: "round",
4713
5103
  "aria-hidden": "true",
4714
5104
  className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
4715
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M9 6l6 6-6 6" })
5105
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M9 6l6 6-6 6" })
4716
5106
  }
4717
5107
  );
4718
- var SpinnerIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
4719
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
4720
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
5108
+ var SpinnerIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", "aria-hidden": "true", className: "animate-spin", children: [
5109
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "12", cy: "12", r: "9", stroke: "currentColor", strokeWidth: "2", opacity: "0.25" }),
5110
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("path", { d: "M21 12a9 9 0 0 0-9-9", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" })
4721
5111
  ] });
4722
5112
  function bumpMinor(version) {
4723
5113
  const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
4724
5114
  const [major = 0, minor = 0] = parts;
4725
5115
  return `${major}.${minor + 1}.0`;
4726
5116
  }
4727
- var PublishModal = import_react21.default.forwardRef(
5117
+ var PublishModal = import_react22.default.forwardRef(
4728
5118
  ({
4729
5119
  isOpen,
4730
5120
  onClose,
@@ -4735,12 +5125,12 @@ var PublishModal = import_react21.default.forwardRef(
4735
5125
  defaultTarget = "production",
4736
5126
  loading = false
4737
5127
  }, ref) => {
4738
- const [target, setTarget] = (0, import_react21.useState)(defaultTarget);
4739
- const [nextVersion, setNextVersion] = (0, import_react21.useState)(
5128
+ const [target, setTarget] = (0, import_react22.useState)(defaultTarget);
5129
+ const [nextVersion, setNextVersion] = (0, import_react22.useState)(
4740
5130
  defaultNextVersion ?? bumpMinor(currentVersion)
4741
5131
  );
4742
- const [notesOpen, setNotesOpen] = (0, import_react21.useState)(false);
4743
- const [notes, setNotes] = (0, import_react21.useState)("");
5132
+ const [notesOpen, setNotesOpen] = (0, import_react22.useState)(false);
5133
+ const [notes, setNotes] = (0, import_react22.useState)("");
4744
5134
  const isProduction = target === "production";
4745
5135
  const summaryItems = isProduction ? [
4746
5136
  { title: "Package validated", desc: "All required fields are valid." },
@@ -4753,7 +5143,7 @@ var PublishModal = import_react21.default.forwardRef(
4753
5143
  ];
4754
5144
  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.";
4755
5145
  const handlePublish = () => onPublish?.(target, nextVersion);
4756
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5146
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4757
5147
  Modal,
4758
5148
  {
4759
5149
  ref,
@@ -4761,32 +5151,32 @@ var PublishModal = import_react21.default.forwardRef(
4761
5151
  onClose,
4762
5152
  title: "Publish package",
4763
5153
  size: "lg",
4764
- footer: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex w-full items-center justify-end gap-sm", children: [
4765
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
4766
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5154
+ footer: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex w-full items-center justify-end gap-sm", children: [
5155
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { variant: "secondary", onClick: onClose, disabled: loading, children: "Cancel" }),
5156
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4767
5157
  Button,
4768
5158
  {
4769
5159
  variant: "primary",
4770
5160
  onClick: handlePublish,
4771
5161
  disabled: loading,
4772
5162
  "aria-busy": loading,
4773
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
4774
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SpinnerIcon3, {}),
5163
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
5164
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SpinnerIcon3, {}),
4775
5165
  isProduction ? "Publishing\u2026" : "Linking\u2026"
4776
5166
  ] }) : isProduction ? "Publish to npm registry" : "Publish locally (npm link)"
4777
5167
  }
4778
5168
  )
4779
5169
  ] }),
4780
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full space-y-lg", children: [
4781
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
4782
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5170
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "w-full space-y-lg", children: [
5171
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
5172
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4783
5173
  "div",
4784
5174
  {
4785
5175
  role: "tablist",
4786
5176
  "aria-label": "Publish target",
4787
5177
  className: "flex items-center gap-lg border-b border-hairline",
4788
5178
  children: [
4789
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5179
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4790
5180
  Button,
4791
5181
  {
4792
5182
  type: "button",
@@ -4801,12 +5191,12 @@ var PublishModal = import_react21.default.forwardRef(
4801
5191
  isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4802
5192
  ].join(" "),
4803
5193
  children: [
4804
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(GlobeIcon, {}),
5194
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(GlobeIcon, {}),
4805
5195
  "Production (npm registry)"
4806
5196
  ]
4807
5197
  }
4808
5198
  ),
4809
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5199
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4810
5200
  Button,
4811
5201
  {
4812
5202
  type: "button",
@@ -4821,7 +5211,7 @@ var PublishModal = import_react21.default.forwardRef(
4821
5211
  !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4822
5212
  ].join(" "),
4823
5213
  children: [
4824
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LinkIcon2, {}),
5214
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(LinkIcon2, {}),
4825
5215
  "Local (npm link)"
4826
5216
  ]
4827
5217
  }
@@ -4829,24 +5219,24 @@ var PublishModal = import_react21.default.forwardRef(
4829
5219
  ]
4830
5220
  }
4831
5221
  ),
4832
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
4833
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4834
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
4835
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4836
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
4837
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
5222
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
5223
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
5224
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
5225
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-xxs", children: [
5226
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
5227
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-md text-ink font-mono", children: packageName })
4838
5228
  ] }),
4839
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4840
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
4841
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-xs", children: [
4842
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
4843
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
5229
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-xxs", children: [
5230
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
5231
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-xs", children: [
5232
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
5233
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Chip, { label: "Latest", variant: "primary", size: "sm" })
4844
5234
  ] })
4845
5235
  ] }),
4846
- isProduction ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4847
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
4848
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-xs", children: [
4849
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5236
+ isProduction ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-xxs", children: [
5237
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
5238
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-xs", children: [
5239
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4850
5240
  Input,
4851
5241
  {
4852
5242
  "aria-label": "Next version",
@@ -4856,7 +5246,7 @@ var PublishModal = import_react21.default.forwardRef(
4856
5246
  disabled: loading
4857
5247
  }
4858
5248
  ),
4859
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5249
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4860
5250
  Button,
4861
5251
  {
4862
5252
  variant: "secondary",
@@ -4865,19 +5255,19 @@ var PublishModal = import_react21.default.forwardRef(
4865
5255
  onClick: () => setNextVersion(bumpMinor(currentVersion)),
4866
5256
  disabled: loading,
4867
5257
  className: "!px-sm",
4868
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(RefreshIcon, {})
5258
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(RefreshIcon, {})
4869
5259
  }
4870
5260
  )
4871
5261
  ] })
4872
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-xxs", children: [
4873
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
4874
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
5262
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-xxs", children: [
5263
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
5264
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
4875
5265
  "npm link ",
4876
5266
  packageName
4877
5267
  ] })
4878
5268
  ] }),
4879
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "border border-hairline rounded-sm", children: [
4880
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5269
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "border border-hairline rounded-sm", children: [
5270
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
4881
5271
  Button,
4882
5272
  {
4883
5273
  type: "button",
@@ -4888,12 +5278,12 @@ var PublishModal = import_react21.default.forwardRef(
4888
5278
  disabled: loading,
4889
5279
  className: "w-full !justify-start !rounded-none gap-xs text-body",
4890
5280
  children: [
4891
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChevronIcon3, { open: notesOpen }),
5281
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ChevronIcon3, { open: notesOpen }),
4892
5282
  "Release notes (optional)"
4893
5283
  ]
4894
5284
  }
4895
5285
  ),
4896
- notesOpen && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5286
+ notesOpen && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4897
5287
  "textarea",
4898
5288
  {
4899
5289
  value: notes,
@@ -4906,27 +5296,27 @@ var PublishModal = import_react21.default.forwardRef(
4906
5296
  ) })
4907
5297
  ] })
4908
5298
  ] }),
4909
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4910
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
4911
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
4912
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(InfoIcon, {}) }),
4913
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
4914
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
4915
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
5299
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
5300
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
5301
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
5302
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(InfoIcon, {}) }),
5303
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
5304
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
5305
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
4916
5306
  ] })
4917
5307
  ] }),
4918
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-start gap-sm", children: [
4919
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CheckCircleIcon, {}) }),
4920
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
4921
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
4922
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-muted", children: item.desc })
5308
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-start gap-sm", children: [
5309
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CheckCircleIcon, {}) }),
5310
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { children: [
5311
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
5312
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-sm text-muted", children: item.desc })
4923
5313
  ] })
4924
5314
  ] }, item.title)) })
4925
5315
  ] })
4926
5316
  ] }),
4927
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
4928
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(LockIcon, {}) }),
4929
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-body-sm text-body", children: noticeText })
5317
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
5318
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(LockIcon, {}) }),
5319
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-body-sm text-body", children: noticeText })
4930
5320
  ] })
4931
5321
  ] })
4932
5322
  }
@@ -4934,3 +5324,95 @@ var PublishModal = import_react21.default.forwardRef(
4934
5324
  }
4935
5325
  );
4936
5326
  PublishModal.displayName = "PublishModal";
5327
+
5328
+ // virtual-pkg:src/atoms/StatusBar/StatusBar.tsx
5329
+ var import_react23 = __toESM(require("react"));
5330
+ var import_jsx_runtime24 = require("react/jsx-runtime");
5331
+ var toneBgClass = {
5332
+ info: "bg-semantic-info-soft",
5333
+ success: "bg-semantic-success-soft",
5334
+ warning: "bg-semantic-warning-soft",
5335
+ error: "bg-semantic-error-soft"
5336
+ };
5337
+ var toneBorderClass = {
5338
+ info: "border-primary",
5339
+ success: "border-semantic-success",
5340
+ warning: "border-semantic-warning",
5341
+ error: "border-semantic-error"
5342
+ };
5343
+ var toneDotClass = {
5344
+ info: "bg-primary",
5345
+ success: "bg-semantic-success",
5346
+ warning: "bg-semantic-warning",
5347
+ error: "bg-semantic-error"
5348
+ };
5349
+ var toneTextClass = {
5350
+ info: "text-primary",
5351
+ success: "text-semantic-success",
5352
+ warning: "text-semantic-warning",
5353
+ error: "text-semantic-error"
5354
+ };
5355
+ var StatusBar = import_react23.default.forwardRef(
5356
+ ({
5357
+ tone = "info",
5358
+ message,
5359
+ detail,
5360
+ onDetailClick,
5361
+ pulsing = true,
5362
+ onDismiss,
5363
+ className = "",
5364
+ ...rest
5365
+ }, ref) => {
5366
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
5367
+ "div",
5368
+ {
5369
+ ref,
5370
+ role: "status",
5371
+ className: [
5372
+ "w-full flex items-center gap-sm px-lg py-sm",
5373
+ "border-b-2",
5374
+ toneBgClass[tone],
5375
+ toneBorderClass[tone],
5376
+ className
5377
+ ].filter(Boolean).join(" "),
5378
+ ...rest,
5379
+ children: [
5380
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("span", { className: "relative inline-flex items-center justify-center w-4 h-4 shrink-0", "aria-hidden": "true", children: [
5381
+ pulsing && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5382
+ "span",
5383
+ {
5384
+ className: ["absolute inline-flex h-full w-full rounded-full opacity-75 animate-ping", toneDotClass[tone]].join(" ")
5385
+ }
5386
+ ),
5387
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: ["relative inline-flex w-2.5 h-2.5 rounded-full", toneDotClass[tone]].join(" ") })
5388
+ ] }),
5389
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-1 min-w-0 flex-wrap items-baseline gap-x-sm gap-y-xxs", children: [
5390
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { role: "body-sm", className: ["font-weight-heading-sm truncate", toneTextClass[tone]].join(" "), children: message }),
5391
+ detail && (onDetailClick ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5392
+ Button,
5393
+ {
5394
+ variant: "ghost",
5395
+ size: "sm",
5396
+ onClick: onDetailClick,
5397
+ 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(" "),
5398
+ children: detail
5399
+ }
5400
+ ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typography, { role: "body-sm", color: "body", className: "truncate", children: detail }))
5401
+ ] }),
5402
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
5403
+ Button,
5404
+ {
5405
+ variant: "ghost",
5406
+ size: "sm",
5407
+ "aria-label": "Dismiss status",
5408
+ onClick: onDismiss,
5409
+ className: ["!w-6 !h-6 !p-0 rounded-sm shrink-0 hover:bg-transparent active:bg-transparent", toneTextClass[tone]].join(" "),
5410
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "close", size: 14 })
5411
+ }
5412
+ )
5413
+ ]
5414
+ }
5415
+ );
5416
+ }
5417
+ );
5418
+ StatusBar.displayName = "StatusBar";