@sanity/logos
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -147,2 +147,3 @@ var color = require('@sanity/color'); | ||
var _excluded$1 = ["dark"]; | ||
var schemes = { | ||
@@ -157,3 +158,6 @@ light: [color.hues.red[200].hex, color.hues.red[300].hex, color.hues.red[500].hex], | ||
var SanityLogo = /*#__PURE__*/React.forwardRef(function SanityLogo(props, ref) { | ||
var scheme = schemes[props.dark ? 'dark' : 'light']; | ||
var dark = props.dark, | ||
svgProps = _objectWithoutPropertiesLoose(props, _excluded$1); | ||
var scheme = schemes[dark ? 'dark' : 'light']; | ||
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({ | ||
@@ -165,3 +169,3 @@ "data-sanity-icon": "sanity-logo", | ||
xmlns: "http://www.w3.org/2000/svg" | ||
}, props, { | ||
}, svgProps, { | ||
ref: ref | ||
@@ -168,0 +172,0 @@ }), /*#__PURE__*/React__default["default"].createElement("path", { |
@@ -143,2 +143,3 @@ import { hues, white } from '@sanity/color'; | ||
const _excluded$1 = ["dark"]; | ||
const schemes = { | ||
@@ -153,3 +154,8 @@ light: [hues.red[200].hex, hues.red[300].hex, hues.red[500].hex], | ||
const SanityLogo = /*#__PURE__*/forwardRef(function SanityLogo(props, ref) { | ||
const scheme = schemes[props.dark ? 'dark' : 'light']; | ||
const { | ||
dark | ||
} = props, | ||
svgProps = _objectWithoutPropertiesLoose(props, _excluded$1); | ||
const scheme = schemes[dark ? 'dark' : 'light']; | ||
return /*#__PURE__*/React.createElement("svg", _extends({ | ||
@@ -161,3 +167,3 @@ "data-sanity-icon": "sanity-logo", | ||
xmlns: "http://www.w3.org/2000/svg" | ||
}, props, { | ||
}, svgProps, { | ||
ref: ref | ||
@@ -164,0 +170,0 @@ }), /*#__PURE__*/React.createElement("path", { |
@@ -143,2 +143,3 @@ import { hues, white } from '@sanity/color'; | ||
var _excluded$1 = ["dark"]; | ||
var schemes = { | ||
@@ -153,3 +154,6 @@ light: [hues.red[200].hex, hues.red[300].hex, hues.red[500].hex], | ||
var SanityLogo = /*#__PURE__*/forwardRef(function SanityLogo(props, ref) { | ||
var scheme = schemes[props.dark ? 'dark' : 'light']; | ||
var dark = props.dark, | ||
svgProps = _objectWithoutPropertiesLoose(props, _excluded$1); | ||
var scheme = schemes[dark ? 'dark' : 'light']; | ||
return /*#__PURE__*/React.createElement("svg", _extends({ | ||
@@ -161,3 +165,3 @@ "data-sanity-icon": "sanity-logo", | ||
xmlns: "http://www.w3.org/2000/svg" | ||
}, props, { | ||
}, svgProps, { | ||
ref: ref | ||
@@ -164,0 +168,0 @@ }), /*#__PURE__*/React.createElement("path", { |
{ | ||
"name": "@sanity/logos", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"sideEffects": false, | ||
@@ -33,3 +33,3 @@ "source": "./src/index.ts", | ||
"devDependencies": { | ||
"@sanity/color": "^2.1.10", | ||
"@sanity/color": "^2.1.11", | ||
"react": "^17.0.2" | ||
@@ -58,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "3e5019576b08ba4f6bdaaf0a521a69e9c6526199" | ||
"gitHead": "f0f8d7528ca4fa666334830b00dcc1443330c753" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
120492
1097