@desynova-digital/components 8.19.55 → 8.19.56
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/atoms/button/button.js
CHANGED
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
8
|
+
// import colors from "../../../tokens/colors";
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
var _templateObject = _taggedTemplateLiteral(["\n position: relative;\n &:hover {\n .tooltip-block {\n display: block;\n }\n }\n .tooltip-block {\n position: absolute;\n z-index: 1;\n top: ", ";\n background: #000;\n padding: 10px 8px;\n border-radius: 5px;\n font-size: 12px;\n text-transform: initial;\n display: none;\n color: #fff;\n font-family: SFUIText-Regular;\n left: 50%;\n transform: translateX(-50%);\n &:after {\n content: \"\";\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n\n ", "\n left: 50%;\n transform: translateX(-50%);\n }\n }\n"], ["\n position: relative;\n &:hover {\n .tooltip-block {\n display: block;\n }\n }\n .tooltip-block {\n position: absolute;\n z-index: 1;\n top: ", ";\n background: #000;\n padding: 10px 8px;\n border-radius: 5px;\n font-size: 12px;\n text-transform: initial;\n display: none;\n color: #fff;\n font-family: SFUIText-Regular;\n left: 50%;\n transform: translateX(-50%);\n &:after {\n content: \"\";\n position: absolute;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n\n ", "\n left: 50%;\n transform: translateX(-50%);\n }\n }\n"]),
|
|
10
|
-
_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n justify-content: center;\n text-transform: uppercase;\n text-align: center;\n font-size: 14px;\n position: relative;\n align-items: center;\n font-weight: 600;\n top: 0;\n margin: 0 auto;\n width: ", ";\n
|
|
12
|
+
_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n box-sizing: border-box;\n justify-content: center;\n text-transform: uppercase;\n text-align: center;\n font-size: 14px;\n position: relative;\n align-items: center;\n font-weight: 600;\n top: 0;\n margin: 0 auto;\n width: ", ";\n height: ", ";\n border: ", ";\n background: ", ";\n border-color: ", ";\n\n color: ", ";\n\n padding: ", ";\n\n opacity: ", ";\n cursor: ", ";\n pointer-events: ", ";\n\n border-radius: ", ";\n\n /* box-shadow: ", ";\n transition: ", "; */\n\n ", " {\n position: relative;\n top: 0px;\n width: ", ";\n height: ", ";\n margin-left: ", ";\n margin-right: ", ";\n background: ", ";\n border-radius: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n &:hover {\n transition: all 0.4s;\n color: ", ";\n box-shadow: ", ";\n /* top: ", "; */\n background: ", ";\n border-color: ", ";\n transition: ", ";\n box-shadow: ", ";\n \n ", " {\n\n path{\n \n ", "\n ", "\n \n }\n }\n }\n\n &:focus {\n background: ", ";\n border-color: ", ";\n outline: none;\n }\n\n &:active {\n background: ", ";\n border-color: ", ";\n outline: none;\n }\n .loader-wrapper{\n position: absolute;\n top:50%;\n left:50%;\n transform: translate(-50%, -50%);\n }\n"], ["\n display: flex;\n box-sizing: border-box;\n justify-content: center;\n text-transform: uppercase;\n text-align: center;\n font-size: 14px;\n position: relative;\n align-items: center;\n font-weight: 600;\n top: 0;\n margin: 0 auto;\n width: ", ";\n height: ", ";\n border: ", ";\n background: ", ";\n border-color: ", ";\n\n color: ", ";\n\n padding: ", ";\n\n opacity: ", ";\n cursor: ", ";\n pointer-events: ", ";\n\n border-radius: ", ";\n\n /* box-shadow: ", ";\n transition: ", "; */\n\n ", " {\n position: relative;\n top: 0px;\n width: ", ";\n height: ", ";\n margin-left: ", ";\n margin-right: ", ";\n background: ", ";\n border-radius: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n &:hover {\n transition: all 0.4s;\n color: ", ";\n box-shadow: ", ";\n /* top: ", "; */\n background: ", ";\n border-color: ", ";\n transition: ", ";\n box-shadow: ", ";\n \n ", " {\n\n path{\n \n ", "\n ", "\n \n }\n }\n }\n\n &:focus {\n background: ", ";\n border-color: ", ";\n outline: none;\n }\n\n &:active {\n background: ", ";\n border-color: ", ";\n outline: none;\n }\n .loader-wrapper{\n position: absolute;\n top:50%;\n left:50%;\n transform: translate(-50%, -50%);\n }\n"]),
|
|
11
13
|
_templateObject3 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: middle;\n"], ["\n display: inline-block;\n vertical-align: middle;\n"]);
|
|
12
14
|
|
|
13
15
|
var _react = require("react");
|
|
@@ -242,8 +244,6 @@ var Button = function Button(_ref) {
|
|
|
242
244
|
|
|
243
245
|
Button.Element = _styledComponents2.default.button(_templateObject2, function (props) {
|
|
244
246
|
return getAttributes(props).width ? getAttributes(props).width : "auto";
|
|
245
|
-
}, function (props) {
|
|
246
|
-
return props.width ? props.width + "px" : props.stretchWidth ? '100%' : "auto";
|
|
247
247
|
}, function (props) {
|
|
248
248
|
return props.height ? props.height + "px" : "auto";
|
|
249
249
|
}, function (props) {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.56",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.19.
|
|
10
|
+
"@desynova-digital/tokens": "8.19.56",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|