@uxf/cms 11.28.1 → 11.28.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ const ChangePasswordForm = (props) => {
18
18
  });
19
19
  return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "change-password-form", ...formProps },
20
20
  react_1.default.createElement(widget_1.Widget, { className: "[&>*]:p-4", footer: react_1.default.createElement("div", { className: "text-right" },
21
- react_1.default.createElement(button_1.Button, { type: "submit", disabled: formApi.formState.isSubmitting }, "Ulo\u017Eit")), withDividers: true },
21
+ react_1.default.createElement(button_1.Button, { type: "submit", isDisabled: formApi.formState.isSubmitting }, "Ulo\u017Eit")), withDividers: true },
22
22
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "P\u016Fvodn\u00ED heslo", name: "originalPassword", type: "password" }),
23
23
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "Nov\u00E9 heslo", name: "newPassword", rules: props.passwordRules, type: "password" }),
24
24
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isRequired: true, label: "Nov\u00E9 heslo znovu", name: "newPasswordAgain", rules: { validate: (v) => v === formApi.getValues("newPassword") || "Hesla musí být stejná" }, type: "password" }))));
@@ -43,7 +43,7 @@ const ForgottenPasswordForm = (props) => {
43
43
  return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "forgotten-password-form", ...formProps },
44
44
  react_1.default.createElement("div", { className: "space-y-6" },
45
45
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isDisabled: formDisabled, label: "E-mail", name: "username", isRequired: true, type: "text" }),
46
- react_1.default.createElement(button_1.Button, { disabled: formDisabled || formApi.formState.isSubmitting, loading: formApi.formState.isSubmitting, type: "submit", isFullWidth: true }, "Obnovit heslo"),
46
+ react_1.default.createElement(button_1.Button, { isDisabled: formDisabled || formApi.formState.isSubmitting, isLoading: formApi.formState.isSubmitting, type: "submit", isFullWidth: true }, "Obnovit heslo"),
47
47
  onLogin && (react_1.default.createElement("div", { className: "text-right" },
48
48
  react_1.default.createElement(text_link_1.TextLink, { onClick: onLogin, disabled: formApi.formState.isSubmitting, className: "uxf-typo-medium2 text-primary" }, "P\u0159ihl\u00E1sit"))))));
49
49
  };
@@ -21,7 +21,7 @@ const InviteUserForm = (props) => {
21
21
  });
22
22
  return (react_1.default.createElement(form_1.Form, { formApi: formApi, id: "invite-user-form", ...formProps },
23
23
  react_1.default.createElement(widget_1.Widget, { withDividers: true, className: "[&>*]:p-4", footer: react_1.default.createElement("div", { className: "text-right" },
24
- react_1.default.createElement(button_1.Button, { type: "submit", disabled: formApi.formState.isSubmitting }, "Ulo\u017Eit")) },
24
+ react_1.default.createElement(button_1.Button, { type: "submit", isDisabled: formApi.formState.isSubmitting }, "Ulo\u017Eit")) },
25
25
  react_1.default.createElement(text_input_1.TextInput, { name: "email", type: "email", label: "E-mail", isRequired: true, control: formApi.control }),
26
26
  react_1.default.createElement(text_input_1.TextInput, { name: "name", label: "Jm\u00E9no", isRequired: true, control: formApi.control }),
27
27
  react_1.default.createElement(text_input_1.TextInput, { name: "surname", label: "P\u0159\u00EDjmen\u00ED", isRequired: true, control: formApi.control }),
@@ -43,6 +43,6 @@ const RenewPasswordForm = (props) => {
43
43
  react_1.default.createElement("div", { className: "space-y-6" },
44
44
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isDisabled: formDisabled, isRequired: true, label: "Nov\u00E9 heslo", name: "password", rules: props.passwordRules, type: "password" }),
45
45
  react_1.default.createElement(text_input_1.TextInput, { control: formApi.control, isDisabled: formDisabled, isRequired: true, label: "Znovu nov\u00E9 heslo", name: "passwordAgain", rules: { validate: (v) => v === formApi.getValues("password") || "Hesla musí být stejná" }, type: "password" }),
46
- react_1.default.createElement(button_1.Button, { disabled: formDisabled || formApi.formState.isSubmitting, isFullWidth: true, loading: formApi.formState.isSubmitting, type: "submit" }, "Zm\u011Bnit heslo"))));
46
+ react_1.default.createElement(button_1.Button, { isDisabled: formDisabled || formApi.formState.isSubmitting, isFullWidth: true, isLoading: formApi.formState.isSubmitting, type: "submit" }, "Zm\u011Bnit heslo"))));
47
47
  };
48
48
  exports.RenewPasswordForm = RenewPasswordForm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/cms",
3
- "version": "11.28.1",
3
+ "version": "11.28.2",
4
4
  "description": "UXF Cms",
5
5
  "author": "UXFans <dev@uxf.cz>",
6
6
  "homepage": "https://gitlab.com/uxf-npm/cms#readme",
@@ -32,11 +32,11 @@
32
32
  "@redux-devtools/extension": "3.3.0",
33
33
  "@uxf/core": "11.22.0",
34
34
  "@uxf/core-react": "11.22.0",
35
- "@uxf/data-grid": "11.28.1",
36
- "@uxf/form": "11.28.1",
35
+ "@uxf/data-grid": "11.28.2",
36
+ "@uxf/form": "11.28.2",
37
37
  "@uxf/router": "11.22.0",
38
- "@uxf/ui": "11.28.1",
39
- "@uxf/wysiwyg": "11.28.1",
38
+ "@uxf/ui": "11.28.2",
39
+ "@uxf/wysiwyg": "11.28.2",
40
40
  "axios": "1.6.7",
41
41
  "axios-hooks": "5.0.2",
42
42
  "es6-error": "4.1.1",
@@ -11,7 +11,7 @@ const widget_1 = require("../../ui/widget");
11
11
  const base_field_1 = require("./base-field");
12
12
  const BaseSubmitButton = (props) => {
13
13
  const { isSubmitting } = props.formState;
14
- return (react_1.default.createElement(button_1.Button, { type: "submit", disabled: isSubmitting }, "Ulo\u017Eit"));
14
+ return (react_1.default.createElement(button_1.Button, { type: "submit", isDisabled: isSubmitting }, "Ulo\u017Eit"));
15
15
  };
16
16
  const Form = (props) => {
17
17
  var _a, _b, _c;
@@ -38,7 +38,7 @@ const CopyToClipboard = (props) => {
38
38
  message: isCopied ? "Text zkopírován" : "Nepodařilo se zkopírovat text",
39
39
  });
40
40
  }, [props.value]);
41
- return (react_1.default.createElement(text_input_1.TextInput, { isDisabled: props.disabled, label: props.label, onChange: () => void null, rightAddon: react_1.default.createElement(button_1.Button, { className: "size-full rounded-l-none border-none", disabled: props.value === "", onClick: onCopy, variant: "secondary" },
41
+ return (react_1.default.createElement(text_input_1.TextInput, { isDisabled: props.disabled, label: props.label, onChange: () => void null, rightAddon: react_1.default.createElement(button_1.Button, { className: "size-full rounded-l-none border-none", isDisabled: props.value === "", onClick: onCopy, variant: "secondary" },
42
42
  react_1.default.createElement(icon_1.Icon, { className: "w-4", name: "copy" })), value: props.value, name: props.name }));
43
43
  };
44
44
  exports.CopyToClipboard = CopyToClipboard;