@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.
@@ -0,0 +1,107 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { c } from "react-compiler-runtime";
3
+ import { StepEllipsisIcon } from "./steps-icons.js";
4
+ function getEllipsisStep(items, currentIndex, prevIndex, nextIndex) {
5
+ const prevKey = items[prevIndex].key ?? prevIndex;
6
+ const nextKey = items[nextIndex].key ?? nextIndex;
7
+ const hidden = items.slice(prevIndex + 1, nextIndex);
8
+ const hiddenError = hidden.some((step)=>'error' === step.status);
9
+ return {
10
+ item: {
11
+ key: `__tao_steps_ellipsis-${prevKey}-${nextKey}`,
12
+ title: '',
13
+ icon: /*#__PURE__*/ jsx(StepEllipsisIcon, {}),
14
+ status: hiddenError ? 'error' : nextIndex - 1 < currentIndex ? 'finish' : 'wait',
15
+ disabled: true
16
+ },
17
+ originIndex: -1,
18
+ ellipsis: true
19
+ };
20
+ }
21
+ function getCollapsedIndexes(total, currentIndex, maxCount) {
22
+ const safeCurrent = Math.min(Math.max(currentIndex, 0), total - 1);
23
+ const targetCount = Math.min(maxCount, total);
24
+ const indexes = new Set([
25
+ 0,
26
+ safeCurrent,
27
+ total - 1
28
+ ]);
29
+ for(let distance = 1; indexes.size < targetCount && distance < total; distance += 1){
30
+ const candidates = [
31
+ safeCurrent - distance,
32
+ safeCurrent + distance,
33
+ distance,
34
+ total - 1 - distance
35
+ ];
36
+ for (const index of candidates){
37
+ if (indexes.size >= targetCount) break;
38
+ if (index >= 0 && index < total) indexes.add(index);
39
+ }
40
+ }
41
+ return Array.from(indexes).sort((a, b)=>a - b).flatMap((index, order, sorted)=>order > 0 && index - sorted[order - 1] > 1 ? [
42
+ null,
43
+ index
44
+ ] : [
45
+ index
46
+ ]);
47
+ }
48
+ function useDisplaySteps(items, current, initial, maxCount) {
49
+ const $ = c(12);
50
+ const canApplyMaxCount = void 0 !== maxCount && maxCount >= 3 && items.length > maxCount;
51
+ const mappedCurrent = current - initial;
52
+ let t0;
53
+ bb0: {
54
+ if (!canApplyMaxCount) {
55
+ let t1;
56
+ if ($[0] !== items) {
57
+ t1 = items.map(_temp);
58
+ $[0] = items;
59
+ $[1] = t1;
60
+ } else t1 = $[1];
61
+ t0 = t1;
62
+ break bb0;
63
+ }
64
+ let t1;
65
+ if ($[2] !== items || $[3] !== mappedCurrent || $[4] !== maxCount) {
66
+ const collapsed = getCollapsedIndexes(items.length, mappedCurrent, maxCount);
67
+ t1 = collapsed.map((index, collapsedIndex)=>null === index ? getEllipsisStep(items, mappedCurrent, collapsed[collapsedIndex - 1], collapsed[collapsedIndex + 1]) : {
68
+ item: items[index],
69
+ originIndex: index
70
+ });
71
+ $[2] = items;
72
+ $[3] = mappedCurrent;
73
+ $[4] = maxCount;
74
+ $[5] = t1;
75
+ } else t1 = $[5];
76
+ t0 = t1;
77
+ }
78
+ const displaySteps = t0;
79
+ let t1;
80
+ if ($[6] !== mappedCurrent) {
81
+ t1 = (step)=>step.originIndex === mappedCurrent;
82
+ $[6] = mappedCurrent;
83
+ $[7] = t1;
84
+ } else t1 = $[7];
85
+ const found = displaySteps.findIndex(t1);
86
+ const t2 = found >= 0 ? found : mappedCurrent;
87
+ let t3;
88
+ if ($[8] !== canApplyMaxCount || $[9] !== displaySteps || $[10] !== t2) {
89
+ t3 = {
90
+ canApplyMaxCount,
91
+ displaySteps,
92
+ displayCurrent: t2
93
+ };
94
+ $[8] = canApplyMaxCount;
95
+ $[9] = displaySteps;
96
+ $[10] = t2;
97
+ $[11] = t3;
98
+ } else t3 = $[11];
99
+ return t3;
100
+ }
101
+ function _temp(item, originIndex) {
102
+ return {
103
+ item,
104
+ originIndex
105
+ };
106
+ }
107
+ export { useDisplaySteps };
@@ -58,7 +58,8 @@
58
58
  }
59
59
 
60
60
  [data-tao-table] {
61
- border-collapse: collapse;
61
+ border-collapse: separate;
62
+ border-spacing: 0;
62
63
  table-layout: auto;
63
64
  width: 100%;
64
65
  }
@@ -345,6 +346,8 @@
345
346
  [data-tao-table-wrapper][data-tao-bordered] [data-tao-table] {
346
347
  border: var(--tao-line-width) solid var(--tao-table-border-color);
347
348
  border-radius: var(--tao-table-frame-radius);
349
+ --tao-table-inner-radius: calc(var(--tao-table-frame-radius) -
350
+ var(--tao-line-width));
348
351
  }
349
352
 
350
353
  [data-tao-table-wrapper][data-tao-bordered] [data-tao-table-cell] {
@@ -355,6 +358,26 @@
355
358
  border-right: none;
356
359
  }
357
360
 
361
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table-tbody] tr:last-child [data-tao-table-cell] {
362
+ border-bottom: none;
363
+ }
364
+
365
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table] > thead > tr:first-child > [data-tao-table-cell]:first-child {
366
+ border-top-left-radius: var(--tao-table-inner-radius);
367
+ }
368
+
369
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table] > thead > tr:first-child > [data-tao-table-cell]:last-child {
370
+ border-top-right-radius: var(--tao-table-inner-radius);
371
+ }
372
+
373
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table-tbody] > tr:last-child > [data-tao-table-cell]:first-child {
374
+ border-bottom-left-radius: var(--tao-table-inner-radius);
375
+ }
376
+
377
+ [data-tao-table-wrapper][data-tao-bordered]:not([data-tao-variant="modern"]) [data-tao-table-tbody] > tr:last-child > [data-tao-table-cell]:last-child {
378
+ border-bottom-right-radius: var(--tao-table-inner-radius);
379
+ }
380
+
358
381
  [data-tao-table-wrapper][data-tao-variant="modern"][data-tao-bordered] [data-tao-table] {
359
382
  border: none;
360
383
  }
@@ -27,6 +27,7 @@ import { sonnerDoc } from "./components/sonner.doc.js";
27
27
  import { spinnerDoc } from "./components/spinner.doc.js";
28
28
  import { splitterDoc } from "./components/splitter.doc.js";
29
29
  import { stackDoc } from "./components/stack.doc.js";
30
+ import { stepsDoc } from "./components/steps.doc.js";
30
31
  import { switchDoc } from "./components/switch.doc.js";
31
32
  import { tableDoc } from "./components/table.doc.js";
32
33
  import { tabsDoc } from "./components/tabs.doc.js";
@@ -64,6 +65,7 @@ const componentDocs = [
64
65
  spinnerDoc,
65
66
  splitterDoc,
66
67
  stackDoc,
68
+ stepsDoc,
67
69
  switchDoc,
68
70
  tableDoc,
69
71
  tabsDoc,
@@ -0,0 +1,18 @@
1
+ export declare const stepsDoc: {
2
+ name: string;
3
+ displayName: string;
4
+ category: "Navigation";
5
+ description: string;
6
+ exports: string[];
7
+ source: string;
8
+ story: string;
9
+ tests: string[];
10
+ semanticParts: string[];
11
+ keywords: string[];
12
+ related: string[];
13
+ usage: {
14
+ description: string;
15
+ bestPractices: string[];
16
+ avoid: string[];
17
+ };
18
+ };
@@ -0,0 +1,55 @@
1
+ const stepsDoc = {
2
+ name: 'steps',
3
+ displayName: 'Steps',
4
+ category: 'Navigation',
5
+ description: 'Guides users through the ordered stages of a task.',
6
+ exports: [
7
+ 'Steps'
8
+ ],
9
+ source: 'src/components/steps/steps.tsx',
10
+ story: 'stories/steps.stories.tsx',
11
+ tests: [
12
+ 'tests/steps/steps.test.tsx'
13
+ ],
14
+ semanticParts: [
15
+ 'root',
16
+ 'item',
17
+ 'itemWrapper',
18
+ 'itemIcon',
19
+ 'itemSection',
20
+ 'itemHeader',
21
+ 'itemTitle',
22
+ 'itemSubtitle',
23
+ 'itemContent',
24
+ 'itemRail'
25
+ ],
26
+ keywords: [
27
+ 'steps',
28
+ 'stepper',
29
+ 'wizard',
30
+ 'progress',
31
+ 'sequence',
32
+ 'multistep',
33
+ 'onboarding'
34
+ ],
35
+ related: [
36
+ 'Tabs',
37
+ 'Breadcrumb',
38
+ 'Spinner'
39
+ ],
40
+ usage: {
41
+ description: 'Use Steps to show progress through a multi-stage task, or to let users jump back to a stage they already visited.',
42
+ bestPractices: [
43
+ 'Keep titles to one or two words and move detail into the content.',
44
+ 'Drive the whole bar from `current` and let status be derived from position.',
45
+ 'Provide `onChange` when revisiting a completed step is meaningful.',
46
+ 'Prefer `orientation="vertical"` for long or narrow layouts.'
47
+ ],
48
+ avoid: [
49
+ 'Do not use Steps for peer views at the same level; use Tabs.',
50
+ 'Do not use Steps as a passive progress indicator for a single operation; use Spinner.',
51
+ 'Do not set `status` per item unless a step genuinely failed or was skipped.'
52
+ ]
53
+ }
54
+ };
55
+ export { stepsDoc };
@@ -0,0 +1,3 @@
1
+ import '../theme/theme.css';
2
+ import '../theme/control.css';
3
+ export { type StepItem, Steps, type StepsIconComponent, type StepsIconRender, type StepsIconRenderInfo, type StepsItemSemanticPart, type StepsOrientation, type StepsProps, type StepsSemanticPart, type StepsSize, type StepsStatus, type StepsTitlePlacement, type StepsType, type StepsVariant, } from '../components/steps/steps';
@@ -0,0 +1,4 @@
1
+ "use client";
2
+ import "../theme/theme.css";
3
+ import "../theme/control.css";
4
+ export { Steps } from "../components/steps/steps.js";
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { Select, type SelectOption, type SelectPlacement, type SelectProps, type
27
27
  export { Sonner, type SonnerAction, type SonnerPosition, type SonnerProps, type SonnerSemanticPart, type SonnerToastItem, type SonnerToastOptions, type SonnerType, toast, } from './components/sonner';
28
28
  export { Spinner, type SpinnerProps, type SpinnerSemanticPart, } from './components/spinner/spinner';
29
29
  export { Splitter, type SplitterPanelProps, type SplitterProps, type SplitterSemanticPart, } from './components/splitter/splitter';
30
+ export { type StepItem, Steps, type StepsIconComponent, type StepsIconRender, type StepsIconRenderInfo, type StepsItemSemanticPart, type StepsOrientation, type StepsProps, type StepsSemanticPart, type StepsSize, type StepsStatus, type StepsTitlePlacement, type StepsType, type StepsVariant, } from './components/steps/steps';
30
31
  export { Switch, type SwitchProps, type SwitchSemanticPart, } from './components/switch/switch';
31
32
  export { type SorterResult, type SortOrder, Table, type TableColumn, type TableFilterItem, type TablePagination, type TableProps, type TableRowSelection, type TableSemanticPart, type TableVariant, } from './components/table/table';
32
33
  export { type TabItem, Tabs, type TabsProps, type TabsSemanticPart, } from './components/tabs/tabs';
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ export { Select } from "./components/select/select.js";
27
27
  export { Sonner, toast } from "./components/sonner/index.js";
28
28
  export { Spinner } from "./components/spinner/spinner.js";
29
29
  export { Splitter } from "./components/splitter/splitter.js";
30
+ export { Steps } from "./components/steps/steps.js";
30
31
  export { Switch } from "./components/switch/switch.js";
31
32
  export { Table } from "./components/table/table.js";
32
33
  export { Tabs } from "./components/tabs/tabs.js";
@@ -124,6 +124,15 @@
124
124
  --tao-line-height: 1.5714;
125
125
  --tao-line-height-sm: 1.6667;
126
126
  --tao-line-height-lg: 1.5;
127
+ --tao-size-xxs: calc(var(--tao-size-unit) * (var(--tao-size-step) - 3));
128
+ --tao-size-xs: calc(var(--tao-size-unit) * (var(--tao-size-step) - 2));
129
+ --tao-size-sm: calc(var(--tao-size-unit) * (var(--tao-size-step) - 1));
130
+ --tao-size: calc(var(--tao-size-unit) * var(--tao-size-step));
131
+ --tao-size-ms: calc(var(--tao-size-unit) * var(--tao-size-step));
132
+ --tao-size-md: calc(var(--tao-size-unit) * (var(--tao-size-step) + 1));
133
+ --tao-size-lg: calc(var(--tao-size-unit) * (var(--tao-size-step) + 2));
134
+ --tao-size-xl: calc(var(--tao-size-unit) * (var(--tao-size-step) + 4));
135
+ --tao-size-xxl: calc(var(--tao-size-unit) * (var(--tao-size-step) + 8));
127
136
  --tao-padding-xxs: 2px;
128
137
  --tao-padding-xs: calc(var(--tao-size-unit) * (var(--tao-size-step) - 2));
129
138
  --tao-padding-sm: calc(var(--tao-size-unit) * (var(--tao-size-step) - 1));
@@ -131,6 +140,14 @@
131
140
  --tao-padding-md: calc(var(--tao-size-unit) * (var(--tao-size-step) + 1));
132
141
  --tao-padding-lg: calc(var(--tao-size-unit) * (var(--tao-size-step) + 2));
133
142
  --tao-padding-xl: calc(var(--tao-size-unit) * (var(--tao-size-step) + 4));
143
+ --tao-margin-xxs: calc(var(--tao-size-unit) * 1);
144
+ --tao-margin-xs: calc(var(--tao-size-unit) * (var(--tao-size-step) - 2));
145
+ --tao-margin-sm: calc(var(--tao-size-unit) * (var(--tao-size-step) - 1));
146
+ --tao-margin: calc(var(--tao-size-unit) * var(--tao-size-step));
147
+ --tao-margin-md: calc(var(--tao-size-unit) * (var(--tao-size-step) + 1));
148
+ --tao-margin-lg: calc(var(--tao-size-unit) * (var(--tao-size-step) + 2));
149
+ --tao-margin-xl: calc(var(--tao-size-unit) * (var(--tao-size-step) + 4));
150
+ --tao-margin-xxl: calc(var(--tao-size-unit) * (var(--tao-size-step) + 8));
134
151
  --tao-motion-duration-fast: calc(var(--tao-motion-unit) * 1);
135
152
  --tao-motion-duration-mid: calc(var(--tao-motion-unit) * 2);
136
153
  --tao-motion-duration-slow: calc(var(--tao-motion-unit) * 3);
@@ -160,9 +177,20 @@
160
177
  transparent);
161
178
  --tao-color-text-placeholder: var(--tao-color-text-tertiary);
162
179
  --tao-color-text-disabled: var(--tao-color-text-quaternary);
180
+ --tao-color-text-heading: var(--tao-color-text);
181
+ --tao-color-text-label: var(--tao-color-text-secondary);
182
+ --tao-color-text-description: var(--tao-color-text-tertiary);
163
183
  --tao-color-bg-disabled: var(--tao-color-fill-tertiary);
184
+ --tao-color-bg-container-disabled: var(--tao-color-fill-tertiary);
185
+ --tao-color-bg-text-hover: var(--tao-color-fill-tertiary);
186
+ --tao-color-bg-text-active: var(--tao-color-fill-secondary);
164
187
  --tao-control-item-bg-hover: var(--tao-color-fill-tertiary);
165
188
  --tao-control-item-bg-active: var(--tao-primary-bg);
189
+ --tao-control-item-bg-active-hover: var(--tao-primary-bg-hover);
190
+ --tao-control-padding-horizontal: var(--tao-padding-sm);
191
+ --tao-control-padding-horizontal-sm: var(--tao-padding-xs);
192
+ --tao-color-split: var(--tao-color-border-secondary);
193
+ --tao-line-width-bold: calc(var(--tao-line-width) + 1px);
166
194
  --tao-opacity-loading: .65;
167
195
  --tao-color-bg-mask: oklch(0% 0 0 / .1);
168
196
  --tao-color-shadow-hint: oklch(0% 0 0 / .05);
@@ -1,4 +1,4 @@
1
- export type TaoTokenName = '--tao-box-shadow' | '--tao-box-shadow-secondary' | '--tao-box-shadow-tertiary' | '--tao-box-shadow-xs' | '--tao-color-bg-base' | '--tao-color-bg-container' | '--tao-color-bg-disabled' | '--tao-color-bg-elevated' | '--tao-color-bg-layout' | '--tao-color-bg-mask' | '--tao-color-bg-surface' | '--tao-color-border' | '--tao-color-border-secondary' | '--tao-color-error' | '--tao-color-error-outline' | '--tao-color-fill' | '--tao-color-fill-quaternary' | '--tao-color-fill-secondary' | '--tao-color-fill-tertiary' | '--tao-color-primary' | '--tao-color-shadow-hint' | '--tao-color-success' | '--tao-color-text' | '--tao-color-text-base' | '--tao-color-text-disabled' | '--tao-color-text-light-solid' | '--tao-color-text-placeholder' | '--tao-color-text-quaternary' | '--tao-color-text-secondary' | '--tao-color-text-tertiary' | '--tao-color-warning' | '--tao-color-warning-outline' | '--tao-control-height' | '--tao-control-height-lg' | '--tao-control-height-sm' | '--tao-control-item-bg-active' | '--tao-control-item-bg-hover' | '--tao-control-outline' | '--tao-control-range-width' | '--tao-control-width' | '--tao-error' | '--tao-error-active' | '--tao-error-bg' | '--tao-error-border' | '--tao-error-fg' | '--tao-error-hover' | '--tao-font-family' | '--tao-font-family-code' | '--tao-font-size' | '--tao-font-size-base' | '--tao-font-size-lg' | '--tao-font-size-sm' | '--tao-font-size-xl' | '--tao-font-size-xs' | '--tao-font-weight-medium' | '--tao-font-weight-normal' | '--tao-font-weight-strong' | '--tao-line-height' | '--tao-line-height-lg' | '--tao-line-height-sm' | '--tao-line-width' | '--tao-motion-duration-fast' | '--tao-motion-duration-mid' | '--tao-motion-duration-slow' | '--tao-motion-ease-in-out' | '--tao-motion-ease-out' | '--tao-motion-ease-out-expo' | '--tao-motion-ease-out-quint' | '--tao-motion-unit' | '--tao-opacity-loading' | '--tao-padding' | '--tao-padding-lg' | '--tao-padding-md' | '--tao-padding-sm' | '--tao-padding-xl' | '--tao-padding-xs' | '--tao-padding-xxs' | '--tao-primary' | '--tao-primary-active' | '--tao-primary-bg' | '--tao-primary-bg-hover' | '--tao-primary-border' | '--tao-primary-fg' | '--tao-primary-hover' | '--tao-radius' | '--tao-radius-2xl' | '--tao-radius-full' | '--tao-radius-lg' | '--tao-radius-md' | '--tao-radius-sm' | '--tao-radius-xl' | '--tao-radius-xs' | '--tao-ring-width' | '--tao-size-step' | '--tao-size-unit' | '--tao-success' | '--tao-success-bg' | '--tao-success-border' | '--tao-warning' | '--tao-warning-bg' | '--tao-warning-border' | '--tao-z-index-base' | '--tao-z-index-drawer' | '--tao-z-index-modal' | '--tao-z-index-popup' | '--tao-z-index-popup-base';
1
+ export type TaoTokenName = '--tao-box-shadow' | '--tao-box-shadow-secondary' | '--tao-box-shadow-tertiary' | '--tao-box-shadow-xs' | '--tao-color-bg-base' | '--tao-color-bg-container' | '--tao-color-bg-container-disabled' | '--tao-color-bg-disabled' | '--tao-color-bg-elevated' | '--tao-color-bg-layout' | '--tao-color-bg-mask' | '--tao-color-bg-surface' | '--tao-color-bg-text-active' | '--tao-color-bg-text-hover' | '--tao-color-border' | '--tao-color-border-secondary' | '--tao-color-error' | '--tao-color-error-outline' | '--tao-color-fill' | '--tao-color-fill-quaternary' | '--tao-color-fill-secondary' | '--tao-color-fill-tertiary' | '--tao-color-primary' | '--tao-color-shadow-hint' | '--tao-color-split' | '--tao-color-success' | '--tao-color-text' | '--tao-color-text-base' | '--tao-color-text-description' | '--tao-color-text-disabled' | '--tao-color-text-heading' | '--tao-color-text-label' | '--tao-color-text-light-solid' | '--tao-color-text-placeholder' | '--tao-color-text-quaternary' | '--tao-color-text-secondary' | '--tao-color-text-tertiary' | '--tao-color-warning' | '--tao-color-warning-outline' | '--tao-control-height' | '--tao-control-height-lg' | '--tao-control-height-sm' | '--tao-control-item-bg-active' | '--tao-control-item-bg-active-hover' | '--tao-control-item-bg-hover' | '--tao-control-outline' | '--tao-control-padding-horizontal' | '--tao-control-padding-horizontal-sm' | '--tao-control-range-width' | '--tao-control-width' | '--tao-drop-shadow-popover' | '--tao-error' | '--tao-error-active' | '--tao-error-bg' | '--tao-error-border' | '--tao-error-fg' | '--tao-error-hover' | '--tao-font-family' | '--tao-font-family-code' | '--tao-font-size' | '--tao-font-size-base' | '--tao-font-size-lg' | '--tao-font-size-sm' | '--tao-font-size-xl' | '--tao-font-size-xs' | '--tao-font-weight-medium' | '--tao-font-weight-normal' | '--tao-font-weight-strong' | '--tao-line-height' | '--tao-line-height-lg' | '--tao-line-height-sm' | '--tao-line-width' | '--tao-line-width-bold' | '--tao-margin' | '--tao-margin-lg' | '--tao-margin-md' | '--tao-margin-sm' | '--tao-margin-xl' | '--tao-margin-xs' | '--tao-margin-xxl' | '--tao-margin-xxs' | '--tao-motion-duration-fast' | '--tao-motion-duration-mid' | '--tao-motion-duration-slow' | '--tao-motion-ease-in-out' | '--tao-motion-ease-out' | '--tao-motion-ease-out-expo' | '--tao-motion-ease-out-quint' | '--tao-motion-unit' | '--tao-opacity-loading' | '--tao-padding' | '--tao-padding-lg' | '--tao-padding-md' | '--tao-padding-sm' | '--tao-padding-xl' | '--tao-padding-xs' | '--tao-padding-xxs' | '--tao-primary' | '--tao-primary-active' | '--tao-primary-bg' | '--tao-primary-bg-hover' | '--tao-primary-border' | '--tao-primary-fg' | '--tao-primary-hover' | '--tao-radius' | '--tao-radius-2xl' | '--tao-radius-full' | '--tao-radius-lg' | '--tao-radius-md' | '--tao-radius-sm' | '--tao-radius-xl' | '--tao-radius-xs' | '--tao-ring-width' | '--tao-size' | '--tao-size-lg' | '--tao-size-md' | '--tao-size-ms' | '--tao-size-sm' | '--tao-size-step' | '--tao-size-unit' | '--tao-size-xl' | '--tao-size-xs' | '--tao-size-xxl' | '--tao-size-xxs' | '--tao-success' | '--tao-success-bg' | '--tao-success-border' | '--tao-warning' | '--tao-warning-bg' | '--tao-warning-border' | '--tao-z-index-base' | '--tao-z-index-drawer' | '--tao-z-index-modal' | '--tao-z-index-popup' | '--tao-z-index-popup-base';
2
2
  export declare function tokenVar(name: TaoTokenName | (string & {})): string;
3
- export declare const taoTokenNames: readonly ["--tao-box-shadow", "--tao-box-shadow-secondary", "--tao-box-shadow-tertiary", "--tao-box-shadow-xs", "--tao-color-bg-base", "--tao-color-bg-container", "--tao-color-bg-disabled", "--tao-color-bg-elevated", "--tao-color-bg-layout", "--tao-color-bg-mask", "--tao-color-bg-surface", "--tao-color-border", "--tao-color-border-secondary", "--tao-color-error", "--tao-color-error-outline", "--tao-color-fill", "--tao-color-fill-quaternary", "--tao-color-fill-secondary", "--tao-color-fill-tertiary", "--tao-color-primary", "--tao-color-shadow-hint", "--tao-color-success", "--tao-color-text", "--tao-color-text-base", "--tao-color-text-disabled", "--tao-color-text-light-solid", "--tao-color-text-placeholder", "--tao-color-text-quaternary", "--tao-color-text-secondary", "--tao-color-text-tertiary", "--tao-color-warning", "--tao-color-warning-outline", "--tao-control-height", "--tao-control-height-lg", "--tao-control-height-sm", "--tao-control-item-bg-active", "--tao-control-item-bg-hover", "--tao-control-outline", "--tao-control-range-width", "--tao-control-width", "--tao-error", "--tao-error-active", "--tao-error-bg", "--tao-error-border", "--tao-error-fg", "--tao-error-hover", "--tao-font-family", "--tao-font-family-code", "--tao-font-size", "--tao-font-size-base", "--tao-font-size-lg", "--tao-font-size-sm", "--tao-font-size-xl", "--tao-font-size-xs", "--tao-font-weight-medium", "--tao-font-weight-normal", "--tao-font-weight-strong", "--tao-line-height", "--tao-line-height-lg", "--tao-line-height-sm", "--tao-line-width", "--tao-motion-duration-fast", "--tao-motion-duration-mid", "--tao-motion-duration-slow", "--tao-motion-ease-in-out", "--tao-motion-ease-out", "--tao-motion-ease-out-expo", "--tao-motion-ease-out-quint", "--tao-motion-unit", "--tao-opacity-loading", "--tao-padding", "--tao-padding-lg", "--tao-padding-md", "--tao-padding-sm", "--tao-padding-xl", "--tao-padding-xs", "--tao-padding-xxs", "--tao-primary", "--tao-primary-active", "--tao-primary-bg", "--tao-primary-bg-hover", "--tao-primary-border", "--tao-primary-fg", "--tao-primary-hover", "--tao-radius", "--tao-radius-2xl", "--tao-radius-full", "--tao-radius-lg", "--tao-radius-md", "--tao-radius-sm", "--tao-radius-xl", "--tao-radius-xs", "--tao-ring-width", "--tao-size-step", "--tao-size-unit", "--tao-success", "--tao-success-bg", "--tao-success-border", "--tao-warning", "--tao-warning-bg", "--tao-warning-border", "--tao-z-index-base", "--tao-z-index-drawer", "--tao-z-index-modal", "--tao-z-index-popup", "--tao-z-index-popup-base"];
3
+ export declare const taoTokenNames: readonly ["--tao-box-shadow", "--tao-box-shadow-secondary", "--tao-box-shadow-tertiary", "--tao-box-shadow-xs", "--tao-color-bg-base", "--tao-color-bg-container", "--tao-color-bg-container-disabled", "--tao-color-bg-disabled", "--tao-color-bg-elevated", "--tao-color-bg-layout", "--tao-color-bg-mask", "--tao-color-bg-surface", "--tao-color-bg-text-active", "--tao-color-bg-text-hover", "--tao-color-border", "--tao-color-border-secondary", "--tao-color-error", "--tao-color-error-outline", "--tao-color-fill", "--tao-color-fill-quaternary", "--tao-color-fill-secondary", "--tao-color-fill-tertiary", "--tao-color-primary", "--tao-color-shadow-hint", "--tao-color-split", "--tao-color-success", "--tao-color-text", "--tao-color-text-base", "--tao-color-text-description", "--tao-color-text-disabled", "--tao-color-text-heading", "--tao-color-text-label", "--tao-color-text-light-solid", "--tao-color-text-placeholder", "--tao-color-text-quaternary", "--tao-color-text-secondary", "--tao-color-text-tertiary", "--tao-color-warning", "--tao-color-warning-outline", "--tao-control-height", "--tao-control-height-lg", "--tao-control-height-sm", "--tao-control-item-bg-active", "--tao-control-item-bg-active-hover", "--tao-control-item-bg-hover", "--tao-control-outline", "--tao-control-padding-horizontal", "--tao-control-padding-horizontal-sm", "--tao-control-range-width", "--tao-control-width", "--tao-drop-shadow-popover", "--tao-error", "--tao-error-active", "--tao-error-bg", "--tao-error-border", "--tao-error-fg", "--tao-error-hover", "--tao-font-family", "--tao-font-family-code", "--tao-font-size", "--tao-font-size-base", "--tao-font-size-lg", "--tao-font-size-sm", "--tao-font-size-xl", "--tao-font-size-xs", "--tao-font-weight-medium", "--tao-font-weight-normal", "--tao-font-weight-strong", "--tao-line-height", "--tao-line-height-lg", "--tao-line-height-sm", "--tao-line-width", "--tao-line-width-bold", "--tao-margin", "--tao-margin-lg", "--tao-margin-md", "--tao-margin-sm", "--tao-margin-xl", "--tao-margin-xs", "--tao-margin-xxl", "--tao-margin-xxs", "--tao-motion-duration-fast", "--tao-motion-duration-mid", "--tao-motion-duration-slow", "--tao-motion-ease-in-out", "--tao-motion-ease-out", "--tao-motion-ease-out-expo", "--tao-motion-ease-out-quint", "--tao-motion-unit", "--tao-opacity-loading", "--tao-padding", "--tao-padding-lg", "--tao-padding-md", "--tao-padding-sm", "--tao-padding-xl", "--tao-padding-xs", "--tao-padding-xxs", "--tao-primary", "--tao-primary-active", "--tao-primary-bg", "--tao-primary-bg-hover", "--tao-primary-border", "--tao-primary-fg", "--tao-primary-hover", "--tao-radius", "--tao-radius-2xl", "--tao-radius-full", "--tao-radius-lg", "--tao-radius-md", "--tao-radius-sm", "--tao-radius-xl", "--tao-radius-xs", "--tao-ring-width", "--tao-size", "--tao-size-lg", "--tao-size-md", "--tao-size-ms", "--tao-size-sm", "--tao-size-step", "--tao-size-unit", "--tao-size-xl", "--tao-size-xs", "--tao-size-xxl", "--tao-size-xxs", "--tao-success", "--tao-success-bg", "--tao-success-border", "--tao-warning", "--tao-warning-bg", "--tao-warning-border", "--tao-z-index-base", "--tao-z-index-drawer", "--tao-z-index-modal", "--tao-z-index-popup", "--tao-z-index-popup-base"];
4
4
  export declare const taoTokenVars: Record<TaoTokenName, string>;
@@ -8,11 +8,14 @@ const taoTokenNames = [
8
8
  '--tao-box-shadow-xs',
9
9
  '--tao-color-bg-base',
10
10
  '--tao-color-bg-container',
11
+ '--tao-color-bg-container-disabled',
11
12
  '--tao-color-bg-disabled',
12
13
  '--tao-color-bg-elevated',
13
14
  '--tao-color-bg-layout',
14
15
  '--tao-color-bg-mask',
15
16
  '--tao-color-bg-surface',
17
+ '--tao-color-bg-text-active',
18
+ '--tao-color-bg-text-hover',
16
19
  '--tao-color-border',
17
20
  '--tao-color-border-secondary',
18
21
  '--tao-color-error',
@@ -23,10 +26,14 @@ const taoTokenNames = [
23
26
  '--tao-color-fill-tertiary',
24
27
  '--tao-color-primary',
25
28
  '--tao-color-shadow-hint',
29
+ '--tao-color-split',
26
30
  '--tao-color-success',
27
31
  '--tao-color-text',
28
32
  '--tao-color-text-base',
33
+ "--tao-color-text-description",
29
34
  '--tao-color-text-disabled',
35
+ '--tao-color-text-heading',
36
+ '--tao-color-text-label',
30
37
  '--tao-color-text-light-solid',
31
38
  '--tao-color-text-placeholder',
32
39
  '--tao-color-text-quaternary',
@@ -38,10 +45,14 @@ const taoTokenNames = [
38
45
  '--tao-control-height-lg',
39
46
  '--tao-control-height-sm',
40
47
  '--tao-control-item-bg-active',
48
+ '--tao-control-item-bg-active-hover',
41
49
  '--tao-control-item-bg-hover',
42
50
  '--tao-control-outline',
51
+ '--tao-control-padding-horizontal',
52
+ '--tao-control-padding-horizontal-sm',
43
53
  '--tao-control-range-width',
44
54
  '--tao-control-width',
55
+ '--tao-drop-shadow-popover',
45
56
  '--tao-error',
46
57
  '--tao-error-active',
47
58
  '--tao-error-bg',
@@ -63,6 +74,15 @@ const taoTokenNames = [
63
74
  '--tao-line-height-lg',
64
75
  '--tao-line-height-sm',
65
76
  '--tao-line-width',
77
+ '--tao-line-width-bold',
78
+ '--tao-margin',
79
+ '--tao-margin-lg',
80
+ '--tao-margin-md',
81
+ '--tao-margin-sm',
82
+ '--tao-margin-xl',
83
+ '--tao-margin-xs',
84
+ '--tao-margin-xxl',
85
+ '--tao-margin-xxs',
66
86
  '--tao-motion-duration-fast',
67
87
  '--tao-motion-duration-mid',
68
88
  '--tao-motion-duration-slow',
@@ -95,8 +115,17 @@ const taoTokenNames = [
95
115
  '--tao-radius-xl',
96
116
  '--tao-radius-xs',
97
117
  '--tao-ring-width',
118
+ '--tao-size',
119
+ '--tao-size-lg',
120
+ '--tao-size-md',
121
+ '--tao-size-ms',
122
+ '--tao-size-sm',
98
123
  '--tao-size-step',
99
124
  '--tao-size-unit',
125
+ '--tao-size-xl',
126
+ '--tao-size-xs',
127
+ '--tao-size-xxl',
128
+ '--tao-size-xxs',
100
129
  '--tao-success',
101
130
  '--tao-success-bg',
102
131
  '--tao-success-border',
package/llms.txt CHANGED
@@ -29,7 +29,7 @@ The package root remains available and includes all component styles.
29
29
  - General: Button
30
30
  - Headless: HeadlessInputNumber
31
31
  - Layout: FormLayout, Splitter, Stack
32
- - Navigation: Breadcrumb, ContextMenu, Dropdown, Pagination, Tabs
32
+ - Navigation: Breadcrumb, ContextMenu, Dropdown, Pagination, Steps, Tabs
33
33
 
34
34
  ## Components
35
35
 
@@ -409,6 +409,19 @@ Composes children in a flex row or column with consistent spacing.
409
409
 
410
410
  Use Stack for simple one-dimensional layout and spacing.
411
411
 
412
+ ### Steps
413
+
414
+ Guides users through the ordered stages of a task.
415
+
416
+ - Category: Navigation
417
+ - Exports: `Steps`
418
+ - Source: `src/components/steps/steps.tsx`
419
+ - Storybook: `stories/steps.stories.tsx`
420
+ - Tests: `tests/steps/steps.test.tsx`
421
+ - Semantic parts: `root`, `item`, `itemWrapper`, `itemIcon`, `itemSection`, `itemHeader`, `itemTitle`, `itemSubtitle`, `itemContent`, `itemRail`
422
+
423
+ Use Steps to show progress through a multi-stage task, or to let users jump back to a stage they already visited.
424
+
412
425
  ### Switch
413
426
 
414
427
  Toggles a setting on or off with immediate effect.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockshin/tao-ui",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "packageManager": "bun@1.3.14",
5
5
  "type": "module",
6
6
  "description": "A modern React component library with semantic DOM customization and OKLCH-based theming.",