@codecademy/gamut-icons 9.11.1 → 9.11.2-alpha.11bf1f.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.
package/README.md CHANGED
@@ -12,5 +12,5 @@ _UI Icons for the Gamut component library_
12
12
 
13
13
  ## Icon Guidelines
14
14
 
15
- 1. All icons must be square
16
- 2. All Icons should ideally be designed inside of a 16x16 pixel grid
15
+ 1. All icons must be square.
16
+ 2. All Icons should ideally be designed inside of a 16x16 pixel grid.
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { GamutIconProps } from '../../props';
3
+ export declare const BookBookmarkIcon: React.ForwardRefExoticComponent<GamutIconProps & React.RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,67 @@
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 BookBookmarkIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
15
+ var _ref$title = _ref.title,
16
+ title = _ref$title === void 0 ? 'Book Bookmark 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('BookBookmarkIcon');
26
+ return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
27
+ viewBox: "0 0 24 24",
28
+ xmlns: "http://www.w3.org/2000/svg",
29
+ fill: "#fff",
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("path", {
44
+ d: "M11.25 3.803V20.38m3.272-17.395a15.512 15.512 0 00-2.763.733 1.51 1.51 0 01-1.017 0 13.013 13.013 0 00-8.988-.187 1.507 1.507 0 00-1.05 1.438v13.44a1.507 1.507 0 001.88 1.466 12.81 12.81 0 018.156.42 1.5 1.5 0 001.017 0 12.806 12.806 0 018.156-.42 1.508 1.508 0 001.881-1.462V4.97a1.507 1.507 0 00-1.048-1.435 15.851 15.851 0 00-2.217-.54",
45
+ fill: "none",
46
+ stroke: "#fff",
47
+ strokeLinecap: "round",
48
+ strokeLinejoin: "round",
49
+ strokeWidth: 1.5
50
+ }), /*#__PURE__*/_jsx("path", {
51
+ d: "M18.633 10.557l-2.11-2.11-2.109 2.11V3.526A1.406 1.406 0 0115.82 2.12h1.407a1.406 1.406 0 011.406 1.406z",
52
+ fill: "none",
53
+ stroke: "#fff",
54
+ strokeLinecap: "round",
55
+ strokeLinejoin: "round",
56
+ strokeWidth: 1.5
57
+ })]
58
+ }), /*#__PURE__*/_jsx("g", {
59
+ mask: "url(#".concat(maskId, ")"),
60
+ children: /*#__PURE__*/_jsx("rect", {
61
+ width: "100%",
62
+ height: "100%",
63
+ fill: "currentColor"
64
+ })
65
+ })]
66
+ }));
67
+ });
@@ -20,6 +20,7 @@ export * from './ArrowUpIcon';
20
20
  export * from './ArticleIcon';
21
21
  export * from './BadgeIcon';
22
22
  export * from './BellIcon';
23
+ export * from './BookBookmarkIcon';
23
24
  export * from './BookClosedBookmarkIcon';
24
25
  export * from './BookFlipPageIcon';
25
26
  export * from './BriefcaseIcon';
@@ -20,6 +20,7 @@ export * from './ArrowUpIcon';
20
20
  export * from './ArticleIcon';
21
21
  export * from './BadgeIcon';
22
22
  export * from './BellIcon';
23
+ export * from './BookBookmarkIcon';
23
24
  export * from './BookClosedBookmarkIcon';
24
25
  export * from './BookFlipPageIcon';
25
26
  export * from './BriefcaseIcon';
@@ -0,0 +1 @@
1
+ <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m11.25 3.8034375000000002 0 16.576874999999998" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.521875 2.9850000000000003a15.511875 15.511875 0 0 0 -2.7628125 0.733125 1.5093750000000001 1.5093750000000001 0 0 1 -1.0171875 0 13.0134375 13.0134375 0 0 0 -8.9878125 -0.1875A1.5065625 1.5065625 0 0 0 0.703125 4.96875v13.4409375A1.5065625 1.5065625 0 0 0 2.5837499999999998 19.875a12.8090625 12.8090625 0 0 1 8.15625 0.42 1.5 1.5 0 0 0 1.0171875 0 12.80625 12.80625 0 0 1 8.15625 -0.42 1.5075 1.5075 0 0 0 1.8806249999999998 -1.4615624999999999V4.96875a1.5065625 1.5065625 0 0 0 -1.0481250000000002 -1.434375 15.85125 15.85125 0 0 0 -2.2171875 -0.5399999999999999" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="m18.6328125 10.5571875 -2.109375 -2.109375 -2.109375 2.109375v-7.03125a1.40625 1.40625 0 0 1 1.40625 -1.40625h1.40625a1.40625 1.40625 0 0 1 1.40625 1.40625Z" fill="none" stroke="#000000" 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.11.1",
4
+ "version": "9.11.2-alpha.11bf1f.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": "a5549a80e74c55d104adb497d4d868917fe37507"
32
+ "gitHead": "40dd905df9d83c46afe3977855138db29a318cb1"
33
33
  }