@astryxdesign/lab 0.7.5-canary.253fe63 → 0.7.5-canary.2af4d30

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.
@@ -74,7 +74,7 @@ export function ChatUnreadDivider({
74
74
  }
75
75
  }), /*#__PURE__*/_jsx("span", {
76
76
  ...{
77
- className: "x2lah0s x9ynric x141an7d x1lvx875 xjt36v0 x1ltkj2j"
77
+ className: "x2lah0s x9ynric x141an7d x1lvx875 x1wj83wy x1ltkj2j"
78
78
  },
79
79
  children: label
80
80
  })]
@@ -106,15 +106,15 @@ const variantStyles = {
106
106
  $$css: true
107
107
  },
108
108
  success: {
109
- kjVXCG: "x8y33gb",
109
+ kjVXCG: "x88o7k4",
110
110
  $$css: true
111
111
  },
112
112
  warning: {
113
- kjVXCG: "x9ezeq1",
113
+ kjVXCG: "x16d96h5",
114
114
  $$css: true
115
115
  },
116
116
  error: {
117
- kjVXCG: "x1vco6zm",
117
+ kjVXCG: "xqb94c9",
118
118
  $$css: true
119
119
  },
120
120
  neutral: {
@@ -1 +1 @@
1
- {"version":3,"file":"LogStream.d.ts","sourceRoot":"","sources":["../../src/LogStream/LogStream.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAkBlD,iCAAiC;AACjC,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEjE,0EAA0E;AAC1E,MAAM,WAAW,QAAQ;IACvB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,cAAc,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,MAA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B;yBAnOe,SAAS"}
@@ -164,11 +164,11 @@ const styles = {
164
164
  $$css: true
165
165
  },
166
166
  levelWarn: {
167
- kMwMTN: "xuj0v0c",
167
+ kMwMTN: "x10h9ou4",
168
168
  $$css: true
169
169
  },
170
170
  levelError: {
171
- kMwMTN: "x1lenag",
171
+ kMwMTN: "x1wj83wy",
172
172
  $$css: true
173
173
  },
174
174
  levelInfoTerminal: {
@@ -75,15 +75,15 @@ const colorStyles = {
75
75
  $$css: true
76
76
  },
77
77
  positive: {
78
- kMwMTN: "xtjic6",
78
+ kMwMTN: "x1vau044",
79
79
  $$css: true
80
80
  },
81
81
  negative: {
82
- kMwMTN: "xjt36v0",
82
+ kMwMTN: "xskb5cx",
83
83
  $$css: true
84
84
  },
85
85
  warning: {
86
- kMwMTN: "xs3pv69",
86
+ kMwMTN: "x4z9hng",
87
87
  $$css: true
88
88
  },
89
89
  inherit: {
package/dist/Stat/Stat.js CHANGED
@@ -78,11 +78,11 @@ const sizeStyles = {
78
78
  */
79
79
  const sentimentStyles = {
80
80
  positive: {
81
- kMwMTN: "xtjic6",
81
+ kMwMTN: "x1caiuuo",
82
82
  $$css: true
83
83
  },
84
84
  negative: {
85
- kMwMTN: "xjt36v0",
85
+ kMwMTN: "x1wj83wy",
86
86
  $$css: true
87
87
  },
88
88
  neutral: {
package/dist/lab.css CHANGED
@@ -337,16 +337,15 @@
337
337
  .x1s4jh2n:not(#\#):not(#\#):not(#\#){color:color-mix(in srgb,var(--color-text-teal) 52%,var(--color-text-secondary))}
338
338
  .x1wzna5w:not(#\#):not(#\#):not(#\#){color:color-mix(in srgb,var(--color-text-yellow) 52%,var(--color-text-secondary))}
339
339
  .x1heor9g:not(#\#):not(#\#):not(#\#){color:inherit}
340
- .xuj0v0c:not(#\#):not(#\#):not(#\#){color:light-dark(color-mix(in srgb,var(--color-warning) 58%,black),var(--color-warning))}
341
- .x1lenag:not(#\#):not(#\#):not(#\#){color:light-dark(var(--color-error),color-mix(in srgb,var(--color-error) 82%,white))}
342
340
  .x19co3pv:not(#\#):not(#\#):not(#\#){color:transparent}
343
341
  .xqwr325:not(#\#):not(#\#):not(#\#){color:var(--color-accent)}
344
- .xjt36v0:not(#\#):not(#\#):not(#\#){color:var(--color-error)}
345
342
  .xqa6c3m:not(#\#):not(#\#):not(#\#){color:var(--color-icon-disabled)}
343
+ .xskb5cx:not(#\#):not(#\#):not(#\#){color:var(--color-icon-error)}
346
344
  .xtbr613:not(#\#):not(#\#):not(#\#){color:var(--color-icon-primary)}
347
345
  .xv9yike:not(#\#):not(#\#):not(#\#){color:var(--color-icon-secondary)}
346
+ .x1vau044:not(#\#):not(#\#):not(#\#){color:var(--color-icon-success)}
347
+ .x4z9hng:not(#\#):not(#\#):not(#\#){color:var(--color-icon-warning)}
348
348
  .x17wrial:not(#\#):not(#\#):not(#\#){color:var(--color-on-accent)}
349
- .xtjic6:not(#\#):not(#\#):not(#\#){color:var(--color-success)}
350
349
  .x1wxerb0:not(#\#):not(#\#):not(#\#){color:var(--color-syntax-added-marker)}
351
350
  .xt5rlkq:not(#\#):not(#\#):not(#\#){color:var(--color-syntax-punctuation)}
352
351
  .x103bwea:not(#\#):not(#\#):not(#\#){color:var(--color-syntax-removed-marker)}
@@ -355,6 +354,7 @@
355
354
  .x1vvqiwl:not(#\#):not(#\#):not(#\#){color:var(--color-text-blue)}
356
355
  .x1txnczv:not(#\#):not(#\#):not(#\#){color:var(--color-text-cyan)}
357
356
  .xnbbluu:not(#\#):not(#\#):not(#\#){color:var(--color-text-disabled)}
357
+ .x1wj83wy:not(#\#):not(#\#):not(#\#){color:var(--color-text-error)}
358
358
  .xru1t7f:not(#\#):not(#\#):not(#\#){color:var(--color-text-gray)}
359
359
  .xltfdvo:not(#\#):not(#\#):not(#\#){color:var(--color-text-green)}
360
360
  .xm47u9q:not(#\#):not(#\#):not(#\#){color:var(--color-text-orange)}
@@ -363,9 +363,10 @@
363
363
  .x1m9wyeb:not(#\#):not(#\#):not(#\#){color:var(--color-text-purple)}
364
364
  .x1joocv1:not(#\#):not(#\#):not(#\#){color:var(--color-text-red)}
365
365
  .xv1l7n4:not(#\#):not(#\#):not(#\#){color:var(--color-text-secondary)}
366
+ .x1caiuuo:not(#\#):not(#\#):not(#\#){color:var(--color-text-success)}
366
367
  .x9x0lbs:not(#\#):not(#\#):not(#\#){color:var(--color-text-teal)}
368
+ .x10h9ou4:not(#\#):not(#\#):not(#\#){color:var(--color-text-warning)}
367
369
  .xdhq94a:not(#\#):not(#\#):not(#\#){color:var(--color-text-yellow)}
368
- .xs3pv69:not(#\#):not(#\#):not(#\#){color:var(--color-warning)}
369
370
  .x1kihgfc:not(#\#):not(#\#):not(#\#){column-gap:var(--spacing-0-5)}
370
371
  .x1lfs0n9:not(#\#):not(#\#):not(#\#){column-gap:var(--spacing-1)}
371
372
  .xak3so:not(#\#):not(#\#):not(#\#){column-gap:var(--spacing-2)}
@@ -528,13 +529,13 @@
528
529
  .ximx5ud:not(#\#):not(#\#):not(#\#){stroke:var(--color-accent-muted)}
529
530
  .xjsr54c:not(#\#):not(#\#):not(#\#){stroke:var(--color-accent)}
530
531
  .xjswp7v:not(#\#):not(#\#):not(#\#){stroke:var(--color-error-muted)}
531
- .x1vco6zm:not(#\#):not(#\#):not(#\#){stroke:var(--color-error)}
532
532
  .x1uro670:not(#\#):not(#\#):not(#\#){stroke:var(--color-success-muted)}
533
- .x8y33gb:not(#\#):not(#\#):not(#\#){stroke:var(--color-success)}
534
533
  .xuxf9kk:not(#\#):not(#\#):not(#\#){stroke:var(--color-text-disabled)}
534
+ .xqb94c9:not(#\#):not(#\#):not(#\#){stroke:var(--color-text-error)}
535
+ .x88o7k4:not(#\#):not(#\#):not(#\#){stroke:var(--color-text-success)}
536
+ .x16d96h5:not(#\#):not(#\#):not(#\#){stroke:var(--color-text-warning)}
535
537
  .xpi25hw:not(#\#):not(#\#):not(#\#){stroke:var(--color-track)}
536
538
  .x1wjzxuj:not(#\#):not(#\#):not(#\#){stroke:var(--color-warning-muted)}
537
- .x9ezeq1:not(#\#):not(#\#):not(#\#){stroke:var(--color-warning)}
538
539
  .xeq4nuv:not(#\#):not(#\#):not(#\#){tab-size:2}
539
540
  .x140o2bo:not(#\#):not(#\#):not(#\#){table-layout:fixed}
540
541
  .x2b8uid:not(#\#):not(#\#):not(#\#){text-align:center}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/lab",
3
- "version": "0.7.5-canary.253fe63",
3
+ "version": "0.7.5-canary.2af4d30",
4
4
  "description": "Experimental Astryx components — published to npm only under the @canary dist-tag for early testing; never released as a stable (latest) version.",
5
5
  "author": "Meta Open Source",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@stylexjs/stylex": ">=0.10.0",
52
- "@astryxdesign/core": "0.7.5-canary.253fe63",
52
+ "@astryxdesign/core": "0.7.5-canary.2af4d30",
53
53
  "react": ">=19.0.0",
54
54
  "react-dom": ">=19.0.0"
55
55
  },
@@ -59,8 +59,8 @@
59
59
  "d3-shape": "^3.2.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@astryxdesign/a11y-spec": "0.7.5-canary.253fe63",
63
- "@astryxdesign/cli": "0.7.5-canary.253fe63",
62
+ "@astryxdesign/a11y-spec": "0.7.5-canary.2af4d30",
63
+ "@astryxdesign/cli": "0.7.5-canary.2af4d30",
64
64
  "@babel/cli": "^7.29.7",
65
65
  "@babel/core": "^7.29.7",
66
66
  "@babel/preset-react": "^7.29.7",
@@ -63,7 +63,7 @@ const styles = stylex.create({
63
63
  fontFamily: typographyVars['--font-family-body'],
64
64
  fontSize: typeScaleVars['--text-supporting-size'],
65
65
  fontWeight: fontWeightVars['--font-weight-bold'],
66
- color: colorVars['--color-error'],
66
+ color: colorVars['--color-text-error'],
67
67
  lineHeight: typeScaleVars['--text-supporting-leading'],
68
68
  },
69
69
  });
@@ -260,13 +260,13 @@ const variantStyles = stylex.create({
260
260
  stroke: colorVars['--color-accent'],
261
261
  },
262
262
  success: {
263
- stroke: colorVars['--color-success'],
263
+ stroke: colorVars['--color-text-success'],
264
264
  },
265
265
  warning: {
266
- stroke: colorVars['--color-warning'],
266
+ stroke: colorVars['--color-text-warning'],
267
267
  },
268
268
  error: {
269
- stroke: colorVars['--color-error'],
269
+ stroke: colorVars['--color-text-error'],
270
270
  },
271
271
  neutral: {
272
272
  stroke: colorVars['--color-text-disabled'],
@@ -11,7 +11,7 @@ export const docs = {
11
11
 
12
12
  usage: {
13
13
  description:
14
- 'Experimental streaming log viewer: mono grid rows (timestamp | level | source | message) with token-derived level accents, expandable per-row detail panels, follow-scroll live tailing with a "Jump to latest" affordance, and an always-dark terminal variant. Appended rows fade in via @starting-style. Live announcements follow the pinning state: the role="log" region is aria-live="polite" only while following the tail, and aria-live="off" while unfollowed, so a busy stream never floods assistive tech.',
14
+ 'Experimental streaming log viewer: mono grid rows (timestamp | level | source | message) with token-derived level accents, expandable per-row detail panels, follow-scroll live tailing with a "Jump to latest" affordance, and an always-dark terminal variant. In the default variant, warning and error labels use their plain-surface status foreground roles. Appended rows fade in via @starting-style. Live announcements follow the pinning state: the role="log" region is aria-live="polite" only while following the tail, and aria-live="off" while unfollowed, so a busy stream never floods assistive tech.',
15
15
  },
16
16
 
17
17
  props: [
@@ -233,14 +233,12 @@ const styles = stylex.create({
233
233
  },
234
234
  levelInfo: {color: colorVars['--color-text-secondary']},
235
235
  levelDebug: {color: colorVars['--color-text-disabled']},
236
- // Token amber/red are tuned for fills; as small text they miss 4.5:1.
237
- // light-dark() darkens the amber in light mode and lifts the red in dark
238
- // mode, both derived from the tokens.
236
+ // Plain-surface warning/error labels use the dedicated foreground roles.
239
237
  levelWarn: {
240
- color: `light-dark(color-mix(in srgb, ${colorVars['--color-warning']} 58%, black), ${colorVars['--color-warning']})`,
238
+ color: colorVars['--color-text-warning'],
241
239
  },
242
240
  levelError: {
243
- color: `light-dark(${colorVars['--color-error']}, color-mix(in srgb, ${colorVars['--color-error']} 82%, white))`,
241
+ color: colorVars['--color-text-error'],
244
242
  },
245
243
  levelInfoTerminal: {color: TERM.text},
246
244
  levelDebugTerminal: {color: TERM.textDim},
@@ -118,9 +118,9 @@ const colorStyles = stylex.create({
118
118
  secondary: {color: colorVars['--color-icon-secondary']},
119
119
  disabled: {color: colorVars['--color-icon-disabled']},
120
120
  accent: {color: colorVars['--color-accent']},
121
- positive: {color: colorVars['--color-success']},
122
- negative: {color: colorVars['--color-error']},
123
- warning: {color: colorVars['--color-warning']},
121
+ positive: {color: colorVars['--color-icon-success']},
122
+ negative: {color: colorVars['--color-icon-error']},
123
+ warning: {color: colorVars['--color-icon-warning']},
124
124
  inherit: {color: 'inherit'},
125
125
  });
126
126
 
package/src/Stat/Stat.tsx CHANGED
@@ -116,10 +116,10 @@ const sizeStyles = stylex.create({
116
116
  */
117
117
  const sentimentStyles = stylex.create({
118
118
  positive: {
119
- color: colorVars['--color-success'],
119
+ color: colorVars['--color-text-success'],
120
120
  },
121
121
  negative: {
122
- color: colorVars['--color-error'],
122
+ color: colorVars['--color-text-error'],
123
123
  },
124
124
  neutral: {
125
125
  color: colorVars['--color-text-secondary'],