@codecademy/gamut-patterns 0.8.19 → 0.8.20-alpha.b44e47.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/dist/patterns/CheckerDense.js +35 -25
- package/dist/patterns/CheckerLoose.js +35 -25
- package/dist/patterns/CheckerRegular.js +35 -25
- package/dist/patterns/DiagonalADense.js +69 -59
- package/dist/patterns/DiagonalALoose.js +213 -203
- package/dist/patterns/DiagonalARegular.js +117 -107
- package/dist/patterns/DiagonalBDense.js +51 -41
- package/dist/patterns/DiagonalBLoose.js +119 -109
- package/dist/patterns/DiagonalBRegular.js +75 -65
- package/dist/patterns/DotDense.js +30 -20
- package/dist/patterns/DotLoose.js +73 -63
- package/dist/patterns/DotRegular.js +30 -20
- package/dist/patterns/ExDense.js +52 -42
- package/dist/patterns/ExLoose.js +52 -42
- package/dist/patterns/ExRegular.js +52 -42
- package/dist/patterns/FlowerDense.js +46 -36
- package/dist/patterns/FlowerLoose.js +46 -36
- package/dist/patterns/FlowerRegular.js +46 -36
- package/dist/patterns/GridDense.js +45 -35
- package/dist/patterns/GridLoose.js +45 -35
- package/dist/patterns/GridRegular.js +45 -35
- package/dist/patterns/Herringbone.js +63 -53
- package/dist/patterns/RainDense.js +35 -25
- package/dist/patterns/RainLoose.js +35 -25
- package/dist/patterns/RainRegular.js +35 -25
- package/dist/patterns/StripeDense.js +67 -57
- package/dist/patterns/StripeLoose.js +199 -189
- package/dist/patterns/StripeRegular.js +111 -101
- package/package.json +4 -4
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
6
|
|
|
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
8
|
|
|
@@ -7,6 +11,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
11
|
import * as React from 'react';
|
|
8
12
|
import { Svg } from '../props';
|
|
9
13
|
import { usePatternId } from '../usePatternId';
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
16
|
export var StripeRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
17
|
var _ref$title = _ref.title,
|
|
12
18
|
title = _ref$title === void 0 ? 'Stripe Regular' : _ref$title,
|
|
@@ -14,110 +20,114 @@ export var StripeRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef)
|
|
|
14
20
|
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
15
21
|
|
|
16
22
|
var patternId = usePatternId('StripeRegular');
|
|
17
|
-
return /*#__PURE__*/
|
|
23
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
18
24
|
fill: "currentColor",
|
|
19
25
|
role: "img",
|
|
20
26
|
"aria-hidden": "true",
|
|
21
27
|
ref: svgRef,
|
|
22
28
|
"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
|
-
|
|
29
|
+
}, props), {}, {
|
|
30
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
31
|
+
id: titleId,
|
|
32
|
+
children: title
|
|
33
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
34
|
+
id: patternId,
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 8,
|
|
38
|
+
height: 8,
|
|
39
|
+
patternUnits: "userSpaceOnUse",
|
|
40
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
41
|
+
x: 1,
|
|
42
|
+
width: 1,
|
|
43
|
+
height: 1,
|
|
44
|
+
fill: "currentColor"
|
|
45
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
46
|
+
width: 1,
|
|
47
|
+
height: 1,
|
|
48
|
+
fill: "currentColor"
|
|
49
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
50
|
+
x: 2,
|
|
51
|
+
width: 1,
|
|
52
|
+
height: 1,
|
|
53
|
+
fill: "currentColor"
|
|
54
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
55
|
+
x: 3,
|
|
56
|
+
width: 1,
|
|
57
|
+
height: 1,
|
|
58
|
+
fill: "currentColor"
|
|
59
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
60
|
+
x: 1,
|
|
61
|
+
y: 4,
|
|
62
|
+
width: 1,
|
|
63
|
+
height: 1,
|
|
64
|
+
fill: "currentColor"
|
|
65
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
66
|
+
y: 4,
|
|
67
|
+
width: 1,
|
|
68
|
+
height: 1,
|
|
69
|
+
fill: "currentColor"
|
|
70
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
71
|
+
x: 2,
|
|
72
|
+
y: 4,
|
|
73
|
+
width: 1,
|
|
74
|
+
height: 1,
|
|
75
|
+
fill: "currentColor"
|
|
76
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
77
|
+
x: 3,
|
|
78
|
+
y: 4,
|
|
79
|
+
width: 1,
|
|
80
|
+
height: 1,
|
|
81
|
+
fill: "currentColor"
|
|
82
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
83
|
+
x: 5,
|
|
84
|
+
width: 1,
|
|
85
|
+
height: 1,
|
|
86
|
+
fill: "currentColor"
|
|
87
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
88
|
+
x: 4,
|
|
89
|
+
width: 1,
|
|
90
|
+
height: 1,
|
|
91
|
+
fill: "currentColor"
|
|
92
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
93
|
+
x: 6,
|
|
94
|
+
width: 1,
|
|
95
|
+
height: 1,
|
|
96
|
+
fill: "currentColor"
|
|
97
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
98
|
+
x: 7,
|
|
99
|
+
width: 1,
|
|
100
|
+
height: 1,
|
|
101
|
+
fill: "currentColor"
|
|
102
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
103
|
+
x: 5,
|
|
104
|
+
y: 4,
|
|
105
|
+
width: 1,
|
|
106
|
+
height: 1,
|
|
107
|
+
fill: "currentColor"
|
|
108
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
109
|
+
x: 4,
|
|
110
|
+
y: 4,
|
|
111
|
+
width: 1,
|
|
112
|
+
height: 1,
|
|
113
|
+
fill: "currentColor"
|
|
114
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
115
|
+
x: 6,
|
|
116
|
+
y: 4,
|
|
117
|
+
width: 1,
|
|
118
|
+
height: 1,
|
|
119
|
+
fill: "currentColor"
|
|
120
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
121
|
+
x: 7,
|
|
122
|
+
y: 4,
|
|
123
|
+
width: 1,
|
|
124
|
+
height: 1,
|
|
125
|
+
fill: "currentColor"
|
|
126
|
+
})]
|
|
127
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
128
|
+
width: "100%",
|
|
129
|
+
height: "100%",
|
|
130
|
+
fill: "url(#".concat(patternId, ")")
|
|
131
|
+
})]
|
|
122
132
|
}));
|
|
123
133
|
});
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"url": "https://github.com/Codecademy/gamut/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-styles": "14.2.
|
|
8
|
-
"@codecademy/variance": "0.20.
|
|
7
|
+
"@codecademy/gamut-styles": "14.2.3-alpha.b44e47.0",
|
|
8
|
+
"@codecademy/variance": "0.20.5-alpha.b44e47.0",
|
|
9
9
|
"classnames": "^2.2.5"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"build": "nx build @codecademy/gamut-patterns"
|
|
43
43
|
},
|
|
44
44
|
"sideEffects": false,
|
|
45
|
-
"version": "0.8.
|
|
46
|
-
"gitHead": "
|
|
45
|
+
"version": "0.8.20-alpha.b44e47.0",
|
|
46
|
+
"gitHead": "9342213b2938ef038d15d15265d11838ba9fec93"
|
|
47
47
|
}
|