@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,64 +1,106 @@
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/ExRegular.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 ExRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Ex 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('ExRegular');
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
- x: 1,
34
- width: 1,
35
- height: 1,
36
- fill: "currentColor"
37
- }), /*#__PURE__*/React.createElement("rect", {
38
- y: 1,
39
- width: 1,
40
- height: 1,
41
- fill: "currentColor"
42
- }), /*#__PURE__*/React.createElement("rect", {
43
- x: 1,
44
- y: 2,
45
- width: 1,
46
- height: 1,
47
- fill: "currentColor"
48
- }), /*#__PURE__*/React.createElement("rect", {
49
- x: 7,
50
- width: 1,
51
- height: 1,
52
- fill: "currentColor"
53
- }), /*#__PURE__*/React.createElement("rect", {
54
- x: 7,
55
- y: 2,
56
- width: 1,
57
- height: 1,
58
- fill: "currentColor"
59
- })), /*#__PURE__*/React.createElement("rect", {
60
- width: "100%",
61
- height: "100%",
62
- fill: "url(#".concat(patternId, ")")
63
- }));
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
+ x: 1,
42
+ width: 1,
43
+ height: 1,
44
+ fill: "currentColor"
45
+ }, void 0, false, {
46
+ fileName: _jsxFileName,
47
+ lineNumber: 25,
48
+ columnNumber: 11
49
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
50
+ y: 1,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }, void 0, false, {
55
+ fileName: _jsxFileName,
56
+ lineNumber: 26,
57
+ columnNumber: 11
58
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
59
+ x: 1,
60
+ y: 2,
61
+ width: 1,
62
+ height: 1,
63
+ fill: "currentColor"
64
+ }, void 0, false, {
65
+ fileName: _jsxFileName,
66
+ lineNumber: 27,
67
+ columnNumber: 11
68
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
69
+ x: 7,
70
+ width: 1,
71
+ height: 1,
72
+ fill: "currentColor"
73
+ }, void 0, false, {
74
+ fileName: _jsxFileName,
75
+ lineNumber: 28,
76
+ columnNumber: 11
77
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
78
+ x: 7,
79
+ y: 2,
80
+ width: 1,
81
+ height: 1,
82
+ fill: "currentColor"
83
+ }, void 0, false, {
84
+ fileName: _jsxFileName,
85
+ lineNumber: 29,
86
+ columnNumber: 11
87
+ }, _this)]
88
+ }, void 0, true, {
89
+ fileName: _jsxFileName,
90
+ lineNumber: 17,
91
+ columnNumber: 9
92
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
93
+ width: "100%",
94
+ height: "100%",
95
+ fill: "url(#" + patternId + ")"
96
+ }, void 0, false, {
97
+ fileName: _jsxFileName,
98
+ lineNumber: 31,
99
+ columnNumber: 9
100
+ }, _this)]
101
+ }), void 0, true, {
102
+ fileName: _jsxFileName,
103
+ lineNumber: 8,
104
+ columnNumber: 7
105
+ }, _this);
64
106
  });
@@ -1,58 +1,96 @@
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/FlowerDense.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 FlowerDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Flower 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('FlowerDense');
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
- x: 1,
38
- y: 1,
39
- width: 1,
40
- height: 1,
41
- fill: "currentColor"
42
- }), /*#__PURE__*/React.createElement("rect", {
43
- y: 2,
44
- width: 1,
45
- height: 1,
46
- fill: "currentColor"
47
- }), /*#__PURE__*/React.createElement("rect", {
48
- x: 3,
49
- y: 1,
50
- width: 1,
51
- height: 1,
52
- fill: "currentColor"
53
- })), /*#__PURE__*/React.createElement("rect", {
54
- width: "100%",
55
- height: "100%",
56
- fill: "url(#".concat(patternId, ")")
57
- }));
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
+ x: 1,
50
+ y: 1,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }, void 0, false, {
55
+ fileName: _jsxFileName,
56
+ lineNumber: 26,
57
+ columnNumber: 11
58
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
59
+ y: 2,
60
+ width: 1,
61
+ height: 1,
62
+ fill: "currentColor"
63
+ }, void 0, false, {
64
+ fileName: _jsxFileName,
65
+ lineNumber: 27,
66
+ columnNumber: 11
67
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
68
+ x: 3,
69
+ y: 1,
70
+ width: 1,
71
+ height: 1,
72
+ fill: "currentColor"
73
+ }, void 0, false, {
74
+ fileName: _jsxFileName,
75
+ lineNumber: 28,
76
+ columnNumber: 11
77
+ }, _this)]
78
+ }, void 0, true, {
79
+ fileName: _jsxFileName,
80
+ lineNumber: 17,
81
+ columnNumber: 9
82
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
83
+ width: "100%",
84
+ height: "100%",
85
+ fill: "url(#" + patternId + ")"
86
+ }, void 0, false, {
87
+ fileName: _jsxFileName,
88
+ lineNumber: 30,
89
+ columnNumber: 9
90
+ }, _this)]
91
+ }), void 0, true, {
92
+ fileName: _jsxFileName,
93
+ lineNumber: 8,
94
+ columnNumber: 7
95
+ }, _this);
58
96
  });
@@ -1,58 +1,96 @@
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/FlowerLoose.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 FlowerLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Flower 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('FlowerLoose');
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
- x: 1,
38
- y: 1,
39
- width: 1,
40
- height: 1,
41
- fill: "currentColor"
42
- }), /*#__PURE__*/React.createElement("rect", {
43
- y: 2,
44
- width: 1,
45
- height: 1,
46
- fill: "currentColor"
47
- }), /*#__PURE__*/React.createElement("rect", {
48
- x: 15,
49
- y: 1,
50
- width: 1,
51
- height: 1,
52
- fill: "currentColor"
53
- })), /*#__PURE__*/React.createElement("rect", {
54
- width: "100%",
55
- height: "100%",
56
- fill: "url(#".concat(patternId, ")")
57
- }));
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
+ x: 1,
50
+ y: 1,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }, void 0, false, {
55
+ fileName: _jsxFileName,
56
+ lineNumber: 26,
57
+ columnNumber: 11
58
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
59
+ y: 2,
60
+ width: 1,
61
+ height: 1,
62
+ fill: "currentColor"
63
+ }, void 0, false, {
64
+ fileName: _jsxFileName,
65
+ lineNumber: 27,
66
+ columnNumber: 11
67
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
68
+ x: 15,
69
+ y: 1,
70
+ width: 1,
71
+ height: 1,
72
+ fill: "currentColor"
73
+ }, void 0, false, {
74
+ fileName: _jsxFileName,
75
+ lineNumber: 28,
76
+ columnNumber: 11
77
+ }, _this)]
78
+ }, void 0, true, {
79
+ fileName: _jsxFileName,
80
+ lineNumber: 17,
81
+ columnNumber: 9
82
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
83
+ width: "100%",
84
+ height: "100%",
85
+ fill: "url(#" + patternId + ")"
86
+ }, void 0, false, {
87
+ fileName: _jsxFileName,
88
+ lineNumber: 30,
89
+ columnNumber: 9
90
+ }, _this)]
91
+ }), void 0, true, {
92
+ fileName: _jsxFileName,
93
+ lineNumber: 8,
94
+ columnNumber: 7
95
+ }, _this);
58
96
  });
@@ -1,58 +1,96 @@
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/FlowerRegular.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 FlowerRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
11
13
  var _ref$title = _ref.title,
12
14
  title = _ref$title === void 0 ? 'Flower 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('FlowerRegular');
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
- x: 1,
38
- y: 1,
39
- width: 1,
40
- height: 1,
41
- fill: "currentColor"
42
- }), /*#__PURE__*/React.createElement("rect", {
43
- y: 2,
44
- width: 1,
45
- height: 1,
46
- fill: "currentColor"
47
- }), /*#__PURE__*/React.createElement("rect", {
48
- x: 7,
49
- y: 1,
50
- width: 1,
51
- height: 1,
52
- fill: "currentColor"
53
- })), /*#__PURE__*/React.createElement("rect", {
54
- width: "100%",
55
- height: "100%",
56
- fill: "url(#".concat(patternId, ")")
57
- }));
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
+ x: 1,
50
+ y: 1,
51
+ width: 1,
52
+ height: 1,
53
+ fill: "currentColor"
54
+ }, void 0, false, {
55
+ fileName: _jsxFileName,
56
+ lineNumber: 26,
57
+ columnNumber: 11
58
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
59
+ y: 2,
60
+ width: 1,
61
+ height: 1,
62
+ fill: "currentColor"
63
+ }, void 0, false, {
64
+ fileName: _jsxFileName,
65
+ lineNumber: 27,
66
+ columnNumber: 11
67
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
68
+ x: 7,
69
+ y: 1,
70
+ width: 1,
71
+ height: 1,
72
+ fill: "currentColor"
73
+ }, void 0, false, {
74
+ fileName: _jsxFileName,
75
+ lineNumber: 28,
76
+ columnNumber: 11
77
+ }, _this)]
78
+ }, void 0, true, {
79
+ fileName: _jsxFileName,
80
+ lineNumber: 17,
81
+ columnNumber: 9
82
+ }, _this), /*#__PURE__*/_jsxDEV("rect", {
83
+ width: "100%",
84
+ height: "100%",
85
+ fill: "url(#" + patternId + ")"
86
+ }, void 0, false, {
87
+ fileName: _jsxFileName,
88
+ lineNumber: 30,
89
+ columnNumber: 9
90
+ }, _this)]
91
+ }), void 0, true, {
92
+ fileName: _jsxFileName,
93
+ lineNumber: 8,
94
+ columnNumber: 7
95
+ }, _this);
58
96
  });