@designa8/vibedesign-v6 1.9.6 → 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.cjs
CHANGED
|
@@ -31,12 +31,14 @@ var src_exports = {};
|
|
|
31
31
|
__export(src_exports, {
|
|
32
32
|
AppLayout: () => AppLayout,
|
|
33
33
|
AppSidebar: () => AppSidebar,
|
|
34
|
+
AppSidebarMobile: () => AppSidebarMobile,
|
|
34
35
|
AuthScreen: () => AuthScreen,
|
|
35
36
|
Button: () => Button,
|
|
36
37
|
ChatScreen: () => ChatScreen,
|
|
37
38
|
Chip: () => Chip,
|
|
38
39
|
ComponentCard: () => ComponentCard,
|
|
39
40
|
FilterTabBar: () => FilterTabBar,
|
|
41
|
+
HomePageTemplate: () => HomePageTemplate,
|
|
40
42
|
Input: () => Input,
|
|
41
43
|
Modal: () => Modal,
|
|
42
44
|
NavItem: () => NavItem,
|
|
@@ -2958,21 +2960,305 @@ var AppSidebar = import_react10.default.forwardRef(
|
|
|
2958
2960
|
);
|
|
2959
2961
|
AppSidebar.displayName = "AppSidebar";
|
|
2960
2962
|
|
|
2961
|
-
// virtual-pkg:src/atoms/
|
|
2963
|
+
// virtual-pkg:src/atoms/AppSidebarMobile/AppSidebarMobile.tsx
|
|
2962
2964
|
var import_react11 = __toESM(require("react"));
|
|
2963
2965
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2964
|
-
var
|
|
2966
|
+
var LogoIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "none", "aria-hidden": "true", children: [
|
|
2967
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
|
|
2968
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
|
|
2969
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
|
|
2970
|
+
] });
|
|
2971
|
+
var HamburgerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", style: { width: "20px", height: "20px" }, children: [
|
|
2972
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "3", y1: "6", x2: "21", y2: "6" }),
|
|
2973
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "3", y1: "12", x2: "21", y2: "12" }),
|
|
2974
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "3", y1: "18", x2: "21", y2: "18" })
|
|
2975
|
+
] });
|
|
2976
|
+
var CloseIcon = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", "aria-hidden": "true", style: { width: "20px", height: "20px" }, children: [
|
|
2977
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
2978
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
2979
|
+
] });
|
|
2980
|
+
var GiftIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("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: [
|
|
2981
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("polyline", { points: "20 12 20 22 4 22 4 12" }),
|
|
2982
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("rect", { x: "2", y: "7", width: "20", height: "5" }),
|
|
2983
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("line", { x1: "12", y1: "22", x2: "12", y2: "7" }),
|
|
2984
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z" }),
|
|
2985
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("path", { d: "M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z" })
|
|
2986
|
+
] });
|
|
2987
|
+
var InboxIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("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: [
|
|
2988
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12" }),
|
|
2989
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("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" })
|
|
2990
|
+
] });
|
|
2991
|
+
var AppSidebarMobile = import_react11.default.forwardRef(
|
|
2992
|
+
({
|
|
2993
|
+
brandName = "Atoms",
|
|
2994
|
+
entries = [],
|
|
2995
|
+
activeId,
|
|
2996
|
+
onSelect,
|
|
2997
|
+
activeSubId: _activeSubId,
|
|
2998
|
+
onSubSelect,
|
|
2999
|
+
workspaceName,
|
|
3000
|
+
showShareCard = false,
|
|
3001
|
+
showUpgradeCard = false,
|
|
3002
|
+
userInitials,
|
|
3003
|
+
onInboxClick,
|
|
3004
|
+
open: openProp,
|
|
3005
|
+
onOpenChange,
|
|
3006
|
+
className
|
|
3007
|
+
}, ref) => {
|
|
3008
|
+
const [internalOpen, setInternalOpen] = import_react11.default.useState(false);
|
|
3009
|
+
const isControlled = openProp !== void 0;
|
|
3010
|
+
const open = isControlled ? openProp : internalOpen;
|
|
3011
|
+
const setOpen = (next) => {
|
|
3012
|
+
if (!isControlled) setInternalOpen(next);
|
|
3013
|
+
onOpenChange?.(next);
|
|
3014
|
+
};
|
|
3015
|
+
const [expandedIds, setExpandedIds] = import_react11.default.useState(/* @__PURE__ */ new Set());
|
|
3016
|
+
const toggleExpanded = (id) => {
|
|
3017
|
+
setExpandedIds((prev) => {
|
|
3018
|
+
const next = new Set(prev);
|
|
3019
|
+
next.has(id) ? next.delete(id) : next.add(id);
|
|
3020
|
+
return next;
|
|
3021
|
+
});
|
|
3022
|
+
};
|
|
3023
|
+
import_react11.default.useEffect(() => {
|
|
3024
|
+
if (!open) return;
|
|
3025
|
+
const handler = (e) => {
|
|
3026
|
+
if (e.key === "Escape") setOpen(false);
|
|
3027
|
+
};
|
|
3028
|
+
window.addEventListener("keydown", handler);
|
|
3029
|
+
return () => window.removeEventListener("keydown", handler);
|
|
3030
|
+
}, [open]);
|
|
3031
|
+
const [visible, setVisible] = import_react11.default.useState(false);
|
|
3032
|
+
const [mounted, setMounted] = import_react11.default.useState(false);
|
|
3033
|
+
import_react11.default.useEffect(() => {
|
|
3034
|
+
if (open) {
|
|
3035
|
+
setMounted(true);
|
|
3036
|
+
requestAnimationFrame(() => requestAnimationFrame(() => setVisible(true)));
|
|
3037
|
+
} else {
|
|
3038
|
+
setVisible(false);
|
|
3039
|
+
const t = setTimeout(() => setMounted(false), 300);
|
|
3040
|
+
return () => clearTimeout(t);
|
|
3041
|
+
}
|
|
3042
|
+
}, [open]);
|
|
3043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
3044
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { ref, className, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3045
|
+
Button,
|
|
3046
|
+
{
|
|
3047
|
+
variant: "ghost",
|
|
3048
|
+
size: "sm",
|
|
3049
|
+
"aria-label": "Open navigation",
|
|
3050
|
+
"aria-expanded": open,
|
|
3051
|
+
onClick: () => setOpen(true),
|
|
3052
|
+
className: "!p-xs !rounded-md",
|
|
3053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(HamburgerIcon, {})
|
|
3054
|
+
}
|
|
3055
|
+
) }),
|
|
3056
|
+
mounted && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3057
|
+
"div",
|
|
3058
|
+
{
|
|
3059
|
+
role: "dialog",
|
|
3060
|
+
"aria-modal": "true",
|
|
3061
|
+
"aria-label": "Navigation menu",
|
|
3062
|
+
style: {
|
|
3063
|
+
position: "fixed",
|
|
3064
|
+
inset: 0,
|
|
3065
|
+
zIndex: 9999
|
|
3066
|
+
},
|
|
3067
|
+
children: [
|
|
3068
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3069
|
+
"div",
|
|
3070
|
+
{
|
|
3071
|
+
"aria-hidden": "true",
|
|
3072
|
+
onClick: () => setOpen(false),
|
|
3073
|
+
style: {
|
|
3074
|
+
position: "absolute",
|
|
3075
|
+
inset: 0,
|
|
3076
|
+
backgroundColor: "var(--color-scrim)",
|
|
3077
|
+
opacity: visible ? 0.5 : 0,
|
|
3078
|
+
transition: "opacity 0.25s ease"
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
),
|
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3083
|
+
"div",
|
|
3084
|
+
{
|
|
3085
|
+
style: {
|
|
3086
|
+
position: "absolute",
|
|
3087
|
+
top: 0,
|
|
3088
|
+
left: 0,
|
|
3089
|
+
bottom: 0,
|
|
3090
|
+
width: "min(280px, 85vw)",
|
|
3091
|
+
display: "flex",
|
|
3092
|
+
flexDirection: "column",
|
|
3093
|
+
/* Solid opaque fill — CSS var resolves from the project tokens;
|
|
3094
|
+
the inline style wins over any inherited transparency. */
|
|
3095
|
+
backgroundColor: "var(--color-canvas)",
|
|
3096
|
+
borderRight: "1px solid var(--color-hairline)",
|
|
3097
|
+
boxShadow: "var(--shadow-lg)",
|
|
3098
|
+
transform: visible ? "translateX(0)" : "translateX(-100%)",
|
|
3099
|
+
transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
|
|
3100
|
+
overflowY: "auto",
|
|
3101
|
+
overflowX: "hidden"
|
|
3102
|
+
},
|
|
3103
|
+
children: [
|
|
3104
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3105
|
+
"div",
|
|
3106
|
+
{
|
|
3107
|
+
className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
|
|
3108
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3109
|
+
children: [
|
|
3110
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
3111
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(LogoIcon2, {}),
|
|
3112
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
|
|
3113
|
+
] }),
|
|
3114
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3115
|
+
Button,
|
|
3116
|
+
{
|
|
3117
|
+
variant: "ghost",
|
|
3118
|
+
size: "sm",
|
|
3119
|
+
"aria-label": "Close navigation",
|
|
3120
|
+
onClick: () => setOpen(false),
|
|
3121
|
+
className: "!p-xs !rounded-md",
|
|
3122
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(CloseIcon, {})
|
|
3123
|
+
}
|
|
3124
|
+
)
|
|
3125
|
+
]
|
|
3126
|
+
}
|
|
3127
|
+
),
|
|
3128
|
+
workspaceName && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3129
|
+
"div",
|
|
3130
|
+
{
|
|
3131
|
+
className: "px-sm pb-sm",
|
|
3132
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3134
|
+
WorkspaceMenu,
|
|
3135
|
+
{
|
|
3136
|
+
workspaceName,
|
|
3137
|
+
initials: workspaceName.charAt(0).toUpperCase()
|
|
3138
|
+
}
|
|
3139
|
+
)
|
|
3140
|
+
}
|
|
3141
|
+
),
|
|
3142
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3143
|
+
"div",
|
|
3144
|
+
{
|
|
3145
|
+
className: "flex-1 overflow-y-auto px-sm pb-sm",
|
|
3146
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3147
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
|
|
3148
|
+
const isActive = activeId === entry.id;
|
|
3149
|
+
const hasSubItems = !!entry.subItems?.length;
|
|
3150
|
+
const isExpanded = expandedIds.has(entry.id);
|
|
3151
|
+
const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
|
|
3152
|
+
id: sub.id,
|
|
3153
|
+
label: sub.label,
|
|
3154
|
+
onDelete: sub.onDelete,
|
|
3155
|
+
onClick: onSubSelect ? (_id) => {
|
|
3156
|
+
onSubSelect(_id);
|
|
3157
|
+
setOpen(false);
|
|
3158
|
+
} : void 0
|
|
3159
|
+
})) : void 0;
|
|
3160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3161
|
+
NavItem,
|
|
3162
|
+
{
|
|
3163
|
+
icon: entry.icon,
|
|
3164
|
+
label: entry.label,
|
|
3165
|
+
active: isActive,
|
|
3166
|
+
subItems: mappedSubItems,
|
|
3167
|
+
expanded: hasSubItems ? isExpanded : void 0,
|
|
3168
|
+
onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
|
|
3169
|
+
onClick: (e) => {
|
|
3170
|
+
onSelect?.(entry.id);
|
|
3171
|
+
if (!hasSubItems) setOpen(false);
|
|
3172
|
+
else e.preventDefault();
|
|
3173
|
+
}
|
|
3174
|
+
},
|
|
3175
|
+
entry.id
|
|
3176
|
+
);
|
|
3177
|
+
}) })
|
|
3178
|
+
}
|
|
3179
|
+
),
|
|
3180
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3181
|
+
"div",
|
|
3182
|
+
{
|
|
3183
|
+
className: "flex-shrink-0 px-sm pb-lg space-y-sm",
|
|
3184
|
+
style: { backgroundColor: "var(--color-canvas)" },
|
|
3185
|
+
children: [
|
|
3186
|
+
showShareCard && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
|
|
3187
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3188
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
|
|
3189
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
|
|
3190
|
+
] }),
|
|
3191
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3192
|
+
"span",
|
|
3193
|
+
{
|
|
3194
|
+
className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
|
|
3195
|
+
style: { width: "36px", height: "36px" },
|
|
3196
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(GiftIcon2, {})
|
|
3197
|
+
}
|
|
3198
|
+
)
|
|
3199
|
+
] }),
|
|
3200
|
+
showUpgradeCard && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
|
|
3201
|
+
(userInitials || onInboxClick) && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center justify-between pt-xs", children: [
|
|
3202
|
+
userInitials && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3203
|
+
"span",
|
|
3204
|
+
{
|
|
3205
|
+
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",
|
|
3206
|
+
style: { width: "36px", height: "36px" },
|
|
3207
|
+
"aria-label": "User profile",
|
|
3208
|
+
children: userInitials
|
|
3209
|
+
}
|
|
3210
|
+
),
|
|
3211
|
+
onInboxClick && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
3212
|
+
Button,
|
|
3213
|
+
{
|
|
3214
|
+
variant: "ghost",
|
|
3215
|
+
size: "sm",
|
|
3216
|
+
"aria-label": "Inbox",
|
|
3217
|
+
onClick: onInboxClick,
|
|
3218
|
+
className: "!p-xs !rounded-sm relative",
|
|
3219
|
+
children: [
|
|
3220
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(InboxIcon2, {}),
|
|
3221
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
3222
|
+
"span",
|
|
3223
|
+
{
|
|
3224
|
+
className: "absolute rounded-full bg-semantic-error",
|
|
3225
|
+
"aria-label": "New notifications",
|
|
3226
|
+
style: { width: "8px", height: "8px", top: "4px", right: "4px" }
|
|
3227
|
+
}
|
|
3228
|
+
)
|
|
3229
|
+
]
|
|
3230
|
+
}
|
|
3231
|
+
)
|
|
3232
|
+
] })
|
|
3233
|
+
]
|
|
3234
|
+
}
|
|
3235
|
+
)
|
|
3236
|
+
]
|
|
3237
|
+
}
|
|
3238
|
+
)
|
|
3239
|
+
]
|
|
3240
|
+
}
|
|
3241
|
+
)
|
|
3242
|
+
] });
|
|
3243
|
+
}
|
|
3244
|
+
);
|
|
3245
|
+
AppSidebarMobile.displayName = "AppSidebarMobile";
|
|
3246
|
+
|
|
3247
|
+
// virtual-pkg:src/atoms/AuthScreen/AuthScreen.tsx
|
|
3248
|
+
var import_react12 = __toESM(require("react"));
|
|
3249
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3250
|
+
var AuthScreen = import_react12.default.forwardRef(
|
|
2965
3251
|
({ defaultTab = "login", onLogin, onSignup, loading = false }, ref) => {
|
|
2966
|
-
const [tab, setTab] = (0,
|
|
2967
|
-
const [name, setName] = (0,
|
|
2968
|
-
const [email, setEmail] = (0,
|
|
2969
|
-
const [password, setPassword] = (0,
|
|
2970
|
-
const [confirm, setConfirm] = (0,
|
|
2971
|
-
const [error, setError] = (0,
|
|
2972
|
-
const nameId = (0,
|
|
2973
|
-
const emailId = (0,
|
|
2974
|
-
const passwordId = (0,
|
|
2975
|
-
const confirmId = (0,
|
|
3252
|
+
const [tab, setTab] = (0, import_react12.useState)(defaultTab);
|
|
3253
|
+
const [name, setName] = (0, import_react12.useState)("");
|
|
3254
|
+
const [email, setEmail] = (0, import_react12.useState)("");
|
|
3255
|
+
const [password, setPassword] = (0, import_react12.useState)("");
|
|
3256
|
+
const [confirm, setConfirm] = (0, import_react12.useState)("");
|
|
3257
|
+
const [error, setError] = (0, import_react12.useState)(null);
|
|
3258
|
+
const nameId = (0, import_react12.useId)();
|
|
3259
|
+
const emailId = (0, import_react12.useId)();
|
|
3260
|
+
const passwordId = (0, import_react12.useId)();
|
|
3261
|
+
const confirmId = (0, import_react12.useId)();
|
|
2976
3262
|
const switchTab = (t) => {
|
|
2977
3263
|
setTab(t);
|
|
2978
3264
|
setError(null);
|
|
@@ -2993,13 +3279,13 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
2993
3279
|
const labelCls = "block text-body-sm text-body mb-xs font-weight-heading-sm";
|
|
2994
3280
|
return (
|
|
2995
3281
|
/* Full-width page background — no height constraint */
|
|
2996
|
-
/* @__PURE__ */ (0,
|
|
3282
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { ref, className: "w-full bg-surface p-xl", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-full max-w-3xl mx-auto flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2997
3283
|
"div",
|
|
2998
3284
|
{
|
|
2999
3285
|
style: { width: "min(100%, 22rem)" },
|
|
3000
3286
|
className: "rounded-xl border border-hairline-soft bg-canvas px-xl py-xxl shadow-card",
|
|
3001
3287
|
children: [
|
|
3002
|
-
/* @__PURE__ */ (0,
|
|
3288
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mb-lg flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex h-14 w-10 items-center justify-center rounded-full bg-primary", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3003
3289
|
"path",
|
|
3004
3290
|
{
|
|
3005
3291
|
d: "M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",
|
|
@@ -3009,15 +3295,15 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3009
3295
|
strokeLinejoin: "round"
|
|
3010
3296
|
}
|
|
3011
3297
|
) }) }) }),
|
|
3012
|
-
/* @__PURE__ */ (0,
|
|
3013
|
-
/* @__PURE__ */ (0,
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3298
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("h1", { className: "mb-xs text-heading-sm text-ink", children: tab === "login" ? "Welcome back" : "Create an account" }),
|
|
3299
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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." }),
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3015
3301
|
"div",
|
|
3016
3302
|
{
|
|
3017
3303
|
role: "tablist",
|
|
3018
3304
|
"aria-label": "Auth mode",
|
|
3019
3305
|
className: "mb-xl flex rounded-lg bg-surface-soft p-xs gap-xs",
|
|
3020
|
-
children: ["login", "signup"].map((t) => /* @__PURE__ */ (0,
|
|
3306
|
+
children: ["login", "signup"].map((t) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3021
3307
|
Button,
|
|
3022
3308
|
{
|
|
3023
3309
|
role: "tab",
|
|
@@ -3037,10 +3323,10 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3037
3323
|
))
|
|
3038
3324
|
}
|
|
3039
3325
|
),
|
|
3040
|
-
/* @__PURE__ */ (0,
|
|
3041
|
-
tab === "signup" && /* @__PURE__ */ (0,
|
|
3042
|
-
/* @__PURE__ */ (0,
|
|
3043
|
-
/* @__PURE__ */ (0,
|
|
3326
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("form", { onSubmit: handleSubmit, noValidate: true, className: "space-y-base", children: [
|
|
3327
|
+
tab === "signup" && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
3328
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: nameId, className: labelCls, children: "Full name" }),
|
|
3329
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3044
3330
|
Input,
|
|
3045
3331
|
{
|
|
3046
3332
|
id: nameId,
|
|
@@ -3054,9 +3340,9 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3054
3340
|
}
|
|
3055
3341
|
)
|
|
3056
3342
|
] }),
|
|
3057
|
-
/* @__PURE__ */ (0,
|
|
3058
|
-
/* @__PURE__ */ (0,
|
|
3059
|
-
/* @__PURE__ */ (0,
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
3344
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: emailId, className: labelCls, children: "Email address" }),
|
|
3345
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3060
3346
|
Input,
|
|
3061
3347
|
{
|
|
3062
3348
|
id: emailId,
|
|
@@ -3070,12 +3356,12 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3070
3356
|
}
|
|
3071
3357
|
)
|
|
3072
3358
|
] }),
|
|
3073
|
-
/* @__PURE__ */ (0,
|
|
3074
|
-
/* @__PURE__ */ (0,
|
|
3075
|
-
/* @__PURE__ */ (0,
|
|
3076
|
-
tab === "login" && /* @__PURE__ */ (0,
|
|
3359
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
3360
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "mb-xs flex items-center justify-between", children: [
|
|
3361
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: passwordId, className: labelCls + " mb-0", children: "Password" }),
|
|
3362
|
+
tab === "login" && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("a", { href: "#", className: "text-body-sm text-primary hover:underline", children: "Forgot password?" })
|
|
3077
3363
|
] }),
|
|
3078
|
-
/* @__PURE__ */ (0,
|
|
3364
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3079
3365
|
Input,
|
|
3080
3366
|
{
|
|
3081
3367
|
id: passwordId,
|
|
@@ -3089,9 +3375,9 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3089
3375
|
}
|
|
3090
3376
|
)
|
|
3091
3377
|
] }),
|
|
3092
|
-
tab === "signup" && /* @__PURE__ */ (0,
|
|
3093
|
-
/* @__PURE__ */ (0,
|
|
3094
|
-
/* @__PURE__ */ (0,
|
|
3378
|
+
tab === "signup" && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { children: [
|
|
3379
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("label", { htmlFor: confirmId, className: labelCls, children: "Confirm password" }),
|
|
3380
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3095
3381
|
Input,
|
|
3096
3382
|
{
|
|
3097
3383
|
id: confirmId,
|
|
@@ -3105,7 +3391,7 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3105
3391
|
}
|
|
3106
3392
|
)
|
|
3107
3393
|
] }),
|
|
3108
|
-
error && /* @__PURE__ */ (0,
|
|
3394
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3109
3395
|
"p",
|
|
3110
3396
|
{
|
|
3111
3397
|
role: "alert",
|
|
@@ -3113,26 +3399,26 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3113
3399
|
children: error
|
|
3114
3400
|
}
|
|
3115
3401
|
),
|
|
3116
|
-
/* @__PURE__ */ (0,
|
|
3402
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Button, { type: "submit", variant: "primary", size: "lg", disabled: loading, className: "w-full", children: loading ? "Please wait\u2026" : tab === "login" ? "Sign in" : "Create account" })
|
|
3117
3403
|
] }),
|
|
3118
|
-
/* @__PURE__ */ (0,
|
|
3119
|
-
/* @__PURE__ */ (0,
|
|
3120
|
-
/* @__PURE__ */ (0,
|
|
3121
|
-
/* @__PURE__ */ (0,
|
|
3404
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "my-xl flex items-center gap-base", children: [
|
|
3405
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "h-px flex-1 bg-hairline" }),
|
|
3406
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-caption text-muted-soft", children: "OR" }),
|
|
3407
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "h-px flex-1 bg-hairline" })
|
|
3122
3408
|
] }),
|
|
3123
|
-
/* @__PURE__ */ (0,
|
|
3124
|
-
/* @__PURE__ */ (0,
|
|
3125
|
-
/* @__PURE__ */ (0,
|
|
3126
|
-
/* @__PURE__ */ (0,
|
|
3127
|
-
/* @__PURE__ */ (0,
|
|
3128
|
-
/* @__PURE__ */ (0,
|
|
3409
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Button, { type: "button", variant: "secondary", size: "md", className: "w-full", children: [
|
|
3410
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("svg", { "aria-hidden": "true", width: "18", height: "18", viewBox: "0 0 24 24", className: "shrink-0", children: [
|
|
3411
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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)" }),
|
|
3412
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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)" }),
|
|
3413
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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)" }),
|
|
3414
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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)" })
|
|
3129
3415
|
] }),
|
|
3130
3416
|
"Continue with Google"
|
|
3131
3417
|
] }),
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "mt-xl text-center text-body-sm text-muted", children: tab === "login" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
3133
3419
|
"Don\u2019t have an account?",
|
|
3134
3420
|
" ",
|
|
3135
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3136
3422
|
Button,
|
|
3137
3423
|
{
|
|
3138
3424
|
type: "button",
|
|
@@ -3144,10 +3430,10 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3144
3430
|
children: "Sign up"
|
|
3145
3431
|
}
|
|
3146
3432
|
)
|
|
3147
|
-
] }) : /* @__PURE__ */ (0,
|
|
3433
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
3148
3434
|
"Already have an account?",
|
|
3149
3435
|
" ",
|
|
3150
|
-
/* @__PURE__ */ (0,
|
|
3436
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3151
3437
|
Button,
|
|
3152
3438
|
{
|
|
3153
3439
|
type: "button",
|
|
@@ -3169,8 +3455,8 @@ var AuthScreen = import_react11.default.forwardRef(
|
|
|
3169
3455
|
AuthScreen.displayName = "AuthScreen";
|
|
3170
3456
|
|
|
3171
3457
|
// virtual-pkg:src/atoms/Chip/Chip.tsx
|
|
3172
|
-
var
|
|
3173
|
-
var
|
|
3458
|
+
var import_react13 = __toESM(require("react"));
|
|
3459
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
3174
3460
|
var variantClasses2 = {
|
|
3175
3461
|
default: "bg-surface-strong text-body border border-hairline",
|
|
3176
3462
|
primary: "bg-primary text-on-primary border border-primary",
|
|
@@ -3183,7 +3469,7 @@ var sizeClasses3 = {
|
|
|
3183
3469
|
md: { chip: "h-8 px-sm gap-xs rounded-sm", text: "text-body-sm", icon: "w-4 h-4", dismissSize: "sm" },
|
|
3184
3470
|
lg: { chip: "h-10 px-md gap-sm rounded-md", text: "text-body-md", icon: "w-5 h-5", dismissSize: "sm" }
|
|
3185
3471
|
};
|
|
3186
|
-
var
|
|
3472
|
+
var CloseIcon2 = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3187
3473
|
"svg",
|
|
3188
3474
|
{
|
|
3189
3475
|
viewBox: "0 0 16 16",
|
|
@@ -3194,12 +3480,12 @@ var CloseIcon = ({ className }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs
|
|
|
3194
3480
|
className,
|
|
3195
3481
|
"aria-hidden": "true",
|
|
3196
3482
|
children: [
|
|
3197
|
-
/* @__PURE__ */ (0,
|
|
3198
|
-
/* @__PURE__ */ (0,
|
|
3483
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("line", { x1: "4", y1: "4", x2: "12", y2: "12" }),
|
|
3484
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("line", { x1: "12", y1: "4", x2: "4", y2: "12" })
|
|
3199
3485
|
]
|
|
3200
3486
|
}
|
|
3201
3487
|
);
|
|
3202
|
-
var Chip =
|
|
3488
|
+
var Chip = import_react13.default.forwardRef(
|
|
3203
3489
|
({
|
|
3204
3490
|
label,
|
|
3205
3491
|
variant = "default",
|
|
@@ -3213,7 +3499,7 @@ var Chip = import_react12.default.forwardRef(
|
|
|
3213
3499
|
const sz = sizeClasses3[size];
|
|
3214
3500
|
const vr = variantClasses2[variant];
|
|
3215
3501
|
const disabledStyles = disabled ? "opacity-50 pointer-events-none select-none" : "";
|
|
3216
|
-
return /* @__PURE__ */ (0,
|
|
3502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3217
3503
|
"span",
|
|
3218
3504
|
{
|
|
3219
3505
|
ref,
|
|
@@ -3228,7 +3514,7 @@ var Chip = import_react12.default.forwardRef(
|
|
|
3228
3514
|
].filter(Boolean).join(" "),
|
|
3229
3515
|
...props,
|
|
3230
3516
|
children: [
|
|
3231
|
-
icon && /* @__PURE__ */ (0,
|
|
3517
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3232
3518
|
"span",
|
|
3233
3519
|
{
|
|
3234
3520
|
className: `${sz.icon} flex-shrink-0 flex items-center justify-center`,
|
|
@@ -3236,8 +3522,8 @@ var Chip = import_react12.default.forwardRef(
|
|
|
3236
3522
|
children: icon
|
|
3237
3523
|
}
|
|
3238
3524
|
),
|
|
3239
|
-
/* @__PURE__ */ (0,
|
|
3240
|
-
onDismiss && /* @__PURE__ */ (0,
|
|
3525
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: sz.text, children: label }),
|
|
3526
|
+
onDismiss && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3241
3527
|
Button,
|
|
3242
3528
|
{
|
|
3243
3529
|
variant: "ghost",
|
|
@@ -3246,7 +3532,7 @@ var Chip = import_react12.default.forwardRef(
|
|
|
3246
3532
|
disabled,
|
|
3247
3533
|
"aria-label": `Remove ${label}`,
|
|
3248
3534
|
className: "!p-0 !h-4 !w-4 !min-w-0 opacity-60 hover:opacity-100 rounded-full flex-shrink-0",
|
|
3249
|
-
children: /* @__PURE__ */ (0,
|
|
3535
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CloseIcon2, { className: "w-3 h-3" })
|
|
3250
3536
|
}
|
|
3251
3537
|
)
|
|
3252
3538
|
]
|
|
@@ -3257,8 +3543,8 @@ var Chip = import_react12.default.forwardRef(
|
|
|
3257
3543
|
Chip.displayName = "Chip";
|
|
3258
3544
|
|
|
3259
3545
|
// virtual-pkg:src/atoms/ComponentCard/ComponentCard.tsx
|
|
3260
|
-
var
|
|
3261
|
-
var
|
|
3546
|
+
var import_react14 = __toESM(require("react"));
|
|
3547
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
3262
3548
|
var kindColors = {
|
|
3263
3549
|
Atom: "bg-[var(--color-kind-atom-bg)] text-[var(--color-kind-atom-text)] border-[var(--color-kind-atom-border)]",
|
|
3264
3550
|
Molecule: "bg-[var(--color-kind-molecule-bg)] text-[var(--color-kind-molecule-text)] border-[var(--color-kind-molecule-border)]",
|
|
@@ -3271,7 +3557,7 @@ var iconBg = {
|
|
|
3271
3557
|
Organism: "bg-primary text-on-primary",
|
|
3272
3558
|
Template: "bg-[var(--color-kind-template-bg)] text-[var(--color-kind-template-text)]"
|
|
3273
3559
|
};
|
|
3274
|
-
var ComponentCard =
|
|
3560
|
+
var ComponentCard = import_react14.default.forwardRef(
|
|
3275
3561
|
({
|
|
3276
3562
|
name,
|
|
3277
3563
|
kind = "Organism",
|
|
@@ -3282,7 +3568,7 @@ var ComponentCard = import_react13.default.forwardRef(
|
|
|
3282
3568
|
className,
|
|
3283
3569
|
...rest
|
|
3284
3570
|
}, ref) => {
|
|
3285
|
-
return /* @__PURE__ */ (0,
|
|
3571
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
3286
3572
|
"div",
|
|
3287
3573
|
{
|
|
3288
3574
|
ref,
|
|
@@ -3297,7 +3583,7 @@ var ComponentCard = import_react13.default.forwardRef(
|
|
|
3297
3583
|
].filter(Boolean).join(" "),
|
|
3298
3584
|
...rest,
|
|
3299
3585
|
children: [
|
|
3300
|
-
/* @__PURE__ */ (0,
|
|
3586
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
3301
3587
|
"div",
|
|
3302
3588
|
{
|
|
3303
3589
|
className: [
|
|
@@ -3305,15 +3591,15 @@ var ComponentCard = import_react13.default.forwardRef(
|
|
|
3305
3591
|
"w-full aspect-[4/3] overflow-hidden",
|
|
3306
3592
|
thumbnailBg ?? "bg-surface-soft"
|
|
3307
3593
|
].join(" "),
|
|
3308
|
-
children: thumbnailContent ?? /* @__PURE__ */ (0,
|
|
3594
|
+
children: thumbnailContent ?? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DefaultThumbnail, { kind })
|
|
3309
3595
|
}
|
|
3310
3596
|
),
|
|
3311
|
-
/* @__PURE__ */ (0,
|
|
3312
|
-
/* @__PURE__ */ (0,
|
|
3313
|
-
/* @__PURE__ */ (0,
|
|
3314
|
-
/* @__PURE__ */ (0,
|
|
3597
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center justify-between px-md py-sm border-t border-hairline-soft bg-canvas", children: [
|
|
3598
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col gap-xxs min-w-0", children: [
|
|
3599
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: name }),
|
|
3600
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "text-caption text-muted truncate", children: description ?? `${kind} \u2022 Generated` })
|
|
3315
3601
|
] }),
|
|
3316
|
-
/* @__PURE__ */ (0,
|
|
3602
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
3317
3603
|
"span",
|
|
3318
3604
|
{
|
|
3319
3605
|
className: [
|
|
@@ -3334,27 +3620,27 @@ var ComponentCard = import_react13.default.forwardRef(
|
|
|
3334
3620
|
ComponentCard.displayName = "ComponentCard";
|
|
3335
3621
|
function DefaultThumbnail({ kind }) {
|
|
3336
3622
|
const icons = {
|
|
3337
|
-
Atom: /* @__PURE__ */ (0,
|
|
3338
|
-
/* @__PURE__ */ (0,
|
|
3339
|
-
/* @__PURE__ */ (0,
|
|
3340
|
-
/* @__PURE__ */ (0,
|
|
3623
|
+
Atom: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3624
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("circle", { cx: "12", cy: "12", r: "1" }),
|
|
3625
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M20.2 20.2c2.04-2.03.02-7.36-4.5-11.9-4.54-4.52-9.87-6.54-11.9-4.5-2.04 2.03-.02 7.36 4.5 11.9 4.54 4.52 9.87 6.54 11.9 4.5Z" }),
|
|
3626
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M15.7 15.7c4.52-4.54 6.54-9.87 4.5-11.9-2.03-2.04-7.36-.02-11.9 4.5-4.52 4.54-6.54 9.87-4.5 11.9 2.03 2.04 7.36.02 11.9-4.5Z" })
|
|
3341
3627
|
] }),
|
|
3342
|
-
Molecule: /* @__PURE__ */ (0,
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3344
|
-
/* @__PURE__ */ (0,
|
|
3345
|
-
/* @__PURE__ */ (0,
|
|
3628
|
+
Molecule: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3629
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "2", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3630
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "14", y: "2", width: "8", height: "8", rx: "2" }),
|
|
3631
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "2", y: "14", width: "8", height: "8", rx: "2" })
|
|
3346
3632
|
] }),
|
|
3347
|
-
Organism: /* @__PURE__ */ (0,
|
|
3348
|
-
/* @__PURE__ */ (0,
|
|
3349
|
-
/* @__PURE__ */ (0,
|
|
3350
|
-
/* @__PURE__ */ (0,
|
|
3633
|
+
Organism: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3634
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M12 2L2 7l10 5 10-5-10-5z" }),
|
|
3635
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M2 17l10 5 10-5" }),
|
|
3636
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M2 12l10 5 10-5" })
|
|
3351
3637
|
] }),
|
|
3352
|
-
Template: /* @__PURE__ */ (0,
|
|
3353
|
-
/* @__PURE__ */ (0,
|
|
3354
|
-
/* @__PURE__ */ (0,
|
|
3638
|
+
Template: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
3639
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }),
|
|
3640
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("path", { d: "M3 9h18M9 21V9" })
|
|
3355
3641
|
] })
|
|
3356
3642
|
};
|
|
3357
|
-
return /* @__PURE__ */ (0,
|
|
3643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
3358
3644
|
"div",
|
|
3359
3645
|
{
|
|
3360
3646
|
className: [
|
|
@@ -3367,11 +3653,11 @@ function DefaultThumbnail({ kind }) {
|
|
|
3367
3653
|
}
|
|
3368
3654
|
|
|
3369
3655
|
// virtual-pkg:src/atoms/FilterTabBar/FilterTabBar.tsx
|
|
3370
|
-
var
|
|
3371
|
-
var
|
|
3372
|
-
var FilterTabBar =
|
|
3656
|
+
var import_react15 = __toESM(require("react"));
|
|
3657
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
3658
|
+
var FilterTabBar = import_react15.default.forwardRef(
|
|
3373
3659
|
({ tabs, value, onChange, className = "", ...rest }, ref) => {
|
|
3374
|
-
return /* @__PURE__ */ (0,
|
|
3660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
3375
3661
|
"div",
|
|
3376
3662
|
{
|
|
3377
3663
|
ref,
|
|
@@ -3385,7 +3671,7 @@ var FilterTabBar = import_react14.default.forwardRef(
|
|
|
3385
3671
|
...rest,
|
|
3386
3672
|
children: tabs.map((tab) => {
|
|
3387
3673
|
const isActive = tab.value === value;
|
|
3388
|
-
return /* @__PURE__ */ (0,
|
|
3674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
3389
3675
|
Button,
|
|
3390
3676
|
{
|
|
3391
3677
|
role: "tab",
|
|
@@ -3396,9 +3682,9 @@ var FilterTabBar = import_react14.default.forwardRef(
|
|
|
3396
3682
|
onClick: () => onChange(tab.value),
|
|
3397
3683
|
className: "gap-xs",
|
|
3398
3684
|
children: [
|
|
3399
|
-
tab.icon && /* @__PURE__ */ (0,
|
|
3400
|
-
tab.label && /* @__PURE__ */ (0,
|
|
3401
|
-
tab.count !== void 0 && /* @__PURE__ */ (0,
|
|
3685
|
+
tab.icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "inline-flex items-center justify-center shrink-0", "aria-hidden": "true", children: tab.icon }),
|
|
3686
|
+
tab.label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { children: tab.label }),
|
|
3687
|
+
tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
3402
3688
|
"span",
|
|
3403
3689
|
{
|
|
3404
3690
|
className: [
|
|
@@ -3423,20 +3709,263 @@ var FilterTabBar = import_react14.default.forwardRef(
|
|
|
3423
3709
|
);
|
|
3424
3710
|
FilterTabBar.displayName = "FilterTabBar";
|
|
3425
3711
|
|
|
3712
|
+
// virtual-pkg:src/atoms/HomePageTemplate/HomePageTemplate.tsx
|
|
3713
|
+
var import_react16 = __toESM(require("react"));
|
|
3714
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
3715
|
+
var HomeIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: [
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" }),
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("polyline", { points: "9 22 9 12 15 12 15 22" })
|
|
3718
|
+
] });
|
|
3719
|
+
var FolderIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "18px", height: "18px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" }) });
|
|
3720
|
+
var LogoIcon3 = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "26", height: "26", viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
3721
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 36C12 36 8 28 16 22C20 19 26 20 26 20C26 20 22 26 18 30C16 32 12 36 12 36Z", style: { fill: "var(--color-logo-orange)" } }),
|
|
3722
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M24 8C24 8 36 12 36 24C36 30 32 36 26 38C26 38 28 30 26 24C25 20 24 8 24 8Z", style: { fill: "var(--color-logo-violet)" } }),
|
|
3723
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 36C12 36 16 24 24 20C28 18 36 20 36 20C36 20 30 28 26 32C22 36 12 36 12 36Z", style: { fill: "var(--color-logo-pink)", opacity: 0.7 } })
|
|
3724
|
+
] });
|
|
3725
|
+
var SparkleIcon = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", style: { width: "14px", height: "14px" }, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("path", { d: "M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 17 5.8 21.3l2.4-7.4L2 9.4h7.6z" }) });
|
|
3726
|
+
var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3727
|
+
Button,
|
|
3728
|
+
{
|
|
3729
|
+
type: "button",
|
|
3730
|
+
variant: "secondary",
|
|
3731
|
+
size: "sm",
|
|
3732
|
+
onClick,
|
|
3733
|
+
className: "!rounded-xl whitespace-nowrap",
|
|
3734
|
+
children: label
|
|
3735
|
+
}
|
|
3736
|
+
);
|
|
3737
|
+
var NAV_ENTRIES = [
|
|
3738
|
+
{ id: "home", label: "Home", icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(HomeIcon2, {}) },
|
|
3739
|
+
{
|
|
3740
|
+
id: "projects",
|
|
3741
|
+
label: "All projects",
|
|
3742
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(FolderIcon, {}),
|
|
3743
|
+
subItems: [
|
|
3744
|
+
{ id: "proj-1", label: "Design system" },
|
|
3745
|
+
{ id: "proj-2", label: "Landing page" },
|
|
3746
|
+
{ id: "proj-3", label: "Dashboard" }
|
|
3747
|
+
]
|
|
3748
|
+
}
|
|
3749
|
+
];
|
|
3750
|
+
var DEFAULT_SUGGESTIONS = [
|
|
3751
|
+
"Primary button atom",
|
|
3752
|
+
"Brand color palette",
|
|
3753
|
+
"Type scale",
|
|
3754
|
+
"Card molecule"
|
|
3755
|
+
];
|
|
3756
|
+
var GRADIENT_BG = `
|
|
3757
|
+
radial-gradient(ellipse 80% 60% at 30% 20%, var(--color-primary-disabled) 0%, transparent 55%),
|
|
3758
|
+
radial-gradient(ellipse 60% 50% at 75% 80%, color-mix(in srgb, var(--color-logo-orange) 20%, transparent) 0%, transparent 55%),
|
|
3759
|
+
radial-gradient(ellipse 70% 60% at 50% 50%, var(--color-surface-soft) 0%, transparent 70%),
|
|
3760
|
+
var(--color-canvas)
|
|
3761
|
+
`;
|
|
3762
|
+
var HomePageTemplate = import_react16.default.forwardRef(
|
|
3763
|
+
({
|
|
3764
|
+
userName = "Hello Designer",
|
|
3765
|
+
userInitials = "N",
|
|
3766
|
+
promptValue,
|
|
3767
|
+
onPromptChange,
|
|
3768
|
+
mode = "Build",
|
|
3769
|
+
onModeChange,
|
|
3770
|
+
onSend,
|
|
3771
|
+
suggestions = DEFAULT_SUGGESTIONS,
|
|
3772
|
+
onSuggestionClick,
|
|
3773
|
+
navEntries,
|
|
3774
|
+
activeId: activeIdProp,
|
|
3775
|
+
onSelect,
|
|
3776
|
+
activeSubId,
|
|
3777
|
+
onSubSelect,
|
|
3778
|
+
className,
|
|
3779
|
+
style
|
|
3780
|
+
}, ref) => {
|
|
3781
|
+
const [internalPrompt, setInternalPrompt] = import_react16.default.useState("");
|
|
3782
|
+
const [internalActiveId, setInternalActiveId] = import_react16.default.useState("home");
|
|
3783
|
+
const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
|
|
3784
|
+
const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
|
|
3785
|
+
const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
|
|
3786
|
+
const handleChange = (val) => {
|
|
3787
|
+
if (promptValue === void 0) setInternalPrompt(val);
|
|
3788
|
+
onPromptChange?.(val);
|
|
3789
|
+
};
|
|
3790
|
+
const handleSend = (val) => {
|
|
3791
|
+
onSend?.(val);
|
|
3792
|
+
if (promptValue === void 0) setInternalPrompt("");
|
|
3793
|
+
};
|
|
3794
|
+
const handleSuggestion = (label) => {
|
|
3795
|
+
if (promptValue === void 0) setInternalPrompt(label);
|
|
3796
|
+
onPromptChange?.(label);
|
|
3797
|
+
onSuggestionClick?.(label);
|
|
3798
|
+
};
|
|
3799
|
+
const handleSelect = (id) => {
|
|
3800
|
+
if (activeIdProp === void 0) setInternalActiveId(id);
|
|
3801
|
+
onSelect?.(id);
|
|
3802
|
+
};
|
|
3803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
3804
|
+
"div",
|
|
3805
|
+
{
|
|
3806
|
+
ref,
|
|
3807
|
+
className: ["flex w-full", className].filter(Boolean).join(" "),
|
|
3808
|
+
style: { width: "100%", height: "100%", background: "var(--color-canvas)", ...style },
|
|
3809
|
+
children: [
|
|
3810
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "hidden md:flex flex-shrink-0", style: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3811
|
+
AppSidebar,
|
|
3812
|
+
{
|
|
3813
|
+
workspaceName: userName,
|
|
3814
|
+
entries: resolvedEntries,
|
|
3815
|
+
activeId: resolvedActiveId,
|
|
3816
|
+
onSelect: handleSelect,
|
|
3817
|
+
activeSubId,
|
|
3818
|
+
onSubSelect,
|
|
3819
|
+
showShareCard: true,
|
|
3820
|
+
showUpgradeCard: true,
|
|
3821
|
+
userInitials,
|
|
3822
|
+
onInboxClick: () => {
|
|
3823
|
+
},
|
|
3824
|
+
style: { height: "100%" }
|
|
3825
|
+
}
|
|
3826
|
+
) }),
|
|
3827
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
3828
|
+
"main",
|
|
3829
|
+
{
|
|
3830
|
+
className: "flex-1 relative flex flex-col overflow-hidden",
|
|
3831
|
+
style: { height: "100%" },
|
|
3832
|
+
"aria-label": "Home canvas",
|
|
3833
|
+
children: [
|
|
3834
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3835
|
+
"div",
|
|
3836
|
+
{
|
|
3837
|
+
"aria-hidden": "true",
|
|
3838
|
+
className: "absolute inset-0 pointer-events-none",
|
|
3839
|
+
style: { background: GRADIENT_BG }
|
|
3840
|
+
}
|
|
3841
|
+
),
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "md:hidden relative z-10 flex items-center justify-between px-md py-sm border-b border-hairline bg-canvas", children: [
|
|
3843
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-sm", children: [
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3845
|
+
AppSidebarMobile,
|
|
3846
|
+
{
|
|
3847
|
+
brandName: "Atoms",
|
|
3848
|
+
entries: resolvedEntries,
|
|
3849
|
+
activeId: resolvedActiveId,
|
|
3850
|
+
onSelect: handleSelect,
|
|
3851
|
+
workspaceName: userName,
|
|
3852
|
+
showShareCard: true,
|
|
3853
|
+
showUpgradeCard: true,
|
|
3854
|
+
userInitials,
|
|
3855
|
+
onInboxClick: () => {
|
|
3856
|
+
}
|
|
3857
|
+
}
|
|
3858
|
+
),
|
|
3859
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-xs", children: [
|
|
3860
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LogoIcon3, {}),
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Atoms" })
|
|
3862
|
+
] })
|
|
3863
|
+
] }),
|
|
3864
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3865
|
+
"span",
|
|
3866
|
+
{
|
|
3867
|
+
className: "flex items-center justify-center rounded-full bg-primary text-on-primary text-caption font-weight-heading-sm",
|
|
3868
|
+
style: { width: "32px", height: "32px" },
|
|
3869
|
+
"aria-label": "User profile",
|
|
3870
|
+
children: userInitials
|
|
3871
|
+
}
|
|
3872
|
+
)
|
|
3873
|
+
] }),
|
|
3874
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "relative z-10 flex-1 flex flex-col items-center justify-center overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "w-full max-w-2xl mx-auto flex flex-col items-center gap-lg px-md py-xl md:gap-xl md:px-lg md:py-xxl", children: [
|
|
3875
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
3876
|
+
Button,
|
|
3877
|
+
{
|
|
3878
|
+
variant: "secondary",
|
|
3879
|
+
size: "sm",
|
|
3880
|
+
"aria-label": "New design system",
|
|
3881
|
+
className: "!rounded-full flex items-center gap-xs",
|
|
3882
|
+
children: [
|
|
3883
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SparkleIcon, {}),
|
|
3884
|
+
"New design system"
|
|
3885
|
+
]
|
|
3886
|
+
}
|
|
3887
|
+
),
|
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "text-center flex flex-col gap-sm", children: [
|
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
3890
|
+
"h1",
|
|
3891
|
+
{
|
|
3892
|
+
className: "text-ink",
|
|
3893
|
+
style: {
|
|
3894
|
+
fontFamily: "var(--font-body)",
|
|
3895
|
+
fontSize: "clamp(26px, 5vw, 52px)",
|
|
3896
|
+
fontWeight: 700,
|
|
3897
|
+
lineHeight: 1.1,
|
|
3898
|
+
letterSpacing: "-0.03em"
|
|
3899
|
+
},
|
|
3900
|
+
children: [
|
|
3901
|
+
"What atom should we",
|
|
3902
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("br", {}),
|
|
3903
|
+
"build?"
|
|
3904
|
+
]
|
|
3905
|
+
}
|
|
3906
|
+
),
|
|
3907
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3908
|
+
"p",
|
|
3909
|
+
{
|
|
3910
|
+
className: "text-muted text-body-sm md:text-body-md",
|
|
3911
|
+
style: { maxWidth: "440px", marginInline: "auto" },
|
|
3912
|
+
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."
|
|
3913
|
+
}
|
|
3914
|
+
)
|
|
3915
|
+
] }),
|
|
3916
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-full", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3917
|
+
PromptInputBar,
|
|
3918
|
+
{
|
|
3919
|
+
placeholder: "Describe an atom or design token to create...",
|
|
3920
|
+
value: textValue,
|
|
3921
|
+
onChange: handleChange,
|
|
3922
|
+
mode,
|
|
3923
|
+
onModeChange,
|
|
3924
|
+
onSend: handleSend,
|
|
3925
|
+
onMic: () => {
|
|
3926
|
+
},
|
|
3927
|
+
models: [
|
|
3928
|
+
{ id: "claude-sonnet", name: "Claude Sonnet 4.6" },
|
|
3929
|
+
{ id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
|
|
3930
|
+
{ id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
|
|
3931
|
+
],
|
|
3932
|
+
selectedModelId: "claude-sonnet"
|
|
3933
|
+
}
|
|
3934
|
+
) }),
|
|
3935
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3936
|
+
"div",
|
|
3937
|
+
{
|
|
3938
|
+
className: "flex flex-wrap justify-center gap-sm",
|
|
3939
|
+
role: "list",
|
|
3940
|
+
"aria-label": "Suggested prompts",
|
|
3941
|
+
children: suggestions.map((s) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { role: "listitem", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(SuggestionChip, { label: s, onClick: () => handleSuggestion(s) }) }, s))
|
|
3942
|
+
}
|
|
3943
|
+
)
|
|
3944
|
+
] }) })
|
|
3945
|
+
]
|
|
3946
|
+
}
|
|
3947
|
+
)
|
|
3948
|
+
]
|
|
3949
|
+
}
|
|
3950
|
+
);
|
|
3951
|
+
}
|
|
3952
|
+
);
|
|
3953
|
+
HomePageTemplate.displayName = "HomePageTemplate";
|
|
3954
|
+
|
|
3426
3955
|
// virtual-pkg:src/atoms/Modal/Modal.tsx
|
|
3427
|
-
var
|
|
3428
|
-
var
|
|
3956
|
+
var import_react17 = __toESM(require("react"));
|
|
3957
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
3429
3958
|
var sizeMap = {
|
|
3430
3959
|
sm: "max-w-sm",
|
|
3431
3960
|
md: "max-w-lg",
|
|
3432
3961
|
lg: "max-w-2xl"
|
|
3433
3962
|
};
|
|
3434
|
-
var Modal =
|
|
3963
|
+
var Modal = import_react17.default.forwardRef(
|
|
3435
3964
|
({ isOpen, onClose, title, children, footer, size = "md" }, ref) => {
|
|
3436
|
-
const [mounted, setMounted] = (0,
|
|
3437
|
-
const [visible, setVisible] = (0,
|
|
3438
|
-
const overlayRef = (0,
|
|
3439
|
-
(0,
|
|
3965
|
+
const [mounted, setMounted] = (0, import_react17.useState)(false);
|
|
3966
|
+
const [visible, setVisible] = (0, import_react17.useState)(false);
|
|
3967
|
+
const overlayRef = (0, import_react17.useRef)(null);
|
|
3968
|
+
(0, import_react17.useEffect)(() => {
|
|
3440
3969
|
if (isOpen) {
|
|
3441
3970
|
setMounted(true);
|
|
3442
3971
|
const raf = requestAnimationFrame(() => {
|
|
@@ -3449,7 +3978,7 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3449
3978
|
return () => clearTimeout(timer);
|
|
3450
3979
|
}
|
|
3451
3980
|
}, [isOpen]);
|
|
3452
|
-
(0,
|
|
3981
|
+
(0, import_react17.useEffect)(() => {
|
|
3453
3982
|
if (!mounted) return;
|
|
3454
3983
|
const handleKey = (e) => {
|
|
3455
3984
|
if (e.key === "Escape") onClose();
|
|
@@ -3461,7 +3990,7 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3461
3990
|
const handleBackdropClick = (e) => {
|
|
3462
3991
|
if (e.target === overlayRef.current) onClose();
|
|
3463
3992
|
};
|
|
3464
|
-
return /* @__PURE__ */ (0,
|
|
3993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3465
3994
|
"div",
|
|
3466
3995
|
{
|
|
3467
3996
|
ref: overlayRef,
|
|
@@ -3476,7 +4005,7 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3476
4005
|
visible ? "opacity-100" : "opacity-0"
|
|
3477
4006
|
].join(" "),
|
|
3478
4007
|
style: { zIndex: "var(--z-modal, 1000)" },
|
|
3479
|
-
children: /* @__PURE__ */ (0,
|
|
4008
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3480
4009
|
"div",
|
|
3481
4010
|
{
|
|
3482
4011
|
ref,
|
|
@@ -3489,9 +4018,9 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3489
4018
|
visible ? "opacity-100 translate-y-0 scale-100" : "opacity-0 translate-y-2 scale-95"
|
|
3490
4019
|
].join(" "),
|
|
3491
4020
|
children: [
|
|
3492
|
-
title && /* @__PURE__ */ (0,
|
|
3493
|
-
/* @__PURE__ */ (0,
|
|
3494
|
-
/* @__PURE__ */ (0,
|
|
4021
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex items-center justify-between px-lg py-base border-b border-hairline", children: [
|
|
4022
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("h2", { id: "modal-title", className: "text-heading-sm text-ink", children: title }),
|
|
4023
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3495
4024
|
Button,
|
|
3496
4025
|
{
|
|
3497
4026
|
variant: "ghost",
|
|
@@ -3499,7 +4028,7 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3499
4028
|
"aria-label": "Close modal",
|
|
3500
4029
|
onClick: onClose,
|
|
3501
4030
|
className: "!px-xs !py-xs",
|
|
3502
|
-
children: /* @__PURE__ */ (0,
|
|
4031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3503
4032
|
"svg",
|
|
3504
4033
|
{
|
|
3505
4034
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3513,16 +4042,16 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3513
4042
|
strokeLinejoin: "round",
|
|
3514
4043
|
"aria-hidden": "true",
|
|
3515
4044
|
children: [
|
|
3516
|
-
/* @__PURE__ */ (0,
|
|
3517
|
-
/* @__PURE__ */ (0,
|
|
4045
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
3518
4047
|
]
|
|
3519
4048
|
}
|
|
3520
4049
|
)
|
|
3521
4050
|
}
|
|
3522
4051
|
)
|
|
3523
4052
|
] }),
|
|
3524
|
-
/* @__PURE__ */ (0,
|
|
3525
|
-
footer && /* @__PURE__ */ (0,
|
|
4053
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex-1 px-lg py-base text-body-md text-body overflow-y-auto", children }),
|
|
4054
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex items-center justify-end gap-sm px-lg py-base border-t border-hairline", children: footer })
|
|
3526
4055
|
]
|
|
3527
4056
|
}
|
|
3528
4057
|
)
|
|
@@ -3533,44 +4062,44 @@ var Modal = import_react15.default.forwardRef(
|
|
|
3533
4062
|
Modal.displayName = "Modal";
|
|
3534
4063
|
|
|
3535
4064
|
// virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
|
|
3536
|
-
var
|
|
3537
|
-
var
|
|
3538
|
-
var DesktopIcon = () => /* @__PURE__ */ (0,
|
|
3539
|
-
/* @__PURE__ */ (0,
|
|
3540
|
-
/* @__PURE__ */ (0,
|
|
4065
|
+
var import_react18 = __toESM(require("react"));
|
|
4066
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4067
|
+
var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4068
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
|
|
4069
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M8 21h8M12 17v4" })
|
|
3541
4070
|
] });
|
|
3542
|
-
var SidebarIcon2 = () => /* @__PURE__ */ (0,
|
|
3543
|
-
/* @__PURE__ */ (0,
|
|
3544
|
-
/* @__PURE__ */ (0,
|
|
4071
|
+
var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4072
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
|
|
4073
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M9 3v18" })
|
|
3545
4074
|
] });
|
|
3546
|
-
var MobileIcon = () => /* @__PURE__ */ (0,
|
|
3547
|
-
/* @__PURE__ */ (0,
|
|
3548
|
-
/* @__PURE__ */ (0,
|
|
4075
|
+
var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4076
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
|
|
4077
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
|
|
3549
4078
|
] });
|
|
3550
|
-
var ExpandIcon = () => /* @__PURE__ */ (0,
|
|
3551
|
-
var InspectIcon = () => /* @__PURE__ */ (0,
|
|
3552
|
-
/* @__PURE__ */ (0,
|
|
3553
|
-
/* @__PURE__ */ (0,
|
|
3554
|
-
/* @__PURE__ */ (0,
|
|
4079
|
+
var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
|
|
4080
|
+
var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4081
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
|
|
4082
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M12 8v4l3 3" }),
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
|
|
3555
4084
|
] });
|
|
3556
|
-
var MoonIcon2 = () => /* @__PURE__ */ (0,
|
|
3557
|
-
var FullscreenIcon = () => /* @__PURE__ */ (0,
|
|
3558
|
-
/* @__PURE__ */ (0,
|
|
3559
|
-
/* @__PURE__ */ (0,
|
|
3560
|
-
/* @__PURE__ */ (0,
|
|
3561
|
-
/* @__PURE__ */ (0,
|
|
4085
|
+
var MoonIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
|
|
4086
|
+
var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
4087
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("polyline", { points: "15 3 21 3 21 9" }),
|
|
4088
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("polyline", { points: "9 21 3 21 3 15" }),
|
|
4089
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
|
|
3562
4091
|
] });
|
|
3563
|
-
var DotsIcon = () => /* @__PURE__ */ (0,
|
|
3564
|
-
/* @__PURE__ */ (0,
|
|
3565
|
-
/* @__PURE__ */ (0,
|
|
3566
|
-
/* @__PURE__ */ (0,
|
|
4092
|
+
var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
|
|
4093
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
|
|
4094
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
|
|
4095
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
|
|
3567
4096
|
] });
|
|
3568
4097
|
var VIEWPORT_OPTIONS = [
|
|
3569
4098
|
{ id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
|
|
3570
4099
|
{ id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
|
|
3571
4100
|
{ id: "mobile", Icon: MobileIcon, label: "Mobile view" }
|
|
3572
4101
|
];
|
|
3573
|
-
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0,
|
|
4102
|
+
var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3574
4103
|
Button,
|
|
3575
4104
|
{
|
|
3576
4105
|
variant: active ? "primary" : "ghost",
|
|
@@ -3582,7 +4111,7 @@ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0,
|
|
|
3582
4111
|
children
|
|
3583
4112
|
}
|
|
3584
4113
|
);
|
|
3585
|
-
var PreviewToolbar =
|
|
4114
|
+
var PreviewToolbar = import_react18.default.forwardRef(
|
|
3586
4115
|
({
|
|
3587
4116
|
viewport = "desktop",
|
|
3588
4117
|
onViewportChange,
|
|
@@ -3597,7 +4126,7 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3597
4126
|
kindLabel = "ATOM",
|
|
3598
4127
|
onOverflow,
|
|
3599
4128
|
className = ""
|
|
3600
|
-
}, ref) => /* @__PURE__ */ (0,
|
|
4129
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3601
4130
|
"div",
|
|
3602
4131
|
{
|
|
3603
4132
|
ref,
|
|
@@ -3611,24 +4140,24 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3611
4140
|
className
|
|
3612
4141
|
].filter(Boolean).join(" "),
|
|
3613
4142
|
children: [
|
|
3614
|
-
/* @__PURE__ */ (0,
|
|
4143
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3615
4144
|
"div",
|
|
3616
4145
|
{
|
|
3617
4146
|
role: "group",
|
|
3618
4147
|
"aria-label": "Viewport size",
|
|
3619
4148
|
className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs w-full md:w-auto",
|
|
3620
4149
|
children: [
|
|
3621
|
-
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0,
|
|
4150
|
+
VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3622
4151
|
ViewportBtn,
|
|
3623
4152
|
{
|
|
3624
4153
|
label,
|
|
3625
4154
|
active: !expanded && viewport === id,
|
|
3626
4155
|
onClick: () => onViewportChange?.(id),
|
|
3627
|
-
children: /* @__PURE__ */ (0,
|
|
4156
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Icon, {})
|
|
3628
4157
|
},
|
|
3629
4158
|
id
|
|
3630
4159
|
)),
|
|
3631
|
-
/* @__PURE__ */ (0,
|
|
4160
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3632
4161
|
Button,
|
|
3633
4162
|
{
|
|
3634
4163
|
variant: expanded ? "primary" : "ghost",
|
|
@@ -3640,14 +4169,14 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3640
4169
|
"!w-8 !h-8 !p-0 rounded-sm shrink-0",
|
|
3641
4170
|
expanded ? "" : "text-muted"
|
|
3642
4171
|
].join(" "),
|
|
3643
|
-
children: /* @__PURE__ */ (0,
|
|
4172
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(ExpandIcon, {})
|
|
3644
4173
|
}
|
|
3645
4174
|
)
|
|
3646
4175
|
]
|
|
3647
4176
|
}
|
|
3648
4177
|
),
|
|
3649
|
-
/* @__PURE__ */ (0,
|
|
3650
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-wrap items-center gap-sm", children: [
|
|
4179
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3651
4180
|
Button,
|
|
3652
4181
|
{
|
|
3653
4182
|
variant: inspecting ? "primary" : "secondary",
|
|
@@ -3656,12 +4185,12 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3656
4185
|
onClick: onInspectTokens,
|
|
3657
4186
|
className: "gap-xs rounded-xl",
|
|
3658
4187
|
children: [
|
|
3659
|
-
/* @__PURE__ */ (0,
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(InspectIcon, {}),
|
|
3660
4189
|
inspecting ? "Exit inspect" : "Inspect tokens"
|
|
3661
4190
|
]
|
|
3662
4191
|
}
|
|
3663
4192
|
),
|
|
3664
|
-
/* @__PURE__ */ (0,
|
|
4193
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3665
4194
|
Button,
|
|
3666
4195
|
{
|
|
3667
4196
|
variant: darkMode ? "primary" : "secondary",
|
|
@@ -3670,12 +4199,12 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3670
4199
|
onClick: onDarkToggle,
|
|
3671
4200
|
className: "gap-xs rounded-xl",
|
|
3672
4201
|
children: [
|
|
3673
|
-
/* @__PURE__ */ (0,
|
|
4202
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(MoonIcon2, {}),
|
|
3674
4203
|
"Dark"
|
|
3675
4204
|
]
|
|
3676
4205
|
}
|
|
3677
4206
|
),
|
|
3678
|
-
/* @__PURE__ */ (0,
|
|
4207
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3679
4208
|
Button,
|
|
3680
4209
|
{
|
|
3681
4210
|
variant: "secondary",
|
|
@@ -3683,12 +4212,12 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3683
4212
|
onClick: onFullscreen,
|
|
3684
4213
|
className: "gap-xs rounded-xl",
|
|
3685
4214
|
children: [
|
|
3686
|
-
/* @__PURE__ */ (0,
|
|
4215
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(FullscreenIcon, {}),
|
|
3687
4216
|
"Fullscreen"
|
|
3688
4217
|
]
|
|
3689
4218
|
}
|
|
3690
4219
|
),
|
|
3691
|
-
/* @__PURE__ */ (0,
|
|
4220
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3692
4221
|
Chip,
|
|
3693
4222
|
{
|
|
3694
4223
|
label: modelLabel ?? "",
|
|
@@ -3697,7 +4226,7 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3697
4226
|
className: "border-primary text-primary bg-canvas cursor-default select-none"
|
|
3698
4227
|
}
|
|
3699
4228
|
),
|
|
3700
|
-
/* @__PURE__ */ (0,
|
|
4229
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3701
4230
|
Chip,
|
|
3702
4231
|
{
|
|
3703
4232
|
label: kindLabel ?? "",
|
|
@@ -3706,7 +4235,7 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3706
4235
|
className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
|
|
3707
4236
|
}
|
|
3708
4237
|
),
|
|
3709
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3710
4239
|
Button,
|
|
3711
4240
|
{
|
|
3712
4241
|
variant: "ghost",
|
|
@@ -3714,7 +4243,7 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3714
4243
|
"aria-label": "More options",
|
|
3715
4244
|
onClick: onOverflow,
|
|
3716
4245
|
className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
|
|
3717
|
-
children: /* @__PURE__ */ (0,
|
|
4246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DotsIcon, {})
|
|
3718
4247
|
}
|
|
3719
4248
|
)
|
|
3720
4249
|
] })
|
|
@@ -3725,8 +4254,8 @@ var PreviewToolbar = import_react16.default.forwardRef(
|
|
|
3725
4254
|
PreviewToolbar.displayName = "PreviewToolbar";
|
|
3726
4255
|
|
|
3727
4256
|
// virtual-pkg:src/atoms/Typography/Typography.tsx
|
|
3728
|
-
var
|
|
3729
|
-
var
|
|
4257
|
+
var import_react19 = __toESM(require("react"));
|
|
4258
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3730
4259
|
var roleTagMap = {
|
|
3731
4260
|
"display-lg": "h1",
|
|
3732
4261
|
"heading-lg": "h2",
|
|
@@ -3758,7 +4287,7 @@ var colorClassMap = {
|
|
|
3758
4287
|
"semantic-warning": "text-semantic-warning",
|
|
3759
4288
|
"on-primary": "text-on-primary"
|
|
3760
4289
|
};
|
|
3761
|
-
var Typography =
|
|
4290
|
+
var Typography = import_react19.default.forwardRef(
|
|
3762
4291
|
({
|
|
3763
4292
|
role = "body-md",
|
|
3764
4293
|
color = "ink",
|
|
@@ -3777,7 +4306,7 @@ var Typography = import_react17.default.forwardRef(
|
|
|
3777
4306
|
uppercase ? "uppercase tracking-wide" : "",
|
|
3778
4307
|
className
|
|
3779
4308
|
].filter(Boolean).join(" ");
|
|
3780
|
-
return /* @__PURE__ */ (0,
|
|
4309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Tag, { ref, className: classes, ...rest, children });
|
|
3781
4310
|
}
|
|
3782
4311
|
);
|
|
3783
4312
|
Typography.displayName = "Typography";
|