@designa8/vibedesign-v6 1.9.7 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +691 -162
- package/dist/index.js +677 -148
- package/dist/styles.css +46 -0
- package/package.json +11 -1
- package/src/atoms/AppSidebarMobile/AppSidebarMobile.tsx +352 -0
- package/src/atoms/AppSidebarMobile/index.ts +2 -0
- package/src/atoms/AppSidebarMobile/preview.tsx +92 -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,294 @@ 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 AppSidebarMobile = React11.forwardRef(
|
|
2941
|
+
({
|
|
2942
|
+
brandName = "Atoms",
|
|
2943
|
+
entries = [],
|
|
2944
|
+
activeId,
|
|
2945
|
+
onSelect,
|
|
2946
|
+
activeSubId: _activeSubId,
|
|
2947
|
+
onSubSelect,
|
|
2948
|
+
workspaceName,
|
|
2949
|
+
showShareCard = false,
|
|
2950
|
+
showUpgradeCard = false,
|
|
2951
|
+
userInitials,
|
|
2952
|
+
onInboxClick,
|
|
2953
|
+
open: openProp,
|
|
2954
|
+
onOpenChange,
|
|
2955
|
+
className
|
|
2956
|
+
}, ref) => {
|
|
2957
|
+
const [internalOpen, setInternalOpen] = React11.useState(false);
|
|
2958
|
+
const isControlled = openProp !== void 0;
|
|
2959
|
+
const open = isControlled ? openProp : internalOpen;
|
|
2960
|
+
const setOpen = (next) => {
|
|
2961
|
+
if (!isControlled) setInternalOpen(next);
|
|
2962
|
+
onOpenChange?.(next);
|
|
2963
|
+
};
|
|
2964
|
+
const [expandedIds, setExpandedIds] = React11.useState(/* @__PURE__ */ new Set());
|
|
2965
|
+
const toggleExpanded = (id) => {
|
|
2966
|
+
setExpandedIds((prev) => {
|
|
2967
|
+
const next = new Set(prev);
|
|
2968
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
2969
|
+
return next;
|
|
2970
|
+
});
|
|
2971
|
+
};
|
|
2972
|
+
React11.useEffect(() => {
|
|
2973
|
+
if (!open) return;
|
|
2974
|
+
const handler = (e) => {
|
|
2975
|
+
if (e.key === "Escape") setOpen(false);
|
|
2976
|
+
};
|
|
2977
|
+
window.addEventListener("keydown", handler);
|
|
2978
|
+
return () => window.removeEventListener("keydown", handler);
|
|
2979
|
+
}, [open]);
|
|
2980
|
+
const [visible, setVisible] = React11.useState(false);
|
|
2981
|
+
const [mounted, setMounted] = React11.useState(false);
|
|
2982
|
+
React11.useEffect(() => {
|
|
2983
|
+
if (open) {
|
|
2984
|
+
setMounted(true);
|
|
2985
|
+
requestAnimationFrame(() => requestAnimationFrame(() => setVisible(true)));
|
|
2986
|
+
} else {
|
|
2987
|
+
setVisible(false);
|
|
2988
|
+
const t = setTimeout(() => setMounted(false), 300);
|
|
2989
|
+
return () => clearTimeout(t);
|
|
2990
|
+
}
|
|
2991
|
+
}, [open]);
|
|
2992
|
+
return /* @__PURE__ */ jsxs11(Fragment2, { children: [
|
|
2993
|
+
/* @__PURE__ */ jsx11("div", { ref, className, children: /* @__PURE__ */ jsx11(
|
|
2994
|
+
Button,
|
|
2995
|
+
{
|
|
2996
|
+
variant: "ghost",
|
|
2997
|
+
size: "sm",
|
|
2998
|
+
"aria-label": "Open navigation",
|
|
2999
|
+
"aria-expanded": open,
|
|
3000
|
+
onClick: () => setOpen(true),
|
|
3001
|
+
className: "!p-xs !rounded-md",
|
|
3002
|
+
children: /* @__PURE__ */ jsx11(HamburgerIcon, {})
|
|
3003
|
+
}
|
|
3004
|
+
) }),
|
|
3005
|
+
mounted && /* @__PURE__ */ jsxs11(
|
|
3006
|
+
"div",
|
|
3007
|
+
{
|
|
3008
|
+
role: "dialog",
|
|
3009
|
+
"aria-modal": "true",
|
|
3010
|
+
"aria-label": "Navigation menu",
|
|
3011
|
+
style: {
|
|
3012
|
+
position: "fixed",
|
|
3013
|
+
inset: 0,
|
|
3014
|
+
zIndex: 9999
|
|
3015
|
+
},
|
|
3016
|
+
children: [
|
|
3017
|
+
/* @__PURE__ */ jsx11(
|
|
3018
|
+
"div",
|
|
3019
|
+
{
|
|
3020
|
+
"aria-hidden": "true",
|
|
3021
|
+
onClick: () => setOpen(false),
|
|
3022
|
+
style: {
|
|
3023
|
+
position: "absolute",
|
|
3024
|
+
inset: 0,
|
|
3025
|
+
backgroundColor: "var(--color-scrim)",
|
|
3026
|
+
opacity: visible ? 0.5 : 0,
|
|
3027
|
+
transition: "opacity 0.25s ease"
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
),
|
|
3031
|
+
/* @__PURE__ */ jsxs11(
|
|
3032
|
+
"div",
|
|
3033
|
+
{
|
|
3034
|
+
style: {
|
|
3035
|
+
position: "absolute",
|
|
3036
|
+
top: 0,
|
|
3037
|
+
left: 0,
|
|
3038
|
+
bottom: 0,
|
|
3039
|
+
width: "min(280px, 85vw)",
|
|
3040
|
+
display: "flex",
|
|
3041
|
+
flexDirection: "column",
|
|
3042
|
+
/* Solid opaque fill — CSS var resolves from the project tokens;
|
|
3043
|
+
the inline style wins over any inherited transparency. */
|
|
3044
|
+
backgroundColor: "var(--color-canvas)",
|
|
3045
|
+
borderRight: "1px solid var(--color-hairline)",
|
|
3046
|
+
boxShadow: "var(--shadow-lg)",
|
|
3047
|
+
transform: visible ? "translateX(0)" : "translateX(-100%)",
|
|
3048
|
+
transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
|
|
3049
|
+
overflowY: "auto",
|
|
3050
|
+
overflowX: "hidden"
|
|
3051
|
+
},
|
|
3052
|
+
children: [
|
|
3053
|
+
/* @__PURE__ */ jsxs11(
|
|
3054
|
+
"div",
|
|
3055
|
+
{
|
|
3056
|
+
className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
|
|
3057
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3058
|
+
children: [
|
|
3059
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-sm", children: [
|
|
3060
|
+
/* @__PURE__ */ jsx11(LogoIcon2, {}),
|
|
3061
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
|
|
3062
|
+
] }),
|
|
3063
|
+
/* @__PURE__ */ jsx11(
|
|
3064
|
+
Button,
|
|
3065
|
+
{
|
|
3066
|
+
variant: "ghost",
|
|
3067
|
+
size: "sm",
|
|
3068
|
+
"aria-label": "Close navigation",
|
|
3069
|
+
onClick: () => setOpen(false),
|
|
3070
|
+
className: "!p-xs !rounded-md",
|
|
3071
|
+
children: /* @__PURE__ */ jsx11(CloseIcon, {})
|
|
3072
|
+
}
|
|
3073
|
+
)
|
|
3074
|
+
]
|
|
3075
|
+
}
|
|
3076
|
+
),
|
|
3077
|
+
workspaceName && /* @__PURE__ */ jsx11(
|
|
3078
|
+
"div",
|
|
3079
|
+
{
|
|
3080
|
+
className: "px-sm pb-sm",
|
|
3081
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3082
|
+
children: /* @__PURE__ */ jsx11(
|
|
3083
|
+
WorkspaceMenu,
|
|
3084
|
+
{
|
|
3085
|
+
workspaceName,
|
|
3086
|
+
initials: workspaceName.charAt(0).toUpperCase()
|
|
3087
|
+
}
|
|
3088
|
+
)
|
|
3089
|
+
}
|
|
3090
|
+
),
|
|
3091
|
+
/* @__PURE__ */ jsx11(
|
|
3092
|
+
"div",
|
|
3093
|
+
{
|
|
3094
|
+
className: "flex-1 overflow-y-auto px-sm pb-sm",
|
|
3095
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3096
|
+
children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
|
|
3097
|
+
const isActive = activeId === entry.id;
|
|
3098
|
+
const hasSubItems = !!entry.subItems?.length;
|
|
3099
|
+
const isExpanded = expandedIds.has(entry.id);
|
|
3100
|
+
const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
|
|
3101
|
+
id: sub.id,
|
|
3102
|
+
label: sub.label,
|
|
3103
|
+
onDelete: sub.onDelete,
|
|
3104
|
+
onClick: onSubSelect ? (_id) => {
|
|
3105
|
+
onSubSelect(_id);
|
|
3106
|
+
setOpen(false);
|
|
3107
|
+
} : void 0
|
|
3108
|
+
})) : void 0;
|
|
3109
|
+
return /* @__PURE__ */ jsx11(
|
|
3110
|
+
NavItem,
|
|
3111
|
+
{
|
|
3112
|
+
icon: entry.icon,
|
|
3113
|
+
label: entry.label,
|
|
3114
|
+
active: isActive,
|
|
3115
|
+
subItems: mappedSubItems,
|
|
3116
|
+
expanded: hasSubItems ? isExpanded : void 0,
|
|
3117
|
+
onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
|
|
3118
|
+
onClick: (e) => {
|
|
3119
|
+
onSelect?.(entry.id);
|
|
3120
|
+
if (!hasSubItems) setOpen(false);
|
|
3121
|
+
else e.preventDefault();
|
|
3122
|
+
}
|
|
3123
|
+
},
|
|
3124
|
+
entry.id
|
|
3125
|
+
);
|
|
3126
|
+
}) })
|
|
3127
|
+
}
|
|
3128
|
+
),
|
|
3129
|
+
/* @__PURE__ */ jsxs11(
|
|
3130
|
+
"div",
|
|
3131
|
+
{
|
|
3132
|
+
className: "flex-shrink-0 px-sm pb-lg space-y-sm",
|
|
3133
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3134
|
+
children: [
|
|
3135
|
+
showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
|
|
3136
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3137
|
+
/* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
|
|
3138
|
+
/* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
|
|
3139
|
+
] }),
|
|
3140
|
+
/* @__PURE__ */ jsx11(
|
|
3141
|
+
"span",
|
|
3142
|
+
{
|
|
3143
|
+
className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
|
|
3144
|
+
style: { width: "36px", height: "36px" },
|
|
3145
|
+
children: /* @__PURE__ */ jsx11(GiftIcon2, {})
|
|
3146
|
+
}
|
|
3147
|
+
)
|
|
3148
|
+
] }),
|
|
3149
|
+
showUpgradeCard && /* @__PURE__ */ jsx11(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
|
|
3150
|
+
(userInitials || onInboxClick) && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
|
|
3151
|
+
userInitials && /* @__PURE__ */ jsx11(
|
|
3152
|
+
"span",
|
|
3153
|
+
{
|
|
3154
|
+
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",
|
|
3155
|
+
style: { width: "36px", height: "36px" },
|
|
3156
|
+
"aria-label": "User profile",
|
|
3157
|
+
children: userInitials
|
|
3158
|
+
}
|
|
3159
|
+
),
|
|
3160
|
+
onInboxClick && /* @__PURE__ */ jsxs11(
|
|
3161
|
+
Button,
|
|
3162
|
+
{
|
|
3163
|
+
variant: "ghost",
|
|
3164
|
+
size: "sm",
|
|
3165
|
+
"aria-label": "Inbox",
|
|
3166
|
+
onClick: onInboxClick,
|
|
3167
|
+
className: "!p-xs !rounded-sm relative",
|
|
3168
|
+
children: [
|
|
3169
|
+
/* @__PURE__ */ jsx11(InboxIcon2, {}),
|
|
3170
|
+
/* @__PURE__ */ jsx11(
|
|
3171
|
+
"span",
|
|
3172
|
+
{
|
|
3173
|
+
className: "absolute rounded-full bg-semantic-error",
|
|
3174
|
+
"aria-label": "New notifications",
|
|
3175
|
+
style: { width: "8px", height: "8px", top: "4px", right: "4px" }
|
|
3176
|
+
}
|
|
3177
|
+
)
|
|
3178
|
+
]
|
|
3179
|
+
}
|
|
3180
|
+
)
|
|
3181
|
+
] })
|
|
3182
|
+
]
|
|
3183
|
+
}
|
|
3184
|
+
)
|
|
3185
|
+
]
|
|
3186
|
+
}
|
|
3187
|
+
)
|
|
3188
|
+
]
|
|
3189
|
+
}
|
|
3190
|
+
)
|
|
3191
|
+
] });
|
|
3192
|
+
}
|
|
3193
|
+
);
|
|
3194
|
+
AppSidebarMobile.displayName = "AppSidebarMobile";
|
|
3195
|
+
|
|
3196
|
+
// virtual-pkg:src/atoms/AuthScreen/AuthScreen.tsx
|
|
3197
|
+
import React12, { useState, useId } from "react";
|
|
3198
|
+
import { Fragment as Fragment3, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3199
|
+
var AuthScreen = React12.forwardRef(
|
|
2916
3200
|
({ defaultTab = "login", onLogin, onSignup, loading = false }, ref) => {
|
|
2917
3201
|
const [tab, setTab] = useState(defaultTab);
|
|
2918
3202
|
const [name, setName] = useState("");
|
|
@@ -2944,13 +3228,13 @@ var AuthScreen = React11.forwardRef(
|
|
|
2944
3228
|
const labelCls = "block text-body-sm text-body mb-xs font-weight-heading-sm";
|
|
2945
3229
|
return (
|
|
2946
3230
|
/* Full-width page background — no height constraint */
|
|
2947
|
-
/* @__PURE__ */
|
|
3231
|
+
/* @__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
3232
|
"div",
|
|
2949
3233
|
{
|
|
2950
3234
|
style: { width: "min(100%, 22rem)" },
|
|
2951
3235
|
className: "rounded-xl border border-hairline-soft bg-canvas px-xl py-xxl shadow-card",
|
|
2952
3236
|
children: [
|
|
2953
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__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
3238
|
"path",
|
|
2955
3239
|
{
|
|
2956
3240
|
d: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",
|
|
@@ -2960,15 +3244,15 @@ var AuthScreen = React11.forwardRef(
|
|
|
2960
3244
|
strokeLinejoin: "round"
|
|
2961
3245
|
}
|
|
2962
3246
|
) }) }) }),
|
|
2963
|
-
/* @__PURE__ */
|
|
2964
|
-
/* @__PURE__ */
|
|
2965
|
-
/* @__PURE__ */
|
|
3247
|
+
/* @__PURE__ */ jsx12("h1", { className: "mb-xs text-heading-sm text-ink", children: tab === "login" ? "Welcome back" : "Create an account" }),
|
|
3248
|
+
/* @__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." }),
|
|
3249
|
+
/* @__PURE__ */ jsx12(
|
|
2966
3250
|
"div",
|
|
2967
3251
|
{
|
|
2968
3252
|
role: "tablist",
|
|
2969
3253
|
"aria-label": "Auth mode",
|
|
2970
3254
|
className: "mb-xl flex rounded-lg bg-surface-soft p-xs gap-xs",
|
|
2971
|
-
children: ["login", "signup"].map((t) => /* @__PURE__ */
|
|
3255
|
+
children: ["login", "signup"].map((t) => /* @__PURE__ */ jsx12(
|
|
2972
3256
|
Button,
|
|
2973
3257
|
{
|
|
2974
3258
|
role: "tab",
|
|
@@ -2988,10 +3272,10 @@ var AuthScreen = React11.forwardRef(
|
|
|
2988
3272
|
))
|
|
2989
3273
|
}
|
|
2990
3274
|
),
|
|
2991
|
-
/* @__PURE__ */
|
|
2992
|
-
tab === "signup" && /* @__PURE__ */
|
|
2993
|
-
/* @__PURE__ */
|
|
2994
|
-
/* @__PURE__ */
|
|
3275
|
+
/* @__PURE__ */ jsxs12("form", { onSubmit: handleSubmit, noValidate: true, className: "space-y-base", children: [
|
|
3276
|
+
tab === "signup" && /* @__PURE__ */ jsxs12("div", { children: [
|
|
3277
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: nameId, className: labelCls, children: "Full name" }),
|
|
3278
|
+
/* @__PURE__ */ jsx12(
|
|
2995
3279
|
Input,
|
|
2996
3280
|
{
|
|
2997
3281
|
id: nameId,
|
|
@@ -3005,9 +3289,9 @@ var AuthScreen = React11.forwardRef(
|
|
|
3005
3289
|
}
|
|
3006
3290
|
)
|
|
3007
3291
|
] }),
|
|
3008
|
-
/* @__PURE__ */
|
|
3009
|
-
/* @__PURE__ */
|
|
3010
|
-
/* @__PURE__ */
|
|
3292
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
3293
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: emailId, className: labelCls, children: "Email address" }),
|
|
3294
|
+
/* @__PURE__ */ jsx12(
|
|
3011
3295
|
Input,
|
|
3012
3296
|
{
|
|
3013
3297
|
id: emailId,
|
|
@@ -3021,12 +3305,12 @@ var AuthScreen = React11.forwardRef(
|
|
|
3021
3305
|
}
|
|
3022
3306
|
)
|
|
3023
3307
|
] }),
|
|
3024
|
-
/* @__PURE__ */
|
|
3025
|
-
/* @__PURE__ */
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
tab === "login" && /* @__PURE__ */
|
|
3308
|
+
/* @__PURE__ */ jsxs12("div", { children: [
|
|
3309
|
+
/* @__PURE__ */ jsxs12("div", { className: "mb-xs flex items-center justify-between", children: [
|
|
3310
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: passwordId, className: labelCls + " mb-0", children: "Password" }),
|
|
3311
|
+
tab === "login" && /* @__PURE__ */ jsx12("a", { href: "#", className: "text-body-sm text-primary hover:underline", children: "Forgot password?" })
|
|
3028
3312
|
] }),
|
|
3029
|
-
/* @__PURE__ */
|
|
3313
|
+
/* @__PURE__ */ jsx12(
|
|
3030
3314
|
Input,
|
|
3031
3315
|
{
|
|
3032
3316
|
id: passwordId,
|
|
@@ -3040,9 +3324,9 @@ var AuthScreen = React11.forwardRef(
|
|
|
3040
3324
|
}
|
|
3041
3325
|
)
|
|
3042
3326
|
] }),
|
|
3043
|
-
tab === "signup" && /* @__PURE__ */
|
|
3044
|
-
/* @__PURE__ */
|
|
3045
|
-
/* @__PURE__ */
|
|
3327
|
+
tab === "signup" && /* @__PURE__ */ jsxs12("div", { children: [
|
|
3328
|
+
/* @__PURE__ */ jsx12("label", { htmlFor: confirmId, className: labelCls, children: "Confirm password" }),
|
|
3329
|
+
/* @__PURE__ */ jsx12(
|
|
3046
3330
|
Input,
|
|
3047
3331
|
{
|
|
3048
3332
|
id: confirmId,
|
|
@@ -3056,7 +3340,7 @@ var AuthScreen = React11.forwardRef(
|
|
|
3056
3340
|
}
|
|
3057
3341
|
)
|
|
3058
3342
|
] }),
|
|
3059
|
-
error && /* @__PURE__ */
|
|
3343
|
+
error && /* @__PURE__ */ jsx12(
|
|
3060
3344
|
"p",
|
|
3061
3345
|
{
|
|
3062
3346
|
role: "alert",
|
|
@@ -3064,26 +3348,26 @@ var AuthScreen = React11.forwardRef(
|
|
|
3064
3348
|
children: error
|
|
3065
3349
|
}
|
|
3066
3350
|
),
|
|
3067
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__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
3352
|
] }),
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
/* @__PURE__ */
|
|
3071
|
-
/* @__PURE__ */
|
|
3072
|
-
/* @__PURE__ */
|
|
3353
|
+
/* @__PURE__ */ jsxs12("div", { className: "my-xl flex items-center gap-base", children: [
|
|
3354
|
+
/* @__PURE__ */ jsx12("div", { className: "h-px flex-1 bg-hairline" }),
|
|
3355
|
+
/* @__PURE__ */ jsx12("span", { className: "text-caption text-muted-soft", children: "OR" }),
|
|
3356
|
+
/* @__PURE__ */ jsx12("div", { className: "h-px flex-1 bg-hairline" })
|
|
3073
3357
|
] }),
|
|
3074
|
-
/* @__PURE__ */
|
|
3075
|
-
/* @__PURE__ */
|
|
3076
|
-
/* @__PURE__ */
|
|
3077
|
-
/* @__PURE__ */
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3358
|
+
/* @__PURE__ */ jsxs12(Button, { type: "button", variant: "secondary", size: "md", className: "w-full", children: [
|
|
3359
|
+
/* @__PURE__ */ jsxs12("svg", { "aria-hidden": "true", width: "18", height: "18", viewBox: "0 0 24 24", className: "shrink-0", children: [
|
|
3360
|
+
/* @__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)" }),
|
|
3361
|
+
/* @__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)" }),
|
|
3362
|
+
/* @__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)" }),
|
|
3363
|
+
/* @__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
3364
|
] }),
|
|
3081
3365
|
"Continue with Google"
|
|
3082
3366
|
] }),
|
|
3083
|
-
/* @__PURE__ */
|
|
3367
|
+
/* @__PURE__ */ jsx12("p", { className: "mt-xl text-center text-body-sm text-muted", children: tab === "login" ? /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
3084
3368
|
"Don\u2019t have an account?",
|
|
3085
3369
|
" ",
|
|
3086
|
-
/* @__PURE__ */
|
|
3370
|
+
/* @__PURE__ */ jsx12(
|
|
3087
3371
|
Button,
|
|
3088
3372
|
{
|
|
3089
3373
|
type: "button",
|
|
@@ -3095,10 +3379,10 @@ var AuthScreen = React11.forwardRef(
|
|
|
3095
3379
|
children: "Sign up"
|
|
3096
3380
|
}
|
|
3097
3381
|
)
|
|
3098
|
-
] }) : /* @__PURE__ */
|
|
3382
|
+
] }) : /* @__PURE__ */ jsxs12(Fragment3, { children: [
|
|
3099
3383
|
"Already have an account?",
|
|
3100
3384
|
" ",
|
|
3101
|
-
/* @__PURE__ */
|
|
3385
|
+
/* @__PURE__ */ jsx12(
|
|
3102
3386
|
Button,
|
|
3103
3387
|
{
|
|
3104
3388
|
type: "button",
|
|
@@ -3120,8 +3404,8 @@ var AuthScreen = React11.forwardRef(
|
|
|
3120
3404
|
AuthScreen.displayName = "AuthScreen";
|
|
3121
3405
|
|
|
3122
3406
|
// virtual-pkg:src/atoms/Chip/Chip.tsx
|
|
3123
|
-
import
|
|
3124
|
-
import { jsx as
|
|
3407
|
+
import React13 from "react";
|
|
3408
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3125
3409
|
var variantClasses2 = {
|
|
3126
3410
|
default: "bg-surface-strong text-body border border-hairline",
|
|
3127
3411
|
primary: "bg-primary text-on-primary border border-primary",
|
|
@@ -3134,7 +3418,7 @@ var sizeClasses3 = {
|
|
|
3134
3418
|
md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", dismissSize: "sm" },
|
|
3135
3419
|
lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", dismissSize: "sm" }
|
|
3136
3420
|
};
|
|
3137
|
-
var
|
|
3421
|
+
var CloseIcon2 = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
3138
3422
|
"svg",
|
|
3139
3423
|
{
|
|
3140
3424
|
viewBox: "0 0 16 16",
|
|
@@ -3145,12 +3429,12 @@ var CloseIcon = ({ className }) => /* @__PURE__ */ jsxs12(
|
|
|
3145
3429
|
className,
|
|
3146
3430
|
"aria-hidden": "true",
|
|
3147
3431
|
children: [
|
|
3148
|
-
/* @__PURE__ */
|
|
3149
|
-
/* @__PURE__ */
|
|
3432
|
+
/* @__PURE__ */ jsx13("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
|
|
3433
|
+
/* @__PURE__ */ jsx13("line", { x1: "12", y1: "4", x2: "4", y2: "12" })
|
|
3150
3434
|
]
|
|
3151
3435
|
}
|
|
3152
3436
|
);
|
|
3153
|
-
var Chip =
|
|
3437
|
+
var Chip = React13.forwardRef(
|
|
3154
3438
|
({
|
|
3155
3439
|
label,
|
|
3156
3440
|
variant = "default",
|
|
@@ -3164,7 +3448,7 @@ var Chip = React12.forwardRef(
|
|
|
3164
3448
|
const sz = sizeClasses3[size];
|
|
3165
3449
|
const vr = variantClasses2[variant];
|
|
3166
3450
|
const disabledStyles = disabled ? "opacity-50 pointer-events-none select-none" : "";
|
|
3167
|
-
return /* @__PURE__ */
|
|
3451
|
+
return /* @__PURE__ */ jsxs13(
|
|
3168
3452
|
"span",
|
|
3169
3453
|
{
|
|
3170
3454
|
ref,
|
|
@@ -3179,7 +3463,7 @@ var Chip = React12.forwardRef(
|
|
|
3179
3463
|
].filter(Boolean).join(" "),
|
|
3180
3464
|
...props,
|
|
3181
3465
|
children: [
|
|
3182
|
-
icon && /* @__PURE__ */
|
|
3466
|
+
icon && /* @__PURE__ */ jsx13(
|
|
3183
3467
|
"span",
|
|
3184
3468
|
{
|
|
3185
3469
|
className: `${sz.icon} flex-shrink-0 flex items-center justify-center`,
|
|
@@ -3187,8 +3471,8 @@ var Chip = React12.forwardRef(
|
|
|
3187
3471
|
children: icon
|
|
3188
3472
|
}
|
|
3189
3473
|
),
|
|
3190
|
-
/* @__PURE__ */
|
|
3191
|
-
onDismiss && /* @__PURE__ */
|
|
3474
|
+
/* @__PURE__ */ jsx13("span", { className: sz.text, children: label }),
|
|
3475
|
+
onDismiss && /* @__PURE__ */ jsx13(
|
|
3192
3476
|
Button,
|
|
3193
3477
|
{
|
|
3194
3478
|
variant: "ghost",
|
|
@@ -3197,7 +3481,7 @@ var Chip = React12.forwardRef(
|
|
|
3197
3481
|
disabled,
|
|
3198
3482
|
"aria-label": `Remove ${label}`,
|
|
3199
3483
|
className: "!p-0 !h-4 !w-4 !min-w-0 opacity-60 hover:opacity-100 rounded-full flex-shrink-0",
|
|
3200
|
-
children: /* @__PURE__ */
|
|
3484
|
+
children: /* @__PURE__ */ jsx13(CloseIcon2, { className: "w-3 h-3" })
|
|
3201
3485
|
}
|
|
3202
3486
|
)
|
|
3203
3487
|
]
|
|
@@ -3208,8 +3492,8 @@ var Chip = React12.forwardRef(
|
|
|
3208
3492
|
Chip.displayName = "Chip";
|
|
3209
3493
|
|
|
3210
3494
|
// virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
|
|
3211
|
-
import
|
|
3212
|
-
import { jsx as
|
|
3495
|
+
import React14 from "react";
|
|
3496
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3213
3497
|
var kindColors = {
|
|
3214
3498
|
Atom: "bg-[var(--color-kind-atom-bg)] text-[var(--color-kind-atom-text)] border-[var(--color-kind-atom-border)]",
|
|
3215
3499
|
Molecule: "bg-[var(--color-kind-molecule-bg)] text-[var(--color-kind-molecule-text)] border-[var(--color-kind-molecule-border)]",
|
|
@@ -3222,7 +3506,7 @@ var iconBg = {
|
|
|
3222
3506
|
Organism: "bg-primary text-on-primary",
|
|
3223
3507
|
Template: "bg-[var(--color-kind-template-bg)] text-[var(--color-kind-template-text)]"
|
|
3224
3508
|
};
|
|
3225
|
-
var ComponentCard =
|
|
3509
|
+
var ComponentCard = React14.forwardRef(
|
|
3226
3510
|
({
|
|
3227
3511
|
name,
|
|
3228
3512
|
kind = "Organism",
|
|
@@ -3233,7 +3517,7 @@ var ComponentCard = React13.forwardRef(
|
|
|
3233
3517
|
className,
|
|
3234
3518
|
...rest
|
|
3235
3519
|
}, ref) => {
|
|
3236
|
-
return /* @__PURE__ */
|
|
3520
|
+
return /* @__PURE__ */ jsxs14(
|
|
3237
3521
|
"div",
|
|
3238
3522
|
{
|
|
3239
3523
|
ref,
|
|
@@ -3248,7 +3532,7 @@ var ComponentCard = React13.forwardRef(
|
|
|
3248
3532
|
].filter(Boolean).join(" "),
|
|
3249
3533
|
...rest,
|
|
3250
3534
|
children: [
|
|
3251
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ jsx14(
|
|
3252
3536
|
"div",
|
|
3253
3537
|
{
|
|
3254
3538
|
className: [
|
|
@@ -3256,15 +3540,15 @@ var ComponentCard = React13.forwardRef(
|
|
|
3256
3540
|
"w-full aspect-[4/3] overflow-hidden",
|
|
3257
3541
|
thumbnailBg ?? "bg-surface-soft"
|
|
3258
3542
|
].join(" "),
|
|
3259
|
-
children: thumbnailContent ?? /* @__PURE__ */
|
|
3543
|
+
children: thumbnailContent ?? /* @__PURE__ */ jsx14(DefaultThumbnail, { kind })
|
|
3260
3544
|
}
|
|
3261
3545
|
),
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
/* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
/* @__PURE__ */
|
|
3546
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
|
|
3547
|
+
/* @__PURE__ */ jsxs14("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3548
|
+
/* @__PURE__ */ jsx14("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
|
|
3549
|
+
/* @__PURE__ */ jsx14("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
|
|
3266
3550
|
] }),
|
|
3267
|
-
/* @__PURE__ */
|
|
3551
|
+
/* @__PURE__ */ jsx14(
|
|
3268
3552
|
"span",
|
|
3269
3553
|
{
|
|
3270
3554
|
className: [
|
|
@@ -3285,27 +3569,27 @@ var ComponentCard = React13.forwardRef(
|
|
|
3285
3569
|
ComponentCard.displayName = "ComponentCard";
|
|
3286
3570
|
function DefaultThumbnail({ kind }) {
|
|
3287
3571
|
const icons = {
|
|
3288
|
-
Atom: /* @__PURE__ */
|
|
3289
|
-
/* @__PURE__ */
|
|
3290
|
-
/* @__PURE__ */
|
|
3291
|
-
/* @__PURE__ */
|
|
3572
|
+
Atom: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3573
|
+
/* @__PURE__ */ jsx14("circle", { cx: "12", cy: "12", r: "1" }),
|
|
3574
|
+
/* @__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" }),
|
|
3575
|
+
/* @__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
3576
|
] }),
|
|
3293
|
-
Molecule: /* @__PURE__ */
|
|
3294
|
-
/* @__PURE__ */
|
|
3295
|
-
/* @__PURE__ */
|
|
3296
|
-
/* @__PURE__ */
|
|
3577
|
+
Molecule: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3578
|
+
/* @__PURE__ */ jsx14("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3579
|
+
/* @__PURE__ */ jsx14("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3580
|
+
/* @__PURE__ */ jsx14("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
|
|
3297
3581
|
] }),
|
|
3298
|
-
Organism: /* @__PURE__ */
|
|
3299
|
-
/* @__PURE__ */
|
|
3300
|
-
/* @__PURE__ */
|
|
3301
|
-
/* @__PURE__ */
|
|
3582
|
+
Organism: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3583
|
+
/* @__PURE__ */ jsx14("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
|
|
3584
|
+
/* @__PURE__ */ jsx14("path", { d: "M2 17l10 5 10-5" }),
|
|
3585
|
+
/* @__PURE__ */ jsx14("path", { d: "M2 12l10 5 10-5" })
|
|
3302
3586
|
] }),
|
|
3303
|
-
Template: /* @__PURE__ */
|
|
3304
|
-
/* @__PURE__ */
|
|
3305
|
-
/* @__PURE__ */
|
|
3587
|
+
Template: /* @__PURE__ */ jsxs14("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3588
|
+
/* @__PURE__ */ jsx14("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
3589
|
+
/* @__PURE__ */ jsx14("path", { d: "M3 9h18M9 21V9" })
|
|
3306
3590
|
] })
|
|
3307
3591
|
};
|
|
3308
|
-
return /* @__PURE__ */
|
|
3592
|
+
return /* @__PURE__ */ jsx14(
|
|
3309
3593
|
"div",
|
|
3310
3594
|
{
|
|
3311
3595
|
className: [
|
|
@@ -3318,11 +3602,11 @@ function DefaultThumbnail({ kind }) {
|
|
|
3318
3602
|
}
|
|
3319
3603
|
|
|
3320
3604
|
// virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
|
|
3321
|
-
import
|
|
3322
|
-
import { jsx as
|
|
3323
|
-
var FilterTabBar =
|
|
3605
|
+
import React15 from "react";
|
|
3606
|
+
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3607
|
+
var FilterTabBar = React15.forwardRef(
|
|
3324
3608
|
({ tabs, value, onChange, className = "", ...rest }, ref) => {
|
|
3325
|
-
return /* @__PURE__ */
|
|
3609
|
+
return /* @__PURE__ */ jsx15(
|
|
3326
3610
|
"div",
|
|
3327
3611
|
{
|
|
3328
3612
|
ref,
|
|
@@ -3336,7 +3620,7 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3336
3620
|
...rest,
|
|
3337
3621
|
children: tabs.map((tab) => {
|
|
3338
3622
|
const isActive = tab.value === value;
|
|
3339
|
-
return /* @__PURE__ */
|
|
3623
|
+
return /* @__PURE__ */ jsxs15(
|
|
3340
3624
|
Button,
|
|
3341
3625
|
{
|
|
3342
3626
|
role: "tab",
|
|
@@ -3347,9 +3631,9 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3347
3631
|
onClick: () => onChange(tab.value),
|
|
3348
3632
|
className: "gap-xs",
|
|
3349
3633
|
children: [
|
|
3350
|
-
tab.icon && /* @__PURE__ */
|
|
3351
|
-
tab.label && /* @__PURE__ */
|
|
3352
|
-
tab.count !== void 0 && /* @__PURE__ */
|
|
3634
|
+
tab.icon && /* @__PURE__ */ jsx15("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
|
|
3635
|
+
tab.label && /* @__PURE__ */ jsx15("span", { children: tab.label }),
|
|
3636
|
+
tab.count !== void 0 && /* @__PURE__ */ jsx15(
|
|
3353
3637
|
"span",
|
|
3354
3638
|
{
|
|
3355
3639
|
className: [
|
|
@@ -3374,15 +3658,258 @@ var FilterTabBar = React14.forwardRef(
|
|
|
3374
3658
|
);
|
|
3375
3659
|
FilterTabBar.displayName = "FilterTabBar";
|
|
3376
3660
|
|
|
3661
|
+
// virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
|
|
3662
|
+
import React16 from "react";
|
|
3663
|
+
import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3664
|
+
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: [
|
|
3665
|
+
/* @__PURE__ */ jsx16("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
|
|
3666
|
+
/* @__PURE__ */ jsx16("polyline", { points: "9 22 9 12 15 12 15 22" })
|
|
3667
|
+
] });
|
|
3668
|
+
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" }) });
|
|
3669
|
+
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: [
|
|
3670
|
+
/* @__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)" } }),
|
|
3671
|
+
/* @__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)" } }),
|
|
3672
|
+
/* @__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 } })
|
|
3673
|
+
] });
|
|
3674
|
+
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" }) });
|
|
3675
|
+
var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx16(
|
|
3676
|
+
Button,
|
|
3677
|
+
{
|
|
3678
|
+
type: "button",
|
|
3679
|
+
variant: "secondary",
|
|
3680
|
+
size: "sm",
|
|
3681
|
+
onClick,
|
|
3682
|
+
className: "!rounded-xl whitespace-nowrap",
|
|
3683
|
+
children: label
|
|
3684
|
+
}
|
|
3685
|
+
);
|
|
3686
|
+
var NAV_ENTRIES = [
|
|
3687
|
+
{ id: "home", label: "Home", icon: /* @__PURE__ */ jsx16(HomeIcon2, {}) },
|
|
3688
|
+
{
|
|
3689
|
+
id: "projects",
|
|
3690
|
+
label: "All projects",
|
|
3691
|
+
icon: /* @__PURE__ */ jsx16(FolderIcon, {}),
|
|
3692
|
+
subItems: [
|
|
3693
|
+
{ id: "proj-1", label: "Design system" },
|
|
3694
|
+
{ id: "proj-2", label: "Landing page" },
|
|
3695
|
+
{ id: "proj-3", label: "Dashboard" }
|
|
3696
|
+
]
|
|
3697
|
+
}
|
|
3698
|
+
];
|
|
3699
|
+
var DEFAULT_SUGGESTIONS = [
|
|
3700
|
+
"Primary button atom",
|
|
3701
|
+
"Brand color palette",
|
|
3702
|
+
"Type scale",
|
|
3703
|
+
"Card molecule"
|
|
3704
|
+
];
|
|
3705
|
+
var GRADIENT_BG = `
|
|
3706
|
+
radial-gradient(ellipse 80% 60% at 30% 20%, var(--color-primary-disabled) 0%, transparent 55%),
|
|
3707
|
+
radial-gradient(ellipse 60% 50% at 75% 80%, color-mix(in srgb, var(--color-logo-orange) 20%, transparent) 0%, transparent 55%),
|
|
3708
|
+
radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
|
|
3709
|
+
var(--color-canvas)
|
|
3710
|
+
`;
|
|
3711
|
+
var HomePageTemplate = React16.forwardRef(
|
|
3712
|
+
({
|
|
3713
|
+
userName = "Hello Designer",
|
|
3714
|
+
userInitials = "N",
|
|
3715
|
+
promptValue,
|
|
3716
|
+
onPromptChange,
|
|
3717
|
+
mode = "Build",
|
|
3718
|
+
onModeChange,
|
|
3719
|
+
onSend,
|
|
3720
|
+
suggestions = DEFAULT_SUGGESTIONS,
|
|
3721
|
+
onSuggestionClick,
|
|
3722
|
+
navEntries,
|
|
3723
|
+
activeId: activeIdProp,
|
|
3724
|
+
onSelect,
|
|
3725
|
+
activeSubId,
|
|
3726
|
+
onSubSelect,
|
|
3727
|
+
className,
|
|
3728
|
+
style
|
|
3729
|
+
}, ref) => {
|
|
3730
|
+
const [internalPrompt, setInternalPrompt] = React16.useState("");
|
|
3731
|
+
const [internalActiveId, setInternalActiveId] = React16.useState("home");
|
|
3732
|
+
const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
|
|
3733
|
+
const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
|
|
3734
|
+
const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
|
|
3735
|
+
const handleChange = (val) => {
|
|
3736
|
+
if (promptValue === void 0) setInternalPrompt(val);
|
|
3737
|
+
onPromptChange?.(val);
|
|
3738
|
+
};
|
|
3739
|
+
const handleSend = (val) => {
|
|
3740
|
+
onSend?.(val);
|
|
3741
|
+
if (promptValue === void 0) setInternalPrompt("");
|
|
3742
|
+
};
|
|
3743
|
+
const handleSuggestion = (label) => {
|
|
3744
|
+
if (promptValue === void 0) setInternalPrompt(label);
|
|
3745
|
+
onPromptChange?.(label);
|
|
3746
|
+
onSuggestionClick?.(label);
|
|
3747
|
+
};
|
|
3748
|
+
const handleSelect = (id) => {
|
|
3749
|
+
if (activeIdProp === void 0) setInternalActiveId(id);
|
|
3750
|
+
onSelect?.(id);
|
|
3751
|
+
};
|
|
3752
|
+
return /* @__PURE__ */ jsxs16(
|
|
3753
|
+
"div",
|
|
3754
|
+
{
|
|
3755
|
+
ref,
|
|
3756
|
+
className: ["flex w-full", className].filter(Boolean).join(" "),
|
|
3757
|
+
style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
|
|
3758
|
+
children: [
|
|
3759
|
+
/* @__PURE__ */ jsx16("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ jsx16(
|
|
3760
|
+
AppSidebar,
|
|
3761
|
+
{
|
|
3762
|
+
workspaceName: userName,
|
|
3763
|
+
entries: resolvedEntries,
|
|
3764
|
+
activeId: resolvedActiveId,
|
|
3765
|
+
onSelect: handleSelect,
|
|
3766
|
+
activeSubId,
|
|
3767
|
+
onSubSelect,
|
|
3768
|
+
showShareCard: true,
|
|
3769
|
+
showUpgradeCard: true,
|
|
3770
|
+
userInitials,
|
|
3771
|
+
onInboxClick: () => {
|
|
3772
|
+
},
|
|
3773
|
+
style: { height: "100%" }
|
|
3774
|
+
}
|
|
3775
|
+
) }),
|
|
3776
|
+
/* @__PURE__ */ jsxs16(
|
|
3777
|
+
"main",
|
|
3778
|
+
{
|
|
3779
|
+
className: "flex-1 relative flex flex-col overflow-hidden",
|
|
3780
|
+
style: { height: "100%" },
|
|
3781
|
+
"aria-label": "Home canvas",
|
|
3782
|
+
children: [
|
|
3783
|
+
/* @__PURE__ */ jsx16(
|
|
3784
|
+
"div",
|
|
3785
|
+
{
|
|
3786
|
+
"aria-hidden": "true",
|
|
3787
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3788
|
+
style: { background: GRADIENT_BG }
|
|
3789
|
+
}
|
|
3790
|
+
),
|
|
3791
|
+
/* @__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: [
|
|
3792
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-sm", children: [
|
|
3793
|
+
/* @__PURE__ */ jsx16(
|
|
3794
|
+
AppSidebarMobile,
|
|
3795
|
+
{
|
|
3796
|
+
brandName: "Atoms",
|
|
3797
|
+
entries: resolvedEntries,
|
|
3798
|
+
activeId: resolvedActiveId,
|
|
3799
|
+
onSelect: handleSelect,
|
|
3800
|
+
workspaceName: userName,
|
|
3801
|
+
showShareCard: true,
|
|
3802
|
+
showUpgradeCard: true,
|
|
3803
|
+
userInitials,
|
|
3804
|
+
onInboxClick: () => {
|
|
3805
|
+
}
|
|
3806
|
+
}
|
|
3807
|
+
),
|
|
3808
|
+
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-xs", children: [
|
|
3809
|
+
/* @__PURE__ */ jsx16(LogoIcon3, {}),
|
|
3810
|
+
/* @__PURE__ */ jsx16("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
|
|
3811
|
+
] })
|
|
3812
|
+
] }),
|
|
3813
|
+
/* @__PURE__ */ jsx16(
|
|
3814
|
+
"span",
|
|
3815
|
+
{
|
|
3816
|
+
className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
|
|
3817
|
+
style: { width: "32px", height: "32px" },
|
|
3818
|
+
"aria-label": "User profile",
|
|
3819
|
+
children: userInitials
|
|
3820
|
+
}
|
|
3821
|
+
)
|
|
3822
|
+
] }),
|
|
3823
|
+
/* @__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: [
|
|
3824
|
+
/* @__PURE__ */ jsxs16(
|
|
3825
|
+
Button,
|
|
3826
|
+
{
|
|
3827
|
+
variant: "secondary",
|
|
3828
|
+
size: "sm",
|
|
3829
|
+
"aria-label": "New design system",
|
|
3830
|
+
className: "!rounded-full flex items-center gap-xs",
|
|
3831
|
+
children: [
|
|
3832
|
+
/* @__PURE__ */ jsx16(SparkleIcon, {}),
|
|
3833
|
+
"New design system"
|
|
3834
|
+
]
|
|
3835
|
+
}
|
|
3836
|
+
),
|
|
3837
|
+
/* @__PURE__ */ jsxs16("div", { className: "text-center flex flex-col gap-sm", children: [
|
|
3838
|
+
/* @__PURE__ */ jsxs16(
|
|
3839
|
+
"h1",
|
|
3840
|
+
{
|
|
3841
|
+
className: "text-ink",
|
|
3842
|
+
style: {
|
|
3843
|
+
fontFamily: "var(--font-body)",
|
|
3844
|
+
fontSize: "clamp(26px, 5vw, 52px)",
|
|
3845
|
+
fontWeight: 700,
|
|
3846
|
+
lineHeight: 1.1,
|
|
3847
|
+
letterSpacing: "-0.03em"
|
|
3848
|
+
},
|
|
3849
|
+
children: [
|
|
3850
|
+
"What atom should we",
|
|
3851
|
+
/* @__PURE__ */ jsx16("br", {}),
|
|
3852
|
+
"build?"
|
|
3853
|
+
]
|
|
3854
|
+
}
|
|
3855
|
+
),
|
|
3856
|
+
/* @__PURE__ */ jsx16(
|
|
3857
|
+
"p",
|
|
3858
|
+
{
|
|
3859
|
+
className: "text-muted text-body-sm md:text-body-md",
|
|
3860
|
+
style: { maxWidth: "440px", marginInline: "auto" },
|
|
3861
|
+
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."
|
|
3862
|
+
}
|
|
3863
|
+
)
|
|
3864
|
+
] }),
|
|
3865
|
+
/* @__PURE__ */ jsx16("div", { className: "w-full", children: /* @__PURE__ */ jsx16(
|
|
3866
|
+
PromptInputBar,
|
|
3867
|
+
{
|
|
3868
|
+
placeholder: "Describe an atom or design token to create...",
|
|
3869
|
+
value: textValue,
|
|
3870
|
+
onChange: handleChange,
|
|
3871
|
+
mode,
|
|
3872
|
+
onModeChange,
|
|
3873
|
+
onSend: handleSend,
|
|
3874
|
+
onMic: () => {
|
|
3875
|
+
},
|
|
3876
|
+
models: [
|
|
3877
|
+
{ id: "claude-sonnet", name: "Claude Sonnet 4.6" },
|
|
3878
|
+
{ id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
|
|
3879
|
+
{ id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
|
|
3880
|
+
],
|
|
3881
|
+
selectedModelId: "claude-sonnet"
|
|
3882
|
+
}
|
|
3883
|
+
) }),
|
|
3884
|
+
/* @__PURE__ */ jsx16(
|
|
3885
|
+
"div",
|
|
3886
|
+
{
|
|
3887
|
+
className: "flex flex-wrap justify-center gap-sm",
|
|
3888
|
+
role: "list",
|
|
3889
|
+
"aria-label": "Suggested prompts",
|
|
3890
|
+
children: suggestions.map((s) => /* @__PURE__ */ jsx16("div", { role: "listitem", children: /* @__PURE__ */ jsx16(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
|
|
3891
|
+
}
|
|
3892
|
+
)
|
|
3893
|
+
] }) })
|
|
3894
|
+
]
|
|
3895
|
+
}
|
|
3896
|
+
)
|
|
3897
|
+
]
|
|
3898
|
+
}
|
|
3899
|
+
);
|
|
3900
|
+
}
|
|
3901
|
+
);
|
|
3902
|
+
HomePageTemplate.displayName = "HomePageTemplate";
|
|
3903
|
+
|
|
3377
3904
|
// virtual-pkg:src/atoms/Modal/Modal.tsx
|
|
3378
|
-
import
|
|
3379
|
-
import { jsx as
|
|
3905
|
+
import React17, { useEffect, useRef, useState as useState2 } from "react";
|
|
3906
|
+
import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3380
3907
|
var sizeMap = {
|
|
3381
3908
|
sm: "max-w-sm",
|
|
3382
3909
|
md: "max-w-lg",
|
|
3383
3910
|
lg: "max-w-2xl"
|
|
3384
3911
|
};
|
|
3385
|
-
var Modal =
|
|
3912
|
+
var Modal = React17.forwardRef(
|
|
3386
3913
|
({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
|
|
3387
3914
|
const [mounted, setMounted] = useState2(false);
|
|
3388
3915
|
const [visible, setVisible] = useState2(false);
|
|
@@ -3412,7 +3939,7 @@ var Modal = React15.forwardRef(
|
|
|
3412
3939
|
const handleBackdropClick = (e) => {
|
|
3413
3940
|
if (e.target === overlayRef.current) onClose();
|
|
3414
3941
|
};
|
|
3415
|
-
return /* @__PURE__ */
|
|
3942
|
+
return /* @__PURE__ */ jsx17(
|
|
3416
3943
|
"div",
|
|
3417
3944
|
{
|
|
3418
3945
|
ref: overlayRef,
|
|
@@ -3427,7 +3954,7 @@ var Modal = React15.forwardRef(
|
|
|
3427
3954
|
visible ? "opacity-100" : "opacity-0"
|
|
3428
3955
|
].join(" "),
|
|
3429
3956
|
style: { zIndex: "var(--z-modal, 1000)" },
|
|
3430
|
-
children: /* @__PURE__ */
|
|
3957
|
+
children: /* @__PURE__ */ jsxs17(
|
|
3431
3958
|
"div",
|
|
3432
3959
|
{
|
|
3433
3960
|
ref,
|
|
@@ -3440,9 +3967,9 @@ var Modal = React15.forwardRef(
|
|
|
3440
3967
|
visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
|
|
3441
3968
|
].join(" "),
|
|
3442
3969
|
children: [
|
|
3443
|
-
title && /* @__PURE__ */
|
|
3444
|
-
/* @__PURE__ */
|
|
3445
|
-
/* @__PURE__ */
|
|
3970
|
+
title && /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
|
|
3971
|
+
/* @__PURE__ */ jsx17("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
|
|
3972
|
+
/* @__PURE__ */ jsx17(
|
|
3446
3973
|
Button,
|
|
3447
3974
|
{
|
|
3448
3975
|
variant: "ghost",
|
|
@@ -3450,7 +3977,7 @@ var Modal = React15.forwardRef(
|
|
|
3450
3977
|
"aria-label": "Close modal",
|
|
3451
3978
|
onClick: onClose,
|
|
3452
3979
|
className: "!px-xs !py-xs",
|
|
3453
|
-
children: /* @__PURE__ */
|
|
3980
|
+
children: /* @__PURE__ */ jsxs17(
|
|
3454
3981
|
"svg",
|
|
3455
3982
|
{
|
|
3456
3983
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3464,16 +3991,16 @@ var Modal = React15.forwardRef(
|
|
|
3464
3991
|
strokeLinejoin: "round",
|
|
3465
3992
|
"aria-hidden": "true",
|
|
3466
3993
|
children: [
|
|
3467
|
-
/* @__PURE__ */
|
|
3468
|
-
/* @__PURE__ */
|
|
3994
|
+
/* @__PURE__ */ jsx17("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
3995
|
+
/* @__PURE__ */ jsx17("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
3469
3996
|
]
|
|
3470
3997
|
}
|
|
3471
3998
|
)
|
|
3472
3999
|
}
|
|
3473
4000
|
)
|
|
3474
4001
|
] }),
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
footer && /* @__PURE__ */
|
|
4002
|
+
/* @__PURE__ */ jsx17("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
|
|
4003
|
+
footer && /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
|
|
3477
4004
|
]
|
|
3478
4005
|
}
|
|
3479
4006
|
)
|
|
@@ -3484,44 +4011,44 @@ var Modal = React15.forwardRef(
|
|
|
3484
4011
|
Modal.displayName = "Modal";
|
|
3485
4012
|
|
|
3486
4013
|
// virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
|
|
3487
|
-
import
|
|
3488
|
-
import { jsx as
|
|
3489
|
-
var DesktopIcon = () => /* @__PURE__ */
|
|
3490
|
-
/* @__PURE__ */
|
|
3491
|
-
/* @__PURE__ */
|
|
4014
|
+
import React18 from "react";
|
|
4015
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4016
|
+
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: [
|
|
4017
|
+
/* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
|
|
4018
|
+
/* @__PURE__ */ jsx18("path", { d: "M8 21h8M12 17v4" })
|
|
3492
4019
|
] });
|
|
3493
|
-
var SidebarIcon2 = () => /* @__PURE__ */
|
|
3494
|
-
/* @__PURE__ */
|
|
3495
|
-
/* @__PURE__ */
|
|
4020
|
+
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: [
|
|
4021
|
+
/* @__PURE__ */ jsx18("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
|
|
4022
|
+
/* @__PURE__ */ jsx18("path", { d: "M9 3v18" })
|
|
3496
4023
|
] });
|
|
3497
|
-
var MobileIcon = () => /* @__PURE__ */
|
|
3498
|
-
/* @__PURE__ */
|
|
3499
|
-
/* @__PURE__ */
|
|
4024
|
+
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: [
|
|
4025
|
+
/* @__PURE__ */ jsx18("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
|
|
4026
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
|
|
3500
4027
|
] });
|
|
3501
|
-
var ExpandIcon = () => /* @__PURE__ */
|
|
3502
|
-
var InspectIcon = () => /* @__PURE__ */
|
|
3503
|
-
/* @__PURE__ */
|
|
3504
|
-
/* @__PURE__ */
|
|
3505
|
-
/* @__PURE__ */
|
|
4028
|
+
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" }) });
|
|
4029
|
+
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: [
|
|
4030
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "9" }),
|
|
4031
|
+
/* @__PURE__ */ jsx18("path", { d: "M12 8v4l3 3" }),
|
|
4032
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
|
|
3506
4033
|
] });
|
|
3507
|
-
var MoonIcon2 = () => /* @__PURE__ */
|
|
3508
|
-
var FullscreenIcon = () => /* @__PURE__ */
|
|
3509
|
-
/* @__PURE__ */
|
|
3510
|
-
/* @__PURE__ */
|
|
3511
|
-
/* @__PURE__ */
|
|
3512
|
-
/* @__PURE__ */
|
|
4034
|
+
var MoonIcon2 = () => /* @__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" }) });
|
|
4035
|
+
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: [
|
|
4036
|
+
/* @__PURE__ */ jsx18("polyline", { points: "15 3 21 3 21 9" }),
|
|
4037
|
+
/* @__PURE__ */ jsx18("polyline", { points: "9 21 3 21 3 15" }),
|
|
4038
|
+
/* @__PURE__ */ jsx18("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
|
|
4039
|
+
/* @__PURE__ */ jsx18("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
3513
4040
|
] });
|
|
3514
|
-
var DotsIcon = () => /* @__PURE__ */
|
|
3515
|
-
/* @__PURE__ */
|
|
3516
|
-
/* @__PURE__ */
|
|
3517
|
-
/* @__PURE__ */
|
|
4041
|
+
var DotsIcon = () => /* @__PURE__ */ jsxs18("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
|
|
4042
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "5", r: "1.6" }),
|
|
4043
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "1.6" }),
|
|
4044
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "19", r: "1.6" })
|
|
3518
4045
|
] });
|
|
3519
4046
|
var VIEWPORT_OPTIONS = [
|
|
3520
4047
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
3521
4048
|
{ id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
|
|
3522
4049
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" }
|
|
3523
4050
|
];
|
|
3524
|
-
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */
|
|
4051
|
+
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx18(
|
|
3525
4052
|
Button,
|
|
3526
4053
|
{
|
|
3527
4054
|
variant: active ? "primary" : "ghost",
|
|
@@ -3533,7 +4060,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx1
|
|
|
3533
4060
|
children
|
|
3534
4061
|
}
|
|
3535
4062
|
);
|
|
3536
|
-
var PreviewToolbar =
|
|
4063
|
+
var PreviewToolbar = React18.forwardRef(
|
|
3537
4064
|
({
|
|
3538
4065
|
viewport = "desktop",
|
|
3539
4066
|
onViewportChange,
|
|
@@ -3548,7 +4075,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3548
4075
|
kindLabel = "ATOM",
|
|
3549
4076
|
onOverflow,
|
|
3550
4077
|
className = ""
|
|
3551
|
-
}, ref) => /* @__PURE__ */
|
|
4078
|
+
}, ref) => /* @__PURE__ */ jsxs18(
|
|
3552
4079
|
"div",
|
|
3553
4080
|
{
|
|
3554
4081
|
ref,
|
|
@@ -3562,24 +4089,24 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3562
4089
|
className
|
|
3563
4090
|
].filter(Boolean).join(" "),
|
|
3564
4091
|
children: [
|
|
3565
|
-
/* @__PURE__ */
|
|
4092
|
+
/* @__PURE__ */ jsxs18(
|
|
3566
4093
|
"div",
|
|
3567
4094
|
{
|
|
3568
4095
|
role: "group",
|
|
3569
4096
|
"aria-label": "Viewport size",
|
|
3570
4097
|
className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
|
|
3571
4098
|
children: [
|
|
3572
|
-
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */
|
|
4099
|
+
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx18(
|
|
3573
4100
|
ViewportBtn,
|
|
3574
4101
|
{
|
|
3575
4102
|
label,
|
|
3576
4103
|
active: !expanded && viewport === id,
|
|
3577
4104
|
onClick: () => onViewportChange?.(id),
|
|
3578
|
-
children: /* @__PURE__ */
|
|
4105
|
+
children: /* @__PURE__ */ jsx18(Icon, {})
|
|
3579
4106
|
},
|
|
3580
4107
|
id
|
|
3581
4108
|
)),
|
|
3582
|
-
/* @__PURE__ */
|
|
4109
|
+
/* @__PURE__ */ jsx18(
|
|
3583
4110
|
Button,
|
|
3584
4111
|
{
|
|
3585
4112
|
variant: expanded ? "primary" : "ghost",
|
|
@@ -3591,14 +4118,14 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3591
4118
|
"!w-8 !h-8 !p-0 rounded-sm shrink-0",
|
|
3592
4119
|
expanded ? "" : "text-muted"
|
|
3593
4120
|
].join(" "),
|
|
3594
|
-
children: /* @__PURE__ */
|
|
4121
|
+
children: /* @__PURE__ */ jsx18(ExpandIcon, {})
|
|
3595
4122
|
}
|
|
3596
4123
|
)
|
|
3597
4124
|
]
|
|
3598
4125
|
}
|
|
3599
4126
|
),
|
|
3600
|
-
/* @__PURE__ */
|
|
3601
|
-
/* @__PURE__ */
|
|
4127
|
+
/* @__PURE__ */ jsxs18("div", { className: "flex flex-wrap items-center gap-sm", children: [
|
|
4128
|
+
/* @__PURE__ */ jsxs18(
|
|
3602
4129
|
Button,
|
|
3603
4130
|
{
|
|
3604
4131
|
variant: inspecting ? "primary" : "secondary",
|
|
@@ -3607,12 +4134,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3607
4134
|
onClick: onInspectTokens,
|
|
3608
4135
|
className: "gap-xs rounded-xl",
|
|
3609
4136
|
children: [
|
|
3610
|
-
/* @__PURE__ */
|
|
4137
|
+
/* @__PURE__ */ jsx18(InspectIcon, {}),
|
|
3611
4138
|
inspecting ? "Exit inspect" : "Inspect tokens"
|
|
3612
4139
|
]
|
|
3613
4140
|
}
|
|
3614
4141
|
),
|
|
3615
|
-
/* @__PURE__ */
|
|
4142
|
+
/* @__PURE__ */ jsxs18(
|
|
3616
4143
|
Button,
|
|
3617
4144
|
{
|
|
3618
4145
|
variant: darkMode ? "primary" : "secondary",
|
|
@@ -3621,12 +4148,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3621
4148
|
onClick: onDarkToggle,
|
|
3622
4149
|
className: "gap-xs rounded-xl",
|
|
3623
4150
|
children: [
|
|
3624
|
-
/* @__PURE__ */
|
|
4151
|
+
/* @__PURE__ */ jsx18(MoonIcon2, {}),
|
|
3625
4152
|
"Dark"
|
|
3626
4153
|
]
|
|
3627
4154
|
}
|
|
3628
4155
|
),
|
|
3629
|
-
/* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ jsxs18(
|
|
3630
4157
|
Button,
|
|
3631
4158
|
{
|
|
3632
4159
|
variant: "secondary",
|
|
@@ -3634,12 +4161,12 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3634
4161
|
onClick: onFullscreen,
|
|
3635
4162
|
className: "gap-xs rounded-xl",
|
|
3636
4163
|
children: [
|
|
3637
|
-
/* @__PURE__ */
|
|
4164
|
+
/* @__PURE__ */ jsx18(FullscreenIcon, {}),
|
|
3638
4165
|
"Fullscreen"
|
|
3639
4166
|
]
|
|
3640
4167
|
}
|
|
3641
4168
|
),
|
|
3642
|
-
/* @__PURE__ */
|
|
4169
|
+
/* @__PURE__ */ jsx18(
|
|
3643
4170
|
Chip,
|
|
3644
4171
|
{
|
|
3645
4172
|
label: modelLabel ?? "",
|
|
@@ -3648,7 +4175,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3648
4175
|
className: "border-primary text-primary bg-canvas cursor-default select-none"
|
|
3649
4176
|
}
|
|
3650
4177
|
),
|
|
3651
|
-
/* @__PURE__ */
|
|
4178
|
+
/* @__PURE__ */ jsx18(
|
|
3652
4179
|
Chip,
|
|
3653
4180
|
{
|
|
3654
4181
|
label: kindLabel ?? "",
|
|
@@ -3657,7 +4184,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3657
4184
|
className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
|
|
3658
4185
|
}
|
|
3659
4186
|
),
|
|
3660
|
-
/* @__PURE__ */
|
|
4187
|
+
/* @__PURE__ */ jsx18(
|
|
3661
4188
|
Button,
|
|
3662
4189
|
{
|
|
3663
4190
|
variant: "ghost",
|
|
@@ -3665,7 +4192,7 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3665
4192
|
"aria-label": "More options",
|
|
3666
4193
|
onClick: onOverflow,
|
|
3667
4194
|
className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
|
|
3668
|
-
children: /* @__PURE__ */
|
|
4195
|
+
children: /* @__PURE__ */ jsx18(DotsIcon, {})
|
|
3669
4196
|
}
|
|
3670
4197
|
)
|
|
3671
4198
|
] })
|
|
@@ -3676,8 +4203,8 @@ var PreviewToolbar = React16.forwardRef(
|
|
|
3676
4203
|
PreviewToolbar.displayName = "PreviewToolbar";
|
|
3677
4204
|
|
|
3678
4205
|
// virtual-pkg:src/atoms/Typography/Typography.tsx
|
|
3679
|
-
import
|
|
3680
|
-
import { jsx as
|
|
4206
|
+
import React19 from "react";
|
|
4207
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3681
4208
|
var roleTagMap = {
|
|
3682
4209
|
"display-lg": "h1",
|
|
3683
4210
|
"heading-lg": "h2",
|
|
@@ -3709,7 +4236,7 @@ var colorClassMap = {
|
|
|
3709
4236
|
"semantic-warning": "text-semantic-warning",
|
|
3710
4237
|
"on-primary": "text-on-primary"
|
|
3711
4238
|
};
|
|
3712
|
-
var Typography =
|
|
4239
|
+
var Typography = React19.forwardRef(
|
|
3713
4240
|
({
|
|
3714
4241
|
role = "body-md",
|
|
3715
4242
|
color = "ink",
|
|
@@ -3728,19 +4255,21 @@ var Typography = React17.forwardRef(
|
|
|
3728
4255
|
uppercase ? "uppercase tracking-wide" : "",
|
|
3729
4256
|
className
|
|
3730
4257
|
].filter(Boolean).join(" ");
|
|
3731
|
-
return /* @__PURE__ */
|
|
4258
|
+
return /* @__PURE__ */ jsx19(Tag, { ref, className: classes, ...rest, children });
|
|
3732
4259
|
}
|
|
3733
4260
|
);
|
|
3734
4261
|
Typography.displayName = "Typography";
|
|
3735
4262
|
export {
|
|
3736
4263
|
AppLayout,
|
|
3737
4264
|
AppSidebar,
|
|
4265
|
+
AppSidebarMobile,
|
|
3738
4266
|
AuthScreen,
|
|
3739
4267
|
Button,
|
|
3740
4268
|
ChatScreen,
|
|
3741
4269
|
Chip,
|
|
3742
4270
|
ComponentCard,
|
|
3743
4271
|
FilterTabBar,
|
|
4272
|
+
HomePageTemplate,
|
|
3744
4273
|
Input,
|
|
3745
4274
|
Modal,
|
|
3746
4275
|
NavItem,
|