@astryxdesign/lab 0.3.0-canary.dccdabe → 0.3.0-canary.e19719c
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Step.d.ts","sourceRoot":"","sources":["../../src/Stepper/Step.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAC,MAAM,OAAO,CAAC;AAarC,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAMlD,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC7D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,SAAU,SAAQ,SAAS,CAAC,aAAa,CAAC;IACzD,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAC/B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC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E,UAAU,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC5C;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAwdD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,IAAI,CAAC,EACnB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,UAAkB,EAClB,UAAkB,EAClB,UAAU,EACV,SAAS,EAAE,aAAa,EACxB,OAAO,EAAE,WAAW,EACpB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,aAAa,EAAE,UAAU,EACzB,GAAG,IAAI,EACR,EAAE,SAAS,+BAylBX;yBA3mBe,IAAI"}
|
package/dist/Stepper/Step.js
CHANGED
|
@@ -88,7 +88,7 @@ function CurrentIcon() {
|
|
|
88
88
|
|
|
89
89
|
// --- Styles ---
|
|
90
90
|
|
|
91
|
-
const BAR_WIDTH = '
|
|
91
|
+
const BAR_WIDTH = spacingVars['--spacing-1'];
|
|
92
92
|
const ICON_SIZE = spacingVars['--spacing-4'];
|
|
93
93
|
const NUMBER_SIZE = spacingVars['--spacing-5'];
|
|
94
94
|
const _temp = {
|
|
@@ -309,7 +309,7 @@ const styles = {
|
|
|
309
309
|
$$css: true
|
|
310
310
|
},
|
|
311
311
|
otSegBaseV: {
|
|
312
|
-
kzqmXN: "
|
|
312
|
+
kzqmXN: "xx9zwd3",
|
|
313
313
|
kmuXW: "x2lah0s",
|
|
314
314
|
kaIpWk: "x2u8bby",
|
|
315
315
|
$$css: true
|
|
@@ -326,7 +326,7 @@ const styles = {
|
|
|
326
326
|
"--x-height": (val => typeof val === "number" ? val + "px" : val != null ? val : undefined)(value)
|
|
327
327
|
}],
|
|
328
328
|
otSegH: {
|
|
329
|
-
kZKoxP: "
|
|
329
|
+
kZKoxP: "x11c6zpc",
|
|
330
330
|
kUk6DE: "x98rzlu",
|
|
331
331
|
k7Eaqz: "x18ki04u",
|
|
332
332
|
kaIpWk: "x2u8bby",
|
|
@@ -556,7 +556,7 @@ export function Step({
|
|
|
556
556
|
...{
|
|
557
557
|
className: "xjm74w1 xv1l7n4"
|
|
558
558
|
},
|
|
559
|
-
children:
|
|
559
|
+
children: t('@astryx.step.optional')
|
|
560
560
|
})]
|
|
561
561
|
}), endContent]
|
|
562
562
|
});
|
|
@@ -616,7 +616,7 @@ export function Step({
|
|
|
616
616
|
...{
|
|
617
617
|
className: "xjm74w1 xv1l7n4"
|
|
618
618
|
},
|
|
619
|
-
children:
|
|
619
|
+
children: t('@astryx.step.optional')
|
|
620
620
|
})]
|
|
621
621
|
}), endContent]
|
|
622
622
|
});
|
|
@@ -722,10 +722,10 @@ export function Step({
|
|
|
722
722
|
children: [/*#__PURE__*/_jsx("div", {
|
|
723
723
|
...mergeProps(themeProps('step-bar'), {
|
|
724
724
|
0: {
|
|
725
|
-
className: "
|
|
725
|
+
className: "xx9zwd3 xjspbzw x2lah0s xkh2ocl x1m4xfpy"
|
|
726
726
|
},
|
|
727
727
|
1: {
|
|
728
|
-
className: "
|
|
728
|
+
className: "xx9zwd3 xjspbzw x2lah0s xkh2ocl x1ewilqj"
|
|
729
729
|
}
|
|
730
730
|
}[!!isBarFilled << 0]),
|
|
731
731
|
"aria-hidden": "true"
|
|
@@ -805,10 +805,10 @@ export function Step({
|
|
|
805
805
|
children: [/*#__PURE__*/_jsx("div", {
|
|
806
806
|
...mergeProps(themeProps('step-bar'), {
|
|
807
807
|
0: {
|
|
808
|
-
className: "xh8yej3
|
|
808
|
+
className: "xh8yej3 x11c6zpc xjspbzw x2lah0s xlstkdb x1m4xfpy"
|
|
809
809
|
},
|
|
810
810
|
1: {
|
|
811
|
-
className: "xh8yej3
|
|
811
|
+
className: "xh8yej3 x11c6zpc xjspbzw x2lah0s xlstkdb x1ewilqj"
|
|
812
812
|
}
|
|
813
813
|
}[!!isBarFilled << 0]),
|
|
814
814
|
"aria-hidden": "true"
|
package/dist/lab.css
CHANGED
|
@@ -572,7 +572,6 @@
|
|
|
572
572
|
.xxk0z11:not(#\#):not(#\#):not(#\#):not(#\#){height:24px}
|
|
573
573
|
.x1gnnpzl:not(#\#):not(#\#):not(#\#):not(#\#){height:30px}
|
|
574
574
|
.x10w6t97:not(#\#):not(#\#):not(#\#):not(#\#){height:32px}
|
|
575
|
-
.xqu0tyb:not(#\#):not(#\#):not(#\#):not(#\#){height:4px}
|
|
576
575
|
.x1ycjhwn:not(#\#):not(#\#):not(#\#):not(#\#){height:5px}
|
|
577
576
|
.x1d9x2de:not(#\#):not(#\#):not(#\#):not(#\#){height:640px}
|
|
578
577
|
.xt7dq6l:not(#\#):not(#\#):not(#\#):not(#\#){height:auto}
|
|
@@ -644,11 +643,11 @@
|
|
|
644
643
|
.x1dz1jew:not(#\#):not(#\#):not(#\#):not(#\#){width:280px}
|
|
645
644
|
.x1849jeq:not(#\#):not(#\#):not(#\#):not(#\#){width:30px}
|
|
646
645
|
.x1td3qas:not(#\#):not(#\#):not(#\#):not(#\#){width:32px}
|
|
647
|
-
.x51ohtg:not(#\#):not(#\#):not(#\#):not(#\#){width:4px}
|
|
648
646
|
.x1ftt334:not(#\#):not(#\#):not(#\#):not(#\#){width:5px}
|
|
649
647
|
.x1nalo9x:not(#\#):not(#\#):not(#\#):not(#\#){width:min(41rem,calc(100vw - 32px))}
|
|
650
648
|
.x1oai4fc:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--icon-size)}
|
|
651
649
|
.x1m747yf:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--size-element-lg)}
|
|
650
|
+
.xx9zwd3:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--spacing-1)}
|
|
652
651
|
.x12xnipv:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--spacing-4)}
|
|
653
652
|
.xfyiiit:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--spacing-5)}
|
|
654
653
|
.x5lhr3w:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-width)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/lab",
|
|
3
|
-
"version": "0.3.0-canary.
|
|
3
|
+
"version": "0.3.0-canary.e19719c",
|
|
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.3.0-canary.
|
|
48
|
+
"@astryxdesign/core": "0.3.0-canary.e19719c",
|
|
49
49
|
"react": ">=19.0.0",
|
|
50
50
|
"react-dom": ">=19.0.0",
|
|
51
51
|
"lexical": "^0.46.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"d3-shape": "^3.2.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@astryxdesign/cli": "0.3.0-canary.
|
|
69
|
+
"@astryxdesign/cli": "0.3.0-canary.e19719c",
|
|
70
70
|
"@lexical/code": "^0.46.0",
|
|
71
71
|
"@lexical/headless": "^0.46.0",
|
|
72
72
|
"@lexical/html": "^0.46.0",
|
package/src/Stepper/Step.tsx
CHANGED
|
@@ -162,7 +162,7 @@ function CurrentIcon() {
|
|
|
162
162
|
|
|
163
163
|
// --- Styles ---
|
|
164
164
|
|
|
165
|
-
const BAR_WIDTH = '
|
|
165
|
+
const BAR_WIDTH = spacingVars['--spacing-1'];
|
|
166
166
|
const ICON_SIZE = spacingVars['--spacing-4'];
|
|
167
167
|
const NUMBER_SIZE = spacingVars['--spacing-5'];
|
|
168
168
|
|
|
@@ -869,7 +869,9 @@ export function Step({
|
|
|
869
869
|
{isOptional && (
|
|
870
870
|
<>
|
|
871
871
|
<span {...stylex.props(styles.optionalDot)}>•</span>
|
|
872
|
-
<span {...stylex.props(styles.optionalText)}>
|
|
872
|
+
<span {...stylex.props(styles.optionalText)}>
|
|
873
|
+
{t('@astryx.step.optional')}
|
|
874
|
+
</span>
|
|
873
875
|
</>
|
|
874
876
|
)}
|
|
875
877
|
{endContent}
|
|
@@ -943,7 +945,9 @@ export function Step({
|
|
|
943
945
|
{isOptional && (
|
|
944
946
|
<>
|
|
945
947
|
<span {...stylex.props(styles.optionalDot)}>•</span>
|
|
946
|
-
<span {...stylex.props(styles.optionalText)}>
|
|
948
|
+
<span {...stylex.props(styles.optionalText)}>
|
|
949
|
+
{t('@astryx.step.optional')}
|
|
950
|
+
</span>
|
|
947
951
|
</>
|
|
948
952
|
)}
|
|
949
953
|
{endContent}
|
|
@@ -28,9 +28,10 @@ export const docs = {
|
|
|
28
28
|
},
|
|
29
29
|
theming: {
|
|
30
30
|
targets: [
|
|
31
|
-
{className: 'astryx-stepper', visualProps: ['orientation']},
|
|
31
|
+
{className: 'astryx-stepper', visualProps: ['orientation', 'indicatorPosition']},
|
|
32
32
|
{className: 'astryx-step', visualProps: ['progress', 'status']},
|
|
33
33
|
{className: 'astryx-step-bar'},
|
|
34
|
+
{className: 'astryx-step-connector'},
|
|
34
35
|
],
|
|
35
36
|
},
|
|
36
37
|
components: [
|
|
@@ -125,7 +126,7 @@ export const docs = {
|
|
|
125
126
|
{
|
|
126
127
|
name: 'status',
|
|
127
128
|
type: "'accent' | 'success' | 'warning' | 'error'",
|
|
128
|
-
description: 'Semantic color for the step. Controls color only and maps to the global
|
|
129
|
+
description: 'Semantic color for the step. Controls color only and maps to the global Astryx semantic tokens. Leave unset for the progress-derived default coloring.',
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
name: 'indicator',
|
|
@@ -230,9 +231,10 @@ export const docsZh = {
|
|
|
230
231
|
},
|
|
231
232
|
theming: {
|
|
232
233
|
targets: [
|
|
233
|
-
{className: 'astryx-stepper', visualProps: ['orientation']},
|
|
234
|
+
{className: 'astryx-stepper', visualProps: ['orientation', 'indicatorPosition']},
|
|
234
235
|
{className: 'astryx-step', visualProps: ['progress', 'status']},
|
|
235
236
|
{className: 'astryx-step-bar'},
|
|
237
|
+
{className: 'astryx-step-connector'},
|
|
236
238
|
],
|
|
237
239
|
},
|
|
238
240
|
components: [
|