@designa8/vibedesign-linear-internal-v1-b737 0.12.0 → 0.12.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.12.0**.
3
+ Complete design system generated by Atoms Design, version **0.12.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
@@ -1091,6 +1091,7 @@ var letterBadge = (selected) => cn8(
1091
1091
  "flex h-lg w-lg shrink-0 items-center justify-center rounded-xs border text-caption transition-colors duration-150 ease-out",
1092
1092
  selected ? "border-primary bg-primary text-on-primary" : "border-hairline-strong bg-canvas text-muted group-hover:border-primary group-hover:text-primary"
1093
1093
  );
1094
+ var firstLineGlyph = "flex h-lg shrink-0 items-center";
1094
1095
  var PANEL = "min-h-0 overflow-hidden transition duration-200 ease-out data-[state=open]:translate-y-0 data-[state=open]:opacity-100 data-[state=closed]:pointer-events-none data-[state=closed]:opacity-0";
1095
1096
  var AgentQuestionCard = React11.forwardRef(
1096
1097
  ({
@@ -1269,7 +1270,7 @@ var AgentQuestionCard = React11.forwardRef(
1269
1270
  "aria-label": option.label,
1270
1271
  disabled: submitting,
1271
1272
  leadingIcon: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-hidden": "true", className: letterBadge(isSelected), children: letterFor(option, index) }),
1272
- trailingIcon: isSelected ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "check", size: 14, className: "text-primary" }) : void 0,
1273
+ trailingIcon: isSelected ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-hidden": "true", className: firstLineGlyph, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "check", size: 14, className: "text-primary" }) }) : void 0,
1273
1274
  onClick: () => setSelection(option.id),
1274
1275
  onKeyDown: radioKeys(index),
1275
1276
  className: "group",
@@ -1282,7 +1283,12 @@ var AgentQuestionCard = React11.forwardRef(
1282
1283
  "div",
1283
1284
  {
1284
1285
  className: cn8(
1285
- "flex w-full items-center gap-sm rounded-md border px-xs transition-colors duration-150 ease-out",
1286
+ "flex w-full items-center rounded-md border transition-colors duration-150 ease-out",
1287
+ // Both states land the letter badge 12px from the row edge:
1288
+ // the plain row button supplies that inset itself, while the
1289
+ // inline-field state pads the track (the square badge button
1290
+ // already centres its badge inside its own 4px of slack).
1291
+ freeTextSelected ? "gap-xs px-sm" : "px-0",
1286
1292
  errorMessage && freeTextSelected ? "border-semantic-error" : freeTextSelected ? "border-transparent bg-primary-soft" : "border-transparent"
1287
1293
  ),
1288
1294
  children: [
@@ -1353,7 +1359,7 @@ var AgentQuestionCard = React11.forwardRef(
1353
1359
  disabled: submitting
1354
1360
  }
1355
1361
  ) }),
1356
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "check", size: 14, className: "mr-xs shrink-0 text-primary" })
1362
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { "aria-hidden": "true", className: cn8(firstLineGlyph, "mr-xs"), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Icon, { name: "check", size: 14, className: "text-primary" }) })
1357
1363
  ] })
1358
1364
  ]
1359
1365
  }
package/dist/index.js CHANGED
@@ -946,6 +946,7 @@ var letterBadge = (selected) => cn8(
946
946
  "flex h-lg w-lg shrink-0 items-center justify-center rounded-xs border text-caption transition-colors duration-150 ease-out",
947
947
  selected ? "border-primary bg-primary text-on-primary" : "border-hairline-strong bg-canvas text-muted group-hover:border-primary group-hover:text-primary"
948
948
  );
949
+ var firstLineGlyph = "flex h-lg shrink-0 items-center";
949
950
  var PANEL = "min-h-0 overflow-hidden transition duration-200 ease-out data-[state=open]:translate-y-0 data-[state=open]:opacity-100 data-[state=closed]:pointer-events-none data-[state=closed]:opacity-0";
950
951
  var AgentQuestionCard = React11.forwardRef(
951
952
  ({
@@ -1124,7 +1125,7 @@ var AgentQuestionCard = React11.forwardRef(
1124
1125
  "aria-label": option.label,
1125
1126
  disabled: submitting,
1126
1127
  leadingIcon: /* @__PURE__ */ jsx11("span", { "aria-hidden": "true", className: letterBadge(isSelected), children: letterFor(option, index) }),
1127
- trailingIcon: isSelected ? /* @__PURE__ */ jsx11(Icon, { name: "check", size: 14, className: "text-primary" }) : void 0,
1128
+ trailingIcon: isSelected ? /* @__PURE__ */ jsx11("span", { "aria-hidden": "true", className: firstLineGlyph, children: /* @__PURE__ */ jsx11(Icon, { name: "check", size: 14, className: "text-primary" }) }) : void 0,
1128
1129
  onClick: () => setSelection(option.id),
1129
1130
  onKeyDown: radioKeys(index),
1130
1131
  className: "group",
@@ -1137,7 +1138,12 @@ var AgentQuestionCard = React11.forwardRef(
1137
1138
  "div",
1138
1139
  {
1139
1140
  className: cn8(
1140
- "flex w-full items-center gap-sm rounded-md border px-xs transition-colors duration-150 ease-out",
1141
+ "flex w-full items-center rounded-md border transition-colors duration-150 ease-out",
1142
+ // Both states land the letter badge 12px from the row edge:
1143
+ // the plain row button supplies that inset itself, while the
1144
+ // inline-field state pads the track (the square badge button
1145
+ // already centres its badge inside its own 4px of slack).
1146
+ freeTextSelected ? "gap-xs px-sm" : "px-0",
1141
1147
  errorMessage && freeTextSelected ? "border-semantic-error" : freeTextSelected ? "border-transparent bg-primary-soft" : "border-transparent"
1142
1148
  ),
1143
1149
  children: [
@@ -1208,7 +1214,7 @@ var AgentQuestionCard = React11.forwardRef(
1208
1214
  disabled: submitting
1209
1215
  }
1210
1216
  ) }),
1211
- /* @__PURE__ */ jsx11(Icon, { name: "check", size: 14, className: "mr-xs shrink-0 text-primary" })
1217
+ /* @__PURE__ */ jsx11("span", { "aria-hidden": "true", className: cn8(firstLineGlyph, "mr-xs"), children: /* @__PURE__ */ jsx11(Icon, { name: "check", size: 14, className: "text-primary" }) })
1212
1218
  ] })
1213
1219
  ]
1214
1220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Complete design system \"My Project linear-internal-v1\" generated by Atoms Design.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -76,6 +76,13 @@ const letterBadge = (selected: boolean): string =>
76
76
  : "border-hairline-strong bg-canvas text-muted group-hover:border-primary group-hover:text-primary",
77
77
  );
78
78
 
79
+ /**
80
+ * Wraps a first-line glyph (the trailing check) in a badge-height band so it
81
+ * centres on the same line as the letter badge instead of pinning to the top
82
+ * of a wrapped label.
83
+ */
84
+ const firstLineGlyph = "flex h-lg shrink-0 items-center";
85
+
79
86
  const PANEL =
80
87
  "min-h-0 overflow-hidden transition duration-200 ease-out data-[state=open]:translate-y-0 data-[state=open]:opacity-100 data-[state=closed]:pointer-events-none data-[state=closed]:opacity-0";
81
88
 
@@ -84,7 +91,9 @@ const PANEL =
84
91
  * Options are a radiogroup (arrow keys move and select), the trailing row turns
85
92
  * into an inline text field, and closing folds the card into a slim restore bar.
86
93
  * Option labels wrap onto multiple lines — agent options are often full
87
- * sentences — with the letter badge pinned to the first line.
94
+ * sentences — with the letter badge and the trailing check sitting on the first
95
+ * line. Every row, including the free-text one, shares one left inset so the
96
+ * letter badges line up in a single column.
88
97
  */
89
98
  export const AgentQuestionCard = React.forwardRef<
90
99
  HTMLDivElement,
@@ -303,7 +312,9 @@ export const AgentQuestionCard = React.forwardRef<
303
312
  }
304
313
  trailingIcon={
305
314
  isSelected ? (
306
- <Icon name="check" size={14} className="text-primary" />
315
+ <span aria-hidden="true" className={firstLineGlyph}>
316
+ <Icon name="check" size={14} className="text-primary" />
317
+ </span>
307
318
  ) : undefined
308
319
  }
309
320
  onClick={() => setSelection(option.id)}
@@ -318,7 +329,12 @@ export const AgentQuestionCard = React.forwardRef<
318
329
  {hasFreeText && (
319
330
  <div
320
331
  className={cn(
321
- "flex w-full items-center gap-sm rounded-md border px-xs transition-colors duration-150 ease-out",
332
+ "flex w-full items-center rounded-md border transition-colors duration-150 ease-out",
333
+ // Both states land the letter badge 12px from the row edge:
334
+ // the plain row button supplies that inset itself, while the
335
+ // inline-field state pads the track (the square badge button
336
+ // already centres its badge inside its own 4px of slack).
337
+ freeTextSelected ? "gap-xs px-sm" : "px-0",
322
338
  errorMessage && freeTextSelected
323
339
  ? "border-semantic-error"
324
340
  : freeTextSelected
@@ -400,7 +416,9 @@ export const AgentQuestionCard = React.forwardRef<
400
416
  disabled={submitting}
401
417
  />
402
418
  </div>
403
- <Icon name="check" size={14} className="mr-xs shrink-0 text-primary" />
419
+ <span aria-hidden="true" className={cn(firstLineGlyph, "mr-xs")}>
420
+ <Icon name="check" size={14} className="text-primary" />
421
+ </span>
404
422
  </>
405
423
  )}
406
424
  </div>