@designa8/vibedesign-v6 1.9.7 → 1.10.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 +717 -162
- package/dist/index.js +703 -148
- package/dist/styles.css +46 -0
- package/package.json +11 -1
- package/src/atoms/AppSidebarMobile/AppSidebarMobile.tsx +397 -0
- package/src/atoms/AppSidebarMobile/index.ts +2 -0
- package/src/atoms/AppSidebarMobile/preview.tsx +119 -0
- package/src/atoms/HomePageTemplate/HomePageTemplate.tsx +330 -0
- package/src/atoms/HomePageTemplate/index.ts +2 -0
- package/src/atoms/HomePageTemplate/preview.tsx +21 -0
- package/src/index.ts +2 -0
package/dist/index.js
CHANGED
|
@@ -2909,10 +2909,320 @@ var AppSidebar = React10.forwardRef(
|
|
|
2909
2909
|
);
|
|
2910
2910
|
AppSidebar.displayName = "AppSidebar";
|
|
2911
2911
|
|
|
2912
|
-
// virtual-pkg:src/atoms/
|
|
2913
|
-
import React11
|
|
2912
|
+
// virtual-pkg:src/atoms/AppSidebarMobile/AppSidebarMobile.tsx
|
|
2913
|
+
import React11 from "react";
|
|
2914
2914
|
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2915
|
-
var
|
|
2915
|
+
var LogoIcon2 = () => /* @__PURE__ */ jsxs11("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "none", "aria-hidden": "true", children: [
|
|
2916
|
+
/* @__PURE__ */ jsx11("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)" } }),
|
|
2917
|
+
/* @__PURE__ */ jsx11("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)" } }),
|
|
2918
|
+
/* @__PURE__ */ jsx11("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 } })
|
|
2919
|
+
] });
|
|
2920
|
+
var HamburgerIcon = () => /* @__PURE__ */ jsxs11("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", style: { width: "20px", height: "20px" }, children: [
|
|
2921
|
+
/* @__PURE__ */ jsx11("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
2922
|
+
/* @__PURE__ */ jsx11("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
2923
|
+
/* @__PURE__ */ jsx11("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
2924
|
+
] });
|
|
2925
|
+
var CloseIcon = () => /* @__PURE__ */ jsxs11("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", style: { width: "20px", height: "20px" }, children: [
|
|
2926
|
+
/* @__PURE__ */ jsx11("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
2927
|
+
/* @__PURE__ */ jsx11("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
2928
|
+
] });
|
|
2929
|
+
var GiftIcon2 = () => /* @__PURE__ */ jsxs11("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "20px", height: "20px" }, "aria-hidden": "true", children: [
|
|
2930
|
+
/* @__PURE__ */ jsx11("polyline", { points: "20 12 20 22 4 22 4 12" }),
|
|
2931
|
+
/* @__PURE__ */ jsx11("rect", { x: "2", y: "7", width: "20", height: "5" }),
|
|
2932
|
+
/* @__PURE__ */ jsx11("line", { x1: "12", y1: "22", x2: "12", y2: "7" }),
|
|
2933
|
+
/* @__PURE__ */ jsx11("path", { d: "M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z" }),
|
|
2934
|
+
/* @__PURE__ */ jsx11("path", { d: "M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z" })
|
|
2935
|
+
] });
|
|
2936
|
+
var InboxIcon2 = () => /* @__PURE__ */ jsxs11("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
|
|
2937
|
+
/* @__PURE__ */ jsx11("polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }),
|
|
2938
|
+
/* @__PURE__ */ jsx11("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" })
|
|
2939
|
+
] });
|
|
2940
|
+
var SunIcon2 = () => /* @__PURE__ */ jsxs11("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: [
|
|
2941
|
+
/* @__PURE__ */ jsx11("circle", { cx: "12", cy: "12", r: "5" }),
|
|
2942
|
+
/* @__PURE__ */ jsx11("line", { x1: "12", y1: "1", x2: "12", y2: "3" }),
|
|
2943
|
+
/* @__PURE__ */ jsx11("line", { x1: "12", y1: "21", x2: "12", y2: "23" }),
|
|
2944
|
+
/* @__PURE__ */ jsx11("line", { x1: "4.22", y1: "4.22", x2: "5.64", y2: "5.64" }),
|
|
2945
|
+
/* @__PURE__ */ jsx11("line", { x1: "18.36", y1: "18.36", x2: "19.78", y2: "19.78" }),
|
|
2946
|
+
/* @__PURE__ */ jsx11("line", { x1: "1", y1: "12", x2: "3", y2: "12" }),
|
|
2947
|
+
/* @__PURE__ */ jsx11("line", { x1: "21", y1: "12", x2: "23", y2: "12" }),
|
|
2948
|
+
/* @__PURE__ */ jsx11("line", { x1: "4.22", y1: "19.78", x2: "5.64", y2: "18.36" }),
|
|
2949
|
+
/* @__PURE__ */ jsx11("line", { x1: "18.36", y1: "5.64", x2: "19.78", y2: "4.22" })
|
|
2950
|
+
] });
|
|
2951
|
+
var MoonIcon2 = () => /* @__PURE__ */ jsx11("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__ */ jsx11("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
|
|
2952
|
+
var AppSidebarMobile = React11.forwardRef(
|
|
2953
|
+
({
|
|
2954
|
+
brandName = "Atoms",
|
|
2955
|
+
entries = [],
|
|
2956
|
+
activeId,
|
|
2957
|
+
onSelect,
|
|
2958
|
+
activeSubId: _activeSubId,
|
|
2959
|
+
onSubSelect,
|
|
2960
|
+
workspaceName,
|
|
2961
|
+
showShareCard = false,
|
|
2962
|
+
showUpgradeCard = false,
|
|
2963
|
+
userInitials,
|
|
2964
|
+
onInboxClick,
|
|
2965
|
+
darkMode = false,
|
|
2966
|
+
onDarkModeToggle,
|
|
2967
|
+
open: openProp,
|
|
2968
|
+
onOpenChange,
|
|
2969
|
+
className
|
|
2970
|
+
}, ref) => {
|
|
2971
|
+
const [internalOpen, setInternalOpen] = React11.useState(false);
|
|
2972
|
+
const isControlled = openProp !== void 0;
|
|
2973
|
+
const open = isControlled ? openProp : internalOpen;
|
|
2974
|
+
const setOpen = (next) => {
|
|
2975
|
+
if (!isControlled) setInternalOpen(next);
|
|
2976
|
+
onOpenChange?.(next);
|
|
2977
|
+
};
|
|
2978
|
+
const [expandedIds, setExpandedIds] = React11.useState(/* @__PURE__ */ new Set());
|
|
2979
|
+
const toggleExpanded = (id) => {
|
|
2980
|
+
setExpandedIds((prev) => {
|
|
2981
|
+
const next = new Set(prev);
|
|
2982
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
2983
|
+
return next;
|
|
2984
|
+
});
|
|
2985
|
+
};
|
|
2986
|
+
React11.useEffect(() => {
|
|
2987
|
+
if (!open) return;
|
|
2988
|
+
const handler = (e) => {
|
|
2989
|
+
if (e.key === "Escape") setOpen(false);
|
|
2990
|
+
};
|
|
2991
|
+
window.addEventListener("keydown", handler);
|
|
2992
|
+
return () => window.removeEventListener("keydown", handler);
|
|
2993
|
+
}, [open]);
|
|
2994
|
+
const [visible, setVisible] = React11.useState(false);
|
|
2995
|
+
const [mounted, setMounted] = React11.useState(false);
|
|
2996
|
+
React11.useEffect(() => {
|
|
2997
|
+
if (open) {
|
|
2998
|
+
setMounted(true);
|
|
2999
|
+
requestAnimationFrame(() => requestAnimationFrame(() => setVisible(true)));
|
|
3000
|
+
} else {
|
|
3001
|
+
setVisible(false);
|
|
3002
|
+
const t = setTimeout(() => setMounted(false), 300);
|
|
3003
|
+
return () => clearTimeout(t);
|
|
3004
|
+
}
|
|
3005
|
+
}, [open]);
|
|
3006
|
+
const showFooterRow = !!(userInitials || onInboxClick || onDarkModeToggle);
|
|
3007
|
+
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
3008
|
+
/* @__PURE__ */ jsx11("div", { ref, className, children: /* @__PURE__ */ jsx11(
|
|
3009
|
+
Button,
|
|
3010
|
+
{
|
|
3011
|
+
variant: "ghost",
|
|
3012
|
+
size: "sm",
|
|
3013
|
+
"aria-label": "Open navigation",
|
|
3014
|
+
"aria-expanded": open,
|
|
3015
|
+
onClick: () => setOpen(true),
|
|
3016
|
+
className: "!p-xs !rounded-md",
|
|
3017
|
+
children: /* @__PURE__ */ jsx11(HamburgerIcon, {})
|
|
3018
|
+
}
|
|
3019
|
+
) }),
|
|
3020
|
+
mounted && /* @__PURE__ */ jsxs11(
|
|
3021
|
+
"div",
|
|
3022
|
+
{
|
|
3023
|
+
role: "dialog",
|
|
3024
|
+
"aria-modal": "true",
|
|
3025
|
+
"aria-label": "Navigation menu",
|
|
3026
|
+
style: {
|
|
3027
|
+
position: "fixed",
|
|
3028
|
+
inset: 0,
|
|
3029
|
+
zIndex: 9999
|
|
3030
|
+
},
|
|
3031
|
+
children: [
|
|
3032
|
+
/* @__PURE__ */ jsx11(
|
|
3033
|
+
"div",
|
|
3034
|
+
{
|
|
3035
|
+
"aria-hidden": "true",
|
|
3036
|
+
onClick: () => setOpen(false),
|
|
3037
|
+
style: {
|
|
3038
|
+
position: "absolute",
|
|
3039
|
+
inset: 0,
|
|
3040
|
+
backgroundColor: "var(--color-scrim)",
|
|
3041
|
+
opacity: visible ? 0.5 : 0,
|
|
3042
|
+
transition: "opacity 0.25s ease"
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
),
|
|
3046
|
+
/* @__PURE__ */ jsxs11(
|
|
3047
|
+
"div",
|
|
3048
|
+
{
|
|
3049
|
+
style: {
|
|
3050
|
+
position: "absolute",
|
|
3051
|
+
top: 0,
|
|
3052
|
+
left: 0,
|
|
3053
|
+
bottom: 0,
|
|
3054
|
+
width: "min(280px, 85vw)",
|
|
3055
|
+
display: "flex",
|
|
3056
|
+
flexDirection: "column",
|
|
3057
|
+
backgroundColor: "var(--color-canvas)",
|
|
3058
|
+
borderRight: "1px solid var(--color-hairline)",
|
|
3059
|
+
boxShadow: "var(--shadow-lg)",
|
|
3060
|
+
transform: visible ? "translateX(0)" : "translateX(-100%)",
|
|
3061
|
+
transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
|
|
3062
|
+
overflowY: "auto",
|
|
3063
|
+
overflowX: "hidden"
|
|
3064
|
+
},
|
|
3065
|
+
children: [
|
|
3066
|
+
/* @__PURE__ */ jsxs11(
|
|
3067
|
+
"div",
|
|
3068
|
+
{
|
|
3069
|
+
className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
|
|
3070
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3071
|
+
children: [
|
|
3072
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-sm", children: [
|
|
3073
|
+
/* @__PURE__ */ jsx11(LogoIcon2, {}),
|
|
3074
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
|
|
3075
|
+
] }),
|
|
3076
|
+
/* @__PURE__ */ jsx11(
|
|
3077
|
+
Button,
|
|
3078
|
+
{
|
|
3079
|
+
variant: "ghost",
|
|
3080
|
+
size: "sm",
|
|
3081
|
+
"aria-label": "Close navigation",
|
|
3082
|
+
onClick: () => setOpen(false),
|
|
3083
|
+
className: "!p-xs !rounded-md",
|
|
3084
|
+
children: /* @__PURE__ */ jsx11(CloseIcon, {})
|
|
3085
|
+
}
|
|
3086
|
+
)
|
|
3087
|
+
]
|
|
3088
|
+
}
|
|
3089
|
+
),
|
|
3090
|
+
workspaceName && /* @__PURE__ */ jsx11(
|
|
3091
|
+
"div",
|
|
3092
|
+
{
|
|
3093
|
+
className: "px-sm pb-sm",
|
|
3094
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3095
|
+
children: /* @__PURE__ */ jsx11(
|
|
3096
|
+
WorkspaceMenu,
|
|
3097
|
+
{
|
|
3098
|
+
workspaceName,
|
|
3099
|
+
initials: workspaceName.charAt(0).toUpperCase()
|
|
3100
|
+
}
|
|
3101
|
+
)
|
|
3102
|
+
}
|
|
3103
|
+
),
|
|
3104
|
+
/* @__PURE__ */ jsx11(
|
|
3105
|
+
"div",
|
|
3106
|
+
{
|
|
3107
|
+
className: "flex-1 overflow-y-auto px-sm pb-sm",
|
|
3108
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3109
|
+
children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
|
|
3110
|
+
const isActive = activeId === entry.id;
|
|
3111
|
+
const hasSubItems = !!entry.subItems?.length;
|
|
3112
|
+
const isExpanded = expandedIds.has(entry.id);
|
|
3113
|
+
const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
|
|
3114
|
+
id: sub.id,
|
|
3115
|
+
label: sub.label,
|
|
3116
|
+
onDelete: sub.onDelete,
|
|
3117
|
+
onClick: onSubSelect ? (_id) => {
|
|
3118
|
+
onSubSelect(_id);
|
|
3119
|
+
setOpen(false);
|
|
3120
|
+
} : void 0
|
|
3121
|
+
})) : void 0;
|
|
3122
|
+
return /* @__PURE__ */ jsx11(
|
|
3123
|
+
NavItem,
|
|
3124
|
+
{
|
|
3125
|
+
icon: entry.icon,
|
|
3126
|
+
label: entry.label,
|
|
3127
|
+
active: isActive,
|
|
3128
|
+
subItems: mappedSubItems,
|
|
3129
|
+
expanded: hasSubItems ? isExpanded : void 0,
|
|
3130
|
+
onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
|
|
3131
|
+
onClick: (e) => {
|
|
3132
|
+
onSelect?.(entry.id);
|
|
3133
|
+
if (!hasSubItems) setOpen(false);
|
|
3134
|
+
else e.preventDefault();
|
|
3135
|
+
}
|
|
3136
|
+
},
|
|
3137
|
+
entry.id
|
|
3138
|
+
);
|
|
3139
|
+
}) })
|
|
3140
|
+
}
|
|
3141
|
+
),
|
|
3142
|
+
/* @__PURE__ */ jsxs11(
|
|
3143
|
+
"div",
|
|
3144
|
+
{
|
|
3145
|
+
className: "flex-shrink-0 px-sm pb-lg space-y-sm",
|
|
3146
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3147
|
+
children: [
|
|
3148
|
+
showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
|
|
3149
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3150
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
|
|
3151
|
+
/* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
|
|
3152
|
+
] }),
|
|
3153
|
+
/* @__PURE__ */ jsx11(
|
|
3154
|
+
"span",
|
|
3155
|
+
{
|
|
3156
|
+
className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
|
|
3157
|
+
style: { width: "36px", height: "36px" },
|
|
3158
|
+
children: /* @__PURE__ */ jsx11(GiftIcon2, {})
|
|
3159
|
+
}
|
|
3160
|
+
)
|
|
3161
|
+
] }),
|
|
3162
|
+
showUpgradeCard && /* @__PURE__ */ jsx11(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
|
|
3163
|
+
showFooterRow && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
|
|
3164
|
+
userInitials && /* @__PURE__ */ jsx11(
|
|
3165
|
+
"span",
|
|
3166
|
+
{
|
|
3167
|
+
className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-body-sm font-weight-heading-sm cursor-pointer hover:bg-primary-hover transition-colors duration-150",
|
|
3168
|
+
style: { width: "36px", height: "36px" },
|
|
3169
|
+
"aria-label": "User profile",
|
|
3170
|
+
children: userInitials
|
|
3171
|
+
}
|
|
3172
|
+
),
|
|
3173
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-xs ml-auto", children: [
|
|
3174
|
+
onDarkModeToggle && /* @__PURE__ */ jsx11(
|
|
3175
|
+
Button,
|
|
3176
|
+
{
|
|
3177
|
+
variant: "ghost",
|
|
3178
|
+
size: "sm",
|
|
3179
|
+
"aria-label": darkMode ? "Switch to light mode" : "Switch to dark mode",
|
|
3180
|
+
onClick: onDarkModeToggle,
|
|
3181
|
+
className: "!p-xs !rounded-sm",
|
|
3182
|
+
children: darkMode ? /* @__PURE__ */ jsx11(SunIcon2, {}) : /* @__PURE__ */ jsx11(MoonIcon2, {})
|
|
3183
|
+
}
|
|
3184
|
+
),
|
|
3185
|
+
onInboxClick && /* @__PURE__ */ jsxs11(
|
|
3186
|
+
Button,
|
|
3187
|
+
{
|
|
3188
|
+
variant: "ghost",
|
|
3189
|
+
size: "sm",
|
|
3190
|
+
"aria-label": "Inbox",
|
|
3191
|
+
onClick: onInboxClick,
|
|
3192
|
+
className: "!p-xs !rounded-sm relative",
|
|
3193
|
+
children: [
|
|
3194
|
+
/* @__PURE__ */ jsx11(InboxIcon2, {}),
|
|
3195
|
+
/* @__PURE__ */ jsx11(
|
|
3196
|
+
"span",
|
|
3197
|
+
{
|
|
3198
|
+
className: "absolute rounded-full bg-semantic-error",
|
|
3199
|
+
"aria-label": "New notifications",
|
|
3200
|
+
style: { width: "8px", height: "8px", top: "4px", right: "4px" }
|
|
3201
|
+
}
|
|
3202
|
+
)
|
|
3203
|
+
]
|
|
3204
|
+
}
|
|
3205
|
+
)
|
|
3206
|
+
] })
|
|
3207
|
+
] })
|
|
3208
|
+
]
|
|
3209
|
+
}
|
|
3210
|
+
)
|
|
3211
|
+
]
|
|
3212
|
+
}
|
|
3213
|
+
)
|
|
3214
|
+
]
|
|
3215
|
+
}
|
|
3216
|
+
)
|
|
3217
|
+
] });
|
|
3218
|
+
}
|
|
3219
|
+
);
|
|
3220
|
+
AppSidebarMobile.displayName = "AppSidebarMobile";
|
|
3221
|
+
|
|
3222
|
+
// virtual-pkg:src/atoms/AuthScreen/AuthScreen.tsx
|
|
3223
|
+
import React12, { useState, useId } from "react";
|
|
3224
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3225
|
+
var AuthScreen = React12.forwardRef(
|
|
2916
3226
|
({ defaultTab = "login", onLogin, onSignup, loading = false }, ref) => {
|
|
2917
3227
|
const [tab, setTab] = useState(defaultTab);
|
|
2918
3228
|
const [name, setName] = useState("");
|
|
@@ -2944,13 +3254,13 @@ var AuthScreen = React11.forwardRef(
|
|
|
2944
3254
|
const labelCls = "block text-body-sm text-body mb-xs font-weight-heading-sm";
|
|
2945
3255
|
return (
|
|
2946
3256
|
/* Full-width page background — no height constraint */
|
|
2947
|
-
/* @__PURE__ */
|
|
3257
|
+
/* @__PURE__ */ jsx12("div", { ref, className: "w-full bg-surface p-xl", children: /* @__PURE__ */ jsx12("div", { className: "w-full max-w-3xl mx-auto flex justify-center", children: /* @__PURE__ */ jsxs12(
|
|
2948
3258
|
"div",
|
|
2949
3259
|
{
|
|
2950
3260
|
style: { width: "min(100%, 22rem)" },
|
|
2951
3261
|
className: "rounded-xl border border-hairline-soft bg-canvas px-xl py-xxl shadow-card",
|
|
2952
3262
|
children: [
|
|
2953
|
-
/* @__PURE__ */
|
|
3263
|
+
/* @__PURE__ */ jsx12("div", { className: "mb-lg flex justify-center", children: /* @__PURE__ */ jsx12("div", { className: "flex h-14 w-10 items-center justify-center rounded-full bg-primary", children: /* @__PURE__ */ jsx12("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx12(
|
|
2954
3264
|
"path",
|
|
2955
3265
|
{
|
|
2956
3266
|
d: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",
|
|
@@ -2960,15 +3270,15 @@ var AuthScreen = React11.forwardRef(
|
|
|
2960
3270
|
strokeLinejoin: "round"
|
|
2961
3271
|
}
|
|
2962
3272
|
) }) }) }),
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
3273
|
+
/* @__PURE__ */ jsx12("h1", { className: "mb-xs text-heading-sm text-ink", children: tab === "login" ? "Welcome back" : "Create an account" }),
|
|
3274
|
+
/* @__PURE__ */ jsx12("p", { className: "mb-xl text-body-sm text-muted", children: tab === "login" ? "Sign in to continue to your workspace." : "Start your journey \u2014 it only takes a minute." }),
|
|
3275
|
+
/* @__PURE__ */ jsx12(
|
|
2966
3276
|
"div",
|
|
2967
3277
|
{
|
|
2968
3278
|
role: "tablist",
|
|
2969
3279
|
"aria-label": "Auth mode",
|
|
2970
3280
|
className: "mb-xl flex rounded-lg bg-surface-soft p-xs gap-xs",
|
|
2971
|
-
children: ["login", "signup"].map((t) => /* @__PURE__ */
|
|
3281
|
+
children: ["login", "signup"].map((t) => /* @__PURE__ */ jsx12(
|
|
2972
3282
|
Button,
|
|
2973
3283
|
{
|
|
2974
3284
|
role: "tab",
|
|
@@ -2988,10 +3298,10 @@ var AuthScreen = React11.forwardRef(
|
|
|
2988
3298
|
))
|
|
2989
3299
|
}
|
|
2990
3300
|
),
|
|
2991
|
-
/* @__PURE__ */
|
|
2992
|
-
tab === "signup" && /* @__PURE__ */
|
|
2993
|
-
/* @__PURE__ */
|
|
2994
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ jsxs12("form", { onSubmit: handleSubmit, noValidate: true, className: "space-y-base", children: [
|
|
3302
|
+
tab === "signup" && /* @__PURE__ */ jsxs12("div", { children: [
|
|
3303
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: nameId, className: labelCls, children: "Full name" }),
|
|
3304
|
+
/* @__PURE__ */ jsx12(
|
|
2995
3305
|
Input,
|
|
2996
3306
|
{
|
|
2997
3307
|
id: nameId,
|
|
@@ -3005,9 +3315,9 @@ var AuthScreen = React11.forwardRef(
|
|
|
3005
3315
|
}
|
|
3006
3316
|
)
|
|
3007
3317
|
] }),
|
|
3008
|
-
/* @__PURE__ */
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */
|
|
3318
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
3319
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: emailId, className: labelCls, children: "Email address" }),
|
|
3320
|
+
/* @__PURE__ */ jsx12(
|
|
3011
3321
|
Input,
|
|
3012
3322
|
{
|
|
3013
3323
|
id: emailId,
|
|
@@ -3021,12 +3331,12 @@ var AuthScreen = React11.forwardRef(
|
|
|
3021
3331
|
}
|
|
3022
3332
|
)
|
|
3023
3333
|
] }),
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
/* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
tab === "login" && /* @__PURE__ */
|
|
3334
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
3335
|
+
/* @__PURE__ */ jsxs12("div", { className: "mb-xs flex items-center justify-between", children: [
|
|
3336
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: passwordId, className: labelCls + " mb-0", children: "Password" }),
|
|
3337
|
+
tab === "login" && /* @__PURE__ */ jsx12("a", { href: "#", className: "text-body-sm text-primary hover:underline", children: "Forgot password?" })
|
|
3028
3338
|
] }),
|
|
3029
|
-
/* @__PURE__ */
|
|
3339
|
+
/* @__PURE__ */ jsx12(
|
|
3030
3340
|
Input,
|
|
3031
3341
|
{
|
|
3032
3342
|
id: passwordId,
|
|
@@ -3040,9 +3350,9 @@ var AuthScreen = React11.forwardRef(
|
|
|
3040
3350
|
}
|
|
3041
3351
|
)
|
|
3042
3352
|
] }),
|
|
3043
|
-
tab === "signup" && /* @__PURE__ */
|
|
3044
|
-
/* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
3353
|
+
tab === "signup" && /* @__PURE__ */ jsxs12("div", { children: [
|
|
3354
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: confirmId, className: labelCls, children: "Confirm password" }),
|
|
3355
|
+
/* @__PURE__ */ jsx12(
|
|
3046
3356
|
Input,
|
|
3047
3357
|
{
|
|
3048
3358
|
id: confirmId,
|
|
@@ -3056,7 +3366,7 @@ var AuthScreen = React11.forwardRef(
|
|
|
3056
3366
|
}
|
|
3057
3367
|
)
|
|
3058
3368
|
] }),
|
|
3059
|
-
error && /* @__PURE__ */
|
|
3369
|
+
error && /* @__PURE__ */ jsx12(
|
|
3060
3370
|
"p",
|
|
3061
3371
|
{
|
|
3062
3372
|
role: "alert",
|
|
@@ -3064,26 +3374,26 @@ var AuthScreen = React11.forwardRef(
|
|
|
3064
3374
|
children: error
|
|
3065
3375
|
}
|
|
3066
3376
|
),
|
|
3067
|
-
/* @__PURE__ */
|
|
3377
|
+
/* @__PURE__ */ jsx12(Button, { type: "submit", variant: "primary", size: "lg", disabled: loading, className: "w-full", children: loading ? "Please wait\u2026" : tab === "login" ? "Sign in" : "Create account" })
|
|
3068
3378
|
] }),
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
/* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3072
|
-
/* @__PURE__ */
|
|
3379
|
+
/* @__PURE__ */ jsxs12("div", { className: "my-xl flex items-center gap-base", children: [
|
|
3380
|
+
/* @__PURE__ */ jsx12("div", { className: "h-px flex-1 bg-hairline" }),
|
|
3381
|
+
/* @__PURE__ */ jsx12("span", { className: "text-caption text-muted-soft", children: "OR" }),
|
|
3382
|
+
/* @__PURE__ */ jsx12("div", { className: "h-px flex-1 bg-hairline" })
|
|
3073
3383
|
] }),
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3384
|
+
/* @__PURE__ */ jsxs12(Button, { type: "button", variant: "secondary", size: "md", className: "w-full", children: [
|
|
3385
|
+
/* @__PURE__ */ jsxs12("svg", { "aria-hidden": "true", width: "18", height: "18", viewBox: "0 0 24 24", className: "shrink-0", children: [
|
|
3386
|
+
/* @__PURE__ */ jsx12("path", { d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z", fill: "var(--color-google-blue)" }),
|
|
3387
|
+
/* @__PURE__ */ jsx12("path", { d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z", fill: "var(--color-google-green)" }),
|
|
3388
|
+
/* @__PURE__ */ jsx12("path", { d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z", fill: "var(--color-google-yellow)" }),
|
|
3389
|
+
/* @__PURE__ */ jsx12("path", { d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z", fill: "var(--color-google-red)" })
|
|
3080
3390
|
] }),
|
|
3081
3391
|
"Continue with Google"
|
|
3082
3392
|
] }),
|
|
3083
|
-
/* @__PURE__ */
|
|
3393
|
+
/* @__PURE__ */ jsx12("p", { className: "mt-xl text-center text-body-sm text-muted", children: tab === "login" ? /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
3084
3394
|
"Don\u2019t have an account?",
|
|
3085
3395
|
" ",
|
|
3086
|
-
/* @__PURE__ */
|
|
3396
|
+
/* @__PURE__ */ jsx12(
|
|
3087
3397
|
Button,
|
|
3088
3398
|
{
|
|
3089
3399
|
type: "button",
|
|
@@ -3095,10 +3405,10 @@ var AuthScreen = React11.forwardRef(
|
|
|
3095
3405
|
children: "Sign up"
|
|
3096
3406
|
}
|
|
3097
3407
|
)
|
|
3098
|
-
] }) : /* @__PURE__ */
|
|
3408
|
+
] }) : /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
3099
3409
|
"Already have an account?",
|
|
3100
3410
|
" ",
|
|
3101
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ jsx12(
|
|
3102
3412
|
Button,
|
|
3103
3413
|
{
|
|
3104
3414
|
type: "button",
|
|
@@ -3120,8 +3430,8 @@ var AuthScreen = React11.forwardRef(
|
|
|
3120
3430
|
AuthScreen.displayName = "AuthScreen";
|
|
3121
3431
|
|
|
3122
3432
|
// virtual-pkg:src/atoms/Chip/Chip.tsx
|
|
3123
|
-
import
|
|
3124
|
-
import { jsx as
|
|
3433
|
+
import React13 from "react";
|
|
3434
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3125
3435
|
var variantClasses2 = {
|
|
3126
3436
|
default: "bg-surface-strong text-body border border-hairline",
|
|
3127
3437
|
primary: "bg-primary text-on-primary border border-primary",
|
|
@@ -3134,7 +3444,7 @@ var sizeClasses3 = {
|
|
|
3134
3444
|
md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", dismissSize: "sm" },
|
|
3135
3445
|
lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", dismissSize: "sm" }
|
|
3136
3446
|
};
|
|
3137
|
-
var
|
|
3447
|
+
var CloseIcon2 = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
3138
3448
|
"svg",
|
|
3139
3449
|
{
|
|
3140
3450
|
viewBox: "0 0 16 16",
|
|
@@ -3145,12 +3455,12 @@ var CloseIcon = ({ className }) => /* @__PURE__ */ jsxs12(
|
|
|
3145
3455
|
className,
|
|
3146
3456
|
"aria-hidden": "true",
|
|
3147
3457
|
children: [
|
|
3148
|
-
/* @__PURE__ */
|
|
3149
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ jsx13("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
|
|
3459
|
+
/* @__PURE__ */ jsx13("line", { x1: "12", y1: "4", x2: "4", y2: "12" })
|
|
3150
3460
|
]
|
|
3151
3461
|
}
|
|
3152
3462
|
);
|
|
3153
|
-
var Chip =
|
|
3463
|
+
var Chip = React13.forwardRef(
|
|
3154
3464
|
({
|
|
3155
3465
|
label,
|
|
3156
3466
|
variant = "default",
|
|
@@ -3164,7 +3474,7 @@ var Chip = React12.forwardRef(
|
|
|
3164
3474
|
const sz = sizeClasses3[size];
|
|
3165
3475
|
const vr = variantClasses2[variant];
|
|
3166
3476
|
const disabledStyles = disabled ? "opacity-50 pointer-events-none select-none" : "";
|
|
3167
|
-
return /* @__PURE__ */
|
|
3477
|
+
return /* @__PURE__ */ jsxs13(
|
|
3168
3478
|
"span",
|
|
3169
3479
|
{
|
|
3170
3480
|
ref,
|
|
@@ -3179,7 +3489,7 @@ var Chip = React12.forwardRef(
|
|
|
3179
3489
|
].filter(Boolean).join(" "),
|
|
3180
3490
|
...props,
|
|
3181
3491
|
children: [
|
|
3182
|
-
icon && /* @__PURE__ */
|
|
3492
|
+
icon && /* @__PURE__ */ jsx13(
|
|
3183
3493
|
"span",
|
|
3184
3494
|
{
|
|
3185
3495
|
className: `${sz.icon} flex-shrink-0 flex items-center justify-center`,
|
|
@@ -3187,8 +3497,8 @@ var Chip = React12.forwardRef(
|
|
|
3187
3497
|
children: icon
|
|
3188
3498
|
}
|
|
3189
3499
|
),
|
|
3190
|
-
/* @__PURE__ */
|
|
3191
|
-
onDismiss && /* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ jsx13("span", { className: sz.text, children: label }),
|
|
3501
|
+
onDismiss && /* @__PURE__ */ jsx13(
|
|
3192
3502
|
Button,
|
|
3193
3503
|
{
|
|
3194
3504
|
variant: "ghost",
|
|
@@ -3197,7 +3507,7 @@ var Chip = React12.forwardRef(
|
|
|
3197
3507
|
disabled,
|
|
3198
3508
|
"aria-label": `Remove ${label}`,
|
|
3199
3509
|
className: "!p-0 !h-4 !w-4 !min-w-0 opacity-60 hover:opacity-100 rounded-full flex-shrink-0",
|
|
3200
|
-
children: /* @__PURE__ */
|
|
3510
|
+
children: /* @__PURE__ */ jsx13(CloseIcon2, { className: "w-3 h-3" })
|
|
3201
3511
|
}
|
|
3202
3512
|
)
|
|
3203
3513
|
]
|
|
@@ -3208,8 +3518,8 @@ var Chip = React12.forwardRef(
|
|
|
3208
3518
|
Chip.displayName = "Chip";
|
|
3209
3519
|
|
|
3210
3520
|
// virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
|
|
3211
|
-
import
|
|
3212
|
-
import { jsx as
|
|
3521
|
+
import React14 from "react";
|
|
3522
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3213
3523
|
var kindColors = {
|
|
3214
3524
|
Atom: "bg-[var(--color-kind-atom-bg)] text-[var(--color-kind-atom-text)] border-[var(--color-kind-atom-border)]",
|
|
3215
3525
|
Molecule: "bg-[var(--color-kind-molecule-bg)] text-[var(--color-kind-molecule-text)] border-[var(--color-kind-molecule-border)]",
|
|
@@ -3222,7 +3532,7 @@ var iconBg = {
|
|
|
3222
3532
|
Organism: "bg-primary text-on-primary",
|
|
3223
3533
|
Template: "bg-[var(--color-kind-template-bg)] text-[var(--color-kind-template-text)]"
|
|
3224
3534
|
};
|
|
3225
|
-
var ComponentCard =
|
|
3535
|
+
var ComponentCard = React14.forwardRef(
|
|
3226
3536
|
({
|
|
3227
3537
|
name,
|
|
3228
3538
|
kind = "Organism",
|
|
@@ -3233,7 +3543,7 @@ var ComponentCard = React13.forwardRef(
|
|
|
3233
3543
|
className,
|
|
3234
3544
|
...rest
|
|
3235
3545
|
}, ref) => {
|
|
3236
|
-
return /* @__PURE__ */
|
|
3546
|
+
return /* @__PURE__ */ jsxs14(
|
|
3237
3547
|
"div",
|
|
3238
3548
|
{
|
|
3239
3549
|
ref,
|
|
@@ -3248,7 +3558,7 @@ var ComponentCard = React13.forwardRef(
|
|
|
3248
3558
|
].filter(Boolean).join(" "),
|
|
3249
3559
|
...rest,
|
|
3250
3560
|
children: [
|
|
3251
|
-
/* @__PURE__ */
|
|
3561
|
+
/* @__PURE__ */ jsx14(
|
|
3252
3562
|
"div",
|
|
3253
3563
|
{
|
|
3254
3564
|
className: [
|
|
@@ -3256,15 +3566,15 @@ var ComponentCard = React13.forwardRef(
|
|
|
3256
3566
|
"w-full aspect-[4/3] overflow-hidden",
|
|
3257
3567
|
thumbnailBg ?? "bg-surface-soft"
|
|
3258
3568
|
].join(" "),
|
|
3259
|
-
children: thumbnailContent ?? /* @__PURE__ */
|
|
3569
|
+
children: thumbnailContent ?? /* @__PURE__ */ jsx14(DefaultThumbnail, { kind })
|
|
3260
3570
|
}
|
|
3261
3571
|
),
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3572
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
|
|
3573
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3574
|
+
/* @__PURE__ */ jsx14("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
|
|
3575
|
+
/* @__PURE__ */ jsx14("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
|
|
3266
3576
|
] }),
|
|
3267
|
-
/* @__PURE__ */
|
|
3577
|
+
/* @__PURE__ */ jsx14(
|
|
3268
3578
|
"span",
|
|
3269
3579
|
{
|
|
3270
3580
|
className: [
|
|
@@ -3285,27 +3595,27 @@ var ComponentCard = React13.forwardRef(
|
|
|
3285
3595
|
ComponentCard.displayName = "ComponentCard";
|
|
3286
3596
|
function DefaultThumbnail({ kind }) {
|
|
3287
3597
|
const icons = {
|
|
3288
|
-
Atom: /* @__PURE__ */
|
|
3289
|
-
/* @__PURE__ */
|
|
3290
|
-
/* @__PURE__ */
|
|
3291
|
-
/* @__PURE__ */
|
|
3598
|
+
Atom: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3599
|
+
/* @__PURE__ */ jsx14("circle", { cx: "12", cy: "12", r: "1" }),
|
|
3600
|
+
/* @__PURE__ */ jsx14("path", { d: "M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z" }),
|
|
3601
|
+
/* @__PURE__ */ jsx14("path", { d: "M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z" })
|
|
3292
3602
|
] }),
|
|
3293
|
-
Molecule: /* @__PURE__ */
|
|
3294
|
-
/* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3296
|
-
/* @__PURE__ */
|
|
3603
|
+
Molecule: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3604
|
+
/* @__PURE__ */ jsx14("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3605
|
+
/* @__PURE__ */ jsx14("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3606
|
+
/* @__PURE__ */ jsx14("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
|
|
3297
3607
|
] }),
|
|
3298
|
-
Organism: /* @__PURE__ */
|
|
3299
|
-
/* @__PURE__ */
|
|
3300
|
-
/* @__PURE__ */
|
|
3301
|
-
/* @__PURE__ */
|
|
3608
|
+
Organism: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3609
|
+
/* @__PURE__ */ jsx14("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
|
|
3610
|
+
/* @__PURE__ */ jsx14("path", { d: "M2 17l10 5 10-5" }),
|
|
3611
|
+
/* @__PURE__ */ jsx14("path", { d: "M2 12l10 5 10-5" })
|
|
3302
3612
|
] }),
|
|
3303
|
-
Template: /* @__PURE__ */
|
|
3304
|
-
/* @__PURE__ */
|
|
3305
|
-
/* @__PURE__ */
|
|
3613
|
+
Template: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3614
|
+
/* @__PURE__ */ jsx14("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
3615
|
+
/* @__PURE__ */ jsx14("path", { d: "M3 9h18M9 21V9" })
|
|
3306
3616
|
] })
|
|
3307
3617
|
};
|
|
3308
|
-
return /* @__PURE__ */
|
|
3618
|
+
return /* @__PURE__ */ jsx14(
|
|
3309
3619
|
"div",
|
|
3310
3620
|
{
|
|
3311
3621
|
className: [
|
|
@@ -3318,11 +3628,11 @@ function DefaultThumbnail({ kind }) {
|
|
|
3318
3628
|
}
|
|
3319
3629
|
|
|
3320
3630
|
// virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
|
|
3321
|
-
import
|
|
3322
|
-
import { jsx as
|
|
3323
|
-
var FilterTabBar =
|
|
3631
|
+
import React15 from "react";
|
|
3632
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3633
|
+
var FilterTabBar = React15.forwardRef(
|
|
3324
3634
|
({ tabs, value, onChange, className = "", ...rest }, ref) => {
|
|
3325
|
-
return /* @__PURE__ */
|
|
3635
|
+
return /* @__PURE__ */ jsx15(
|
|
3326
3636
|
"div",
|
|
3327
3637
|
{
|
|
3328
3638
|
ref,
|
|
@@ -3336,7 +3646,7 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3336
3646
|
...rest,
|
|
3337
3647
|
children: tabs.map((tab) => {
|
|
3338
3648
|
const isActive = tab.value === value;
|
|
3339
|
-
return /* @__PURE__ */
|
|
3649
|
+
return /* @__PURE__ */ jsxs15(
|
|
3340
3650
|
Button,
|
|
3341
3651
|
{
|
|
3342
3652
|
role: "tab",
|
|
@@ -3347,9 +3657,9 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3347
3657
|
onClick: () => onChange(tab.value),
|
|
3348
3658
|
className: "gap-xs",
|
|
3349
3659
|
children: [
|
|
3350
|
-
tab.icon && /* @__PURE__ */
|
|
3351
|
-
tab.label && /* @__PURE__ */
|
|
3352
|
-
tab.count !== void 0 && /* @__PURE__ */
|
|
3660
|
+
tab.icon && /* @__PURE__ */ jsx15("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
|
|
3661
|
+
tab.label && /* @__PURE__ */ jsx15("span", { children: tab.label }),
|
|
3662
|
+
tab.count !== void 0 && /* @__PURE__ */ jsx15(
|
|
3353
3663
|
"span",
|
|
3354
3664
|
{
|
|
3355
3665
|
className: [
|
|
@@ -3374,15 +3684,258 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3374
3684
|
);
|
|
3375
3685
|
FilterTabBar.displayName = "FilterTabBar";
|
|
3376
3686
|
|
|
3687
|
+
// virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
|
|
3688
|
+
import React16 from "react";
|
|
3689
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3690
|
+
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: [
|
|
3691
|
+
/* @__PURE__ */ jsx16("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
|
|
3692
|
+
/* @__PURE__ */ jsx16("polyline", { points: "9 22 9 12 15 12 15 22" })
|
|
3693
|
+
] });
|
|
3694
|
+
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" }) });
|
|
3695
|
+
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: [
|
|
3696
|
+
/* @__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)" } }),
|
|
3697
|
+
/* @__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)" } }),
|
|
3698
|
+
/* @__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 } })
|
|
3699
|
+
] });
|
|
3700
|
+
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" }) });
|
|
3701
|
+
var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx16(
|
|
3702
|
+
Button,
|
|
3703
|
+
{
|
|
3704
|
+
type: "button",
|
|
3705
|
+
variant: "secondary",
|
|
3706
|
+
size: "sm",
|
|
3707
|
+
onClick,
|
|
3708
|
+
className: "!rounded-xl whitespace-nowrap",
|
|
3709
|
+
children: label
|
|
3710
|
+
}
|
|
3711
|
+
);
|
|
3712
|
+
var NAV_ENTRIES = [
|
|
3713
|
+
{ id: "home", label: "Home", icon: /* @__PURE__ */ jsx16(HomeIcon2, {}) },
|
|
3714
|
+
{
|
|
3715
|
+
id: "projects",
|
|
3716
|
+
label: "All projects",
|
|
3717
|
+
icon: /* @__PURE__ */ jsx16(FolderIcon, {}),
|
|
3718
|
+
subItems: [
|
|
3719
|
+
{ id: "proj-1", label: "Design system" },
|
|
3720
|
+
{ id: "proj-2", label: "Landing page" },
|
|
3721
|
+
{ id: "proj-3", label: "Dashboard" }
|
|
3722
|
+
]
|
|
3723
|
+
}
|
|
3724
|
+
];
|
|
3725
|
+
var DEFAULT_SUGGESTIONS = [
|
|
3726
|
+
"Primary button atom",
|
|
3727
|
+
"Brand color palette",
|
|
3728
|
+
"Type scale",
|
|
3729
|
+
"Card molecule"
|
|
3730
|
+
];
|
|
3731
|
+
var GRADIENT_BG = `
|
|
3732
|
+
radial-gradient(ellipse 80% 60% at 30% 20%, var(--color-primary-disabled) 0%, transparent 55%),
|
|
3733
|
+
radial-gradient(ellipse 60% 50% at 75% 80%, color-mix(in srgb, var(--color-logo-orange) 20%, transparent) 0%, transparent 55%),
|
|
3734
|
+
radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
|
|
3735
|
+
var(--color-canvas)
|
|
3736
|
+
`;
|
|
3737
|
+
var HomePageTemplate = React16.forwardRef(
|
|
3738
|
+
({
|
|
3739
|
+
userName = "Hello Designer",
|
|
3740
|
+
userInitials = "N",
|
|
3741
|
+
promptValue,
|
|
3742
|
+
onPromptChange,
|
|
3743
|
+
mode = "Build",
|
|
3744
|
+
onModeChange,
|
|
3745
|
+
onSend,
|
|
3746
|
+
suggestions = DEFAULT_SUGGESTIONS,
|
|
3747
|
+
onSuggestionClick,
|
|
3748
|
+
navEntries,
|
|
3749
|
+
activeId: activeIdProp,
|
|
3750
|
+
onSelect,
|
|
3751
|
+
activeSubId,
|
|
3752
|
+
onSubSelect,
|
|
3753
|
+
className,
|
|
3754
|
+
style
|
|
3755
|
+
}, ref) => {
|
|
3756
|
+
const [internalPrompt, setInternalPrompt] = React16.useState("");
|
|
3757
|
+
const [internalActiveId, setInternalActiveId] = React16.useState("home");
|
|
3758
|
+
const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
|
|
3759
|
+
const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
|
|
3760
|
+
const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
|
|
3761
|
+
const handleChange = (val) => {
|
|
3762
|
+
if (promptValue === void 0) setInternalPrompt(val);
|
|
3763
|
+
onPromptChange?.(val);
|
|
3764
|
+
};
|
|
3765
|
+
const handleSend = (val) => {
|
|
3766
|
+
onSend?.(val);
|
|
3767
|
+
if (promptValue === void 0) setInternalPrompt("");
|
|
3768
|
+
};
|
|
3769
|
+
const handleSuggestion = (label) => {
|
|
3770
|
+
if (promptValue === void 0) setInternalPrompt(label);
|
|
3771
|
+
onPromptChange?.(label);
|
|
3772
|
+
onSuggestionClick?.(label);
|
|
3773
|
+
};
|
|
3774
|
+
const handleSelect = (id) => {
|
|
3775
|
+
if (activeIdProp === void 0) setInternalActiveId(id);
|
|
3776
|
+
onSelect?.(id);
|
|
3777
|
+
};
|
|
3778
|
+
return /* @__PURE__ */ jsxs16(
|
|
3779
|
+
"div",
|
|
3780
|
+
{
|
|
3781
|
+
ref,
|
|
3782
|
+
className: ["flex w-full", className].filter(Boolean).join(" "),
|
|
3783
|
+
style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
|
|
3784
|
+
children: [
|
|
3785
|
+
/* @__PURE__ */ jsx16("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx16(
|
|
3786
|
+
AppSidebar,
|
|
3787
|
+
{
|
|
3788
|
+
workspaceName: userName,
|
|
3789
|
+
entries: resolvedEntries,
|
|
3790
|
+
activeId: resolvedActiveId,
|
|
3791
|
+
onSelect: handleSelect,
|
|
3792
|
+
activeSubId,
|
|
3793
|
+
onSubSelect,
|
|
3794
|
+
showShareCard: true,
|
|
3795
|
+
showUpgradeCard: true,
|
|
3796
|
+
userInitials,
|
|
3797
|
+
onInboxClick: () => {
|
|
3798
|
+
},
|
|
3799
|
+
style: { height: "100%" }
|
|
3800
|
+
}
|
|
3801
|
+
) }),
|
|
3802
|
+
/* @__PURE__ */ jsxs16(
|
|
3803
|
+
"main",
|
|
3804
|
+
{
|
|
3805
|
+
className: "flex-1 relative flex flex-col overflow-hidden",
|
|
3806
|
+
style: { height: "100%" },
|
|
3807
|
+
"aria-label": "Home canvas",
|
|
3808
|
+
children: [
|
|
3809
|
+
/* @__PURE__ */ jsx16(
|
|
3810
|
+
"div",
|
|
3811
|
+
{
|
|
3812
|
+
"aria-hidden": "true",
|
|
3813
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3814
|
+
style: { background: GRADIENT_BG }
|
|
3815
|
+
}
|
|
3816
|
+
),
|
|
3817
|
+
/* @__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: [
|
|
3818
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-sm", children: [
|
|
3819
|
+
/* @__PURE__ */ jsx16(
|
|
3820
|
+
AppSidebarMobile,
|
|
3821
|
+
{
|
|
3822
|
+
brandName: "Atoms",
|
|
3823
|
+
entries: resolvedEntries,
|
|
3824
|
+
activeId: resolvedActiveId,
|
|
3825
|
+
onSelect: handleSelect,
|
|
3826
|
+
workspaceName: userName,
|
|
3827
|
+
showShareCard: true,
|
|
3828
|
+
showUpgradeCard: true,
|
|
3829
|
+
userInitials,
|
|
3830
|
+
onInboxClick: () => {
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
),
|
|
3834
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-xs", children: [
|
|
3835
|
+
/* @__PURE__ */ jsx16(LogoIcon3, {}),
|
|
3836
|
+
/* @__PURE__ */ jsx16("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
|
|
3837
|
+
] })
|
|
3838
|
+
] }),
|
|
3839
|
+
/* @__PURE__ */ jsx16(
|
|
3840
|
+
"span",
|
|
3841
|
+
{
|
|
3842
|
+
className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
|
|
3843
|
+
style: { width: "32px", height: "32px" },
|
|
3844
|
+
"aria-label": "User profile",
|
|
3845
|
+
children: userInitials
|
|
3846
|
+
}
|
|
3847
|
+
)
|
|
3848
|
+
] }),
|
|
3849
|
+
/* @__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: [
|
|
3850
|
+
/* @__PURE__ */ jsxs16(
|
|
3851
|
+
Button,
|
|
3852
|
+
{
|
|
3853
|
+
variant: "secondary",
|
|
3854
|
+
size: "sm",
|
|
3855
|
+
"aria-label": "New design system",
|
|
3856
|
+
className: "!rounded-full flex items-center gap-xs",
|
|
3857
|
+
children: [
|
|
3858
|
+
/* @__PURE__ */ jsx16(SparkleIcon, {}),
|
|
3859
|
+
"New design system"
|
|
3860
|
+
]
|
|
3861
|
+
}
|
|
3862
|
+
),
|
|
3863
|
+
/* @__PURE__ */ jsxs16("div", { className: "text-center flex flex-col gap-sm", children: [
|
|
3864
|
+
/* @__PURE__ */ jsxs16(
|
|
3865
|
+
"h1",
|
|
3866
|
+
{
|
|
3867
|
+
className: "text-ink",
|
|
3868
|
+
style: {
|
|
3869
|
+
fontFamily: "var(--font-body)",
|
|
3870
|
+
fontSize: "clamp(26px, 5vw, 52px)",
|
|
3871
|
+
fontWeight: 700,
|
|
3872
|
+
lineHeight: 1.1,
|
|
3873
|
+
letterSpacing: "-0.03em"
|
|
3874
|
+
},
|
|
3875
|
+
children: [
|
|
3876
|
+
"What atom should we",
|
|
3877
|
+
/* @__PURE__ */ jsx16("br", {}),
|
|
3878
|
+
"build?"
|
|
3879
|
+
]
|
|
3880
|
+
}
|
|
3881
|
+
),
|
|
3882
|
+
/* @__PURE__ */ jsx16(
|
|
3883
|
+
"p",
|
|
3884
|
+
{
|
|
3885
|
+
className: "text-muted text-body-sm md:text-body-md",
|
|
3886
|
+
style: { maxWidth: "440px", marginInline: "auto" },
|
|
3887
|
+
children: "Start by describing an atom or design token \u2014 we'll scaffold a fresh project and the agent will build the first piece of your system."
|
|
3888
|
+
}
|
|
3889
|
+
)
|
|
3890
|
+
] }),
|
|
3891
|
+
/* @__PURE__ */ jsx16("div", { className: "w-full", children: /* @__PURE__ */ jsx16(
|
|
3892
|
+
PromptInputBar,
|
|
3893
|
+
{
|
|
3894
|
+
placeholder: "Describe an atom or design token to create...",
|
|
3895
|
+
value: textValue,
|
|
3896
|
+
onChange: handleChange,
|
|
3897
|
+
mode,
|
|
3898
|
+
onModeChange,
|
|
3899
|
+
onSend: handleSend,
|
|
3900
|
+
onMic: () => {
|
|
3901
|
+
},
|
|
3902
|
+
models: [
|
|
3903
|
+
{ id: "claude-sonnet", name: "Claude Sonnet 4.6" },
|
|
3904
|
+
{ id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
|
|
3905
|
+
{ id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
|
|
3906
|
+
],
|
|
3907
|
+
selectedModelId: "claude-sonnet"
|
|
3908
|
+
}
|
|
3909
|
+
) }),
|
|
3910
|
+
/* @__PURE__ */ jsx16(
|
|
3911
|
+
"div",
|
|
3912
|
+
{
|
|
3913
|
+
className: "flex flex-wrap justify-center gap-sm",
|
|
3914
|
+
role: "list",
|
|
3915
|
+
"aria-label": "Suggested prompts",
|
|
3916
|
+
children: suggestions.map((s) => /* @__PURE__ */ jsx16("div", { role: "listitem", children: /* @__PURE__ */ jsx16(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
|
|
3917
|
+
}
|
|
3918
|
+
)
|
|
3919
|
+
] }) })
|
|
3920
|
+
]
|
|
3921
|
+
}
|
|
3922
|
+
)
|
|
3923
|
+
]
|
|
3924
|
+
}
|
|
3925
|
+
);
|
|
3926
|
+
}
|
|
3927
|
+
);
|
|
3928
|
+
HomePageTemplate.displayName = "HomePageTemplate";
|
|
3929
|
+
|
|
3377
3930
|
// virtual-pkg:src/atoms/Modal/Modal.tsx
|
|
3378
|
-
import
|
|
3379
|
-
import { jsx as
|
|
3931
|
+
import React17, { useEffect, useRef, useState as useState2 } from "react";
|
|
3932
|
+
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3380
3933
|
var sizeMap = {
|
|
3381
3934
|
sm: "max-w-sm",
|
|
3382
3935
|
md: "max-w-lg",
|
|
3383
3936
|
lg: "max-w-2xl"
|
|
3384
3937
|
};
|
|
3385
|
-
var Modal =
|
|
3938
|
+
var Modal = React17.forwardRef(
|
|
3386
3939
|
({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
|
|
3387
3940
|
const [mounted, setMounted] = useState2(false);
|
|
3388
3941
|
const [visible, setVisible] = useState2(false);
|
|
@@ -3412,7 +3965,7 @@ var Modal = React15.forwardRef(
|
|
|
3412
3965
|
const handleBackdropClick = (e) => {
|
|
3413
3966
|
if (e.target === overlayRef.current) onClose();
|
|
3414
3967
|
};
|
|
3415
|
-
return /* @__PURE__ */
|
|
3968
|
+
return /* @__PURE__ */ jsx17(
|
|
3416
3969
|
"div",
|
|
3417
3970
|
{
|
|
3418
3971
|
ref: overlayRef,
|
|
@@ -3427,7 +3980,7 @@ var Modal = React15.forwardRef(
|
|
|
3427
3980
|
visible ? "opacity-100" : "opacity-0"
|
|
3428
3981
|
].join(" "),
|
|
3429
3982
|
style: { zIndex: "var(--z-modal, 1000)" },
|
|
3430
|
-
children: /* @__PURE__ */
|
|
3983
|
+
children: /* @__PURE__ */ jsxs17(
|
|
3431
3984
|
"div",
|
|
3432
3985
|
{
|
|
3433
3986
|
ref,
|
|
@@ -3440,9 +3993,9 @@ var Modal = React15.forwardRef(
|
|
|
3440
3993
|
visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
|
|
3441
3994
|
].join(" "),
|
|
3442
3995
|
children: [
|
|
3443
|
-
title && /* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3445
|
-
/* @__PURE__ */
|
|
3996
|
+
title && /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
|
|
3997
|
+
/* @__PURE__ */ jsx17("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
|
|
3998
|
+
/* @__PURE__ */ jsx17(
|
|
3446
3999
|
Button,
|
|
3447
4000
|
{
|
|
3448
4001
|
variant: "ghost",
|
|
@@ -3450,7 +4003,7 @@ var Modal = React15.forwardRef(
|
|
|
3450
4003
|
"aria-label": "Close modal",
|
|
3451
4004
|
onClick: onClose,
|
|
3452
4005
|
className: "!px-xs !py-xs",
|
|
3453
|
-
children: /* @__PURE__ */
|
|
4006
|
+
children: /* @__PURE__ */ jsxs17(
|
|
3454
4007
|
"svg",
|
|
3455
4008
|
{
|
|
3456
4009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3464,16 +4017,16 @@ var Modal = React15.forwardRef(
|
|
|
3464
4017
|
strokeLinejoin: "round",
|
|
3465
4018
|
"aria-hidden": "true",
|
|
3466
4019
|
children: [
|
|
3467
|
-
/* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */
|
|
4020
|
+
/* @__PURE__ */ jsx17("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
4021
|
+
/* @__PURE__ */ jsx17("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
3469
4022
|
]
|
|
3470
4023
|
}
|
|
3471
4024
|
)
|
|
3472
4025
|
}
|
|
3473
4026
|
)
|
|
3474
4027
|
] }),
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
footer && /* @__PURE__ */
|
|
4028
|
+
/* @__PURE__ */ jsx17("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
|
|
4029
|
+
footer && /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
|
|
3477
4030
|
]
|
|
3478
4031
|
}
|
|
3479
4032
|
)
|
|
@@ -3484,44 +4037,44 @@ var Modal = React15.forwardRef(
|
|
|
3484
4037
|
Modal.displayName = "Modal";
|
|
3485
4038
|
|
|
3486
4039
|
// virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
|
|
3487
|
-
import
|
|
3488
|
-
import { jsx as
|
|
3489
|
-
var DesktopIcon = () => /* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
4040
|
+
import React18 from "react";
|
|
4041
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4042
|
+
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: [
|
|
4043
|
+
/* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
|
|
4044
|
+
/* @__PURE__ */ jsx18("path", { d: "M8 21h8M12 17v4" })
|
|
3492
4045
|
] });
|
|
3493
|
-
var SidebarIcon2 = () => /* @__PURE__ */
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
/* @__PURE__ */
|
|
4046
|
+
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: [
|
|
4047
|
+
/* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
|
|
4048
|
+
/* @__PURE__ */ jsx18("path", { d: "M9 3v18" })
|
|
3496
4049
|
] });
|
|
3497
|
-
var MobileIcon = () => /* @__PURE__ */
|
|
3498
|
-
/* @__PURE__ */
|
|
3499
|
-
/* @__PURE__ */
|
|
4050
|
+
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: [
|
|
4051
|
+
/* @__PURE__ */ jsx18("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
|
|
4052
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
|
|
3500
4053
|
] });
|
|
3501
|
-
var ExpandIcon = () => /* @__PURE__ */
|
|
3502
|
-
var InspectIcon = () => /* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3504
|
-
/* @__PURE__ */
|
|
3505
|
-
/* @__PURE__ */
|
|
4054
|
+
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" }) });
|
|
4055
|
+
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: [
|
|
4056
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "9" }),
|
|
4057
|
+
/* @__PURE__ */ jsx18("path", { d: "M12 8v4l3 3" }),
|
|
4058
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
|
|
3506
4059
|
] });
|
|
3507
|
-
var
|
|
3508
|
-
var FullscreenIcon = () => /* @__PURE__ */
|
|
3509
|
-
/* @__PURE__ */
|
|
3510
|
-
/* @__PURE__ */
|
|
3511
|
-
/* @__PURE__ */
|
|
3512
|
-
/* @__PURE__ */
|
|
4060
|
+
var MoonIcon3 = () => /* @__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" }) });
|
|
4061
|
+
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: [
|
|
4062
|
+
/* @__PURE__ */ jsx18("polyline", { points: "15 3 21 3 21 9" }),
|
|
4063
|
+
/* @__PURE__ */ jsx18("polyline", { points: "9 21 3 21 3 15" }),
|
|
4064
|
+
/* @__PURE__ */ jsx18("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
|
|
4065
|
+
/* @__PURE__ */ jsx18("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
3513
4066
|
] });
|
|
3514
|
-
var DotsIcon = () => /* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3516
|
-
/* @__PURE__ */
|
|
3517
|
-
/* @__PURE__ */
|
|
4067
|
+
var DotsIcon = () => /* @__PURE__ */ jsxs18("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
|
|
4068
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "5", r: "1.6" }),
|
|
4069
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1.6" }),
|
|
4070
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "19", r: "1.6" })
|
|
3518
4071
|
] });
|
|
3519
4072
|
var VIEWPORT_OPTIONS = [
|
|
3520
4073
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
3521
4074
|
{ id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
|
|
3522
4075
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" }
|
|
3523
4076
|
];
|
|
3524
|
-
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */
|
|
4077
|
+
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx18(
|
|
3525
4078
|
Button,
|
|
3526
4079
|
{
|
|
3527
4080
|
variant: active ? "primary" : "ghost",
|
|
@@ -3533,7 +4086,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx1
|
|
|
3533
4086
|
children
|
|
3534
4087
|
}
|
|
3535
4088
|
);
|
|
3536
|
-
var PreviewToolbar =
|
|
4089
|
+
var PreviewToolbar = React18.forwardRef(
|
|
3537
4090
|
({
|
|
3538
4091
|
viewport = "desktop",
|
|
3539
4092
|
onViewportChange,
|
|
@@ -3548,7 +4101,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3548
4101
|
kindLabel = "ATOM",
|
|
3549
4102
|
onOverflow,
|
|
3550
4103
|
className = ""
|
|
3551
|
-
}, ref) => /* @__PURE__ */
|
|
4104
|
+
}, ref) => /* @__PURE__ */ jsxs18(
|
|
3552
4105
|
"div",
|
|
3553
4106
|
{
|
|
3554
4107
|
ref,
|
|
@@ -3562,24 +4115,24 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3562
4115
|
className
|
|
3563
4116
|
].filter(Boolean).join(" "),
|
|
3564
4117
|
children: [
|
|
3565
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ jsxs18(
|
|
3566
4119
|
"div",
|
|
3567
4120
|
{
|
|
3568
4121
|
role: "group",
|
|
3569
4122
|
"aria-label": "Viewport size",
|
|
3570
4123
|
className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
|
|
3571
4124
|
children: [
|
|
3572
|
-
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */
|
|
4125
|
+
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx18(
|
|
3573
4126
|
ViewportBtn,
|
|
3574
4127
|
{
|
|
3575
4128
|
label,
|
|
3576
4129
|
active: !expanded && viewport === id,
|
|
3577
4130
|
onClick: () => onViewportChange?.(id),
|
|
3578
|
-
children: /* @__PURE__ */
|
|
4131
|
+
children: /* @__PURE__ */ jsx18(Icon, {})
|
|
3579
4132
|
},
|
|
3580
4133
|
id
|
|
3581
4134
|
)),
|
|
3582
|
-
/* @__PURE__ */
|
|
4135
|
+
/* @__PURE__ */ jsx18(
|
|
3583
4136
|
Button,
|
|
3584
4137
|
{
|
|
3585
4138
|
variant: expanded ? "primary" : "ghost",
|
|
@@ -3591,14 +4144,14 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3591
4144
|
"!w-8 !h-8 !p-0 rounded-sm shrink-0",
|
|
3592
4145
|
expanded ? "" : "text-muted"
|
|
3593
4146
|
].join(" "),
|
|
3594
|
-
children: /* @__PURE__ */
|
|
4147
|
+
children: /* @__PURE__ */ jsx18(ExpandIcon, {})
|
|
3595
4148
|
}
|
|
3596
4149
|
)
|
|
3597
4150
|
]
|
|
3598
4151
|
}
|
|
3599
4152
|
),
|
|
3600
|
-
/* @__PURE__ */
|
|
3601
|
-
/* @__PURE__ */
|
|
4153
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-wrap items-center gap-sm", children: [
|
|
4154
|
+
/* @__PURE__ */ jsxs18(
|
|
3602
4155
|
Button,
|
|
3603
4156
|
{
|
|
3604
4157
|
variant: inspecting ? "primary" : "secondary",
|
|
@@ -3607,12 +4160,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3607
4160
|
onClick: onInspectTokens,
|
|
3608
4161
|
className: "gap-xs rounded-xl",
|
|
3609
4162
|
children: [
|
|
3610
|
-
/* @__PURE__ */
|
|
4163
|
+
/* @__PURE__ */ jsx18(InspectIcon, {}),
|
|
3611
4164
|
inspecting ? "Exit inspect" : "Inspect tokens"
|
|
3612
4165
|
]
|
|
3613
4166
|
}
|
|
3614
4167
|
),
|
|
3615
|
-
/* @__PURE__ */
|
|
4168
|
+
/* @__PURE__ */ jsxs18(
|
|
3616
4169
|
Button,
|
|
3617
4170
|
{
|
|
3618
4171
|
variant: darkMode ? "primary" : "secondary",
|
|
@@ -3621,12 +4174,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3621
4174
|
onClick: onDarkToggle,
|
|
3622
4175
|
className: "gap-xs rounded-xl",
|
|
3623
4176
|
children: [
|
|
3624
|
-
/* @__PURE__ */
|
|
4177
|
+
/* @__PURE__ */ jsx18(MoonIcon3, {}),
|
|
3625
4178
|
"Dark"
|
|
3626
4179
|
]
|
|
3627
4180
|
}
|
|
3628
4181
|
),
|
|
3629
|
-
/* @__PURE__ */
|
|
4182
|
+
/* @__PURE__ */ jsxs18(
|
|
3630
4183
|
Button,
|
|
3631
4184
|
{
|
|
3632
4185
|
variant: "secondary",
|
|
@@ -3634,12 +4187,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3634
4187
|
onClick: onFullscreen,
|
|
3635
4188
|
className: "gap-xs rounded-xl",
|
|
3636
4189
|
children: [
|
|
3637
|
-
/* @__PURE__ */
|
|
4190
|
+
/* @__PURE__ */ jsx18(FullscreenIcon, {}),
|
|
3638
4191
|
"Fullscreen"
|
|
3639
4192
|
]
|
|
3640
4193
|
}
|
|
3641
4194
|
),
|
|
3642
|
-
/* @__PURE__ */
|
|
4195
|
+
/* @__PURE__ */ jsx18(
|
|
3643
4196
|
Chip,
|
|
3644
4197
|
{
|
|
3645
4198
|
label: modelLabel ?? "",
|
|
@@ -3648,7 +4201,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3648
4201
|
className: "border-primary text-primary bg-canvas cursor-default select-none"
|
|
3649
4202
|
}
|
|
3650
4203
|
),
|
|
3651
|
-
/* @__PURE__ */
|
|
4204
|
+
/* @__PURE__ */ jsx18(
|
|
3652
4205
|
Chip,
|
|
3653
4206
|
{
|
|
3654
4207
|
label: kindLabel ?? "",
|
|
@@ -3657,7 +4210,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3657
4210
|
className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
|
|
3658
4211
|
}
|
|
3659
4212
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ jsx18(
|
|
3661
4214
|
Button,
|
|
3662
4215
|
{
|
|
3663
4216
|
variant: "ghost",
|
|
@@ -3665,7 +4218,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3665
4218
|
"aria-label": "More options",
|
|
3666
4219
|
onClick: onOverflow,
|
|
3667
4220
|
className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
|
|
3668
|
-
children: /* @__PURE__ */
|
|
4221
|
+
children: /* @__PURE__ */ jsx18(DotsIcon, {})
|
|
3669
4222
|
}
|
|
3670
4223
|
)
|
|
3671
4224
|
] })
|
|
@@ -3676,8 +4229,8 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3676
4229
|
PreviewToolbar.displayName = "PreviewToolbar";
|
|
3677
4230
|
|
|
3678
4231
|
// virtual-pkg:src/atoms/Typography/Typography.tsx
|
|
3679
|
-
import
|
|
3680
|
-
import { jsx as
|
|
4232
|
+
import React19 from "react";
|
|
4233
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3681
4234
|
var roleTagMap = {
|
|
3682
4235
|
"display-lg": "h1",
|
|
3683
4236
|
"heading-lg": "h2",
|
|
@@ -3709,7 +4262,7 @@ var colorClassMap = {
|
|
|
3709
4262
|
"semantic-warning": "text-semantic-warning",
|
|
3710
4263
|
"on-primary": "text-on-primary"
|
|
3711
4264
|
};
|
|
3712
|
-
var Typography =
|
|
4265
|
+
var Typography = React19.forwardRef(
|
|
3713
4266
|
({
|
|
3714
4267
|
role = "body-md",
|
|
3715
4268
|
color = "ink",
|
|
@@ -3728,19 +4281,21 @@ var Typography = React17.forwardRef(
|
|
|
3728
4281
|
uppercase ? "uppercase tracking-wide" : "",
|
|
3729
4282
|
className
|
|
3730
4283
|
].filter(Boolean).join(" ");
|
|
3731
|
-
return /* @__PURE__ */
|
|
4284
|
+
return /* @__PURE__ */ jsx19(Tag, { ref, className: classes, ...rest, children });
|
|
3732
4285
|
}
|
|
3733
4286
|
);
|
|
3734
4287
|
Typography.displayName = "Typography";
|
|
3735
4288
|
export {
|
|
3736
4289
|
AppLayout,
|
|
3737
4290
|
AppSidebar,
|
|
4291
|
+
AppSidebarMobile,
|
|
3738
4292
|
AuthScreen,
|
|
3739
4293
|
Button,
|
|
3740
4294
|
ChatScreen,
|
|
3741
4295
|
Chip,
|
|
3742
4296
|
ComponentCard,
|
|
3743
4297
|
FilterTabBar,
|
|
4298
|
+
HomePageTemplate,
|
|
3744
4299
|
Input,
|
|
3745
4300
|
Modal,
|
|
3746
4301
|
NavItem,
|