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