@comfortdelgro/compass-icons
Version:
Icons for React Compass Design System
92 lines (90 loc) • 3.08 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
function _getRequireWildcardCache(nodeInterop) {
if (typeof WeakMap !== "function") return null;
var cacheBabelInterop = new WeakMap();
var cacheNodeInterop = new WeakMap();
return (_getRequireWildcardCache = function(nodeInterop) {
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
})(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
if (!nodeInterop && obj && obj.__esModule) {
return obj;
}
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
return {
default: obj
};
}
var cache = _getRequireWildcardCache(nodeInterop);
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for(var key in obj){
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
if (desc && (desc.get || desc.set)) {
Object.defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
if (cache) {
cache.set(obj, newObj);
}
return newObj;
}
const FlagAtg = (props, ref)=>/*#__PURE__*/ _react.createElement("svg", {
width: "1em",
height: "1em",
viewBox: "0 0 138 92",
ref: ref,
...props
}, /*#__PURE__*/ _react.createElement("path", {
fill: "#fff",
d: "M0 0h138v92H0z"
}), /*#__PURE__*/ _react.createElement("path", {
d: "M0 0h138v46H0z"
}), /*#__PURE__*/ _react.createElement("g", {
transform: "translate(69 36)"
}, /*#__PURE__*/ _react.createElement("g", {
id: "atg_svg__b"
}, /*#__PURE__*/ _react.createElement("path", {
id: "atg_svg__a",
d: "M-30 0L0-5.742V5.742z",
fill: "#fcd116"
}), /*#__PURE__*/ _react.createElement("use", {
transform: "rotate(22.5)",
href: "#atg_svg__a"
}), /*#__PURE__*/ _react.createElement("use", {
transform: "rotate(45)",
href: "#atg_svg__a"
})), /*#__PURE__*/ _react.createElement("use", {
transform: "rotate(67.5)",
href: "#atg_svg__b"
}), /*#__PURE__*/ _react.createElement("use", {
transform: "rotate(135)",
href: "#atg_svg__b"
})), /*#__PURE__*/ _react.createElement("path", {
fill: "#0072c6",
d: "M0 36h138v20H0z"
}), /*#__PURE__*/ _react.createElement("path", {
d: "M0 0v92h138V0L69 92z",
fill: "#ce1126"
}));
const ForwardRef = /*#__PURE__*/ (0, _react.forwardRef)(FlagAtg);
const _default = ForwardRef;