@codecademy/gamut-patterns 0.8.11 → 0.8.12-alpha.4d61d4.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 (65) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/babel.config.js +10 -3
  3. package/dist/patterns/CheckerDense.js +60 -30
  4. package/dist/patterns/CheckerLoose.js +60 -30
  5. package/dist/patterns/CheckerRegular.js +60 -30
  6. package/dist/patterns/DiagonalADense.js +118 -64
  7. package/dist/patterns/DiagonalALoose.js +358 -208
  8. package/dist/patterns/DiagonalARegular.js +198 -112
  9. package/dist/patterns/DiagonalBDense.js +88 -46
  10. package/dist/patterns/DiagonalBLoose.js +200 -114
  11. package/dist/patterns/DiagonalBRegular.js +128 -70
  12. package/dist/patterns/DotDense.js +51 -25
  13. package/dist/patterns/DotLoose.js +126 -68
  14. package/dist/patterns/DotRegular.js +51 -25
  15. package/dist/patterns/ExDense.js +89 -47
  16. package/dist/patterns/ExLoose.js +89 -47
  17. package/dist/patterns/ExRegular.js +89 -47
  18. package/dist/patterns/FlowerDense.js +79 -41
  19. package/dist/patterns/FlowerLoose.js +79 -41
  20. package/dist/patterns/FlowerRegular.js +79 -41
  21. package/dist/patterns/GridDense.js +78 -40
  22. package/dist/patterns/GridLoose.js +78 -40
  23. package/dist/patterns/GridRegular.js +78 -40
  24. package/dist/patterns/Herringbone.js +108 -58
  25. package/dist/patterns/RainDense.js +60 -30
  26. package/dist/patterns/RainLoose.js +60 -30
  27. package/dist/patterns/RainRegular.js +60 -30
  28. package/dist/patterns/StripeDense.js +116 -62
  29. package/dist/patterns/StripeLoose.js +344 -194
  30. package/dist/patterns/StripeRegular.js +192 -106
  31. package/dist/props.d.ts +5 -5
  32. package/dist/types.js +1 -0
  33. package/dist/usePatternId.js +2 -2
  34. package/package.json +4 -4
  35. package/project.json +10 -1
  36. package/tsconfig.json +5 -2
  37. package/dist/svg/CheckerDense.svg +0 -14
  38. package/dist/svg/CheckerLoose.svg +0 -14
  39. package/dist/svg/CheckerRegular.svg +0 -14
  40. package/dist/svg/DiagonalADense.svg +0 -20
  41. package/dist/svg/DiagonalALoose.svg +0 -44
  42. package/dist/svg/DiagonalARegular.svg +0 -28
  43. package/dist/svg/DiagonalBDense.svg +0 -24
  44. package/dist/svg/DiagonalBLoose.svg +0 -28
  45. package/dist/svg/DiagonalBRegular.svg +0 -28
  46. package/dist/svg/DotDense.svg +0 -13
  47. package/dist/svg/DotLoose.svg +0 -40
  48. package/dist/svg/DotRegular.svg +0 -13
  49. package/dist/svg/ExDense.svg +0 -17
  50. package/dist/svg/ExLoose.svg +0 -17
  51. package/dist/svg/ExRegular.svg +0 -17
  52. package/dist/svg/FlowerDense.svg +0 -16
  53. package/dist/svg/FlowerLoose.svg +0 -16
  54. package/dist/svg/FlowerRegular.svg +0 -16
  55. package/dist/svg/GridDense.svg +0 -16
  56. package/dist/svg/GridLoose.svg +0 -16
  57. package/dist/svg/GridRegular.svg +0 -16
  58. package/dist/svg/Herringbone.svg +0 -19
  59. package/dist/svg/RainDense.svg +0 -14
  60. package/dist/svg/RainLoose.svg +0 -14
  61. package/dist/svg/RainRegular.svg +0 -14
  62. package/dist/svg/StripeDense.svg +0 -20
  63. package/dist/svg/StripeLoose.svg +0 -44
  64. package/dist/svg/StripeRegular.svg +0 -28
  65. package/jest.config.js +0 -1
@@ -1,57 +1,95 @@
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); }
1
+ import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
+ var _excluded = ["title", "titleId"];
2
3
 
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; }
4
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/GridDense.tsx",
5
+ _this = this;
6
6
 
7
+ import "core-js/modules/es.object.assign.js";
7
8
  import * as React from 'react';
8
9
  import { Svg } from '../props';
9
10
  import { usePatternId } from '../usePatternId';
11
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
10
12
  export var GridDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Grid Dense' : _ref$title,
13
15
  titleId = _ref.titleId,
14
- props = _objectWithoutProperties(_ref, ["title", "titleId"]);
16
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
15
17
 
16
18
  var patternId = usePatternId('GridDense');
17
- return /*#__PURE__*/React.createElement(Svg, _extends({
19
+ return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
18
20
  fill: "currentColor",
19
21
  role: "img",
20
22
  "aria-hidden": "true",
21
23
  ref: svgRef,
22
24
  "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: 4,
30
- height: 4,
31
- patternUnits: "userSpaceOnUse"
32
- }, /*#__PURE__*/React.createElement("rect", {
33
- width: 1,
34
- height: 1,
35
- fill: "currentColor"
36
- }), /*#__PURE__*/React.createElement("rect", {
37
- y: 2,
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: 2,
48
- y: 2,
49
- width: 1,
50
- height: 1,
51
- fill: "currentColor"
52
- })), /*#__PURE__*/React.createElement("rect", {
53
- width: "100%",
54
- height: "100%",
55
- fill: "url(#".concat(patternId, ")")
56
- }));
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: 4,
38
+ height: 4,
39
+ patternUnits: "userSpaceOnUse",
40
+ children: [/*#__PURE__*/_jsxDEV("rect", {
41
+ width: 1,
42
+ height: 1,
43
+ fill: "currentColor"
44
+ }, void 0, false, {
45
+ fileName: _jsxFileName,
46
+ lineNumber: 25,
47
+ columnNumber: 11
48
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
49
+ y: 2,
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: 2,
68
+ y: 2,
69
+ width: 1,
70
+ height: 1,
71
+ fill: "currentColor"
72
+ }, void 0, false, {
73
+ fileName: _jsxFileName,
74
+ lineNumber: 28,
75
+ columnNumber: 11
76
+ }, _this)]
77
+ }, void 0, true, {
78
+ fileName: _jsxFileName,
79
+ lineNumber: 17,
80
+ columnNumber: 9
81
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
82
+ width: "100%",
83
+ height: "100%",
84
+ fill: "url(#" + patternId + ")"
85
+ }, void 0, false, {
86
+ fileName: _jsxFileName,
87
+ lineNumber: 30,
88
+ columnNumber: 9
89
+ }, _this)]
90
+ }), void 0, true, {
91
+ fileName: _jsxFileName,
92
+ lineNumber: 8,
93
+ columnNumber: 7
94
+ }, _this);
57
95
  });
@@ -1,57 +1,95 @@
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); }
1
+ import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
+ var _excluded = ["title", "titleId"];
2
3
 
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; }
4
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/GridLoose.tsx",
5
+ _this = this;
6
6
 
7
+ import "core-js/modules/es.object.assign.js";
7
8
  import * as React from 'react';
8
9
  import { Svg } from '../props';
9
10
  import { usePatternId } from '../usePatternId';
11
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
10
12
  export var GridLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Grid Loose' : _ref$title,
13
15
  titleId = _ref.titleId,
14
- props = _objectWithoutProperties(_ref, ["title", "titleId"]);
16
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
15
17
 
16
18
  var patternId = usePatternId('GridLoose');
17
- return /*#__PURE__*/React.createElement(Svg, _extends({
19
+ return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
18
20
  fill: "currentColor",
19
21
  role: "img",
20
22
  "aria-hidden": "true",
21
23
  ref: svgRef,
22
24
  "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: 16,
30
- height: 16,
31
- patternUnits: "userSpaceOnUse"
32
- }, /*#__PURE__*/React.createElement("rect", {
33
- width: 1,
34
- height: 1,
35
- fill: "currentColor"
36
- }), /*#__PURE__*/React.createElement("rect", {
37
- y: 8,
38
- width: 1,
39
- height: 1,
40
- fill: "currentColor"
41
- }), /*#__PURE__*/React.createElement("rect", {
42
- x: 8,
43
- width: 1,
44
- height: 1,
45
- fill: "currentColor"
46
- }), /*#__PURE__*/React.createElement("rect", {
47
- x: 8,
48
- y: 8,
49
- width: 1,
50
- height: 1,
51
- fill: "currentColor"
52
- })), /*#__PURE__*/React.createElement("rect", {
53
- width: "100%",
54
- height: "100%",
55
- fill: "url(#".concat(patternId, ")")
56
- }));
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: 16,
38
+ height: 16,
39
+ patternUnits: "userSpaceOnUse",
40
+ children: [/*#__PURE__*/_jsxDEV("rect", {
41
+ width: 1,
42
+ height: 1,
43
+ fill: "currentColor"
44
+ }, void 0, false, {
45
+ fileName: _jsxFileName,
46
+ lineNumber: 25,
47
+ columnNumber: 11
48
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
49
+ y: 8,
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: 8,
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: 8,
68
+ y: 8,
69
+ width: 1,
70
+ height: 1,
71
+ fill: "currentColor"
72
+ }, void 0, false, {
73
+ fileName: _jsxFileName,
74
+ lineNumber: 28,
75
+ columnNumber: 11
76
+ }, _this)]
77
+ }, void 0, true, {
78
+ fileName: _jsxFileName,
79
+ lineNumber: 17,
80
+ columnNumber: 9
81
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
82
+ width: "100%",
83
+ height: "100%",
84
+ fill: "url(#" + patternId + ")"
85
+ }, void 0, false, {
86
+ fileName: _jsxFileName,
87
+ lineNumber: 30,
88
+ columnNumber: 9
89
+ }, _this)]
90
+ }), void 0, true, {
91
+ fileName: _jsxFileName,
92
+ lineNumber: 8,
93
+ columnNumber: 7
94
+ }, _this);
57
95
  });
@@ -1,57 +1,95 @@
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); }
1
+ import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
+ var _excluded = ["title", "titleId"];
2
3
 
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; }
4
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/GridRegular.tsx",
5
+ _this = this;
6
6
 
7
+ import "core-js/modules/es.object.assign.js";
7
8
  import * as React from 'react';
8
9
  import { Svg } from '../props';
9
10
  import { usePatternId } from '../usePatternId';
11
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
10
12
  export var GridRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Grid Regular' : _ref$title,
13
15
  titleId = _ref.titleId,
14
- props = _objectWithoutProperties(_ref, ["title", "titleId"]);
16
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
15
17
 
16
18
  var patternId = usePatternId('GridRegular');
17
- return /*#__PURE__*/React.createElement(Svg, _extends({
19
+ return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
18
20
  fill: "currentColor",
19
21
  role: "img",
20
22
  "aria-hidden": "true",
21
23
  ref: svgRef,
22
24
  "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
- width: 1,
34
- height: 1,
35
- fill: "currentColor"
36
- }), /*#__PURE__*/React.createElement("rect", {
37
- y: 4,
38
- width: 1,
39
- height: 1,
40
- fill: "currentColor"
41
- }), /*#__PURE__*/React.createElement("rect", {
42
- x: 4,
43
- width: 1,
44
- height: 1,
45
- fill: "currentColor"
46
- }), /*#__PURE__*/React.createElement("rect", {
47
- x: 4,
48
- y: 4,
49
- width: 1,
50
- height: 1,
51
- fill: "currentColor"
52
- })), /*#__PURE__*/React.createElement("rect", {
53
- width: "100%",
54
- height: "100%",
55
- fill: "url(#".concat(patternId, ")")
56
- }));
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
+ width: 1,
42
+ height: 1,
43
+ fill: "currentColor"
44
+ }, void 0, false, {
45
+ fileName: _jsxFileName,
46
+ lineNumber: 25,
47
+ columnNumber: 11
48
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
49
+ y: 4,
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: 4,
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: 4,
68
+ y: 4,
69
+ width: 1,
70
+ height: 1,
71
+ fill: "currentColor"
72
+ }, void 0, false, {
73
+ fileName: _jsxFileName,
74
+ lineNumber: 28,
75
+ columnNumber: 11
76
+ }, _this)]
77
+ }, void 0, true, {
78
+ fileName: _jsxFileName,
79
+ lineNumber: 17,
80
+ columnNumber: 9
81
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
82
+ width: "100%",
83
+ height: "100%",
84
+ fill: "url(#" + patternId + ")"
85
+ }, void 0, false, {
86
+ fileName: _jsxFileName,
87
+ lineNumber: 30,
88
+ columnNumber: 9
89
+ }, _this)]
90
+ }), void 0, true, {
91
+ fileName: _jsxFileName,
92
+ lineNumber: 8,
93
+ columnNumber: 7
94
+ }, _this);
57
95
  });
@@ -1,75 +1,125 @@
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); }
1
+ import _objectWithoutPropertiesLoose from "/home/circleci/repo/node_modules/@nrwl/web/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js";
2
+ var _excluded = ["title", "titleId"];
2
3
 
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; }
4
+ var _jsxFileName = "/home/circleci/repo/packages/gamut-patterns/src/patterns/Herringbone.tsx",
5
+ _this = this;
6
6
 
7
+ import "core-js/modules/es.object.assign.js";
7
8
  import * as React from 'react';
8
9
  import { Svg } from '../props';
9
10
  import { usePatternId } from '../usePatternId';
11
+ import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
10
12
  export var Herringbone = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Herringbone' : _ref$title,
13
15
  titleId = _ref.titleId,
14
- props = _objectWithoutProperties(_ref, ["title", "titleId"]);
16
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
15
17
 
16
18
  var patternId = usePatternId('Herringbone');
17
- return /*#__PURE__*/React.createElement(Svg, _extends({
19
+ return /*#__PURE__*/_jsxDEV(Svg, Object.assign({
18
20
  fill: "currentColor",
19
21
  role: "img",
20
22
  "aria-hidden": "true",
21
23
  ref: svgRef,
22
24
  "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: 4,
30
- height: 4,
31
- patternUnits: "userSpaceOnUse"
32
- }, /*#__PURE__*/React.createElement("rect", {
33
- y: 1,
34
- width: 1,
35
- height: 1,
36
- fill: "herringbone"
37
- }), /*#__PURE__*/React.createElement("rect", {
38
- x: 1,
39
- y: 2,
40
- width: 1,
41
- height: 1,
42
- fill: "herringbone"
43
- }), /*#__PURE__*/React.createElement("rect", {
44
- x: 3,
45
- width: 1,
46
- height: 1,
47
- fill: "herringbone"
48
- }), /*#__PURE__*/React.createElement("rect", {
49
- x: 2,
50
- width: 1,
51
- height: 1,
52
- fill: "herringbone"
53
- }), /*#__PURE__*/React.createElement("rect", {
54
- x: 3,
55
- y: 1,
56
- width: 1,
57
- height: 1,
58
- fill: "herringbone"
59
- }), /*#__PURE__*/React.createElement("rect", {
60
- x: 3,
61
- y: 3,
62
- width: 1,
63
- height: 1,
64
- fill: "herringbone"
65
- }), /*#__PURE__*/React.createElement("rect", {
66
- y: 3,
67
- width: 1,
68
- height: 1,
69
- fill: "herringbone"
70
- })), /*#__PURE__*/React.createElement("rect", {
71
- width: "100%",
72
- height: "100%",
73
- fill: "url(#".concat(patternId, ")")
74
- }));
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: 4,
38
+ height: 4,
39
+ patternUnits: "userSpaceOnUse",
40
+ children: [/*#__PURE__*/_jsxDEV("rect", {
41
+ y: 1,
42
+ width: 1,
43
+ height: 1,
44
+ fill: "herringbone"
45
+ }, void 0, false, {
46
+ fileName: _jsxFileName,
47
+ lineNumber: 25,
48
+ columnNumber: 11
49
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
50
+ x: 1,
51
+ y: 2,
52
+ width: 1,
53
+ height: 1,
54
+ fill: "herringbone"
55
+ }, void 0, false, {
56
+ fileName: _jsxFileName,
57
+ lineNumber: 26,
58
+ columnNumber: 11
59
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
60
+ x: 3,
61
+ width: 1,
62
+ height: 1,
63
+ fill: "herringbone"
64
+ }, void 0, false, {
65
+ fileName: _jsxFileName,
66
+ lineNumber: 27,
67
+ columnNumber: 11
68
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
69
+ x: 2,
70
+ width: 1,
71
+ height: 1,
72
+ fill: "herringbone"
73
+ }, void 0, false, {
74
+ fileName: _jsxFileName,
75
+ lineNumber: 28,
76
+ columnNumber: 11
77
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
78
+ x: 3,
79
+ y: 1,
80
+ width: 1,
81
+ height: 1,
82
+ fill: "herringbone"
83
+ }, void 0, false, {
84
+ fileName: _jsxFileName,
85
+ lineNumber: 29,
86
+ columnNumber: 11
87
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
88
+ x: 3,
89
+ y: 3,
90
+ width: 1,
91
+ height: 1,
92
+ fill: "herringbone"
93
+ }, void 0, false, {
94
+ fileName: _jsxFileName,
95
+ lineNumber: 30,
96
+ columnNumber: 11
97
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
98
+ y: 3,
99
+ width: 1,
100
+ height: 1,
101
+ fill: "herringbone"
102
+ }, void 0, false, {
103
+ fileName: _jsxFileName,
104
+ lineNumber: 31,
105
+ columnNumber: 11
106
+ }, _this)]
107
+ }, void 0, true, {
108
+ fileName: _jsxFileName,
109
+ lineNumber: 17,
110
+ columnNumber: 9
111
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
112
+ width: "100%",
113
+ height: "100%",
114
+ fill: "url(#" + patternId + ")"
115
+ }, void 0, false, {
116
+ fileName: _jsxFileName,
117
+ lineNumber: 33,
118
+ columnNumber: 9
119
+ }, _this)]
120
+ }), void 0, true, {
121
+ fileName: _jsxFileName,
122
+ lineNumber: 8,
123
+ columnNumber: 7
124
+ }, _this);
75
125
  });