@codecademy/gamut-icons 9.8.0 → 9.10.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.
- package/dist/icons/mini/MiniCopyIcon.d.ts +3 -0
- package/dist/icons/mini/MiniCopyIcon.js +62 -0
- package/dist/icons/mini/MiniUndoIcon.d.ts +3 -0
- package/dist/icons/mini/MiniUndoIcon.js +58 -0
- package/dist/icons/mini/index.d.ts +2 -0
- package/dist/icons/mini/index.js +2 -0
- package/dist/svg/mini/mini-copy-icon.svg +1 -0
- package/dist/svg/mini/mini-undo-icon.svg +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,62 @@
|
|
|
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 MiniCopyIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
15
|
+
var _ref$title = _ref.title,
|
|
16
|
+
title = _ref$title === void 0 ? 'Mini Copy Icon' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
20
|
+
_ref$height = _ref.height,
|
|
21
|
+
height = _ref$height === void 0 ? size : _ref$height,
|
|
22
|
+
_ref$width = _ref.width,
|
|
23
|
+
width = _ref$width === void 0 ? size : _ref$width,
|
|
24
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
|
|
25
|
+
var maskId = useIconId('MiniCopyIcon');
|
|
26
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
fill: "#fff",
|
|
29
|
+
viewBox: "0 0 14 14",
|
|
30
|
+
role: "img",
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
"pointer-events": "none",
|
|
33
|
+
width: width,
|
|
34
|
+
height: height,
|
|
35
|
+
ref: svgRef,
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), {}, {
|
|
38
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
39
|
+
id: titleId,
|
|
40
|
+
children: title
|
|
41
|
+
}) : null, /*#__PURE__*/_jsx("mask", {
|
|
42
|
+
id: "".concat(maskId),
|
|
43
|
+
children: /*#__PURE__*/_jsxs("g", {
|
|
44
|
+
fill: "#fff",
|
|
45
|
+
fillRule: "evenodd",
|
|
46
|
+
clipRule: "evenodd",
|
|
47
|
+
children: [/*#__PURE__*/_jsx("path", {
|
|
48
|
+
d: "M1.424.27A.75.75 0 012 0h5a.75.75 0 01.738.884l-.024.131A1.5 1.5 0 019 2.5v.75H7.25a3 3 0 00-3 3V11H1.5A1.5 1.5 0 010 9.5v-7a1.5 1.5 0 011.286-1.485l-.024-.13a.75.75 0 01.162-.616zM2.9 1.5l.115.634a.75.75 0 00.738.616h1.496a.75.75 0 00.738-.616l.115-.634H2.9z"
|
|
49
|
+
}), /*#__PURE__*/_jsx("path", {
|
|
50
|
+
d: "M7.25 4.5A1.75 1.75 0 005.5 6.25v6c0 .967.783 1.75 1.75 1.75h5A1.75 1.75 0 0014 12.25v-6a1.75 1.75 0 00-1.75-1.75h-5zM7.875 8c0-.345.28-.625.625-.625H11a.625.625 0 110 1.25H8.5A.625.625 0 017.875 8zM8.5 9.875a.625.625 0 100 1.25H11a.625.625 0 100-1.25H8.5z"
|
|
51
|
+
})]
|
|
52
|
+
})
|
|
53
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
54
|
+
mask: "url(#".concat(maskId, ")"),
|
|
55
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
56
|
+
width: "100%",
|
|
57
|
+
height: "100%",
|
|
58
|
+
fill: "currentColor"
|
|
59
|
+
})
|
|
60
|
+
})]
|
|
61
|
+
}));
|
|
62
|
+
});
|
|
@@ -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 { useIconId } from '../../useIconId';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var MiniUndoIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
15
|
+
var _ref$title = _ref.title,
|
|
16
|
+
title = _ref$title === void 0 ? 'Mini Undo Icon' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
_ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
20
|
+
_ref$height = _ref.height,
|
|
21
|
+
height = _ref$height === void 0 ? size : _ref$height,
|
|
22
|
+
_ref$width = _ref.width,
|
|
23
|
+
width = _ref$width === void 0 ? size : _ref$width,
|
|
24
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
|
|
25
|
+
var maskId = useIconId('MiniUndoIcon');
|
|
26
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
fill: "#fff",
|
|
29
|
+
viewBox: "0 0 14 14",
|
|
30
|
+
role: "img",
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
"pointer-events": "none",
|
|
33
|
+
width: width,
|
|
34
|
+
height: height,
|
|
35
|
+
ref: svgRef,
|
|
36
|
+
"aria-labelledby": titleId
|
|
37
|
+
}, props), {}, {
|
|
38
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
39
|
+
id: titleId,
|
|
40
|
+
children: title
|
|
41
|
+
}) : null, /*#__PURE__*/_jsx("mask", {
|
|
42
|
+
id: "".concat(maskId),
|
|
43
|
+
children: /*#__PURE__*/_jsx("path", {
|
|
44
|
+
fill: "#fff",
|
|
45
|
+
fillRule: "evenodd",
|
|
46
|
+
d: "M5.351 1.002a.75.75 0 00-1.28-.53l-2.4 2.4a.75.75 0 000 1.06l2.4 2.399a.75.75 0 001.28-.53V4.4H7a3.798 3.798 0 11-3.798 3.8 1 1 0 00-2 0A5.798 5.798 0 107 2.401H5.351V1.002z",
|
|
47
|
+
clipRule: "evenodd"
|
|
48
|
+
})
|
|
49
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
50
|
+
mask: "url(#".concat(maskId, ")"),
|
|
51
|
+
children: /*#__PURE__*/_jsx("rect", {
|
|
52
|
+
width: "100%",
|
|
53
|
+
height: "100%",
|
|
54
|
+
fill: "currentColor"
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
@@ -9,6 +9,7 @@ export * from './MiniChevronLeftIcon';
|
|
|
9
9
|
export * from './MiniChevronRightIcon';
|
|
10
10
|
export * from './MiniChevronUpIcon';
|
|
11
11
|
export * from './MiniCircleIcon';
|
|
12
|
+
export * from './MiniCopyIcon';
|
|
12
13
|
export * from './MiniDeleteIcon';
|
|
13
14
|
export * from './MiniInfoCircleIcon';
|
|
14
15
|
export * from './MiniInfoOutlineIcon';
|
|
@@ -16,4 +17,5 @@ export * from './MiniKebabMenuIcon';
|
|
|
16
17
|
export * from './MiniRemoveCircleIcon';
|
|
17
18
|
export * from './MiniRibbonIcon';
|
|
18
19
|
export * from './MiniStarIcon';
|
|
20
|
+
export * from './MiniUndoIcon';
|
|
19
21
|
export * from './MiniWarningTriangleIcon';
|
package/dist/icons/mini/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './MiniChevronLeftIcon';
|
|
|
9
9
|
export * from './MiniChevronRightIcon';
|
|
10
10
|
export * from './MiniChevronUpIcon';
|
|
11
11
|
export * from './MiniCircleIcon';
|
|
12
|
+
export * from './MiniCopyIcon';
|
|
12
13
|
export * from './MiniDeleteIcon';
|
|
13
14
|
export * from './MiniInfoCircleIcon';
|
|
14
15
|
export * from './MiniInfoOutlineIcon';
|
|
@@ -16,4 +17,5 @@ export * from './MiniKebabMenuIcon';
|
|
|
16
17
|
export * from './MiniRemoveCircleIcon';
|
|
17
18
|
export * from './MiniRibbonIcon';
|
|
18
19
|
export * from './MiniStarIcon';
|
|
20
|
+
export * from './MiniUndoIcon';
|
|
19
21
|
export * from './MiniWarningTriangleIcon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14"><g id="copy-paste--clipboard-copy-cut-paste"><g id="Vector"><path fill="#000000" fill-rule="evenodd" d="M1.42417.269439C1.56667.0986972 1.77759 0 1.99998 0h5.00001c.22239 0 .43331.0986972.57581.269439.1425.170743.20187.39592.16209.614725l-.02382.130996C8.4411 1.11905 9 1.74425 9 2.5v.75H7.25c-1.65685 0-3 1.34315-3 3V11H1.5C.671573 11 0 10.3284 0 9.5v-7c0-.75574.55889-1.38094 1.2859-1.48484L1.26208.884164c-.03978-.218805.01959-.443982.16209-.614725ZM2.89864 1.5l.11531.63416c.06484.35662.37543.61584.7379.61584h1.49627c.36247 0 .67306-.25922.7379-.61584L6.10133 1.5H2.89864Z" clip-rule="evenodd"></path><path fill="#000000" fill-rule="evenodd" d="M7.25 4.5c-.9665 0-1.75.7835-1.75 1.75v6c0 .9665.7835 1.75 1.75 1.75h5c.9665 0 1.75-.7835 1.75-1.75v-6c0-.9665-.7835-1.75-1.75-1.75h-5ZM7.875 8c0-.34518.27982-.625.625-.625H11c.3452 0 .625.27982.625.625s-.2798.625-.625.625H8.5c-.34518 0-.625-.27982-.625-.625ZM8.5 9.875c-.34518 0-.625.2798-.625.625s.27982.625.625.625H11c.3452 0 .625-.2798.625-.625s-.2798-.625-.625-.625H8.5Z" clip-rule="evenodd"></path></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14"><g id="arrow-round-left--diagram-round-arrow-left"><path id="Union" fill="#000000" fill-rule="evenodd" d="M5.35099 1.00246c0-.303343-.18273-.576821-.46299-.692906-.28026-.116086-.60284-.051919-.81734.162579L1.67164 2.87116c-.2929.29289-.2929.76776 0 1.06066l2.39902 2.39902c.2145.2145.53708.27866.81734.16258.28026-.11609.46299-.38957.46299-.69291V4.40139h1.64902c2.0976 0 3.79809 1.70044 3.79809 3.79804 0 2.09757-1.70049 3.79807-3.79809 3.79807S3.20197 10.297 3.20197 8.19943c0-.55228-.44772-1-1-1-.55229 0-1 .44772-1 1 0 3.20217 2.59587 5.79807 5.79804 5.79807 3.20219 0 5.79809-2.5959 5.79809-5.79807s-2.5959-5.79804-5.79809-5.79804H5.35099V1.00246Z" clip-rule="evenodd"></path></g></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": "9.
|
|
4
|
+
"version": "9.10.0",
|
|
5
5
|
"author": "Codecademy <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@codecademy/gamut-styles": "16.2.0",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"types": "dist/index.d.ts",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6120966bd6a9588bdf7c36fcd56573185643bf9b"
|
|
33
33
|
}
|