@codecademy/gamut-icons 9.31.1 → 9.31.2-alpha.dad732.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 UnlockIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,59 @@
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 UnlockIcon = /*#__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('UnlockIcon');
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: "M.75 9.75V6a5.25 5.25 0 0110.5 0v3.75m-3 0h13.5s1.5 0 1.5 1.5v10.5s0 1.5-1.5 1.5H8.25s-1.5 0-1.5-1.5v-10.5s0-1.5 1.5-1.5M15 15v3",
44
+ fill: "none",
45
+ stroke: "#fff",
46
+ strokeLinecap: "round",
47
+ strokeLinejoin: "round",
48
+ strokeWidth: 1.5
49
+ })
50
+ }), /*#__PURE__*/_jsx("g", {
51
+ mask: "url(#".concat(maskId, ")"),
52
+ children: /*#__PURE__*/_jsx("rect", {
53
+ width: "100%",
54
+ height: "100%",
55
+ fill: "currentColor"
56
+ })
57
+ })]
58
+ }));
59
+ });
@@ -259,6 +259,7 @@ export * from './TwitterIcon';
259
259
  export * from './TwitterOutlineIcon';
260
260
  export * from './TypeIcon';
261
261
  export * from './UnlockHeavyIcon';
262
+ export * from './UnlockIcon';
262
263
  export * from './UploadIcon';
263
264
  export * from './VideoPlayerMovieIcon';
264
265
  export * from './ViewIcon';
@@ -259,6 +259,7 @@ export * from './TwitterIcon';
259
259
  export * from './TwitterOutlineIcon';
260
260
  export * from './TypeIcon';
261
261
  export * from './UnlockHeavyIcon';
262
+ export * from './UnlockIcon';
262
263
  export * from './UploadIcon';
263
264
  export * from './VideoPlayerMovieIcon';
264
265
  export * from './ViewIcon';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="Lock-Unlock--Streamline-Ultimate.svg" height="24" width="24"><desc>Lock Unlock Streamline Icon: https://streamlinehq.com</desc><defs></defs><title>lock-unlock</title><path d="M0.75 9.75V6a5.25 5.25 0 0 1 10.5 0v3.75" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25 9.75h13.5s1.5 0 1.5 1.5v10.5s0 1.5 -1.5 1.5H8.25s-1.5 0 -1.5 -1.5v-10.5s0 -1.5 1.5 -1.5" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m15 15 0 3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></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.31.1",
4
+ "version": "9.31.2-alpha.dad732.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-styles": "17.1.0",
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "types": "dist/index.d.ts",
32
- "gitHead": "70227c521fb18838eca9d6d0c9c9a99cf42c9718"
32
+ "gitHead": "083b4a421e32a287f6f3fa9b5bb97eba011700b6"
33
33
  }