@codecademy/gamut-patterns 0.8.12-alpha.4d61d4.0 → 0.8.12-alpha.9e36ef.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 (41) hide show
  1. package/dist/patterns/CheckerDense.js +30 -60
  2. package/dist/patterns/CheckerLoose.js +30 -60
  3. package/dist/patterns/CheckerRegular.js +30 -60
  4. package/dist/patterns/DiagonalADense.js +64 -118
  5. package/dist/patterns/DiagonalALoose.js +208 -358
  6. package/dist/patterns/DiagonalARegular.js +112 -198
  7. package/dist/patterns/DiagonalBDense.js +46 -88
  8. package/dist/patterns/DiagonalBLoose.js +114 -200
  9. package/dist/patterns/DiagonalBRegular.js +70 -128
  10. package/dist/patterns/DotDense.js +25 -51
  11. package/dist/patterns/DotLoose.js +68 -126
  12. package/dist/patterns/DotRegular.js +25 -51
  13. package/dist/patterns/ExDense.js +47 -89
  14. package/dist/patterns/ExLoose.js +47 -89
  15. package/dist/patterns/ExRegular.js +47 -89
  16. package/dist/patterns/FlowerDense.js +41 -79
  17. package/dist/patterns/FlowerLoose.js +41 -79
  18. package/dist/patterns/FlowerRegular.js +41 -79
  19. package/dist/patterns/GridDense.js +40 -78
  20. package/dist/patterns/GridLoose.js +40 -78
  21. package/dist/patterns/GridRegular.js +40 -78
  22. package/dist/patterns/Herringbone.js +58 -108
  23. package/dist/patterns/RainDense.js +30 -60
  24. package/dist/patterns/RainLoose.js +30 -60
  25. package/dist/patterns/RainRegular.js +30 -60
  26. package/dist/patterns/StripeDense.js +62 -116
  27. package/dist/patterns/StripeLoose.js +194 -344
  28. package/dist/patterns/StripeRegular.js +106 -192
  29. package/dist/props.d.ts +3 -3
  30. package/dist/types.js +0 -1
  31. package/dist/usePatternId.js +2 -2
  32. package/package.json +7 -4
  33. package/.svgo.yml +0 -11
  34. package/CHANGELOG.md +0 -420
  35. package/babel.config.js +0 -12
  36. package/emotion-plugin.js +0 -46
  37. package/index-template.js +0 -10
  38. package/pattern-template.js +0 -30
  39. package/project.json +0 -33
  40. package/svgr.config.js +0 -29
  41. package/tsconfig.json +0 -15
@@ -1,215 +1,129 @@
1
- import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
- var _excluded = ["title", "titleId"];
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
 
4
- var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/DiagonalARegular.tsx",
5
- _this = this;
3
+ 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; }
4
+
5
+ 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; }
6
6
 
7
- import "core-js/modules/es.object.assign.js";
8
7
  import * as React from 'react';
9
8
  import { Svg } from '../props';
10
9
  import { usePatternId } from '../usePatternId';
11
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
12
10
  export var DiagonalARegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Diagonal A Regular' : _ref$title,
15
13
  titleId = _ref.titleId,
16
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ props = _objectWithoutProperties(_ref, ["title", "titleId"]);
17
15
 
18
16
  var patternId = usePatternId('DiagonalARegular');
19
- return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
17
+ return /*#__PURE__*/React.createElement(Svg, _extends({
20
18
  fill: "currentColor",
21
19
  role: "img",
22
20
  "aria-hidden": "true",
23
21
  ref: svgRef,
24
22
  "aria-labelledby": titleId
25
- }, props, {
26
- children: [title ? /*#__PURE__*/_jsxDEV("title", {
27
- id: titleId,
28
- children: title
29
- }, void 0, false, {
30
- fileName: _jsxFileName,
31
- lineNumber: 16,
32
- columnNumber: 18
33
- }, _this) : null, /*#__PURE__*/_jsxDEV("pattern", {
34
- id: patternId,
35
- x: 0,
36
- y: 0,
37
- width: 8,
38
- height: 8,
39
- patternUnits: "userSpaceOnUse",
40
- children: [/*#__PURE__*/_jsxDEV("rect", {
41
- width: 1,
42
- height: 1,
43
- fill: "currentColor"
44
- }, void 0, false, {
45
- fileName: _jsxFileName,
46
- lineNumber: 25,
47
- columnNumber: 11
48
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
49
- x: 6,
50
- y: 2,
51
- width: 1,
52
- height: 1,
53
- fill: "currentColor"
54
- }, void 0, false, {
55
- fileName: _jsxFileName,
56
- lineNumber: 26,
57
- columnNumber: 11
58
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
59
- x: 5,
60
- y: 2,
61
- width: 1,
62
- height: 1,
63
- fill: "currentColor"
64
- }, void 0, false, {
65
- fileName: _jsxFileName,
66
- lineNumber: 27,
67
- columnNumber: 11
68
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
69
- x: 5,
70
- y: 3,
71
- width: 1,
72
- height: 1,
73
- fill: "currentColor"
74
- }, void 0, false, {
75
- fileName: _jsxFileName,
76
- lineNumber: 28,
77
- columnNumber: 11
78
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
79
- x: 4,
80
- y: 3,
81
- width: 1,
82
- height: 1,
83
- fill: "currentColor"
84
- }, void 0, false, {
85
- fileName: _jsxFileName,
86
- lineNumber: 29,
87
- columnNumber: 11
88
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
89
- x: 7,
90
- width: 1,
91
- height: 1,
92
- fill: "currentColor"
93
- }, void 0, false, {
94
- fileName: _jsxFileName,
95
- lineNumber: 30,
96
- columnNumber: 11
97
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
98
- x: 7,
99
- y: 1,
100
- width: 1,
101
- height: 1,
102
- fill: "currentColor"
103
- }, void 0, false, {
104
- fileName: _jsxFileName,
105
- lineNumber: 31,
106
- columnNumber: 11
107
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
108
- x: 6,
109
- y: 1,
110
- width: 1,
111
- height: 1,
112
- fill: "currentColor"
113
- }, void 0, false, {
114
- fileName: _jsxFileName,
115
- lineNumber: 32,
116
- columnNumber: 11
117
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
118
- x: 3,
119
- y: 5,
120
- width: 1,
121
- height: 1,
122
- fill: "currentColor"
123
- }, void 0, false, {
124
- fileName: _jsxFileName,
125
- lineNumber: 33,
126
- columnNumber: 11
127
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
128
- x: 2,
129
- y: 5,
130
- width: 1,
131
- height: 1,
132
- fill: "currentColor"
133
- }, void 0, false, {
134
- fileName: _jsxFileName,
135
- lineNumber: 34,
136
- columnNumber: 11
137
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
138
- x: 2,
139
- y: 6,
140
- width: 1,
141
- height: 1,
142
- fill: "currentColor"
143
- }, void 0, false, {
144
- fileName: _jsxFileName,
145
- lineNumber: 35,
146
- columnNumber: 11
147
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
148
- x: 1,
149
- y: 6,
150
- width: 1,
151
- height: 1,
152
- fill: "currentColor"
153
- }, void 0, false, {
154
- fileName: _jsxFileName,
155
- lineNumber: 36,
156
- columnNumber: 11
157
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
158
- y: 7,
159
- width: 1,
160
- height: 1,
161
- fill: "currentColor"
162
- }, void 0, false, {
163
- fileName: _jsxFileName,
164
- lineNumber: 37,
165
- columnNumber: 11
166
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
167
- x: 1,
168
- y: 7,
169
- width: 1,
170
- height: 1,
171
- fill: "currentColor"
172
- }, void 0, false, {
173
- fileName: _jsxFileName,
174
- lineNumber: 38,
175
- columnNumber: 11
176
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
177
- x: 4,
178
- y: 4,
179
- width: 1,
180
- height: 1,
181
- fill: "currentColor"
182
- }, void 0, false, {
183
- fileName: _jsxFileName,
184
- lineNumber: 39,
185
- columnNumber: 11
186
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
187
- x: 3,
188
- y: 4,
189
- width: 1,
190
- height: 1,
191
- fill: "currentColor"
192
- }, void 0, false, {
193
- fileName: _jsxFileName,
194
- lineNumber: 40,
195
- columnNumber: 11
196
- }, _this)]
197
- }, void 0, true, {
198
- fileName: _jsxFileName,
199
- lineNumber: 17,
200
- columnNumber: 9
201
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
202
- width: "100%",
203
- height: "100%",
204
- fill: "url(#" + patternId + ")"
205
- }, void 0, false, {
206
- fileName: _jsxFileName,
207
- lineNumber: 42,
208
- columnNumber: 9
209
- }, _this)]
210
- }), void 0, true, {
211
- fileName: _jsxFileName,
212
- lineNumber: 8,
213
- columnNumber: 7
214
- }, _this);
23
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
24
+ id: titleId
25
+ }, title) : null, /*#__PURE__*/React.createElement("pattern", {
26
+ id: patternId,
27
+ x: 0,
28
+ y: 0,
29
+ width: 8,
30
+ height: 8,
31
+ patternUnits: "userSpaceOnUse"
32
+ }, /*#__PURE__*/React.createElement("rect", {
33
+ width: 1,
34
+ height: 1,
35
+ fill: "currentColor"
36
+ }), /*#__PURE__*/React.createElement("rect", {
37
+ x: 6,
38
+ y: 2,
39
+ width: 1,
40
+ height: 1,
41
+ fill: "currentColor"
42
+ }), /*#__PURE__*/React.createElement("rect", {
43
+ x: 5,
44
+ y: 2,
45
+ width: 1,
46
+ height: 1,
47
+ fill: "currentColor"
48
+ }), /*#__PURE__*/React.createElement("rect", {
49
+ x: 5,
50
+ y: 3,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }), /*#__PURE__*/React.createElement("rect", {
55
+ x: 4,
56
+ y: 3,
57
+ width: 1,
58
+ height: 1,
59
+ fill: "currentColor"
60
+ }), /*#__PURE__*/React.createElement("rect", {
61
+ x: 7,
62
+ width: 1,
63
+ height: 1,
64
+ fill: "currentColor"
65
+ }), /*#__PURE__*/React.createElement("rect", {
66
+ x: 7,
67
+ y: 1,
68
+ width: 1,
69
+ height: 1,
70
+ fill: "currentColor"
71
+ }), /*#__PURE__*/React.createElement("rect", {
72
+ x: 6,
73
+ y: 1,
74
+ width: 1,
75
+ height: 1,
76
+ fill: "currentColor"
77
+ }), /*#__PURE__*/React.createElement("rect", {
78
+ x: 3,
79
+ y: 5,
80
+ width: 1,
81
+ height: 1,
82
+ fill: "currentColor"
83
+ }), /*#__PURE__*/React.createElement("rect", {
84
+ x: 2,
85
+ y: 5,
86
+ width: 1,
87
+ height: 1,
88
+ fill: "currentColor"
89
+ }), /*#__PURE__*/React.createElement("rect", {
90
+ x: 2,
91
+ y: 6,
92
+ width: 1,
93
+ height: 1,
94
+ fill: "currentColor"
95
+ }), /*#__PURE__*/React.createElement("rect", {
96
+ x: 1,
97
+ y: 6,
98
+ width: 1,
99
+ height: 1,
100
+ fill: "currentColor"
101
+ }), /*#__PURE__*/React.createElement("rect", {
102
+ y: 7,
103
+ width: 1,
104
+ height: 1,
105
+ fill: "currentColor"
106
+ }), /*#__PURE__*/React.createElement("rect", {
107
+ x: 1,
108
+ y: 7,
109
+ width: 1,
110
+ height: 1,
111
+ fill: "currentColor"
112
+ }), /*#__PURE__*/React.createElement("rect", {
113
+ x: 4,
114
+ y: 4,
115
+ width: 1,
116
+ height: 1,
117
+ fill: "currentColor"
118
+ }), /*#__PURE__*/React.createElement("rect", {
119
+ x: 3,
120
+ y: 4,
121
+ width: 1,
122
+ height: 1,
123
+ fill: "currentColor"
124
+ })), /*#__PURE__*/React.createElement("rect", {
125
+ width: "100%",
126
+ height: "100%",
127
+ fill: "url(#".concat(patternId, ")")
128
+ }));
215
129
  });
@@ -1,105 +1,63 @@
1
- import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
- var _excluded = ["title", "titleId"];
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
 
4
- var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/DiagonalBDense.tsx",
5
- _this = this;
3
+ 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; }
4
+
5
+ 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; }
6
6
 
7
- import "core-js/modules/es.object.assign.js";
8
7
  import * as React from 'react';
9
8
  import { Svg } from '../props';
10
9
  import { usePatternId } from '../usePatternId';
11
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
12
10
  export var DiagonalBDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Diagonal B Dense' : _ref$title,
15
13
  titleId = _ref.titleId,
16
- props = _objectWithoutPropertiesLoose(_ref, _excluded);
14
+ props = _objectWithoutProperties(_ref, ["title", "titleId"]);
17
15
 
18
16
  var patternId = usePatternId('DiagonalBDense');
19
- return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
17
+ return /*#__PURE__*/React.createElement(Svg, _extends({
20
18
  fill: "currentColor",
21
19
  role: "img",
22
20
  "aria-hidden": "true",
23
21
  ref: svgRef,
24
22
  "aria-labelledby": titleId
25
- }, props, {
26
- children: [title ? /*#__PURE__*/_jsxDEV("title", {
27
- id: titleId,
28
- children: title
29
- }, void 0, false, {
30
- fileName: _jsxFileName,
31
- lineNumber: 16,
32
- columnNumber: 18
33
- }, _this) : null, /*#__PURE__*/_jsxDEV("pattern", {
34
- id: patternId,
35
- x: 0,
36
- y: 0,
37
- width: 4,
38
- height: 4,
39
- patternUnits: "userSpaceOnUse",
40
- children: [/*#__PURE__*/_jsxDEV("rect", {
41
- width: 4,
42
- height: 4,
43
- fill: "transparent"
44
- }, void 0, false, {
45
- fileName: _jsxFileName,
46
- lineNumber: 25,
47
- columnNumber: 11
48
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
49
- y: 3,
50
- width: 1,
51
- height: 1,
52
- fill: "currentColor"
53
- }, void 0, false, {
54
- fileName: _jsxFileName,
55
- lineNumber: 26,
56
- columnNumber: 11
57
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
58
- x: 1,
59
- y: 2,
60
- width: 1,
61
- height: 1,
62
- fill: "currentColor"
63
- }, void 0, false, {
64
- fileName: _jsxFileName,
65
- lineNumber: 27,
66
- columnNumber: 11
67
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
68
- x: 2,
69
- y: 1,
70
- width: 1,
71
- height: 1,
72
- fill: "currentColor"
73
- }, void 0, false, {
74
- fileName: _jsxFileName,
75
- lineNumber: 28,
76
- columnNumber: 11
77
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
78
- x: 3,
79
- width: 1,
80
- height: 1,
81
- fill: "currentColor"
82
- }, void 0, false, {
83
- fileName: _jsxFileName,
84
- lineNumber: 29,
85
- columnNumber: 11
86
- }, _this)]
87
- }, void 0, true, {
88
- fileName: _jsxFileName,
89
- lineNumber: 17,
90
- columnNumber: 9
91
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
92
- width: "100%",
93
- height: "100%",
94
- fill: "url(#" + patternId + ")"
95
- }, void 0, false, {
96
- fileName: _jsxFileName,
97
- lineNumber: 31,
98
- columnNumber: 9
99
- }, _this)]
100
- }), void 0, true, {
101
- fileName: _jsxFileName,
102
- lineNumber: 8,
103
- columnNumber: 7
104
- }, _this);
23
+ }, props), title ? /*#__PURE__*/React.createElement("title", {
24
+ id: titleId
25
+ }, title) : null, /*#__PURE__*/React.createElement("pattern", {
26
+ id: patternId,
27
+ x: 0,
28
+ y: 0,
29
+ width: 4,
30
+ height: 4,
31
+ patternUnits: "userSpaceOnUse"
32
+ }, /*#__PURE__*/React.createElement("rect", {
33
+ width: 4,
34
+ height: 4,
35
+ fill: "transparent"
36
+ }), /*#__PURE__*/React.createElement("rect", {
37
+ y: 3,
38
+ width: 1,
39
+ height: 1,
40
+ fill: "currentColor"
41
+ }), /*#__PURE__*/React.createElement("rect", {
42
+ x: 1,
43
+ y: 2,
44
+ width: 1,
45
+ height: 1,
46
+ fill: "currentColor"
47
+ }), /*#__PURE__*/React.createElement("rect", {
48
+ x: 2,
49
+ y: 1,
50
+ width: 1,
51
+ height: 1,
52
+ fill: "currentColor"
53
+ }), /*#__PURE__*/React.createElement("rect", {
54
+ x: 3,
55
+ width: 1,
56
+ height: 1,
57
+ fill: "currentColor"
58
+ })), /*#__PURE__*/React.createElement("rect", {
59
+ width: "100%",
60
+ height: "100%",
61
+ fill: "url(#".concat(patternId, ")")
62
+ }));
105
63
  });