@codecademy/gamut-icons 9.24.3 → 9.25.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 UnlockHeavyIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,54 @@
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 UnlockHeavyIcon = /*#__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('UnlockHeavyIcon');
25
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ viewBox: "0 0 24 24",
28
+ fill: "#fff",
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__*/_jsx("mask", {
41
+ id: "".concat(maskId),
42
+ children: /*#__PURE__*/_jsx("path", {
43
+ d: "M19.5 9.5h-.75V6.75A6.75 6.75 0 005.53 4.81a1.25 1.25 0 002.4.72 4.25 4.25 0 018.32 1.22V9a.5.5 0 01-.5.5H4.5a2 2 0 00-2 2V22a2 2 0 002 2h15a2 2 0 002-2V11.5a2 2 0 00-2-2zm-9.5 6a2 2 0 014 0 2 2 0 01-1 1.72v2.28a1 1 0 01-2 0v-2.28a2 2 0 01-1-1.72z"
44
+ })
45
+ }), /*#__PURE__*/_jsx("g", {
46
+ mask: "url(#".concat(maskId, ")"),
47
+ children: /*#__PURE__*/_jsx("rect", {
48
+ width: "100%",
49
+ height: "100%",
50
+ fill: "currentColor"
51
+ })
52
+ })]
53
+ }));
54
+ });
@@ -227,6 +227,7 @@ export * from './TrophyIcon';
227
227
  export * from './TwitterIcon';
228
228
  export * from './TwitterOutlineIcon';
229
229
  export * from './TypeIcon';
230
+ export * from './UnlockHeavyIcon';
230
231
  export * from './UploadIcon';
231
232
  export * from './VideoPlayerMovieIcon';
232
233
  export * from './ViewIcon';
@@ -227,6 +227,7 @@ export * from './TrophyIcon';
227
227
  export * from './TwitterIcon';
228
228
  export * from './TwitterOutlineIcon';
229
229
  export * from './TypeIcon';
230
+ export * from './UnlockHeavyIcon';
230
231
  export * from './UploadIcon';
231
232
  export * from './VideoPlayerMovieIcon';
232
233
  export * from './ViewIcon';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="lock-unlock" height="24" width="24"><path d="M19.5 9.5h-0.75V6.75A6.75 6.75 0 0 0 5.53 4.81a1.25 1.25 0 0 0 2.4 0.72 4.25 4.25 0 0 1 8.32 1.22V9a0.5 0.5 0 0 1 -0.5 0.5H4.5a2 2 0 0 0 -2 2V22a2 2 0 0 0 2 2h15a2 2 0 0 0 2 -2V11.5a2 2 0 0 0 -2 -2Zm-9.5 6a2 2 0 0 1 4 0 2 2 0 0 1 -1 1.72v2.28a1 1 0 0 1 -2 0v-2.28a2 2 0 0 1 -1 -1.72Z" fill="#000000" stroke-width="1"></path></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.24.3",
4
+ "version": "9.25.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-styles": "16.3.0",
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "types": "dist/index.d.ts",
32
- "gitHead": "421d693a6c32721cb669213802e4d3d23e078a05"
32
+ "gitHead": "522eac68cba3279aa429307c06411c3f938879ac"
33
33
  }