@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.
- package/dist/Stepper/Step.js +1 -1
- package/dist/Stepper/Stepper.d.ts +1 -1
- package/dist/Stepper/StepperContext.d.ts +1 -1
- package/dist/Stepper/StepperContext.js +1 -1
- package/package.json +3 -2
- package/src/Chart/ChartArea.doc.mjs +1 -1
- package/src/Chart/ChartBar.doc.mjs +1 -1
- package/src/Chart/ChartCandlestick.doc.mjs +1 -1
- package/src/Chart/ChartDot.doc.mjs +1 -1
- package/src/Chart/ChartDotGL.doc.mjs +1 -1
- package/src/Chart/ChartDotGLInteractive.doc.mjs +1 -1
- package/src/Chart/ChartHeatmapGL.doc.mjs +1 -1
- package/src/Chart/ChartLine.doc.mjs +1 -1
- package/src/Chart/ChartStreamGL.doc.mjs +1 -1
- package/src/Chat/ChatEmojiPicker.doc.mjs +1 -1
- package/src/Chat/ChatReactionBar.doc.mjs +1 -1
- package/src/Chat/ChatTypingIndicator.doc.mjs +1 -1
- package/src/Chat/ChatUnreadDivider.doc.mjs +1 -1
- package/src/ChatReasoning/ChatReasoning.doc.mjs +1 -1
- package/src/CodeEditor/CodeEditor.doc.mjs +1 -1
- package/src/Drawer/Drawer.doc.mjs +3 -3
- package/src/InfoTip/InfoTip.doc.mjs +3 -3
- package/src/LogStream/LogStream.doc.mjs +1 -1
- package/src/Radial/RadialChart.doc.mjs +1 -1
- package/src/RichTextEditor/RichTextEditor.doc.mjs +1 -1
- package/src/SVGIcon/SVGIcon.doc.mjs +1 -1
- package/src/Sankey/SankeyChart.doc.mjs +1 -1
- package/src/Schedule/Schedule.doc.mjs +1 -1
- package/src/Stat/Stat.doc.mjs +3 -3
- package/src/Stepper/Step.doc.mjs +1 -1
- package/src/Stepper/Step.tsx +1 -1
- package/src/Stepper/Stepper.doc.mjs +3 -3
- package/src/Stepper/Stepper.tsx +1 -1
- package/src/Stepper/StepperContext.ts +1 -1
- package/src/ThreeD/3DBar.doc.mjs +1 -1
- package/src/ThreeD/3DChart.doc.mjs +1 -1
- package/src/ThreeD/3DScatter.doc.mjs +1 -1
- package/src/ThreeD/3DScatterGL.doc.mjs +1 -1
- package/src/ThreeD/3DSurface.doc.mjs +1 -1
package/dist/Stepper/Step.js
CHANGED
|
@@ -553,7 +553,7 @@ export function Step({
|
|
|
553
553
|
status: status ?? undefined
|
|
554
554
|
});
|
|
555
555
|
|
|
556
|
-
// ======= ON-TRACK
|
|
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 (
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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,5 +1,5 @@
|
|
|
1
1
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
/** @type {import('
|
|
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('
|
|
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('
|
|
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('
|
|
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('
|
|
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('
|
|
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.',
|
package/src/Stat/Stat.doc.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
2
|
|
|
3
|
-
/** @type {import('
|
|
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('
|
|
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('
|
|
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: {
|
package/src/Stepper/Step.doc.mjs
CHANGED
package/src/Stepper/Step.tsx
CHANGED
|
@@ -871,7 +871,7 @@ export function Step({
|
|
|
871
871
|
status: status ?? undefined,
|
|
872
872
|
});
|
|
873
873
|
|
|
874
|
-
// ======= ON-TRACK
|
|
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('
|
|
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('
|
|
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('
|
|
209
|
+
/** @type {import('../../../core/src/docs-types').ComponentDoc} */
|
|
210
210
|
export const docsZh = {
|
|
211
211
|
name: 'Stepper',
|
|
212
212
|
displayName: 'Stepper',
|
package/src/Stepper/Stepper.tsx
CHANGED
|
@@ -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 (
|
|
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
|
|
27
|
+
* the on-track stepper design.
|
|
28
28
|
*/
|
|
29
29
|
export type StepperIndicatorPosition = 'separated' | 'on-track';
|
|
30
30
|
|
package/src/ThreeD/3DBar.doc.mjs
CHANGED