kui-crm 0.0.317 → 0.0.319
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 +4 -4
- package/cjs/index.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +4 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -2797,8 +2797,8 @@ var companyOfficeFields = [
|
|
|
2797
2797
|
];
|
|
2798
2798
|
|
|
2799
2799
|
function FormBottom(_a) {
|
|
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, otherProps = __rest(_a, ["label", "variant", "handleClick", "withPrevStep", "handlePrevClick", "withDeleteButton", "handleDelete", "isFixed", "isLoading", "endButton", "startButton"]);
|
|
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(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 }))] })) }))] })) }))] })));
|
|
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(kuiBasic.Grid, __assign({ container: true, alignItems: "center", justify: "flex-end", direction: withReverse ? "row-reverse" : "row" }, { 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 }))] })) }))] })) }))] })));
|
|
2802
2802
|
}
|
|
2803
2803
|
FormBottom.defaultProps = {
|
|
2804
2804
|
type: "submit",
|
|
@@ -2994,8 +2994,8 @@ FillingTagsAutocomplete.defaultProps = {
|
|
|
2994
2994
|
var FillingTagsAutocomplete$1 = mobxReact.observer(FillingTagsAutocomplete);
|
|
2995
2995
|
|
|
2996
2996
|
var FormWrapper = function (props) {
|
|
2997
|
-
var form = props.form, onSubmit = props.onSubmit, children = props.children, className = props.className, testId = props.testId, other = __rest(props, ["form", "onSubmit", "children", "className", "testId"]);
|
|
2998
|
-
return (jsxRuntime.jsx("div", __assign({ className: className }, { children: jsxRuntime.jsxs("form", __assign({ onSubmit: form.handleSubmit(onSubmit), "data-testid": testId }, { children: [jsxRuntime.jsx(kuiBasic.Box, __assign({ pl: 5, pr: 5, mb: 3, className: "KUI-FormWrapper_Box" }, { children: children })), jsxRuntime.jsx(FormBottom, __assign({}, other))] })) })));
|
|
2997
|
+
var form = props.form, onSubmit = props.onSubmit, onError = props.onError, children = props.children, className = props.className, testId = props.testId, other = __rest(props, ["form", "onSubmit", "onError", "children", "className", "testId"]);
|
|
2998
|
+
return (jsxRuntime.jsx("div", __assign({ className: className }, { children: jsxRuntime.jsxs("form", __assign({ onSubmit: form.handleSubmit(onSubmit, onError), "data-testid": testId }, { children: [jsxRuntime.jsx(kuiBasic.Box, __assign({ pl: 5, pr: 5, mb: 3, className: "KUI-FormWrapper_Box" }, { children: children })), jsxRuntime.jsx(FormBottom, __assign({}, other))] })) })));
|
|
2999
2999
|
};
|
|
3000
3000
|
|
|
3001
3001
|
function HeadingWithButton(_a) {
|