@designa8/vibedesign-linear-internal-v1-b737 0.11.3 → 0.11.5

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.11.3**.
3
+ Complete design system generated by Atoms Design, version **0.11.5**.
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
@@ -6166,13 +6166,21 @@ var clampStyle = (lines) => ({
6166
6166
  WebkitBoxOrient: "vertical",
6167
6167
  overflow: "hidden"
6168
6168
  });
6169
- var CHUNK_TEXT_CLASS = "whitespace-pre-wrap text-body-md leading-body-lg text-body";
6169
+ var TONE_CLASS = {
6170
+ ink: "text-ink",
6171
+ body: "text-body"
6172
+ };
6173
+ var SIZE_CLASS = {
6174
+ sm: "text-body-sm leading-body-sm",
6175
+ md: "text-body-md leading-body-lg"
6176
+ };
6170
6177
  function MessageParagraph({
6171
6178
  index,
6172
6179
  text,
6173
6180
  maxLines,
6174
6181
  clamp: clamp2,
6175
6182
  showFade,
6183
+ textClassName,
6176
6184
  onOverflowChange
6177
6185
  }) {
6178
6186
  const measureRef = React49.useRef(null);
@@ -6190,7 +6198,7 @@ function MessageParagraph({
6190
6198
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
6191
6199
  "p",
6192
6200
  {
6193
- className: CHUNK_TEXT_CLASS,
6201
+ className: textClassName,
6194
6202
  style: clamp2 ? clampStyle(maxLines) : void 0,
6195
6203
  children: text
6196
6204
  }
@@ -6212,7 +6220,7 @@ function MessageParagraph({
6212
6220
  "aria-hidden": "true",
6213
6221
  className: cn38(
6214
6222
  "invisible absolute inset-x-0 top-0 -z-10",
6215
- CHUNK_TEXT_CLASS
6223
+ textClassName
6216
6224
  ),
6217
6225
  style: clampStyle(maxLines),
6218
6226
  children: text
@@ -6229,6 +6237,9 @@ var ExpandableMessage = React49.forwardRef(
6229
6237
  onExpandedChange,
6230
6238
  disabled = false,
6231
6239
  variant = "card",
6240
+ tone = "body",
6241
+ size = "md",
6242
+ toggleTone = "default",
6232
6243
  toggleClassName,
6233
6244
  className,
6234
6245
  ...rest
@@ -6265,7 +6276,13 @@ var ExpandableMessage = React49.forwardRef(
6265
6276
  const canExpand = paragraphs.some(
6266
6277
  (_, index) => overflowing[index] === true
6267
6278
  );
6268
- const toggleTone = toggleClassName ?? "text-primary hover:text-primary-hover";
6279
+ const textClassName = cn38(
6280
+ "whitespace-pre-wrap",
6281
+ SIZE_CLASS[size],
6282
+ TONE_CLASS[tone]
6283
+ );
6284
+ const isQuietToggle = toggleTone === "inherit";
6285
+ const resolvedToggleClassName = toggleClassName ?? (isQuietToggle ? "text-inherit hover:underline decoration-1 underline-offset-4" : "text-primary hover:bg-surface-soft hover:text-primary-hover");
6269
6286
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
6270
6287
  "div",
6271
6288
  {
@@ -6287,6 +6304,7 @@ var ExpandableMessage = React49.forwardRef(
6287
6304
  maxLines,
6288
6305
  clamp: clamp2,
6289
6306
  showFade: !isFlush && clamp2,
6307
+ textClassName,
6290
6308
  onOverflowChange: handleOverflowChange
6291
6309
  },
6292
6310
  index
@@ -6301,8 +6319,8 @@ var ExpandableMessage = React49.forwardRef(
6301
6319
  "aria-expanded": expanded,
6302
6320
  "aria-controls": textId,
6303
6321
  className: cn38(
6304
- "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
6305
- toggleTone
6322
+ "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
6323
+ resolvedToggleClassName
6306
6324
  ),
6307
6325
  children: [
6308
6326
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: expanded ? "Show less" : "Show more" }),
package/dist/index.js CHANGED
@@ -6022,13 +6022,21 @@ var clampStyle = (lines) => ({
6022
6022
  WebkitBoxOrient: "vertical",
6023
6023
  overflow: "hidden"
6024
6024
  });
6025
- var CHUNK_TEXT_CLASS = "whitespace-pre-wrap text-body-md leading-body-lg text-body";
6025
+ var TONE_CLASS = {
6026
+ ink: "text-ink",
6027
+ body: "text-body"
6028
+ };
6029
+ var SIZE_CLASS = {
6030
+ sm: "text-body-sm leading-body-sm",
6031
+ md: "text-body-md leading-body-lg"
6032
+ };
6026
6033
  function MessageParagraph({
6027
6034
  index,
6028
6035
  text,
6029
6036
  maxLines,
6030
6037
  clamp: clamp2,
6031
6038
  showFade,
6039
+ textClassName,
6032
6040
  onOverflowChange
6033
6041
  }) {
6034
6042
  const measureRef = React49.useRef(null);
@@ -6046,7 +6054,7 @@ function MessageParagraph({
6046
6054
  /* @__PURE__ */ jsx49(
6047
6055
  "p",
6048
6056
  {
6049
- className: CHUNK_TEXT_CLASS,
6057
+ className: textClassName,
6050
6058
  style: clamp2 ? clampStyle(maxLines) : void 0,
6051
6059
  children: text
6052
6060
  }
@@ -6068,7 +6076,7 @@ function MessageParagraph({
6068
6076
  "aria-hidden": "true",
6069
6077
  className: cn38(
6070
6078
  "invisible absolute inset-x-0 top-0 -z-10",
6071
- CHUNK_TEXT_CLASS
6079
+ textClassName
6072
6080
  ),
6073
6081
  style: clampStyle(maxLines),
6074
6082
  children: text
@@ -6085,6 +6093,9 @@ var ExpandableMessage = React49.forwardRef(
6085
6093
  onExpandedChange,
6086
6094
  disabled = false,
6087
6095
  variant = "card",
6096
+ tone = "body",
6097
+ size = "md",
6098
+ toggleTone = "default",
6088
6099
  toggleClassName,
6089
6100
  className,
6090
6101
  ...rest
@@ -6121,7 +6132,13 @@ var ExpandableMessage = React49.forwardRef(
6121
6132
  const canExpand = paragraphs.some(
6122
6133
  (_, index) => overflowing[index] === true
6123
6134
  );
6124
- const toggleTone = toggleClassName ?? "text-primary hover:text-primary-hover";
6135
+ const textClassName = cn38(
6136
+ "whitespace-pre-wrap",
6137
+ SIZE_CLASS[size],
6138
+ TONE_CLASS[tone]
6139
+ );
6140
+ const isQuietToggle = toggleTone === "inherit";
6141
+ const resolvedToggleClassName = toggleClassName ?? (isQuietToggle ? "text-inherit hover:underline decoration-1 underline-offset-4" : "text-primary hover:bg-surface-soft hover:text-primary-hover");
6125
6142
  return /* @__PURE__ */ jsxs43(
6126
6143
  "div",
6127
6144
  {
@@ -6143,6 +6160,7 @@ var ExpandableMessage = React49.forwardRef(
6143
6160
  maxLines,
6144
6161
  clamp: clamp2,
6145
6162
  showFade: !isFlush && clamp2,
6163
+ textClassName,
6146
6164
  onOverflowChange: handleOverflowChange
6147
6165
  },
6148
6166
  index
@@ -6157,8 +6175,8 @@ var ExpandableMessage = React49.forwardRef(
6157
6175
  "aria-expanded": expanded,
6158
6176
  "aria-controls": textId,
6159
6177
  className: cn38(
6160
- "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
6161
- toggleTone
6178
+ "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
6179
+ resolvedToggleClassName
6162
6180
  ),
6163
6181
  children: [
6164
6182
  /* @__PURE__ */ jsx49("span", { children: expanded ? "Show less" : "Show more" }),
package/dist/styles.css CHANGED
@@ -89,6 +89,7 @@
89
89
  --text-body-md--letter-spacing: -0.1px;
90
90
  --text-body-sm: 13px;
91
91
  --text-body-sm--font-weight: 400;
92
+ --leading-body-sm: 1.45;
92
93
  --text-body-sm--line-height: 1.45;
93
94
  --text-body-sm--letter-spacing: 0;
94
95
  --text-caption: 12px;
@@ -694,12 +695,6 @@
694
695
  .h-64 {
695
696
  height: calc(var(--spacing) * 64);
696
697
  }
697
- .h-80 {
698
- height: calc(var(--spacing) * 80);
699
- }
700
- .h-96 {
701
- height: calc(var(--spacing) * 96);
702
- }
703
698
  .h-base {
704
699
  height: var(--spacing-base);
705
700
  }
@@ -724,9 +719,6 @@
724
719
  .max-h-72 {
725
720
  max-height: calc(var(--spacing) * 72);
726
721
  }
727
- .max-h-80 {
728
- max-height: calc(var(--spacing) * 80);
729
- }
730
722
  .max-h-96 {
731
723
  max-height: calc(var(--spacing) * 96);
732
724
  }
@@ -1804,6 +1796,10 @@
1804
1796
  --tw-leading: var(--leading-body-lg);
1805
1797
  line-height: var(--leading-body-lg);
1806
1798
  }
1799
+ .leading-body-sm {
1800
+ --tw-leading: var(--leading-body-sm);
1801
+ line-height: var(--leading-body-sm);
1802
+ }
1807
1803
  .tracking-overline {
1808
1804
  --tw-tracking: var(--tracking-overline);
1809
1805
  letter-spacing: var(--tracking-overline);
@@ -1829,6 +1825,9 @@
1829
1825
  .text-hairline-strong {
1830
1826
  color: var(--color-hairline-strong);
1831
1827
  }
1828
+ .text-inherit {
1829
+ color: inherit;
1830
+ }
1832
1831
  .text-ink {
1833
1832
  color: var(--color-ink);
1834
1833
  }
@@ -2316,6 +2315,13 @@
2316
2315
  }
2317
2316
  }
2318
2317
  }
2318
+ .hover\:underline {
2319
+ &:hover {
2320
+ @media (hover: hover) {
2321
+ text-decoration-line: underline;
2322
+ }
2323
+ }
2324
+ }
2319
2325
  .hover\:decoration-transparent {
2320
2326
  &:hover {
2321
2327
  @media (hover: hover) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designa8/vibedesign-linear-internal-v1-b737",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
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",
@@ -12,7 +12,8 @@ export interface CodeEditorFile {
12
12
  source: string;
13
13
  }
14
14
 
15
- export interface CodeEditorProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ export interface CodeEditorProps
16
+ extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
16
17
  files: CodeEditorFile[];
17
18
  /** Name of the visible file. Falls back to the first file. */
18
19
  activeFile?: string;
@@ -70,8 +70,8 @@ export default function CodeEditorPreview() {
70
70
  }));
71
71
 
72
72
  return (
73
- <div className="mx-auto w-full max-w-3xl space-y-lg p-lg">
74
- <section className="space-y-sm">
73
+ <div className="mx-auto w-full max-w-3xl space-y-md p-md">
74
+ <section className="space-y-xs">
75
75
  <p className="text-overline text-muted-soft">Read-only viewer</p>
76
76
  <CodeEditor
77
77
  files={files}
@@ -80,7 +80,7 @@ export default function CodeEditorPreview() {
80
80
  folderLabel="atoms"
81
81
  pathPrefix="atoms / CardShell"
82
82
  onCopy={() => setCopies((count) => count + 1)}
83
- className="h-96 max-h-96 min-h-0"
83
+ className="h-64 max-h-64 min-h-0"
84
84
  />
85
85
  <p className="text-caption text-muted" aria-live="polite">
86
86
  {copies === 0
@@ -89,20 +89,7 @@ export default function CodeEditorPreview() {
89
89
  </p>
90
90
  </section>
91
91
 
92
- <section className="space-y-sm">
93
- <p className="text-overline text-muted-soft">Writing (streaming) state</p>
94
- <CodeEditor
95
- files={files}
96
- activeFile="tokens.css"
97
- onActiveFileChange={() => {}}
98
- folderLabel="tokens"
99
- pathPrefix="tokens / generated"
100
- streamingFileNames={["tokens.css"]}
101
- className="h-80 max-h-80 min-h-0"
102
- />
103
- </section>
104
-
105
- <section className="space-y-sm">
92
+ <section className="space-y-xs">
106
93
  <p className="text-overline text-muted-soft">Editable with line gutter</p>
107
94
  <CodeEditor
108
95
  files={files}
@@ -114,20 +101,7 @@ export default function CodeEditorPreview() {
114
101
  onChange={(name, source) =>
115
102
  setDraft((prev) => ({ ...prev, [name]: source }))
116
103
  }
117
- className="h-80 max-h-80 min-h-0"
118
- />
119
- </section>
120
-
121
- <section className="space-y-sm">
122
- <p className="text-overline text-muted-soft">Scoped dark theme</p>
123
- <CodeEditor
124
- files={files}
125
- activeFile="manifest.json"
126
- onActiveFileChange={() => {}}
127
- folderLabel="config"
128
- pathPrefix="config / manifest"
129
- dark
130
- className="h-80 max-h-80 min-h-0"
104
+ className="h-64 max-h-64 min-h-0"
131
105
  />
132
106
  </section>
133
107
  </div>
@@ -3,6 +3,19 @@ import { Icon } from "../Icon";
3
3
 
4
4
  export type ExpandableMessageVariant = "card" | "flush";
5
5
 
6
+ /** Paragraph text colour. `body` is the default reading colour, `ink` is stronger. */
7
+ export type ExpandableMessageTone = "ink" | "body";
8
+
9
+ /** Paragraph text scale: `sm` for compact bubbles, `md` for the default body size. */
10
+ export type ExpandableMessageSize = "sm" | "md";
11
+
12
+ /**
13
+ * Toggle treatment. `default` is the primary link with a soft hover patch;
14
+ * `inherit` drops the hover patch and inherits the surrounding colour, for use
15
+ * inside a tinted or inverted bubble.
16
+ */
17
+ export type ExpandableMessageToggleTone = "default" | "inherit";
18
+
6
19
  export interface ExpandableMessageProps
7
20
  extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
8
21
  /** Raw message text. Newlines split it into paragraphs; blank lines are dropped. */
@@ -21,7 +34,13 @@ export interface ExpandableMessageProps
21
34
  * clamped paragraph. `flush` — bare text only, for use inside a chat bubble.
22
35
  */
23
36
  variant?: ExpandableMessageVariant;
24
- /** Recolors the toggle, e.g. on a tinted or inverted chat bubble. */
37
+ /** Paragraph text colour. Default `body`. */
38
+ tone?: ExpandableMessageTone;
39
+ /** Paragraph text scale — `sm` uses the body-sm role, `md` the body-md role. Default `md`. */
40
+ size?: ExpandableMessageSize;
41
+ /** Toggle treatment. Default `default`. */
42
+ toggleTone?: ExpandableMessageToggleTone;
43
+ /** Recolors the toggle, e.g. on a tinted or inverted chat bubble. Overrides `toggleTone`. */
25
44
  toggleClassName?: string;
26
45
  }
27
46
 
@@ -35,8 +54,15 @@ const clampStyle = (lines: number): React.CSSProperties => ({
35
54
  overflow: "hidden",
36
55
  });
37
56
 
38
- const CHUNK_TEXT_CLASS =
39
- "whitespace-pre-wrap text-body-md leading-body-lg text-body";
57
+ const TONE_CLASS: Record<ExpandableMessageTone, string> = {
58
+ ink: "text-ink",
59
+ body: "text-body",
60
+ };
61
+
62
+ const SIZE_CLASS: Record<ExpandableMessageSize, string> = {
63
+ sm: "text-body-sm leading-body-sm",
64
+ md: "text-body-md leading-body-lg",
65
+ };
40
66
 
41
67
  interface MessageParagraphProps {
42
68
  index: number;
@@ -44,6 +70,7 @@ interface MessageParagraphProps {
44
70
  maxLines: number;
45
71
  clamp: boolean;
46
72
  showFade: boolean;
73
+ textClassName: string;
47
74
  onOverflowChange: (index: number, overflowing: boolean) => void;
48
75
  }
49
76
 
@@ -58,6 +85,7 @@ function MessageParagraph({
58
85
  maxLines,
59
86
  clamp,
60
87
  showFade,
88
+ textClassName,
61
89
  onOverflowChange,
62
90
  }: MessageParagraphProps) {
63
91
  const measureRef = React.useRef<HTMLParagraphElement>(null);
@@ -77,7 +105,7 @@ function MessageParagraph({
77
105
  return (
78
106
  <div className="relative">
79
107
  <p
80
- className={CHUNK_TEXT_CLASS}
108
+ className={textClassName}
81
109
  style={clamp ? clampStyle(maxLines) : undefined}
82
110
  >
83
111
  {text}
@@ -97,7 +125,7 @@ function MessageParagraph({
97
125
  aria-hidden="true"
98
126
  className={cn(
99
127
  "invisible absolute inset-x-0 top-0 -z-10",
100
- CHUNK_TEXT_CLASS,
128
+ textClassName,
101
129
  )}
102
130
  style={clampStyle(maxLines)}
103
131
  >
@@ -120,6 +148,9 @@ export const ExpandableMessage = React.forwardRef<
120
148
  onExpandedChange,
121
149
  disabled = false,
122
150
  variant = "card",
151
+ tone = "body",
152
+ size = "md",
153
+ toggleTone = "default",
123
154
  toggleClassName,
124
155
  className,
125
156
  ...rest
@@ -164,8 +195,19 @@ export const ExpandableMessage = React.forwardRef<
164
195
  const canExpand = paragraphs.some(
165
196
  (_, index) => overflowing[index] === true,
166
197
  );
167
- const toggleTone =
168
- toggleClassName ?? "text-primary hover:text-primary-hover";
198
+
199
+ const textClassName = cn(
200
+ "whitespace-pre-wrap",
201
+ SIZE_CLASS[size],
202
+ TONE_CLASS[tone],
203
+ );
204
+
205
+ const isQuietToggle = toggleTone === "inherit";
206
+ const resolvedToggleClassName =
207
+ toggleClassName ??
208
+ (isQuietToggle
209
+ ? "text-inherit hover:underline decoration-1 underline-offset-4"
210
+ : "text-primary hover:bg-surface-soft hover:text-primary-hover");
169
211
 
170
212
  return (
171
213
  <div
@@ -188,6 +230,7 @@ export const ExpandableMessage = React.forwardRef<
188
230
  maxLines={maxLines}
189
231
  clamp={clamp}
190
232
  showFade={!isFlush && clamp}
233
+ textClassName={textClassName}
191
234
  onOverflowChange={handleOverflowChange}
192
235
  />
193
236
  );
@@ -202,8 +245,8 @@ export const ExpandableMessage = React.forwardRef<
202
245
  aria-expanded={expanded}
203
246
  aria-controls={textId}
204
247
  className={cn(
205
- "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out hover:bg-surface-soft focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
206
- toggleTone,
248
+ "mt-xs flex w-full cursor-pointer items-center justify-start gap-xs rounded-none border-0 bg-transparent px-0 py-0 text-left text-body-sm font-weight-label transition-colors duration-150 ease-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus-blue disabled:cursor-not-allowed disabled:opacity-50",
249
+ resolvedToggleClassName,
207
250
  )}
208
251
  >
209
252
  <span>{expanded ? "Show less" : "Show more"}</span>
@@ -20,13 +20,14 @@ const SHORT =
20
20
  export default function ExpandableMessagePreview() {
21
21
  const [expandedCard, setExpandedCard] = React.useState(false);
22
22
  const [expandedFlush, setExpandedFlush] = React.useState(false);
23
+ const [expandedInk, setExpandedInk] = React.useState(false);
23
24
  const [maxLines, setMaxLines] = React.useState(3);
24
25
 
25
26
  return (
26
27
  <div className="w-full max-w-3xl mx-auto space-y-lg p-lg">
27
28
  <div className="space-y-xs">
28
29
  <p className="text-caption text-muted">
29
- Card · clamped at {maxLines} lines
30
+ Card · clamped at {maxLines} lines · tone body · size md
30
31
  </p>
31
32
  <ExpandableMessage
32
33
  content={LONG}
@@ -72,16 +73,34 @@ export default function ExpandableMessagePreview() {
72
73
 
73
74
  <div className="space-y-xs">
74
75
  <p className="text-caption text-muted">
75
- Flush · inside a tinted chat bubble
76
+ Flush · inside a tinted bubble · tone ink · size sm · toggle inherit
76
77
  </p>
77
78
  <div className="w-full rounded-lg bg-primary-soft p-md">
78
79
  <ExpandableMessage
79
80
  variant="flush"
80
81
  content={MULTI}
81
82
  maxLines={2}
83
+ tone="ink"
84
+ size="sm"
85
+ toggleTone="inherit"
82
86
  expanded={expandedFlush}
83
87
  onExpandedChange={setExpandedFlush}
84
- toggleClassName="text-primary hover:text-primary-hover"
88
+ />
89
+ </div>
90
+ </div>
91
+
92
+ <div className="space-y-xs">
93
+ <p className="text-caption text-muted">
94
+ Flush · tone ink · size md · toggle default
95
+ </p>
96
+ <div className="w-full rounded-lg border border-hairline bg-surface p-md">
97
+ <ExpandableMessage
98
+ variant="flush"
99
+ content={MULTI}
100
+ maxLines={2}
101
+ tone="ink"
102
+ expanded={expandedInk}
103
+ onExpandedChange={setExpandedInk}
85
104
  />
86
105
  </div>
87
106
  </div>