@codecademy/gamut-illustrations 0.21.0 → 0.21.1-alpha.a809e8.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.
Files changed (58) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +3 -3
  3. package/dist/Bee.d.ts +0 -3
  4. package/dist/Bee.js +0 -122
  5. package/dist/Bell.d.ts +0 -3
  6. package/dist/Bell.js +0 -40
  7. package/dist/BinaryBlocks.d.ts +0 -3
  8. package/dist/BinaryBlocks.js +0 -125
  9. package/dist/Browser.d.ts +0 -3
  10. package/dist/Browser.js +0 -71
  11. package/dist/BrowserLock.d.ts +0 -3
  12. package/dist/BrowserLock.js +0 -40
  13. package/dist/BrowserPuzzle.d.ts +0 -3
  14. package/dist/BrowserPuzzle.js +0 -63
  15. package/dist/ChatBox.d.ts +0 -3
  16. package/dist/ChatBox.js +0 -40
  17. package/dist/Confetti.d.ts +0 -3
  18. package/dist/Confetti.js +0 -89
  19. package/dist/EmailAt.d.ts +0 -3
  20. package/dist/EmailAt.js +0 -34
  21. package/dist/Envelope.d.ts +0 -3
  22. package/dist/Envelope.js +0 -34
  23. package/dist/Heart.d.ts +0 -3
  24. package/dist/Heart.js +0 -28
  25. package/dist/Hills.d.ts +0 -3
  26. package/dist/Hills.js +0 -47
  27. package/dist/HomeOffice.d.ts +0 -3
  28. package/dist/HomeOffice.js +0 -108
  29. package/dist/Keyhole.d.ts +0 -3
  30. package/dist/Keyhole.js +0 -28
  31. package/dist/Maze.d.ts +0 -3
  32. package/dist/Maze.js +0 -67
  33. package/dist/Megaphone.d.ts +0 -3
  34. package/dist/Megaphone.js +0 -46
  35. package/dist/New.d.ts +0 -3
  36. package/dist/New.js +0 -58
  37. package/dist/NumberBlocks.d.ts +0 -3
  38. package/dist/NumberBlocks.js +0 -261
  39. package/dist/Onboarding.d.ts +0 -3
  40. package/dist/Onboarding.js +0 -266
  41. package/dist/Plant.d.ts +0 -3
  42. package/dist/Plant.js +0 -64
  43. package/dist/PortfolioProject.d.ts +0 -3
  44. package/dist/PortfolioProject.js +0 -35
  45. package/dist/PracticeProject.d.ts +0 -3
  46. package/dist/PracticeProject.js +0 -43
  47. package/dist/Python.d.ts +0 -3
  48. package/dist/Python.js +0 -20
  49. package/dist/Sun.d.ts +0 -3
  50. package/dist/Sun.js +0 -113
  51. package/dist/Target.d.ts +0 -3
  52. package/dist/Target.js +0 -41
  53. package/dist/__tests__/gamut-illustrations.test.d.ts +0 -1
  54. package/dist/__tests__/gamut-illustrations.test.js +0 -32
  55. package/dist/index.d.ts +0 -26
  56. package/dist/index.js +0 -26
  57. package/dist/types.d.ts +0 -12
  58. package/dist/types.js +0 -0
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- export var PracticeProject = function PracticeProject(_ref) {
3
- var ariaHidden = _ref['aria-hidden'],
4
- className = _ref.className,
5
- height = _ref.height,
6
- width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
8
- "aria-hidden": ariaHidden,
9
- className: className,
10
- width: width,
11
- height: height,
12
- viewBox: "0 0 96 96",
13
- fill: "none",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, /*#__PURE__*/React.createElement("path", {
16
- d: "M70.151 88.173 47.795 8 25.44 88.173",
17
- stroke: "#10162F",
18
- strokeLinecap: "square",
19
- strokeLinejoin: "bevel"
20
- }), /*#__PURE__*/React.createElement("path", {
21
- d: "M47.795 31.909v56.264",
22
- stroke: "#10162F",
23
- strokeMiterlimit: "10",
24
- strokeLinecap: "square"
25
- }), /*#__PURE__*/React.createElement("path", {
26
- d: "M74.538 74.614v-55.17H21v55.17h53.538Z",
27
- fill: "#66C4FF",
28
- stroke: "#10162F",
29
- strokeMiterlimit: "10",
30
- strokeLinecap: "square"
31
- }), /*#__PURE__*/React.createElement("path", {
32
- d: "M67.314 67.342V26.695h-39.09v40.647h39.09Z",
33
- fill: "#66C4FF",
34
- stroke: "#10162F",
35
- strokeMiterlimit: "10",
36
- strokeLinecap: "square"
37
- }), /*#__PURE__*/React.createElement("path", {
38
- d: "m40.99 42.34 4.467 4.562-4.834 4.667 4.702 4.771 4.808-4.667 4.834-4.64L50.5 42.47l-.237-.235-4.466-4.563-4.807 4.667Z",
39
- stroke: "#10162F",
40
- strokeMiterlimit: "10",
41
- strokeLinecap: "square"
42
- }));
43
- };
package/dist/Python.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { IllustrationProps } from './types';
3
- export declare const Python: React.FC<IllustrationProps>;
package/dist/Python.js DELETED
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- export var Python = function Python(_ref) {
3
- var ariaHidden = _ref['aria-hidden'],
4
- className = _ref.className,
5
- height = _ref.height,
6
- width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
8
- "aria-hidden": ariaHidden,
9
- className: className,
10
- height: height,
11
- width: width,
12
- viewBox: "0 0 80 80",
13
- fill: "none",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, /*#__PURE__*/React.createElement("title", null, "Python Illustration"), /*#__PURE__*/React.createElement("path", {
16
- d: "M40 57.5h-.5v5h18V66s0 0 0 0c0 7.456-6.044 13.5-13.5 13.5h-8c-7.456 0-13.5-6.044-13.5-13.5v-5.972h0V54l.004-.292v-.004c.154-6.117 5.086-11.048 11.205-11.2h.003L34 42.5H36.794h-.001H46.005l.315-.003h.005c8.853-.171 15.999-7.315 16.172-16.169v-.004l.003-.32V22.5H66c7.456 0 13.5 6.044 13.5 13.5v8c0 7.456-6.044 13.5-13.5 13.5H40zm0-40H22.5V14C22.5 6.544 28.544.5 36 .5h8C51.456.5 57.5 6.544 57.5 14v12l-.004.293v.003c-.154 6.117-5.087 11.048-11.205 11.2h-.003L46 37.5H33.995l-.315.003h-.005c-8.853.171-15.999 7.315-16.172 16.169v.004l-.003.32V57.5H14C6.544 57.5.5 51.456.5 44v-8c0-7.456 6.044-13.5 13.5-13.5h26.5v-5H40zm8 49a3.5 3.5 0 100 7 3.5 3.5 0 000-7zm-17-60a3.5 3.5 0 100 7 3.5 3.5 0 000-7z",
17
- fill: "#FFF2FF",
18
- stroke: "#10162F"
19
- }));
20
- };
package/dist/Sun.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { IllustrationProps } from './types';
3
- export declare const Sun: React.FC<IllustrationProps>;
package/dist/Sun.js DELETED
@@ -1,113 +0,0 @@
1
- import React from 'react';
2
- export var Sun = function Sun(_ref) {
3
- var ariaHidden = _ref['aria-hidden'],
4
- className = _ref.className,
5
- height = _ref.height,
6
- width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
8
- "aria-hidden": ariaHidden,
9
- className: className,
10
- width: width,
11
- height: height,
12
- viewBox: "0 0 80 60",
13
- fill: "none",
14
- xmlns: "http://www.w3.org/2000/svg",
15
- xmlnsXlink: "http://www.w3.org/1999/xlink"
16
- }, /*#__PURE__*/React.createElement("title", null, "Sun Illustration"), /*#__PURE__*/React.createElement("rect", {
17
- width: "80",
18
- height: "60",
19
- fill: "white"
20
- }), /*#__PURE__*/React.createElement("circle", {
21
- cx: "40.0598",
22
- cy: "30.2034",
23
- r: "9.15061",
24
- fill: "url(#pattern0)",
25
- stroke: "#10162F",
26
- strokeMiterlimit: "10"
27
- }), /*#__PURE__*/React.createElement("line", {
28
- x1: "40.5002",
29
- y1: "0.718262",
30
- x2: "40.5002",
31
- y2: "16.986",
32
- stroke: "#10162F"
33
- }), /*#__PURE__*/React.createElement("line", {
34
- x1: "40.5002",
35
- y1: "43.0145",
36
- x2: "40.5002",
37
- y2: "59.2822",
38
- stroke: "#10162F"
39
- }), /*#__PURE__*/React.createElement("line", {
40
- x1: "69.2822",
41
- y1: "30.5004",
42
- x2: "53.0145",
43
- y2: "30.5004",
44
- stroke: "#10162F"
45
- }), /*#__PURE__*/React.createElement("line", {
46
- x1: "26.9861",
47
- y1: "30.5004",
48
- x2: "10.7183",
49
- y2: "30.5004",
50
- stroke: "#10162F"
51
- }), /*#__PURE__*/React.createElement("line", {
52
- x1: "25.7924",
53
- y1: "4.39104",
54
- x2: "33.9263",
55
- y2: "18.4793",
56
- stroke: "#10162F"
57
- }), /*#__PURE__*/React.createElement("line", {
58
- x1: "46.9403",
59
- y1: "41.0206",
60
- x2: "55.0742",
61
- y2: "55.1089",
62
- stroke: "#10162F"
63
- }), /*#__PURE__*/React.createElement("line", {
64
- x1: "65.6091",
65
- y1: "15.7921",
66
- x2: "51.5208",
67
- y2: "23.926",
68
- stroke: "#10162F"
69
- }), /*#__PURE__*/React.createElement("line", {
70
- x1: "28.9795",
71
- y1: "36.9402",
72
- x2: "14.8912",
73
- y2: "45.074",
74
- stroke: "#10162F"
75
- }), /*#__PURE__*/React.createElement("line", {
76
- x1: "14.8911",
77
- y1: "14.9258",
78
- x2: "28.9794",
79
- y2: "23.0597",
80
- stroke: "#10162F"
81
- }), /*#__PURE__*/React.createElement("line", {
82
- x1: "51.5208",
83
- y1: "36.0742",
84
- x2: "65.609",
85
- y2: "44.2081",
86
- stroke: "#10162F"
87
- }), /*#__PURE__*/React.createElement("line", {
88
- x1: "55.0741",
89
- y1: "4.89114",
90
- x2: "46.9402",
91
- y2: "18.9794",
92
- stroke: "#10162F"
93
- }), /*#__PURE__*/React.createElement("line", {
94
- x1: "33.9259",
95
- y1: "41.5207",
96
- x2: "25.7921",
97
- y2: "55.609",
98
- stroke: "#10162F"
99
- }), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("pattern", {
100
- id: "pattern0",
101
- patternContentUnits: "objectBoundingBox",
102
- width: "3.49703",
103
- height: "3.49703"
104
- }, /*#__PURE__*/React.createElement("use", {
105
- xlinkHref: "#image0",
106
- transform: "scale(0.0546411)"
107
- })), /*#__PURE__*/React.createElement("image", {
108
- id: "image0",
109
- width: "64",
110
- height: "64",
111
- xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACkSURBVHgB7dcxEsIwDAVR6f53Boo/FNBkPEkYrN3Xye3+xlVVz/pEu/XmEqgsr3AJVJZXuAQqyytcApXlFS6ByvIKl0BleYVLoLK8wiVQWV5BK/8oheWh+vuBVh67BMsXVB/cuPKYJVj+4B6rF29c+bFLsPziPUafvHHlxyzB8ifvbfXFN678tkuw/MX3NvrmG1d+myVY/ub7b/WPb1z5sb/CJS8ZOf4BH9R+4AAAAABJRU5ErkJggg=="
112
- })));
113
- };
package/dist/Target.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { IllustrationProps } from './types';
3
- export declare const Target: React.FC<IllustrationProps>;
package/dist/Target.js DELETED
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- export var Target = function Target(_ref) {
3
- var ariaHidden = _ref['aria-hidden'],
4
- className = _ref.className,
5
- height = _ref.height,
6
- width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
8
- "aria-hidden": ariaHidden,
9
- className: className,
10
- width: width,
11
- height: height,
12
- viewBox: "0 0 135 97",
13
- fill: "none",
14
- xmlns: "http://www.w3.org/2000/svg"
15
- }, /*#__PURE__*/React.createElement("title", null, "Target"), /*#__PURE__*/React.createElement("path", {
16
- d: "M6.93 24.844L48 1.133l41.07 23.711v47.423L48 95.978 6.93 72.267V24.844z",
17
- fill: "#FFF0E5",
18
- stroke: "#10162F",
19
- strokeLinejoin: "round"
20
- }), /*#__PURE__*/React.createElement("path", {
21
- d: "M24.537 35.009L48 21.462 71.463 35.01v27.093L48 75.65 24.537 62.102V35.01z",
22
- fill: "#FFF0E5",
23
- stroke: "#10162F",
24
- strokeLinejoin: "round"
25
- }), /*#__PURE__*/React.createElement("path", {
26
- d: "M40.11 44.891l7.325-4.229 7.325 4.23v8.457l-7.325 4.23-7.325-4.23v-8.458z",
27
- fill: "#FFF0E5",
28
- stroke: "#10162F",
29
- strokeLinejoin: "round"
30
- }), /*#__PURE__*/React.createElement("path", {
31
- fillRule: "evenodd",
32
- clipRule: "evenodd",
33
- d: "M56.792 37.243l5.09 14.758-11.902-4.163 6.812-10.595z",
34
- fill: "#FFF0E5",
35
- stroke: "#10162F"
36
- }), /*#__PURE__*/React.createElement("path", {
37
- d: "M59.88 44.511l71.705-24.657M125.648 21.64l3.24-6.64M121.289 23.09l3.24-6.639M116.931 24.541l3.24-6.639M125.76 21.778l6.648 3.24M121.402 23.591l6.647 3.24M117.043 25.042l6.648 3.24",
38
- stroke: "#10162F",
39
- strokeLinecap: "square"
40
- }));
41
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,32 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
-
3
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
-
5
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
-
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
-
9
- function _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
-
11
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
-
13
- import { render } from '@testing-library/react';
14
- import React from 'react';
15
- import * as illustrations from '..';
16
- describe('illustrations', function () {
17
- var _loop = function _loop() {
18
- var _ref = _Object$entries[_i2];
19
- _ref2 = _slicedToArray(_ref, 2);
20
- var name = _ref2[0];
21
- var Illustration = _ref2[1];
22
- it("".concat(name, " renders"), function () {
23
- render( /*#__PURE__*/React.createElement(Illustration, null));
24
- });
25
- };
26
-
27
- for (var _i2 = 0, _Object$entries = Object.entries(illustrations); _i2 < _Object$entries.length; _i2++) {
28
- var _ref2;
29
-
30
- _loop();
31
- }
32
- });
package/dist/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from './Bee';
2
- export * from './Bell';
3
- export * from './BinaryBlocks';
4
- export * from './Browser';
5
- export * from './BrowserLock';
6
- export * from './BrowserPuzzle';
7
- export * from './ChatBox';
8
- export * from './Confetti';
9
- export * from './EmailAt';
10
- export * from './Envelope';
11
- export * from './Heart';
12
- export * from './Hills';
13
- export * from './HomeOffice';
14
- export * from './Keyhole';
15
- export * from './Maze';
16
- export * from './Megaphone';
17
- export * from './New';
18
- export * from './NumberBlocks';
19
- export * from './Onboarding';
20
- export * from './Plant';
21
- export * from './PortfolioProject';
22
- export * from './PracticeProject';
23
- export * from './Python';
24
- export * from './Sun';
25
- export * from './Target';
26
- export * from './types';
package/dist/index.js DELETED
@@ -1,26 +0,0 @@
1
- export * from './Bee';
2
- export * from './Bell';
3
- export * from './BinaryBlocks';
4
- export * from './Browser';
5
- export * from './BrowserLock';
6
- export * from './BrowserPuzzle';
7
- export * from './ChatBox';
8
- export * from './Confetti';
9
- export * from './EmailAt';
10
- export * from './Envelope';
11
- export * from './Heart';
12
- export * from './Hills';
13
- export * from './HomeOffice';
14
- export * from './Keyhole';
15
- export * from './Maze';
16
- export * from './Megaphone';
17
- export * from './New';
18
- export * from './NumberBlocks';
19
- export * from './Onboarding';
20
- export * from './Plant';
21
- export * from './PortfolioProject';
22
- export * from './PracticeProject';
23
- export * from './Python';
24
- export * from './Sun';
25
- export * from './Target';
26
- export * from './types';
package/dist/types.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export declare type IllustrationProps = {
2
- 'aria-hidden'?: boolean;
3
- className?: string;
4
- /**
5
- * How high the root SVG should be, if not calculated by width or CSS.
6
- */
7
- height?: number | string;
8
- /**
9
- * How wide the root SVG should be, if not calculated by height or CSS.
10
- */
11
- width?: number | string;
12
- };
package/dist/types.js DELETED
File without changes