@designa8/vibedesign-v6 1.6.9 → 1.8.3

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.6.9**.
3
+ Generated design system, version **1.8.3**.
4
4
 
5
5
  ## Local install (npm link)
6
6
 
package/dist/index.cjs CHANGED
@@ -39,8 +39,10 @@ __export(src_exports, {
39
39
  Input: () => Input,
40
40
  Modal: () => Modal,
41
41
  NavItem: () => NavItem,
42
+ PreviewToolbar: () => PreviewToolbar,
42
43
  PromptInputBar: () => PromptInputBar,
43
44
  TopNavbar: () => TopNavbar,
45
+ Typography: () => Typography,
44
46
  UpgradeCard: () => UpgradeCard,
45
47
  WorkspaceMenu: () => WorkspaceMenu
46
48
  });
@@ -3073,29 +3075,23 @@ var FilterTabBar = import_react13.default.forwardRef(
3073
3075
  "aria-label": "Filter tabs",
3074
3076
  className: [
3075
3077
  "inline-flex items-center gap-xs p-xs",
3076
- "bg-surface border border-hairline rounded-xl shadow-sm",
3078
+ "bg-canvas border border-hairline rounded-xl shadow-sm",
3077
3079
  className
3078
3080
  ].filter(Boolean).join(" "),
3079
3081
  ...rest,
3080
3082
  children: tabs.map((tab) => {
3081
3083
  const isActive = tab.value === value;
3082
- const iconOnly = !!tab.icon && !tab.label;
3083
3084
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
3084
3085
  Button,
3085
3086
  {
3086
3087
  role: "tab",
3087
3088
  "aria-selected": isActive,
3088
- "aria-label": tab["aria-label"],
3089
3089
  variant: isActive ? "primary" : "ghost",
3090
3090
  size: "sm",
3091
3091
  onClick: () => onChange(tab.value),
3092
- className: [
3093
- "transition-[background-color,color,box-shadow] duration-200 ease-in-out",
3094
- iconOnly ? "!px-xs aspect-square" : ""
3095
- ].filter(Boolean).join(" "),
3092
+ className: "gap-xs",
3096
3093
  children: [
3097
- tab.icon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "inline-flex items-center justify-center size-4 shrink-0", children: tab.icon }),
3098
- tab.label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: tab.label }),
3094
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: tab.label }),
3099
3095
  tab.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
3100
3096
  "span",
3101
3097
  {
@@ -3104,7 +3100,7 @@ var FilterTabBar = import_react13.default.forwardRef(
3104
3100
  "min-w-[1.25rem] h-5 px-xs rounded-sm",
3105
3101
  "text-caption leading-none",
3106
3102
  "transition-[background-color,color] duration-200 ease-in-out",
3107
- isActive ? "bg-primary-active text-on-primary" : "bg-surface-strong text-muted"
3103
+ isActive ? "bg-ink text-canvas" : "bg-surface-strong text-muted"
3108
3104
  ].filter(Boolean).join(" "),
3109
3105
  "aria-label": `${tab.count} items`,
3110
3106
  children: tab.count
@@ -3229,3 +3225,245 @@ var Modal = import_react14.default.forwardRef(
3229
3225
  }
3230
3226
  );
3231
3227
  Modal.displayName = "Modal";
3228
+
3229
+ // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
3230
+ var import_react15 = __toESM(require("react"));
3231
+ var import_jsx_runtime15 = require("react/jsx-runtime");
3232
+ var DesktopIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3233
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
3234
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M8 21h8M12 17v4" })
3235
+ ] });
3236
+ var SidebarIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3237
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
3238
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M9 3v18" })
3239
+ ] });
3240
+ var MobileIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3241
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
3242
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
3243
+ ] });
3244
+ var ExpandIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
3245
+ var InspectIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3246
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "12", r: "9" }),
3247
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M12 8v4l3 3" }),
3248
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
3249
+ ] });
3250
+ var MoonIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
3251
+ var FullscreenIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3252
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("polyline", { points: "15 3 21 3 21 9" }),
3253
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("polyline", { points: "9 21 3 21 3 15" }),
3254
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
3255
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3256
+ ] });
3257
+ var DotsIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
3258
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "5", r: "1.6" }),
3259
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "12", r: "1.6" }),
3260
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("circle", { cx: "12", cy: "19", r: "1.6" })
3261
+ ] });
3262
+ var VIEWPORT_OPTIONS = [
3263
+ { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
3264
+ { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
3265
+ { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
3266
+ ];
3267
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3268
+ Button,
3269
+ {
3270
+ variant: active ? "primary" : "ghost",
3271
+ size: "sm",
3272
+ "aria-label": label,
3273
+ "aria-pressed": active,
3274
+ onClick,
3275
+ className: ["!w-8 !h-8 !p-0 rounded-sm shrink-0", active ? "" : "text-muted"].join(" "),
3276
+ children
3277
+ }
3278
+ );
3279
+ var PreviewToolbar = import_react15.default.forwardRef(
3280
+ ({
3281
+ viewport = "desktop",
3282
+ onViewportChange,
3283
+ darkMode = false,
3284
+ onDarkToggle,
3285
+ inspecting = false,
3286
+ onInspectTokens,
3287
+ onFullscreen,
3288
+ onExpand,
3289
+ modelLabel = "Sonnet 4.6",
3290
+ kindLabel = "ATOM",
3291
+ onOverflow,
3292
+ className = ""
3293
+ }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3294
+ "div",
3295
+ {
3296
+ ref,
3297
+ role: "toolbar",
3298
+ "aria-label": "Preview toolbar",
3299
+ className: [
3300
+ "inline-flex items-center gap-sm px-sm py-xs",
3301
+ "bg-canvas border border-hairline rounded-xl shadow-md",
3302
+ className
3303
+ ].filter(Boolean).join(" "),
3304
+ children: [
3305
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3306
+ "div",
3307
+ {
3308
+ role: "group",
3309
+ "aria-label": "Viewport size",
3310
+ className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs",
3311
+ children: [
3312
+ VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3313
+ ViewportBtn,
3314
+ {
3315
+ label,
3316
+ active: viewport === id,
3317
+ onClick: () => onViewportChange?.(id),
3318
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, {})
3319
+ },
3320
+ id
3321
+ )),
3322
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-px h-4 bg-hairline mx-xxs", "aria-hidden": true }),
3323
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3324
+ Button,
3325
+ {
3326
+ variant: "ghost",
3327
+ size: "sm",
3328
+ "aria-label": "Expand preview",
3329
+ onClick: onExpand,
3330
+ className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3331
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ExpandIcon, {})
3332
+ }
3333
+ )
3334
+ ]
3335
+ }
3336
+ ),
3337
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3338
+ Button,
3339
+ {
3340
+ variant: inspecting ? "primary" : "secondary",
3341
+ size: "sm",
3342
+ "aria-pressed": inspecting,
3343
+ onClick: onInspectTokens,
3344
+ className: "gap-xs rounded-xl",
3345
+ children: [
3346
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InspectIcon, {}),
3347
+ inspecting ? "Exit inspect" : "Inspect tokens"
3348
+ ]
3349
+ }
3350
+ ),
3351
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3352
+ Button,
3353
+ {
3354
+ variant: darkMode ? "primary" : "secondary",
3355
+ size: "sm",
3356
+ "aria-pressed": darkMode,
3357
+ onClick: onDarkToggle,
3358
+ className: "gap-xs rounded-xl",
3359
+ children: [
3360
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(MoonIcon2, {}),
3361
+ "Dark"
3362
+ ]
3363
+ }
3364
+ ),
3365
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3366
+ Button,
3367
+ {
3368
+ variant: "secondary",
3369
+ size: "sm",
3370
+ onClick: onFullscreen,
3371
+ className: "gap-xs rounded-xl",
3372
+ children: [
3373
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(FullscreenIcon, {}),
3374
+ "Fullscreen"
3375
+ ]
3376
+ }
3377
+ ),
3378
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3379
+ Chip,
3380
+ {
3381
+ label: modelLabel ?? "",
3382
+ variant: "default",
3383
+ size: "md",
3384
+ className: "border-primary text-primary bg-canvas cursor-default select-none"
3385
+ }
3386
+ ),
3387
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3388
+ Chip,
3389
+ {
3390
+ label: kindLabel ?? "",
3391
+ variant: "default",
3392
+ size: "md",
3393
+ className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
3394
+ }
3395
+ ),
3396
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3397
+ Button,
3398
+ {
3399
+ variant: "ghost",
3400
+ size: "sm",
3401
+ "aria-label": "More options",
3402
+ onClick: onOverflow,
3403
+ className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3404
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(DotsIcon, {})
3405
+ }
3406
+ )
3407
+ ]
3408
+ }
3409
+ )
3410
+ );
3411
+ PreviewToolbar.displayName = "PreviewToolbar";
3412
+
3413
+ // virtual-pkg:src/atoms/Typography/Typography.tsx
3414
+ var import_react16 = __toESM(require("react"));
3415
+ var import_jsx_runtime16 = require("react/jsx-runtime");
3416
+ var roleTagMap = {
3417
+ "display-lg": "h1",
3418
+ "heading-lg": "h2",
3419
+ "heading-md": "h3",
3420
+ "heading-sm": "h4",
3421
+ "body-lg": "p",
3422
+ "body-md": "p",
3423
+ "body-sm": "p",
3424
+ caption: "span"
3425
+ };
3426
+ var roleClassMap = {
3427
+ "display-lg": "text-display-lg",
3428
+ "heading-lg": "text-heading-lg",
3429
+ "heading-md": "text-heading-md",
3430
+ "heading-sm": "text-heading-sm",
3431
+ "body-lg": "text-body-lg",
3432
+ "body-md": "text-body-md",
3433
+ "body-sm": "text-body-sm",
3434
+ caption: "text-caption"
3435
+ };
3436
+ var colorClassMap = {
3437
+ ink: "text-ink",
3438
+ body: "text-body",
3439
+ muted: "text-muted",
3440
+ "muted-soft": "text-muted-soft",
3441
+ primary: "text-primary",
3442
+ "semantic-error": "text-semantic-error",
3443
+ "semantic-success": "text-semantic-success",
3444
+ "semantic-warning": "text-semantic-warning",
3445
+ "on-primary": "text-on-primary"
3446
+ };
3447
+ var Typography = import_react16.default.forwardRef(
3448
+ ({
3449
+ role = "body-md",
3450
+ color = "ink",
3451
+ as,
3452
+ truncate = false,
3453
+ uppercase = false,
3454
+ className = "",
3455
+ children,
3456
+ ...rest
3457
+ }, ref) => {
3458
+ const Tag = as ?? roleTagMap[role];
3459
+ const classes = [
3460
+ roleClassMap[role],
3461
+ colorClassMap[color],
3462
+ truncate ? "truncate" : "",
3463
+ uppercase ? "uppercase tracking-wide" : "",
3464
+ className
3465
+ ].filter(Boolean).join(" ");
3466
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Tag, { ref, className: classes, ...rest, children });
3467
+ }
3468
+ );
3469
+ Typography.displayName = "Typography";
package/dist/index.js CHANGED
@@ -3027,29 +3027,23 @@ var FilterTabBar = React13.forwardRef(
3027
3027
  "aria-label": "Filter tabs",
3028
3028
  className: [
3029
3029
  "inline-flex items-center gap-xs p-xs",
3030
- "bg-surface border border-hairline rounded-xl shadow-sm",
3030
+ "bg-canvas border border-hairline rounded-xl shadow-sm",
3031
3031
  className
3032
3032
  ].filter(Boolean).join(" "),
3033
3033
  ...rest,
3034
3034
  children: tabs.map((tab) => {
3035
3035
  const isActive = tab.value === value;
3036
- const iconOnly = !!tab.icon && !tab.label;
3037
3036
  return /* @__PURE__ */ jsxs13(
3038
3037
  Button,
3039
3038
  {
3040
3039
  role: "tab",
3041
3040
  "aria-selected": isActive,
3042
- "aria-label": tab["aria-label"],
3043
3041
  variant: isActive ? "primary" : "ghost",
3044
3042
  size: "sm",
3045
3043
  onClick: () => onChange(tab.value),
3046
- className: [
3047
- "transition-[background-color,color,box-shadow] duration-200 ease-in-out",
3048
- iconOnly ? "!px-xs aspect-square" : ""
3049
- ].filter(Boolean).join(" "),
3044
+ className: "gap-xs",
3050
3045
  children: [
3051
- tab.icon && /* @__PURE__ */ jsx13("span", { className: "inline-flex items-center justify-center size-4 shrink-0", children: tab.icon }),
3052
- tab.label && /* @__PURE__ */ jsx13("span", { children: tab.label }),
3046
+ /* @__PURE__ */ jsx13("span", { children: tab.label }),
3053
3047
  tab.count !== void 0 && /* @__PURE__ */ jsx13(
3054
3048
  "span",
3055
3049
  {
@@ -3058,7 +3052,7 @@ var FilterTabBar = React13.forwardRef(
3058
3052
  "min-w-[1.25rem] h-5 px-xs rounded-sm",
3059
3053
  "text-caption leading-none",
3060
3054
  "transition-[background-color,color] duration-200 ease-in-out",
3061
- isActive ? "bg-primary-active text-on-primary" : "bg-surface-strong text-muted"
3055
+ isActive ? "bg-ink text-canvas" : "bg-surface-strong text-muted"
3062
3056
  ].filter(Boolean).join(" "),
3063
3057
  "aria-label": `${tab.count} items`,
3064
3058
  children: tab.count
@@ -3183,6 +3177,248 @@ var Modal = React14.forwardRef(
3183
3177
  }
3184
3178
  );
3185
3179
  Modal.displayName = "Modal";
3180
+
3181
+ // virtual-pkg:src/atoms/PreviewToolbar/PreviewToolbar.tsx
3182
+ import React15 from "react";
3183
+ import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
3184
+ var DesktopIcon = () => /* @__PURE__ */ jsxs15("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3185
+ /* @__PURE__ */ jsx15("rect", { x: "2", y: "3", width: "20", height: "14", rx: "2" }),
3186
+ /* @__PURE__ */ jsx15("path", { d: "M8 21h8M12 17v4" })
3187
+ ] });
3188
+ var SidebarIcon2 = () => /* @__PURE__ */ jsxs15("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3189
+ /* @__PURE__ */ jsx15("rect", { x: "2", y: "3", width: "20", height: "18", rx: "2" }),
3190
+ /* @__PURE__ */ jsx15("path", { d: "M9 3v18" })
3191
+ ] });
3192
+ var MobileIcon = () => /* @__PURE__ */ jsxs15("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3193
+ /* @__PURE__ */ jsx15("rect", { x: "5", y: "2", width: "14", height: "20", rx: "2" }),
3194
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "17", r: "1", fill: "currentColor", stroke: "none" })
3195
+ ] });
3196
+ var ExpandIcon = () => /* @__PURE__ */ jsx15("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx15("path", { d: "M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7" }) });
3197
+ var InspectIcon = () => /* @__PURE__ */ jsxs15("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3198
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "12", r: "9" }),
3199
+ /* @__PURE__ */ jsx15("path", { d: "M12 8v4l3 3" }),
3200
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "12", r: "1", fill: "currentColor", stroke: "none" })
3201
+ ] });
3202
+ var MoonIcon2 = () => /* @__PURE__ */ jsx15("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx15("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) });
3203
+ var FullscreenIcon = () => /* @__PURE__ */ jsxs15("svg", { width: "15", height: "15", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
3204
+ /* @__PURE__ */ jsx15("polyline", { points: "15 3 21 3 21 9" }),
3205
+ /* @__PURE__ */ jsx15("polyline", { points: "9 21 3 21 3 15" }),
3206
+ /* @__PURE__ */ jsx15("line", { x1: "21", y1: "3", x2: "14", y2: "10" }),
3207
+ /* @__PURE__ */ jsx15("line", { x1: "3", y1: "21", x2: "10", y2: "14" })
3208
+ ] });
3209
+ var DotsIcon = () => /* @__PURE__ */ jsxs15("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "currentColor", stroke: "none", "aria-hidden": "true", children: [
3210
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "5", r: "1.6" }),
3211
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "12", r: "1.6" }),
3212
+ /* @__PURE__ */ jsx15("circle", { cx: "12", cy: "19", r: "1.6" })
3213
+ ] });
3214
+ var VIEWPORT_OPTIONS = [
3215
+ { id: "desktop", Icon: DesktopIcon, label: "Desktop view" },
3216
+ { id: "sidebar", Icon: SidebarIcon2, label: "Sidebar view" },
3217
+ { id: "mobile", Icon: MobileIcon, label: "Mobile view" }
3218
+ ];
3219
+ var ViewportBtn = ({ label, active, onClick, children }) => /* @__PURE__ */ jsx15(
3220
+ Button,
3221
+ {
3222
+ variant: active ? "primary" : "ghost",
3223
+ size: "sm",
3224
+ "aria-label": label,
3225
+ "aria-pressed": active,
3226
+ onClick,
3227
+ className: ["!w-8 !h-8 !p-0 rounded-sm shrink-0", active ? "" : "text-muted"].join(" "),
3228
+ children
3229
+ }
3230
+ );
3231
+ var PreviewToolbar = React15.forwardRef(
3232
+ ({
3233
+ viewport = "desktop",
3234
+ onViewportChange,
3235
+ darkMode = false,
3236
+ onDarkToggle,
3237
+ inspecting = false,
3238
+ onInspectTokens,
3239
+ onFullscreen,
3240
+ onExpand,
3241
+ modelLabel = "Sonnet 4.6",
3242
+ kindLabel = "ATOM",
3243
+ onOverflow,
3244
+ className = ""
3245
+ }, ref) => /* @__PURE__ */ jsxs15(
3246
+ "div",
3247
+ {
3248
+ ref,
3249
+ role: "toolbar",
3250
+ "aria-label": "Preview toolbar",
3251
+ className: [
3252
+ "inline-flex items-center gap-sm px-sm py-xs",
3253
+ "bg-canvas border border-hairline rounded-xl shadow-md",
3254
+ className
3255
+ ].filter(Boolean).join(" "),
3256
+ children: [
3257
+ /* @__PURE__ */ jsxs15(
3258
+ "div",
3259
+ {
3260
+ role: "group",
3261
+ "aria-label": "Viewport size",
3262
+ className: "inline-flex items-center gap-xxs bg-surface-soft rounded-lg p-xxs",
3263
+ children: [
3264
+ VIEWPORT_OPTIONS.map(({ id, Icon, label }) => /* @__PURE__ */ jsx15(
3265
+ ViewportBtn,
3266
+ {
3267
+ label,
3268
+ active: viewport === id,
3269
+ onClick: () => onViewportChange?.(id),
3270
+ children: /* @__PURE__ */ jsx15(Icon, {})
3271
+ },
3272
+ id
3273
+ )),
3274
+ /* @__PURE__ */ jsx15("div", { className: "w-px h-4 bg-hairline mx-xxs", "aria-hidden": true }),
3275
+ /* @__PURE__ */ jsx15(
3276
+ Button,
3277
+ {
3278
+ variant: "ghost",
3279
+ size: "sm",
3280
+ "aria-label": "Expand preview",
3281
+ onClick: onExpand,
3282
+ className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3283
+ children: /* @__PURE__ */ jsx15(ExpandIcon, {})
3284
+ }
3285
+ )
3286
+ ]
3287
+ }
3288
+ ),
3289
+ /* @__PURE__ */ jsxs15(
3290
+ Button,
3291
+ {
3292
+ variant: inspecting ? "primary" : "secondary",
3293
+ size: "sm",
3294
+ "aria-pressed": inspecting,
3295
+ onClick: onInspectTokens,
3296
+ className: "gap-xs rounded-xl",
3297
+ children: [
3298
+ /* @__PURE__ */ jsx15(InspectIcon, {}),
3299
+ inspecting ? "Exit inspect" : "Inspect tokens"
3300
+ ]
3301
+ }
3302
+ ),
3303
+ /* @__PURE__ */ jsxs15(
3304
+ Button,
3305
+ {
3306
+ variant: darkMode ? "primary" : "secondary",
3307
+ size: "sm",
3308
+ "aria-pressed": darkMode,
3309
+ onClick: onDarkToggle,
3310
+ className: "gap-xs rounded-xl",
3311
+ children: [
3312
+ /* @__PURE__ */ jsx15(MoonIcon2, {}),
3313
+ "Dark"
3314
+ ]
3315
+ }
3316
+ ),
3317
+ /* @__PURE__ */ jsxs15(
3318
+ Button,
3319
+ {
3320
+ variant: "secondary",
3321
+ size: "sm",
3322
+ onClick: onFullscreen,
3323
+ className: "gap-xs rounded-xl",
3324
+ children: [
3325
+ /* @__PURE__ */ jsx15(FullscreenIcon, {}),
3326
+ "Fullscreen"
3327
+ ]
3328
+ }
3329
+ ),
3330
+ /* @__PURE__ */ jsx15(
3331
+ Chip,
3332
+ {
3333
+ label: modelLabel ?? "",
3334
+ variant: "default",
3335
+ size: "md",
3336
+ className: "border-primary text-primary bg-canvas cursor-default select-none"
3337
+ }
3338
+ ),
3339
+ /* @__PURE__ */ jsx15(
3340
+ Chip,
3341
+ {
3342
+ label: kindLabel ?? "",
3343
+ variant: "default",
3344
+ size: "md",
3345
+ className: "bg-primary-disabled border-primary-disabled text-primary cursor-default select-none"
3346
+ }
3347
+ ),
3348
+ /* @__PURE__ */ jsx15(
3349
+ Button,
3350
+ {
3351
+ variant: "ghost",
3352
+ size: "sm",
3353
+ "aria-label": "More options",
3354
+ onClick: onOverflow,
3355
+ className: "!w-8 !h-8 !p-0 rounded-sm text-muted shrink-0",
3356
+ children: /* @__PURE__ */ jsx15(DotsIcon, {})
3357
+ }
3358
+ )
3359
+ ]
3360
+ }
3361
+ )
3362
+ );
3363
+ PreviewToolbar.displayName = "PreviewToolbar";
3364
+
3365
+ // virtual-pkg:src/atoms/Typography/Typography.tsx
3366
+ import React16 from "react";
3367
+ import { jsx as jsx16 } from "react/jsx-runtime";
3368
+ var roleTagMap = {
3369
+ "display-lg": "h1",
3370
+ "heading-lg": "h2",
3371
+ "heading-md": "h3",
3372
+ "heading-sm": "h4",
3373
+ "body-lg": "p",
3374
+ "body-md": "p",
3375
+ "body-sm": "p",
3376
+ caption: "span"
3377
+ };
3378
+ var roleClassMap = {
3379
+ "display-lg": "text-display-lg",
3380
+ "heading-lg": "text-heading-lg",
3381
+ "heading-md": "text-heading-md",
3382
+ "heading-sm": "text-heading-sm",
3383
+ "body-lg": "text-body-lg",
3384
+ "body-md": "text-body-md",
3385
+ "body-sm": "text-body-sm",
3386
+ caption: "text-caption"
3387
+ };
3388
+ var colorClassMap = {
3389
+ ink: "text-ink",
3390
+ body: "text-body",
3391
+ muted: "text-muted",
3392
+ "muted-soft": "text-muted-soft",
3393
+ primary: "text-primary",
3394
+ "semantic-error": "text-semantic-error",
3395
+ "semantic-success": "text-semantic-success",
3396
+ "semantic-warning": "text-semantic-warning",
3397
+ "on-primary": "text-on-primary"
3398
+ };
3399
+ var Typography = React16.forwardRef(
3400
+ ({
3401
+ role = "body-md",
3402
+ color = "ink",
3403
+ as,
3404
+ truncate = false,
3405
+ uppercase = false,
3406
+ className = "",
3407
+ children,
3408
+ ...rest
3409
+ }, ref) => {
3410
+ const Tag = as ?? roleTagMap[role];
3411
+ const classes = [
3412
+ roleClassMap[role],
3413
+ colorClassMap[color],
3414
+ truncate ? "truncate" : "",
3415
+ uppercase ? "uppercase tracking-wide" : "",
3416
+ className
3417
+ ].filter(Boolean).join(" ");
3418
+ return /* @__PURE__ */ jsx16(Tag, { ref, className: classes, ...rest, children });
3419
+ }
3420
+ );
3421
+ Typography.displayName = "Typography";
3186
3422
  export {
3187
3423
  AppLayout,
3188
3424
  AppSidebar,
@@ -3194,8 +3430,10 @@ export {
3194
3430
  Input,
3195
3431
  Modal,
3196
3432
  NavItem,
3433
+ PreviewToolbar,
3197
3434
  PromptInputBar,
3198
3435
  TopNavbar,
3436
+ Typography,
3199
3437
  UpgradeCard,
3200
3438
  WorkspaceMenu
3201
3439
  };