@speakapbv/dough-component-library 9.11.0 → 9.12.0
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.es.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -720,7 +720,6 @@ var Button = function (props) {
|
|
|
720
720
|
"dough-button-wait": props.busy,
|
|
721
721
|
"dough-button-disabled": props.disabled,
|
|
722
722
|
}) },
|
|
723
|
-
props.icon && !alignIconRight && (React.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
724
723
|
React.createElement("div", { className: cn("dough-button-background-wrapper", initColorVal) },
|
|
725
724
|
props.color && props.color.match("dough-color-text") && (React.createElement(React.Fragment, null,
|
|
726
725
|
props.border && (React.createElement("svg", { className: "dough-button-background-wrapper-border-svg" },
|
|
@@ -731,10 +730,11 @@ var Button = function (props) {
|
|
|
731
730
|
props.busy && (React.createElement("div", { className: "dough-button-waiter" },
|
|
732
731
|
React.createElement("svg", { width: "100%", height: "100%" },
|
|
733
732
|
React.createElement("rect", { width: "100%", height: "100%", fill: "currentColor" }))))),
|
|
734
|
-
props.icon && alignIconRight && (React.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
733
|
+
props.icon && !alignIconRight && (React.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
735
734
|
React.createElement("div", { className: "dough-button-label" },
|
|
736
735
|
props.label && React.createElement(React.Fragment, null, props.label),
|
|
737
|
-
!props.label && props.children && props.children)
|
|
736
|
+
!props.label && props.children && props.children),
|
|
737
|
+
props.icon && alignIconRight && (React.createElement("div", { className: "dough-button-icon" }, props.icon)))); };
|
|
738
738
|
return (React.createElement(React.Fragment, null,
|
|
739
739
|
type === ButtonInputType.LINK && (React.createElement(Link, __assign({ ref: buttonRef, className: cn("dough-button-wrapper", props.className, {
|
|
740
740
|
"dough-button-full-width": props.fullWidth,
|
package/dist/index.js
CHANGED
|
@@ -715,7 +715,6 @@ var Button = function (props) {
|
|
|
715
715
|
"dough-button-wait": props.busy,
|
|
716
716
|
"dough-button-disabled": props.disabled,
|
|
717
717
|
}) },
|
|
718
|
-
props.icon && !alignIconRight && (React__default.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
719
718
|
React__default.createElement("div", { className: cn("dough-button-background-wrapper", initColorVal) },
|
|
720
719
|
props.color && props.color.match("dough-color-text") && (React__default.createElement(React__default.Fragment, null,
|
|
721
720
|
props.border && (React__default.createElement("svg", { className: "dough-button-background-wrapper-border-svg" },
|
|
@@ -726,10 +725,11 @@ var Button = function (props) {
|
|
|
726
725
|
props.busy && (React__default.createElement("div", { className: "dough-button-waiter" },
|
|
727
726
|
React__default.createElement("svg", { width: "100%", height: "100%" },
|
|
728
727
|
React__default.createElement("rect", { width: "100%", height: "100%", fill: "currentColor" }))))),
|
|
729
|
-
props.icon && alignIconRight && (React__default.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
728
|
+
props.icon && !alignIconRight && (React__default.createElement("div", { className: "dough-button-icon" }, props.icon)),
|
|
730
729
|
React__default.createElement("div", { className: "dough-button-label" },
|
|
731
730
|
props.label && React__default.createElement(React__default.Fragment, null, props.label),
|
|
732
|
-
!props.label && props.children && props.children)
|
|
731
|
+
!props.label && props.children && props.children),
|
|
732
|
+
props.icon && alignIconRight && (React__default.createElement("div", { className: "dough-button-icon" }, props.icon)))); };
|
|
733
733
|
return (React__default.createElement(React__default.Fragment, null,
|
|
734
734
|
type === exports.ButtonInputType.LINK && (React__default.createElement(Link, __assign({ ref: buttonRef, className: cn("dough-button-wrapper", props.className, {
|
|
735
735
|
"dough-button-full-width": props.fullWidth,
|