@oliasoft-open-source/react-ui-library 3.3.11 → 3.3.13
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/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9162,6 +9162,7 @@ const Button$1 = ({
|
|
|
9162
9162
|
small: small2,
|
|
9163
9163
|
width,
|
|
9164
9164
|
title: title2,
|
|
9165
|
+
type,
|
|
9165
9166
|
styles: styles2,
|
|
9166
9167
|
testId
|
|
9167
9168
|
}) => {
|
|
@@ -9197,7 +9198,7 @@ const Button$1 = ({
|
|
|
9197
9198
|
return "";
|
|
9198
9199
|
})();
|
|
9199
9200
|
return /* @__PURE__ */ jsxs("button", {
|
|
9200
|
-
type: "button",
|
|
9201
|
+
type: type === "submit" ? "submit" : "button",
|
|
9201
9202
|
className: cx(buttonStyles.button, active2 ? buttonStyles.active : "", basic2 ? buttonStyles.basic : "", color, disabled2 || disabledContext ? buttonStyles.disabled : "", (icon2 || loading) && !label2 ? buttonStyles.iconOnly : "", inverted2 ? buttonStyles.inverted : "", order, pill2 ? buttonStyles.pill : "", round2 ? buttonStyles.round : "", small2 ? buttonStyles.small : "", styles2),
|
|
9202
9203
|
disabled: disabled2 || disabledContext,
|
|
9203
9204
|
name: name2,
|
|
@@ -9241,6 +9242,7 @@ Button$1.defaultProps = {
|
|
|
9241
9242
|
styles: "",
|
|
9242
9243
|
width: "",
|
|
9243
9244
|
title: "",
|
|
9245
|
+
type: "button",
|
|
9244
9246
|
onClick: () => {
|
|
9245
9247
|
},
|
|
9246
9248
|
testId: void 0,
|
|
@@ -9264,6 +9266,7 @@ Button$1.propTypes = {
|
|
|
9264
9266
|
round: PropTypes__default.bool,
|
|
9265
9267
|
small: PropTypes__default.bool,
|
|
9266
9268
|
styles: PropTypes__default.string,
|
|
9269
|
+
type: PropTypes__default.oneOf(["button", "submit"]),
|
|
9267
9270
|
width: PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.number]),
|
|
9268
9271
|
testId: PropTypes__default.string,
|
|
9269
9272
|
pill: PropTypes__default.bool,
|
|
@@ -9997,7 +10000,7 @@ const Tooltip$2 = ({
|
|
|
9997
10000
|
const visible = enabled && (isValidElement(text2) || text2.length > 0);
|
|
9998
10001
|
const [isOver, hoverProps, forceClose] = useHover({
|
|
9999
10002
|
delayEnter: 100,
|
|
10000
|
-
delayLeave:
|
|
10003
|
+
delayLeave: 0
|
|
10001
10004
|
});
|
|
10002
10005
|
const isOpen2 = !visible ? false : forceOpen ? true : isOver;
|
|
10003
10006
|
const {
|
package/package.json
CHANGED