@designa8/vibedesign-v6 1.10.4 → 1.10.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2937,6 +2937,7 @@ AppSidebar.displayName = "AppSidebar";
2937
2937
 
2938
2938
  // virtual-pkg:src/atoms/AppSidebarMobile/AppSidebarMobile.tsx
2939
2939
  import React11 from "react";
2940
+ import ReactDOM from "react-dom";
2940
2941
  import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
2941
2942
  var LogoIcon2 = () => /* @__PURE__ */ jsxs11("svg", { width: "28", height: "28", viewBox: "0 0 48 48", fill: "none", "aria-hidden": "true", children: [
2942
2943
  /* @__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)" } }),
@@ -3030,216 +3031,217 @@ var AppSidebarMobile = React11.forwardRef(
3030
3031
  }
3031
3032
  }, [open]);
3032
3033
  const showFooterRow = !!(userInitials || onInboxClick || onDarkModeToggle);
3033
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
3034
- /* @__PURE__ */ jsx11("div", { ref, className, children: /* @__PURE__ */ jsx11(
3035
- Button,
3036
- {
3037
- variant: "ghost",
3038
- size: "sm",
3039
- "aria-label": "Open navigation",
3040
- "aria-expanded": open,
3041
- onClick: () => setOpen(true),
3042
- className: "!p-xs !rounded-md",
3043
- children: /* @__PURE__ */ jsx11(HamburgerIcon, {})
3044
- }
3045
- ) }),
3046
- mounted && /* @__PURE__ */ jsxs11(
3047
- "div",
3048
- {
3049
- role: "dialog",
3050
- "aria-modal": "true",
3051
- "aria-label": "Navigation menu",
3052
- style: {
3053
- position: "fixed",
3054
- inset: 0,
3055
- zIndex: 9999
3056
- },
3057
- children: [
3058
- /* @__PURE__ */ jsx11(
3059
- "div",
3060
- {
3061
- "aria-hidden": "true",
3062
- onClick: () => setOpen(false),
3063
- style: {
3064
- position: "absolute",
3065
- inset: 0,
3066
- backgroundColor: "var(--color-scrim)",
3067
- opacity: visible ? 0.5 : 0,
3068
- transition: "opacity 0.25s ease"
3069
- }
3034
+ const overlayContent = mounted ? /* @__PURE__ */ jsxs11(
3035
+ "div",
3036
+ {
3037
+ role: "dialog",
3038
+ "aria-modal": "true",
3039
+ "aria-label": "Navigation menu",
3040
+ style: {
3041
+ position: "fixed",
3042
+ inset: 0,
3043
+ zIndex: 9999
3044
+ },
3045
+ children: [
3046
+ /* @__PURE__ */ jsx11(
3047
+ "div",
3048
+ {
3049
+ "aria-hidden": "true",
3050
+ onClick: () => setOpen(false),
3051
+ style: {
3052
+ position: "absolute",
3053
+ inset: 0,
3054
+ backgroundColor: "var(--color-scrim)",
3055
+ opacity: visible ? 0.5 : 0,
3056
+ transition: "opacity 0.25s ease"
3070
3057
  }
3071
- ),
3072
- /* @__PURE__ */ jsxs11(
3073
- "div",
3074
- {
3075
- style: {
3076
- position: "absolute",
3077
- top: 0,
3078
- left: 0,
3079
- bottom: 0,
3080
- width: "min(280px, 85vw)",
3081
- display: "flex",
3082
- flexDirection: "column",
3083
- backgroundColor: "var(--color-canvas)",
3084
- borderRight: "1px solid var(--color-hairline)",
3085
- boxShadow: "var(--shadow-lg)",
3086
- transform: visible ? "translateX(0)" : "translateX(-100%)",
3087
- transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
3088
- overflowY: "auto",
3089
- overflowX: "hidden"
3090
- },
3091
- children: [
3092
- /* @__PURE__ */ jsxs11(
3093
- "div",
3094
- {
3095
- className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
3096
- style: { backgroundColor: "var(--color-canvas)" },
3097
- children: [
3098
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-sm", children: [
3099
- /* @__PURE__ */ jsx11(LogoIcon2, {}),
3100
- /* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
3058
+ }
3059
+ ),
3060
+ /* @__PURE__ */ jsxs11(
3061
+ "div",
3062
+ {
3063
+ style: {
3064
+ position: "absolute",
3065
+ top: 0,
3066
+ left: 0,
3067
+ bottom: 0,
3068
+ width: "min(280px, 85vw)",
3069
+ display: "flex",
3070
+ flexDirection: "column",
3071
+ backgroundColor: "var(--color-canvas)",
3072
+ borderRight: "1px solid var(--color-hairline)",
3073
+ boxShadow: "var(--shadow-lg)",
3074
+ transform: visible ? "translateX(0)" : "translateX(-100%)",
3075
+ transition: "transform 0.28s cubic-bezier(0.32,0,0.15,1)",
3076
+ overflowY: "auto",
3077
+ overflowX: "hidden"
3078
+ },
3079
+ children: [
3080
+ /* @__PURE__ */ jsxs11(
3081
+ "div",
3082
+ {
3083
+ className: "flex items-center justify-between px-md pt-md pb-sm flex-shrink-0",
3084
+ style: { backgroundColor: "var(--color-canvas)" },
3085
+ children: [
3086
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-sm", children: [
3087
+ /* @__PURE__ */ jsx11(LogoIcon2, {}),
3088
+ /* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink truncate", children: brandName })
3089
+ ] }),
3090
+ /* @__PURE__ */ jsx11(
3091
+ Button,
3092
+ {
3093
+ variant: "ghost",
3094
+ size: "sm",
3095
+ "aria-label": "Close navigation",
3096
+ onClick: () => setOpen(false),
3097
+ className: "!p-xs !rounded-md",
3098
+ children: /* @__PURE__ */ jsx11(CloseIcon, {})
3099
+ }
3100
+ )
3101
+ ]
3102
+ }
3103
+ ),
3104
+ workspaceName && /* @__PURE__ */ jsx11(
3105
+ "div",
3106
+ {
3107
+ className: "px-sm pb-sm",
3108
+ style: { backgroundColor: "var(--color-canvas)" },
3109
+ children: /* @__PURE__ */ jsx11(
3110
+ WorkspaceMenu,
3111
+ {
3112
+ workspaceName,
3113
+ initials: workspaceName.charAt(0).toUpperCase()
3114
+ }
3115
+ )
3116
+ }
3117
+ ),
3118
+ /* @__PURE__ */ jsx11(
3119
+ "div",
3120
+ {
3121
+ className: "flex-1 overflow-y-auto px-sm pb-sm",
3122
+ style: { backgroundColor: "var(--color-canvas)" },
3123
+ children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
3124
+ const isActive = activeId === entry.id;
3125
+ const hasSubItems = !!entry.subItems?.length;
3126
+ const isExpanded = expandedIds.has(entry.id);
3127
+ const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
3128
+ id: sub.id,
3129
+ label: sub.label,
3130
+ onDelete: sub.onDelete,
3131
+ onClick: onSubSelect ? (_id) => {
3132
+ onSubSelect(_id);
3133
+ setOpen(false);
3134
+ } : void 0
3135
+ })) : void 0;
3136
+ return /* @__PURE__ */ jsx11(
3137
+ NavItem,
3138
+ {
3139
+ icon: entry.icon,
3140
+ label: entry.label,
3141
+ active: isActive,
3142
+ subItems: mappedSubItems,
3143
+ expanded: hasSubItems ? isExpanded : void 0,
3144
+ onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
3145
+ onClick: (e) => {
3146
+ onSelect?.(entry.id);
3147
+ if (!hasSubItems) setOpen(false);
3148
+ else e.preventDefault();
3149
+ }
3150
+ },
3151
+ entry.id
3152
+ );
3153
+ }) })
3154
+ }
3155
+ ),
3156
+ /* @__PURE__ */ jsxs11(
3157
+ "div",
3158
+ {
3159
+ className: "flex-shrink-0 px-sm pb-lg space-y-sm",
3160
+ style: { backgroundColor: "var(--color-canvas)" },
3161
+ children: [
3162
+ showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
3163
+ /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
3164
+ /* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
3165
+ /* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
3101
3166
  ] }),
3102
3167
  /* @__PURE__ */ jsx11(
3103
- Button,
3168
+ "span",
3104
3169
  {
3105
- variant: "ghost",
3106
- size: "sm",
3107
- "aria-label": "Close navigation",
3108
- onClick: () => setOpen(false),
3109
- className: "!p-xs !rounded-md",
3110
- children: /* @__PURE__ */ jsx11(CloseIcon, {})
3170
+ className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
3171
+ style: { width: "36px", height: "36px" },
3172
+ children: /* @__PURE__ */ jsx11(GiftIcon2, {})
3111
3173
  }
3112
3174
  )
3113
- ]
3114
- }
3115
- ),
3116
- workspaceName && /* @__PURE__ */ jsx11(
3117
- "div",
3118
- {
3119
- className: "px-sm pb-sm",
3120
- style: { backgroundColor: "var(--color-canvas)" },
3121
- children: /* @__PURE__ */ jsx11(
3122
- WorkspaceMenu,
3123
- {
3124
- workspaceName,
3125
- initials: workspaceName.charAt(0).toUpperCase()
3126
- }
3127
- )
3128
- }
3129
- ),
3130
- /* @__PURE__ */ jsx11(
3131
- "div",
3132
- {
3133
- className: "flex-1 overflow-y-auto px-sm pb-sm",
3134
- style: { backgroundColor: "var(--color-canvas)" },
3135
- children: /* @__PURE__ */ jsx11("ul", { className: "space-y-xxs", role: "list", children: entries.map((entry) => {
3136
- const isActive = activeId === entry.id;
3137
- const hasSubItems = !!entry.subItems?.length;
3138
- const isExpanded = expandedIds.has(entry.id);
3139
- const mappedSubItems = hasSubItems ? entry.subItems.map((sub) => ({
3140
- id: sub.id,
3141
- label: sub.label,
3142
- onDelete: sub.onDelete,
3143
- onClick: onSubSelect ? (_id) => {
3144
- onSubSelect(_id);
3145
- setOpen(false);
3146
- } : void 0
3147
- })) : void 0;
3148
- return /* @__PURE__ */ jsx11(
3149
- NavItem,
3175
+ ] }),
3176
+ showUpgradeCard && /* @__PURE__ */ jsx11(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
3177
+ showFooterRow && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
3178
+ userInitials && /* @__PURE__ */ jsx11(
3179
+ "span",
3150
3180
  {
3151
- icon: entry.icon,
3152
- label: entry.label,
3153
- active: isActive,
3154
- subItems: mappedSubItems,
3155
- expanded: hasSubItems ? isExpanded : void 0,
3156
- onExpandToggle: hasSubItems ? () => toggleExpanded(entry.id) : void 0,
3157
- onClick: (e) => {
3158
- onSelect?.(entry.id);
3159
- if (!hasSubItems) setOpen(false);
3160
- else e.preventDefault();
3161
- }
3162
- },
3163
- entry.id
3164
- );
3165
- }) })
3166
- }
3167
- ),
3168
- /* @__PURE__ */ jsxs11(
3169
- "div",
3170
- {
3171
- className: "flex-shrink-0 px-sm pb-lg space-y-sm",
3172
- style: { backgroundColor: "var(--color-canvas)" },
3173
- children: [
3174
- showShareCard && /* @__PURE__ */ jsxs11("div", { className: "rounded-xl border border-hairline bg-surface px-md py-sm flex items-center justify-between gap-md", children: [
3175
- /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-xxs min-w-0", children: [
3176
- /* @__PURE__ */ jsx11("span", { className: "text-body-sm font-weight-heading-sm text-ink", children: "Share & earn" }),
3177
- /* @__PURE__ */ jsx11("span", { className: "text-caption text-muted", children: "100 credits per paid referral" })
3178
- ] }),
3179
- /* @__PURE__ */ jsx11(
3180
- "span",
3181
+ 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",
3182
+ style: { width: "36px", height: "36px" },
3183
+ "aria-label": "User profile",
3184
+ children: userInitials
3185
+ }
3186
+ ),
3187
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-xs ml-auto", children: [
3188
+ onDarkModeToggle && /* @__PURE__ */ jsx11(
3189
+ Button,
3181
3190
  {
3182
- className: "flex-shrink-0 flex items-center justify-center rounded-full bg-surface-strong",
3183
- style: { width: "36px", height: "36px" },
3184
- children: /* @__PURE__ */ jsx11(GiftIcon2, {})
3191
+ variant: "ghost",
3192
+ size: "sm",
3193
+ "aria-label": darkMode ? "Switch to light mode" : "Switch to dark mode",
3194
+ onClick: onDarkModeToggle,
3195
+ className: "!p-xs !rounded-sm",
3196
+ children: darkMode ? /* @__PURE__ */ jsx11(SunIcon3, {}) : /* @__PURE__ */ jsx11(MoonIcon3, {})
3185
3197
  }
3186
- )
3187
- ] }),
3188
- showUpgradeCard && /* @__PURE__ */ jsx11(UpgradeCard, { eyebrow: "", title: "Upgrade to Pro", subtitle: "Unlock more features" }),
3189
- showFooterRow && /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between pt-xs", children: [
3190
- userInitials && /* @__PURE__ */ jsx11(
3191
- "span",
3198
+ ),
3199
+ onInboxClick && /* @__PURE__ */ jsxs11(
3200
+ Button,
3192
3201
  {
3193
- 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",
3194
- style: { width: "36px", height: "36px" },
3195
- "aria-label": "User profile",
3196
- children: userInitials
3202
+ variant: "ghost",
3203
+ size: "sm",
3204
+ "aria-label": "Inbox",
3205
+ onClick: onInboxClick,
3206
+ className: "!p-xs !rounded-sm relative",
3207
+ children: [
3208
+ /* @__PURE__ */ jsx11(InboxIcon2, {}),
3209
+ /* @__PURE__ */ jsx11(
3210
+ "span",
3211
+ {
3212
+ className: "absolute rounded-full bg-semantic-error",
3213
+ "aria-label": "New notifications",
3214
+ style: { width: "8px", height: "8px", top: "4px", right: "4px" }
3215
+ }
3216
+ )
3217
+ ]
3197
3218
  }
3198
- ),
3199
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-xs ml-auto", children: [
3200
- onDarkModeToggle && /* @__PURE__ */ jsx11(
3201
- Button,
3202
- {
3203
- variant: "ghost",
3204
- size: "sm",
3205
- "aria-label": darkMode ? "Switch to light mode" : "Switch to dark mode",
3206
- onClick: onDarkModeToggle,
3207
- className: "!p-xs !rounded-sm",
3208
- children: darkMode ? /* @__PURE__ */ jsx11(SunIcon3, {}) : /* @__PURE__ */ jsx11(MoonIcon3, {})
3209
- }
3210
- ),
3211
- onInboxClick && /* @__PURE__ */ jsxs11(
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__ */ jsx11(InboxIcon2, {}),
3221
- /* @__PURE__ */ jsx11(
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
- ] })
3219
+ )
3233
3220
  ] })
3234
- ]
3235
- }
3236
- )
3237
- ]
3238
- }
3239
- )
3240
- ]
3221
+ ] })
3222
+ ]
3223
+ }
3224
+ )
3225
+ ]
3226
+ }
3227
+ )
3228
+ ]
3229
+ }
3230
+ ) : null;
3231
+ return /* @__PURE__ */ jsxs11(Fragment2, { children: [
3232
+ /* @__PURE__ */ jsx11("div", { ref, className, children: /* @__PURE__ */ jsx11(
3233
+ Button,
3234
+ {
3235
+ variant: "ghost",
3236
+ size: "sm",
3237
+ "aria-label": "Open navigation",
3238
+ "aria-expanded": open,
3239
+ onClick: () => setOpen(true),
3240
+ className: "!p-xs !rounded-md",
3241
+ children: /* @__PURE__ */ jsx11(HamburgerIcon, {})
3241
3242
  }
3242
- )
3243
+ ) }),
3244
+ typeof window !== "undefined" ? ReactDOM.createPortal(overlayContent, document.body) : overlayContent
3243
3245
  ] });
3244
3246
  }
3245
3247
  );
@@ -3735,6 +3737,12 @@ var SuggestionChip = ({ label, onClick }) => /* @__PURE__ */ jsx16(
3735
3737
  children: label
3736
3738
  }
3737
3739
  );
3740
+ var DEFAULT_MODELS = [
3741
+ { id: "claude-sonnet", name: "Claude Sonnet 4.6" },
3742
+ { id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
3743
+ { id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
3744
+ ];
3745
+ var DEFAULT_SELECTED_MODEL_ID = "claude-sonnet";
3738
3746
  var NAV_ENTRIES = [
3739
3747
  { id: "home", label: "Home", icon: /* @__PURE__ */ jsx16(HomeIcon2, {}) },
3740
3748
  {
@@ -3778,6 +3786,9 @@ var HomePageTemplate = React16.forwardRef(
3778
3786
  onSubSelect,
3779
3787
  darkMode,
3780
3788
  onDarkModeToggle,
3789
+ models,
3790
+ selectedModelId,
3791
+ onModelChange,
3781
3792
  className,
3782
3793
  style
3783
3794
  }, ref) => {
@@ -3786,6 +3797,8 @@ var HomePageTemplate = React16.forwardRef(
3786
3797
  const resolvedActiveId = activeIdProp !== void 0 ? activeIdProp : internalActiveId;
3787
3798
  const resolvedEntries = navEntries !== void 0 ? navEntries : NAV_ENTRIES;
3788
3799
  const textValue = promptValue !== void 0 ? promptValue : internalPrompt;
3800
+ const resolvedModels = models !== void 0 ? models : DEFAULT_MODELS;
3801
+ const resolvedSelectedModelId = selectedModelId !== void 0 ? selectedModelId : DEFAULT_SELECTED_MODEL_ID;
3789
3802
  const handleChange = (val) => {
3790
3803
  if (promptValue === void 0) setInternalPrompt(val);
3791
3804
  onPromptChange?.(val);
@@ -3931,12 +3944,9 @@ var HomePageTemplate = React16.forwardRef(
3931
3944
  onSend: handleSend,
3932
3945
  onMic: () => {
3933
3946
  },
3934
- models: [
3935
- { id: "claude-sonnet", name: "Claude Sonnet 4.6" },
3936
- { id: "claude-haiku", name: "Claude Haiku 3.5", tier: "Fast" },
3937
- { id: "claude-opus", name: "Claude Opus 4", tier: "Pro" }
3938
- ],
3939
- selectedModelId: "claude-sonnet"
3947
+ models: resolvedModels,
3948
+ selectedModelId: resolvedSelectedModelId,
3949
+ onModelChange
3940
3950
  }
3941
3951
  ) }),
3942
3952
  /* @__PURE__ */ jsx16(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",