@designa8/vibedesign-v6 2.1.3 → 2.2.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/dist/index.js CHANGED
@@ -13071,16 +13071,292 @@ var Toast = React55.forwardRef(
13071
13071
  );
13072
13072
  Toast.displayName = "Toast";
13073
13073
 
13074
+ // virtual-pkg:src/atoms/ToastStack/ToastStack.tsx
13075
+ import * as React56 from "react";
13076
+ import { Fragment as Fragment16, jsx as jsx56, jsxs as jsxs54 } from "react/jsx-runtime";
13077
+ var TONE = {
13078
+ success: {
13079
+ icon: "check-checkmark",
13080
+ tile: "bg-semantic-success-soft",
13081
+ glyph: "text-semantic-success",
13082
+ rail: "bg-semantic-success",
13083
+ border: "border-hairline"
13084
+ },
13085
+ error: {
13086
+ icon: "circle-alert",
13087
+ tile: "bg-semantic-error-soft",
13088
+ glyph: "text-semantic-error",
13089
+ rail: "bg-semantic-error",
13090
+ border: "border-semantic-error-soft"
13091
+ },
13092
+ info: {
13093
+ icon: "info",
13094
+ tile: "bg-semantic-info-soft",
13095
+ glyph: "text-semantic-info",
13096
+ rail: "bg-semantic-info",
13097
+ border: "border-hairline"
13098
+ },
13099
+ warning: {
13100
+ icon: "triangle-alert",
13101
+ tile: "bg-semantic-warning-soft",
13102
+ glyph: "text-semantic-warning",
13103
+ rail: "bg-semantic-warning",
13104
+ border: "border-hairline"
13105
+ }
13106
+ };
13107
+ var CONTROL = "rounded-sm font-weight-body-sm transition duration-150 ease-out";
13108
+ var ToastCard = ({ toast, state, onDismiss }) => {
13109
+ const tone = toast.tone ?? "info";
13110
+ const theme = TONE[tone];
13111
+ const duration = toast.duration ?? (tone === "error" ? 0 : 6e3);
13112
+ const [paused, setPaused] = React56.useState(false);
13113
+ const [entered, setEntered] = React56.useState(false);
13114
+ const remaining = React56.useRef(duration);
13115
+ const startedAt = React56.useRef(0);
13116
+ const dismissRef = React56.useRef(onDismiss);
13117
+ dismissRef.current = onDismiss;
13118
+ React56.useEffect(() => {
13119
+ const frame = window.requestAnimationFrame(() => setEntered(true));
13120
+ return () => window.cancelAnimationFrame(frame);
13121
+ }, []);
13122
+ const open = state === "open" && entered;
13123
+ React56.useEffect(() => {
13124
+ if (duration <= 0 || paused || state !== "open") return;
13125
+ startedAt.current = Date.now();
13126
+ const timer = window.setTimeout(
13127
+ () => dismissRef.current(toast.id),
13128
+ Math.max(remaining.current, 0)
13129
+ );
13130
+ return () => {
13131
+ window.clearTimeout(timer);
13132
+ remaining.current = Math.max(
13133
+ remaining.current - (Date.now() - startedAt.current),
13134
+ 0
13135
+ );
13136
+ };
13137
+ }, [duration, paused, state, toast.id]);
13138
+ return /* @__PURE__ */ jsx56(
13139
+ "div",
13140
+ {
13141
+ "data-state": open ? "open" : "closed",
13142
+ style: { zIndex: open ? "var(--z-toast, 1300)" : void 0 },
13143
+ className: "relative grid w-full transition-[grid-template-rows,opacity,transform] duration-200 ease-out data-[state=open]:grid-rows-[1fr] data-[state=open]:translate-y-0 data-[state=open]:scale-100 data-[state=open]:opacity-100 data-[state=closed]:pointer-events-none data-[state=closed]:grid-rows-[0fr] data-[state=closed]:translate-y-2 data-[state=closed]:scale-95 data-[state=closed]:opacity-0",
13144
+ children: /* @__PURE__ */ jsx56(
13145
+ "div",
13146
+ {
13147
+ "data-state": open ? "open" : "closed",
13148
+ className: "min-h-0 data-[state=closed]:overflow-hidden",
13149
+ children: /* @__PURE__ */ jsxs54(
13150
+ "div",
13151
+ {
13152
+ role: tone === "error" ? "alert" : "status",
13153
+ "aria-live": tone === "error" ? "assertive" : "polite",
13154
+ "aria-hidden": !open,
13155
+ onMouseEnter: () => setPaused(true),
13156
+ onMouseLeave: () => setPaused(false),
13157
+ onFocus: () => setPaused(true),
13158
+ onBlur: () => setPaused(false),
13159
+ className: [
13160
+ "relative flex items-start gap-md rounded-lg border bg-surface pb-lg pl-base pr-md pt-base shadow-card",
13161
+ "transition-[box-shadow,border-color] duration-150 ease-out hover:shadow-md",
13162
+ theme.border
13163
+ ].join(" "),
13164
+ children: [
13165
+ /* @__PURE__ */ jsx56(
13166
+ "span",
13167
+ {
13168
+ className: [
13169
+ "mt-xxs flex size-10 shrink-0 items-center justify-center rounded-full",
13170
+ theme.tile
13171
+ ].join(" "),
13172
+ children: /* @__PURE__ */ jsx56(
13173
+ Icon,
13174
+ {
13175
+ name: theme.icon,
13176
+ size: 20,
13177
+ strokeWidth: 2.5,
13178
+ className: theme.glyph
13179
+ }
13180
+ )
13181
+ }
13182
+ ),
13183
+ /* @__PURE__ */ jsxs54("div", { className: "flex min-w-0 flex-1 flex-col gap-xxs", children: [
13184
+ /* @__PURE__ */ jsx56("p", { className: "text-body-md text-ink", children: toast.title }),
13185
+ toast.description ? /* @__PURE__ */ jsx56("p", { className: "text-body-sm text-muted", children: toast.description }) : null
13186
+ ] }),
13187
+ /* @__PURE__ */ jsxs54("div", { className: "flex shrink-0 items-center gap-sm", children: [
13188
+ toast.actionLabel ? /* @__PURE__ */ jsx56(
13189
+ Button,
13190
+ {
13191
+ type: "button",
13192
+ variant: "bare",
13193
+ size: "auto",
13194
+ onClick: toast.onAction,
13195
+ className: [
13196
+ "px-sm py-xs text-body-sm text-primary-text hover:bg-primary-soft",
13197
+ CONTROL
13198
+ ].join(" "),
13199
+ children: toast.actionLabel
13200
+ }
13201
+ ) : null,
13202
+ /* @__PURE__ */ jsx56(
13203
+ Button,
13204
+ {
13205
+ type: "button",
13206
+ variant: "bare",
13207
+ size: "auto",
13208
+ "aria-label": `Dismiss ${toast.title}`,
13209
+ onClick: () => onDismiss(toast.id),
13210
+ className: [
13211
+ "flex size-8 items-center justify-center bg-surface-soft text-muted hover:bg-surface-strong hover:text-ink",
13212
+ CONTROL
13213
+ ].join(" "),
13214
+ children: /* @__PURE__ */ jsx56(Icon, { name: "close", size: 16 })
13215
+ }
13216
+ )
13217
+ ] }),
13218
+ duration > 0 ? /* @__PURE__ */ jsx56(
13219
+ "span",
13220
+ {
13221
+ "aria-hidden": "true",
13222
+ className: "absolute bottom-sm left-base right-base h-1 overflow-hidden rounded-full bg-hairline-soft",
13223
+ children: /* @__PURE__ */ jsx56(
13224
+ "span",
13225
+ {
13226
+ className: ["block h-full w-full origin-left rounded-full", theme.rail].join(" "),
13227
+ style: {
13228
+ animation: `toaststack-drain ${duration}ms linear forwards`,
13229
+ animationPlayState: paused ? "paused" : "running"
13230
+ }
13231
+ }
13232
+ )
13233
+ }
13234
+ ) : null
13235
+ ]
13236
+ }
13237
+ )
13238
+ }
13239
+ )
13240
+ }
13241
+ );
13242
+ };
13243
+ var ToastStack = React56.forwardRef(
13244
+ function ToastStack2({
13245
+ toasts,
13246
+ onDismiss,
13247
+ onDismissAll,
13248
+ max = 3,
13249
+ dismissAllLabel = "Dismiss all",
13250
+ label = "Notifications",
13251
+ className,
13252
+ ...rest
13253
+ }, ref) {
13254
+ const [exiting, setExiting] = React56.useState([]);
13255
+ const seen = React56.useRef(toasts);
13256
+ React56.useEffect(() => {
13257
+ const live = new Set(toasts.map((toast) => toast.id));
13258
+ const gone = seen.current.filter((toast) => !live.has(toast.id));
13259
+ seen.current = toasts;
13260
+ if (gone.length > 0) setExiting((prev) => [...prev, ...gone]);
13261
+ }, [toasts]);
13262
+ React56.useEffect(() => {
13263
+ if (exiting.length === 0) return;
13264
+ const timer = window.setTimeout(() => setExiting([]), 240);
13265
+ return () => window.clearTimeout(timer);
13266
+ }, [exiting]);
13267
+ const dismiss = React56.useCallback(
13268
+ (id) => {
13269
+ onDismiss(id);
13270
+ },
13271
+ [onDismiss]
13272
+ );
13273
+ React56.useEffect(() => {
13274
+ const onKeyDown = (event) => {
13275
+ if (event.key !== "Escape" || toasts.length === 0) return;
13276
+ onDismiss(toasts[0].id);
13277
+ };
13278
+ document.addEventListener("keydown", onKeyDown);
13279
+ return () => document.removeEventListener("keydown", onKeyDown);
13280
+ }, [onDismiss, toasts]);
13281
+ const legible = toasts.slice(0, max);
13282
+ const overflow = Math.max(toasts.length - legible.length, 0);
13283
+ return /* @__PURE__ */ jsxs54(
13284
+ "div",
13285
+ {
13286
+ ref,
13287
+ role: "region",
13288
+ "aria-label": label,
13289
+ className: ["flex w-full max-w-3xl flex-col", className].filter(Boolean).join(" "),
13290
+ ...rest,
13291
+ children: [
13292
+ /* @__PURE__ */ jsx56("style", { children: `@keyframes toaststack-drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}` }),
13293
+ /* @__PURE__ */ jsxs54("div", { className: "ml-auto flex w-full max-w-md flex-col gap-md", children: [
13294
+ onDismissAll && toasts.length > 1 ? /* @__PURE__ */ jsx56("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx56(
13295
+ Button,
13296
+ {
13297
+ type: "button",
13298
+ variant: "bare",
13299
+ size: "auto",
13300
+ onClick: onDismissAll,
13301
+ className: "rounded-sm px-xs py-xxs text-body-sm font-weight-body-sm text-muted transition duration-150 ease-out hover:text-ink",
13302
+ children: dismissAllLabel
13303
+ }
13304
+ ) }) : null,
13305
+ legible.length > 0 ? /* @__PURE__ */ jsx56("div", { className: "flex flex-col gap-md", children: legible.map((toast) => /* @__PURE__ */ jsx56(
13306
+ ToastCard,
13307
+ {
13308
+ toast,
13309
+ state: "open",
13310
+ onDismiss: dismiss
13311
+ },
13312
+ toast.id
13313
+ )) }) : null,
13314
+ exiting.length > 0 ? /* @__PURE__ */ jsx56("div", { className: "flex flex-col gap-md", children: exiting.map((toast) => /* @__PURE__ */ jsx56(
13315
+ ToastCard,
13316
+ {
13317
+ toast,
13318
+ state: "closed",
13319
+ onDismiss: dismiss
13320
+ },
13321
+ toast.id
13322
+ )) }) : null,
13323
+ overflow > 0 ? /* @__PURE__ */ jsxs54(Fragment16, { children: [
13324
+ /* @__PURE__ */ jsxs54(
13325
+ "div",
13326
+ {
13327
+ "aria-hidden": "true",
13328
+ className: "-mt-sm flex flex-col items-center gap-xs",
13329
+ children: [
13330
+ /* @__PURE__ */ jsx56("div", { className: "flex h-4 w-11/12 items-center rounded-lg border border-hairline-soft bg-surface px-sm", children: /* @__PURE__ */ jsx56("span", { className: "h-1 w-full rounded-full bg-hairline" }) }),
13331
+ overflow > 1 ? /* @__PURE__ */ jsx56("div", { className: "flex h-3 w-10/12 items-center rounded-lg border border-hairline-soft bg-surface-soft px-sm", children: /* @__PURE__ */ jsx56("span", { className: "h-1 w-2/3 rounded-full bg-hairline-soft" }) }) : null
13332
+ ]
13333
+ }
13334
+ ),
13335
+ /* @__PURE__ */ jsxs54("span", { className: "sr-only", children: [
13336
+ overflow,
13337
+ " more notification",
13338
+ overflow > 1 ? "s" : "",
13339
+ " queued"
13340
+ ] })
13341
+ ] }) : null
13342
+ ] })
13343
+ ]
13344
+ }
13345
+ );
13346
+ }
13347
+ );
13348
+ ToastStack.displayName = "ToastStack";
13349
+
13074
13350
  // virtual-pkg:src/atoms/TopupModal/TopupModal.tsx
13075
- import React56 from "react";
13076
- import { jsx as jsx56, jsxs as jsxs54 } from "react/jsx-runtime";
13351
+ import React57 from "react";
13352
+ import { jsx as jsx57, jsxs as jsxs55 } from "react/jsx-runtime";
13077
13353
  var DEFAULT_OFFER = {
13078
13354
  credits: 1e3,
13079
13355
  price: "$10",
13080
13356
  ctaLabel: "Buy 1,000 credits",
13081
13357
  description: "Add credits to your current balance without changing your plan."
13082
13358
  };
13083
- var TopupModal = React56.forwardRef(
13359
+ var TopupModal = React57.forwardRef(
13084
13360
  ({
13085
13361
  isOpen,
13086
13362
  onClose,
@@ -13091,9 +13367,9 @@ var TopupModal = React56.forwardRef(
13091
13367
  onUpgradePlan
13092
13368
  }, ref) => {
13093
13369
  const creditsLabel = offer.credits.toLocaleString();
13094
- return /* @__PURE__ */ jsx56(Modal, { ref, isOpen, onClose, title, size: "sm", children: /* @__PURE__ */ jsxs54("div", { className: "flex w-full flex-col items-center gap-lg rounded-lg", children: [
13095
- /* @__PURE__ */ jsx56(Typography, { role: "body-md", color: "muted", className: "text-center", children: subtitle }),
13096
- /* @__PURE__ */ jsx56("div", { className: "w-full", children: /* @__PURE__ */ jsx56(
13370
+ return /* @__PURE__ */ jsx57(Modal, { ref, isOpen, onClose, title, size: "sm", children: /* @__PURE__ */ jsxs55("div", { className: "flex w-full flex-col items-center gap-lg rounded-lg", children: [
13371
+ /* @__PURE__ */ jsx57(Typography, { role: "body-md", color: "muted", className: "text-center", children: subtitle }),
13372
+ /* @__PURE__ */ jsx57("div", { className: "w-full", children: /* @__PURE__ */ jsx57(
13097
13373
  PricingCard,
13098
13374
  {
13099
13375
  planName: `${creditsLabel} credits`,
@@ -13112,15 +13388,15 @@ var TopupModal = React56.forwardRef(
13112
13388
  onCtaClick: () => onBuy?.()
13113
13389
  }
13114
13390
  ) }),
13115
- onUpgradePlan ? /* @__PURE__ */ jsx56(Button, { variant: "ghost", size: "sm", onClick: onUpgradePlan, children: "Or pick a larger monthly plan" }) : null
13391
+ onUpgradePlan ? /* @__PURE__ */ jsx57(Button, { variant: "ghost", size: "sm", onClick: onUpgradePlan, children: "Or pick a larger monthly plan" }) : null
13116
13392
  ] }) });
13117
13393
  }
13118
13394
  );
13119
13395
  TopupModal.displayName = "TopupModal";
13120
13396
 
13121
13397
  // virtual-pkg:src/atoms/UpgradeModal/UpgradeModal.tsx
13122
- import React57 from "react";
13123
- import { jsx as jsx57, jsxs as jsxs55 } from "react/jsx-runtime";
13398
+ import React58 from "react";
13399
+ import { jsx as jsx58, jsxs as jsxs56 } from "react/jsx-runtime";
13124
13400
  var PAID_FEATURES2 = [
13125
13401
  "npm package with managed versioning",
13126
13402
  "DESIGN.md with agent-to-agent component requests, component fixes, and token updates",
@@ -13200,7 +13476,7 @@ var REASON_COPY = {
13200
13476
  subtitle: "Pick a plan below to unlock more credits and the full feature set."
13201
13477
  }
13202
13478
  };
13203
- var UpgradeModal = React57.forwardRef(
13479
+ var UpgradeModal = React58.forwardRef(
13204
13480
  ({
13205
13481
  isOpen,
13206
13482
  onClose,
@@ -13214,14 +13490,14 @@ var UpgradeModal = React57.forwardRef(
13214
13490
  const resolvedTitle = title ?? copy.title;
13215
13491
  const resolvedSubtitle = subtitle ?? copy.subtitle;
13216
13492
  const gridClassName = plans.length === 3 ? "grid w-full grid-cols-1 sm:grid-cols-3 items-stretch gap-lg" : "grid w-full grid-cols-1 sm:grid-cols-4 items-stretch gap-lg";
13217
- return /* @__PURE__ */ jsx57(Modal, { ref, isOpen, onClose, title: resolvedTitle, size: "2xl", children: /* @__PURE__ */ jsxs55(
13493
+ return /* @__PURE__ */ jsx58(Modal, { ref, isOpen, onClose, title: resolvedTitle, size: "2xl", children: /* @__PURE__ */ jsxs56(
13218
13494
  "div",
13219
13495
  {
13220
13496
  "data-state": isOpen ? "open" : "closed",
13221
13497
  className: "flex w-full flex-col gap-lg rounded-lg transition duration-200 ease-out data-[state=open]:translate-y-0 data-[state=open]:opacity-100 data-[state=closed]:translate-y-2 data-[state=closed]:opacity-0",
13222
13498
  children: [
13223
- /* @__PURE__ */ jsx57(Typography, { role: "body-md", color: "muted", children: resolvedSubtitle }),
13224
- /* @__PURE__ */ jsx57("div", { className: gridClassName, children: plans.map((plan) => /* @__PURE__ */ jsx57(
13499
+ /* @__PURE__ */ jsx58(Typography, { role: "body-md", color: "muted", children: resolvedSubtitle }),
13500
+ /* @__PURE__ */ jsx58("div", { className: gridClassName, children: plans.map((plan) => /* @__PURE__ */ jsx58(
13225
13501
  PricingCard,
13226
13502
  {
13227
13503
  planName: plan.planName,
@@ -13301,6 +13577,7 @@ export {
13301
13577
  TemplateHero,
13302
13578
  TemplateSummary,
13303
13579
  Toast,
13580
+ ToastStack,
13304
13581
  TopNavbar,
13305
13582
  TopupModal,
13306
13583
  Typography,
package/dist/styles.css CHANGED
@@ -1,18 +1,4 @@
1
- /* Bundled local fonts */
2
- @font-face {
3
- font-family: "Plus Jakarta Sans";
4
- font-style: italic;
5
- font-weight: 100 900;
6
- font-display: swap;
7
- src: url("./fonts/plusjakartasans/PlusJakartaSans-Italic%5Bwght%5D.ttf") format("truetype");
8
- }
9
- @font-face {
10
- font-family: "Plus Jakarta Sans";
11
- font-style: normal;
12
- font-weight: 100 900;
13
- font-display: swap;
14
- src: url("./fonts/plusjakartasans/PlusJakartaSans%5Bwght%5D.ttf") format("truetype");
15
- }
1
+ @import url("https://fonts.googleapis.com/css2?family=Plus%20Jakarta%20Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
16
2
 
17
3
  /*! tailwindcss v4.3.1 | MIT License | https://tailwindcss.com */
18
4
  @layer properties;
@@ -79,6 +65,7 @@
79
65
  --color-semantic-success: #16A34A;
80
66
  --color-semantic-warning: #F59E0B;
81
67
  --color-semantic-error: #C0392B;
68
+ --color-semantic-info: #6B63D6;
82
69
  --color-scrim: #000000;
83
70
  --color-google-blue: #4285F4;
84
71
  --color-google-green: #34A853;
@@ -407,6 +394,9 @@
407
394
  .right-1 {
408
395
  right: var(--spacing);
409
396
  }
397
+ .right-base {
398
+ right: var(--spacing-base);
399
+ }
410
400
  .right-sm {
411
401
  right: var(--spacing-sm);
412
402
  }
@@ -425,6 +415,9 @@
425
415
  .bottom-full {
426
416
  bottom: 100%;
427
417
  }
418
+ .bottom-sm {
419
+ bottom: var(--spacing-sm);
420
+ }
428
421
  .-left-6 {
429
422
  left: calc(var(--spacing) * -6);
430
423
  }
@@ -512,6 +505,9 @@
512
505
  .\!mt-0 {
513
506
  margin-top: 0 !important;
514
507
  }
508
+ .-mt-sm {
509
+ margin-top: calc(var(--spacing-sm) * -1);
510
+ }
515
511
  .mt-0\.5 {
516
512
  margin-top: calc(var(--spacing) * 0.5);
517
513
  }
@@ -892,9 +888,15 @@
892
888
  .w-10 {
893
889
  width: calc(var(--spacing) * 10);
894
890
  }
891
+ .w-10\/12 {
892
+ width: calc(10 / 12 * 100%);
893
+ }
895
894
  .w-11 {
896
895
  width: calc(var(--spacing) * 11);
897
896
  }
897
+ .w-11\/12 {
898
+ width: calc(11 / 12 * 100%);
899
+ }
898
900
  .w-12 {
899
901
  width: calc(var(--spacing) * 12);
900
902
  }
@@ -1590,6 +1592,9 @@
1590
1592
  .border-semantic-error {
1591
1593
  border-color: var(--color-semantic-error);
1592
1594
  }
1595
+ .border-semantic-error-soft {
1596
+ border-color: var(--color-semantic-error-soft);
1597
+ }
1593
1598
  .border-semantic-error\/40 {
1594
1599
  border-color: color-mix(in srgb, #C0392B 40%, transparent);
1595
1600
  @supports (color: color-mix(in lab, red, red)) {
@@ -1698,6 +1703,9 @@
1698
1703
  .bg-semantic-error-soft {
1699
1704
  background-color: var(--color-semantic-error-soft);
1700
1705
  }
1706
+ .bg-semantic-info {
1707
+ background-color: var(--color-semantic-info);
1708
+ }
1701
1709
  .bg-semantic-info-soft {
1702
1710
  background-color: var(--color-semantic-info-soft);
1703
1711
  }
@@ -1972,6 +1980,9 @@
1972
1980
  .pr-12 {
1973
1981
  padding-right: calc(var(--spacing) * 12);
1974
1982
  }
1983
+ .pr-md {
1984
+ padding-right: var(--spacing-md);
1985
+ }
1975
1986
  .pr-sm {
1976
1987
  padding-right: var(--spacing-sm);
1977
1988
  }
@@ -2005,6 +2016,9 @@
2005
2016
  .pl-9 {
2006
2017
  padding-left: calc(var(--spacing) * 9);
2007
2018
  }
2019
+ .pl-base {
2020
+ padding-left: var(--spacing-base);
2021
+ }
2008
2022
  .pl-lg {
2009
2023
  padding-left: var(--spacing-lg);
2010
2024
  }
@@ -2185,6 +2199,9 @@
2185
2199
  .text-semantic-error {
2186
2200
  color: var(--color-semantic-error);
2187
2201
  }
2202
+ .text-semantic-info {
2203
+ color: var(--color-semantic-info);
2204
+ }
2188
2205
  .text-semantic-success {
2189
2206
  color: var(--color-semantic-success);
2190
2207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-v6",
3
- "version": "2.1.3",
3
+ "version": "2.2.1",
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",
@@ -289,6 +289,11 @@
289
289
  "kind": "Molecule",
290
290
  "description": null
291
291
  },
292
+ {
293
+ "name": "ToastStack",
294
+ "kind": "Organism",
295
+ "description": null
296
+ },
292
297
  {
293
298
  "name": "TopNavbar",
294
299
  "kind": "Organism",
@@ -29,8 +29,7 @@ export interface NavEntry {
29
29
  alwaysExpanded?: boolean;
30
30
  }
31
31
 
32
- export interface AppSidebarProps
33
- extends Omit<React.HTMLAttributes<HTMLElement>, "onSelect"> {
32
+ export interface AppSidebarProps extends React.HTMLAttributes<HTMLElement> {
34
33
  /**
35
34
  * Brand / product name displayed in the header when the sidebar is expanded.
36
35
  * 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, NavEntry, NavSubItem } from "./AppSidebar";
2
+ export type { AppSidebarProps } from "./AppSidebar";
@@ -230,7 +230,10 @@ 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 workspaceName={workspaceName} />
233
+ <WorkspaceMenu
234
+ workspaceName={workspaceName}
235
+ initials={workspaceName.charAt(0).toUpperCase()}
236
+ />
234
237
  )}
235
238
 
236
239
  {/* Nav entries */}
@@ -76,12 +76,7 @@ const defaultLines: ExportDesignMdLine[] = [
76
76
 
77
77
  const SOURCE_INFO: Record<
78
78
  ExportDesignMdSource,
79
- {
80
- icon: React.ComponentProps<typeof Icon>["name"];
81
- title: string;
82
- description: string;
83
- helper: string;
84
- }
79
+ { icon: string; title: string; description: string; helper: string }
85
80
  > = {
86
81
  production: {
87
82
  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 | null>) => (
478
+ const renderRow = (items: string[], trackRef: React.RefObject<HTMLDivElement>) => (
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 as React.ComponentProps<typeof Icon>["name"]}
262
+ name={item.icon}
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" | "onSelect" | "onToggle"> {
43
+ extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
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: React.ComponentProps<typeof Icon>["name"];
19
+ icon: string;
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?: React.ComponentProps<typeof Icon>["name"] | null;
119
+ buyIcon?: string | null;
120
120
  /** Secondary CTA label */
121
121
  previewLabel?: string;
122
122
  /**