@epignosis_llc/gnosis 6.6.18 → 6.6.19
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/cjs/index.cjs
CHANGED
|
@@ -13627,9 +13627,9 @@ var spinnerWrapperVariants = {
|
|
|
13627
13627
|
}
|
|
13628
13628
|
};
|
|
13629
13629
|
|
|
13630
|
-
var _excluded$G = ["as", "color", "size", "variant", "block", "isLoading", "noGutters", "className", "rounded", "iconBefore", "iconAfter", "children", "disabled", "underlined", "active"];
|
|
13630
|
+
var _excluded$G = ["as", "color", "size", "variant", "block", "isLoading", "noGutters", "className", "rounded", "iconBefore", "iconBeforeProps", "iconAfter", "iconAfterProps", "children", "disabled", "underlined", "active"];
|
|
13631
13631
|
var Button = function Button(props) {
|
|
13632
|
-
var _classNames, _props$id;
|
|
13632
|
+
var _classNames, _iconBeforeProps$heig, _iconAfterProps$heigh, _props$id;
|
|
13633
13633
|
var as = props.as,
|
|
13634
13634
|
_props$color = props.color,
|
|
13635
13635
|
color = _props$color === void 0 ? "primary" : _props$color,
|
|
@@ -13648,7 +13648,9 @@ var Button = function Button(props) {
|
|
|
13648
13648
|
_props$rounded = props.rounded,
|
|
13649
13649
|
rounded = _props$rounded === void 0 ? false : _props$rounded,
|
|
13650
13650
|
iconBefore = props.iconBefore,
|
|
13651
|
+
iconBeforeProps = props.iconBeforeProps,
|
|
13651
13652
|
iconAfter = props.iconAfter,
|
|
13653
|
+
iconAfterProps = props.iconAfterProps,
|
|
13652
13654
|
children = props.children,
|
|
13653
13655
|
disabled = props.disabled,
|
|
13654
13656
|
underlined = props.underlined,
|
|
@@ -13658,6 +13660,16 @@ var Button = function Button(props) {
|
|
|
13658
13660
|
var PrefixIcon = iconBefore;
|
|
13659
13661
|
var SuffixIcon = iconAfter;
|
|
13660
13662
|
var containerClassNames = classNames$1((_classNames = {}, _defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_classNames, className, Boolean(className)), "disabled", disabled || isLoading), "rounded", rounded), "solid", variant === "solid"), "outline", variant === "outline"), "ghost", variant === "ghost"), "linkButton", variant === "link"), "icon-after", SuffixIcon), "icon-before", PrefixIcon), "underlined", underlined), _defineProperty$1(_classNames, "active", active)));
|
|
13663
|
+
var iconBeforePropsWithDefaults = _objectSpread2$1(_objectSpread2$1({}, iconBeforeProps), {}, {
|
|
13664
|
+
height: (_iconBeforeProps$heig = iconBeforeProps === null || iconBeforeProps === void 0 ? void 0 : iconBeforeProps.height) !== null && _iconBeforeProps$heig !== void 0 ? _iconBeforeProps$heig : iconSizes[size],
|
|
13665
|
+
className: classNames$1("icon", iconBeforeProps === null || iconBeforeProps === void 0 ? void 0 : iconBeforeProps.className),
|
|
13666
|
+
"data-testid": "prefix-icon"
|
|
13667
|
+
});
|
|
13668
|
+
var iconAfterPropsWithDefaults = _objectSpread2$1(_objectSpread2$1({}, iconAfterProps), {}, {
|
|
13669
|
+
height: (_iconAfterProps$heigh = iconAfterProps === null || iconAfterProps === void 0 ? void 0 : iconAfterProps.height) !== null && _iconAfterProps$heigh !== void 0 ? _iconAfterProps$heigh : iconSizes[size],
|
|
13670
|
+
className: classNames$1("icon", iconAfterProps === null || iconAfterProps === void 0 ? void 0 : iconAfterProps.className),
|
|
13671
|
+
"data-testid": "suffix-icon"
|
|
13672
|
+
});
|
|
13661
13673
|
return jsx(LazyMotion, {
|
|
13662
13674
|
features: domAnimation
|
|
13663
13675
|
}, jsx(Component, _extends$s({
|
|
@@ -13682,17 +13694,9 @@ var Button = function Button(props) {
|
|
|
13682
13694
|
variants: spinnerWrapperVariants
|
|
13683
13695
|
}, jsx(Loader, {
|
|
13684
13696
|
size: "md"
|
|
13685
|
-
}))), PrefixIcon && jsx(PrefixIcon, {
|
|
13686
|
-
height: iconSizes[size],
|
|
13687
|
-
className: "icon",
|
|
13688
|
-
"data-testid": "prefix-icon"
|
|
13689
|
-
}), jsx("span", {
|
|
13697
|
+
}))), PrefixIcon && jsx(PrefixIcon, iconBeforePropsWithDefaults), jsx("span", {
|
|
13690
13698
|
className: "btn-text"
|
|
13691
|
-
}, children), SuffixIcon && jsx(SuffixIcon,
|
|
13692
|
-
height: iconSizes[size],
|
|
13693
|
-
className: "icon",
|
|
13694
|
-
"data-testid": "suffix-icon"
|
|
13695
|
-
})));
|
|
13699
|
+
}, children), SuffixIcon && jsx(SuffixIcon, iconAfterPropsWithDefaults)));
|
|
13696
13700
|
};
|
|
13697
13701
|
|
|
13698
13702
|
var _path$o;
|