@scm-manager/ui-buttons 2.42.3 → 2.42.4-20230213-115210

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/build/index.js CHANGED
@@ -53,7 +53,8 @@ var createButtonClasses = (variant, isLoading) => (0, import_classnames.default)
53
53
  "is-loading": isLoading
54
54
  });
55
55
  var Button = import_react.default.forwardRef(
56
- ({ className, variant, isLoading, testId, children, ...props }, ref) => /* @__PURE__ */ import_react.default.createElement("button", {
56
+ ({ className, variant, isLoading, testId, type, children, ...props }, ref) => /* @__PURE__ */ import_react.default.createElement("button", {
57
+ type: type ?? "button",
57
58
  ...props,
58
59
  className: (0, import_classnames.default)(createButtonClasses(variant, isLoading), className),
59
60
  ref,
package/build/index.mjs CHANGED
@@ -18,7 +18,8 @@ var createButtonClasses = (variant, isLoading) => classNames("button", {
18
18
  "is-loading": isLoading
19
19
  });
20
20
  var Button = React.forwardRef(
21
- ({ className, variant, isLoading, testId, children, ...props }, ref) => /* @__PURE__ */ React.createElement("button", {
21
+ ({ className, variant, isLoading, testId, type, children, ...props }, ref) => /* @__PURE__ */ React.createElement("button", {
22
+ type: type ?? "button",
22
23
  ...props,
23
24
  className: classNames(createButtonClasses(variant, isLoading), className),
24
25
  ref,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scm-manager/ui-buttons",
3
- "version": "2.42.3",
3
+ "version": "2.42.4-20230213-115210",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.mjs",
@@ -24,11 +24,11 @@
24
24
  "react-dom": "^17.0.1",
25
25
  "react-router-dom": "^5.3.1",
26
26
  "classnames": "^2.2.6",
27
- "@scm-manager/ui-components": "2.42.3"
27
+ "@scm-manager/ui-components": "2.42.4-20230213-115210"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@scm-manager/prettier-config": "^2.11.1",
31
- "@scm-manager/ui-api": "2.42.3",
31
+ "@scm-manager/ui-api": "2.42.4-20230213-115210",
32
32
  "@scm-manager/eslint-config": "^2.17.0",
33
33
  "@babel/core": "^7.17.8",
34
34
  "@scm-manager/tsconfig": "^2.12.0",