@xfers/design-system 2.30.0 → 2.31.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/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/dist/components/Button/Button.js +2 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/es/icons.js +1 -1
- package/es/index.js +4 -4
- package/es/index.js.map +1 -1
- package/es/logos.js +1 -1
- package/package.json +1 -1
|
@@ -33,11 +33,12 @@ require("antd/es/button/style/css");
|
|
|
33
33
|
var fontStyles_1 = require("src/constants/fontStyles");
|
|
34
34
|
var spacing_1 = require("src/constants/spacing");
|
|
35
35
|
var themeContext_1 = require("src/shared/themeContext");
|
|
36
|
+
var theme_1 = require("src/shared/theme");
|
|
36
37
|
var CustomButton = function (_a) {
|
|
37
38
|
var _b = _a.type, type = _b === void 0 ? 'primary' : _b, size = _a.size, iconColor = _a.iconColor, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isFullWidth, isFullWidth = _d === void 0 ? false : _d, _e = _a.className, className = _e === void 0 ? '' : _e, children = _a.children, rest = __rest(_a, ["type", "size", "iconColor", "isDisabled", "isFullWidth", "className", "children"]);
|
|
38
39
|
var _f = themeContext_1.useTheme(), brand = _f.brand, button = _f.button, actionButton = _f.actionButton;
|
|
39
40
|
var primaryStyle = "\n background-color: " + brand.action.default + ";\n color: " + brand.primary.contrast + ";\n border: none;\n\n&:focus {\n background-color: " + brand.action.default + ";\n color: " + brand.primary.contrast + ";\n border: none;\n }\n \n &:active {\n background-color: " + brand.action.default + ";\n color: " + brand.primary.contrast + ";\n border: none;\n }\n &:hover {\n background-color: " + brand.action.hover + ";\n color: " + brand.primary.contrast + ";\n border: none;\n }\n ";
|
|
40
|
-
var secondaryStyle = "\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n\n &:focus {\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n }\n\n &:hover {\n background-color: " + button.background + ";\n color: " + button.hover + ";\n border: 1px solid " + button.border + ";\n }\n\n &:active {\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n }\n ";
|
|
41
|
+
var secondaryStyle = "\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n\n &:focus {\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n }\n\n &:hover {\n background-color: " + button.background + ";\n color: " + button.hover + ";\n border: 1px solid " + button.border + ";\n }\n\n &:active {\n background-color: " + button.background + ";\n color: " + button.color + ";\n border: 1px solid " + button.border + ";\n }\n\n &[ant-click-animating-without-extra-node]:after {\n --antd-wave-shadow-color: " + theme_1.straitsXTheme.brand.primary.default + ";\n }\n ";
|
|
41
42
|
var tertiaryStyle = "\n background-color: transparent;\n color: " + brand.primary.default + ";\n border: none;\n\n &:focus {\n background-color: transparent;\n color: " + brand.primary.default + ";\n border: none;\n }\n\n &:hover {\n background-color: transparent;\n color: " + brand.action.hover + ";\n border: none;\n }\n\n &:active {\n background-color: transparent;\n color: " + brand.action.default + ";\n border: none;\n }\n ";
|
|
42
43
|
var disabledStyle = "\n cursor: auto;\n pointer-events: none;\n opacity: " + brand.action.disabledOpacity + ";\n ";
|
|
43
44
|
var fullWidthStyle = "\n width: 100%;\n ";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAyB;AACzB,0CAAoC;AACpC,yCAAoD;AACpD,oCAAiC;AACjC,uDAIiC;AACjC,iDAAqE;AACrE,wDAAkD;
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAyB;AACzB,0CAAoC;AACpC,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