kui-crm 0.0.248 → 0.0.249

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/cjs/index.js CHANGED
@@ -2761,8 +2761,8 @@ var companyOfficeFields = [
2761
2761
  ];
2762
2762
 
2763
2763
  function FormBottom(_a) {
2764
- var label = _a.label, variant = _a.variant, handleClick = _a.handleClick, withPrevStep = _a.withPrevStep, handlePrevClick = _a.handlePrevClick, withDeleteButton = _a.withDeleteButton, handleDelete = _a.handleDelete, isFixed = _a.isFixed, isLoading = _a.isLoading, endButton = _a.endButton, otherProps = __rest(_a, ["label", "variant", "handleClick", "withPrevStep", "handlePrevClick", "withDeleteButton", "handleDelete", "isFixed", "isLoading", "endButton"]);
2765
- return (jsxRuntime$1.jsxs(StyledFooter, __assign({ isFixed: Boolean(isFixed) }, { children: [jsxRuntime$1.jsx(kuiBasic.Divider, {}), jsxRuntime$1.jsx("div", __assign({ css: { padding: "0 40px" } }, { children: jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ container: true, justify: "space-between", css: { padding: "12px 0" } }, { children: [jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ item: true }, { children: [withPrevStep && (jsxRuntime$1.jsx(kuiBasic.Button, __assign({ isCircle: true, "data-testid": "prev_button", onClick: handlePrevClick, size: "s", variant: "transparentWithBorder" }, { children: jsxRuntime$1.jsx(kuiIcon.PrevArrowIcon, {}) }))), withDeleteButton && (jsxRuntime$1.jsx(kuiBasic.Button, __assign({ "data-testid": "delete_button", size: "s", onClick: handleDelete, variant: "white" }, { children: "Delete" })))] })), jsxRuntime$1.jsx(kuiBasic.Grid, __assign({ item: true }, { children: jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ container: true, alignItems: "center", justify: "flex-end" }, { children: [endButton && (jsxRuntime$1.jsx(StyledEndButtonWrapper, { children: endButton })), jsxRuntime$1.jsx(kuiBasic.Button, __assign({ "data-testid": "submit_button", size: "s", onClick: handleClick, endIcon: variant === "create" ? jsxRuntime$1.jsx(kuiIcon.CheckIcon, {}) : jsxRuntime$1.jsx(kuiIcon.NextArrowIcon, {}), disabled: isLoading }, otherProps, { children: isLoading ? jsxRuntime$1.jsx(StyledLoading, {}) : label }))] })) }))] })) }))] })));
2764
+ var label = _a.label, variant = _a.variant, handleClick = _a.handleClick, withPrevStep = _a.withPrevStep, handlePrevClick = _a.handlePrevClick, withDeleteButton = _a.withDeleteButton, handleDelete = _a.handleDelete, isFixed = _a.isFixed, isLoading = _a.isLoading, endButton = _a.endButton, startButton = _a.startButton, otherProps = __rest(_a, ["label", "variant", "handleClick", "withPrevStep", "handlePrevClick", "withDeleteButton", "handleDelete", "isFixed", "isLoading", "endButton", "startButton"]);
2765
+ return (jsxRuntime$1.jsxs(StyledFooter, __assign({ isFixed: Boolean(isFixed) }, { children: [jsxRuntime$1.jsx(kuiBasic.Divider, {}), jsxRuntime$1.jsx("div", __assign({ css: { padding: "0 40px" } }, { children: jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ container: true, justify: "space-between", css: { padding: "12px 0" } }, { children: [jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ item: true }, { children: [startButton, withPrevStep && (jsxRuntime$1.jsx(kuiBasic.Button, __assign({ isCircle: true, "data-testid": "prev_button", onClick: handlePrevClick, size: "s", variant: "transparentWithBorder" }, { children: jsxRuntime$1.jsx(kuiIcon.PrevArrowIcon, {}) }))), withDeleteButton && (jsxRuntime$1.jsx(kuiBasic.Button, __assign({ "data-testid": "delete_button", size: "s", onClick: handleDelete, variant: "white" }, { children: "Delete" })))] })), jsxRuntime$1.jsx(kuiBasic.Grid, __assign({ item: true }, { children: jsxRuntime$1.jsxs(kuiBasic.Grid, __assign({ container: true, alignItems: "center", justify: "flex-end" }, { children: [endButton && (jsxRuntime$1.jsx(StyledEndButtonWrapper, { children: endButton })), jsxRuntime$1.jsx(kuiBasic.Button, __assign({ "data-testid": "submit_button", size: "s", onClick: handleClick, endIcon: variant === "create" ? jsxRuntime$1.jsx(kuiIcon.CheckIcon, {}) : jsxRuntime$1.jsx(kuiIcon.NextArrowIcon, {}), disabled: isLoading }, otherProps, { children: isLoading ? jsxRuntime$1.jsx(StyledLoading, {}) : label }))] })) }))] })) }))] })));
2766
2766
  }
2767
2767
  FormBottom.defaultProps = {
2768
2768
  type: "submit",