@codecademy/gamut-icons 9.30.2-alpha.adb00a.0 → 9.30.2-alpha.b398c8.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.
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
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
|
+
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
|
+
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 * as React from 'react';
|
|
10
|
+
import { Svg } from '../../props';
|
|
11
|
+
import { useIconId } from '../../useIconId';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var AssessmentsIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
15
|
+
var title = _ref.title,
|
|
16
|
+
titleId = _ref.titleId,
|
|
17
|
+
_ref$size = _ref.size,
|
|
18
|
+
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
19
|
+
_ref$height = _ref.height,
|
|
20
|
+
height = _ref$height === void 0 ? size : _ref$height,
|
|
21
|
+
_ref$width = _ref.width,
|
|
22
|
+
width = _ref$width === void 0 ? size : _ref$width,
|
|
23
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
|
|
24
|
+
var maskId = useIconId('AssessmentsIcon');
|
|
25
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
26
|
+
viewBox: "0 0 16 16",
|
|
27
|
+
fill: "#fff",
|
|
28
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
+
role: "img",
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
"pointer-events": "none",
|
|
32
|
+
width: width,
|
|
33
|
+
height: height,
|
|
34
|
+
ref: svgRef,
|
|
35
|
+
"aria-labelledby": titleId
|
|
36
|
+
}, props), {}, {
|
|
37
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
38
|
+
id: titleId,
|
|
39
|
+
children: title
|
|
40
|
+
}) : null, /*#__PURE__*/_jsxs("mask", {
|
|
41
|
+
id: "".concat(maskId),
|
|
42
|
+
children: [/*#__PURE__*/_jsx("g", {
|
|
43
|
+
clipPath: "url(#assessments-icon_svg__assessments-icon_svg__a)",
|
|
44
|
+
stroke: "#fff",
|
|
45
|
+
strokeLinecap: "round",
|
|
46
|
+
strokeLinejoin: "round",
|
|
47
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
48
|
+
d: "M5.5 15.5H2A1.5 1.5 0 01.5 14m12-8V1a.501.501 0 00-.5-.5H2.5a2 2 0 00-2 2V14A1.5 1.5 0 012 12.5h4m9.086-2.586L10 15l-2.5.5L8 13l5.087-5.086a1.409 1.409 0 011.994 0l.006.005a1.41 1.41 0 01-.001 1.995z"
|
|
49
|
+
})
|
|
50
|
+
}), /*#__PURE__*/_jsx("defs", {
|
|
51
|
+
children: /*#__PURE__*/_jsx("clipPath", {
|
|
52
|
+
id: "assessments-icon_svg__assessments-icon_svg__a",
|
|
53
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
54
|
+
fill: "#fff",
|
|
55
|
+
d: "M0 0h16v16H0z"
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
})]
|
|
59
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
60
|
+
mask: "url(#".concat(maskId, ")"),
|
|
61
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
62
|
+
width: "100%",
|
|
63
|
+
height: "100%",
|
|
64
|
+
fill: "currentColor"
|
|
65
|
+
})
|
|
66
|
+
})]
|
|
67
|
+
}));
|
|
68
|
+
});
|
|
@@ -20,6 +20,7 @@ export * from './ArrowThickCircleUpIcon';
|
|
|
20
20
|
export * from './ArrowUpIcon';
|
|
21
21
|
export * from './ArticleIcon';
|
|
22
22
|
export * from './ArtificialIntelligenceIcon';
|
|
23
|
+
export * from './AssessmentsIcon';
|
|
23
24
|
export * from './BadgeIcon';
|
|
24
25
|
export * from './BashShellIcon';
|
|
25
26
|
export * from './BellIcon';
|
|
@@ -20,6 +20,7 @@ export * from './ArrowThickCircleUpIcon';
|
|
|
20
20
|
export * from './ArrowUpIcon';
|
|
21
21
|
export * from './ArticleIcon';
|
|
22
22
|
export * from './ArtificialIntelligenceIcon';
|
|
23
|
+
export * from './AssessmentsIcon';
|
|
23
24
|
export * from './BadgeIcon';
|
|
24
25
|
export * from './BashShellIcon';
|
|
25
26
|
export * from './BellIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><title>assessments</title><g clip-path="url(#a)" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path d="M5.5 15.5H2A1.5 1.5 0 0 1 .5 14M12.5 6V1a.501.501 0 0 0-.5-.5H2.5a2 2 0 0 0-2 2V14A1.5 1.5 0 0 1 2 12.5h4M15.086 9.914 10 15l-2.5.5L8 13l5.087-5.086a1.409 1.409 0 0 1 1.994 0l.006.005a1.41 1.41 0 0 1-.001 1.995Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-icons",
|
|
3
3
|
"description": "Icon library for codecademy.com",
|
|
4
|
-
"version": "9.30.2-alpha.
|
|
4
|
+
"version": "9.30.2-alpha.b398c8.0",
|
|
5
5
|
"author": "Codecademy <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-styles": "17.0.
|
|
7
|
+
"@codecademy/gamut-styles": "17.0.0",
|
|
8
8
|
"@codecademy/variance": "0.21.3"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"types": "dist/index.d.ts",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "a996a029897c71abc352b355b0598f1aeeb2b492"
|
|
33
33
|
}
|