@codecademy/gamut-icons 9.24.2 → 9.24.3-alpha.4f09ee.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 ScreenIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -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 ScreenIcon = /*#__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('ScreenIcon');
25
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ viewBox: "0 0 16 17",
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
+ stroke: "#fff",
44
+ fill: "none",
45
+ strokeLinecap: "round",
46
+ strokeLinejoin: "round",
47
+ d: "M1.167 2.417h13.666s.667 0 .667.666v8.667s0 .667-.667.667H1.167s-.667 0-.667-.667V3.083s0-.666.667-.666zM5 14.917h6m-3-2.5v2.5"
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
+ });
@@ -191,6 +191,7 @@ export * from './RoundPinIcon';
191
191
  export * from './RubyIcon';
192
192
  export * from './RulerTriangleIcon';
193
193
  export * from './SavingBankIcon';
194
+ export * from './ScreenIcon';
194
195
  export * from './SearchIcon';
195
196
  export * from './SendIcon';
196
197
  export * from './SettingsSliderVerticalIcon';
@@ -191,6 +191,7 @@ export * from './RoundPinIcon';
191
191
  export * from './RubyIcon';
192
192
  export * from './RulerTriangleIcon';
193
193
  export * from './SavingBankIcon';
194
+ export * from './ScreenIcon';
194
195
  export * from './SearchIcon';
195
196
  export * from './SendIcon';
196
197
  export * from './SettingsSliderVerticalIcon';
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="17"><path stroke="#000000" fill="none" stroke-linecap="round" stroke-linejoin="round" d="M1.167 2.417h13.666s.667 0 .667.666v8.667s0 .667-.667.667H1.167s-.667 0-.667-.667V3.083s0-.666.667-.666ZM5 14.917h6M8 12.417v2.5"/></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.2",
4
+ "version": "9.24.3-alpha.4f09ee.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-styles": "16.2.1",
@@ -29,5 +29,5 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "types": "dist/index.d.ts",
32
- "gitHead": "025ceb990af7439fd2a841e25b4f4d1dee0aa53b"
32
+ "gitHead": "d0ca59bc3967cbff80d0883ea393e574b8c1eb2c"
33
33
  }