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.mjs CHANGED
@@ -65039,10 +65039,10 @@ const Wizard = forwardRef((props, ref) => {
65039
65039
  const renderHeader = () => {
65040
65040
  return steps.map((step, index) => {
65041
65041
  return (jsxs(Fragment, { children: [index !== 0 && index !== steps.length ? jsx("div", { className: 'line', children: separator }) : null, jsx("div", { className: classnames('step', {
65042
- crossed: (step.done !== undefined ? step.done : activeStep > index),
65042
+ crossed: (step.done !== undefined ? step.done : activeStep > (index + 1)),
65043
65043
  disable: step.disable,
65044
65044
  active: (index + 1) === activeStep
65045
- }), "data-target": `#${step.id}`, children: jsxs("button", { type: 'button', disabled: step.disable, className: 'step-trigger', onClick: () => setActiveStep?.(index), children: [jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxs("span", { className: 'bs-stepper-label', children: [jsxs("span", { className: 'bs-stepper-title', children: [step.title, " "] }), step.loading && jsx(Spinner$1, { className: 'text-info', style: { borderWidth: 2, height: 15, width: 15, marginRight: 3 } }), " ", step.subtitle ? jsx("span", { className: 'bs-stepper-subtitle', children: step.subtitle }) : null] })] }) })] }, step.id));
65045
+ }), "data-target": `#${step.id}`, children: jsxs("button", { type: 'button', disabled: step.disable, className: 'step-trigger', onClick: () => setActiveStep?.(index + 1), children: [jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxs("span", { className: 'bs-stepper-label', children: [jsxs("span", { className: 'bs-stepper-title', children: [step.title, " "] }), step.loading && jsx(Spinner$1, { className: 'text-info', style: { borderWidth: 2, height: 15, width: 15, marginRight: 3 } }), " ", step.subtitle ? jsx("span", { className: 'bs-stepper-subtitle', children: step.subtitle }) : null] })] }) })] }, step.id));
65046
65046
  });
65047
65047
  };
65048
65048
  // ** Renders Wizard Content
@@ -65050,7 +65050,7 @@ const Wizard = forwardRef((props, ref) => {
65050
65050
  return steps.map((step, index) => {
65051
65051
  return (jsx("div", { className: classnames('content', {
65052
65052
  [contentClassName]: contentClassName,
65053
- 'active dstepper-block': activeStep === index
65053
+ 'active dstepper-block': activeStep === (index + 1)
65054
65054
  }), id: step.id, children: step.content }, step.id));
65055
65055
  });
65056
65056
  };