pge-front-common 6.0.6 → 6.0.7
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/lib/components/Button/Button.d.ts +0 -1
- package/lib/index.esm.js +3 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -93,12 +93,13 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
93
93
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
94
94
|
};
|
|
95
95
|
|
|
96
|
-
var css_248z$5 = ".
|
|
96
|
+
var css_248z$5 = ".styles-module__button___cqjs8 {\r\n all: unset;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: 4px;\r\n cursor: pointer;\r\n padding: 12px 16px;\r\n border-radius: 8px;\r\n min-width: 70px;\r\n}\r\n\r\n.styles-module__button___cqjs8.styles-module__primary___ANKj6 {\r\n width: fit-content;\r\n height: fit-content;\r\n border: 1px solid #005a92;\r\n background: #005a92;\r\n color: #ffffff;\r\n font-weight: 700;\r\n}\r\n\r\n.styles-module__button___cqjs8.styles-module__primary___ANKj6:hover {\r\n opacity: 1;\r\n background-color: rgb(0 67 109);\r\n}\r\n\r\n.styles-module__button___cqjs8.styles-module__secondary___okANM {\r\n width: fit-content;\r\n height: fit-content;\r\n border: 1px solid #005a92;\r\n background: transparent;\r\n color: #005a92;\r\n font-weight: 700;\r\n}\r\n\r\n.styles-module__button___cqjs8:disabled {\r\n cursor: not-allowed;\r\n}\r\n";
|
|
97
|
+
var styles = {"button":"styles-module__button___cqjs8","primary":"styles-module__primary___ANKj6","secondary":"styles-module__secondary___okANM"};
|
|
97
98
|
styleInject(css_248z$5);
|
|
98
99
|
|
|
99
100
|
function Button(_a) {
|
|
100
101
|
var variant = _a.variant, _b = _a.text, text = _b === void 0 ? "" : _b, leftIcon = _a.leftIcon, props = __rest(_a, ["variant", "text", "leftIcon"]);
|
|
101
|
-
return (React__default.createElement("button", __assign({ className: "button ".concat(variant) }, props),
|
|
102
|
+
return (React__default.createElement("button", __assign({ className: "".concat(styles.button, " ").concat(styles[variant]) }, props),
|
|
102
103
|
leftIcon,
|
|
103
104
|
text));
|
|
104
105
|
}
|