@rockshin/tao-ui 0.0.33 → 0.0.34
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/component-manifest.json +55 -1
- package/dist/components/steps/steps-icons.d.ts +11 -0
- package/dist/components/steps/steps-icons.js +111 -0
- package/dist/components/steps/steps.css +754 -0
- package/dist/components/steps/steps.d.ts +92 -0
- package/dist/components/steps/steps.js +473 -0
- package/dist/components/steps/use-display-steps.d.ts +24 -0
- package/dist/components/steps/use-display-steps.js +107 -0
- package/dist/components/table/table.css +24 -1
- package/dist/docs/component-docs.js +2 -0
- package/dist/docs/components/steps.doc.d.ts +18 -0
- package/dist/docs/components/steps.doc.js +55 -0
- package/dist/entries/steps.d.ts +3 -0
- package/dist/entries/steps.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/theme/theme.css +28 -0
- package/dist/theme/tokens.d.ts +2 -2
- package/dist/theme/tokens.js +29 -0
- package/llms.txt +14 -1
- package/package.json +1 -1
package/component-manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@rockshin/tao-ui",
|
|
4
|
-
"generatedAt": "2026-
|
|
4
|
+
"generatedAt": "2026-09-13T04:23:06.126Z",
|
|
5
5
|
"components": [
|
|
6
6
|
{
|
|
7
7
|
"name": "alert",
|
|
@@ -1474,6 +1474,60 @@
|
|
|
1474
1474
|
}
|
|
1475
1475
|
]
|
|
1476
1476
|
},
|
|
1477
|
+
{
|
|
1478
|
+
"name": "steps",
|
|
1479
|
+
"displayName": "Steps",
|
|
1480
|
+
"category": "Navigation",
|
|
1481
|
+
"description": "Guides users through the ordered stages of a task.",
|
|
1482
|
+
"exports": [
|
|
1483
|
+
"Steps"
|
|
1484
|
+
],
|
|
1485
|
+
"source": "src/components/steps/steps.tsx",
|
|
1486
|
+
"story": "stories/steps.stories.tsx",
|
|
1487
|
+
"tests": [
|
|
1488
|
+
"tests/steps/steps.test.tsx"
|
|
1489
|
+
],
|
|
1490
|
+
"semanticParts": [
|
|
1491
|
+
"root",
|
|
1492
|
+
"item",
|
|
1493
|
+
"itemWrapper",
|
|
1494
|
+
"itemIcon",
|
|
1495
|
+
"itemSection",
|
|
1496
|
+
"itemHeader",
|
|
1497
|
+
"itemTitle",
|
|
1498
|
+
"itemSubtitle",
|
|
1499
|
+
"itemContent",
|
|
1500
|
+
"itemRail"
|
|
1501
|
+
],
|
|
1502
|
+
"keywords": [
|
|
1503
|
+
"steps",
|
|
1504
|
+
"stepper",
|
|
1505
|
+
"wizard",
|
|
1506
|
+
"progress",
|
|
1507
|
+
"sequence",
|
|
1508
|
+
"multistep",
|
|
1509
|
+
"onboarding"
|
|
1510
|
+
],
|
|
1511
|
+
"related": [
|
|
1512
|
+
"Tabs",
|
|
1513
|
+
"Breadcrumb",
|
|
1514
|
+
"Spinner"
|
|
1515
|
+
],
|
|
1516
|
+
"usage": {
|
|
1517
|
+
"description": "Use Steps to show progress through a multi-stage task, or to let users jump back to a stage they already visited.",
|
|
1518
|
+
"bestPractices": [
|
|
1519
|
+
"Keep titles to one or two words and move detail into the content.",
|
|
1520
|
+
"Drive the whole bar from `current` and let status be derived from position.",
|
|
1521
|
+
"Provide `onChange` when revisiting a completed step is meaningful.",
|
|
1522
|
+
"Prefer `orientation=\"vertical\"` for long or narrow layouts."
|
|
1523
|
+
],
|
|
1524
|
+
"avoid": [
|
|
1525
|
+
"Do not use Steps for peer views at the same level; use Tabs.",
|
|
1526
|
+
"Do not use Steps as a passive progress indicator for a single operation; use Spinner.",
|
|
1527
|
+
"Do not set `status` per item unless a step genuinely failed or was skipped."
|
|
1528
|
+
]
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1477
1531
|
{
|
|
1478
1532
|
"name": "switch",
|
|
1479
1533
|
"displayName": "Switch",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** `finish` step glyph. */
|
|
2
|
+
export declare function StepCheckIcon(): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
/** `error` step glyph. */
|
|
4
|
+
export declare function StepCloseIcon(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
/** Collapsed-range glyph used by `maxCount`. */
|
|
6
|
+
export declare function StepEllipsisIcon(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
/**
|
|
8
|
+
* Notched separator drawn between `type="panel"` steps. `preserveAspectRatio="none"`
|
|
9
|
+
* lets the arrow stretch to the measured panel height.
|
|
10
|
+
*/
|
|
11
|
+
export declare function PanelArrow(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "react-compiler-runtime";
|
|
3
|
+
function Icon(t0) {
|
|
4
|
+
const $ = c(4);
|
|
5
|
+
const { size: t1, strokeWidth: t2, children } = t0;
|
|
6
|
+
const size = void 0 === t1 ? "1em" : t1;
|
|
7
|
+
const strokeWidth = void 0 === t2 ? 2 : t2;
|
|
8
|
+
let t3;
|
|
9
|
+
if ($[0] !== children || $[1] !== size || $[2] !== strokeWidth) {
|
|
10
|
+
t3 = /*#__PURE__*/ jsx("svg", {
|
|
11
|
+
width: size,
|
|
12
|
+
height: size,
|
|
13
|
+
viewBox: "0 0 24 24",
|
|
14
|
+
fill: "none",
|
|
15
|
+
stroke: "currentColor",
|
|
16
|
+
strokeWidth: strokeWidth,
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
focusable: "false",
|
|
21
|
+
role: "presentation",
|
|
22
|
+
children: children
|
|
23
|
+
});
|
|
24
|
+
$[0] = children;
|
|
25
|
+
$[1] = size;
|
|
26
|
+
$[2] = strokeWidth;
|
|
27
|
+
$[3] = t3;
|
|
28
|
+
} else t3 = $[3];
|
|
29
|
+
return t3;
|
|
30
|
+
}
|
|
31
|
+
function StepCheckIcon() {
|
|
32
|
+
const $ = c(1);
|
|
33
|
+
let t0;
|
|
34
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
|
+
t0 = /*#__PURE__*/ jsx(Icon, {
|
|
36
|
+
strokeWidth: 3,
|
|
37
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
38
|
+
d: "m5 12.5 4.5 4.5L19 7"
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
} else t0 = $[0];
|
|
43
|
+
return t0;
|
|
44
|
+
}
|
|
45
|
+
function StepCloseIcon() {
|
|
46
|
+
const $ = c(1);
|
|
47
|
+
let t0;
|
|
48
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
49
|
+
t0 = /*#__PURE__*/ jsx(Icon, {
|
|
50
|
+
strokeWidth: 3,
|
|
51
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
52
|
+
d: "M18 6 6 18M6 6l12 12"
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
$[0] = t0;
|
|
56
|
+
} else t0 = $[0];
|
|
57
|
+
return t0;
|
|
58
|
+
}
|
|
59
|
+
function StepEllipsisIcon() {
|
|
60
|
+
const $ = c(1);
|
|
61
|
+
let t0;
|
|
62
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
63
|
+
t0 = /*#__PURE__*/ jsxs(Icon, {
|
|
64
|
+
children: [
|
|
65
|
+
/*#__PURE__*/ jsx("circle", {
|
|
66
|
+
cx: "5",
|
|
67
|
+
cy: "12",
|
|
68
|
+
r: "1.6",
|
|
69
|
+
fill: "currentColor",
|
|
70
|
+
stroke: "none"
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ jsx("circle", {
|
|
73
|
+
cx: "12",
|
|
74
|
+
cy: "12",
|
|
75
|
+
r: "1.6",
|
|
76
|
+
fill: "currentColor",
|
|
77
|
+
stroke: "none"
|
|
78
|
+
}),
|
|
79
|
+
/*#__PURE__*/ jsx("circle", {
|
|
80
|
+
cx: "19",
|
|
81
|
+
cy: "12",
|
|
82
|
+
r: "1.6",
|
|
83
|
+
fill: "currentColor",
|
|
84
|
+
stroke: "none"
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
$[0] = t0;
|
|
89
|
+
} else t0 = $[0];
|
|
90
|
+
return t0;
|
|
91
|
+
}
|
|
92
|
+
function PanelArrow() {
|
|
93
|
+
const $ = c(1);
|
|
94
|
+
let t0;
|
|
95
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
96
|
+
t0 = /*#__PURE__*/ jsx("svg", {
|
|
97
|
+
"data-tao-steps-panel-arrow": "",
|
|
98
|
+
viewBox: "0 0 100 100",
|
|
99
|
+
preserveAspectRatio: "none",
|
|
100
|
+
"aria-hidden": "true",
|
|
101
|
+
focusable: "false",
|
|
102
|
+
role: "presentation",
|
|
103
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
104
|
+
d: "M 0 0 L 100 50 L 0 100"
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
$[0] = t0;
|
|
108
|
+
} else t0 = $[0];
|
|
109
|
+
return t0;
|
|
110
|
+
}
|
|
111
|
+
export { PanelArrow, StepCheckIcon, StepCloseIcon, StepEllipsisIcon };
|