quicksnack 3.25.1 → 3.26.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.
|
@@ -34,7 +34,7 @@ exports.Details = void 0;
|
|
|
34
34
|
var react_1 = __importDefault(require("react"));
|
|
35
35
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
36
36
|
var Table_1 = require("../Table/Table");
|
|
37
|
-
var StyledCell = (0, styled_components_1.default)(Table_1.Table.Cell)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n"], ["\n ", "\n ", "\n"])), function (props) { return props.firstRow && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject([" border-top: 0px !important;"], [" border-top: 0px !important;"]))); }, function (props) { return props.width && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject([" width: ", ";"], [" width: ", ";"])), props.width); });
|
|
37
|
+
var StyledCell = (0, styled_components_1.default)(Table_1.Table.Cell)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", "\n vertical-align: top;\n"], ["\n ", "\n ", "\n vertical-align: top;\n"])), function (props) { return props.firstRow && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject([" border-top: 0px !important;"], [" border-top: 0px !important;"]))); }, function (props) { return props.width && (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject([" width: ", ";"], [" width: ", ";"])), props.width); });
|
|
38
38
|
var Details = function (_a) {
|
|
39
39
|
var details = _a.details, firstColumnWidth = _a.firstColumnWidth;
|
|
40
40
|
return (react_1.default.createElement(Table_1.Table, null,
|
|
@@ -59,7 +59,7 @@ var theme_1 = require("../../theme");
|
|
|
59
59
|
var responsiveProps_1 = require("../../responsiveness/responsiveProps");
|
|
60
60
|
var Wrapper = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", "\n ", " \n"], ["\n ", "\n ", " \n"])), function (props) { return props.stretch && "width: 100%;"; }, function (props) { return props.actionButton || props.stretch
|
|
61
61
|
? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["margin: 0;"], ["margin: 0;"]))) : (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["margin: ", ";"], ["margin: ", ";"])), function (props) { return props.theme.spacing(0, 2, 0, 0); }); });
|
|
62
|
-
var StyledButton = styled_components_1.default.button(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: bold;\n letter-spacing: 1px; \n line-height: 1em; \n outline: 0;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n text-decoration: none;\n font-family: \"Open Sans\", Lato, \"Helvetica Neue\", Arial, Helvetica, sans-serif; \n transition: background-color .1s ease, color .1s ease; \n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n min-height:
|
|
62
|
+
var StyledButton = styled_components_1.default.button(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 14px;\n font-weight: bold;\n letter-spacing: 1px; \n line-height: 1em; \n outline: 0;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n text-decoration: none;\n font-family: \"Open Sans\", Lato, \"Helvetica Neue\", Arial, Helvetica, sans-serif; \n transition: background-color .1s ease, color .1s ease; \n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n min-height: ", "; \n \n ", "\n \n ", "\n \n \n ", " \n \n &:disabled {\n opacity: .5;\n cursor: default;\n } \n \n &:focus {\n background-blend-mode: darken;\n } \n \n ", "\n \n ", " \n"], ["\n font-size: 14px;\n font-weight: bold;\n letter-spacing: 1px; \n line-height: 1em; \n outline: 0;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n text-decoration: none;\n font-family: \"Open Sans\", Lato, \"Helvetica Neue\", Arial, Helvetica, sans-serif; \n transition: background-color .1s ease, color .1s ease; \n display: flex;\n flex-direction: row;\n align-items: center;\n user-select: none;\n min-height: ", "; \n \n ", "\n \n ", "\n \n \n ", " \n \n &:disabled {\n opacity: .5;\n cursor: default;\n } \n \n &:focus {\n background-blend-mode: darken;\n } \n \n ", "\n \n ", " \n"])), function (props) { return props.inline ? 'auto' : '38px'; }, function (props) { return props.stretch && (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n width: 100%;\n display: block;\n "], ["\n width: 100%;\n display: block;\n "]))); }, function (props) { return props.actionButton && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n width: 100%; \n ", "\n "], ["\n width: 100%; \n ", "\n "])), (0, responsiveProps_1.mq)('laptop', "width: auto")); }, function (props) { return props.variant !== 'text'
|
|
63
63
|
? !props.icon
|
|
64
64
|
? (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["padding: ", "; min-width: ", ";"], ["padding: ", "; min-width: ", ";"])), props.theme.spacing(3, 5), function (props) { return props.theme.spacing(10); }) : props.hasChildren && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["position: relative; padding: ", ";"], ["position: relative; padding: ", ";"])), props.theme.spacing(3, 5, 3, 13))
|
|
65
65
|
: (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["font-weight: 700; padding: 0;"], ["font-weight: 700; padding: 0;"]))); }, function (props) {
|