UNPKG

@segment/consent-manager

Version:

Drop-in consent management plugin for analytics.js

18 lines 6.69 kB
"use strict"; var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.RedButton = exports.GreenButton = exports.DefaultButton = void 0; var styled_1 = __importDefault(require("@emotion/styled")); var react_1 = require("@emotion/react"); var baseStyles = react_1.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"]))); exports.DefaultButton = styled_1.default('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); exports.GreenButton = styled_1.default('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); exports.RedButton = styled_1.default('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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb25zZW50LW1hbmFnZXIvYnV0dG9ucy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJEQUFvQztBQUNwQyx3Q0FBb0M7QUFFcEMsSUFBTSxVQUFVLEdBQUcsV0FBRyxrVEFBQSwrT0FZckIsSUFBQSxDQUFBO0FBRVksUUFBQSxhQUFhLEdBQUcsZ0JBQU0sQ0FBQyxRQUFRLENBQUMsaTRCQUFBLE1BQ3pDLEVBQVUsc3pCQW1CYixLQW5CRyxVQUFVLEVBbUJiO0FBRVksUUFBQSxXQUFXLEdBQUcsZ0JBQU0sQ0FBQyxRQUFRLENBQUMsc3VCQUFBLE1BQ3ZDLEVBQVUsMnBCQWlCYixLQWpCRyxVQUFVLEVBaUJiO0FBRVksUUFBQSxTQUFTLEdBQUcsZ0JBQU0sQ0FBQyxRQUFRLENBQUMsaXVCQUFBLE1BQ3JDLEVBQVUsc3BCQWlCYixLQWpCRyxVQUFVLEVBaUJiIn0=