@codecademy/gamut-icons 8.0.2-alpha.b81ea9.0 → 8.0.2-alpha.cef563.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
8
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
+
import { useUniqueInlineId } from '@inline-svg-unique-id/react';
|
|
9
10
|
import * as React from 'react';
|
|
10
11
|
import { Svg } from '../../props';
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -21,6 +22,7 @@ export var FaviconSolidIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgR
|
|
|
21
22
|
_ref$width = _ref.width,
|
|
22
23
|
width = _ref$width === void 0 ? size : _ref$width,
|
|
23
24
|
props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
|
|
25
|
+
var _id = useUniqueInlineId();
|
|
24
26
|
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
25
27
|
viewBox: "0 0 28 22",
|
|
26
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -44,11 +46,11 @@ export var FaviconSolidIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgR
|
|
|
44
46
|
}), /*#__PURE__*/_jsx("defs", {
|
|
45
47
|
children: /*#__PURE__*/_jsx("path", {
|
|
46
48
|
d: "M19.196.044s0 .022 0 0c.022.044.044.088.067.154v21.56c0 .066-.023.11-.045.132a.204.204 0 01-.157.066H.18c-.045 0-.09 0-.112-.022A.198.198 0 010 21.78V.176C0 .088.045.022.112 0h18.95c.044 0 .111.022.134.044zm-2.101 19.648V2.286c0-.088-.045-.154-.112-.176H2.235c-.067.022-.112.088-.112.176v17.406c0 .088.045.154.112.176h14.748c.067-.022.112-.088.112-.176zm10.704.176c.134 0 .201.066.201.198v1.736c0 .132-.09.198-.201.198h-6.525c-.134 0-.201-.088-.201-.198v-1.736c0-.132.089-.198.2-.198H27.8zM8.089 8.088c1.386 0 2.458.55 3.196 1.428.045.066.067.198-.022.264l-1.207 1.055c-.09.066-.201.044-.268-.044C9.34 10.286 8.849 10 8.089 10c-.826 0-1.452.396-1.72 1.165-.157.461-.201.989-.201 1.692s.044 1.253.2 1.714c.269.792.895 1.187 1.721 1.187.76 0 1.23-.285 1.699-.791.067-.088.178-.088.268-.022L11.263 16c.089.066.067.176.022.264-.738.857-1.81 1.406-3.196 1.406-1.854 0-3.262-.9-3.798-2.527C4.089 14.57 4 13.846 4 12.879c0-.967.09-1.692.29-2.264.537-1.626 1.945-2.527 3.8-2.527z",
|
|
47
|
-
id:
|
|
49
|
+
id: _id
|
|
48
50
|
})
|
|
49
51
|
}), /*#__PURE__*/_jsx("use", {
|
|
50
52
|
fill: "#141E3B",
|
|
51
|
-
xlinkHref: "#
|
|
53
|
+
xlinkHref: "#".concat(_id),
|
|
52
54
|
fillRule: "evenodd"
|
|
53
55
|
})]
|
|
54
56
|
}), /*#__PURE__*/_jsx("g", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-icons",
|
|
3
3
|
"description": "Icon library for codecademy.com",
|
|
4
|
-
"version": "8.0.2-alpha.
|
|
4
|
+
"version": "8.0.2-alpha.cef563.0",
|
|
5
5
|
"author": "Codecademy <dev@codecademy.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@codecademy/gamut-tests": "5.0.2-alpha.
|
|
23
|
+
"@codecademy/gamut-tests": "5.0.2-alpha.cef563.0",
|
|
24
24
|
"@svgr/cli": "5.5.0",
|
|
25
25
|
"@testing-library/react": "^12.1.2",
|
|
26
|
+
"babel-plugin-react-inline-svg-unique-id": "^1.2.3",
|
|
26
27
|
"svgo": "^1.3.2",
|
|
27
28
|
"typescript": "*"
|
|
28
29
|
},
|
|
@@ -30,8 +31,9 @@
|
|
|
30
31
|
"access": "public"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@codecademy/gamut-styles": "16.0.0-alpha.
|
|
34
|
-
"@codecademy/variance": "0.21.0"
|
|
34
|
+
"@codecademy/gamut-styles": "16.0.0-alpha.cef563.0",
|
|
35
|
+
"@codecademy/variance": "0.21.0",
|
|
36
|
+
"@inline-svg-unique-id/react": "^1.2.3"
|
|
35
37
|
},
|
|
36
38
|
"peerDependencies": {
|
|
37
39
|
"@emotion/react": "^11.4.0",
|
|
@@ -39,5 +41,5 @@
|
|
|
39
41
|
"lodash": "^4.17.5",
|
|
40
42
|
"react": "^17.0.2 || ^18.2.0"
|
|
41
43
|
},
|
|
42
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e6aa918eee5efd8a4f91ebe17a68e32d073beb09"
|
|
43
45
|
}
|