@designa8/vibedesign-v6 1.12.12 → 1.12.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @plasma/vibedesign-v6
2
2
 
3
- Generated design system, version **1.12.12**.
3
+ Generated design system, version **1.12.14**.
4
4
 
5
5
  ## Local install (npm link)
6
6
 
package/dist/index.cjs CHANGED
@@ -1974,14 +1974,15 @@ var MobileTopBar = ({
1974
1974
  navbarProps,
1975
1975
  onRenameProject,
1976
1976
  onBackToProjects,
1977
- onHome
1977
+ onHome,
1978
+ hideProjectName
1978
1979
  }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1979
1980
  "div",
1980
1981
  {
1981
1982
  className: "w-full flex flex-shrink-0 items-center px-sm gap-sm border-b border-hairline-soft bg-canvas",
1982
1983
  style: { height: MOBILE_TOPBAR_HEIGHT },
1983
1984
  children: activePanel === "chat" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1984
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1985
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1985
1986
  AvatarNav,
1986
1987
  {
1987
1988
  initials: avatarInitials,
@@ -1989,7 +1990,7 @@ var MobileTopBar = ({
1989
1990
  onHome
1990
1991
  }
1991
1992
  ),
1992
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1993
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1993
1994
  WorkspaceMenu,
1994
1995
  {
1995
1996
  workspaceName: projectName,
@@ -1998,7 +1999,8 @@ var MobileTopBar = ({
1998
1999
  }
1999
2000
  ) })
2000
2001
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
2001
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-body-md font-weight-heading-sm text-ink truncate block", children: projectName }) }),
2002
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-body-md font-weight-heading-sm text-ink truncate block", children: projectName }) }),
2003
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", style: { flexGrow: hideProjectName ? 1 : 0 } }),
2002
2004
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-shrink-0", style: { minWidth: "fit-content" }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2003
2005
  TopNavbar,
2004
2006
  {
@@ -2024,6 +2026,7 @@ var AppLayout = import_react7.default.forwardRef(
2024
2026
  onHome,
2025
2027
  avatarInitials = "A",
2026
2028
  defaultMobilePanel = "chat",
2029
+ hideProjectName = false,
2027
2030
  className
2028
2031
  }, ref) => {
2029
2032
  const isMobile = useIsMobile();
@@ -2103,7 +2106,8 @@ var AppLayout = import_react7.default.forwardRef(
2103
2106
  navbarProps,
2104
2107
  onRenameProject,
2105
2108
  onBackToProjects,
2106
- onHome
2109
+ onHome,
2110
+ hideProjectName
2107
2111
  }
2108
2112
  ),
2109
2113
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 min-h-0 overflow-hidden relative", children: [
@@ -2183,7 +2187,7 @@ var AppLayout = import_react7.default.forwardRef(
2183
2187
  pointerEvents: chatCollapsed ? "none" : "auto"
2184
2188
  },
2185
2189
  children: [
2186
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2190
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2187
2191
  AvatarNav,
2188
2192
  {
2189
2193
  initials: avatarInitials,
@@ -2191,7 +2195,7 @@ var AppLayout = import_react7.default.forwardRef(
2191
2195
  onHome
2192
2196
  }
2193
2197
  ),
2194
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", style: { position: "relative", zIndex: 1e3 }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2198
+ !hideProjectName && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 min-w-0", style: { position: "relative", zIndex: 1e3 }, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2195
2199
  WorkspaceMenu,
2196
2200
  {
2197
2201
  workspaceName: projectName,
package/dist/index.js CHANGED
@@ -1921,14 +1921,15 @@ var MobileTopBar = ({
1921
1921
  navbarProps,
1922
1922
  onRenameProject,
1923
1923
  onBackToProjects,
1924
- onHome
1924
+ onHome,
1925
+ hideProjectName
1925
1926
  }) => /* @__PURE__ */ jsx7(
1926
1927
  "div",
1927
1928
  {
1928
1929
  className: "w-full flex flex-shrink-0 items-center px-sm gap-sm border-b border-hairline-soft bg-canvas",
1929
1930
  style: { height: MOBILE_TOPBAR_HEIGHT },
1930
1931
  children: activePanel === "chat" ? /* @__PURE__ */ jsxs7(Fragment, { children: [
1931
- /* @__PURE__ */ jsx7(
1932
+ !hideProjectName && /* @__PURE__ */ jsx7(
1932
1933
  AvatarNav,
1933
1934
  {
1934
1935
  initials: avatarInitials,
@@ -1936,7 +1937,7 @@ var MobileTopBar = ({
1936
1937
  onHome
1937
1938
  }
1938
1939
  ),
1939
- /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx7(
1940
+ !hideProjectName && /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx7(
1940
1941
  WorkspaceMenu,
1941
1942
  {
1942
1943
  workspaceName: projectName,
@@ -1945,7 +1946,8 @@ var MobileTopBar = ({
1945
1946
  }
1946
1947
  ) })
1947
1948
  ] }) : /* @__PURE__ */ jsxs7(Fragment, { children: [
1948
- /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx7("span", { className: "text-body-md font-weight-heading-sm text-ink truncate block", children: projectName }) }),
1949
+ !hideProjectName && /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx7("span", { className: "text-body-md font-weight-heading-sm text-ink truncate block", children: projectName }) }),
1950
+ /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", style: { flexGrow: hideProjectName ? 1 : 0 } }),
1949
1951
  /* @__PURE__ */ jsx7("div", { className: "flex-shrink-0", style: { minWidth: "fit-content" }, children: /* @__PURE__ */ jsx7(
1950
1952
  TopNavbar,
1951
1953
  {
@@ -1971,6 +1973,7 @@ var AppLayout = React7.forwardRef(
1971
1973
  onHome,
1972
1974
  avatarInitials = "A",
1973
1975
  defaultMobilePanel = "chat",
1976
+ hideProjectName = false,
1974
1977
  className
1975
1978
  }, ref) => {
1976
1979
  const isMobile = useIsMobile();
@@ -2050,7 +2053,8 @@ var AppLayout = React7.forwardRef(
2050
2053
  navbarProps,
2051
2054
  onRenameProject,
2052
2055
  onBackToProjects,
2053
- onHome
2056
+ onHome,
2057
+ hideProjectName
2054
2058
  }
2055
2059
  ),
2056
2060
  /* @__PURE__ */ jsxs7("div", { className: "flex-1 min-h-0 overflow-hidden relative", children: [
@@ -2130,7 +2134,7 @@ var AppLayout = React7.forwardRef(
2130
2134
  pointerEvents: chatCollapsed ? "none" : "auto"
2131
2135
  },
2132
2136
  children: [
2133
- /* @__PURE__ */ jsx7(
2137
+ !hideProjectName && /* @__PURE__ */ jsx7(
2134
2138
  AvatarNav,
2135
2139
  {
2136
2140
  initials: avatarInitials,
@@ -2138,7 +2142,7 @@ var AppLayout = React7.forwardRef(
2138
2142
  onHome
2139
2143
  }
2140
2144
  ),
2141
- /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", style: { position: "relative", zIndex: 1e3 }, children: /* @__PURE__ */ jsx7(
2145
+ !hideProjectName && /* @__PURE__ */ jsx7("div", { className: "flex-1 min-w-0", style: { position: "relative", zIndex: 1e3 }, children: /* @__PURE__ */ jsx7(
2142
2146
  WorkspaceMenu,
2143
2147
  {
2144
2148
  workspaceName: projectName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "1.12.12",
3
+ "version": "1.12.14",
4
4
  "description": "Design system \"Plasma Design System\" generated by atom-server.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -39,6 +39,8 @@ export interface AppLayoutProps {
39
39
  avatarInitials?: string;
40
40
  /** Mobile: which panel is shown by default. Defaults to "chat". */
41
41
  defaultMobilePanel?: MobilePanel;
42
+ /** When true, hides the entire left-hand identity/navigation cluster in the top bar — the avatar nav (avatar initials, chevron, and its dropdown menu) and the project/workspace name control (desktop WorkspaceMenu and mobile project name) — while keeping the rest of the top bar (tabs, actions) visible. Useful for a distraction-free fullscreen preview overlay. Defaults to false. */
43
+ hideProjectName?: boolean;
42
44
  className?: string;
43
45
  }
44
46
 
@@ -325,6 +327,7 @@ interface MobileTopBarProps {
325
327
  onRenameProject?: () => void;
326
328
  onBackToProjects?: () => void;
327
329
  onHome?: () => void;
330
+ hideProjectName?: boolean;
328
331
  }
329
332
 
330
333
  const MobileTopBar: React.FC<MobileTopBarProps> = ({
@@ -335,6 +338,7 @@ const MobileTopBar: React.FC<MobileTopBarProps> = ({
335
338
  onRenameProject,
336
339
  onBackToProjects,
337
340
  onHome,
341
+ hideProjectName,
338
342
  }) => (
339
343
  <div
340
344
  className="w-full flex flex-shrink-0 items-center px-sm gap-sm border-b border-hairline-soft bg-canvas"
@@ -342,26 +346,33 @@ const MobileTopBar: React.FC<MobileTopBarProps> = ({
342
346
  >
343
347
  {activePanel === "chat" ? (
344
348
  <>
345
- <AvatarNav
346
- initials={avatarInitials}
347
- onBackToProjects={onBackToProjects}
348
- onHome={onHome}
349
- />
350
- <div className="flex-1 min-w-0">
351
- <WorkspaceMenu
352
- workspaceName={projectName}
353
- onRename={onRenameProject}
354
- className="w-full"
349
+ {!hideProjectName && (
350
+ <AvatarNav
351
+ initials={avatarInitials}
352
+ onBackToProjects={onBackToProjects}
353
+ onHome={onHome}
355
354
  />
356
- </div>
355
+ )}
356
+ {!hideProjectName && (
357
+ <div className="flex-1 min-w-0">
358
+ <WorkspaceMenu
359
+ workspaceName={projectName}
360
+ onRename={onRenameProject}
361
+ className="w-full"
362
+ />
363
+ </div>
364
+ )}
357
365
  </>
358
366
  ) : (
359
367
  <>
360
- <div className="flex-1 min-w-0">
361
- <span className="text-body-md font-weight-heading-sm text-ink truncate block">
362
- {projectName}
363
- </span>
364
- </div>
368
+ {!hideProjectName && (
369
+ <div className="flex-1 min-w-0">
370
+ <span className="text-body-md font-weight-heading-sm text-ink truncate block">
371
+ {projectName}
372
+ </span>
373
+ </div>
374
+ )}
375
+ <div className="flex-1 min-w-0" style={{ flexGrow: hideProjectName ? 1 : 0 }} />
365
376
  <div className="flex-shrink-0" style={{ minWidth: "fit-content" }}>
366
377
  <TopNavbar
367
378
  {...navbarProps}
@@ -391,6 +402,7 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
391
402
  onHome,
392
403
  avatarInitials = "A",
393
404
  defaultMobilePanel = "chat",
405
+ hideProjectName = false,
394
406
  className,
395
407
  },
396
408
  ref,
@@ -489,6 +501,7 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
489
501
  onRenameProject={onRenameProject}
490
502
  onBackToProjects={onBackToProjects}
491
503
  onHome={onHome}
504
+ hideProjectName={hideProjectName}
492
505
  />
493
506
 
494
507
  <div className="flex-1 min-h-0 overflow-hidden relative">
@@ -566,18 +579,22 @@ export const AppLayout = React.forwardRef<HTMLDivElement, AppLayoutProps>(
566
579
  pointerEvents: chatCollapsed ? "none" : "auto",
567
580
  }}
568
581
  >
569
- <AvatarNav
570
- initials={avatarInitials}
571
- onBackToProjects={onBackToProjects}
572
- onHome={onHome}
573
- />
574
- <div className="flex-1 min-w-0" style={{ position: "relative", zIndex: 1000 }}>
575
- <WorkspaceMenu
576
- workspaceName={projectName}
577
- onRename={onRenameProject}
578
- className="w-full"
582
+ {!hideProjectName && (
583
+ <AvatarNav
584
+ initials={avatarInitials}
585
+ onBackToProjects={onBackToProjects}
586
+ onHome={onHome}
579
587
  />
580
- </div>
588
+ )}
589
+ {!hideProjectName && (
590
+ <div className="flex-1 min-w-0" style={{ position: "relative", zIndex: 1000 }}>
591
+ <WorkspaceMenu
592
+ workspaceName={projectName}
593
+ onRename={onRenameProject}
594
+ className="w-full"
595
+ />
596
+ </div>
597
+ )}
581
598
  </div>
582
599
  </div>
583
600