@segment/consent-manager
Version:
Drop-in consent management plugin for analytics.js
12 lines • 6.46 kB
JavaScript
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
import styled from '@emotion/styled';
import { css } from '@emotion/react';
var baseStyles = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 32px;\n padding: 0 16px;\n border: none;\n border-radius: 4px;\n color: inherit;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n cursor: pointer;\n outline: none;\n transition: box-shadow 80ms ease-in-out;\n"], ["\n height: 32px;\n padding: 0 16px;\n border: none;\n border-radius: 4px;\n color: inherit;\n font: inherit;\n font-size: 12px;\n line-height: 1;\n cursor: pointer;\n outline: none;\n transition: box-shadow 80ms ease-in-out;\n"])));
export var DefaultButton = styled('button')(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n ", ";\n margin-right: 8px;\n background-color: #fff;\n background-image: linear-gradient(to top, rgba(67, 90, 111, 0.041), rgba(255, 255, 255, 0.041));\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.146), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n &:hover {\n background-image: linear-gradient(to top, rgba(67, 90, 111, 0.057), rgba(67, 90, 111, 0.025));\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.255),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.114);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(1, 108, 209, 0.146), inset 0 0 0 1px rgba(67, 90, 111, 0.38),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n }\n &:active {\n background: rgba(1, 108, 209, 0.079);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.146),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n }\n"], ["\n ", ";\n margin-right: 8px;\n background-color: #fff;\n background-image: linear-gradient(to top, rgba(67, 90, 111, 0.041), rgba(255, 255, 255, 0.041));\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.146), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n &:hover {\n background-image: linear-gradient(to top, rgba(67, 90, 111, 0.057), rgba(67, 90, 111, 0.025));\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.255),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.114);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(1, 108, 209, 0.146), inset 0 0 0 1px rgba(67, 90, 111, 0.38),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n }\n &:active {\n background: rgba(1, 108, 209, 0.079);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.146),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.079);\n }\n"])), baseStyles);
export var GreenButton = styled('button')(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n ", ";\n background-color: #47b881;\n background-image: linear-gradient(to top, #3faf77, #47b881);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n color: #fff;\n &:hover {\n background-image: linear-gradient(to top, #37a56d, #3faf77);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(71, 184, 129, 0.477), inset 0 0 0 1px rgba(71, 184, 129, 0.204),\n inset 0 -1px 1px 0 rgba(71, 184, 129, 0.204);\n }\n &:active {\n background-image: linear-gradient(to top, #2d9760, #248953);\n box-shadow: inset 0 0 0 1px rgba(71, 184, 129, 0.204),\n inset 0 -1px 1px 0 rgba(71, 184, 129, 0.204);\n }\n"], ["\n ", ";\n background-color: #47b881;\n background-image: linear-gradient(to top, #3faf77, #47b881);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n color: #fff;\n &:hover {\n background-image: linear-gradient(to top, #37a56d, #3faf77);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(71, 184, 129, 0.477), inset 0 0 0 1px rgba(71, 184, 129, 0.204),\n inset 0 -1px 1px 0 rgba(71, 184, 129, 0.204);\n }\n &:active {\n background-image: linear-gradient(to top, #2d9760, #248953);\n box-shadow: inset 0 0 0 1px rgba(71, 184, 129, 0.204),\n inset 0 -1px 1px 0 rgba(71, 184, 129, 0.204);\n }\n"])), baseStyles);
export var RedButton = styled('button')(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n ", ";\n background-color: #f36331;\n background-image: linear-gradient(to top, #f4541d, #f36331);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n color: #fff;\n &:hover {\n background-image: linear-gradient(to top, #f4450a, #f4541d);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(243, 99, 49, 0.477), inset 0 0 0 1px rgba(243, 99, 49, 0.204),\n inset 0 -1px 1px 0 rgba(243, 99, 49, 0.204);\n }\n &:active {\n background-image: linear-gradient(to top, #dd3c06, #c63403);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n }\n"], ["\n ", ";\n background-color: #f36331;\n background-image: linear-gradient(to top, #f4541d, #f36331);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204), inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n color: #fff;\n &:hover {\n background-image: linear-gradient(to top, #f4450a, #f4541d);\n }\n &:focus {\n box-shadow: 0 0 0 3px rgba(243, 99, 49, 0.477), inset 0 0 0 1px rgba(243, 99, 49, 0.204),\n inset 0 -1px 1px 0 rgba(243, 99, 49, 0.204);\n }\n &:active {\n background-image: linear-gradient(to top, #dd3c06, #c63403);\n box-shadow: inset 0 0 0 1px rgba(67, 90, 111, 0.204),\n inset 0 -1px 1px 0 rgba(67, 90, 111, 0.204);\n }\n"])), baseStyles);
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25zZW50LW1hbmFnZXIvYnV0dG9ucy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sTUFBTSxNQUFNLGlCQUFpQixDQUFBO0FBQ3BDLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTtBQUVwQyxJQUFNLFVBQVUsR0FBRyxHQUFHLGtUQUFBLCtPQVlyQixJQUFBLENBQUE7QUFFRCxNQUFNLENBQUMsSUFBTSxhQUFhLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQyxpNEJBQUEsTUFDekMsRUFBVSxzekJBbUJiLEtBbkJHLFVBQVUsQ0FtQmIsQ0FBQTtBQUVELE1BQU0sQ0FBQyxJQUFNLFdBQVcsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDLHN1QkFBQSxNQUN2QyxFQUFVLDJwQkFpQmIsS0FqQkcsVUFBVSxDQWlCYixDQUFBO0FBRUQsTUFBTSxDQUFDLElBQU0sU0FBUyxHQUFHLE1BQU0sQ0FBQyxRQUFRLENBQUMsaXVCQUFBLE1BQ3JDLEVBQVUsc3BCQWlCYixLQWpCRyxVQUFVLENBaUJiLENBQUEifQ==