@codecademy/gamut-icons 9.8.0-alpha.e73946.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';
@@ -42,12 +42,14 @@ export var StopSignIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef)
42
42
  id: "".concat(maskId),
43
43
  children: [/*#__PURE__*/_jsx("path", {
44
44
  d: "M15.2 6.407l-3-1a3 3 0 00-3.95 2.846v4.5l-1.79-1.436a1.129 1.129 0 00-1.647 1.51l2.57 3.853a4.649 4.649 0 003.867 2.07h2.24c.996 0 1.953-.395 2.66-1.1a3.763 3.763 0 001.1-2.659V9.253a3 3 0 00-2.05-2.846z",
45
+ fill: "transparent",
45
46
  stroke: "#fff",
46
47
  strokeWidth: 1.5,
47
48
  strokeLinecap: "round",
48
49
  strokeLinejoin: "round"
49
50
  }), /*#__PURE__*/_jsx("path", {
50
51
  d: "M6.75 23.25h10.5l6-6V6.75l-6-6H6.75l-6 6v10.5l6 6z",
52
+ fill: "transparent",
51
53
  stroke: "#fff",
52
54
  strokeWidth: 1.5,
53
55
  strokeLinecap: "round",
@@ -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>
@@ -1,4 +1,4 @@
1
1
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M15.2001 6.40732L12.2001 5.40732C11.749 5.25674 11.2687 5.21554 10.7986 5.2871C10.3285 5.35866 9.88214 5.54094 9.49634 5.81891C9.11055 6.09688 8.79635 6.46257 8.57966 6.88584C8.36298 7.3091 8.25001 7.77781 8.25007 8.25332V12.7533L6.45907 11.3173C6.33678 11.2194 6.19545 11.1479 6.04405 11.1076C5.89266 11.0672 5.73452 11.0588 5.5797 11.0829C5.42487 11.1069 5.27676 11.163 5.14477 11.2474C5.01279 11.3319 4.89983 11.4428 4.81307 11.5733C4.68933 11.7588 4.62329 11.9768 4.62329 12.1998C4.62329 12.4228 4.68933 12.6408 4.81307 12.8263L7.38207 16.6803C7.80668 17.317 8.38187 17.8391 9.05661 18.2001C9.73135 18.5612 10.4848 18.7502 11.2501 18.7503H13.4891C14.4865 18.7507 15.4432 18.355 16.1491 17.6503C16.8535 16.9447 17.2492 15.9884 17.2491 14.9913V9.25332C17.2492 8.62397 17.0514 8.0105 16.6837 7.49975C16.316 6.989 15.797 6.60682 15.2001 6.40732Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- <path d="M6.75 23.25H17.25L23.25 17.25V6.75L17.25 0.75H6.75L0.75 6.75V17.25L6.75 23.25Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2
+ <path d="M15.2001 6.40732L12.2001 5.40732C11.749 5.25674 11.2687 5.21554 10.7986 5.2871C10.3285 5.35866 9.88214 5.54094 9.49634 5.81891C9.11055 6.09688 8.79635 6.46257 8.57966 6.88584C8.36298 7.3091 8.25001 7.77781 8.25007 8.25332V12.7533L6.45907 11.3173C6.33678 11.2194 6.19545 11.1479 6.04405 11.1076C5.89266 11.0672 5.73452 11.0588 5.5797 11.0829C5.42487 11.1069 5.27676 11.163 5.14477 11.2474C5.01279 11.3319 4.89983 11.4428 4.81307 11.5733C4.68933 11.7588 4.62329 11.9768 4.62329 12.1998C4.62329 12.4228 4.68933 12.6408 4.81307 12.8263L7.38207 16.6803C7.80668 17.317 8.38187 17.8391 9.05661 18.2001C9.73135 18.5612 10.4848 18.7502 11.2501 18.7503H13.4891C14.4865 18.7507 15.4432 18.355 16.1491 17.6503C16.8535 16.9447 17.2492 15.9884 17.2491 14.9913V9.25332C17.2492 8.62397 17.0514 8.0105 16.6837 7.49975C16.316 6.989 15.797 6.60682 15.2001 6.40732Z" fill="transparent" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M6.75 23.25H17.25L23.25 17.25V6.75L17.25 0.75H6.75L0.75 6.75V17.25L6.75 23.25Z" fill="transparent" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
4
  </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.8.0-alpha.e73946.0",
4
+ "version": "9.9.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "dependencies": {
7
- "@codecademy/gamut-styles": "16.1.4",
7
+ "@codecademy/gamut-styles": "16.2.0",
8
8
  "@codecademy/variance": "0.21.2"
9
9
  },
10
10
  "files": [
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "types": "dist/index.d.ts",
32
- "gitHead": "5ab7543ca583149b8a3b3878532e8cbc47bff02d"
32
+ "gitHead": "48b21ded1ff275ee10c10dbb83f5d5d77bc6099d"
33
33
  }