@codecademy/gamut-illustrations 0.28.5 → 0.28.6-alpha.4d61d4.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/dist/Sun.js CHANGED
@@ -1,10 +1,14 @@
1
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-illustrations/src/Sun.tsx",
2
+ _this = this;
3
+
1
4
  import React from 'react';
5
+ import { jsxDEV as _jsxDEV } from "@emotion/react/jsx-dev-runtime";
2
6
  export var Sun = function Sun(_ref) {
3
7
  var ariaHidden = _ref['aria-hidden'],
4
8
  className = _ref.className,
5
9
  height = _ref.height,
6
10
  width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
11
+ return _jsxDEV("svg", {
8
12
  "aria-hidden": ariaHidden,
9
13
  className: className,
10
14
  width: width,
@@ -12,102 +16,188 @@ export var Sun = function Sun(_ref) {
12
16
  viewBox: "0 0 80 60",
13
17
  fill: "none",
14
18
  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
- })));
19
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
20
+ children: [_jsxDEV("title", {
21
+ children: "Sun Illustration"
22
+ }, void 0, false, {
23
+ fileName: _jsxFileName,
24
+ lineNumber: 21,
25
+ columnNumber: 5
26
+ }, _this), _jsxDEV("rect", {
27
+ width: "80",
28
+ height: "60",
29
+ fill: "white"
30
+ }, void 0, false, {
31
+ fileName: _jsxFileName,
32
+ lineNumber: 22,
33
+ columnNumber: 5
34
+ }, _this), _jsxDEV("circle", {
35
+ cx: "40.0598",
36
+ cy: "30.2034",
37
+ r: "9.15061",
38
+ fill: "url(#pattern0)",
39
+ stroke: "#10162F",
40
+ strokeMiterlimit: "10"
41
+ }, void 0, false, {
42
+ fileName: _jsxFileName,
43
+ lineNumber: 23,
44
+ columnNumber: 5
45
+ }, _this), _jsxDEV("line", {
46
+ x1: "40.5002",
47
+ y1: "0.718262",
48
+ x2: "40.5002",
49
+ y2: "16.986",
50
+ stroke: "#10162F"
51
+ }, void 0, false, {
52
+ fileName: _jsxFileName,
53
+ lineNumber: 31,
54
+ columnNumber: 5
55
+ }, _this), _jsxDEV("line", {
56
+ x1: "40.5002",
57
+ y1: "43.0145",
58
+ x2: "40.5002",
59
+ y2: "59.2822",
60
+ stroke: "#10162F"
61
+ }, void 0, false, {
62
+ fileName: _jsxFileName,
63
+ lineNumber: 38,
64
+ columnNumber: 5
65
+ }, _this), _jsxDEV("line", {
66
+ x1: "69.2822",
67
+ y1: "30.5004",
68
+ x2: "53.0145",
69
+ y2: "30.5004",
70
+ stroke: "#10162F"
71
+ }, void 0, false, {
72
+ fileName: _jsxFileName,
73
+ lineNumber: 45,
74
+ columnNumber: 5
75
+ }, _this), _jsxDEV("line", {
76
+ x1: "26.9861",
77
+ y1: "30.5004",
78
+ x2: "10.7183",
79
+ y2: "30.5004",
80
+ stroke: "#10162F"
81
+ }, void 0, false, {
82
+ fileName: _jsxFileName,
83
+ lineNumber: 52,
84
+ columnNumber: 5
85
+ }, _this), _jsxDEV("line", {
86
+ x1: "25.7924",
87
+ y1: "4.39104",
88
+ x2: "33.9263",
89
+ y2: "18.4793",
90
+ stroke: "#10162F"
91
+ }, void 0, false, {
92
+ fileName: _jsxFileName,
93
+ lineNumber: 59,
94
+ columnNumber: 5
95
+ }, _this), _jsxDEV("line", {
96
+ x1: "46.9403",
97
+ y1: "41.0206",
98
+ x2: "55.0742",
99
+ y2: "55.1089",
100
+ stroke: "#10162F"
101
+ }, void 0, false, {
102
+ fileName: _jsxFileName,
103
+ lineNumber: 66,
104
+ columnNumber: 5
105
+ }, _this), _jsxDEV("line", {
106
+ x1: "65.6091",
107
+ y1: "15.7921",
108
+ x2: "51.5208",
109
+ y2: "23.926",
110
+ stroke: "#10162F"
111
+ }, void 0, false, {
112
+ fileName: _jsxFileName,
113
+ lineNumber: 73,
114
+ columnNumber: 5
115
+ }, _this), _jsxDEV("line", {
116
+ x1: "28.9795",
117
+ y1: "36.9402",
118
+ x2: "14.8912",
119
+ y2: "45.074",
120
+ stroke: "#10162F"
121
+ }, void 0, false, {
122
+ fileName: _jsxFileName,
123
+ lineNumber: 74,
124
+ columnNumber: 5
125
+ }, _this), _jsxDEV("line", {
126
+ x1: "14.8911",
127
+ y1: "14.9258",
128
+ x2: "28.9794",
129
+ y2: "23.0597",
130
+ stroke: "#10162F"
131
+ }, void 0, false, {
132
+ fileName: _jsxFileName,
133
+ lineNumber: 75,
134
+ columnNumber: 5
135
+ }, _this), _jsxDEV("line", {
136
+ x1: "51.5208",
137
+ y1: "36.0742",
138
+ x2: "65.609",
139
+ y2: "44.2081",
140
+ stroke: "#10162F"
141
+ }, void 0, false, {
142
+ fileName: _jsxFileName,
143
+ lineNumber: 82,
144
+ columnNumber: 5
145
+ }, _this), _jsxDEV("line", {
146
+ x1: "55.0741",
147
+ y1: "4.89114",
148
+ x2: "46.9402",
149
+ y2: "18.9794",
150
+ stroke: "#10162F"
151
+ }, void 0, false, {
152
+ fileName: _jsxFileName,
153
+ lineNumber: 83,
154
+ columnNumber: 5
155
+ }, _this), _jsxDEV("line", {
156
+ x1: "33.9259",
157
+ y1: "41.5207",
158
+ x2: "25.7921",
159
+ y2: "55.609",
160
+ stroke: "#10162F"
161
+ }, void 0, false, {
162
+ fileName: _jsxFileName,
163
+ lineNumber: 90,
164
+ columnNumber: 5
165
+ }, _this), _jsxDEV("defs", {
166
+ children: [_jsxDEV("pattern", {
167
+ id: "pattern0",
168
+ patternContentUnits: "objectBoundingBox",
169
+ width: "3.49703",
170
+ height: "3.49703",
171
+ children: _jsxDEV("use", {
172
+ xlinkHref: "#image0",
173
+ transform: "scale(0.0546411)"
174
+ }, void 0, false, {
175
+ fileName: _jsxFileName,
176
+ lineNumber: 98,
177
+ columnNumber: 9
178
+ }, _this)
179
+ }, void 0, false, {
180
+ fileName: _jsxFileName,
181
+ lineNumber: 92,
182
+ columnNumber: 7
183
+ }, _this), _jsxDEV("image", {
184
+ id: "image0",
185
+ width: "64",
186
+ height: "64",
187
+ xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACkSURBVHgB7dcxEsIwDAVR6f53Boo/FNBkPEkYrN3Xye3+xlVVz/pEu/XmEqgsr3AJVJZXuAQqyytcApXlFS6ByvIKl0BleYVLoLK8wiVQWV5BK/8oheWh+vuBVh67BMsXVB/cuPKYJVj+4B6rF29c+bFLsPziPUafvHHlxyzB8ifvbfXFN678tkuw/MX3NvrmG1d+myVY/ub7b/WPb1z5sb/CJS8ZOf4BH9R+4AAAAABJRU5ErkJggg=="
188
+ }, void 0, false, {
189
+ fileName: _jsxFileName,
190
+ lineNumber: 100,
191
+ columnNumber: 7
192
+ }, _this)]
193
+ }, void 0, true, {
194
+ fileName: _jsxFileName,
195
+ lineNumber: 91,
196
+ columnNumber: 5
197
+ }, _this)]
198
+ }, void 0, true, {
199
+ fileName: _jsxFileName,
200
+ lineNumber: 11,
201
+ columnNumber: 3
202
+ }, _this);
113
203
  };
package/dist/Target.js CHANGED
@@ -1,41 +1,76 @@
1
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-illustrations/src/Target.tsx",
2
+ _this = this;
3
+
1
4
  import React from 'react';
5
+ import { jsxDEV as _jsxDEV } from "@emotion/react/jsx-dev-runtime";
2
6
  export var Target = function Target(_ref) {
3
7
  var ariaHidden = _ref['aria-hidden'],
4
8
  className = _ref.className,
5
9
  height = _ref.height,
6
10
  width = _ref.width;
7
- return /*#__PURE__*/React.createElement("svg", {
11
+ return _jsxDEV("svg", {
8
12
  "aria-hidden": ariaHidden,
9
13
  className: className,
10
14
  width: width,
11
15
  height: height,
12
16
  viewBox: "0 0 135 97",
13
17
  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
- }));
18
+ xmlns: "http://www.w3.org/2000/svg",
19
+ children: [_jsxDEV("title", {
20
+ children: "Target"
21
+ }, void 0, false, {
22
+ fileName: _jsxFileName,
23
+ lineNumber: 20,
24
+ columnNumber: 5
25
+ }, _this), _jsxDEV("path", {
26
+ d: "M6.93 24.844L48 1.133l41.07 23.711v47.423L48 95.978 6.93 72.267V24.844z",
27
+ fill: "#FFF0E5",
28
+ stroke: "#10162F",
29
+ strokeLinejoin: "round"
30
+ }, void 0, false, {
31
+ fileName: _jsxFileName,
32
+ lineNumber: 21,
33
+ columnNumber: 5
34
+ }, _this), _jsxDEV("path", {
35
+ d: "M24.537 35.009L48 21.462 71.463 35.01v27.093L48 75.65 24.537 62.102V35.01z",
36
+ fill: "#FFF0E5",
37
+ stroke: "#10162F",
38
+ strokeLinejoin: "round"
39
+ }, void 0, false, {
40
+ fileName: _jsxFileName,
41
+ lineNumber: 27,
42
+ columnNumber: 5
43
+ }, _this), _jsxDEV("path", {
44
+ d: "M40.11 44.891l7.325-4.229 7.325 4.23v8.457l-7.325 4.23-7.325-4.23v-8.458z",
45
+ fill: "#FFF0E5",
46
+ stroke: "#10162F",
47
+ strokeLinejoin: "round"
48
+ }, void 0, false, {
49
+ fileName: _jsxFileName,
50
+ lineNumber: 33,
51
+ columnNumber: 5
52
+ }, _this), _jsxDEV("path", {
53
+ fillRule: "evenodd",
54
+ clipRule: "evenodd",
55
+ d: "M56.792 37.243l5.09 14.758-11.902-4.163 6.812-10.595z",
56
+ fill: "#FFF0E5",
57
+ stroke: "#10162F"
58
+ }, void 0, false, {
59
+ fileName: _jsxFileName,
60
+ lineNumber: 39,
61
+ columnNumber: 5
62
+ }, _this), _jsxDEV("path", {
63
+ 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",
64
+ stroke: "#10162F",
65
+ strokeLinecap: "square"
66
+ }, void 0, false, {
67
+ fileName: _jsxFileName,
68
+ lineNumber: 46,
69
+ columnNumber: 5
70
+ }, _this)]
71
+ }, void 0, true, {
72
+ fileName: _jsxFileName,
73
+ lineNumber: 11,
74
+ columnNumber: 3
75
+ }, _this);
41
76
  };
package/dist/types.js CHANGED
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Codecademy/gamut/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@codecademy/gamut-styles": "^14.0.2",
7
+ "@codecademy/gamut-styles": "14.0.3-alpha.4d61d4.0",
8
8
  "classnames": "^2.2.5"
9
9
  },
10
10
  "description": "Illustrations library for Codecademy",
@@ -36,6 +36,6 @@
36
36
  "dist/**/[A-Z]**/[A-Z]*.js",
37
37
  "dist/**/[A-Z]**/index.js"
38
38
  ],
39
- "version": "0.28.5",
40
- "gitHead": "eb5934e99931cdf6a967fd964bc1e3cb27e128aa"
39
+ "version": "0.28.6-alpha.4d61d4.0",
40
+ "gitHead": "6060cbb9e9243cdf361242feb2ca71f5212f6470"
41
41
  }
package/project.json CHANGED
@@ -11,11 +11,19 @@
11
11
  "outputPath": "./dist",
12
12
  "commands": [
13
13
  "rm -rf ./dist",
14
- "babel ./src --out-dir ./dist --copy-files --extensions \".ts,.tsx\"",
14
+ "babel ./src --out-dir ./dist --extensions \".ts,.tsx\"",
15
15
  "tsc --emitDeclarationOnly"
16
16
  ],
17
17
  "parallel": false
18
18
  }
19
+ },
20
+ "test": {
21
+ "executor": "@nrwl/jest:jest",
22
+ "outputs": ["coverage/packages/gamut-illustrations"],
23
+ "options": {
24
+ "jestConfig": "packages/gamut-illustrations/jest.config.ts",
25
+ "passWithNoTests": true
26
+ }
19
27
  }
20
28
  },
21
29
  "tags": []
package/tsconfig.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "../../tsconfig.base.json",
3
3
  "include": ["../../typings/*.d.ts", "./src/**/*.ts", "./src/**/*.tsx"],
4
4
  "compilerOptions": {
5
- "outDir": "./dist"
5
+ "declaration": true,
6
+ "jsx": "react",
7
+ "outDir": "./dist",
8
+ "rootDir": "./src"
6
9
  }
7
10
  }
@@ -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/jest.config.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('../../jest.config.base')('gamut-illustrations');