@untitledui/file-icons
Version:
Official React library for Untitled UI File Icons
2 lines (1 loc) • 1.54 kB
JavaScript
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _react = require('react'); var s = _interopRequireWildcard(_react);const o=({size:e=40,theme:i="light",...r})=>s.createElement("svg",{width:e,height:e,fill:"none",viewBox:"0 0 40 40","aria-hidden":"true",...r},s.createElement("mask",{id:"code_svg__b",width:32,height:40,x:4,y:0,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},s.createElement("path",{fill:"url(#code_svg__a)",d:"M4 4a4 4 0 0 1 4-4h16l12 12v24a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z"})),s.createElement("g",{mask:"url(#code_svg__b)"},s.createElement("path",{fill:i==="light"?"#F5F5F5":"#22262F",d:"M4 4a4 4 0 0 1 4-4h16l12 12v24a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4z"})),s.createElement("path",{fill:i==="light"?"#E9EAEB":"#373A41",d:"m24 0 12 12h-8a4 4 0 0 1-4-4z"}),s.createElement("path",{stroke:i==="light"?"#414651":"#CECFD2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M23.333 27.333 26.667 24l-3.334-3.333m-6.666 0L13.333 24l3.334 3.333M21.333 18l-2.666 12"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"code_svg__a",x1:20,x2:20,y1:0,y2:40,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopOpacity:.4}),s.createElement("stop",{offset:1}))));o.displayName="Code";exports.Code = o;