@designa8/vibedesign-v6 1.10.7 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3556,12 +3556,434 @@ function DefaultThumbnail({ kind }) {
3556
3556
  );
3557
3557
  }
3558
3558
 
3559
+ // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3560
+ import React17, { useState as useState3 } from "react";
3561
+
3562
+ // virtual-pkg:src/atoms/Modal/Modal.tsx
3563
+ import React15, { useEffect, useRef, useState as useState2 } from "react";
3564
+ import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
3565
+ var sizeMap = {
3566
+ sm: "max-w-sm",
3567
+ md: "max-w-lg",
3568
+ lg: "max-w-2xl",
3569
+ xl: "max-w-4xl"
3570
+ };
3571
+ var Modal = React15.forwardRef(
3572
+ ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
3573
+ const [mounted, setMounted] = useState2(false);
3574
+ const [visible, setVisible] = useState2(false);
3575
+ const overlayRef = useRef(null);
3576
+ useEffect(() => {
3577
+ if (isOpen) {
3578
+ setMounted(true);
3579
+ const raf = requestAnimationFrame(() => {
3580
+ requestAnimationFrame(() => setVisible(true));
3581
+ });
3582
+ return () => cancelAnimationFrame(raf);
3583
+ } else {
3584
+ setVisible(false);
3585
+ const timer = setTimeout(() => setMounted(false), 250);
3586
+ return () => clearTimeout(timer);
3587
+ }
3588
+ }, [isOpen]);
3589
+ useEffect(() => {
3590
+ if (!mounted) return;
3591
+ const handleKey = (e) => {
3592
+ if (e.key === "Escape") onClose();
3593
+ };
3594
+ document.addEventListener("keydown", handleKey);
3595
+ return () => document.removeEventListener("keydown", handleKey);
3596
+ }, [mounted, onClose]);
3597
+ if (!mounted) return null;
3598
+ const handleBackdropClick = (e) => {
3599
+ if (e.target === overlayRef.current) onClose();
3600
+ };
3601
+ return /* @__PURE__ */ jsx15(
3602
+ "div",
3603
+ {
3604
+ ref: overlayRef,
3605
+ role: "dialog",
3606
+ "aria-modal": "true",
3607
+ "aria-labelledby": title ? "modal-title" : void 0,
3608
+ onClick: handleBackdropClick,
3609
+ className: [
3610
+ "fixed inset-0 flex items-center justify-center p-base",
3611
+ "bg-[var(--color-scrim)]/60",
3612
+ "transition-opacity duration-250 ease-in-out",
3613
+ visible ? "opacity-100" : "opacity-0"
3614
+ ].join(" "),
3615
+ style: { zIndex: "var(--z-modal, 1000)" },
3616
+ children: /* @__PURE__ */ jsxs15(
3617
+ "div",
3618
+ {
3619
+ ref,
3620
+ className: [
3621
+ "relative w-full max-h-[90vh] bg-surface border border-hairline rounded-lg",
3622
+ "shadow-[0_8px_40px_0_rgba(0,0,0,0.18)]",
3623
+ "flex flex-col overflow-hidden",
3624
+ sizeMap[size],
3625
+ "transition-all duration-250 ease-in-out",
3626
+ visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
3627
+ ].join(" "),
3628
+ children: [
3629
+ title && /* @__PURE__ */ jsxs15("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
3630
+ /* @__PURE__ */ jsx15("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
3631
+ /* @__PURE__ */ jsx15(
3632
+ Button,
3633
+ {
3634
+ variant: "ghost",
3635
+ size: "sm",
3636
+ "aria-label": "Close modal",
3637
+ onClick: onClose,
3638
+ className: "!px-xs !py-xs",
3639
+ children: /* @__PURE__ */ jsxs15(
3640
+ "svg",
3641
+ {
3642
+ xmlns: "http://www.w3.org/2000/svg",
3643
+ width: "16",
3644
+ height: "16",
3645
+ viewBox: "0 0 24 24",
3646
+ fill: "none",
3647
+ stroke: "currentColor",
3648
+ strokeWidth: "2",
3649
+ strokeLinecap: "round",
3650
+ strokeLinejoin: "round",
3651
+ "aria-hidden": "true",
3652
+ children: [
3653
+ /* @__PURE__ */ jsx15("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3654
+ /* @__PURE__ */ jsx15("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3655
+ ]
3656
+ }
3657
+ )
3658
+ }
3659
+ )
3660
+ ] }),
3661
+ /* @__PURE__ */ jsx15("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
3662
+ footer && /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
3663
+ ]
3664
+ }
3665
+ )
3666
+ }
3667
+ );
3668
+ }
3669
+ );
3670
+ Modal.displayName = "Modal";
3671
+
3672
+ // virtual-pkg:src/atoms/Typography/Typography.tsx
3673
+ import React16 from "react";
3674
+ import { jsx as jsx16 } from "react/jsx-runtime";
3675
+ var roleTagMap = {
3676
+ "display-lg": "h1",
3677
+ "heading-lg": "h2",
3678
+ "heading-md": "h3",
3679
+ "heading-sm": "h4",
3680
+ "body-lg": "p",
3681
+ "body-md": "p",
3682
+ "body-sm": "p",
3683
+ caption: "span"
3684
+ };
3685
+ var roleClassMap = {
3686
+ "display-lg": "text-display-lg",
3687
+ "heading-lg": "text-heading-lg",
3688
+ "heading-md": "text-heading-md",
3689
+ "heading-sm": "text-heading-sm",
3690
+ "body-lg": "text-body-lg",
3691
+ "body-md": "text-body-md",
3692
+ "body-sm": "text-body-sm",
3693
+ caption: "text-caption"
3694
+ };
3695
+ var colorClassMap = {
3696
+ ink: "text-ink",
3697
+ body: "text-body",
3698
+ muted: "text-muted",
3699
+ "muted-soft": "text-muted-soft",
3700
+ primary: "text-primary",
3701
+ "semantic-error": "text-semantic-error",
3702
+ "semantic-success": "text-semantic-success",
3703
+ "semantic-warning": "text-semantic-warning",
3704
+ "on-primary": "text-on-primary"
3705
+ };
3706
+ var Typography = React16.forwardRef(
3707
+ ({
3708
+ role = "body-md",
3709
+ color = "ink",
3710
+ as,
3711
+ truncate = false,
3712
+ uppercase = false,
3713
+ className = "",
3714
+ children,
3715
+ ...rest
3716
+ }, ref) => {
3717
+ const Tag = as ?? roleTagMap[role];
3718
+ const classes = [
3719
+ roleClassMap[role],
3720
+ colorClassMap[color],
3721
+ truncate ? "truncate" : "",
3722
+ uppercase ? "uppercase tracking-wide" : "",
3723
+ className
3724
+ ].filter(Boolean).join(" ");
3725
+ return /* @__PURE__ */ jsx16(Tag, { ref, className: classes, ...rest, children });
3726
+ }
3727
+ );
3728
+ Typography.displayName = "Typography";
3729
+
3730
+ // virtual-pkg:src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx
3731
+ import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
3732
+ var defaultLines = [
3733
+ { text: "# Design System", tone: "heading" },
3734
+ { text: "" },
3735
+ { text: "Design system generated by Atoms Design." },
3736
+ { text: "Consume it via the npm registry." },
3737
+ { text: "" },
3738
+ {
3739
+ text: "IMPORTANT: Read this skill file in full BEFORE editing any file in the consumer app."
3740
+ },
3741
+ { text: "" },
3742
+ {
3743
+ text: "Use this skill whenever the user wants to add, change, fix, restyle, resize,"
3744
+ },
3745
+ { text: "extend, or audit UI in their app." },
3746
+ { text: "" },
3747
+ { text: "## 1. Colors", tone: "heading" },
3748
+ { text: "" },
3749
+ { text: "primary: {colors.primary}" },
3750
+ { text: "on-primary: {colors.on-primary}" },
3751
+ { text: "primary-hover: {colors.primary-hover}" },
3752
+ { text: "primary-active: {colors.primary-active}" },
3753
+ { text: "canvas: {colors.canvas}" },
3754
+ { text: "surface: {colors.surface}" },
3755
+ { text: "ink: {colors.ink}" },
3756
+ { text: "body: {colors.body}" },
3757
+ { text: "muted: {colors.muted}" },
3758
+ { text: "hairline: {colors.hairline}" }
3759
+ ];
3760
+ var CloudIcon = () => /* @__PURE__ */ jsxs16(
3761
+ "svg",
3762
+ {
3763
+ viewBox: "0 0 24 24",
3764
+ width: "16",
3765
+ height: "16",
3766
+ fill: "none",
3767
+ stroke: "currentColor",
3768
+ strokeWidth: "2",
3769
+ strokeLinecap: "round",
3770
+ strokeLinejoin: "round",
3771
+ "aria-hidden": "true",
3772
+ children: [
3773
+ /* @__PURE__ */ jsx17("path", { d: "M17.5 19a4.5 4.5 0 0 0 0-9 5.5 5.5 0 0 0-10.8-1.5A4 4 0 0 0 6.5 16" }),
3774
+ /* @__PURE__ */ jsx17("path", { d: "M8 19h9.5" })
3775
+ ]
3776
+ }
3777
+ );
3778
+ var LinkIcon = () => /* @__PURE__ */ jsxs16(
3779
+ "svg",
3780
+ {
3781
+ viewBox: "0 0 24 24",
3782
+ width: "16",
3783
+ height: "16",
3784
+ fill: "none",
3785
+ stroke: "currentColor",
3786
+ strokeWidth: "2",
3787
+ strokeLinecap: "round",
3788
+ strokeLinejoin: "round",
3789
+ "aria-hidden": "true",
3790
+ children: [
3791
+ /* @__PURE__ */ jsx17("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
3792
+ /* @__PURE__ */ jsx17("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
3793
+ /* @__PURE__ */ jsx17("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
3794
+ ]
3795
+ }
3796
+ );
3797
+ var CopyIcon = () => /* @__PURE__ */ jsxs16(
3798
+ "svg",
3799
+ {
3800
+ viewBox: "0 0 24 24",
3801
+ width: "14",
3802
+ height: "14",
3803
+ fill: "none",
3804
+ stroke: "currentColor",
3805
+ strokeWidth: "2",
3806
+ strokeLinecap: "round",
3807
+ strokeLinejoin: "round",
3808
+ "aria-hidden": "true",
3809
+ children: [
3810
+ /* @__PURE__ */ jsx17("rect", { x: "9", y: "9", width: "11", height: "11", rx: "2" }),
3811
+ /* @__PURE__ */ jsx17("path", { d: "M5 15V5a2 2 0 0 1 2-2h10" })
3812
+ ]
3813
+ }
3814
+ );
3815
+ var DownloadIcon = () => /* @__PURE__ */ jsxs16(
3816
+ "svg",
3817
+ {
3818
+ viewBox: "0 0 24 24",
3819
+ width: "14",
3820
+ height: "14",
3821
+ fill: "none",
3822
+ stroke: "currentColor",
3823
+ strokeWidth: "2",
3824
+ strokeLinecap: "round",
3825
+ strokeLinejoin: "round",
3826
+ "aria-hidden": "true",
3827
+ children: [
3828
+ /* @__PURE__ */ jsx17("path", { d: "M12 3v12" }),
3829
+ /* @__PURE__ */ jsx17("path", { d: "M7 10l5 5 5-5" }),
3830
+ /* @__PURE__ */ jsx17("path", { d: "M5 21h14" })
3831
+ ]
3832
+ }
3833
+ );
3834
+ var ExportDesignMdModal = React17.forwardRef(
3835
+ ({
3836
+ isOpen,
3837
+ onClose,
3838
+ onExport,
3839
+ onDownload,
3840
+ onCopy,
3841
+ designSystemName = "Design System",
3842
+ defaultSource = "production",
3843
+ lines = defaultLines
3844
+ }, ref) => {
3845
+ const [source, setSource] = useState3(defaultSource);
3846
+ const handleCopy = () => {
3847
+ const text = lines.map((l) => l.text).join("\n");
3848
+ if (typeof navigator !== "undefined" && navigator.clipboard) {
3849
+ navigator.clipboard.writeText(text).catch(() => {
3850
+ });
3851
+ }
3852
+ onCopy?.();
3853
+ };
3854
+ return /* @__PURE__ */ jsx17(
3855
+ Modal,
3856
+ {
3857
+ ref,
3858
+ isOpen,
3859
+ onClose,
3860
+ title: "Export DESIGN.md",
3861
+ size: "xl",
3862
+ footer: /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center justify-between", children: [
3863
+ /* @__PURE__ */ jsxs16(Button, { variant: "secondary", size: "sm", onClick: onDownload, children: [
3864
+ /* @__PURE__ */ jsx17(DownloadIcon, {}),
3865
+ "Download .md"
3866
+ ] }),
3867
+ /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-sm", children: [
3868
+ /* @__PURE__ */ jsx17(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
3869
+ /* @__PURE__ */ jsx17(Button, { variant: "primary", onClick: onExport, children: "Export" })
3870
+ ] })
3871
+ ] }),
3872
+ children: /* @__PURE__ */ jsxs16("div", { className: "w-full space-y-lg", children: [
3873
+ /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "muted", children: "Generate and export the DESIGN.md file for handoff to AI coding agents or your team." }),
3874
+ /* @__PURE__ */ jsxs16("div", { className: "flex flex-wrap items-center justify-between gap-md", children: [
3875
+ /* @__PURE__ */ jsxs16("div", { className: "inline-flex items-center gap-xs p-xxs bg-surface-soft border border-hairline rounded-md", children: [
3876
+ /* @__PURE__ */ jsxs16(
3877
+ Button,
3878
+ {
3879
+ variant: source === "production" ? "primary" : "ghost",
3880
+ size: "sm",
3881
+ onClick: () => setSource("production"),
3882
+ children: [
3883
+ /* @__PURE__ */ jsx17(CloudIcon, {}),
3884
+ "Production"
3885
+ ]
3886
+ }
3887
+ ),
3888
+ /* @__PURE__ */ jsxs16(
3889
+ Button,
3890
+ {
3891
+ variant: source === "local" ? "primary" : "ghost",
3892
+ size: "sm",
3893
+ onClick: () => setSource("local"),
3894
+ children: [
3895
+ /* @__PURE__ */ jsx17(LinkIcon, {}),
3896
+ "Local (npm link)"
3897
+ ]
3898
+ }
3899
+ )
3900
+ ] }),
3901
+ /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", className: "flex-1 min-w-[16rem]", children: source === "production" ? "Consumer apps install from the public npm registry ('npm install')." : "Consumer apps resolve the package via a local 'npm link' during development." })
3902
+ ] }),
3903
+ /* @__PURE__ */ jsxs16("div", { children: [
3904
+ /* @__PURE__ */ jsx17(
3905
+ Typography,
3906
+ {
3907
+ role: "caption",
3908
+ color: "muted",
3909
+ uppercase: true,
3910
+ className: "mb-xs block",
3911
+ children: "Preview"
3912
+ }
3913
+ ),
3914
+ /* @__PURE__ */ jsxs16("div", { className: "relative w-full bg-canvas border border-hairline rounded-md overflow-hidden", children: [
3915
+ /* @__PURE__ */ jsxs16(
3916
+ Button,
3917
+ {
3918
+ variant: "secondary",
3919
+ size: "sm",
3920
+ onClick: handleCopy,
3921
+ className: "absolute top-sm right-sm",
3922
+ children: [
3923
+ /* @__PURE__ */ jsx17(CopyIcon, {}),
3924
+ "Copy"
3925
+ ]
3926
+ }
3927
+ ),
3928
+ /* @__PURE__ */ jsx17("div", { className: "max-h-64 overflow-y-auto px-md py-sm font-mono text-body-sm", children: lines.map((line, i) => /* @__PURE__ */ jsxs16("div", { className: "flex gap-md", children: [
3929
+ /* @__PURE__ */ jsx17("span", { className: "w-6 flex-shrink-0 text-right text-muted-soft select-none", children: i + 1 }),
3930
+ /* @__PURE__ */ jsx17(
3931
+ "span",
3932
+ {
3933
+ className: line.tone === "heading" ? "text-primary font-weight-heading-sm" : "text-body",
3934
+ children: line.text.replace("Design System", designSystemName) || "\xA0"
3935
+ }
3936
+ )
3937
+ ] }, i)) })
3938
+ ] })
3939
+ ] }),
3940
+ /* @__PURE__ */ jsxs16("div", { className: "w-full space-y-sm", children: [
3941
+ /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
3942
+ /* @__PURE__ */ jsx17("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-primary", children: /* @__PURE__ */ jsx17(CloudIcon, {}) }),
3943
+ /* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
3944
+ /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Production (npm install)" }),
3945
+ /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", children: "Generated for public npm registry consumption." })
3946
+ ] }),
3947
+ source === "production" ? /* @__PURE__ */ jsx17(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx17(
3948
+ Button,
3949
+ {
3950
+ variant: "secondary",
3951
+ size: "sm",
3952
+ onClick: () => setSource("production"),
3953
+ children: "Switch"
3954
+ }
3955
+ )
3956
+ ] }),
3957
+ /* @__PURE__ */ jsxs16("div", { className: "flex w-full items-center gap-md p-md bg-surface-soft border border-hairline rounded-md", children: [
3958
+ /* @__PURE__ */ jsx17("span", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-sm bg-surface border border-hairline text-muted", children: /* @__PURE__ */ jsx17(LinkIcon, {}) }),
3959
+ /* @__PURE__ */ jsxs16("div", { className: "min-w-0 flex-1", children: [
3960
+ /* @__PURE__ */ jsx17(Typography, { role: "body-md", color: "ink", className: "font-weight-heading-sm", children: "Local (npm link)" }),
3961
+ /* @__PURE__ */ jsx17(Typography, { role: "body-sm", color: "muted", children: "Generated for local development with npm link." })
3962
+ ] }),
3963
+ source === "local" ? /* @__PURE__ */ jsx17(Chip, { label: "Active", variant: "primary", size: "sm" }) : /* @__PURE__ */ jsx17(
3964
+ Button,
3965
+ {
3966
+ variant: "secondary",
3967
+ size: "sm",
3968
+ onClick: () => setSource("local"),
3969
+ children: "Switch"
3970
+ }
3971
+ )
3972
+ ] })
3973
+ ] })
3974
+ ] })
3975
+ }
3976
+ );
3977
+ }
3978
+ );
3979
+ ExportDesignMdModal.displayName = "ExportDesignMdModal";
3980
+
3559
3981
  // virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
3560
- import React15 from "react";
3561
- import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
3562
- var FilterTabBar = React15.forwardRef(
3982
+ import React18 from "react";
3983
+ import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
3984
+ var FilterTabBar = React18.forwardRef(
3563
3985
  ({ tabs, value, onChange, className = "", ...rest }, ref) => {
3564
- return /* @__PURE__ */ jsx15(
3986
+ return /* @__PURE__ */ jsx18(
3565
3987
  "div",
3566
3988
  {
3567
3989
  ref,
@@ -3575,7 +3997,7 @@ var FilterTabBar = React15.forwardRef(
3575
3997
  ...rest,
3576
3998
  children: tabs.map((tab) => {
3577
3999
  const isActive = tab.value === value;
3578
- return /* @__PURE__ */ jsxs15(
4000
+ return /* @__PURE__ */ jsxs17(
3579
4001
  Button,
3580
4002
  {
3581
4003
  role: "tab",
@@ -3586,9 +4008,9 @@ var FilterTabBar = React15.forwardRef(
3586
4008
  onClick: () => onChange(tab.value),
3587
4009
  className: "gap-xs",
3588
4010
  children: [
3589
- tab.icon && /* @__PURE__ */ jsx15("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
3590
- tab.label && /* @__PURE__ */ jsx15("span", { children: tab.label }),
3591
- tab.count !== void 0 && /* @__PURE__ */ jsx15(
4011
+ tab.icon && /* @__PURE__ */ jsx18("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
4012
+ tab.label && /* @__PURE__ */ jsx18("span", { children: tab.label }),
4013
+ tab.count !== void 0 && /* @__PURE__ */ jsx18(
3592
4014
  "span",
3593
4015
  {
3594
4016
  className: [
@@ -3614,20 +4036,20 @@ var FilterTabBar = React15.forwardRef(
3614
4036
  FilterTabBar.displayName = "FilterTabBar";
3615
4037
 
3616
4038
  // virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
3617
- import React16 from "react";
3618
- import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
3619
- var HomeIcon2 = () => /* @__PURE__ */ jsxs16("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: [
3620
- /* @__PURE__ */ jsx16("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
3621
- /* @__PURE__ */ jsx16("polyline", { points: "9 22 9 12 15 12 15 22" })
4039
+ import React19 from "react";
4040
+ import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
4041
+ var HomeIcon2 = () => /* @__PURE__ */ jsxs18("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
4042
+ /* @__PURE__ */ jsx19("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
4043
+ /* @__PURE__ */ jsx19("polyline", { points: "9 22 9 12 15 12 15 22" })
3622
4044
  ] });
3623
- var FolderIcon = () => /* @__PURE__ */ jsx16("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__ */ jsx16("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" }) });
3624
- var LogoIcon3 = () => /* @__PURE__ */ jsxs16("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
3625
- /* @__PURE__ */ jsx16("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)" } }),
3626
- /* @__PURE__ */ jsx16("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)" } }),
3627
- /* @__PURE__ */ jsx16("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 } })
4045
+ var FolderIcon = () => /* @__PURE__ */ jsx19("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ jsx19("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
4046
+ var LogoIcon3 = () => /* @__PURE__ */ jsxs18("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
4047
+ /* @__PURE__ */ jsx19("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
4048
+ /* @__PURE__ */ jsx19("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
4049
+ /* @__PURE__ */ jsx19("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
3628
4050
  ] });
3629
- var SparkleIcon = () => /* @__PURE__ */ jsx16("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__ */ jsx16("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" }) });
3630
- var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx16(
4051
+ var SparkleIcon = () => /* @__PURE__ */ jsx19("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ jsx19("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
4052
+ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx19(
3631
4053
  Button,
3632
4054
  {
3633
4055
  type: "button",
@@ -3645,11 +4067,11 @@ var DEFAULT_MODELS = [
3645
4067
  ];
3646
4068
  var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
3647
4069
  var NAV_ENTRIES = [
3648
- { id: "home", label: "Home", icon: /* @__PURE__ */ jsx16(HomeIcon2, {}) },
4070
+ { id: "home", label: "Home", icon: /* @__PURE__ */ jsx19(HomeIcon2, {}) },
3649
4071
  {
3650
4072
  id: "projects",
3651
4073
  label: "All projects",
3652
- icon: /* @__PURE__ */ jsx16(FolderIcon, {}),
4074
+ icon: /* @__PURE__ */ jsx19(FolderIcon, {}),
3653
4075
  subItems: [
3654
4076
  { id: "proj-1", label: "Design system" },
3655
4077
  { id: "proj-2", label: "Landing page" },
@@ -3669,7 +4091,7 @@ var GRADIENT_BG = `
3669
4091
  radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
3670
4092
  var(--color-canvas)
3671
4093
  `;
3672
- var HomePageTemplate = React16.forwardRef(
4094
+ var HomePageTemplate = React19.forwardRef(
3673
4095
  ({
3674
4096
  userName = "Hello Designer",
3675
4097
  userInitials = "N",
@@ -3693,8 +4115,8 @@ var HomePageTemplate = React16.forwardRef(
3693
4115
  className,
3694
4116
  style
3695
4117
  }, ref) => {
3696
- const [internalPrompt, setInternalPrompt] = React16.useState("");
3697
- const [internalActiveId, setInternalActiveId] = React16.useState("home");
4118
+ const [internalPrompt, setInternalPrompt] = React19.useState("");
4119
+ const [internalActiveId, setInternalActiveId] = React19.useState("home");
3698
4120
  const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
3699
4121
  const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
3700
4122
  const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
@@ -3717,14 +4139,14 @@ var HomePageTemplate = React16.forwardRef(
3717
4139
  if (activeIdProp === void 0) setInternalActiveId(id);
3718
4140
  onSelect?.(id);
3719
4141
  };
3720
- return /* @__PURE__ */ jsxs16(
4142
+ return /* @__PURE__ */ jsxs18(
3721
4143
  "div",
3722
4144
  {
3723
4145
  ref,
3724
4146
  className: ["flex w-full", className].filter(Boolean).join(" "),
3725
4147
  style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
3726
4148
  children: [
3727
- /* @__PURE__ */ jsx16("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx16(
4149
+ /* @__PURE__ */ jsx19("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx19(
3728
4150
  AppSidebar,
3729
4151
  {
3730
4152
  workspaceName: userName,
@@ -3743,14 +4165,14 @@ var HomePageTemplate = React16.forwardRef(
3743
4165
  style: { height: "100%" }
3744
4166
  }
3745
4167
  ) }),
3746
- /* @__PURE__ */ jsxs16(
4168
+ /* @__PURE__ */ jsxs18(
3747
4169
  "main",
3748
4170
  {
3749
4171
  className: "flex-1 relative flex flex-col overflow-hidden",
3750
4172
  style: { height: "100%" },
3751
4173
  "aria-label": "Home canvas",
3752
4174
  children: [
3753
- /* @__PURE__ */ jsx16(
4175
+ /* @__PURE__ */ jsx19(
3754
4176
  "div",
3755
4177
  {
3756
4178
  "aria-hidden": "true",
@@ -3758,9 +4180,9 @@ var HomePageTemplate = React16.forwardRef(
3758
4180
  style: { background: GRADIENT_BG }
3759
4181
  }
3760
4182
  ),
3761
- /* @__PURE__ */ jsxs16("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
3762
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-sm", children: [
3763
- /* @__PURE__ */ jsx16(
4183
+ /* @__PURE__ */ jsxs18("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
4184
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-sm", children: [
4185
+ /* @__PURE__ */ jsx19(
3764
4186
  AppSidebarMobile,
3765
4187
  {
3766
4188
  brandName: "Atoms",
@@ -3777,12 +4199,12 @@ var HomePageTemplate = React16.forwardRef(
3777
4199
  onDarkModeToggle
3778
4200
  }
3779
4201
  ),
3780
- /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-xs", children: [
3781
- /* @__PURE__ */ jsx16(LogoIcon3, {}),
3782
- /* @__PURE__ */ jsx16("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
4202
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-xs", children: [
4203
+ /* @__PURE__ */ jsx19(LogoIcon3, {}),
4204
+ /* @__PURE__ */ jsx19("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
3783
4205
  ] })
3784
4206
  ] }),
3785
- /* @__PURE__ */ jsx16(
4207
+ /* @__PURE__ */ jsx19(
3786
4208
  "span",
3787
4209
  {
3788
4210
  className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
@@ -3792,8 +4214,8 @@ var HomePageTemplate = React16.forwardRef(
3792
4214
  }
3793
4215
  )
3794
4216
  ] }),
3795
- /* @__PURE__ */ jsx16("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ jsxs16("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: [
3796
- /* @__PURE__ */ jsxs16(
4217
+ /* @__PURE__ */ jsx19("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ jsxs18("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
4218
+ /* @__PURE__ */ jsxs18(
3797
4219
  Button,
3798
4220
  {
3799
4221
  variant: "secondary",
@@ -3801,13 +4223,13 @@ var HomePageTemplate = React16.forwardRef(
3801
4223
  "aria-label": "New design system",
3802
4224
  className: "!rounded-full flex items-center gap-xs",
3803
4225
  children: [
3804
- /* @__PURE__ */ jsx16(SparkleIcon, {}),
4226
+ /* @__PURE__ */ jsx19(SparkleIcon, {}),
3805
4227
  "New design system"
3806
4228
  ]
3807
4229
  }
3808
4230
  ),
3809
- /* @__PURE__ */ jsxs16("div", { className: "text-center flex flex-col gap-sm", children: [
3810
- /* @__PURE__ */ jsxs16(
4231
+ /* @__PURE__ */ jsxs18("div", { className: "text-center flex flex-col gap-sm", children: [
4232
+ /* @__PURE__ */ jsxs18(
3811
4233
  "h1",
3812
4234
  {
3813
4235
  className: "text-ink",
@@ -3820,12 +4242,12 @@ var HomePageTemplate = React16.forwardRef(
3820
4242
  },
3821
4243
  children: [
3822
4244
  "What atom should we",
3823
- /* @__PURE__ */ jsx16("br", {}),
4245
+ /* @__PURE__ */ jsx19("br", {}),
3824
4246
  "build?"
3825
4247
  ]
3826
4248
  }
3827
4249
  ),
3828
- /* @__PURE__ */ jsx16(
4250
+ /* @__PURE__ */ jsx19(
3829
4251
  "p",
3830
4252
  {
3831
4253
  className: "text-muted text-body-sm md:text-body-md",
@@ -3834,7 +4256,7 @@ var HomePageTemplate = React16.forwardRef(
3834
4256
  }
3835
4257
  )
3836
4258
  ] }),
3837
- /* @__PURE__ */ jsx16("div", { className: "w-full", children: /* @__PURE__ */ jsx16(
4259
+ /* @__PURE__ */ jsx19("div", { className: "w-full", children: /* @__PURE__ */ jsx19(
3838
4260
  PromptInputBar,
3839
4261
  {
3840
4262
  placeholder: "Describe an atom or design token to create...",
@@ -3850,13 +4272,13 @@ var HomePageTemplate = React16.forwardRef(
3850
4272
  onModelChange
3851
4273
  }
3852
4274
  ) }),
3853
- /* @__PURE__ */ jsx16(
4275
+ /* @__PURE__ */ jsx19(
3854
4276
  "div",
3855
4277
  {
3856
4278
  className: "flex flex-wrap justify-center gap-sm",
3857
4279
  role: "list",
3858
4280
  "aria-label": "Suggested prompts",
3859
- children: suggestions.map((s) => /* @__PURE__ */ jsx16("div", { role: "listitem", children: /* @__PURE__ */ jsx16(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
4281
+ children: suggestions.map((s) => /* @__PURE__ */ jsx19("div", { role: "listitem", children: /* @__PURE__ */ jsx19(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
3860
4282
  }
3861
4283
  )
3862
4284
  ] }) })
@@ -3870,154 +4292,45 @@ var HomePageTemplate = React16.forwardRef(
3870
4292
  );
3871
4293
  HomePageTemplate.displayName = "HomePageTemplate";
3872
4294
 
3873
- // virtual-pkg:src/atoms/Modal/Modal.tsx
3874
- import React17, { useEffect, useRef, useState as useState2 } from "react";
3875
- import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
3876
- var sizeMap = {
3877
- sm: "max-w-sm",
3878
- md: "max-w-lg",
3879
- lg: "max-w-2xl"
3880
- };
3881
- var Modal = React17.forwardRef(
3882
- ({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
3883
- const [mounted, setMounted] = useState2(false);
3884
- const [visible, setVisible] = useState2(false);
3885
- const overlayRef = useRef(null);
3886
- useEffect(() => {
3887
- if (isOpen) {
3888
- setMounted(true);
3889
- const raf = requestAnimationFrame(() => {
3890
- requestAnimationFrame(() => setVisible(true));
3891
- });
3892
- return () => cancelAnimationFrame(raf);
3893
- } else {
3894
- setVisible(false);
3895
- const timer = setTimeout(() => setMounted(false), 250);
3896
- return () => clearTimeout(timer);
3897
- }
3898
- }, [isOpen]);
3899
- useEffect(() => {
3900
- if (!mounted) return;
3901
- const handleKey = (e) => {
3902
- if (e.key === "Escape") onClose();
3903
- };
3904
- document.addEventListener("keydown", handleKey);
3905
- return () => document.removeEventListener("keydown", handleKey);
3906
- }, [mounted, onClose]);
3907
- if (!mounted) return null;
3908
- const handleBackdropClick = (e) => {
3909
- if (e.target === overlayRef.current) onClose();
3910
- };
3911
- return /* @__PURE__ */ jsx17(
3912
- "div",
3913
- {
3914
- ref: overlayRef,
3915
- role: "dialog",
3916
- "aria-modal": "true",
3917
- "aria-labelledby": title ? "modal-title" : void 0,
3918
- onClick: handleBackdropClick,
3919
- className: [
3920
- "fixed inset-0 flex items-center justify-center p-base",
3921
- "bg-[var(--color-scrim)]/50",
3922
- "transition-opacity duration-250 ease-in-out",
3923
- visible ? "opacity-100" : "opacity-0"
3924
- ].join(" "),
3925
- style: { zIndex: "var(--z-modal, 1000)" },
3926
- children: /* @__PURE__ */ jsxs17(
3927
- "div",
3928
- {
3929
- ref,
3930
- className: [
3931
- "relative w-full bg-canvas rounded-lg",
3932
- "shadow-[0_8px_40px_0_rgba(0,0,0,0.18)]",
3933
- "flex flex-col overflow-hidden",
3934
- sizeMap[size],
3935
- "transition-all duration-250 ease-in-out",
3936
- visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
3937
- ].join(" "),
3938
- children: [
3939
- title && /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
3940
- /* @__PURE__ */ jsx17("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
3941
- /* @__PURE__ */ jsx17(
3942
- Button,
3943
- {
3944
- variant: "ghost",
3945
- size: "sm",
3946
- "aria-label": "Close modal",
3947
- onClick: onClose,
3948
- className: "!px-xs !py-xs",
3949
- children: /* @__PURE__ */ jsxs17(
3950
- "svg",
3951
- {
3952
- xmlns: "http://www.w3.org/2000/svg",
3953
- width: "16",
3954
- height: "16",
3955
- viewBox: "0 0 24 24",
3956
- fill: "none",
3957
- stroke: "currentColor",
3958
- strokeWidth: "2",
3959
- strokeLinecap: "round",
3960
- strokeLinejoin: "round",
3961
- "aria-hidden": "true",
3962
- children: [
3963
- /* @__PURE__ */ jsx17("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
3964
- /* @__PURE__ */ jsx17("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
3965
- ]
3966
- }
3967
- )
3968
- }
3969
- )
3970
- ] }),
3971
- /* @__PURE__ */ jsx17("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
3972
- footer && /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
3973
- ]
3974
- }
3975
- )
3976
- }
3977
- );
3978
- }
3979
- );
3980
- Modal.displayName = "Modal";
3981
-
3982
4295
  // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
3983
- import React18 from "react";
3984
- import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
3985
- var DesktopIcon = () => /* @__PURE__ */ jsxs18("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: [
3986
- /* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
3987
- /* @__PURE__ */ jsx18("path", { d: "M8 21h8M12 17v4" })
4296
+ import React20 from "react";
4297
+ import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
4298
+ var DesktopIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4299
+ /* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
4300
+ /* @__PURE__ */ jsx20("path", { d: "M8 21h8M12 17v4" })
3988
4301
  ] });
3989
- var SidebarIcon2 = () => /* @__PURE__ */ jsxs18("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: [
3990
- /* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
3991
- /* @__PURE__ */ jsx18("path", { d: "M9 3v18" })
4302
+ var SidebarIcon2 = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4303
+ /* @__PURE__ */ jsx20("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
4304
+ /* @__PURE__ */ jsx20("path", { d: "M9 3v18" })
3992
4305
  ] });
3993
- var MobileIcon = () => /* @__PURE__ */ jsxs18("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: [
3994
- /* @__PURE__ */ jsx18("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
3995
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
4306
+ var MobileIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4307
+ /* @__PURE__ */ jsx20("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
4308
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
3996
4309
  ] });
3997
- var ExpandIcon = () => /* @__PURE__ */ jsx18("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__ */ jsx18("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
3998
- var InspectIcon = () => /* @__PURE__ */ jsxs18("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: [
3999
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "9" }),
4000
- /* @__PURE__ */ jsx18("path", { d: "M12 8v4l3 3" }),
4001
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4310
+ var ExpandIcon = () => /* @__PURE__ */ jsx20("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx20("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
4311
+ var InspectIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4312
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "9" }),
4313
+ /* @__PURE__ */ jsx20("path", { d: "M12 8v4l3 3" }),
4314
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
4002
4315
  ] });
4003
- var MoonIcon4 = () => /* @__PURE__ */ jsx18("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__ */ jsx18("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4004
- var FullscreenIcon = () => /* @__PURE__ */ jsxs18("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: [
4005
- /* @__PURE__ */ jsx18("polyline", { points: "15 3 21 3 21 9" }),
4006
- /* @__PURE__ */ jsx18("polyline", { points: "9 21 3 21 3 15" }),
4007
- /* @__PURE__ */ jsx18("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4008
- /* @__PURE__ */ jsx18("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4316
+ var MoonIcon4 = () => /* @__PURE__ */ jsx20("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx20("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
4317
+ var FullscreenIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4318
+ /* @__PURE__ */ jsx20("polyline", { points: "15 3 21 3 21 9" }),
4319
+ /* @__PURE__ */ jsx20("polyline", { points: "9 21 3 21 3 15" }),
4320
+ /* @__PURE__ */ jsx20("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
4321
+ /* @__PURE__ */ jsx20("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
4009
4322
  ] });
4010
- var DotsIcon = () => /* @__PURE__ */ jsxs18("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4011
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "5", r: "1.6" }),
4012
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1.6" }),
4013
- /* @__PURE__ */ jsx18("circle", { cx: "12", cy: "19", r: "1.6" })
4323
+ var DotsIcon = () => /* @__PURE__ */ jsxs19("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
4324
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "5", r: "1.6" }),
4325
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "12", r: "1.6" }),
4326
+ /* @__PURE__ */ jsx20("circle", { cx: "12", cy: "19", r: "1.6" })
4014
4327
  ] });
4015
4328
  var VIEWPORT_OPTIONS = [
4016
4329
  { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
4017
4330
  { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
4018
4331
  { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
4019
4332
  ];
4020
- var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx18(
4333
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx20(
4021
4334
  Button,
4022
4335
  {
4023
4336
  variant: active ? "primary" : "ghost",
@@ -4029,7 +4342,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx1
4029
4342
  children
4030
4343
  }
4031
4344
  );
4032
- var PreviewToolbar = React18.forwardRef(
4345
+ var PreviewToolbar = React20.forwardRef(
4033
4346
  ({
4034
4347
  viewport = "desktop",
4035
4348
  onViewportChange,
@@ -4044,7 +4357,7 @@ var PreviewToolbar = React18.forwardRef(
4044
4357
  kindLabel = "ATOM",
4045
4358
  onOverflow,
4046
4359
  className = ""
4047
- }, ref) => /* @__PURE__ */ jsxs18(
4360
+ }, ref) => /* @__PURE__ */ jsxs19(
4048
4361
  "div",
4049
4362
  {
4050
4363
  ref,
@@ -4058,24 +4371,24 @@ var PreviewToolbar = React18.forwardRef(
4058
4371
  className
4059
4372
  ].filter(Boolean).join(" "),
4060
4373
  children: [
4061
- /* @__PURE__ */ jsxs18(
4374
+ /* @__PURE__ */ jsxs19(
4062
4375
  "div",
4063
4376
  {
4064
4377
  role: "group",
4065
4378
  "aria-label": "Viewport size",
4066
4379
  className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
4067
4380
  children: [
4068
- VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx18(
4381
+ VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx20(
4069
4382
  ViewportBtn,
4070
4383
  {
4071
4384
  label,
4072
4385
  active: !expanded && viewport === id,
4073
4386
  onClick: () => onViewportChange?.(id),
4074
- children: /* @__PURE__ */ jsx18(Icon, {})
4387
+ children: /* @__PURE__ */ jsx20(Icon, {})
4075
4388
  },
4076
4389
  id
4077
4390
  )),
4078
- /* @__PURE__ */ jsx18(
4391
+ /* @__PURE__ */ jsx20(
4079
4392
  Button,
4080
4393
  {
4081
4394
  variant: expanded ? "primary" : "ghost",
@@ -4087,14 +4400,14 @@ var PreviewToolbar = React18.forwardRef(
4087
4400
  "!w-8 !h-8 !p-0 rounded-sm shrink-0",
4088
4401
  expanded ? "" : "text-muted"
4089
4402
  ].join(" "),
4090
- children: /* @__PURE__ */ jsx18(ExpandIcon, {})
4403
+ children: /* @__PURE__ */ jsx20(ExpandIcon, {})
4091
4404
  }
4092
4405
  )
4093
4406
  ]
4094
4407
  }
4095
4408
  ),
4096
- /* @__PURE__ */ jsxs18("div", { className: "flex flex-wrap items-center gap-sm", children: [
4097
- /* @__PURE__ */ jsxs18(
4409
+ /* @__PURE__ */ jsxs19("div", { className: "flex flex-wrap items-center gap-sm", children: [
4410
+ /* @__PURE__ */ jsxs19(
4098
4411
  Button,
4099
4412
  {
4100
4413
  variant: inspecting ? "primary" : "secondary",
@@ -4103,12 +4416,12 @@ var PreviewToolbar = React18.forwardRef(
4103
4416
  onClick: onInspectTokens,
4104
4417
  className: "gap-xs rounded-xl",
4105
4418
  children: [
4106
- /* @__PURE__ */ jsx18(InspectIcon, {}),
4419
+ /* @__PURE__ */ jsx20(InspectIcon, {}),
4107
4420
  inspecting ? "Exit inspect" : "Inspect tokens"
4108
4421
  ]
4109
4422
  }
4110
4423
  ),
4111
- /* @__PURE__ */ jsxs18(
4424
+ /* @__PURE__ */ jsxs19(
4112
4425
  Button,
4113
4426
  {
4114
4427
  variant: darkMode ? "primary" : "secondary",
@@ -4117,12 +4430,12 @@ var PreviewToolbar = React18.forwardRef(
4117
4430
  onClick: onDarkToggle,
4118
4431
  className: "gap-xs rounded-xl",
4119
4432
  children: [
4120
- /* @__PURE__ */ jsx18(MoonIcon4, {}),
4433
+ /* @__PURE__ */ jsx20(MoonIcon4, {}),
4121
4434
  "Dark"
4122
4435
  ]
4123
4436
  }
4124
4437
  ),
4125
- /* @__PURE__ */ jsxs18(
4438
+ /* @__PURE__ */ jsxs19(
4126
4439
  Button,
4127
4440
  {
4128
4441
  variant: "secondary",
@@ -4130,12 +4443,12 @@ var PreviewToolbar = React18.forwardRef(
4130
4443
  onClick: onFullscreen,
4131
4444
  className: "gap-xs rounded-xl",
4132
4445
  children: [
4133
- /* @__PURE__ */ jsx18(FullscreenIcon, {}),
4446
+ /* @__PURE__ */ jsx20(FullscreenIcon, {}),
4134
4447
  "Fullscreen"
4135
4448
  ]
4136
4449
  }
4137
4450
  ),
4138
- /* @__PURE__ */ jsx18(
4451
+ /* @__PURE__ */ jsx20(
4139
4452
  Chip,
4140
4453
  {
4141
4454
  label: modelLabel ?? "",
@@ -4144,7 +4457,7 @@ var PreviewToolbar = React18.forwardRef(
4144
4457
  className: "border-primary text-primary bg-canvas cursor-default select-none"
4145
4458
  }
4146
4459
  ),
4147
- /* @__PURE__ */ jsx18(
4460
+ /* @__PURE__ */ jsx20(
4148
4461
  Chip,
4149
4462
  {
4150
4463
  label: kindLabel ?? "",
@@ -4153,7 +4466,7 @@ var PreviewToolbar = React18.forwardRef(
4153
4466
  className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
4154
4467
  }
4155
4468
  ),
4156
- /* @__PURE__ */ jsx18(
4469
+ /* @__PURE__ */ jsx20(
4157
4470
  Button,
4158
4471
  {
4159
4472
  variant: "ghost",
@@ -4161,7 +4474,7 @@ var PreviewToolbar = React18.forwardRef(
4161
4474
  "aria-label": "More options",
4162
4475
  onClick: onOverflow,
4163
4476
  className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
4164
- children: /* @__PURE__ */ jsx18(DotsIcon, {})
4477
+ children: /* @__PURE__ */ jsx20(DotsIcon, {})
4165
4478
  }
4166
4479
  )
4167
4480
  ] })
@@ -4171,63 +4484,251 @@ var PreviewToolbar = React18.forwardRef(
4171
4484
  );
4172
4485
  PreviewToolbar.displayName = "PreviewToolbar";
4173
4486
 
4174
- // virtual-pkg:src/atoms/Typography/Typography.tsx
4175
- import React19 from "react";
4176
- import { jsx as jsx19 } from "react/jsx-runtime";
4177
- var roleTagMap = {
4178
- "display-lg": "h1",
4179
- "heading-lg": "h2",
4180
- "heading-md": "h3",
4181
- "heading-sm": "h4",
4182
- "body-lg": "p",
4183
- "body-md": "p",
4184
- "body-sm": "p",
4185
- caption: "span"
4186
- };
4187
- var roleClassMap = {
4188
- "display-lg": "text-display-lg",
4189
- "heading-lg": "text-heading-lg",
4190
- "heading-md": "text-heading-md",
4191
- "heading-sm": "text-heading-sm",
4192
- "body-lg": "text-body-lg",
4193
- "body-md": "text-body-md",
4194
- "body-sm": "text-body-sm",
4195
- caption: "text-caption"
4196
- };
4197
- var colorClassMap = {
4198
- ink: "text-ink",
4199
- body: "text-body",
4200
- muted: "text-muted",
4201
- "muted-soft": "text-muted-soft",
4202
- primary: "text-primary",
4203
- "semantic-error": "text-semantic-error",
4204
- "semantic-success": "text-semantic-success",
4205
- "semantic-warning": "text-semantic-warning",
4206
- "on-primary": "text-on-primary"
4207
- };
4208
- var Typography = React19.forwardRef(
4487
+ // virtual-pkg:src/atoms/PublishModal/PublishModal.tsx
4488
+ import React21, { useState as useState4 } from "react";
4489
+ import { jsx as jsx21, jsxs as jsxs20 } from "react/jsx-runtime";
4490
+ var GlobeIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4491
+ /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "9" }),
4492
+ /* @__PURE__ */ jsx21("path", { d: "M3 12h18" }),
4493
+ /* @__PURE__ */ jsx21("path", { d: "M12 3a13.5 13.5 0 0 1 0 18" }),
4494
+ /* @__PURE__ */ jsx21("path", { d: "M12 3a13.5 13.5 0 0 0 0 18" })
4495
+ ] });
4496
+ var LinkIcon2 = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4497
+ /* @__PURE__ */ jsx21("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }),
4498
+ /* @__PURE__ */ jsx21("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }),
4499
+ /* @__PURE__ */ jsx21("line", { x1: "8", y1: "12", x2: "16", y2: "12" })
4500
+ ] });
4501
+ var InfoIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "currentColor", "aria-hidden": "true", children: [
4502
+ /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "10", opacity: "0.15" }),
4503
+ /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "7.5", r: "1.15" }),
4504
+ /* @__PURE__ */ jsx21("rect", { x: "11", y: "10.5", width: "2", height: "7", rx: "1" })
4505
+ ] });
4506
+ var CheckCircleIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "18", height: "18", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4507
+ /* @__PURE__ */ jsx21("circle", { cx: "12", cy: "12", r: "9" }),
4508
+ /* @__PURE__ */ jsx21("path", { d: "M8.5 12.5l2.2 2.2 4.8-5" })
4509
+ ] });
4510
+ var LockIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4511
+ /* @__PURE__ */ jsx21("rect", { x: "5", y: "10", width: "14", height: "10", rx: "2" }),
4512
+ /* @__PURE__ */ jsx21("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })
4513
+ ] });
4514
+ var RefreshIcon = () => /* @__PURE__ */ jsxs20("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
4515
+ /* @__PURE__ */ jsx21("path", { d: "M4 4v5h5" }),
4516
+ /* @__PURE__ */ jsx21("path", { d: "M20 20v-5h-5" }),
4517
+ /* @__PURE__ */ jsx21("path", { d: "M5.5 9A7 7 0 0 1 19 12" }),
4518
+ /* @__PURE__ */ jsx21("path", { d: "M18.5 15A7 7 0 0 1 5 12" })
4519
+ ] });
4520
+ var ChevronIcon3 = ({ open }) => /* @__PURE__ */ jsx21(
4521
+ "svg",
4522
+ {
4523
+ viewBox: "0 0 24 24",
4524
+ width: "14",
4525
+ height: "14",
4526
+ fill: "none",
4527
+ stroke: "currentColor",
4528
+ strokeWidth: "2",
4529
+ strokeLinecap: "round",
4530
+ strokeLinejoin: "round",
4531
+ "aria-hidden": "true",
4532
+ className: ["transition-transform duration-150", open ? "rotate-90" : ""].join(" "),
4533
+ children: /* @__PURE__ */ jsx21("path", { d: "M9 6l6 6-6 6" })
4534
+ }
4535
+ );
4536
+ function bumpMinor(version) {
4537
+ const parts = version.split(".").map((n) => parseInt(n, 10) || 0);
4538
+ const [major = 0, minor = 0] = parts;
4539
+ return `${major}.${minor + 1}.0`;
4540
+ }
4541
+ var PublishModal = React21.forwardRef(
4209
4542
  ({
4210
- role = "body-md",
4211
- color = "ink",
4212
- as,
4213
- truncate = false,
4214
- uppercase = false,
4215
- className = "",
4216
- children,
4217
- ...rest
4543
+ isOpen,
4544
+ onClose,
4545
+ onPublish,
4546
+ packageName = "@plasma/vibedesign",
4547
+ currentVersion = "1.10.9",
4548
+ defaultNextVersion,
4549
+ defaultTarget = "production"
4218
4550
  }, ref) => {
4219
- const Tag = as ?? roleTagMap[role];
4220
- const classes = [
4221
- roleClassMap[role],
4222
- colorClassMap[color],
4223
- truncate ? "truncate" : "",
4224
- uppercase ? "uppercase tracking-wide" : "",
4225
- className
4226
- ].filter(Boolean).join(" ");
4227
- return /* @__PURE__ */ jsx19(Tag, { ref, className: classes, ...rest, children });
4551
+ const [target, setTarget] = useState4(defaultTarget);
4552
+ const [nextVersion, setNextVersion] = useState4(
4553
+ defaultNextVersion ?? bumpMinor(currentVersion)
4554
+ );
4555
+ const [notesOpen, setNotesOpen] = useState4(false);
4556
+ const [notes, setNotes] = useState4("");
4557
+ const isProduction = target === "production";
4558
+ const summaryItems = isProduction ? [
4559
+ { title: "Package validated", desc: "All required fields are valid." },
4560
+ { title: "No breaking changes", desc: "Compatible with previous versions." },
4561
+ { title: "Access", desc: "You have publish access to this package." }
4562
+ ] : [
4563
+ { title: "Package built", desc: "Local build artifacts are up to date." },
4564
+ { title: "Link target resolved", desc: "A local npm link target was found." },
4565
+ { title: "No global conflicts", desc: "No other project links this package name." }
4566
+ ];
4567
+ 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.";
4568
+ const handlePublish = () => onPublish?.(target, nextVersion);
4569
+ return /* @__PURE__ */ jsx21(
4570
+ Modal,
4571
+ {
4572
+ ref,
4573
+ isOpen,
4574
+ onClose,
4575
+ title: "Publish package",
4576
+ size: "lg",
4577
+ footer: /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-end gap-sm", children: [
4578
+ /* @__PURE__ */ jsx21(Button, { variant: "secondary", onClick: onClose, children: "Cancel" }),
4579
+ /* @__PURE__ */ jsx21(Button, { variant: "primary", onClick: handlePublish, children: isProduction ? "Publish to npm registry" : "Publish locally (npm link)" })
4580
+ ] }),
4581
+ children: /* @__PURE__ */ jsxs20("div", { className: "w-full space-y-lg", children: [
4582
+ /* @__PURE__ */ jsx21("p", { className: "text-body-md text-muted", children: "Publish your package to npm so others can install and use it. Choose between a production release to the npm registry or a local publish for testing and internal use." }),
4583
+ /* @__PURE__ */ jsxs20(
4584
+ "div",
4585
+ {
4586
+ role: "tablist",
4587
+ "aria-label": "Publish target",
4588
+ className: "flex items-center gap-lg border-b border-hairline",
4589
+ children: [
4590
+ /* @__PURE__ */ jsxs20(
4591
+ Button,
4592
+ {
4593
+ type: "button",
4594
+ role: "tab",
4595
+ "aria-selected": isProduction,
4596
+ variant: "ghost",
4597
+ size: "sm",
4598
+ onClick: () => setTarget("production"),
4599
+ className: [
4600
+ "!rounded-none border-b-2 -mb-px",
4601
+ isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4602
+ ].join(" "),
4603
+ children: [
4604
+ /* @__PURE__ */ jsx21(GlobeIcon, {}),
4605
+ "Production (npm registry)"
4606
+ ]
4607
+ }
4608
+ ),
4609
+ /* @__PURE__ */ jsxs20(
4610
+ Button,
4611
+ {
4612
+ type: "button",
4613
+ role: "tab",
4614
+ "aria-selected": !isProduction,
4615
+ variant: "ghost",
4616
+ size: "sm",
4617
+ onClick: () => setTarget("local"),
4618
+ className: [
4619
+ "!rounded-none border-b-2 -mb-px",
4620
+ !isProduction ? "text-primary border-primary" : "text-muted border-transparent hover:text-ink"
4621
+ ].join(" "),
4622
+ children: [
4623
+ /* @__PURE__ */ jsx21(LinkIcon2, {}),
4624
+ "Local (npm link)"
4625
+ ]
4626
+ }
4627
+ )
4628
+ ]
4629
+ }
4630
+ ),
4631
+ /* @__PURE__ */ jsxs20("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-md", children: [
4632
+ /* @__PURE__ */ jsxs20("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4633
+ /* @__PURE__ */ jsx21("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Package details" }),
4634
+ /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4635
+ /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Package" }),
4636
+ /* @__PURE__ */ jsx21("p", { className: "text-body-md text-ink font-mono", children: packageName })
4637
+ ] }),
4638
+ /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4639
+ /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Current version" }),
4640
+ /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-xs", children: [
4641
+ /* @__PURE__ */ jsx21("p", { className: "text-body-md text-ink font-mono", children: currentVersion }),
4642
+ /* @__PURE__ */ jsx21(Chip, { label: "Latest", variant: "primary", size: "sm" })
4643
+ ] })
4644
+ ] }),
4645
+ isProduction ? /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4646
+ /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Next version" }),
4647
+ /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-xs", children: [
4648
+ /* @__PURE__ */ jsx21(
4649
+ Input,
4650
+ {
4651
+ "aria-label": "Next version",
4652
+ value: nextVersion,
4653
+ onChange: (e) => setNextVersion(e.target.value),
4654
+ fullWidth: true
4655
+ }
4656
+ ),
4657
+ /* @__PURE__ */ jsx21(
4658
+ Button,
4659
+ {
4660
+ variant: "secondary",
4661
+ size: "md",
4662
+ "aria-label": "Reset to suggested version",
4663
+ onClick: () => setNextVersion(bumpMinor(currentVersion)),
4664
+ className: "!px-sm",
4665
+ children: /* @__PURE__ */ jsx21(RefreshIcon, {})
4666
+ }
4667
+ )
4668
+ ] })
4669
+ ] }) : /* @__PURE__ */ jsxs20("div", { className: "space-y-xxs", children: [
4670
+ /* @__PURE__ */ jsx21("p", { className: "text-caption uppercase tracking-wide text-muted", children: "Link command" }),
4671
+ /* @__PURE__ */ jsxs20("p", { className: "rounded-sm bg-surface-soft border border-hairline px-sm py-xs text-body-sm font-mono text-body", children: [
4672
+ "npm link ",
4673
+ packageName
4674
+ ] })
4675
+ ] }),
4676
+ /* @__PURE__ */ jsxs20("div", { className: "border border-hairline rounded-sm", children: [
4677
+ /* @__PURE__ */ jsxs20(
4678
+ Button,
4679
+ {
4680
+ type: "button",
4681
+ variant: "ghost",
4682
+ size: "sm",
4683
+ onClick: () => setNotesOpen((v) => !v),
4684
+ "aria-expanded": notesOpen,
4685
+ className: "w-full !justify-start !rounded-none gap-xs text-body",
4686
+ children: [
4687
+ /* @__PURE__ */ jsx21(ChevronIcon3, { open: notesOpen }),
4688
+ "Release notes (optional)"
4689
+ ]
4690
+ }
4691
+ ),
4692
+ notesOpen && /* @__PURE__ */ jsx21("div", { className: "px-sm pb-sm", children: /* @__PURE__ */ jsx21(
4693
+ "textarea",
4694
+ {
4695
+ value: notes,
4696
+ onChange: (e) => setNotes(e.target.value),
4697
+ placeholder: "What changed in this release?",
4698
+ rows: 3,
4699
+ className: "w-full resize-none rounded-sm border border-hairline bg-surface px-sm py-xs text-body-sm text-ink placeholder:text-muted-soft outline-none focus:ring-2 focus:ring-primary-focus/20 focus:border-primary-focus"
4700
+ }
4701
+ ) })
4702
+ ] })
4703
+ ] }),
4704
+ /* @__PURE__ */ jsxs20("div", { className: "rounded-md border border-hairline p-base space-y-base", children: [
4705
+ /* @__PURE__ */ jsx21("p", { className: "text-body-md font-weight-heading-sm text-ink", children: "Publish summary" }),
4706
+ /* @__PURE__ */ jsxs20("div", { className: "flex items-start gap-sm rounded-sm bg-primary/10 border border-primary/30 p-sm", children: [
4707
+ /* @__PURE__ */ jsx21("span", { className: "text-primary flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx21(InfoIcon, {}) }),
4708
+ /* @__PURE__ */ jsxs20("div", { children: [
4709
+ /* @__PURE__ */ jsx21("p", { className: "text-body-sm font-weight-heading-sm text-primary", children: isProduction ? "Ready to publish" : "Ready to link" }),
4710
+ /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-body", children: isProduction ? `This will publish version ${nextVersion} to the npm registry.` : `This will link ${packageName} for local development.` })
4711
+ ] })
4712
+ ] }),
4713
+ /* @__PURE__ */ jsx21("div", { className: "space-y-sm", children: summaryItems.map((item) => /* @__PURE__ */ jsxs20("div", { className: "flex items-start gap-sm", children: [
4714
+ /* @__PURE__ */ jsx21("span", { className: "text-semantic-success flex-shrink-0 mt-xxs", children: /* @__PURE__ */ jsx21(CheckCircleIcon, {}) }),
4715
+ /* @__PURE__ */ jsxs20("div", { children: [
4716
+ /* @__PURE__ */ jsx21("p", { className: "text-body-sm font-weight-heading-sm text-ink", children: item.title }),
4717
+ /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-muted", children: item.desc })
4718
+ ] })
4719
+ ] }, item.title)) })
4720
+ ] })
4721
+ ] }),
4722
+ /* @__PURE__ */ jsxs20("div", { className: "flex items-center gap-sm rounded-md bg-surface-soft border border-hairline p-base", children: [
4723
+ /* @__PURE__ */ jsx21("span", { className: "flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-sm bg-primary text-on-primary", children: /* @__PURE__ */ jsx21(LockIcon, {}) }),
4724
+ /* @__PURE__ */ jsx21("p", { className: "text-body-sm text-body", children: noticeText })
4725
+ ] })
4726
+ ] })
4727
+ }
4728
+ );
4228
4729
  }
4229
4730
  );
4230
- Typography.displayName = "Typography";
4731
+ PublishModal.displayName = "PublishModal";
4231
4732
  export {
4232
4733
  AppLayout,
4233
4734
  AppSidebar,
@@ -4237,6 +4738,7 @@ export {
4237
4738
  ChatScreen,
4238
4739
  Chip,
4239
4740
  ComponentCard,
4741
+ ExportDesignMdModal,
4240
4742
  FilterTabBar,
4241
4743
  HomePageTemplate,
4242
4744
  Input,
@@ -4244,6 +4746,7 @@ export {
4244
4746
  NavItem,
4245
4747
  PreviewToolbar,
4246
4748
  PromptInputBar,
4749
+ PublishModal,
4247
4750
  TopNavbar,
4248
4751
  Typography,
4249
4752
  UpgradeCard,