kui-crm 0.0.321 → 0.0.322

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
@@ -2798,7 +2798,7 @@ var companyOfficeFields = [
2798
2798
 
2799
2799
  function FormBottom(_a) {
2800
2800
  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, withReverse = _a.withReverse, otherProps = __rest(_a, ["label", "variant", "handleClick", "withPrevStep", "handlePrevClick", "withDeleteButton", "handleDelete", "isFixed", "isLoading", "endButton", "startButton", "withReverse"]);
2801
- 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(StyledButtonWrapper, __assign({ container: true, alignItems: "center", justify: "flex-end", direction: withReverse ? "row-reverse" : "row" }, { 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 }))] })) }))] })) }))] })));
2801
+ 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(StyledButtonWrapper, __assign({ container: true, alignItems: "center", justify: "flex-end", direction: withReverse ? "row-reverse" : "row", withReverse: withReverse }, { 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 }))] })) }))] })) }))] })));
2802
2802
  }
2803
2803
  FormBottom.defaultProps = {
2804
2804
  type: "submit",
@@ -2823,7 +2823,10 @@ var StyledFooter = styled__default["default"](Footer)(templateObject_2$r || (tem
2823
2823
  var isFixed = _a.isFixed;
2824
2824
  return (isFixed ? 0 : "auto");
2825
2825
  });
2826
- var StyledButtonWrapper = styled__default["default"](kuiBasic.Grid)(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n > button:nth-child(2) {\n margin-left: 16px;\n }\n"], ["\n > button:nth-child(2) {\n margin-left: 16px;\n }\n"])));
2826
+ var StyledButtonWrapper = styled__default["default"](kuiBasic.Grid)(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n > button:nth-child(", ") {\n margin-left: 16px;\n }\n"], ["\n > button:nth-child(", ") {\n margin-left: 16px;\n }\n"])), function (_a) {
2827
+ var withReverse = _a.withReverse;
2828
+ return (withReverse ? 1 : 2);
2829
+ });
2827
2830
  var templateObject_1$H, templateObject_2$r, templateObject_3$g;
2828
2831
 
2829
2832
  function CompanyCreationForm(_a) {