@designa8/vibedesign-v6 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Complete design system \"Plasma Design System\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -29,7 +29,8 @@ export interface NavEntry {
29
29
  alwaysExpanded?: boolean;
30
30
  }
31
31
 
32
- export interface AppSidebarProps extends React.HTMLAttributes<HTMLElement> {
32
+ export interface AppSidebarProps
33
+ extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
33
34
  /**
34
35
  * Brand / product name displayed in the header when the sidebar is expanded.
35
36
  * If omitted the default logo icon is shown without a title.
@@ -1,2 +1,2 @@
1
1
  export { AppSidebar } from "./AppSidebar";
2
- export type { AppSidebarProps } from "./AppSidebar";
2
+ export type { AppSidebarProps, NavEntry, NavSubItem } from "./AppSidebar";
@@ -230,10 +230,7 @@ export const AppSidebarMobile = React.forwardRef<HTMLElement, AppSidebarMobilePr
230
230
  <div className="flex flex-1 flex-col px-sm py-sm space-y-sm">
231
231
  {/* Workspace switcher */}
232
232
  {workspaceName && (
233
- <WorkspaceMenu
234
- workspaceName={workspaceName}
235
- initials={workspaceName.charAt(0).toUpperCase()}
236
- />
233
+ <WorkspaceMenu workspaceName={workspaceName} />
237
234
  )}
238
235
 
239
236
  {/* Nav entries */}
@@ -76,7 +76,12 @@ const defaultLines: ExportDesignMdLine[] = [
76
76
 
77
77
  const SOURCE_INFO: Record<
78
78
  ExportDesignMdSource,
79
- { icon: string; title: string; description: string; helper: string }
79
+ {
80
+ icon: React.ComponentProps<typeof Icon>["name"];
81
+ title: string;
82
+ description: string;
83
+ helper: string;
84
+ }
80
85
  > = {
81
86
  production: {
82
87
  icon: "cloud",
@@ -475,7 +475,7 @@ const SuggestionMarquee: React.FC<SuggestionMarqueeProps> = ({ suggestions, onCh
475
475
  scrubBy(-delta);
476
476
  };
477
477
 
478
- const renderRow = (items: string[], trackRef: React.RefObject<HTMLDivElement>) => (
478
+ const renderRow = (items: string[], trackRef: React.RefObject<HTMLDivElement | null>) => (
479
479
  <div
480
480
  ref={trackRef}
481
481
  className="flex w-max gap-sm px-md hpt-marquee-track"
@@ -259,7 +259,7 @@ export const Menu = React.forwardRef<HTMLDivElement, MenuProps>(
259
259
  >
260
260
  {item.icon && (
261
261
  <Icon
262
- name={item.icon}
262
+ name={item.icon as React.ComponentProps<typeof Icon>["name"]}
263
263
  className={[
264
264
  "size-4 shrink-0",
265
265
  item.disabled ? "text-muted-soft" : item.destructive ? "text-[var(--color-semantic-error)]" : "text-muted",
@@ -40,7 +40,7 @@ export interface DrawerUpgrade {
40
40
  }
41
41
 
42
42
  export interface MobileActionsDrawerProps
43
- extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
43
+ extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onSelect"> {
44
44
  open: boolean;
45
45
  onOpenChange: (open: boolean) => void;
46
46
  projectName?: string;
@@ -16,7 +16,7 @@ export interface PreviewDockProps {
16
16
  }
17
17
 
18
18
  interface DockActionProps {
19
- icon: string;
19
+ icon: React.ComponentProps<typeof Icon>["name"];
20
20
  label: string;
21
21
  active: boolean;
22
22
  onClick?: () => void;
@@ -116,7 +116,7 @@ export interface TemplateHeroProps extends React.HTMLAttributes<HTMLDivElement>
116
116
  * - a string — renders `Icon` with that name (e.g. "grid") instead.
117
117
  * - `null` — renders the primary CTA with no leading icon, label only.
118
118
  */
119
- buyIcon?: string | null;
119
+ buyIcon?: React.ComponentProps<typeof Icon>["name"] | null;
120
120
  /** Secondary CTA label */
121
121
  previewLabel?: string;
122
122
  /**
@@ -17,7 +17,7 @@ export interface UpgradeCardProps
17
17
  /** Muted supporting text beneath the title */
18
18
  subtitle?: string;
19
19
  /** Icon rendered inside the tinted badge */
20
- iconName?: string;
20
+ iconName?: React.ComponentProps<typeof Icon>["name"];
21
21
  /** When provided, renders the credits-left block under the header row */
22
22
  credits?: UpgradeCardCredits;
23
23
  /** Fraction of total at or below which the meter switches to the warning recipe. Default 0.1 */