@codecademy/gamut-icons 9.15.1-alpha.4e2eb7.0 → 9.15.2-alpha.3a0973.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 MicrophoneIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,82 @@
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 MicrophoneIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
15
+ var _ref$title = _ref.title,
16
+ title = _ref$title === void 0 ? 'Microphone 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('MicrophoneIcon');
26
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
27
+ viewBox: "0 0 24 24",
28
+ fill: "#fff",
29
+ xmlns: "http://www.w3.org/2000/svg",
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__*/_jsxs("mask", {
42
+ id: "".concat(maskId),
43
+ children: [/*#__PURE__*/_jsxs("mask", {
44
+ id: "microphone-icon_svg__a",
45
+ style: {
46
+ maskType: 'alpha'
47
+ },
48
+ maskUnits: "userSpaceOnUse",
49
+ x: 3,
50
+ y: 0,
51
+ width: 18,
52
+ height: 24,
53
+ children: [/*#__PURE__*/_jsx("path", {
54
+ d: "M12 19.5v3.75M11.5.75h1s4 0 4 4V12s0 4-4 4h-1s-4 0-4-4V4.75s0-4 4-4z",
55
+ stroke: "#fff",
56
+ strokeWidth: 1.5,
57
+ strokeLinecap: "round",
58
+ strokeLinejoin: "round"
59
+ }), /*#__PURE__*/_jsx("path", {
60
+ d: "M4 9.75V12a7.5 7.5 0 007.5 7.5h1A7.5 7.5 0 0020 12V9.75",
61
+ stroke: "#fff",
62
+ strokeWidth: 1.5,
63
+ strokeLinecap: "round",
64
+ strokeLinejoin: "round"
65
+ })]
66
+ }), /*#__PURE__*/_jsx("g", {
67
+ mask: "url(#microphone-icon_svg__a)",
68
+ children: /*#__PURE__*/_jsx("path", {
69
+ fill: "#10162F",
70
+ d: "M0 0h24v24H0z"
71
+ })
72
+ })]
73
+ }), /*#__PURE__*/_jsx("g", {
74
+ mask: "url(#".concat(maskId, ")"),
75
+ children: /*#__PURE__*/_jsx("rect", {
76
+ width: "100%",
77
+ height: "100%",
78
+ fill: "currentColor"
79
+ })
80
+ })]
81
+ }));
82
+ });
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { GamutIconProps } from '../../props';
3
+ export declare const RecordingIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,76 @@
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 RecordingIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
15
+ var _ref$title = _ref.title,
16
+ title = _ref$title === void 0 ? 'Recording 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('RecordingIcon');
26
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
27
+ viewBox: "0 0 24 24",
28
+ fill: "#fff",
29
+ xmlns: "http://www.w3.org/2000/svg",
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__*/_jsxs("mask", {
42
+ id: "".concat(maskId),
43
+ children: [/*#__PURE__*/_jsx("mask", {
44
+ id: "recording-icon_svg__a",
45
+ style: {
46
+ maskType: 'alpha'
47
+ },
48
+ maskUnits: "userSpaceOnUse",
49
+ x: 2,
50
+ y: 0,
51
+ width: 20,
52
+ height: 24,
53
+ children: /*#__PURE__*/_jsx("path", {
54
+ d: "M3 9.75v4.673M7.5 5.25v13.5m13.5-9v4.673M16.5 5.25v13.5M12 .75v22.5",
55
+ stroke: "#fff",
56
+ strokeWidth: 1.5,
57
+ strokeLinecap: "round",
58
+ strokeLinejoin: "round"
59
+ })
60
+ }), /*#__PURE__*/_jsx("g", {
61
+ mask: "url(#recording-icon_svg__a)",
62
+ children: /*#__PURE__*/_jsx("path", {
63
+ fill: "#10162F",
64
+ d: "M0 .5h24v24H0z"
65
+ })
66
+ })]
67
+ }), /*#__PURE__*/_jsx("g", {
68
+ mask: "url(#".concat(maskId, ")"),
69
+ children: /*#__PURE__*/_jsx("rect", {
70
+ width: "100%",
71
+ height: "100%",
72
+ fill: "currentColor"
73
+ })
74
+ })]
75
+ }));
76
+ });
@@ -124,6 +124,7 @@ export * from './MastercardIcon';
124
124
  export * from './MediumIcon';
125
125
  export * from './MegaphoneIcon';
126
126
  export * from './MenuIcon';
127
+ export * from './MicrophoneIcon';
127
128
  export * from './MinimizeBarIcon';
128
129
  export * from './MinimizeIcon';
129
130
  export * from './MonitorBookIcon';
@@ -163,6 +164,7 @@ export * from './RailsIcon';
163
164
  export * from './RatingStarCircleIcon';
164
165
  export * from './RatingStarGiveIcon';
165
166
  export * from './ReactIcon';
167
+ export * from './RecordingIcon';
166
168
  export * from './RedditIcon';
167
169
  export * from './RefreshIcon';
168
170
  export * from './ResetIcon';
@@ -124,6 +124,7 @@ export * from './MastercardIcon';
124
124
  export * from './MediumIcon';
125
125
  export * from './MegaphoneIcon';
126
126
  export * from './MenuIcon';
127
+ export * from './MicrophoneIcon';
127
128
  export * from './MinimizeBarIcon';
128
129
  export * from './MinimizeIcon';
129
130
  export * from './MonitorBookIcon';
@@ -163,6 +164,7 @@ export * from './RailsIcon';
163
164
  export * from './RatingStarCircleIcon';
164
165
  export * from './RatingStarGiveIcon';
165
166
  export * from './ReactIcon';
167
+ export * from './RecordingIcon';
166
168
  export * from './RedditIcon';
167
169
  export * from './RefreshIcon';
168
170
  export * from './ResetIcon';
@@ -0,0 +1,10 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_41159_4206" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="3" y="0" width="18" height="24">
3
+ <path d="M12 19.5V23.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M11.5 0.75H12.5C12.5 0.75 16.5 0.75 16.5 4.75V12C16.5 12 16.5 16 12.5 16H11.5C11.5 16 7.5 16 7.5 12V4.75C7.5 4.75 7.5 0.75 11.5 0.75Z" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M4 9.75V12C4 13.9891 4.79018 15.8968 6.1967 17.3033C7.60322 18.7098 9.51088 19.5 11.5 19.5H12.5C14.4891 19.5 16.3968 18.7098 17.8033 17.3033C19.2098 15.8968 20 13.9891 20 12V9.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </mask>
7
+ <g mask="url(#mask0_41159_4206)">
8
+ <rect width="24" height="24" fill="#10162F"/>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_3586_19685" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="2" y="0" width="20" height="24">
3
+ <path d="M3 9.75V14.423" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M7.5 5.25V18.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M21 9.75V14.423" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
6
+ <path d="M16.5 5.25V18.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
7
+ <path d="M12 0.75V23.25" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
8
+ </mask>
9
+ <g mask="url(#mask0_3586_19685)">
10
+ <rect y="0.5" width="24" height="24" fill="#10162F"/>
11
+ </g>
12
+ </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.15.1-alpha.4e2eb7.0",
4
+ "version": "9.15.2-alpha.3a0973.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": "4b92fa918e08e72f6871429c1c036ec442c26114"
32
+ "gitHead": "b1b422021cec1f9b4b2941739084c1632b6b77c4"
33
33
  }