@codecademy/gamut-icons 9.8.0 → 9.9.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,3 @@
1
+ import * as React from 'react';
2
+ import { GamutIconProps } from '../../props';
3
+ export declare const MiniCopyIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -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
+ });
@@ -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';
@@ -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';
@@ -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>
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.8.0",
4
+ "version": "9.9.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": "ab13d5e2a779ed1a8400ba20f6ab4fb196a71088"
32
+ "gitHead": "48b21ded1ff275ee10c10dbb83f5d5d77bc6099d"
33
33
  }