@codecademy/gamut-icons 8.0.2-alpha.2c40eb.0 → 8.0.2-alpha.2d7974.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,58 @@
|
|
|
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 { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
export var OneTimeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
14
|
+
var _ref$title = _ref.title,
|
|
15
|
+
title = _ref$title === void 0 ? 'One Time Icon' : _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
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
25
|
+
viewBox: "0 0 24 24",
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
role: "img",
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
width: width,
|
|
31
|
+
height: height,
|
|
32
|
+
ref: svgRef,
|
|
33
|
+
"aria-labelledby": titleId
|
|
34
|
+
}, props), {}, {
|
|
35
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
36
|
+
id: titleId,
|
|
37
|
+
children: title
|
|
38
|
+
}) : null, /*#__PURE__*/_jsxs("g", {
|
|
39
|
+
clipPath: "url(#one-time-icon_svg__one-time-icon_svg__clip0_577_3820)",
|
|
40
|
+
fill: "currentColor",
|
|
41
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
42
|
+
fillRule: "evenodd",
|
|
43
|
+
clipRule: "evenodd",
|
|
44
|
+
d: "M1 12c0 6.075 4.925 11 11 11s11-4.925 11-11S18.075 1 12 1 1 5.925 1 12zM12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0z"
|
|
45
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
46
|
+
d: "M8.706 7.783c-.42.896-1.088 1.043-2.46 1.077v.714h2.097v5.53H6.247V16h4.862v-.895H9.386V7.783h-.68zm9.866 2.12h-1.156l-1.428 2.096-1.417-2.096h-1.168l1.995 2.97L13.278 16h1.18l1.53-2.267L17.518 16h1.178l-2.13-3.14 2.006-2.957z"
|
|
47
|
+
})]
|
|
48
|
+
}), /*#__PURE__*/_jsx("defs", {
|
|
49
|
+
children: /*#__PURE__*/_jsx("clipPath", {
|
|
50
|
+
id: "one-time-icon_svg__one-time-icon_svg__clip0_577_3820",
|
|
51
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
52
|
+
fill: "#fff",
|
|
53
|
+
d: "M0 0h24v24H0z"
|
|
54
|
+
})
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
@@ -124,6 +124,7 @@ export * from './NarrativeIcon';
|
|
|
124
124
|
export * from './NetworkUserIcon';
|
|
125
125
|
export * from './NotebookIcon';
|
|
126
126
|
export * from './ObjectiveIcon';
|
|
127
|
+
export * from './OneTimeIcon';
|
|
127
128
|
export * from './OpenIcon';
|
|
128
129
|
export * from './OverviewIcon';
|
|
129
130
|
export * from './PathChangeIcon';
|
|
@@ -124,6 +124,7 @@ export * from './NarrativeIcon';
|
|
|
124
124
|
export * from './NetworkUserIcon';
|
|
125
125
|
export * from './NotebookIcon';
|
|
126
126
|
export * from './ObjectiveIcon';
|
|
127
|
+
export * from './OneTimeIcon';
|
|
127
128
|
export * from './OpenIcon';
|
|
128
129
|
export * from './OverviewIcon';
|
|
129
130
|
export * from './PathChangeIcon';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_577_3820)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12ZM12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0Z" fill="black"/>
|
|
4
|
+
<path d="M8.70598 7.78345C8.28664 8.67878 7.61798 8.82611 6.24664 8.86011V9.57411H8.34331V15.1048H6.24664V16.0001H11.1086V15.1048H9.38598V7.78345H8.70598Z" fill="black"/>
|
|
5
|
+
<path d="M18.5715 9.90278H17.4155L15.9875 11.9994L14.5708 9.90278H13.4035L15.3981 12.8721L13.2788 16.0001H14.4575L15.9875 13.7334L17.5175 16.0001H18.6961L16.5655 12.8608L18.5715 9.90278Z" fill="black"/>
|
|
6
|
+
</g>
|
|
7
|
+
<defs>
|
|
8
|
+
<clipPath id="clip0_577_3820">
|
|
9
|
+
<rect width="24" height="24" fill="white"/>
|
|
10
|
+
</clipPath>
|
|
11
|
+
</defs>
|
|
12
|
+
</svg>
|
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.2d7974.0",
|
|
5
5
|
"author": "Codecademy <dev@codecademy.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@codecademy/gamut-tests": "5.0.
|
|
23
|
+
"@codecademy/gamut-tests": "5.0.1",
|
|
24
24
|
"@svgr/cli": "5.5.0",
|
|
25
25
|
"@testing-library/react": "^12.1.2",
|
|
26
26
|
"svgo": "^1.3.2",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@codecademy/gamut-styles": "
|
|
33
|
+
"@codecademy/gamut-styles": "15.1.0",
|
|
34
34
|
"@codecademy/variance": "0.21.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"lodash": "^4.17.5",
|
|
40
40
|
"react": "^17.0.2 || ^18.2.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "15b5fbe4177c7812f092ce804704d7ccce724eec"
|
|
43
43
|
}
|