react-table-edit 1.4.3 → 1.4.5
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
|
@@ -65037,14 +65037,15 @@ styleInject(css_248z);
|
|
|
65037
65037
|
|
|
65038
65038
|
const Wizard = forwardRef((props, ref) => {
|
|
65039
65039
|
// ** Props
|
|
65040
|
-
const { steps, activeStep, setActiveStep, className = '', headerClassName = '', contentClassName = '', contentWrapperClassName = '', type = 'horizontal', separator = jsx(SvgChevronRight, { fontSize: 17 }) } = props;
|
|
65040
|
+
const { steps, activeStep, setActiveStep, className = '', headerClassName = '', contentClassName = '', contentWrapperClassName = '', type = 'horizontal', heightContent = 'auto', widthContent = '100%', separator = jsx(SvgChevronRight, { fontSize: 17 }) } = props;
|
|
65041
65041
|
// ** Renders Wizard Header
|
|
65042
65042
|
const renderHeader = () => {
|
|
65043
65043
|
return steps.map((step, index) => {
|
|
65044
65044
|
return (jsxs(Fragment, { children: [index !== 0 && index !== steps.length ? jsx("div", { className: 'line', children: separator }) : null, jsx("div", { className: classnames('step', {
|
|
65045
|
-
crossed: step.
|
|
65045
|
+
crossed: (step.done !== undefined ? step.done : activeStep > index),
|
|
65046
|
+
disable: step.disable,
|
|
65046
65047
|
active: index === activeStep
|
|
65047
|
-
}), "data-target": `#${step.id}`, children: jsxs("button", { type: 'button', 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: [
|
|
65048
|
+
}), "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));
|
|
65048
65049
|
});
|
|
65049
65050
|
};
|
|
65050
65051
|
// ** Renders Wizard Content
|
|
@@ -65061,7 +65062,7 @@ const Wizard = forwardRef((props, ref) => {
|
|
|
65061
65062
|
vertical: type === 'vertical',
|
|
65062
65063
|
'vertical wizard-modern': type === 'modern-vertical',
|
|
65063
65064
|
'wizard-modern': type === 'modern-horizontal'
|
|
65064
|
-
}), children: [jsx("div", { className: classnames('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { className: classnames('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
|
|
65065
|
+
}), children: [jsx("div", { className: classnames('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { style: { height: heightContent, width: widthContent }, className: classnames('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
|
|
65065
65066
|
});
|
|
65066
65067
|
|
|
65067
65068
|
const ImportExcelComponent = (props) => {
|