@atlaskit/editor-plugin-media-editing
Version:
MediaEditing plugin for @atlaskit/editor-core
48 lines (47 loc) • 2.76 kB
JavaScript
/* RotateIcon.tsx generated by @compiled/babel-plugin v0.39.1 */
"use strict";
var _typeof = require("@babel/runtime/helpers/typeof");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.RotateIcon = void 0;
require("./RotateIcon.compiled.css");
var React = _interopRequireWildcard(require("react"));
var _runtime = require("@compiled/react/runtime");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var sizeStyles = {
small: "_1bsbgktf _4t3igktf",
medium: "_1bsb1tcg _4t3i1tcg",
large: "_1bsbzwfg _4t3izwfg",
xlarge: "_1bsbckbl _4t3ickbl"
};
var svgStyles = null;
var RotateIcon = exports.RotateIcon = function RotateIcon(_ref) {
var label = _ref.label,
_ref$size = _ref.size,
size = _ref$size === void 0 ? 'small' : _ref$size,
_ref$primaryColor = _ref.primaryColor,
primaryColor = _ref$primaryColor === void 0 ? 'currentColor' : _ref$primaryColor,
secondaryColor = _ref.secondaryColor,
isDisabled = _ref.isDisabled;
return /*#__PURE__*/React.createElement("svg", {
viewBox: "0 0 16 16",
xmlns: "http://www.w3.org/2000/svg",
style: {
color: primaryColor,
fill: secondaryColor,
opacity: isDisabled ? 0.5 : 1
},
"aria-label": label || undefined,
role: label ? 'img' : 'presentation',
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _lswuvuon _lcxvglyw", sizeStyles[size]])
}, /*#__PURE__*/React.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M6.93459 6.72227C7.47156 6.1853 8.34216 6.1853 8.87913 6.72227L12.0914 9.93458C12.6284 10.4716 12.6284 11.3422 12.0914 11.8791L8.87913 15.0914C8.34216 15.6284 7.47156 15.6284 6.93459 15.0914L3.72228 11.8791C3.18531 11.3422 3.18531 10.4716 3.72228 9.93458L6.93459 6.72227ZM7.90686 7.87132L4.87133 10.9069L7.90686 13.9424L10.9424 10.9069L7.90686 7.87132Z",
fill: primaryColor
}), /*#__PURE__*/React.createElement("path", {
d: "M0 8.5C0 4.08172 3.58172 0.5 8 0.5C10.6789 0.5 13.0485 1.81718 14.5 3.83691V0.75H16V5.5C16 5.91421 15.6642 6.25 15.25 6.25H10.5V4.75H13.3086C12.1308 3.08578 10.192 2 8 2C4.41015 2 1.5 4.91015 1.5 8.5V9.25H0V8.5Z",
fill: primaryColor
}));
};