UNPKG

@atlaskit/logo

Version:

A logo is a visual representation of a brand or app. It can be a word, an image, or a combination of both.

43 lines (40 loc) • 4.74 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.LoomLogo = LoomLogo; var _react = _interopRequireDefault(require("react")); var _fg = require("@atlaskit/platform-feature-flags/fg"); var _logoWrapper = require("../../../utils/logo-wrapper"); /** * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen} * @codegen <<SignedSource::56de155bcb2a659a7fe3ee4b572a5e57>> * @codegenCommand afm workspace @atlaskit/logo generate:components */ // `height` is set to 100% to allow the SVG to scale with the parent element // The text color is set to "currentColor" to allow the SVG to inherit the color set by the parent based on the theme. var svg = "<svg height=\"100%\" viewBox=\"0 0 69 24\">\n <path fill=\"var(--tile-color,#1868db)\" d=\"M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6z\"/>\n <path fill=\"var(--icon-color, white)\" d=\"M19.083 11.212h-4.142l3.588-2.071-.788-1.365-3.588 2.071 2.07-3.587-1.364-.788-2.071 3.587V4.917h-1.576v4.142L9.141 5.472l-1.365.787 2.071 3.588L6.26 7.776 5.472 9.14l3.587 2.07H4.917v1.577h4.142l-3.587 2.071.788 1.365 3.587-2.07-2.071 3.587 1.365.787 2.07-3.587v4.142h1.577V14.94l2.07 3.587 1.365-.787-2.07-3.588 3.587 2.071.788-1.365-3.587-2.07h4.142zM12 14.143a2.151 2.151 0 1 1 0-4.302 2.151 2.151 0 0 1 0 4.302\"/>\n <path fill=\"var(--text-color, #292a2e)\" d=\"M56.94 17V9.36h1.8l.08 1.87h-.14q.17-.7.51-1.13.35-.44.81-.64.47-.21.97-.21.83 0 1.33.52.51.52.73 1.57h-.22q.16-.71.55-1.18.39-.46.91-.69.53-.23 1.12-.23.69 0 1.24.3t.87.88.32 1.42V17H65.9v-4.82q0-.67-.37-1a1.32 1.32 0 0 0-.89-.32q-.4 0-.7.18a1.2 1.2 0 0 0-.46.49q-.16.32-.16.73V17h-1.87v-4.89q0-.57-.35-.91-.34-.34-.89-.34-.38 0-.68.17a1.2 1.2 0 0 0-.48.51q-.18.33-.18.81V17zm-5.19.15q-1.13 0-1.97-.49a3.3 3.3 0 0 1-1.28-1.38q-.45-.89-.45-2.06 0-1.18.45-2.07.45-.9 1.28-1.39t1.97-.49q1.13 0 1.96.49T55 11.15q.45.89.45 2.07T55 15.29t-1.28 1.38-1.96.49m0-1.53q.58 0 .97-.31.39-.32.58-.87a3.7 3.7 0 0 0 .19-1.23 3.7 3.7 0 0 0-.19-1.23 1.87 1.87 0 0 0-.58-.86q-.39-.32-.97-.32t-.97.32q-.38.32-.58.86-.19.54-.19 1.23 0 .68.19 1.23.2.55.58.87.39.31.97.31m-8.56 1.52q-1.13 0-1.97-.49a3.3 3.3 0 0 1-1.28-1.38q-.45-.89-.45-2.06 0-1.18.45-2.07.45-.9 1.28-1.39t1.97-.49 1.96.49q.83.49 1.29 1.39.45.89.45 2.07t-.45 2.07-1.28 1.38-1.96.49m0-1.53q.58 0 .97-.31.39-.32.58-.87a3.7 3.7 0 0 0 .19-1.23 3.7 3.7 0 0 0-.19-1.23 1.87 1.87 0 0 0-.58-.86q-.39-.32-.97-.32t-.97.32q-.38.32-.58.86-.19.54-.19 1.23 0 .68.19 1.23.2.55.58.87.39.31.97.31M31.97 17V6.81h1.96v8.55h4.44V17z\"/>\n</svg>\n"; var refreshedSvg = "<svg height=\"100%\" viewBox=\"0 0 85 24\">\n <path fill=\"var(--text-color, #292a2e)\" d=\"M77.19 12.61V19h-1.98v-6.95c0-2.07-.83-2.99-2.71-2.99-1.84 0-3.1 1.22-3.1 3.54V19h-1.99V7.5h1.98v1.89c.74-1.36 2.09-2.12 3.63-2.12 1.96 0 3.29.99 3.86 2.81.64-1.77 2.19-2.81 4.09-2.81 2.58 0 4 1.75 4 4.99V19h-1.98v-6.39c0-2.37-.83-3.54-2.71-3.54-1.84 0-3.1 1.22-3.1 3.54m-17.5 6.62c-3.45 0-5.47-2.55-5.47-6s2.02-5.96 5.47-5.96c3.43 0 5.43 2.51 5.43 5.96s-2 6-5.43 6m0-10.12c-2.46 0-3.54 1.93-3.54 4.12s1.08 4.16 3.54 4.16c2.44 0 3.5-1.98 3.5-4.16s-1.06-4.12-3.5-4.12M47.17 19.23c-3.45 0-5.47-2.55-5.47-6s2.02-5.96 5.47-5.96c3.43 0 5.43 2.51 5.43 5.96s-2 6-5.43 6m0-10.12c-2.46 0-3.54 1.93-3.54 4.12s1.08 4.16 3.54 4.16c2.44 0 3.5-1.98 3.5-4.16s-1.06-4.12-3.5-4.12M32.05 3.89h2.07v13.13h6.85V19h-8.92z\"/>\n <path fill=\"var(--tile-color,#1868db)\" d=\"M0 6a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v12a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6z\"/>\n <path fill=\"var(--icon-color, white)\" d=\"M19.031 11.482h-4.039l3.498-2.02-.768-1.33-3.498 2.019 2.019-3.498-1.331-.768-2.019 3.497V5.344h-1.536v4.039l-2.02-3.498-1.331.768 2.02 3.498-3.498-2.019-.768 1.33 3.498 2.02h-4.04v1.536h4.039l-3.497 2.02.768 1.33 3.498-2.019-2.02 3.498 1.331.768 2.019-3.498v4.039h1.537v-4.038l2.019 3.497 1.331-.768-2.02-3.498 3.498 2.019.768-1.33-3.497-2.02h4.038zm-6.906 2.858a2.098 2.098 0 1 1 0-4.195 2.098 2.098 0 0 1 0 4.195\"/>\n</svg>\n"; /** * __LoomLogo__ * * A component to represent the logo for Loom. * */ function LoomLogo(_ref) { var _ref$size = _ref.size, size = _ref$size === void 0 ? 'medium' : _ref$size, _ref$appearance = _ref.appearance, appearance = _ref$appearance === void 0 ? 'brand' : _ref$appearance, _ref$label = _ref.label, label = _ref$label === void 0 ? 'Loom' : _ref$label, testId = _ref.testId; return /*#__PURE__*/_react.default.createElement(_logoWrapper.LogoWrapper, { svg: (0, _fg.fg)('platform_dst_loom_logo_refresh') ? refreshedSvg : svg, label: label, appearance: appearance, size: size, testId: testId }); }