@rockshin/tao-ui 0.0.56 → 0.0.57

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,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@rockshin/tao-ui",
4
- "generatedAt": "2026-11-06T01:19:33.184Z",
4
+ "generatedAt": "2026-11-12T16:33:14.640Z",
5
5
  "components": [
6
6
  {
7
7
  "name": "affix",
@@ -1,4 +1,4 @@
1
- import { type FormInstance as RcFormInstance, type NamePath } from '@rc-component/form';
1
+ import { type NamePath, type FormInstance as RcFormInstance } from '@rc-component/form';
2
2
  import { type Options } from 'scroll-into-view-if-needed';
3
3
  export type FormScrollOptions = Options & {
4
4
  focus?: boolean;
@@ -1,8 +1,15 @@
1
1
  import { c } from "react-compiler-runtime";
2
2
  import { useForm } from "@rc-component/form";
3
+ import { isEqual } from "@rc-component/util";
3
4
  import { getDOM } from "@rc-component/util/es/Dom/findDOMNode";
4
5
  import scroll_into_view_if_needed from "scroll-into-view-if-needed";
5
6
  const use_form_scroll = scroll_into_view_if_needed;
7
+ const VALIDATION_STATE_KEYS = [
8
+ 'errors',
9
+ 'warnings',
10
+ 'touched',
11
+ 'validating'
12
+ ];
6
13
  const fieldRegistries = new WeakMap();
7
14
  function getFieldRegistry(form) {
8
15
  return fieldRegistries.get(form);
@@ -26,6 +33,13 @@ function use_form_useForm(form) {
26
33
  const fields = new Map();
27
34
  instance = {
28
35
  ...rcForm,
36
+ setFields (nextFields) {
37
+ const stale = nextFields.filter((field)=>"value" in field && VALIDATION_STATE_KEYS.every((key)=>!(key in field)) && !isEqual(field.value, rcForm.getFieldValue(field.name)));
38
+ rcForm.setFields(stale.length ? [
39
+ ...stale.map(_temp),
40
+ ...nextFields
41
+ ] : nextFields);
42
+ },
29
43
  scrollToField (name, t1) {
30
44
  const options = void 0 === t1 ? {} : t1;
31
45
  const targets = fields.get(fieldKey(name));
@@ -67,4 +81,10 @@ function use_form_useForm(form) {
67
81
  } else t1 = $[3];
68
82
  return t1;
69
83
  }
84
+ function _temp(field_0) {
85
+ return {
86
+ name: field_0.name,
87
+ errors: []
88
+ };
89
+ }
70
90
  export { fieldKey, getFieldRegistry, use_form_useForm as useForm };
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react-compiler-runtime";
3
3
  import { FocusScope, FocusScopeBranchProvider, useFocusScopeBranchRegistry } from "@radix-ui/react-focus-scope";
4
- import { createContext, useContext, useEffect, useRef } from "react";
4
+ import { createContext, forwardRef, memo, useContext, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
5
5
  import { RemoveScroll } from "react-remove-scroll";
6
6
  import { TaoPortalScope, TaoProvider, useTaoConfig } from "../../provider/tao-provider.js";
7
7
  import { resolveResponsiveValue, useBreakpoint } from "../../utils/breakpoint.js";
@@ -631,52 +631,129 @@ function _temp(event_3) {
631
631
  return event_3.preventDefault();
632
632
  }
633
633
  function ModalInteractionScope(t0) {
634
- const $ = c(12);
634
+ const $ = c(19);
635
635
  const { open, scrollLock, trapFocus, branches, onOpenAutoFocus, onCloseAutoFocus, children } = t0;
636
- const t1 = open && scrollLock;
637
- const t2 = open && trapFocus;
638
- let t3;
636
+ const [node, setNode] = useState(null);
637
+ let t1;
639
638
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
640
- t3 = {
639
+ t1 = {};
640
+ $[0] = t1;
641
+ } else t1 = $[0];
642
+ const [scopeProps, setScopeProps] = useState(t1);
643
+ const t2 = open && scrollLock;
644
+ const t3 = open ? scopeProps : void 0;
645
+ let t4;
646
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
647
+ t4 = {
641
648
  display: "contents"
642
649
  };
643
- $[0] = t3;
644
- } else t3 = $[0];
645
- let t4;
646
- if ($[1] !== branches || $[2] !== children || $[3] !== onCloseAutoFocus || $[4] !== onOpenAutoFocus || $[5] !== t2 || $[6] !== trapFocus) {
647
- t4 = /*#__PURE__*/ jsx(FocusScope, {
648
- loop: trapFocus,
649
- trapped: t2,
650
- branches: branches,
651
- onMountAutoFocus: onOpenAutoFocus,
652
- onUnmountAutoFocus: onCloseAutoFocus,
653
- style: t3,
650
+ $[1] = t4;
651
+ } else t4 = $[1];
652
+ let t5;
653
+ if ($[2] !== children || $[3] !== t3) {
654
+ t5 = /*#__PURE__*/ jsx("div", {
655
+ ...t3,
656
+ style: t4,
654
657
  children: children
655
658
  });
656
- $[1] = branches;
657
659
  $[2] = children;
658
- $[3] = onCloseAutoFocus;
659
- $[4] = onOpenAutoFocus;
660
- $[5] = t2;
661
- $[6] = trapFocus;
662
- $[7] = t4;
663
- } else t4 = $[7];
664
- let t5;
665
- if ($[8] !== branches || $[9] !== t1 || $[10] !== t4) {
666
- t5 = /*#__PURE__*/ jsx(RemoveScroll, {
667
- enabled: t1,
660
+ $[3] = t3;
661
+ $[4] = t5;
662
+ } else t5 = $[4];
663
+ let t6;
664
+ if ($[5] !== branches || $[6] !== t2 || $[7] !== t5) {
665
+ t6 = /*#__PURE__*/ jsx(RemoveScroll, {
666
+ ref: setNode,
667
+ enabled: t2,
668
668
  allowPinchZoom: true,
669
669
  shards: branches,
670
670
  forwardProps: true,
671
- children: t4
671
+ children: t5
672
+ });
673
+ $[5] = branches;
674
+ $[6] = t2;
675
+ $[7] = t5;
676
+ $[8] = t6;
677
+ } else t6 = $[8];
678
+ let t7;
679
+ if ($[9] !== branches || $[10] !== node || $[11] !== onCloseAutoFocus || $[12] !== onOpenAutoFocus || $[13] !== open || $[14] !== trapFocus) {
680
+ t7 = open && node && /*#__PURE__*/ jsx(FocusScope, {
681
+ asChild: true,
682
+ loop: trapFocus,
683
+ trapped: trapFocus,
684
+ branches: branches,
685
+ onMountAutoFocus: onOpenAutoFocus,
686
+ onUnmountAutoFocus: onCloseAutoFocus,
687
+ children: /*#__PURE__*/ jsx(modal_ModalScopeHost, {
688
+ node: node,
689
+ onPropsChange: setScopeProps
690
+ })
672
691
  });
673
- $[8] = branches;
674
- $[9] = t1;
675
- $[10] = t4;
676
- $[11] = t5;
677
- } else t5 = $[11];
678
- return t5;
692
+ $[9] = branches;
693
+ $[10] = node;
694
+ $[11] = onCloseAutoFocus;
695
+ $[12] = onOpenAutoFocus;
696
+ $[13] = open;
697
+ $[14] = trapFocus;
698
+ $[15] = t7;
699
+ } else t7 = $[15];
700
+ let t8;
701
+ if ($[16] !== t6 || $[17] !== t7) {
702
+ t8 = /*#__PURE__*/ jsxs(Fragment, {
703
+ children: [
704
+ t6,
705
+ t7
706
+ ]
707
+ });
708
+ $[16] = t6;
709
+ $[17] = t7;
710
+ $[18] = t8;
711
+ } else t8 = $[18];
712
+ return t8;
679
713
  }
714
+ const modal_ModalScopeHost = /*#__PURE__*/ memo(/*#__PURE__*/ forwardRef(function(t0, ref) {
715
+ const $ = c(10);
716
+ let node;
717
+ let onPropsChange;
718
+ let props;
719
+ if ($[0] !== t0) {
720
+ ({ node, onPropsChange, ...props } = t0);
721
+ $[0] = t0;
722
+ $[1] = node;
723
+ $[2] = onPropsChange;
724
+ $[3] = props;
725
+ } else {
726
+ node = $[1];
727
+ onPropsChange = $[2];
728
+ props = $[3];
729
+ }
730
+ let t1;
731
+ let t2;
732
+ if ($[4] !== node) {
733
+ t1 = ()=>node;
734
+ t2 = [
735
+ node
736
+ ];
737
+ $[4] = node;
738
+ $[5] = t1;
739
+ $[6] = t2;
740
+ } else {
741
+ t1 = $[5];
742
+ t2 = $[6];
743
+ }
744
+ useImperativeHandle(ref, t1, t2);
745
+ let t3;
746
+ if ($[7] !== onPropsChange || $[8] !== props) {
747
+ t3 = ()=>{
748
+ onPropsChange(props);
749
+ };
750
+ $[7] = onPropsChange;
751
+ $[8] = props;
752
+ $[9] = t3;
753
+ } else t3 = $[9];
754
+ useLayoutEffect(t3);
755
+ return null;
756
+ }));
680
757
  function CloseIcon() {
681
758
  const $ = c(1);
682
759
  let t0;
@@ -60,7 +60,8 @@ function SelectTags(t0) {
60
60
  let t3;
61
61
  if ($[6] !== maxTagTextLength) {
62
62
  t3 = (option)=>{
63
- const text = "string" == typeof option.label ? option.label : String(option.label);
63
+ if ("string" != typeof option.label && "number" != typeof option.label) return option.label;
64
+ const text = String(option.label);
64
65
  return null != maxTagTextLength && text.length > maxTagTextLength ? `${text.slice(0, maxTagTextLength)}…` : option.label;
65
66
  };
66
67
  $[6] = maxTagTextLength;
@@ -369,6 +369,14 @@
369
369
  color: var(--tao-steps-icon-text-active);
370
370
  }
371
371
 
372
+ [data-tao-steps][data-tao-finish-icon-background]:is([data-tao-type="default"], [data-tao-type="navigation"], [data-tao-type="panel"]) [data-tao-step][data-tao-status="finish"]:not([data-tao-custom]) [data-tao-step-icon] {
373
+ background: var(--tao-steps-finish-icon-background);
374
+ }
375
+
376
+ [data-tao-steps][data-tao-finish-icon-color]:is([data-tao-type="default"], [data-tao-type="navigation"], [data-tao-type="panel"]) [data-tao-step][data-tao-status="finish"]:not([data-tao-custom]) [data-tao-step-icon] {
377
+ color: var(--tao-steps-finish-icon-color);
378
+ }
379
+
372
380
  [data-tao-steps][data-tao-type="dot"] [data-tao-step]:not([data-tao-custom]) [data-tao-step-icon], [data-tao-steps][data-tao-type="inline"] [data-tao-step]:not([data-tao-custom]) [data-tao-step-icon] {
373
381
  background: var(--tao-steps-dot-bg);
374
382
  border-color: var(--tao-steps-dot-border);
@@ -82,6 +82,10 @@ export interface StepsProps {
82
82
  ellipsis?: boolean;
83
83
  /** Replace the icon node of every step. */
84
84
  iconRender?: StepsIconRender;
85
+ /** Background of the built-in finished-step circle. */
86
+ finishIconBackground?: CSSProperties['backgroundColor'];
87
+ /** Color of the built-in finished-step check mark. */
88
+ finishIconColor?: CSSProperties['color'];
85
89
  /** Fires with the absolute step index when a non-current step is activated. */
86
90
  onChange?: (current: number) => void;
87
91
  className?: string;
@@ -89,4 +93,4 @@ export interface StepsProps {
89
93
  classNames?: SemanticClassNames<StepsSemanticPart>;
90
94
  styles?: SemanticStyles<StepsSemanticPart>;
91
95
  }
92
- export declare function Steps({ items, current, initial, status, orientation, titlePlacement, responsive, size, variant, type, percent, maxCount, offset, ellipsis, iconRender, onChange, className, style, classNames, styles, }: StepsProps): import("react").JSX.Element;
96
+ export declare function Steps({ items, current, initial, status, orientation, titlePlacement, responsive, size, variant, type, percent, maxCount, offset, ellipsis, iconRender, finishIconBackground, finishIconColor, onChange, className, style, classNames, styles, }: StepsProps): import("react").JSX.Element;
@@ -117,8 +117,8 @@ function resolveStatuses(displaySteps, displayCurrent, currentStatus) {
117
117
  });
118
118
  }
119
119
  function Steps(t0) {
120
- const $ = c(96);
121
- const { items, current: t1, initial: t2, status: t3, orientation, titlePlacement, responsive: t4, size, variant: t5, type, percent, maxCount, offset: t6, ellipsis: t7, iconRender, onChange, className, style, classNames, styles } = t0;
120
+ const $ = c(100);
121
+ const { items, current: t1, initial: t2, status: t3, orientation, titlePlacement, responsive: t4, size, variant: t5, type, percent, maxCount, offset: t6, ellipsis: t7, iconRender, finishIconBackground, finishIconColor, onChange, className, style, classNames, styles } = t0;
122
122
  const current = void 0 === t1 ? 0 : t1;
123
123
  const initial = void 0 === t2 ? 0 : t2;
124
124
  const status = void 0 === t3 ? "process" : t3;
@@ -188,34 +188,40 @@ function Steps(t0) {
188
188
  const t13 = String(isInline ? offset : 0);
189
189
  const t14 = styles?.root;
190
190
  let t15;
191
- if ($[16] !== style || $[17] !== t13 || $[18] !== t14) {
191
+ if ($[16] !== finishIconBackground || $[17] !== finishIconColor || $[18] !== style || $[19] !== t13 || $[20] !== t14) {
192
192
  t15 = {
193
193
  "--tao-steps-items-offset": t13,
194
+ "--tao-steps-finish-icon-background": finishIconBackground,
195
+ "--tao-steps-finish-icon-color": finishIconColor,
194
196
  ...t14,
195
197
  ...style
196
198
  };
197
- $[16] = style;
198
- $[17] = t13;
199
- $[18] = t14;
200
- $[19] = t15;
201
- } else t15 = $[19];
199
+ $[16] = finishIconBackground;
200
+ $[17] = finishIconColor;
201
+ $[18] = style;
202
+ $[19] = t13;
203
+ $[20] = t14;
204
+ $[21] = t15;
205
+ } else t15 = $[21];
202
206
  const rootStyle = t15;
203
- const t16 = ellipsis || void 0;
204
- const t17 = canApplyMaxCount || void 0;
205
- const t18 = void 0 !== mergedPercent || void 0;
206
- const t19 = classNames?.root;
207
- let t20;
208
- if ($[20] !== className || $[21] !== t19) {
209
- t20 = cx(t19, className);
210
- $[20] = className;
211
- $[21] = t19;
212
- $[22] = t20;
213
- } else t20 = $[22];
214
- let t21;
215
- if ($[23] !== classNames?.item || $[24] !== classNames?.itemContent || $[25] !== classNames?.itemHeader || $[26] !== classNames?.itemRail || $[27] !== classNames?.itemSection || $[28] !== classNames?.itemSubtitle || $[29] !== classNames?.itemTitle || $[30] !== classNames?.itemWrapper || $[31] !== contextDisabled || $[32] !== displayCurrent || $[33] !== displaySteps || $[34] !== handleStepClick || $[35] !== iconRender || $[36] !== initial || $[37] !== isDot || $[38] !== isInline || $[39] !== isPanel || $[40] !== mergedPercent || $[41] !== onChange || $[42] !== statuses || $[43] !== styles?.item || $[44] !== styles?.itemContent || $[45] !== styles?.itemHeader || $[46] !== styles?.itemRail || $[47] !== styles?.itemSection || $[48] !== styles?.itemSubtitle || $[49] !== styles?.itemTitle || $[50] !== styles?.itemWrapper) {
216
- let t22;
217
- if ($[52] !== classNames?.item || $[53] !== classNames?.itemContent || $[54] !== classNames?.itemHeader || $[55] !== classNames?.itemRail || $[56] !== classNames?.itemSection || $[57] !== classNames?.itemSubtitle || $[58] !== classNames?.itemTitle || $[59] !== classNames?.itemWrapper || $[60] !== contextDisabled || $[61] !== displayCurrent || $[62] !== displaySteps.length || $[63] !== handleStepClick || $[64] !== iconRender || $[65] !== initial || $[66] !== isDot || $[67] !== isInline || $[68] !== isPanel || $[69] !== mergedPercent || $[70] !== onChange || $[71] !== statuses || $[72] !== styles?.item || $[73] !== styles?.itemContent || $[74] !== styles?.itemHeader || $[75] !== styles?.itemRail || $[76] !== styles?.itemSection || $[77] !== styles?.itemSubtitle || $[78] !== styles?.itemTitle || $[79] !== styles?.itemWrapper) {
218
- t22 = (displayStep, displayIndex_0)=>{
207
+ const t16 = void 0 !== finishIconBackground || void 0;
208
+ const t17 = void 0 !== finishIconColor || void 0;
209
+ const t18 = ellipsis || void 0;
210
+ const t19 = canApplyMaxCount || void 0;
211
+ const t20 = void 0 !== mergedPercent || void 0;
212
+ const t21 = classNames?.root;
213
+ let t22;
214
+ if ($[22] !== className || $[23] !== t21) {
215
+ t22 = cx(t21, className);
216
+ $[22] = className;
217
+ $[23] = t21;
218
+ $[24] = t22;
219
+ } else t22 = $[24];
220
+ let t23;
221
+ if ($[25] !== classNames?.item || $[26] !== classNames?.itemContent || $[27] !== classNames?.itemHeader || $[28] !== classNames?.itemRail || $[29] !== classNames?.itemSection || $[30] !== classNames?.itemSubtitle || $[31] !== classNames?.itemTitle || $[32] !== classNames?.itemWrapper || $[33] !== contextDisabled || $[34] !== displayCurrent || $[35] !== displaySteps || $[36] !== handleStepClick || $[37] !== iconRender || $[38] !== initial || $[39] !== isDot || $[40] !== isInline || $[41] !== isPanel || $[42] !== mergedPercent || $[43] !== onChange || $[44] !== statuses || $[45] !== styles?.item || $[46] !== styles?.itemContent || $[47] !== styles?.itemHeader || $[48] !== styles?.itemRail || $[49] !== styles?.itemSection || $[50] !== styles?.itemSubtitle || $[51] !== styles?.itemTitle || $[52] !== styles?.itemWrapper) {
222
+ let t24;
223
+ if ($[54] !== classNames?.item || $[55] !== classNames?.itemContent || $[56] !== classNames?.itemHeader || $[57] !== classNames?.itemRail || $[58] !== classNames?.itemSection || $[59] !== classNames?.itemSubtitle || $[60] !== classNames?.itemTitle || $[61] !== classNames?.itemWrapper || $[62] !== contextDisabled || $[63] !== displayCurrent || $[64] !== displaySteps.length || $[65] !== handleStepClick || $[66] !== iconRender || $[67] !== initial || $[68] !== isDot || $[69] !== isInline || $[70] !== isPanel || $[71] !== mergedPercent || $[72] !== onChange || $[73] !== statuses || $[74] !== styles?.item || $[75] !== styles?.itemContent || $[76] !== styles?.itemHeader || $[77] !== styles?.itemRail || $[78] !== styles?.itemSection || $[79] !== styles?.itemSubtitle || $[80] !== styles?.itemTitle || $[81] !== styles?.itemWrapper) {
224
+ t24 = (displayStep, displayIndex_0)=>{
219
225
  const { item, originIndex, ellipsis: isEllipsisStep } = displayStep;
220
226
  const stepStatus = statuses[displayIndex_0];
221
227
  const nextStatus = statuses[displayIndex_0 + 1];
@@ -369,107 +375,111 @@ function Steps(t0) {
369
375
  }, itemKey);
370
376
  return stepNode;
371
377
  };
372
- $[52] = classNames?.item;
373
- $[53] = classNames?.itemContent;
374
- $[54] = classNames?.itemHeader;
375
- $[55] = classNames?.itemRail;
376
- $[56] = classNames?.itemSection;
377
- $[57] = classNames?.itemSubtitle;
378
- $[58] = classNames?.itemTitle;
379
- $[59] = classNames?.itemWrapper;
380
- $[60] = contextDisabled;
381
- $[61] = displayCurrent;
382
- $[62] = displaySteps.length;
383
- $[63] = handleStepClick;
384
- $[64] = iconRender;
385
- $[65] = initial;
386
- $[66] = isDot;
387
- $[67] = isInline;
388
- $[68] = isPanel;
389
- $[69] = mergedPercent;
390
- $[70] = onChange;
391
- $[71] = statuses;
392
- $[72] = styles?.item;
393
- $[73] = styles?.itemContent;
394
- $[74] = styles?.itemHeader;
395
- $[75] = styles?.itemRail;
396
- $[76] = styles?.itemSection;
397
- $[77] = styles?.itemSubtitle;
398
- $[78] = styles?.itemTitle;
399
- $[79] = styles?.itemWrapper;
400
- $[80] = t22;
401
- } else t22 = $[80];
402
- t21 = displaySteps.map(t22);
403
- $[23] = classNames?.item;
404
- $[24] = classNames?.itemContent;
405
- $[25] = classNames?.itemHeader;
406
- $[26] = classNames?.itemRail;
407
- $[27] = classNames?.itemSection;
408
- $[28] = classNames?.itemSubtitle;
409
- $[29] = classNames?.itemTitle;
410
- $[30] = classNames?.itemWrapper;
411
- $[31] = contextDisabled;
412
- $[32] = displayCurrent;
413
- $[33] = displaySteps;
414
- $[34] = handleStepClick;
415
- $[35] = iconRender;
416
- $[36] = initial;
417
- $[37] = isDot;
418
- $[38] = isInline;
419
- $[39] = isPanel;
420
- $[40] = mergedPercent;
421
- $[41] = onChange;
422
- $[42] = statuses;
423
- $[43] = styles?.item;
424
- $[44] = styles?.itemContent;
425
- $[45] = styles?.itemHeader;
426
- $[46] = styles?.itemRail;
427
- $[47] = styles?.itemSection;
428
- $[48] = styles?.itemSubtitle;
429
- $[49] = styles?.itemTitle;
430
- $[50] = styles?.itemWrapper;
431
- $[51] = t21;
432
- } else t21 = $[51];
433
- let t22;
434
- if ($[81] !== semanticValue || $[82] !== t21) {
435
- t22 = /*#__PURE__*/ jsx(StepsSemanticContext.Provider, {
378
+ $[54] = classNames?.item;
379
+ $[55] = classNames?.itemContent;
380
+ $[56] = classNames?.itemHeader;
381
+ $[57] = classNames?.itemRail;
382
+ $[58] = classNames?.itemSection;
383
+ $[59] = classNames?.itemSubtitle;
384
+ $[60] = classNames?.itemTitle;
385
+ $[61] = classNames?.itemWrapper;
386
+ $[62] = contextDisabled;
387
+ $[63] = displayCurrent;
388
+ $[64] = displaySteps.length;
389
+ $[65] = handleStepClick;
390
+ $[66] = iconRender;
391
+ $[67] = initial;
392
+ $[68] = isDot;
393
+ $[69] = isInline;
394
+ $[70] = isPanel;
395
+ $[71] = mergedPercent;
396
+ $[72] = onChange;
397
+ $[73] = statuses;
398
+ $[74] = styles?.item;
399
+ $[75] = styles?.itemContent;
400
+ $[76] = styles?.itemHeader;
401
+ $[77] = styles?.itemRail;
402
+ $[78] = styles?.itemSection;
403
+ $[79] = styles?.itemSubtitle;
404
+ $[80] = styles?.itemTitle;
405
+ $[81] = styles?.itemWrapper;
406
+ $[82] = t24;
407
+ } else t24 = $[82];
408
+ t23 = displaySteps.map(t24);
409
+ $[25] = classNames?.item;
410
+ $[26] = classNames?.itemContent;
411
+ $[27] = classNames?.itemHeader;
412
+ $[28] = classNames?.itemRail;
413
+ $[29] = classNames?.itemSection;
414
+ $[30] = classNames?.itemSubtitle;
415
+ $[31] = classNames?.itemTitle;
416
+ $[32] = classNames?.itemWrapper;
417
+ $[33] = contextDisabled;
418
+ $[34] = displayCurrent;
419
+ $[35] = displaySteps;
420
+ $[36] = handleStepClick;
421
+ $[37] = iconRender;
422
+ $[38] = initial;
423
+ $[39] = isDot;
424
+ $[40] = isInline;
425
+ $[41] = isPanel;
426
+ $[42] = mergedPercent;
427
+ $[43] = onChange;
428
+ $[44] = statuses;
429
+ $[45] = styles?.item;
430
+ $[46] = styles?.itemContent;
431
+ $[47] = styles?.itemHeader;
432
+ $[48] = styles?.itemRail;
433
+ $[49] = styles?.itemSection;
434
+ $[50] = styles?.itemSubtitle;
435
+ $[51] = styles?.itemTitle;
436
+ $[52] = styles?.itemWrapper;
437
+ $[53] = t23;
438
+ } else t23 = $[53];
439
+ let t24;
440
+ if ($[83] !== semanticValue || $[84] !== t23) {
441
+ t24 = /*#__PURE__*/ jsx(StepsSemanticContext.Provider, {
436
442
  value: semanticValue,
437
- children: t21
443
+ children: t23
438
444
  });
439
- $[81] = semanticValue;
440
- $[82] = t21;
441
- $[83] = t22;
442
- } else t22 = $[83];
443
- let t23;
444
- if ($[84] !== mergedOrientation || $[85] !== mergedTitlePlacement || $[86] !== mergedType || $[87] !== resolvedSize || $[88] !== rootStyle || $[89] !== t16 || $[90] !== t17 || $[91] !== t18 || $[92] !== t20 || $[93] !== t22 || $[94] !== variant) {
445
- t23 = /*#__PURE__*/ jsx("div", {
445
+ $[83] = semanticValue;
446
+ $[84] = t23;
447
+ $[85] = t24;
448
+ } else t24 = $[85];
449
+ let t25;
450
+ if ($[86] !== mergedOrientation || $[87] !== mergedTitlePlacement || $[88] !== mergedType || $[89] !== resolvedSize || $[90] !== rootStyle || $[91] !== t16 || $[92] !== t17 || $[93] !== t18 || $[94] !== t19 || $[95] !== t20 || $[96] !== t22 || $[97] !== t24 || $[98] !== variant) {
451
+ t25 = /*#__PURE__*/ jsx("div", {
446
452
  "data-tao-steps": "",
453
+ "data-tao-finish-icon-background": t16,
454
+ "data-tao-finish-icon-color": t17,
447
455
  "data-tao-orientation": mergedOrientation,
448
456
  "data-tao-title-placement": mergedTitlePlacement,
449
457
  "data-tao-type": mergedType,
450
458
  "data-tao-variant": variant,
451
459
  "data-tao-size": resolvedSize,
452
- "data-tao-ellipsis": t16,
453
- "data-tao-max-count": t17,
454
- "data-tao-with-progress": t18,
455
- className: t20,
460
+ "data-tao-ellipsis": t18,
461
+ "data-tao-max-count": t19,
462
+ "data-tao-with-progress": t20,
463
+ className: t22,
456
464
  style: rootStyle,
457
- children: t22
465
+ children: t24
458
466
  });
459
- $[84] = mergedOrientation;
460
- $[85] = mergedTitlePlacement;
461
- $[86] = mergedType;
462
- $[87] = resolvedSize;
463
- $[88] = rootStyle;
464
- $[89] = t16;
465
- $[90] = t17;
466
- $[91] = t18;
467
- $[92] = t20;
468
- $[93] = t22;
469
- $[94] = variant;
470
- $[95] = t23;
471
- } else t23 = $[95];
472
- return t23;
467
+ $[86] = mergedOrientation;
468
+ $[87] = mergedTitlePlacement;
469
+ $[88] = mergedType;
470
+ $[89] = resolvedSize;
471
+ $[90] = rootStyle;
472
+ $[91] = t16;
473
+ $[92] = t17;
474
+ $[93] = t18;
475
+ $[94] = t19;
476
+ $[95] = t20;
477
+ $[96] = t22;
478
+ $[97] = t24;
479
+ $[98] = variant;
480
+ $[99] = t25;
481
+ } else t25 = $[99];
482
+ return t25;
473
483
  }
474
484
  function _temp(event_0) {
475
485
  if (!event_0.defaultPrevented && event_0.target === event_0.currentTarget && ("Enter" === event_0.key || " " === event_0.key)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockshin/tao-ui",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "type": "module",
5
5
  "description": "A modern React component library with semantic DOM customization and OKLCH-based theming.",
6
6
  "keywords": [