@codecademy/gamut-icons 9.3.2-alpha.6fad83.0 → 9.3.2-alpha.aa25a2.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 MinimizeBarIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,61 @@
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 MinimizeBarIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
15
+ var _ref$title = _ref.title,
16
+ title = _ref$title === void 0 ? 'Minimize Bar 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('MinimizeBarIcon');
26
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
27
+ viewBox: "0 0 27 27",
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 === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'minimize-bar-icon'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
42
+ id: titleId,
43
+ children: title
44
+ }) : null, /*#__PURE__*/_jsx("mask", {
45
+ id: "".concat(maskId),
46
+ children: /*#__PURE__*/_jsx("path", {
47
+ fillRule: "evenodd",
48
+ clipRule: "evenodd",
49
+ d: "M1.5 0h24A1.5 1.5 0 0127 1.5v24a1.5 1.5 0 01-1.5 1.5h-24A1.5 1.5 0 010 25.5v-24A1.5 1.5 0 011.5 0zm6.857 17.786a.857.857 0 000 1.714h10.286a.857.857 0 100-1.714H8.357z",
50
+ fill: "#fff"
51
+ })
52
+ }), /*#__PURE__*/_jsx("g", {
53
+ mask: "url(#".concat(maskId, ")"),
54
+ children: /*#__PURE__*/_jsx("rect", {
55
+ width: "100%",
56
+ height: "100%",
57
+ fill: "currentColor"
58
+ })
59
+ })]
60
+ }));
61
+ });
@@ -25,7 +25,7 @@ export var MinimizeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef)
25
25
  var maskId = useIconId('MinimizeIcon');
26
26
  return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
27
27
  xmlns: "http://www.w3.org/2000/svg",
28
- viewBox: "0 0 28 28",
28
+ viewBox: "0 0 24 24",
29
29
  fill: "#fff",
30
30
  role: "img",
31
31
  "aria-hidden": "true",
@@ -35,29 +35,29 @@ export var MinimizeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef)
35
35
  ref: svgRef,
36
36
  "aria-labelledby": titleId
37
37
  }, props), {}, {
38
- children: [title ? /*#__PURE__*/_jsx("title", {
38
+ children: [title === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'shrink-2'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
39
42
  id: titleId,
40
43
  children: title
41
- }) : null, /*#__PURE__*/_jsxs("mask", {
42
- id: maskId,
43
- children: [/*#__PURE__*/_jsx("rect", {
44
+ }) : null, /*#__PURE__*/_jsx("mask", {
45
+ id: "".concat(maskId),
46
+ children: /*#__PURE__*/_jsx("path", {
47
+ fill: "none",
48
+ stroke: "#fff",
49
+ strokeLinecap: "round",
50
+ strokeLinejoin: "round",
51
+ strokeWidth: 1.5,
52
+ d: "M23.25.748l-9 9m-4.5 11.25v-6.75H3m11.25-11.25v6.75H21m-11.25 4.5l-9 9"
53
+ })
54
+ }), /*#__PURE__*/_jsx("g", {
55
+ mask: "url(#".concat(maskId, ")"),
56
+ children: /*#__PURE__*/_jsx("rect", {
44
57
  width: "100%",
45
58
  height: "100%",
46
- fill: "#fff"
47
- }), /*#__PURE__*/_jsx("path", {
48
- fill: "#010b13",
49
- fillRule: "evenodd",
50
- clipRule: "evenodd",
51
- d: "M8 19.143c0-.474.384-.857.857-.857h10.286a.857.857 0 010 1.714H8.857A.857.857 0 018 19.143z"
52
- })]
53
- }), /*#__PURE__*/_jsx("rect", {
54
- x: 0.5,
55
- y: 0.5,
56
- width: 27,
57
- height: 27,
58
- rx: 1.5,
59
- fill: "currentcolor",
60
- mask: "url(#".concat(maskId, ")")
59
+ fill: "currentColor"
60
+ })
61
61
  })]
62
62
  }));
63
63
  });
@@ -117,6 +117,7 @@ export * from './MastercardIcon';
117
117
  export * from './MediumIcon';
118
118
  export * from './MegaphoneIcon';
119
119
  export * from './MenuIcon';
120
+ export * from './MinimizeBarIcon';
120
121
  export * from './MinimizeIcon';
121
122
  export * from './MonitorBookIcon';
122
123
  export * from './MultipleActionsViewIcon';
@@ -117,6 +117,7 @@ export * from './MastercardIcon';
117
117
  export * from './MediumIcon';
118
118
  export * from './MegaphoneIcon';
119
119
  export * from './MenuIcon';
120
+ export * from './MinimizeBarIcon';
120
121
  export * from './MinimizeIcon';
121
122
  export * from './MonitorBookIcon';
122
123
  export * from './MultipleActionsViewIcon';
@@ -0,0 +1,4 @@
1
+ <svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <title>minimize-bar-icon</title>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 0H25.5C26.3284 0 27 0.671573 27 1.5V25.5C27 26.3284 26.3284 27 25.5 27H1.5C0.671573 27 0 26.3284 0 25.5V1.5C0 0.671573 0.671573 0 1.5 0ZM8.35714 17.7856C7.88376 17.7856 7.5 18.1694 7.5 18.6428C7.5 19.1162 7.88376 19.4999 8.35714 19.4999H18.6429C19.1163 19.4999 19.5 19.1162 19.5 18.6428C19.5 18.1694 19.1163 17.7856 18.6429 17.7856H8.35714Z" fill="currentColor"/>
4
+ </svg>
@@ -1,7 +1 @@
1
- <svg width="28" xmlns="http://www.w3.org/2000/svg" height="28" viewBox="0 0 28 28">
2
- <mask id="m">
3
- <rect width="100%" height="100%" fill="white" />
4
- <path fill="#010b13" fill-rule="evenodd" clip-rule="evenodd" d="M8 19.1428C8 18.6694 8.38376 18.2856 8.85714 18.2856H19.1429C19.6163 18.2856 20 18.6694 20 19.1428C20 19.6162 19.6163 19.9999 19.1429 19.9999H8.85714C8.38376 19.9999 8 19.6162 8 19.1428Z" />
5
- </mask>
6
- <rect x="0.5" y="0.5" width="27" height="27" rx="1.5" fill="currentcolor" mask="url(#m)" />
7
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}</style></defs><title>shrink-2</title><line class="a" x1="23.25" y1="0.748" x2="14.25" y2="9.748"/><polyline class="a" points="9.75 20.998 9.75 14.248 3 14.248"/><polyline class="a" points="14.25 2.998 14.25 9.748 21 9.748"/><line class="a" x1="9.75" y1="14.248" x2="0.75" y2="23.248"/></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.3.2-alpha.6fad83.0",
4
+ "version": "9.3.2-alpha.aa25a2.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -39,5 +39,5 @@
39
39
  "lodash": "^4.17.5",
40
40
  "react": "^17.0.2 || ^18.2.0"
41
41
  },
42
- "gitHead": "2a54773fab7bd3fcccb665c3927adcc6a944155c"
42
+ "gitHead": "43bdea5567e413d7200301c8ff282bddc1be3146"
43
43
  }