@codecademy/gamut-patterns 1.0.0-alpha.fb02a7.0 → 67.0.0-alpha.387605.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/LICENSE +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/patterns/CheckerDense.d.ts +3 -0
- package/dist/patterns/CheckerDense.js +54 -0
- package/dist/patterns/CheckerLoose.d.ts +3 -0
- package/dist/patterns/CheckerLoose.js +54 -0
- package/dist/patterns/CheckerRegular.d.ts +3 -0
- package/dist/patterns/CheckerRegular.js +54 -0
- package/dist/patterns/DiagonalADense.d.ts +3 -0
- package/dist/patterns/DiagonalADense.js +88 -0
- package/dist/patterns/DiagonalALoose.d.ts +3 -0
- package/dist/patterns/DiagonalALoose.js +232 -0
- package/dist/patterns/DiagonalARegular.d.ts +3 -0
- package/dist/patterns/DiagonalARegular.js +136 -0
- package/dist/patterns/DiagonalBDense.d.ts +3 -0
- package/dist/patterns/DiagonalBDense.js +70 -0
- package/dist/patterns/DiagonalBLoose.d.ts +3 -0
- package/dist/patterns/DiagonalBLoose.js +138 -0
- package/dist/patterns/DiagonalBRegular.d.ts +3 -0
- package/dist/patterns/DiagonalBRegular.js +94 -0
- package/dist/patterns/DotDense.d.ts +3 -0
- package/dist/patterns/DotDense.js +49 -0
- package/dist/patterns/DotLoose.d.ts +3 -0
- package/dist/patterns/DotLoose.js +92 -0
- package/dist/patterns/DotRegular.d.ts +3 -0
- package/dist/patterns/DotRegular.js +49 -0
- package/dist/patterns/ExDense.d.ts +3 -0
- package/dist/patterns/ExDense.js +71 -0
- package/dist/patterns/ExLoose.d.ts +3 -0
- package/dist/patterns/ExLoose.js +71 -0
- package/dist/patterns/ExRegular.d.ts +3 -0
- package/dist/patterns/ExRegular.js +71 -0
- package/dist/patterns/FlowerDense.d.ts +3 -0
- package/dist/patterns/FlowerDense.js +65 -0
- package/dist/patterns/FlowerLoose.d.ts +3 -0
- package/dist/patterns/FlowerLoose.js +65 -0
- package/dist/patterns/FlowerRegular.d.ts +3 -0
- package/dist/patterns/FlowerRegular.js +65 -0
- package/dist/patterns/GridDense.d.ts +3 -0
- package/dist/patterns/GridDense.js +64 -0
- package/dist/patterns/GridLoose.d.ts +3 -0
- package/dist/patterns/GridLoose.js +64 -0
- package/dist/patterns/GridRegular.d.ts +3 -0
- package/dist/patterns/GridRegular.js +64 -0
- package/dist/patterns/Herringbone.d.ts +3 -0
- package/dist/patterns/Herringbone.js +82 -0
- package/dist/patterns/RainDense.d.ts +3 -0
- package/dist/patterns/RainDense.js +54 -0
- package/dist/patterns/RainLoose.d.ts +3 -0
- package/dist/patterns/RainLoose.js +54 -0
- package/dist/patterns/RainRegular.d.ts +3 -0
- package/dist/patterns/RainRegular.js +54 -0
- package/dist/patterns/StripeDense.d.ts +3 -0
- package/dist/patterns/StripeDense.js +86 -0
- package/dist/patterns/StripeLoose.d.ts +3 -0
- package/dist/patterns/StripeLoose.js +218 -0
- package/dist/patterns/StripeRegular.d.ts +3 -0
- package/dist/patterns/StripeRegular.js +130 -0
- package/dist/patterns/index.d.ts +28 -0
- package/dist/patterns/index.js +28 -0
- package/dist/props.d.ts +193 -0
- package/dist/props.js +9 -0
- package/dist/svg/CheckerDense.svg +14 -0
- package/dist/svg/CheckerLoose.svg +14 -0
- package/dist/svg/CheckerRegular.svg +14 -0
- package/dist/svg/DiagonalADense.svg +20 -0
- package/dist/svg/DiagonalALoose.svg +44 -0
- package/dist/svg/DiagonalARegular.svg +28 -0
- package/dist/svg/DiagonalBDense.svg +24 -0
- package/dist/svg/DiagonalBLoose.svg +28 -0
- package/dist/svg/DiagonalBRegular.svg +28 -0
- package/dist/svg/DotDense.svg +13 -0
- package/dist/svg/DotLoose.svg +40 -0
- package/dist/svg/DotRegular.svg +13 -0
- package/dist/svg/ExDense.svg +17 -0
- package/dist/svg/ExLoose.svg +17 -0
- package/dist/svg/ExRegular.svg +17 -0
- package/dist/svg/FlowerDense.svg +16 -0
- package/dist/svg/FlowerLoose.svg +16 -0
- package/dist/svg/FlowerRegular.svg +16 -0
- package/dist/svg/GridDense.svg +16 -0
- package/dist/svg/GridLoose.svg +16 -0
- package/dist/svg/GridRegular.svg +16 -0
- package/dist/svg/Herringbone.svg +19 -0
- package/dist/svg/RainDense.svg +14 -0
- package/dist/svg/RainLoose.svg +14 -0
- package/dist/svg/RainRegular.svg +14 -0
- package/dist/svg/StripeDense.svg +20 -0
- package/dist/svg/StripeLoose.svg +44 -0
- package/dist/svg/StripeRegular.svg +28 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/usePatternId.d.ts +1 -0
- package/dist/usePatternId.js +8 -0
- package/package.json +26 -31
- package/CHANGELOG.md +0 -15
|
@@ -0,0 +1,218 @@
|
|
|
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 { usePatternId } from '../usePatternId';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var StripeLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
15
|
+
var _ref$title = _ref.title,
|
|
16
|
+
title = _ref$title === void 0 ? 'Stripe Loose' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
19
|
+
var patternId = usePatternId('StripeLoose');
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
role: "img",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
ref: svgRef,
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), {}, {
|
|
27
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
28
|
+
id: titleId,
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
31
|
+
id: patternId,
|
|
32
|
+
x: 0,
|
|
33
|
+
y: 0,
|
|
34
|
+
width: 16,
|
|
35
|
+
height: 16,
|
|
36
|
+
patternUnits: "userSpaceOnUse",
|
|
37
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
38
|
+
x: 1,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
width: 1,
|
|
44
|
+
height: 1,
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
47
|
+
x: 2,
|
|
48
|
+
width: 1,
|
|
49
|
+
height: 1,
|
|
50
|
+
fill: "currentColor"
|
|
51
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
52
|
+
x: 3,
|
|
53
|
+
width: 1,
|
|
54
|
+
height: 1,
|
|
55
|
+
fill: "currentColor"
|
|
56
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
57
|
+
x: 1,
|
|
58
|
+
y: 8,
|
|
59
|
+
width: 1,
|
|
60
|
+
height: 1,
|
|
61
|
+
fill: "currentColor"
|
|
62
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
63
|
+
y: 8,
|
|
64
|
+
width: 1,
|
|
65
|
+
height: 1,
|
|
66
|
+
fill: "currentColor"
|
|
67
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
68
|
+
x: 2,
|
|
69
|
+
y: 8,
|
|
70
|
+
width: 1,
|
|
71
|
+
height: 1,
|
|
72
|
+
fill: "currentColor"
|
|
73
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
74
|
+
x: 3,
|
|
75
|
+
y: 8,
|
|
76
|
+
width: 1,
|
|
77
|
+
height: 1,
|
|
78
|
+
fill: "currentColor"
|
|
79
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
80
|
+
x: 5,
|
|
81
|
+
width: 1,
|
|
82
|
+
height: 1,
|
|
83
|
+
fill: "currentColor"
|
|
84
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
85
|
+
x: 4,
|
|
86
|
+
width: 1,
|
|
87
|
+
height: 1,
|
|
88
|
+
fill: "currentColor"
|
|
89
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
90
|
+
x: 6,
|
|
91
|
+
width: 1,
|
|
92
|
+
height: 1,
|
|
93
|
+
fill: "currentColor"
|
|
94
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
95
|
+
x: 7,
|
|
96
|
+
width: 1,
|
|
97
|
+
height: 1,
|
|
98
|
+
fill: "currentColor"
|
|
99
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
100
|
+
x: 5,
|
|
101
|
+
y: 8,
|
|
102
|
+
width: 1,
|
|
103
|
+
height: 1,
|
|
104
|
+
fill: "currentColor"
|
|
105
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
106
|
+
x: 4,
|
|
107
|
+
y: 8,
|
|
108
|
+
width: 1,
|
|
109
|
+
height: 1,
|
|
110
|
+
fill: "currentColor"
|
|
111
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
112
|
+
x: 6,
|
|
113
|
+
y: 8,
|
|
114
|
+
width: 1,
|
|
115
|
+
height: 1,
|
|
116
|
+
fill: "currentColor"
|
|
117
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
118
|
+
x: 7,
|
|
119
|
+
y: 8,
|
|
120
|
+
width: 1,
|
|
121
|
+
height: 1,
|
|
122
|
+
fill: "currentColor"
|
|
123
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
124
|
+
x: 9,
|
|
125
|
+
width: 1,
|
|
126
|
+
height: 1,
|
|
127
|
+
fill: "currentColor"
|
|
128
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
129
|
+
x: 8,
|
|
130
|
+
width: 1,
|
|
131
|
+
height: 1,
|
|
132
|
+
fill: "currentColor"
|
|
133
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
134
|
+
x: 10,
|
|
135
|
+
width: 1,
|
|
136
|
+
height: 1,
|
|
137
|
+
fill: "currentColor"
|
|
138
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
139
|
+
x: 11,
|
|
140
|
+
width: 1,
|
|
141
|
+
height: 1,
|
|
142
|
+
fill: "currentColor"
|
|
143
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
144
|
+
x: 9,
|
|
145
|
+
y: 8,
|
|
146
|
+
width: 1,
|
|
147
|
+
height: 1,
|
|
148
|
+
fill: "currentColor"
|
|
149
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
150
|
+
x: 8,
|
|
151
|
+
y: 8,
|
|
152
|
+
width: 1,
|
|
153
|
+
height: 1,
|
|
154
|
+
fill: "currentColor"
|
|
155
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
156
|
+
x: 10,
|
|
157
|
+
y: 8,
|
|
158
|
+
width: 1,
|
|
159
|
+
height: 1,
|
|
160
|
+
fill: "currentColor"
|
|
161
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
162
|
+
x: 11,
|
|
163
|
+
y: 8,
|
|
164
|
+
width: 1,
|
|
165
|
+
height: 1,
|
|
166
|
+
fill: "currentColor"
|
|
167
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
168
|
+
x: 13,
|
|
169
|
+
width: 1,
|
|
170
|
+
height: 1,
|
|
171
|
+
fill: "currentColor"
|
|
172
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
173
|
+
x: 12,
|
|
174
|
+
width: 1,
|
|
175
|
+
height: 1,
|
|
176
|
+
fill: "currentColor"
|
|
177
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
178
|
+
x: 14,
|
|
179
|
+
width: 1,
|
|
180
|
+
height: 1,
|
|
181
|
+
fill: "currentColor"
|
|
182
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
183
|
+
x: 15,
|
|
184
|
+
width: 1,
|
|
185
|
+
height: 1,
|
|
186
|
+
fill: "currentColor"
|
|
187
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
188
|
+
x: 13,
|
|
189
|
+
y: 8,
|
|
190
|
+
width: 1,
|
|
191
|
+
height: 1,
|
|
192
|
+
fill: "currentColor"
|
|
193
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
194
|
+
x: 12,
|
|
195
|
+
y: 8,
|
|
196
|
+
width: 1,
|
|
197
|
+
height: 1,
|
|
198
|
+
fill: "currentColor"
|
|
199
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
200
|
+
x: 14,
|
|
201
|
+
y: 8,
|
|
202
|
+
width: 1,
|
|
203
|
+
height: 1,
|
|
204
|
+
fill: "currentColor"
|
|
205
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
206
|
+
x: 15,
|
|
207
|
+
y: 8,
|
|
208
|
+
width: 1,
|
|
209
|
+
height: 1,
|
|
210
|
+
fill: "currentColor"
|
|
211
|
+
})]
|
|
212
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
213
|
+
width: "100%",
|
|
214
|
+
height: "100%",
|
|
215
|
+
fill: "url(#".concat(patternId, ")")
|
|
216
|
+
})]
|
|
217
|
+
}));
|
|
218
|
+
});
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { usePatternId } from '../usePatternId';
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var StripeRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
15
|
+
var _ref$title = _ref.title,
|
|
16
|
+
title = _ref$title === void 0 ? 'Stripe Regular' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
19
|
+
var patternId = usePatternId('StripeRegular');
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
role: "img",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
ref: svgRef,
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), {}, {
|
|
27
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
28
|
+
id: titleId,
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
31
|
+
id: patternId,
|
|
32
|
+
x: 0,
|
|
33
|
+
y: 0,
|
|
34
|
+
width: 8,
|
|
35
|
+
height: 8,
|
|
36
|
+
patternUnits: "userSpaceOnUse",
|
|
37
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
38
|
+
x: 1,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
width: 1,
|
|
44
|
+
height: 1,
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
47
|
+
x: 2,
|
|
48
|
+
width: 1,
|
|
49
|
+
height: 1,
|
|
50
|
+
fill: "currentColor"
|
|
51
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
52
|
+
x: 3,
|
|
53
|
+
width: 1,
|
|
54
|
+
height: 1,
|
|
55
|
+
fill: "currentColor"
|
|
56
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
57
|
+
x: 1,
|
|
58
|
+
y: 4,
|
|
59
|
+
width: 1,
|
|
60
|
+
height: 1,
|
|
61
|
+
fill: "currentColor"
|
|
62
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
63
|
+
y: 4,
|
|
64
|
+
width: 1,
|
|
65
|
+
height: 1,
|
|
66
|
+
fill: "currentColor"
|
|
67
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
68
|
+
x: 2,
|
|
69
|
+
y: 4,
|
|
70
|
+
width: 1,
|
|
71
|
+
height: 1,
|
|
72
|
+
fill: "currentColor"
|
|
73
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
74
|
+
x: 3,
|
|
75
|
+
y: 4,
|
|
76
|
+
width: 1,
|
|
77
|
+
height: 1,
|
|
78
|
+
fill: "currentColor"
|
|
79
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
80
|
+
x: 5,
|
|
81
|
+
width: 1,
|
|
82
|
+
height: 1,
|
|
83
|
+
fill: "currentColor"
|
|
84
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
85
|
+
x: 4,
|
|
86
|
+
width: 1,
|
|
87
|
+
height: 1,
|
|
88
|
+
fill: "currentColor"
|
|
89
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
90
|
+
x: 6,
|
|
91
|
+
width: 1,
|
|
92
|
+
height: 1,
|
|
93
|
+
fill: "currentColor"
|
|
94
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
95
|
+
x: 7,
|
|
96
|
+
width: 1,
|
|
97
|
+
height: 1,
|
|
98
|
+
fill: "currentColor"
|
|
99
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
100
|
+
x: 5,
|
|
101
|
+
y: 4,
|
|
102
|
+
width: 1,
|
|
103
|
+
height: 1,
|
|
104
|
+
fill: "currentColor"
|
|
105
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
106
|
+
x: 4,
|
|
107
|
+
y: 4,
|
|
108
|
+
width: 1,
|
|
109
|
+
height: 1,
|
|
110
|
+
fill: "currentColor"
|
|
111
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
112
|
+
x: 6,
|
|
113
|
+
y: 4,
|
|
114
|
+
width: 1,
|
|
115
|
+
height: 1,
|
|
116
|
+
fill: "currentColor"
|
|
117
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
118
|
+
x: 7,
|
|
119
|
+
y: 4,
|
|
120
|
+
width: 1,
|
|
121
|
+
height: 1,
|
|
122
|
+
fill: "currentColor"
|
|
123
|
+
})]
|
|
124
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
125
|
+
width: "100%",
|
|
126
|
+
height: "100%",
|
|
127
|
+
fill: "url(#".concat(patternId, ")")
|
|
128
|
+
})]
|
|
129
|
+
}));
|
|
130
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './CheckerDense';
|
|
2
|
+
export * from './CheckerLoose';
|
|
3
|
+
export * from './CheckerRegular';
|
|
4
|
+
export * from './DiagonalADense';
|
|
5
|
+
export * from './DiagonalALoose';
|
|
6
|
+
export * from './DiagonalARegular';
|
|
7
|
+
export * from './DiagonalBDense';
|
|
8
|
+
export * from './DiagonalBLoose';
|
|
9
|
+
export * from './DiagonalBRegular';
|
|
10
|
+
export * from './DotDense';
|
|
11
|
+
export * from './DotLoose';
|
|
12
|
+
export * from './DotRegular';
|
|
13
|
+
export * from './ExDense';
|
|
14
|
+
export * from './ExLoose';
|
|
15
|
+
export * from './ExRegular';
|
|
16
|
+
export * from './FlowerDense';
|
|
17
|
+
export * from './FlowerLoose';
|
|
18
|
+
export * from './FlowerRegular';
|
|
19
|
+
export * from './GridDense';
|
|
20
|
+
export * from './GridLoose';
|
|
21
|
+
export * from './GridRegular';
|
|
22
|
+
export * from './Herringbone';
|
|
23
|
+
export * from './RainDense';
|
|
24
|
+
export * from './RainLoose';
|
|
25
|
+
export * from './RainRegular';
|
|
26
|
+
export * from './StripeDense';
|
|
27
|
+
export * from './StripeLoose';
|
|
28
|
+
export * from './StripeRegular';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './CheckerDense';
|
|
2
|
+
export * from './CheckerLoose';
|
|
3
|
+
export * from './CheckerRegular';
|
|
4
|
+
export * from './DiagonalADense';
|
|
5
|
+
export * from './DiagonalALoose';
|
|
6
|
+
export * from './DiagonalARegular';
|
|
7
|
+
export * from './DiagonalBDense';
|
|
8
|
+
export * from './DiagonalBLoose';
|
|
9
|
+
export * from './DiagonalBRegular';
|
|
10
|
+
export * from './DotDense';
|
|
11
|
+
export * from './DotLoose';
|
|
12
|
+
export * from './DotRegular';
|
|
13
|
+
export * from './ExDense';
|
|
14
|
+
export * from './ExLoose';
|
|
15
|
+
export * from './ExRegular';
|
|
16
|
+
export * from './FlowerDense';
|
|
17
|
+
export * from './FlowerLoose';
|
|
18
|
+
export * from './FlowerRegular';
|
|
19
|
+
export * from './GridDense';
|
|
20
|
+
export * from './GridLoose';
|
|
21
|
+
export * from './GridRegular';
|
|
22
|
+
export * from './Herringbone';
|
|
23
|
+
export * from './RainDense';
|
|
24
|
+
export * from './RainLoose';
|
|
25
|
+
export * from './RainRegular';
|
|
26
|
+
export * from './StripeDense';
|
|
27
|
+
export * from './StripeLoose';
|
|
28
|
+
export * from './StripeRegular';
|
package/dist/props.d.ts
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StyleProps } from '@codecademy/variance';
|
|
3
|
+
declare const patternStyles: import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").Compose<[import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
4
|
+
readonly flexBasis: {
|
|
5
|
+
readonly property: "flexBasis";
|
|
6
|
+
};
|
|
7
|
+
readonly flexShrink: {
|
|
8
|
+
readonly property: "flexShrink";
|
|
9
|
+
};
|
|
10
|
+
readonly flexGrow: {
|
|
11
|
+
readonly property: "flexGrow";
|
|
12
|
+
};
|
|
13
|
+
readonly order: {
|
|
14
|
+
readonly property: "order";
|
|
15
|
+
};
|
|
16
|
+
readonly gridColumn: {
|
|
17
|
+
readonly property: "gridColumn";
|
|
18
|
+
};
|
|
19
|
+
readonly gridRow: {
|
|
20
|
+
readonly property: "gridRow";
|
|
21
|
+
};
|
|
22
|
+
readonly gridColumnStart: {
|
|
23
|
+
readonly property: "gridColumnStart";
|
|
24
|
+
};
|
|
25
|
+
readonly gridRowStart: {
|
|
26
|
+
readonly property: "gridRowStart";
|
|
27
|
+
};
|
|
28
|
+
readonly gridColumnEnd: {
|
|
29
|
+
readonly property: "gridColumnEnd";
|
|
30
|
+
};
|
|
31
|
+
readonly gridRowEnd: {
|
|
32
|
+
readonly property: "gridRowEnd";
|
|
33
|
+
};
|
|
34
|
+
readonly justifySelf: {
|
|
35
|
+
readonly property: "justifySelf";
|
|
36
|
+
};
|
|
37
|
+
readonly alignSelf: {
|
|
38
|
+
readonly property: "alignSelf";
|
|
39
|
+
};
|
|
40
|
+
readonly gridArea: {
|
|
41
|
+
readonly property: "gridArea";
|
|
42
|
+
};
|
|
43
|
+
readonly display: {
|
|
44
|
+
readonly property: "display";
|
|
45
|
+
};
|
|
46
|
+
readonly overflow: {
|
|
47
|
+
readonly property: "overflow";
|
|
48
|
+
};
|
|
49
|
+
readonly overflowX: {
|
|
50
|
+
readonly property: "overflowX";
|
|
51
|
+
};
|
|
52
|
+
readonly overflowY: {
|
|
53
|
+
readonly property: "overflowY";
|
|
54
|
+
};
|
|
55
|
+
readonly dimensions: {
|
|
56
|
+
readonly property: "width";
|
|
57
|
+
readonly properties: readonly ["width", "height"];
|
|
58
|
+
readonly transform: (value: string | number) => string | 0;
|
|
59
|
+
};
|
|
60
|
+
readonly width: {
|
|
61
|
+
readonly property: "width";
|
|
62
|
+
readonly transform: (value: string | number) => string | 0;
|
|
63
|
+
};
|
|
64
|
+
readonly minWidth: {
|
|
65
|
+
readonly property: "minWidth";
|
|
66
|
+
readonly transform: (value: string | number) => string | 0;
|
|
67
|
+
};
|
|
68
|
+
readonly maxWidth: {
|
|
69
|
+
readonly property: "maxWidth";
|
|
70
|
+
readonly transform: (value: string | number) => string | 0;
|
|
71
|
+
};
|
|
72
|
+
readonly height: {
|
|
73
|
+
readonly property: "height";
|
|
74
|
+
readonly transform: (value: string | number) => string | 0;
|
|
75
|
+
};
|
|
76
|
+
readonly minHeight: {
|
|
77
|
+
readonly property: "minHeight";
|
|
78
|
+
readonly transform: (value: string | number) => string | 0;
|
|
79
|
+
};
|
|
80
|
+
readonly maxHeight: {
|
|
81
|
+
readonly property: "maxHeight";
|
|
82
|
+
readonly transform: (value: string | number) => string | 0;
|
|
83
|
+
};
|
|
84
|
+
readonly verticalAlign: {
|
|
85
|
+
readonly property: "verticalAlign";
|
|
86
|
+
};
|
|
87
|
+
}>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
88
|
+
readonly position: {
|
|
89
|
+
readonly property: "position";
|
|
90
|
+
};
|
|
91
|
+
readonly inset: {
|
|
92
|
+
readonly property: "inset";
|
|
93
|
+
readonly properties: readonly ["top", "right", "bottom", "left"];
|
|
94
|
+
readonly transform: (value: string | number) => string | 0;
|
|
95
|
+
};
|
|
96
|
+
readonly top: {
|
|
97
|
+
readonly property: "top";
|
|
98
|
+
readonly transform: (value: string | number) => string | 0;
|
|
99
|
+
};
|
|
100
|
+
readonly right: {
|
|
101
|
+
readonly property: "right";
|
|
102
|
+
readonly transform: (value: string | number) => string | 0;
|
|
103
|
+
};
|
|
104
|
+
readonly bottom: {
|
|
105
|
+
readonly property: "bottom";
|
|
106
|
+
readonly transform: (value: string | number) => string | 0;
|
|
107
|
+
};
|
|
108
|
+
readonly left: {
|
|
109
|
+
readonly property: "left";
|
|
110
|
+
readonly transform: (value: string | number) => string | 0;
|
|
111
|
+
};
|
|
112
|
+
readonly zIndex: {
|
|
113
|
+
readonly property: "zIndex";
|
|
114
|
+
};
|
|
115
|
+
readonly opacity: {
|
|
116
|
+
readonly property: "opacity";
|
|
117
|
+
};
|
|
118
|
+
}>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
|
|
119
|
+
readonly p: {
|
|
120
|
+
readonly property: "padding";
|
|
121
|
+
readonly scale: "spacing";
|
|
122
|
+
};
|
|
123
|
+
readonly px: {
|
|
124
|
+
readonly property: "padding";
|
|
125
|
+
readonly properties: readonly ["paddingLeft", "paddingRight"];
|
|
126
|
+
readonly scale: "spacing";
|
|
127
|
+
};
|
|
128
|
+
readonly py: {
|
|
129
|
+
readonly property: "padding";
|
|
130
|
+
readonly properties: readonly ["paddingTop", "paddingBottom"];
|
|
131
|
+
readonly scale: "spacing";
|
|
132
|
+
};
|
|
133
|
+
readonly pt: {
|
|
134
|
+
readonly property: "paddingTop";
|
|
135
|
+
readonly scale: "spacing";
|
|
136
|
+
};
|
|
137
|
+
readonly pb: {
|
|
138
|
+
readonly property: "paddingBottom";
|
|
139
|
+
readonly scale: "spacing";
|
|
140
|
+
};
|
|
141
|
+
readonly pr: {
|
|
142
|
+
readonly property: "paddingRight";
|
|
143
|
+
readonly scale: "spacing";
|
|
144
|
+
};
|
|
145
|
+
readonly pl: {
|
|
146
|
+
readonly property: "paddingLeft";
|
|
147
|
+
readonly scale: "spacing";
|
|
148
|
+
};
|
|
149
|
+
readonly m: {
|
|
150
|
+
readonly property: "margin";
|
|
151
|
+
readonly scale: "spacing";
|
|
152
|
+
};
|
|
153
|
+
readonly mx: {
|
|
154
|
+
readonly property: "margin";
|
|
155
|
+
readonly properties: readonly ["marginLeft", "marginRight"];
|
|
156
|
+
readonly scale: "spacing";
|
|
157
|
+
};
|
|
158
|
+
readonly my: {
|
|
159
|
+
readonly property: "margin";
|
|
160
|
+
readonly properties: readonly ["marginTop", "marginBottom"];
|
|
161
|
+
readonly scale: "spacing";
|
|
162
|
+
};
|
|
163
|
+
readonly mt: {
|
|
164
|
+
readonly property: "marginTop";
|
|
165
|
+
readonly scale: "spacing";
|
|
166
|
+
};
|
|
167
|
+
readonly mb: {
|
|
168
|
+
readonly property: "marginBottom";
|
|
169
|
+
readonly scale: "spacing";
|
|
170
|
+
};
|
|
171
|
+
readonly mr: {
|
|
172
|
+
readonly property: "marginRight";
|
|
173
|
+
readonly scale: "spacing";
|
|
174
|
+
};
|
|
175
|
+
readonly ml: {
|
|
176
|
+
readonly property: "marginLeft";
|
|
177
|
+
readonly scale: "spacing";
|
|
178
|
+
};
|
|
179
|
+
}>>]>>;
|
|
180
|
+
export declare type PatternStyleProps = StyleProps<typeof patternStyles>;
|
|
181
|
+
export interface PatternProps extends Omit<React.SVGProps<SVGSVGElement>, keyof PatternStyleProps>, PatternStyleProps {
|
|
182
|
+
/**
|
|
183
|
+
* A suffix added to the end of the unique generated ID for the icon. This is useful if you have multiple of the same icon on the page and need to pass accessibility guidelines.
|
|
184
|
+
*/
|
|
185
|
+
titleId?: string;
|
|
186
|
+
title?: string;
|
|
187
|
+
ref?: React.Ref<SVGSVGElement>;
|
|
188
|
+
}
|
|
189
|
+
export declare const Svg: import("@emotion/styled").StyledComponent<{
|
|
190
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
191
|
+
as?: import("react").ElementType<any> | undefined;
|
|
192
|
+
} & PatternProps, Pick<import("react").SVGProps<SVGSVGElement>, "string" | "scale" | "filter" | "fill" | "values" | "spacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "paintOrder" | "pointerEvents" | "rotate" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "wordSpacing" | "writingMode" | "mask" | "offset" | "min" | "max" | "end" | "clip" | "className" | "id" | "lang" | "media" | "method" | "name" | "style" | "target" | "type" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "path" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "shapeRendering" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ref" | "key">, {}>;
|
|
193
|
+
export {};
|
package/dist/props.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { styledOptions, system } from '@codecademy/gamut-styles';
|
|
2
|
+
import { variance } from '@codecademy/variance';
|
|
3
|
+
import styled from '@emotion/styled';
|
|
4
|
+
var patternStyles = variance.compose(system.layout, system.positioning, system.space);
|
|
5
|
+
export var Svg = styled('svg', styledOptions())(patternStyles);
|
|
6
|
+
Svg.defaultProps = {
|
|
7
|
+
width: '100%',
|
|
8
|
+
height: '100%'
|
|
9
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg>
|
|
2
|
+
<pattern
|
|
3
|
+
id="checkerDense"
|
|
4
|
+
x="0"
|
|
5
|
+
y="0"
|
|
6
|
+
width="4"
|
|
7
|
+
height="4"
|
|
8
|
+
patternUnits="userSpaceOnUse"
|
|
9
|
+
>
|
|
10
|
+
<rect width="1" height="1" fill="currentColor" />
|
|
11
|
+
<rect x="2" y="2" width="1" height="1" fill="currentColor" />
|
|
12
|
+
</pattern>
|
|
13
|
+
<rect x="0" y="0" width="100%" height="100%" fill="url(#checkerDense)" />
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg>
|
|
2
|
+
<pattern
|
|
3
|
+
id="checkerLoose"
|
|
4
|
+
x="0"
|
|
5
|
+
y="0"
|
|
6
|
+
width="16"
|
|
7
|
+
height="16"
|
|
8
|
+
patternUnits="userSpaceOnUse"
|
|
9
|
+
>
|
|
10
|
+
<rect width="1" height="1" fill="currentColor" />
|
|
11
|
+
<rect x="8" y="8" width="1" height="1" fill="currentColor" />
|
|
12
|
+
</pattern>
|
|
13
|
+
<rect x="0" y="0" width="100%" height="100%" fill="url(#checkerLoose)" />
|
|
14
|
+
</svg>
|