@codecademy/gamut-patterns 1.0.0-alpha.aa37ee.0 → 1.0.0-alpha.b02418.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/patterns/CheckerDense.d.ts +1 -1
- package/dist/patterns/CheckerDense.js +40 -33
- package/dist/patterns/CheckerLoose.d.ts +1 -1
- package/dist/patterns/CheckerLoose.js +40 -33
- package/dist/patterns/CheckerRegular.d.ts +1 -1
- package/dist/patterns/CheckerRegular.js +40 -33
- package/dist/patterns/DiagonalADense.d.ts +1 -1
- package/dist/patterns/DiagonalADense.js +74 -67
- package/dist/patterns/DiagonalALoose.d.ts +1 -1
- package/dist/patterns/DiagonalALoose.js +218 -211
- package/dist/patterns/DiagonalARegular.d.ts +1 -1
- package/dist/patterns/DiagonalARegular.js +122 -115
- package/dist/patterns/DiagonalBDense.d.ts +1 -1
- package/dist/patterns/DiagonalBDense.js +56 -49
- package/dist/patterns/DiagonalBLoose.d.ts +1 -1
- package/dist/patterns/DiagonalBLoose.js +124 -117
- package/dist/patterns/DiagonalBRegular.d.ts +1 -1
- package/dist/patterns/DiagonalBRegular.js +80 -73
- package/dist/patterns/DotDense.d.ts +1 -1
- package/dist/patterns/DotDense.js +35 -28
- package/dist/patterns/DotLoose.d.ts +1 -1
- package/dist/patterns/DotLoose.js +78 -71
- package/dist/patterns/DotRegular.d.ts +1 -1
- package/dist/patterns/DotRegular.js +35 -28
- package/dist/patterns/ExDense.d.ts +1 -1
- package/dist/patterns/ExDense.js +57 -50
- package/dist/patterns/ExLoose.d.ts +1 -1
- package/dist/patterns/ExLoose.js +57 -50
- package/dist/patterns/ExRegular.d.ts +1 -1
- package/dist/patterns/ExRegular.js +57 -50
- package/dist/patterns/FlowerDense.d.ts +1 -1
- package/dist/patterns/FlowerDense.js +51 -44
- package/dist/patterns/FlowerLoose.d.ts +1 -1
- package/dist/patterns/FlowerLoose.js +51 -44
- package/dist/patterns/FlowerRegular.d.ts +1 -1
- package/dist/patterns/FlowerRegular.js +51 -44
- package/dist/patterns/GridDense.d.ts +1 -1
- package/dist/patterns/GridDense.js +50 -43
- package/dist/patterns/GridLoose.d.ts +1 -1
- package/dist/patterns/GridLoose.js +50 -43
- package/dist/patterns/GridRegular.d.ts +1 -1
- package/dist/patterns/GridRegular.js +50 -43
- package/dist/patterns/Herringbone.d.ts +1 -1
- package/dist/patterns/Herringbone.js +68 -61
- package/dist/patterns/RainDense.d.ts +1 -1
- package/dist/patterns/RainDense.js +40 -33
- package/dist/patterns/RainLoose.d.ts +1 -1
- package/dist/patterns/RainLoose.js +40 -33
- package/dist/patterns/RainRegular.d.ts +1 -1
- package/dist/patterns/RainRegular.js +40 -33
- package/dist/patterns/StripeDense.d.ts +1 -1
- package/dist/patterns/StripeDense.js +72 -65
- package/dist/patterns/StripeLoose.d.ts +1 -1
- package/dist/patterns/StripeLoose.js +204 -197
- package/dist/patterns/StripeRegular.d.ts +1 -1
- package/dist/patterns/StripeRegular.js +116 -109
- package/dist/props.d.ts +1 -1
- package/dist/svg/DiagonalBDense.svg +2 -2
- package/dist/svg/DiagonalBRegular.svg +2 -2
- package/dist/types.js +1 -0
- package/package.json +16 -17
- package/.svgo.yml +0 -11
- package/CHANGELOG.md +0 -286
- package/babel.config.js +0 -5
- package/emotion-plugin.js +0 -46
- package/icon-template.js +0 -28
- package/index-template.js +0 -10
- package/jest.config.js +0 -1
- package/svgr.config.js +0 -29
- package/tsconfig.json +0 -12
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const StripeRegular: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const StripeRegular: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,123 +1,130 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
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); }
|
|
3
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; }
|
|
4
|
-
|
|
5
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; }
|
|
6
|
-
|
|
7
9
|
import * as React from 'react';
|
|
8
10
|
import { Svg } from '../props';
|
|
9
11
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
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) {
|
|
11
15
|
var _ref$title = _ref.title,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
title = _ref$title === void 0 ? 'Stripe Regular' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
16
19
|
var patternId = usePatternId('StripeRegular');
|
|
17
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
18
21
|
fill: "currentColor",
|
|
19
22
|
role: "img",
|
|
20
23
|
"aria-hidden": "true",
|
|
21
24
|
ref: svgRef,
|
|
22
25
|
"aria-labelledby": titleId
|
|
23
|
-
}, props),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
+
})]
|
|
122
129
|
}));
|
|
123
130
|
});
|
package/dist/props.d.ts
CHANGED
|
@@ -189,5 +189,5 @@ export interface PatternProps extends Omit<React.SVGProps<SVGSVGElement>, keyof
|
|
|
189
189
|
export declare const Svg: import("@emotion/styled").StyledComponent<{
|
|
190
190
|
theme?: import("@emotion/react").Theme | undefined;
|
|
191
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" | "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">, {}>;
|
|
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 {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
patternUnits="userSpaceOnUse"
|
|
9
9
|
>
|
|
10
10
|
<g clipPath="url(#clipDiagonalBDense)">
|
|
11
|
-
<rect width="4" height="4" fill="
|
|
11
|
+
<rect width="4" height="4" fill="transparent" />
|
|
12
12
|
<rect y="3" width="1" height="1" fill="currentColor" />
|
|
13
13
|
<rect x="1" y="2" width="1" height="1" fill="currentColor" />
|
|
14
14
|
<rect x="2" y="1" width="1" height="1" fill="currentColor" />
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</g>
|
|
17
17
|
<defs>
|
|
18
18
|
<clipPath id="clipDiagonalBDense">
|
|
19
|
-
<rect width="4" height="4" fill="
|
|
19
|
+
<rect width="4" height="4" fill="transparent" />
|
|
20
20
|
</clipPath>
|
|
21
21
|
</defs>
|
|
22
22
|
</pattern>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
patternUnits="userSpaceOnUse"
|
|
9
9
|
>
|
|
10
10
|
<g clipPath="url(#clipDiagonalBRegular)">
|
|
11
|
-
<rect width="8" height="8" fill="
|
|
11
|
+
<rect width="8" height="8" fill="transparent" />
|
|
12
12
|
<rect y="7" width="1" height="1" fill="currentColor" />
|
|
13
13
|
<rect x="1" y="6" width="1" height="1" fill="currentColor" />
|
|
14
14
|
<rect x="2" y="5" width="1" height="1" fill="currentColor" />
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</g>
|
|
21
21
|
<defs>
|
|
22
22
|
<clipPath id="clipDiagonalBRegular">
|
|
23
|
-
<rect width="8" height="8" fill="
|
|
23
|
+
<rect width="8" height="8" fill="transparent" />
|
|
24
24
|
</clipPath>
|
|
25
25
|
</defs>
|
|
26
26
|
</pattern>
|
package/dist/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -4,27 +4,31 @@
|
|
|
4
4
|
"url": "https://github.com/Codecademy/gamut/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-styles": "
|
|
8
|
-
"@codecademy/variance": "0.
|
|
7
|
+
"@codecademy/gamut-styles": "15.0.0-alpha.b02418.0",
|
|
8
|
+
"@codecademy/variance": "1.0.0-alpha.b02418.0",
|
|
9
9
|
"classnames": "^2.2.5"
|
|
10
10
|
},
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"@svgr/cli": "5.5.0",
|
|
13
|
+
"@testing-library/react": "^12.1.2",
|
|
14
|
+
"lodash": "^4.17.5",
|
|
15
|
+
"svgo": "^1.3.2"
|
|
16
|
+
},
|
|
11
17
|
"description": "Pattern library for Codecademy",
|
|
12
18
|
"homepage": "https://github.com/Codecademy/gamut#readme",
|
|
13
19
|
"name": "@codecademy/gamut-patterns",
|
|
14
20
|
"module": "dist/index.js",
|
|
15
21
|
"types": "dist/index.d.ts",
|
|
16
22
|
"main": "dist/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
17
26
|
"license": "MIT",
|
|
18
27
|
"peerDependencies": {
|
|
19
28
|
"@emotion/react": "^11.4.0",
|
|
20
29
|
"@emotion/styled": "^11.3.0",
|
|
21
|
-
"react": "
|
|
22
|
-
"react-dom": "
|
|
23
|
-
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"@svgr/cli": "5.5.0",
|
|
26
|
-
"lodash": "^4.17.5",
|
|
27
|
-
"svgo": "^1.3.2"
|
|
30
|
+
"react": "^17.0.2 || ^18.2.0",
|
|
31
|
+
"react-dom": "^17.0.2 || ^18.2.0"
|
|
28
32
|
},
|
|
29
33
|
"publishConfig": {
|
|
30
34
|
"access": "public"
|
|
@@ -34,15 +38,10 @@
|
|
|
34
38
|
"url": "git+ssh://git@github.com/Codecademy/gamut.git"
|
|
35
39
|
},
|
|
36
40
|
"scripts": {
|
|
37
|
-
"verify": "tsc --noEmit",
|
|
38
41
|
"format": "svgo -f ./src/svg --pretty --config=.svgo.yml",
|
|
39
|
-
"build
|
|
40
|
-
"build:types": "tsc --emitDeclarationOnly",
|
|
41
|
-
"build:compile": "babel ./src --out-dir ./dist --copy-files --extensions \".ts,.tsx\"",
|
|
42
|
-
"build": "yarn build:icons && yarn build:compile && yarn build:types",
|
|
43
|
-
"lernaBuildTask": "yarn build"
|
|
42
|
+
"build": "nx build @codecademy/gamut-patterns"
|
|
44
43
|
},
|
|
45
44
|
"sideEffects": false,
|
|
46
|
-
"version": "1.0.0-alpha.
|
|
47
|
-
"gitHead": "
|
|
45
|
+
"version": "1.0.0-alpha.b02418.0",
|
|
46
|
+
"gitHead": "8bfc78e7acec35b89d3d8e117580c0296ead07f6"
|
|
48
47
|
}
|