@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 +1 -1
- package/src/atoms/AppSidebar/AppSidebar.tsx +2 -1
- package/src/atoms/AppSidebar/index.ts +1 -1
- package/src/atoms/AppSidebarMobile/AppSidebarMobile.tsx +1 -4
- package/src/atoms/ExportDesignMdModal/ExportDesignMdModal.tsx +6 -1
- package/src/atoms/HomePageTemplate/HomePageTemplate.tsx +1 -1
- package/src/atoms/Menu/Menu.tsx +1 -1
- package/src/atoms/MobileActionsDrawer/MobileActionsDrawer.tsx +1 -1
- package/src/atoms/PreviewDock/PreviewDock.tsx +1 -1
- package/src/atoms/TemplateHero/TemplateHero.tsx +1 -1
- package/src/atoms/UpgradeCard/UpgradeCard.tsx +1 -1
package/package.json
CHANGED
|
@@ -29,7 +29,8 @@ export interface NavEntry {
|
|
|
29
29
|
alwaysExpanded?: boolean;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export interface AppSidebarProps
|
|
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
|
-
{
|
|
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"
|
package/src/atoms/Menu/Menu.tsx
CHANGED
|
@@ -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;
|
|
@@ -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?:
|
|
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?:
|
|
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 */
|