UNPKG

@redocly/theme

Version:

Shared UI components lib

22 lines 1.28 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChevronSortIcon = void 0; const react_1 = __importDefault(require("react")); const styled_components_1 = __importDefault(require("styled-components")); const utils_1 = require("../../core/utils"); const Icon = ({ className, onClick }) => (react_1.default.createElement("svg", { className: className, onClick: onClick, xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "inherit" }, react_1.default.createElement("path", { d: "M7 12.25L3.9375 9.1875L4.55437 8.57063L7 11.0119L9.44563 8.57063L10.0625 9.1875L7 12.25Z" }), react_1.default.createElement("path", { d: "M7 1.75L10.0625 4.8125L9.44563 5.42937L7 2.98812L4.55437 5.42937L3.9375 4.8125L7 1.75Z" }))); exports.ChevronSortIcon = (0, styled_components_1.default)(Icon).attrs(() => ({ 'data-component-name': 'icons/ChevronSortIcon/ChevronSortIcon', })) ` path { fill: ${({ color }) => (0, utils_1.getCssColorVariable)(color)}; } height: ${({ size }) => size}; width: ${({ size }) => size}; `; //# sourceMappingURL=ChevronSortIcon.js.map