@codecademy/gamut-patterns 0.8.12-alpha.4d61d4.0 → 0.8.12-alpha.712f83.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 (70) 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 +5 -5
  30. package/dist/props.js +8 -2
  31. package/dist/svg/CheckerDense.svg +14 -0
  32. package/dist/svg/CheckerLoose.svg +14 -0
  33. package/dist/svg/CheckerRegular.svg +14 -0
  34. package/dist/svg/DiagonalADense.svg +20 -0
  35. package/dist/svg/DiagonalALoose.svg +44 -0
  36. package/dist/svg/DiagonalARegular.svg +28 -0
  37. package/dist/svg/DiagonalBDense.svg +24 -0
  38. package/dist/svg/DiagonalBLoose.svg +28 -0
  39. package/dist/svg/DiagonalBRegular.svg +28 -0
  40. package/dist/svg/DotDense.svg +13 -0
  41. package/dist/svg/DotLoose.svg +40 -0
  42. package/dist/svg/DotRegular.svg +13 -0
  43. package/dist/svg/ExDense.svg +17 -0
  44. package/dist/svg/ExLoose.svg +17 -0
  45. package/dist/svg/ExRegular.svg +17 -0
  46. package/dist/svg/FlowerDense.svg +16 -0
  47. package/dist/svg/FlowerLoose.svg +16 -0
  48. package/dist/svg/FlowerRegular.svg +16 -0
  49. package/dist/svg/GridDense.svg +16 -0
  50. package/dist/svg/GridLoose.svg +16 -0
  51. package/dist/svg/GridRegular.svg +16 -0
  52. package/dist/svg/Herringbone.svg +19 -0
  53. package/dist/svg/RainDense.svg +14 -0
  54. package/dist/svg/RainLoose.svg +14 -0
  55. package/dist/svg/RainRegular.svg +14 -0
  56. package/dist/svg/StripeDense.svg +20 -0
  57. package/dist/svg/StripeLoose.svg +44 -0
  58. package/dist/svg/StripeRegular.svg +28 -0
  59. package/dist/types.js +0 -1
  60. package/dist/usePatternId.js +2 -2
  61. package/package.json +8 -4
  62. package/.svgo.yml +0 -11
  63. package/CHANGELOG.md +0 -420
  64. package/babel.config.js +0 -12
  65. package/emotion-plugin.js +0 -46
  66. package/index-template.js +0 -10
  67. package/pattern-template.js +0 -30
  68. package/project.json +0 -33
  69. package/svgr.config.js +0 -29
  70. package/tsconfig.json +0 -15
@@ -1,209 +1,123 @@
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/StripeRegular.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 StripeRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Stripe 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('StripeRegular');
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
- x: 1,
42
- width: 1,
43
- height: 1,
44
- fill: "currentColor"
45
- }, void 0, false, {
46
- fileName: _jsxFileName,
47
- lineNumber: 25,
48
- columnNumber: 11
49
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
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: 2,
59
- width: 1,
60
- height: 1,
61
- fill: "currentColor"
62
- }, void 0, false, {
63
- fileName: _jsxFileName,
64
- lineNumber: 27,
65
- columnNumber: 11
66
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
67
- x: 3,
68
- width: 1,
69
- height: 1,
70
- fill: "currentColor"
71
- }, void 0, false, {
72
- fileName: _jsxFileName,
73
- lineNumber: 28,
74
- columnNumber: 11
75
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
76
- x: 1,
77
- y: 4,
78
- width: 1,
79
- height: 1,
80
- fill: "currentColor"
81
- }, void 0, false, {
82
- fileName: _jsxFileName,
83
- lineNumber: 29,
84
- columnNumber: 11
85
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
86
- y: 4,
87
- width: 1,
88
- height: 1,
89
- fill: "currentColor"
90
- }, void 0, false, {
91
- fileName: _jsxFileName,
92
- lineNumber: 30,
93
- columnNumber: 11
94
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
95
- x: 2,
96
- y: 4,
97
- width: 1,
98
- height: 1,
99
- fill: "currentColor"
100
- }, void 0, false, {
101
- fileName: _jsxFileName,
102
- lineNumber: 31,
103
- columnNumber: 11
104
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
105
- x: 3,
106
- y: 4,
107
- width: 1,
108
- height: 1,
109
- fill: "currentColor"
110
- }, void 0, false, {
111
- fileName: _jsxFileName,
112
- lineNumber: 32,
113
- columnNumber: 11
114
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
115
- x: 5,
116
- width: 1,
117
- height: 1,
118
- fill: "currentColor"
119
- }, void 0, false, {
120
- fileName: _jsxFileName,
121
- lineNumber: 33,
122
- columnNumber: 11
123
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
124
- x: 4,
125
- width: 1,
126
- height: 1,
127
- fill: "currentColor"
128
- }, void 0, false, {
129
- fileName: _jsxFileName,
130
- lineNumber: 34,
131
- columnNumber: 11
132
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
133
- x: 6,
134
- width: 1,
135
- height: 1,
136
- fill: "currentColor"
137
- }, void 0, false, {
138
- fileName: _jsxFileName,
139
- lineNumber: 35,
140
- columnNumber: 11
141
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
142
- x: 7,
143
- width: 1,
144
- height: 1,
145
- fill: "currentColor"
146
- }, void 0, false, {
147
- fileName: _jsxFileName,
148
- lineNumber: 36,
149
- columnNumber: 11
150
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
151
- x: 5,
152
- y: 4,
153
- width: 1,
154
- height: 1,
155
- fill: "currentColor"
156
- }, void 0, false, {
157
- fileName: _jsxFileName,
158
- lineNumber: 37,
159
- columnNumber: 11
160
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
161
- x: 4,
162
- y: 4,
163
- width: 1,
164
- height: 1,
165
- fill: "currentColor"
166
- }, void 0, false, {
167
- fileName: _jsxFileName,
168
- lineNumber: 38,
169
- columnNumber: 11
170
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
171
- x: 6,
172
- y: 4,
173
- width: 1,
174
- height: 1,
175
- fill: "currentColor"
176
- }, void 0, false, {
177
- fileName: _jsxFileName,
178
- lineNumber: 39,
179
- columnNumber: 11
180
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
181
- x: 7,
182
- y: 4,
183
- width: 1,
184
- height: 1,
185
- fill: "currentColor"
186
- }, void 0, false, {
187
- fileName: _jsxFileName,
188
- lineNumber: 40,
189
- columnNumber: 11
190
- }, _this)]
191
- }, void 0, true, {
192
- fileName: _jsxFileName,
193
- lineNumber: 17,
194
- columnNumber: 9
195
- }, _this), /*#__PURE__*/_jsxDEV("rect", {
196
- width: "100%",
197
- height: "100%",
198
- fill: "url(#" + patternId + ")"
199
- }, void 0, false, {
200
- fileName: _jsxFileName,
201
- lineNumber: 42,
202
- columnNumber: 9
203
- }, _this)]
204
- }), void 0, true, {
205
- fileName: _jsxFileName,
206
- lineNumber: 8,
207
- columnNumber: 7
208
- }, _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
+ x: 1,
34
+ width: 1,
35
+ height: 1,
36
+ fill: "currentColor"
37
+ }), /*#__PURE__*/React.createElement("rect", {
38
+ width: 1,
39
+ height: 1,
40
+ fill: "currentColor"
41
+ }), /*#__PURE__*/React.createElement("rect", {
42
+ x: 2,
43
+ width: 1,
44
+ height: 1,
45
+ fill: "currentColor"
46
+ }), /*#__PURE__*/React.createElement("rect", {
47
+ x: 3,
48
+ width: 1,
49
+ height: 1,
50
+ fill: "currentColor"
51
+ }), /*#__PURE__*/React.createElement("rect", {
52
+ x: 1,
53
+ y: 4,
54
+ width: 1,
55
+ height: 1,
56
+ fill: "currentColor"
57
+ }), /*#__PURE__*/React.createElement("rect", {
58
+ y: 4,
59
+ width: 1,
60
+ height: 1,
61
+ fill: "currentColor"
62
+ }), /*#__PURE__*/React.createElement("rect", {
63
+ x: 2,
64
+ y: 4,
65
+ width: 1,
66
+ height: 1,
67
+ fill: "currentColor"
68
+ }), /*#__PURE__*/React.createElement("rect", {
69
+ x: 3,
70
+ y: 4,
71
+ width: 1,
72
+ height: 1,
73
+ fill: "currentColor"
74
+ }), /*#__PURE__*/React.createElement("rect", {
75
+ x: 5,
76
+ width: 1,
77
+ height: 1,
78
+ fill: "currentColor"
79
+ }), /*#__PURE__*/React.createElement("rect", {
80
+ x: 4,
81
+ width: 1,
82
+ height: 1,
83
+ fill: "currentColor"
84
+ }), /*#__PURE__*/React.createElement("rect", {
85
+ x: 6,
86
+ width: 1,
87
+ height: 1,
88
+ fill: "currentColor"
89
+ }), /*#__PURE__*/React.createElement("rect", {
90
+ x: 7,
91
+ width: 1,
92
+ height: 1,
93
+ fill: "currentColor"
94
+ }), /*#__PURE__*/React.createElement("rect", {
95
+ x: 5,
96
+ y: 4,
97
+ width: 1,
98
+ height: 1,
99
+ fill: "currentColor"
100
+ }), /*#__PURE__*/React.createElement("rect", {
101
+ x: 4,
102
+ y: 4,
103
+ width: 1,
104
+ height: 1,
105
+ fill: "currentColor"
106
+ }), /*#__PURE__*/React.createElement("rect", {
107
+ x: 6,
108
+ y: 4,
109
+ width: 1,
110
+ height: 1,
111
+ fill: "currentColor"
112
+ }), /*#__PURE__*/React.createElement("rect", {
113
+ x: 7,
114
+ y: 4,
115
+ width: 1,
116
+ height: 1,
117
+ fill: "currentColor"
118
+ })), /*#__PURE__*/React.createElement("rect", {
119
+ width: "100%",
120
+ height: "100%",
121
+ fill: "url(#".concat(patternId, ")")
122
+ }));
209
123
  });
package/dist/props.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { StyleProps } from '@codecademy/variance';
3
- declare const patternStyles: import("packages/variance/dist/types/config").Parser<import("packages/variance/dist/types/config").Compose<[import("packages/variance/dist/types/config").Parser<import("packages/variance/dist/types/config").TransformerMap<{
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
4
  readonly flexBasis: {
5
5
  readonly property: "flexBasis";
6
6
  };
@@ -84,7 +84,7 @@ declare const patternStyles: import("packages/variance/dist/types/config").Parse
84
84
  readonly verticalAlign: {
85
85
  readonly property: "verticalAlign";
86
86
  };
87
- }>>, import("packages/variance/dist/types/config").Parser<import("packages/variance/dist/types/config").TransformerMap<{
87
+ }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
88
88
  readonly position: {
89
89
  readonly property: "position";
90
90
  };
@@ -115,7 +115,7 @@ declare const patternStyles: import("packages/variance/dist/types/config").Parse
115
115
  readonly opacity: {
116
116
  readonly property: "opacity";
117
117
  };
118
- }>>, import("packages/variance/dist/types/config").Parser<import("packages/variance/dist/types/config").TransformerMap<{
118
+ }>>, import("@codecademy/variance/dist/types/config").Parser<import("@codecademy/variance/dist/types/config").TransformerMap<{
119
119
  readonly p: {
120
120
  readonly property: "padding";
121
121
  readonly scale: "spacing";
@@ -187,7 +187,7 @@ export interface PatternProps extends Omit<React.SVGProps<SVGSVGElement>, keyof
187
187
  ref?: React.Ref<SVGSVGElement>;
188
188
  }
189
189
  export declare const Svg: import("@emotion/styled").StyledComponent<{
190
- theme?: import("@emotion/react").Theme;
191
- as?: import("react").ElementType<any>;
190
+ theme?: import("@emotion/react").Theme | undefined;
191
+ as?: import("react").ElementType<any> | undefined;
192
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
193
  export {};
package/dist/props.js CHANGED
@@ -1,8 +1,14 @@
1
+ import _styled from "@emotion/styled/base";
2
+
3
+ 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); }
4
+
1
5
  import { styledOptions, system } from '@codecademy/gamut-styles';
2
6
  import { variance } from '@codecademy/variance';
3
- import styled from '@emotion/styled';
4
7
  var patternStyles = variance.compose(system.layout, system.positioning, system.space);
5
- export var Svg = styled('svg', styledOptions())(patternStyles);
8
+ export var Svg = /*#__PURE__*/_styled('svg', _extends({}, {
9
+ target: "e1dw7vog0",
10
+ label: "Svg"
11
+ }, styledOptions()))(patternStyles, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm9wcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFzQm1CIiwiZmlsZSI6Ii4uL3NyYy9wcm9wcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IHN0eWxlZE9wdGlvbnMsIHN5c3RlbSB9IGZyb20gJ0Bjb2RlY2FkZW15L2dhbXV0LXN0eWxlcyc7XG5pbXBvcnQgeyBTdHlsZVByb3BzLCB2YXJpYW5jZSB9IGZyb20gJ0Bjb2RlY2FkZW15L3ZhcmlhbmNlJztcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuY29uc3QgcGF0dGVyblN0eWxlcyA9IHZhcmlhbmNlLmNvbXBvc2UoXG4gIHN5c3RlbS5sYXlvdXQsXG4gIHN5c3RlbS5wb3NpdGlvbmluZyxcbiAgc3lzdGVtLnNwYWNlXG4pO1xuXG5leHBvcnQgdHlwZSBQYXR0ZXJuU3R5bGVQcm9wcyA9IFN0eWxlUHJvcHM8dHlwZW9mIHBhdHRlcm5TdHlsZXM+O1xuZXhwb3J0IGludGVyZmFjZSBQYXR0ZXJuUHJvcHNcbiAgZXh0ZW5kcyBPbWl0PFJlYWN0LlNWR1Byb3BzPFNWR1NWR0VsZW1lbnQ+LCBrZXlvZiBQYXR0ZXJuU3R5bGVQcm9wcz4sXG4gICAgUGF0dGVyblN0eWxlUHJvcHMge1xuICAvKipcbiAgICogQSBzdWZmaXggYWRkZWQgdG8gdGhlIGVuZCBvZiB0aGUgdW5pcXVlIGdlbmVyYXRlZCBJRCBmb3IgdGhlIGljb24uIFRoaXMgaXMgdXNlZnVsIGlmIHlvdSBoYXZlIG11bHRpcGxlIG9mIHRoZSBzYW1lIGljb24gb24gdGhlIHBhZ2UgYW5kIG5lZWQgdG8gcGFzcyBhY2Nlc3NpYmlsaXR5IGd1aWRlbGluZXMuXG4gICAqL1xuICB0aXRsZUlkPzogc3RyaW5nO1xuICB0aXRsZT86IHN0cmluZztcbiAgcmVmPzogUmVhY3QuUmVmPFNWR1NWR0VsZW1lbnQ+O1xufVxuXG5leHBvcnQgY29uc3QgU3ZnID0gc3R5bGVkKFxuICAnc3ZnJyxcbiAgc3R5bGVkT3B0aW9uczwnc3ZnJz4oKVxuKTxQYXR0ZXJuUHJvcHM+KHBhdHRlcm5TdHlsZXMpO1xuXG5TdmcuZGVmYXVsdFByb3BzID0ge1xuICB3aWR0aDogJzEwMCUnLFxuICBoZWlnaHQ6ICcxMDAlJyxcbn07XG4iXX0= */");
6
12
  Svg.defaultProps = {
7
13
  width: '100%',
8
14
  height: '100%'
@@ -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>
@@ -0,0 +1,14 @@
1
+ <svg>
2
+ <pattern
3
+ id="checkerRegular"
4
+ x="0"
5
+ y="0"
6
+ width="8"
7
+ height="8"
8
+ patternUnits="userSpaceOnUse"
9
+ >
10
+ <rect width="1" height="1" fill="currentColor" />
11
+ <rect x="4" y="4" width="1" height="1" fill="currentColor" />
12
+ </pattern>
13
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#checkerRegular)" />
14
+ </svg>
@@ -0,0 +1,20 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalADense"
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
+ <rect x="1" y="2" width="1" height="1" fill="currentColor" />
13
+ <rect x="1" y="3" width="1" height="1" fill="currentColor" />
14
+ <rect y="3" width="1" height="1" fill="currentColor" />
15
+ <rect x="3" width="1" height="1" fill="currentColor" />
16
+ <rect x="3" y="1" width="1" height="1" fill="currentColor" />
17
+ <rect x="2" y="1" width="1" height="1" fill="currentColor" />
18
+ </pattern>
19
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalADense)" />
20
+ </svg>
@@ -0,0 +1,44 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalALoose"
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="14" y="2" width="1" height="1" fill="currentColor" />
12
+ <rect x="13" y="2" width="1" height="1" fill="currentColor" />
13
+ <rect x="13" y="3" width="1" height="1" fill="currentColor" />
14
+ <rect x="12" y="3" width="1" height="1" fill="currentColor" />
15
+ <rect x="15" width="1" height="1" fill="currentColor" />
16
+ <rect x="15" y="1" width="1" height="1" fill="currentColor" />
17
+ <rect x="14" y="1" width="1" height="1" fill="currentColor" />
18
+ <rect x="11" y="5" width="1" height="1" fill="currentColor" />
19
+ <rect x="10" y="5" width="1" height="1" fill="currentColor" />
20
+ <rect x="10" y="6" width="1" height="1" fill="currentColor" />
21
+ <rect x="9" y="6" width="1" height="1" fill="currentColor" />
22
+ <rect x="8" y="7" width="1" height="1" fill="currentColor" />
23
+ <rect x="9" y="7" width="1" height="1" fill="currentColor" />
24
+ <rect x="12" y="4" width="1" height="1" fill="currentColor" />
25
+ <rect x="11" y="4" width="1" height="1" fill="currentColor" />
26
+ <rect x="7" y="9" width="1" height="1" fill="currentColor" />
27
+ <rect x="6" y="9" width="1" height="1" fill="currentColor" />
28
+ <rect x="6" y="10" width="1" height="1" fill="currentColor" />
29
+ <rect x="5" y="10" width="1" height="1" fill="currentColor" />
30
+ <rect x="8" y="8" width="1" height="1" fill="currentColor" />
31
+ <rect x="7" y="8" width="1" height="1" fill="currentColor" />
32
+ <rect x="4" y="12" width="1" height="1" fill="currentColor" />
33
+ <rect x="3" y="12" width="1" height="1" fill="currentColor" />
34
+ <rect x="3" y="13" width="1" height="1" fill="currentColor" />
35
+ <rect x="2" y="13" width="1" height="1" fill="currentColor" />
36
+ <rect x="1" y="14" width="1" height="1" fill="currentColor" />
37
+ <rect x="2" y="14" width="1" height="1" fill="currentColor" />
38
+ <rect y="15" width="1" height="1" fill="currentColor" />
39
+ <rect x="1" y="15" width="1" height="1" fill="currentColor" />
40
+ <rect x="5" y="11" width="1" height="1" fill="currentColor" />
41
+ <rect x="4" y="11" width="1" height="1" fill="currentColor" />
42
+ </pattern>
43
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalALoose)" />
44
+ </svg>
@@ -0,0 +1,28 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalARegular"
4
+ x="0"
5
+ y="0"
6
+ width="8"
7
+ height="8"
8
+ patternUnits="userSpaceOnUse"
9
+ >
10
+ <rect width="1" height="1" fill="currentColor" />
11
+ <rect x="6" y="2" width="1" height="1" fill="currentColor" />
12
+ <rect x="5" y="2" width="1" height="1" fill="currentColor" />
13
+ <rect x="5" y="3" width="1" height="1" fill="currentColor" />
14
+ <rect x="4" y="3" width="1" height="1" fill="currentColor" />
15
+ <rect x="7" width="1" height="1" fill="currentColor" />
16
+ <rect x="7" y="1" width="1" height="1" fill="currentColor" />
17
+ <rect x="6" y="1" width="1" height="1" fill="currentColor" />
18
+ <rect x="3" y="5" width="1" height="1" fill="currentColor" />
19
+ <rect x="2" y="5" width="1" height="1" fill="currentColor" />
20
+ <rect x="2" y="6" width="1" height="1" fill="currentColor" />
21
+ <rect x="1" y="6" width="1" height="1" fill="currentColor" />
22
+ <rect y="7" width="1" height="1" fill="currentColor" />
23
+ <rect x="1" y="7" width="1" height="1" fill="currentColor" />
24
+ <rect x="4" y="4" width="1" height="1" fill="currentColor" />
25
+ <rect x="3" y="4" width="1" height="1" fill="currentColor" />
26
+ </pattern>
27
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalARegular)" />
28
+ </svg>
@@ -0,0 +1,24 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalBDense"
4
+ x="0"
5
+ y="0"
6
+ width="4"
7
+ height="4"
8
+ patternUnits="userSpaceOnUse"
9
+ >
10
+ <g clipPath="url(#clipDiagonalBDense)">
11
+ <rect width="4" height="4" fill="transparent" />
12
+ <rect y="3" width="1" height="1" fill="currentColor" />
13
+ <rect x="1" y="2" width="1" height="1" fill="currentColor" />
14
+ <rect x="2" y="1" width="1" height="1" fill="currentColor" />
15
+ <rect x="3" width="1" height="1" fill="currentColor" />
16
+ </g>
17
+ <defs>
18
+ <clipPath id="clipDiagonalBDense">
19
+ <rect width="4" height="4" fill="transparent" />
20
+ </clipPath>
21
+ </defs>
22
+ </pattern>
23
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalBDense)" />
24
+ </svg>
@@ -0,0 +1,28 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalBLoose"
4
+ x="0"
5
+ y="0"
6
+ width="16"
7
+ height="16"
8
+ patternUnits="userSpaceOnUse"
9
+ >
10
+ <rect y="15" width="1" height="1" fill="currentColor" />
11
+ <rect x="1" y="14" width="1" height="1" fill="currentColor" />
12
+ <rect x="2" y="13" width="1" height="1" fill="currentColor" />
13
+ <rect x="3" y="12" width="1" height="1" fill="currentColor" />
14
+ <rect x="4" y="11" width="1" height="1" fill="currentColor" />
15
+ <rect x="5" y="10" width="1" height="1" fill="currentColor" />
16
+ <rect x="6" y="9" width="1" height="1" fill="currentColor" />
17
+ <rect x="7" y="8" width="1" height="1" fill="currentColor" />
18
+ <rect x="8" y="7" width="1" height="1" fill="currentColor" />
19
+ <rect x="9" y="6" width="1" height="1" fill="currentColor" />
20
+ <rect x="10" y="5" width="1" height="1" fill="currentColor" />
21
+ <rect x="11" y="4" width="1" height="1" fill="currentColor" />
22
+ <rect x="12" y="3" width="1" height="1" fill="currentColor" />
23
+ <rect x="13" y="2" width="1" height="1" fill="currentColor" />
24
+ <rect x="14" y="1" width="1" height="1" fill="currentColor" />
25
+ <rect x="15" width="1" height="1" fill="currentColor" />
26
+ </pattern>
27
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalBLoose)" />
28
+ </svg>
@@ -0,0 +1,28 @@
1
+ <svg>
2
+ <pattern
3
+ id="diagonalBRegular"
4
+ x="0"
5
+ y="0"
6
+ width="8"
7
+ height="8"
8
+ patternUnits="userSpaceOnUse"
9
+ >
10
+ <g clipPath="url(#clipDiagonalBRegular)">
11
+ <rect width="8" height="8" fill="transparent" />
12
+ <rect y="7" width="1" height="1" fill="currentColor" />
13
+ <rect x="1" y="6" width="1" height="1" fill="currentColor" />
14
+ <rect x="2" y="5" width="1" height="1" fill="currentColor" />
15
+ <rect x="3" y="4" width="1" height="1" fill="currentColor" />
16
+ <rect x="4" y="3" width="1" height="1" fill="currentColor" />
17
+ <rect x="5" y="2" width="1" height="1" fill="currentColor" />
18
+ <rect x="6" y="1" width="1" height="1" fill="currentColor" />
19
+ <rect x="7" width="1" height="1" fill="currentColor" />
20
+ </g>
21
+ <defs>
22
+ <clipPath id="clipDiagonalBRegular">
23
+ <rect width="8" height="8" fill="transparent" />
24
+ </clipPath>
25
+ </defs>
26
+ </pattern>
27
+ <rect x="0" y="0" width="100%" height="100%" fill="url(#diagonalBRegular)" />
28
+ </svg>