@activecollab/components
Version:
ActiveCollab Components
53 lines (52 loc) • 2.94 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _GradientDefs = require("../../GradientDefs");
var _excluded = ["gradient"];
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
/**
* @component CloudDeployIcon
* @description
* Outline cloud glyph with an upward arrow through the middle for
* deploy/upload-to-cloud signifiers. The cloud's bottom edge has a cutout so
* it does not intersect the arrow shaft.
*
* @prop {string} [gradient] - Optional CSS linear-gradient string applied to the stroke.
*
* @see https://design.activecollab.com/docs/foundations/icons
*/
var CloudDeployIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
var gradient = _ref.gradient,
props = _objectWithoutProperties(_ref, _excluded);
return /*#__PURE__*/_react.default.createElement("svg", _extends({
xmlns: "http://www.w3.org/2000/svg",
width: 24,
height: 24,
viewBox: "0 0 24 24",
"data-testid": "CloudDeployIcon",
fill: "none",
stroke: gradient ? "url(#icon-gradient)" : props !== null && props !== void 0 && props.stroke ? props.stroke : "var(--color-theme-600)",
strokeWidth: 2,
strokeLinecap: "round",
strokeLinejoin: "round",
focusable: false,
ref: ref
}, props), /*#__PURE__*/_react.default.createElement(_GradientDefs.GradientDefs, {
gradient: gradient
}), /*#__PURE__*/_react.default.createElement("path", {
d: "M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-3.535M9 18h-2.343"
}), /*#__PURE__*/_react.default.createElement("path", {
d: "M12 20v-8"
}), /*#__PURE__*/_react.default.createElement("path", {
d: "M9.5 14.5l2.5 -2.5l2.5 2.5"
}));
});
CloudDeployIcon.displayName = "CloudDeployIcon";
var _default = exports.default = CloudDeployIcon;
//# sourceMappingURL=CloudDeploy.js.map