@codecademy/gamut-patterns 0.8.16-alpha.5ea335.0 → 0.8.16-alpha.718461.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,8 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
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__*/React.createElement(Svg, _extends({
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), 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, ")")
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,13 +4,13 @@
4
4
  "url": "https://github.com/Codecademy/gamut/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@codecademy/gamut-styles": "14.1.2-alpha.5ea335.0",
8
- "@codecademy/variance": "0.20.4-alpha.5ea335.0",
7
+ "@codecademy/gamut-styles": "14.1.2-alpha.718461.0",
8
+ "@codecademy/variance": "0.20.4-alpha.718461.0",
9
9
  "classnames": "^2.2.5"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@svgr/cli": "5.5.0",
13
- "@testing-library/react": "^13.4.0",
13
+ "@testing-library/react": "^12.1.2",
14
14
  "lodash": "^4.17.5",
15
15
  "svgo": "^1.3.2"
16
16
  },
@@ -27,8 +27,8 @@
27
27
  "peerDependencies": {
28
28
  "@emotion/react": "^11.4.0",
29
29
  "@emotion/styled": "^11.3.0",
30
- "react": ">=18.2.0",
31
- "react-dom": ">=18.2.0"
30
+ "react": ">=17.0.2",
31
+ "react-dom": ">=17.0.2"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -42,6 +42,6 @@
42
42
  "build": "nx build @codecademy/gamut-patterns"
43
43
  },
44
44
  "sideEffects": false,
45
- "version": "0.8.16-alpha.5ea335.0",
46
- "gitHead": "497e2c87be5034d935d47d81de44a3237edc30d0"
45
+ "version": "0.8.16-alpha.718461.0",
46
+ "gitHead": "5cf488e52238fddac34d31d9573b0f621a4206d3"
47
47
  }