UNPKG

@redocly/theme

Version:

Shared UI components lib

27 lines (26 loc) 1.34 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.DraggableIcon = void 0; const react_1 = __importDefault(require("react")); const styled_components_1 = __importDefault(require("styled-components")); const utils_1 = require("../../core/utils"); const Icon = (props) => (react_1.default.createElement("svg", Object.assign({ viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg" }, props), react_1.default.createElement("path", { d: "M7 3H5V5H7V3Z" }), react_1.default.createElement("path", { d: "M11 3H9V5H11V3Z" }), react_1.default.createElement("path", { d: "M7 7H5V9H7V7Z" }), react_1.default.createElement("path", { d: "M11 7H9V9H11V7Z" }), react_1.default.createElement("path", { d: "M7 11H5V13H7V11Z" }), react_1.default.createElement("path", { d: "M11 11H9V13H11V11Z" }))); exports.DraggableIcon = (0, styled_components_1.default)(Icon).attrs(() => ({ 'data-component-name': 'icons/DraggableIcon/DraggableIcon', })) ` path { fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)}; } height: ${({ size }) => size || '16px'}; width: ${({ size }) => size || '16px'}; `; //# sourceMappingURL=DraggableIcon.js.map