@astryxdesign/lab 0.1.9-canary.ae1eaed → 0.1.9-canary.d2d84f8

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.
Files changed (39) hide show
  1. package/dist/Stepper/Step.js +1 -1
  2. package/dist/Stepper/Stepper.d.ts +1 -1
  3. package/dist/Stepper/StepperContext.d.ts +1 -1
  4. package/dist/Stepper/StepperContext.js +1 -1
  5. package/package.json +3 -2
  6. package/src/Chart/ChartArea.doc.mjs +1 -1
  7. package/src/Chart/ChartBar.doc.mjs +1 -1
  8. package/src/Chart/ChartCandlestick.doc.mjs +1 -1
  9. package/src/Chart/ChartDot.doc.mjs +1 -1
  10. package/src/Chart/ChartDotGL.doc.mjs +1 -1
  11. package/src/Chart/ChartDotGLInteractive.doc.mjs +1 -1
  12. package/src/Chart/ChartHeatmapGL.doc.mjs +1 -1
  13. package/src/Chart/ChartLine.doc.mjs +1 -1
  14. package/src/Chart/ChartStreamGL.doc.mjs +1 -1
  15. package/src/Chat/ChatEmojiPicker.doc.mjs +1 -1
  16. package/src/Chat/ChatReactionBar.doc.mjs +1 -1
  17. package/src/Chat/ChatTypingIndicator.doc.mjs +1 -1
  18. package/src/Chat/ChatUnreadDivider.doc.mjs +1 -1
  19. package/src/ChatReasoning/ChatReasoning.doc.mjs +1 -1
  20. package/src/CodeEditor/CodeEditor.doc.mjs +1 -1
  21. package/src/Drawer/Drawer.doc.mjs +3 -3
  22. package/src/InfoTip/InfoTip.doc.mjs +3 -3
  23. package/src/LogStream/LogStream.doc.mjs +1 -1
  24. package/src/Radial/RadialChart.doc.mjs +1 -1
  25. package/src/RichTextEditor/RichTextEditor.doc.mjs +1 -1
  26. package/src/SVGIcon/SVGIcon.doc.mjs +1 -1
  27. package/src/Sankey/SankeyChart.doc.mjs +1 -1
  28. package/src/Schedule/Schedule.doc.mjs +1 -1
  29. package/src/Stat/Stat.doc.mjs +3 -3
  30. package/src/Stepper/Step.doc.mjs +1 -1
  31. package/src/Stepper/Step.tsx +1 -1
  32. package/src/Stepper/Stepper.doc.mjs +3 -3
  33. package/src/Stepper/Stepper.tsx +1 -1
  34. package/src/Stepper/StepperContext.ts +1 -1
  35. package/src/ThreeD/3DBar.doc.mjs +1 -1
  36. package/src/ThreeD/3DChart.doc.mjs +1 -1
  37. package/src/ThreeD/3DScatter.doc.mjs +1 -1
  38. package/src/ThreeD/3DScatterGL.doc.mjs +1 -1
  39. package/src/ThreeD/3DSurface.doc.mjs +1 -1
@@ -553,7 +553,7 @@ export function Step({
553
553
  status: status ?? undefined
554
554
  });
555
555
 
556
- // ======= ON-TRACK (EPS-aligned): indicator is a node on the connector =======
556
+ // ======= ON-TRACK: indicator is a node on the connector =======
557
557
  if (indicatorPosition === 'on-track') {
558
558
  // Connector fill is purely progress-based (matches the separated bar):
559
559
  // the segment before the indicator is "reached" once we're at/past this
@@ -50,7 +50,7 @@ export interface StepperProps extends BaseProps<HTMLOListElement> {
50
50
  * - 'separated': indicator lives in the label row, distinct from the progress
51
51
  * bar (the original Astryx layout).
52
52
  * - 'on-track': indicator is slotted into the connector line as a node on the
53
- * track (EPS-aligned design).
53
+ * track (the on-track indicator design).
54
54
  * @default 'separated'
55
55
  */
56
56
  indicatorPosition?: StepperIndicatorPosition;
@@ -6,7 +6,7 @@ export type StepperDensity = 'compact' | 'balanced' | 'spacious';
6
6
  * bar (Astryx's original layout).
7
7
  * - 'on-track': indicator is slotted *into* the connector line as a node on the
8
8
  * track, with the label beside (vertical) or below (horizontal). Aligns with
9
- * the EPS stepper design.
9
+ * the on-track stepper design.
10
10
  */
11
11
  export type StepperIndicatorPosition = 'separated' | 'on-track';
12
12
  export interface StepperContextValue {
@@ -20,7 +20,7 @@ import { createContext, use } from 'react';
20
20
  * bar (Astryx's original layout).
21
21
  * - 'on-track': indicator is slotted *into* the connector line as a node on the
22
22
  * track, with the label beside (vertical) or below (horizontal). Aligns with
23
- * the EPS stepper design.
23
+ * the on-track stepper design.
24
24
  */
25
25
 
26
26
  export const StepperContext = /*#__PURE__*/createContext(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/lab",
3
- "version": "0.1.9-canary.ae1eaed",
3
+ "version": "0.1.9-canary.d2d84f8",
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",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@stylexjs/stylex": ">=0.10.0",
48
- "@astryxdesign/core": "0.1.9-canary.ae1eaed",
48
+ "@astryxdesign/core": "0.1.9-canary.d2d84f8",
49
49
  "react": ">=19.0.0",
50
50
  "react-dom": ">=19.0.0",
51
51
  "lexical": "^0.46.0",
@@ -109,6 +109,7 @@
109
109
  "test": "vitest run --root ../..",
110
110
  "test:watch": "vitest --root ../..",
111
111
  "lint": "eslint src",
112
+ "typecheck:docs": "tsc --project tsconfig.docs.json",
112
113
  "typecheck": "tsc --project tsconfig.json --noEmit"
113
114
  }
114
115
  }
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartArea',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartBar',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartCandlestick',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartDot',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartDotGL',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartDotGLInteractive',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartHeatmapGL',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartLine',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChartStreamGL',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChatEmojiPicker',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChatReactionBar',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChatTypingIndicator',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChatUnreadDivider',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'ChatReasoning',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'CodeEditor',
@@ -1,5 +1,5 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
2
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
3
3
 
4
4
  export const docs = {
5
5
  name: 'Drawer',
@@ -123,7 +123,7 @@ const [lineItem, setLineItem] = useState(null);
123
123
  ],
124
124
  };
125
125
 
126
- /** @type {import('../docs-types').TranslationDoc} */
126
+ /** @type {import('../../../core/src/docs-types').TranslationDoc} */
127
127
  export const docsZh = {
128
128
  usage: {
129
129
  description: '用于检查器、详情视图和面板的边缘浮层——"点击表格行查看详情"的模式。按 Escape 关闭抽屉,焦点返回到打开它的元素。滑入/滑出动画遵循 prefers-reduced-motion。堆叠约定:同级抽屉后开的在上层,Escape 只关闭最上层的,关闭顺序由内向外——请以同级方式渲染,切勿嵌套。',
@@ -139,7 +139,7 @@ export const docsZh = {
139
139
  },
140
140
  };
141
141
 
142
- /** @type {import('../docs-types').TranslationDoc} */
142
+ /** @type {import('../../../core/src/docs-types').TranslationDoc} */
143
143
  export const docsDense = {
144
144
  description: 'edge-anchored overlay (native <dialog>): start/end side panel or top/bottom sheet',
145
145
  usage: {
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'InfoTip',
@@ -39,7 +39,7 @@ export const docs = {
39
39
  },
40
40
  };
41
41
 
42
- /** @type {import('../docs-types').ComponentDoc} */
42
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
43
43
  export const docsZh = {
44
44
  name: 'InfoTip',
45
45
  displayName: 'Info Tip',
@@ -75,7 +75,7 @@ export const docsZh = {
75
75
  },
76
76
  };
77
77
 
78
- /** @type {import('../docs-types').TranslationDoc} */
78
+ /** @type {import('../../../core/src/docs-types').TranslationDoc} */
79
79
  export const docsDense = {
80
80
  description:
81
81
  'Inline info-icon help affordance: accessible "i" button trigger pre-wired into a Tooltip.',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'LogStream',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'RadialChart',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'RichTextEditor',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'SVGIcon',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'SankeyChart',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'Schedule',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'Stat',
@@ -70,7 +70,7 @@ export const docs = {
70
70
  },
71
71
  };
72
72
 
73
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
73
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
74
74
  export const docsZh = {
75
75
  name: 'Stat',
76
76
  displayName: 'Stat',
@@ -136,7 +136,7 @@ export const docsZh = {
136
136
  },
137
137
  };
138
138
 
139
- /** @type {import('../../core/src/docs-types').TranslationDoc} */
139
+ /** @type {import('../../../core/src/docs-types').TranslationDoc} */
140
140
  export const docsDense = {
141
141
  description: 'KPI/metric display: label, large tabular-nums value, sentiment-aware delta, and trend media slot.',
142
142
  usage: {
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'Step',
@@ -871,7 +871,7 @@ export function Step({
871
871
  status: status ?? undefined,
872
872
  });
873
873
 
874
- // ======= ON-TRACK (EPS-aligned): indicator is a node on the connector =======
874
+ // ======= ON-TRACK: indicator is a node on the connector =======
875
875
  if (indicatorPosition === 'on-track') {
876
876
  // Connector fill is purely progress-based (matches the separated bar):
877
877
  // the segment before the indicator is "reached" once we're at/past this
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: 'Stepper',
@@ -159,7 +159,7 @@ export const docs = {
159
159
  },
160
160
  };
161
161
 
162
- /** @type {import('../../core/src/docs-types').TranslationDoc} */
162
+ /** @type {import('../../../core/src/docs-types').TranslationDoc} */
163
163
  export const docsDense = {
164
164
  description: 'numbered step sequence for multi-step workflows',
165
165
  usage: {
@@ -206,7 +206,7 @@ export const docsDense = {
206
206
  ],
207
207
  };
208
208
 
209
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
209
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
210
210
  export const docsZh = {
211
211
  name: 'Stepper',
212
212
  displayName: 'Stepper',
@@ -66,7 +66,7 @@ export interface StepperProps extends BaseProps<HTMLOListElement> {
66
66
  * - 'separated': indicator lives in the label row, distinct from the progress
67
67
  * bar (the original Astryx layout).
68
68
  * - 'on-track': indicator is slotted into the connector line as a node on the
69
- * track (EPS-aligned design).
69
+ * track (the on-track indicator design).
70
70
  * @default 'separated'
71
71
  */
72
72
  indicatorPosition?: StepperIndicatorPosition;
@@ -24,7 +24,7 @@ export type StepperDensity = 'compact' | 'balanced' | 'spacious';
24
24
  * bar (Astryx's original layout).
25
25
  * - 'on-track': indicator is slotted *into* the connector line as a node on the
26
26
  * track, with the label beside (vertical) or below (horizontal). Aligns with
27
- * the EPS stepper design.
27
+ * the on-track stepper design.
28
28
  */
29
29
  export type StepperIndicatorPosition = 'separated' | 'on-track';
30
30
 
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: '3DBar',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: '3DChart',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: '3DScatter',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: '3DScatterGL',
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- /** @type {import('../../core/src/docs-types').ComponentDoc} */
3
+ /** @type {import('../../../core/src/docs-types').ComponentDoc} */
4
4
 
5
5
  export const docs = {
6
6
  name: '3DSurface',