react-table-edit 1.4.8 → 1.4.9

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/index.js CHANGED
@@ -65067,10 +65067,10 @@ const Wizard = React$5.forwardRef((props, ref) => {
65067
65067
  const renderHeader = () => {
65068
65068
  return steps.map((step, index) => {
65069
65069
  return (jsxRuntime.jsxs(React$5.Fragment, { children: [index !== 0 && index !== steps.length ? jsxRuntime.jsx("div", { className: 'line', children: separator }) : null, jsxRuntime.jsx("div", { className: classnames('step', {
65070
- crossed: (step.done !== undefined ? step.done : activeStep > index),
65070
+ crossed: (step.done !== undefined ? step.done : activeStep > (index + 1)),
65071
65071
  disable: step.disable,
65072
65072
  active: (index + 1) === activeStep
65073
- }), "data-target": `#${step.id}`, children: jsxRuntime.jsxs("button", { type: 'button', disabled: step.disable, className: 'step-trigger', onClick: () => setActiveStep?.(index), children: [jsxRuntime.jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxRuntime.jsxs("span", { className: 'bs-stepper-label', children: [jsxRuntime.jsxs("span", { className: 'bs-stepper-title', children: [step.title, " "] }), step.loading && jsxRuntime.jsx(Spinner$1, { className: 'text-info', style: { borderWidth: 2, height: 15, width: 15, marginRight: 3 } }), " ", step.subtitle ? jsxRuntime.jsx("span", { className: 'bs-stepper-subtitle', children: step.subtitle }) : null] })] }) })] }, step.id));
65073
+ }), "data-target": `#${step.id}`, children: jsxRuntime.jsxs("button", { type: 'button', disabled: step.disable, className: 'step-trigger', onClick: () => setActiveStep?.(index + 1), children: [jsxRuntime.jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxRuntime.jsxs("span", { className: 'bs-stepper-label', children: [jsxRuntime.jsxs("span", { className: 'bs-stepper-title', children: [step.title, " "] }), step.loading && jsxRuntime.jsx(Spinner$1, { className: 'text-info', style: { borderWidth: 2, height: 15, width: 15, marginRight: 3 } }), " ", step.subtitle ? jsxRuntime.jsx("span", { className: 'bs-stepper-subtitle', children: step.subtitle }) : null] })] }) })] }, step.id));
65074
65074
  });
65075
65075
  };
65076
65076
  // ** Renders Wizard Content
@@ -65078,7 +65078,7 @@ const Wizard = React$5.forwardRef((props, ref) => {
65078
65078
  return steps.map((step, index) => {
65079
65079
  return (jsxRuntime.jsx("div", { className: classnames('content', {
65080
65080
  [contentClassName]: contentClassName,
65081
- 'active dstepper-block': activeStep === index
65081
+ 'active dstepper-block': activeStep === (index + 1)
65082
65082
  }), id: step.id, children: step.content }, step.id));
65083
65083
  });
65084
65084
  };