@codecademy/gamut-patterns 0.8.16-alpha.61dd4b.0 → 0.8.16-alpha.7039ca.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.
@@ -1,8 +1,4 @@
1
- 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; }
2
-
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
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
6
2
 
7
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; }
8
4
 
@@ -11,8 +7,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
11
7
  import * as React from 'react';
12
8
  import { Svg } from '../props';
13
9
  import { usePatternId } from '../usePatternId';
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- import { jsxs as _jsxs } from "react/jsx-runtime";
16
10
  export var DiagonalALoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
17
11
  var _ref$title = _ref.title,
18
12
  title = _ref$title === void 0 ? 'Diagonal A Loose' : _ref$title,
@@ -20,216 +14,212 @@ export var DiagonalALoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef
20
14
  props = _objectWithoutProperties(_ref, ["title", "titleId"]);
21
15
 
22
16
  var patternId = usePatternId('DiagonalALoose');
23
- return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
17
+ return /*#__PURE__*/React.createElement(Svg, _extends({
24
18
  fill: "currentColor",
25
19
  role: "img",
26
20
  "aria-hidden": "true",
27
21
  ref: svgRef,
28
22
  "aria-labelledby": titleId
29
- }, props), {}, {
30
- children: [title ? /*#__PURE__*/_jsx("title", {
31
- id: titleId,
32
- children: title
33
- }) : null, /*#__PURE__*/_jsxs("pattern", {
34
- id: patternId,
35
- x: 0,
36
- y: 0,
37
- width: 16,
38
- height: 16,
39
- patternUnits: "userSpaceOnUse",
40
- children: [/*#__PURE__*/_jsx("rect", {
41
- width: 1,
42
- height: 1,
43
- fill: "currentColor"
44
- }), /*#__PURE__*/_jsx("rect", {
45
- x: 14,
46
- y: 2,
47
- width: 1,
48
- height: 1,
49
- fill: "currentColor"
50
- }), /*#__PURE__*/_jsx("rect", {
51
- x: 13,
52
- y: 2,
53
- width: 1,
54
- height: 1,
55
- fill: "currentColor"
56
- }), /*#__PURE__*/_jsx("rect", {
57
- x: 13,
58
- y: 3,
59
- width: 1,
60
- height: 1,
61
- fill: "currentColor"
62
- }), /*#__PURE__*/_jsx("rect", {
63
- x: 12,
64
- y: 3,
65
- width: 1,
66
- height: 1,
67
- fill: "currentColor"
68
- }), /*#__PURE__*/_jsx("rect", {
69
- x: 15,
70
- width: 1,
71
- height: 1,
72
- fill: "currentColor"
73
- }), /*#__PURE__*/_jsx("rect", {
74
- x: 15,
75
- y: 1,
76
- width: 1,
77
- height: 1,
78
- fill: "currentColor"
79
- }), /*#__PURE__*/_jsx("rect", {
80
- x: 14,
81
- y: 1,
82
- width: 1,
83
- height: 1,
84
- fill: "currentColor"
85
- }), /*#__PURE__*/_jsx("rect", {
86
- x: 11,
87
- y: 5,
88
- width: 1,
89
- height: 1,
90
- fill: "currentColor"
91
- }), /*#__PURE__*/_jsx("rect", {
92
- x: 10,
93
- y: 5,
94
- width: 1,
95
- height: 1,
96
- fill: "currentColor"
97
- }), /*#__PURE__*/_jsx("rect", {
98
- x: 10,
99
- y: 6,
100
- width: 1,
101
- height: 1,
102
- fill: "currentColor"
103
- }), /*#__PURE__*/_jsx("rect", {
104
- x: 9,
105
- y: 6,
106
- width: 1,
107
- height: 1,
108
- fill: "currentColor"
109
- }), /*#__PURE__*/_jsx("rect", {
110
- x: 8,
111
- y: 7,
112
- width: 1,
113
- height: 1,
114
- fill: "currentColor"
115
- }), /*#__PURE__*/_jsx("rect", {
116
- x: 9,
117
- y: 7,
118
- width: 1,
119
- height: 1,
120
- fill: "currentColor"
121
- }), /*#__PURE__*/_jsx("rect", {
122
- x: 12,
123
- y: 4,
124
- width: 1,
125
- height: 1,
126
- fill: "currentColor"
127
- }), /*#__PURE__*/_jsx("rect", {
128
- x: 11,
129
- y: 4,
130
- width: 1,
131
- height: 1,
132
- fill: "currentColor"
133
- }), /*#__PURE__*/_jsx("rect", {
134
- x: 7,
135
- y: 9,
136
- width: 1,
137
- height: 1,
138
- fill: "currentColor"
139
- }), /*#__PURE__*/_jsx("rect", {
140
- x: 6,
141
- y: 9,
142
- width: 1,
143
- height: 1,
144
- fill: "currentColor"
145
- }), /*#__PURE__*/_jsx("rect", {
146
- x: 6,
147
- y: 10,
148
- width: 1,
149
- height: 1,
150
- fill: "currentColor"
151
- }), /*#__PURE__*/_jsx("rect", {
152
- x: 5,
153
- y: 10,
154
- width: 1,
155
- height: 1,
156
- fill: "currentColor"
157
- }), /*#__PURE__*/_jsx("rect", {
158
- x: 8,
159
- y: 8,
160
- width: 1,
161
- height: 1,
162
- fill: "currentColor"
163
- }), /*#__PURE__*/_jsx("rect", {
164
- x: 7,
165
- y: 8,
166
- width: 1,
167
- height: 1,
168
- fill: "currentColor"
169
- }), /*#__PURE__*/_jsx("rect", {
170
- x: 4,
171
- y: 12,
172
- width: 1,
173
- height: 1,
174
- fill: "currentColor"
175
- }), /*#__PURE__*/_jsx("rect", {
176
- x: 3,
177
- y: 12,
178
- width: 1,
179
- height: 1,
180
- fill: "currentColor"
181
- }), /*#__PURE__*/_jsx("rect", {
182
- x: 3,
183
- y: 13,
184
- width: 1,
185
- height: 1,
186
- fill: "currentColor"
187
- }), /*#__PURE__*/_jsx("rect", {
188
- x: 2,
189
- y: 13,
190
- width: 1,
191
- height: 1,
192
- fill: "currentColor"
193
- }), /*#__PURE__*/_jsx("rect", {
194
- x: 1,
195
- y: 14,
196
- width: 1,
197
- height: 1,
198
- fill: "currentColor"
199
- }), /*#__PURE__*/_jsx("rect", {
200
- x: 2,
201
- y: 14,
202
- width: 1,
203
- height: 1,
204
- fill: "currentColor"
205
- }), /*#__PURE__*/_jsx("rect", {
206
- y: 15,
207
- width: 1,
208
- height: 1,
209
- fill: "currentColor"
210
- }), /*#__PURE__*/_jsx("rect", {
211
- x: 1,
212
- y: 15,
213
- width: 1,
214
- height: 1,
215
- fill: "currentColor"
216
- }), /*#__PURE__*/_jsx("rect", {
217
- x: 5,
218
- y: 11,
219
- width: 1,
220
- height: 1,
221
- fill: "currentColor"
222
- }), /*#__PURE__*/_jsx("rect", {
223
- x: 4,
224
- y: 11,
225
- width: 1,
226
- height: 1,
227
- fill: "currentColor"
228
- })]
229
- }), /*#__PURE__*/_jsx("rect", {
230
- width: "100%",
231
- height: "100%",
232
- fill: "url(#".concat(patternId, ")")
233
- })]
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: 16,
30
+ height: 16,
31
+ patternUnits: "userSpaceOnUse"
32
+ }, /*#__PURE__*/React.createElement("rect", {
33
+ width: 1,
34
+ height: 1,
35
+ fill: "currentColor"
36
+ }), /*#__PURE__*/React.createElement("rect", {
37
+ x: 14,
38
+ y: 2,
39
+ width: 1,
40
+ height: 1,
41
+ fill: "currentColor"
42
+ }), /*#__PURE__*/React.createElement("rect", {
43
+ x: 13,
44
+ y: 2,
45
+ width: 1,
46
+ height: 1,
47
+ fill: "currentColor"
48
+ }), /*#__PURE__*/React.createElement("rect", {
49
+ x: 13,
50
+ y: 3,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }), /*#__PURE__*/React.createElement("rect", {
55
+ x: 12,
56
+ y: 3,
57
+ width: 1,
58
+ height: 1,
59
+ fill: "currentColor"
60
+ }), /*#__PURE__*/React.createElement("rect", {
61
+ x: 15,
62
+ width: 1,
63
+ height: 1,
64
+ fill: "currentColor"
65
+ }), /*#__PURE__*/React.createElement("rect", {
66
+ x: 15,
67
+ y: 1,
68
+ width: 1,
69
+ height: 1,
70
+ fill: "currentColor"
71
+ }), /*#__PURE__*/React.createElement("rect", {
72
+ x: 14,
73
+ y: 1,
74
+ width: 1,
75
+ height: 1,
76
+ fill: "currentColor"
77
+ }), /*#__PURE__*/React.createElement("rect", {
78
+ x: 11,
79
+ y: 5,
80
+ width: 1,
81
+ height: 1,
82
+ fill: "currentColor"
83
+ }), /*#__PURE__*/React.createElement("rect", {
84
+ x: 10,
85
+ y: 5,
86
+ width: 1,
87
+ height: 1,
88
+ fill: "currentColor"
89
+ }), /*#__PURE__*/React.createElement("rect", {
90
+ x: 10,
91
+ y: 6,
92
+ width: 1,
93
+ height: 1,
94
+ fill: "currentColor"
95
+ }), /*#__PURE__*/React.createElement("rect", {
96
+ x: 9,
97
+ y: 6,
98
+ width: 1,
99
+ height: 1,
100
+ fill: "currentColor"
101
+ }), /*#__PURE__*/React.createElement("rect", {
102
+ x: 8,
103
+ y: 7,
104
+ width: 1,
105
+ height: 1,
106
+ fill: "currentColor"
107
+ }), /*#__PURE__*/React.createElement("rect", {
108
+ x: 9,
109
+ y: 7,
110
+ width: 1,
111
+ height: 1,
112
+ fill: "currentColor"
113
+ }), /*#__PURE__*/React.createElement("rect", {
114
+ x: 12,
115
+ y: 4,
116
+ width: 1,
117
+ height: 1,
118
+ fill: "currentColor"
119
+ }), /*#__PURE__*/React.createElement("rect", {
120
+ x: 11,
121
+ y: 4,
122
+ width: 1,
123
+ height: 1,
124
+ fill: "currentColor"
125
+ }), /*#__PURE__*/React.createElement("rect", {
126
+ x: 7,
127
+ y: 9,
128
+ width: 1,
129
+ height: 1,
130
+ fill: "currentColor"
131
+ }), /*#__PURE__*/React.createElement("rect", {
132
+ x: 6,
133
+ y: 9,
134
+ width: 1,
135
+ height: 1,
136
+ fill: "currentColor"
137
+ }), /*#__PURE__*/React.createElement("rect", {
138
+ x: 6,
139
+ y: 10,
140
+ width: 1,
141
+ height: 1,
142
+ fill: "currentColor"
143
+ }), /*#__PURE__*/React.createElement("rect", {
144
+ x: 5,
145
+ y: 10,
146
+ width: 1,
147
+ height: 1,
148
+ fill: "currentColor"
149
+ }), /*#__PURE__*/React.createElement("rect", {
150
+ x: 8,
151
+ y: 8,
152
+ width: 1,
153
+ height: 1,
154
+ fill: "currentColor"
155
+ }), /*#__PURE__*/React.createElement("rect", {
156
+ x: 7,
157
+ y: 8,
158
+ width: 1,
159
+ height: 1,
160
+ fill: "currentColor"
161
+ }), /*#__PURE__*/React.createElement("rect", {
162
+ x: 4,
163
+ y: 12,
164
+ width: 1,
165
+ height: 1,
166
+ fill: "currentColor"
167
+ }), /*#__PURE__*/React.createElement("rect", {
168
+ x: 3,
169
+ y: 12,
170
+ width: 1,
171
+ height: 1,
172
+ fill: "currentColor"
173
+ }), /*#__PURE__*/React.createElement("rect", {
174
+ x: 3,
175
+ y: 13,
176
+ width: 1,
177
+ height: 1,
178
+ fill: "currentColor"
179
+ }), /*#__PURE__*/React.createElement("rect", {
180
+ x: 2,
181
+ y: 13,
182
+ width: 1,
183
+ height: 1,
184
+ fill: "currentColor"
185
+ }), /*#__PURE__*/React.createElement("rect", {
186
+ x: 1,
187
+ y: 14,
188
+ width: 1,
189
+ height: 1,
190
+ fill: "currentColor"
191
+ }), /*#__PURE__*/React.createElement("rect", {
192
+ x: 2,
193
+ y: 14,
194
+ width: 1,
195
+ height: 1,
196
+ fill: "currentColor"
197
+ }), /*#__PURE__*/React.createElement("rect", {
198
+ y: 15,
199
+ width: 1,
200
+ height: 1,
201
+ fill: "currentColor"
202
+ }), /*#__PURE__*/React.createElement("rect", {
203
+ x: 1,
204
+ y: 15,
205
+ width: 1,
206
+ height: 1,
207
+ fill: "currentColor"
208
+ }), /*#__PURE__*/React.createElement("rect", {
209
+ x: 5,
210
+ y: 11,
211
+ width: 1,
212
+ height: 1,
213
+ fill: "currentColor"
214
+ }), /*#__PURE__*/React.createElement("rect", {
215
+ x: 4,
216
+ y: 11,
217
+ width: 1,
218
+ height: 1,
219
+ fill: "currentColor"
220
+ })), /*#__PURE__*/React.createElement("rect", {
221
+ width: "100%",
222
+ height: "100%",
223
+ fill: "url(#".concat(patternId, ")")
234
224
  }));
235
225
  });