@designa8/vibedesign-linear-internal-v1-b737 0.13.0 → 0.13.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @designa8/vibedesign-linear-internal-v1-b737
2
2
 
3
- Complete design system generated by Atoms Design, version **0.13.0**.
3
+ Complete design system generated by Atoms Design, version **0.13.1**.
4
4
  Tokens, atoms, molecules, organisms, and templates — import from the package root;
5
5
  never hardcode visual values in consumer code.
6
6
 
package/dist/index.cjs CHANGED
@@ -420,6 +420,10 @@ var variants = {
420
420
  field: "border-hairline bg-canvas text-ink enabled:hover:border-hairline-strong focus-visible:border-primary aria-expanded:border-primary aria-invalid:border-semantic-error disabled:bg-surface-soft disabled:border-hairline-soft",
421
421
  item: "border-transparent bg-transparent text-ink enabled:hover:bg-surface-soft enabled:active:bg-surface-strong focus-visible:bg-surface-soft aria-selected:bg-primary-soft aria-selected:font-weight-label aria-checked:bg-primary-soft disabled:bg-transparent",
422
422
  bare: "border-transparent bg-transparent text-body transition-colors aria-selected:text-on-primary not-aria-selected:enabled:hover:bg-surface-soft not-aria-selected:enabled:hover:text-ink focus-visible:ring-inset not-aria-selected:focus-visible:bg-surface-soft",
423
+ soft: "border-transparent bg-surface-soft text-ink ring-1 ring-hairline ring-inset shadow-none enabled:hover:bg-surface-strong enabled:hover:ring-hairline-strong enabled:active:bg-surface-strong aria-pressed:bg-surface-strong disabled:ring-hairline-soft",
424
+ tint: "border-hairline bg-surface-soft text-muted shadow-none enabled:hover:bg-surface-strong enabled:hover:text-ink enabled:active:bg-surface-strong aria-checked:border-primary aria-checked:bg-primary-soft aria-checked:text-primary aria-checked:enabled:hover:bg-primary-soft aria-checked:enabled:hover:text-primary",
425
+ inverse: "border-transparent bg-inverse-canvas text-inverse-ink shadow-sm enabled:hover:opacity-90 enabled:active:opacity-80",
426
+ neutral: "border-transparent bg-muted text-on-primary shadow-sm enabled:hover:bg-muted enabled:active:bg-muted",
423
427
  media: "border-transparent bg-transparent p-0 focus-visible:ring-inset enabled:hover:bg-surface-soft enabled:active:bg-surface-strong"
424
428
  };
425
429
  var sizes = {
@@ -2107,7 +2111,13 @@ var import_jsx_runtime22 = require("react/jsx-runtime");
2107
2111
  var cn12 = (...parts) => parts.filter(Boolean).join(" ");
2108
2112
  var sizeClass = {
2109
2113
  sm: "min-h-16 px-sm py-xs text-body-sm rounded-sm",
2110
- md: "min-h-20 px-md py-sm text-body-md rounded-md"
2114
+ md: "min-h-20 px-md py-sm text-body-md rounded-md",
2115
+ lg: "min-h-24 px-md py-sm text-body-lg rounded-md"
2116
+ };
2117
+ var bareType = {
2118
+ sm: "text-body-sm",
2119
+ md: "text-body-md",
2120
+ lg: "text-body-lg"
2111
2121
  };
2112
2122
  var Textarea = React22.forwardRef(
2113
2123
  ({
@@ -2135,7 +2145,7 @@ var Textarea = React22.forwardRef(
2135
2145
  className: cn12(
2136
2146
  "block w-full min-w-0 text-ink placeholder:text-muted-soft outline-none ring-0 focus:outline-none focus-visible:outline-none focus:ring-0 focus-visible:ring-0 disabled:cursor-not-allowed disabled:text-muted-soft",
2137
2147
  resizable ? "resize-y" : "resize-none",
2138
- bare ? "border-0 bg-transparent p-0 shadow-none rounded-none text-body-md" : cn12(
2148
+ bare ? cn12("border-0 bg-transparent p-0 shadow-none rounded-none", bareType[size]) : cn12(
2139
2149
  sizeClass[size],
2140
2150
  "border bg-canvas transition-colors duration-150 ease-out",
2141
2151
  invalid ? "border-semantic-error focus:border-semantic-error" : "border-hairline hover:border-hairline-strong focus:border-primary focus:hover:border-primary",
@@ -10958,6 +10968,7 @@ function ModelRow({
10958
10968
  "aria-checked": selected,
10959
10969
  "aria-disabled": !available,
10960
10970
  "data-menu-item": "model",
10971
+ "data-model-id": model.id,
10961
10972
  onClick: onSelect,
10962
10973
  className: cn69("gap-sm", ROW_TRIGGER),
10963
10974
  trailingIcon: selected ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "check", size: 16, className: "shrink-0 text-primary" }) : void 0,
@@ -11284,7 +11295,8 @@ var PromptInputBar = React90.forwardRef(
11284
11295
  selected: m === mode,
11285
11296
  onSelect: () => onModeChange?.(m)
11286
11297
  }));
11287
- const triggerLabel = currentModel ? `Change model or add attachment. Current model: ${currentModel.name}` : "Add attachment";
11298
+ const currentModelName = currentModel?.name ?? "Attach";
11299
+ const triggerLabel = currentModel ? `Attach or change model. Current model: ${currentModel.name}` : "Add attachment";
11288
11300
  const menuPanel = /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11289
11301
  "div",
11290
11302
  {
@@ -11292,6 +11304,7 @@ var PromptInputBar = React90.forwardRef(
11292
11304
  id: `${uid}-menu`,
11293
11305
  role: "menu",
11294
11306
  "aria-label": "Prompt options",
11307
+ "aria-hidden": menuOpen ? void 0 : true,
11295
11308
  "data-state": menuOpen ? "open" : "closed",
11296
11309
  inert: !menuOpen,
11297
11310
  onKeyDown: handleMenuKeyDown,
@@ -11359,7 +11372,7 @@ var PromptInputBar = React90.forwardRef(
11359
11372
  "div",
11360
11373
  {
11361
11374
  className: cn69(
11362
- "flex w-full min-w-0 flex-col gap-md rounded-xl border bg-canvas p-base shadow-card transition-colors duration-200 ease-out sm:px-lg sm:pb-md sm:pt-lg",
11375
+ "flex w-full min-w-0 flex-col gap-base rounded-xl border bg-canvas p-base shadow-card transition-colors duration-200 ease-out sm:pb-base sm:pl-lg sm:pr-lg sm:pt-lg",
11363
11376
  hasError ? "border-semantic-error" : isRecording ? "border-primary" : "border-hairline"
11364
11377
  ),
11365
11378
  children: [
@@ -11384,8 +11397,9 @@ var PromptInputBar = React90.forwardRef(
11384
11397
  {
11385
11398
  ref: textareaRef,
11386
11399
  chrome: "none",
11400
+ size: "lg",
11387
11401
  resizable: false,
11388
- rows: 1,
11402
+ rows: 2,
11389
11403
  "aria-label": "Prompt input",
11390
11404
  placeholder,
11391
11405
  value: textValue,
@@ -11403,7 +11417,7 @@ var PromptInputBar = React90.forwardRef(
11403
11417
  disabled: lockInput,
11404
11418
  readOnly: isRecording,
11405
11419
  className: cn69(
11406
- "min-h-16 transition-opacity duration-200 ease-out disabled:opacity-50",
11420
+ "min-h-12 transition-opacity duration-200 ease-out disabled:opacity-50",
11407
11421
  isRecording && "opacity-70"
11408
11422
  )
11409
11423
  }
@@ -11422,7 +11436,7 @@ var PromptInputBar = React90.forwardRef(
11422
11436
  ref: plusRef,
11423
11437
  iconOnly: true,
11424
11438
  size: "lg",
11425
- variant: "secondary",
11439
+ variant: "soft",
11426
11440
  "aria-label": triggerLabel,
11427
11441
  "aria-haspopup": "menu",
11428
11442
  "aria-expanded": menuOpen,
@@ -11436,143 +11450,120 @@ var PromptInputBar = React90.forwardRef(
11436
11450
  menuOpen && "rotate-45"
11437
11451
  ),
11438
11452
  children: [
11439
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "plus", size: 16 }),
11440
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "sr-only", children: currentModel ? currentModel.name : "Attach" })
11453
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "plus", size: 18 }),
11454
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "sr-only", "data-model-name": currentModel?.id, children: currentModelName })
11441
11455
  ]
11442
11456
  }
11443
11457
  ),
11444
11458
  /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11445
- "span",
11459
+ Button,
11446
11460
  {
11447
- className: cn69(
11448
- "inline-flex min-w-0 shrink items-center overflow-hidden rounded-full border transition-colors duration-150 ease-out",
11449
- suggestOn ? "border-primary bg-primary-soft" : "border-hairline bg-canvas"
11450
- ),
11451
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11452
- Button,
11461
+ variant: "tint",
11462
+ role: "switch",
11463
+ "aria-checked": suggestOn,
11464
+ "aria-label": "Suggest designs",
11465
+ onClick: toggleSuggest,
11466
+ disabled: lockInput,
11467
+ className: cn69(ROUND, "min-w-0 shrink"),
11468
+ leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "sparkles", size: 14 }),
11469
+ trailingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11470
+ "span",
11453
11471
  {
11454
- variant: "ghost",
11455
- size: "md",
11456
- role: "switch",
11457
- "aria-checked": suggestOn,
11458
- "aria-label": "Suggest designs",
11459
- onClick: toggleSuggest,
11460
- disabled: lockInput,
11461
- leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "sparkles", size: 14 }),
11462
- trailingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11472
+ "aria-hidden": "true",
11473
+ className: cn69(
11474
+ "relative inline-flex h-4 w-7 items-center rounded-full p-xxs transition-colors duration-150 ease-out",
11475
+ suggestOn ? "bg-primary" : "bg-surface-strong"
11476
+ ),
11477
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11463
11478
  "span",
11464
11479
  {
11465
- "aria-hidden": "true",
11466
11480
  className: cn69(
11467
- "relative hidden h-4 w-7 items-center rounded-full p-xxs transition-colors duration-150 ease-out sm:inline-flex",
11468
- suggestOn ? "bg-primary" : "bg-hairline-strong"
11469
- ),
11470
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11471
- "span",
11472
- {
11473
- className: cn69(
11474
- "block size-3 rounded-full bg-canvas shadow-sm transition-transform duration-150 ease-out",
11475
- suggestOn ? "translate-x-3" : "translate-x-0"
11476
- )
11477
- }
11481
+ "block size-3 rounded-full bg-canvas shadow-sm transition-transform duration-150 ease-out",
11482
+ suggestOn ? "translate-x-3" : "translate-x-0"
11478
11483
  )
11479
11484
  }
11480
- ),
11481
- className: cn69(
11482
- ROUND,
11483
- "min-w-0",
11484
- suggestOn ? "text-primary" : "text-muted"
11485
- ),
11486
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "block min-w-0 truncate", children: "Suggest designs" })
11485
+ )
11487
11486
  }
11488
- )
11487
+ ),
11488
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "block min-w-0 truncate", children: "Suggest designs" })
11489
11489
  }
11490
11490
  ),
11491
- showModeSelector ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11492
- DropdownMenu,
11493
- {
11494
- align: "end",
11495
- side: "top",
11496
- "aria-label": "Mode options",
11497
- items: modeItems,
11498
- className: "ml-auto shrink-0",
11499
- trigger: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11500
- Button,
11501
- {
11502
- variant: "ghost",
11503
- size: "md",
11504
- "aria-label": `Mode, current ${mode}`,
11505
- trailingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "chevron-down", size: 16 }),
11506
- children: mode
11507
- }
11508
- )
11509
- }
11510
- ) : null,
11511
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
11512
- "div",
11513
- {
11514
- className: cn69(
11515
- "flex shrink-0 items-center gap-sm",
11516
- showModeSelector ? "" : "ms-auto"
11517
- ),
11518
- children: [
11519
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11520
- IconButton,
11491
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "ms-auto flex min-w-0 shrink-0 items-center gap-sm", children: [
11492
+ showModeSelector ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11493
+ DropdownMenu,
11494
+ {
11495
+ align: "end",
11496
+ side: "top",
11497
+ "aria-label": "Mode options",
11498
+ items: modeItems,
11499
+ className: "shrink-0",
11500
+ trigger: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11501
+ Button,
11521
11502
  {
11522
- ref: micRef,
11523
- icon: "mic",
11524
- size: "lg",
11525
- variant: "secondary",
11526
- "aria-label": "Voice input",
11527
- disabled: lockInput,
11528
- onClick: startRecording,
11529
- className: ROUND
11503
+ variant: "ghost",
11504
+ size: "md",
11505
+ "aria-label": `Mode, current ${mode}`,
11506
+ trailingIcon: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Icon, { name: "chevron-down", size: 16 }),
11507
+ children: mode
11530
11508
  }
11531
- ),
11532
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "relative size-9 shrink-0", children: [
11533
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11534
- "div",
11509
+ )
11510
+ }
11511
+ ) : null,
11512
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11513
+ IconButton,
11514
+ {
11515
+ ref: micRef,
11516
+ icon: "mic",
11517
+ size: "lg",
11518
+ variant: "soft",
11519
+ "aria-label": "Voice input",
11520
+ disabled: lockInput,
11521
+ onClick: startRecording,
11522
+ className: ROUND
11523
+ }
11524
+ ),
11525
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "relative size-9 shrink-0", children: [
11526
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11527
+ "div",
11528
+ {
11529
+ "data-state": isStreaming ? "idle" : "active",
11530
+ inert: isStreaming,
11531
+ className: SWAP_LAYER,
11532
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11533
+ IconButton,
11535
11534
  {
11536
- "data-state": isStreaming ? "idle" : "active",
11537
- inert: isStreaming,
11538
- className: SWAP_LAYER,
11539
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11540
- IconButton,
11541
- {
11542
- icon: "arrow-up",
11543
- size: "lg",
11544
- variant: "primary",
11545
- "aria-label": "Send",
11546
- disabled: !canSend,
11547
- onClick: handleSend,
11548
- className: ROUND
11549
- }
11550
- )
11535
+ icon: "arrow-up",
11536
+ size: "lg",
11537
+ variant: canSend ? "primary" : "neutral",
11538
+ "aria-label": "Send",
11539
+ disabled: !canSend,
11540
+ onClick: handleSend,
11541
+ className: ROUND
11551
11542
  }
11552
- ),
11553
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11554
- "div",
11543
+ )
11544
+ }
11545
+ ),
11546
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11547
+ "div",
11548
+ {
11549
+ "data-state": isStreaming ? "active" : "idle",
11550
+ inert: !isStreaming,
11551
+ className: SWAP_LAYER,
11552
+ children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11553
+ IconButton,
11555
11554
  {
11556
- "data-state": isStreaming ? "active" : "idle",
11557
- inert: !isStreaming,
11558
- className: SWAP_LAYER,
11559
- children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
11560
- IconButton,
11561
- {
11562
- icon: "square",
11563
- size: "lg",
11564
- variant: "primary",
11565
- "aria-label": "Stop generation",
11566
- onClick: onStop,
11567
- className: ROUND
11568
- }
11569
- )
11555
+ icon: "square",
11556
+ size: "lg",
11557
+ variant: "inverse",
11558
+ "aria-label": "Stop generation",
11559
+ onClick: onStop,
11560
+ className: ROUND
11570
11561
  }
11571
11562
  )
11572
- ] })
11573
- ]
11574
- }
11575
- )
11563
+ }
11564
+ )
11565
+ ] })
11566
+ ] })
11576
11567
  ]
11577
11568
  }
11578
11569
  ),
@@ -11589,7 +11580,7 @@ var PromptInputBar = React90.forwardRef(
11589
11580
  ref: cancelRef,
11590
11581
  icon: "x",
11591
11582
  size: "lg",
11592
- variant: "secondary",
11583
+ variant: "soft",
11593
11584
  "aria-label": hasError ? "Close" : "Cancel recording",
11594
11585
  onClick: cancelRecording,
11595
11586
  className: ROUND