@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,95 +1,57 @@
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/GridDense.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 GridDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Grid Dense' : _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('GridDense');
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: 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);
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
+ }));
95
57
  });
@@ -1,95 +1,57 @@
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/GridLoose.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 GridLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Grid Loose' : _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('GridLoose');
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: 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);
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
+ }));
95
57
  });
@@ -1,95 +1,57 @@
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/GridRegular.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 GridRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Grid 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('GridRegular');
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
- 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);
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
+ }));
95
57
  });
@@ -1,125 +1,75 @@
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/Herringbone.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 Herringbone = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
13
11
  var _ref$title = _ref.title,
14
12
  title = _ref$title === void 0 ? 'Herringbone' : _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('Herringbone');
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: 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);
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
+ }));
125
75
  });