@codecademy/gamut-patterns 1.0.0-alpha.f6cb5a.0 → 1.0.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 +37 -39
- package/dist/patterns/CheckerLoose.js +37 -39
- package/dist/patterns/CheckerRegular.js +37 -39
- package/dist/patterns/DiagonalADense.js +71 -73
- package/dist/patterns/DiagonalALoose.js +215 -217
- package/dist/patterns/DiagonalARegular.js +119 -121
- package/dist/patterns/DiagonalBDense.js +53 -55
- package/dist/patterns/DiagonalBLoose.js +121 -123
- package/dist/patterns/DiagonalBRegular.js +77 -79
- package/dist/patterns/DotDense.js +32 -34
- package/dist/patterns/DotLoose.js +75 -77
- package/dist/patterns/DotRegular.js +32 -34
- package/dist/patterns/ExDense.js +54 -56
- package/dist/patterns/ExLoose.js +54 -56
- package/dist/patterns/ExRegular.js +54 -56
- package/dist/patterns/FlowerDense.js +48 -50
- package/dist/patterns/FlowerLoose.js +48 -50
- package/dist/patterns/FlowerRegular.js +48 -50
- package/dist/patterns/GridDense.js +47 -49
- package/dist/patterns/GridLoose.js +47 -49
- package/dist/patterns/GridRegular.js +47 -49
- package/dist/patterns/Herringbone.js +65 -67
- package/dist/patterns/RainDense.js +37 -39
- package/dist/patterns/RainLoose.js +37 -39
- package/dist/patterns/RainRegular.js +37 -39
- package/dist/patterns/StripeDense.js +69 -71
- package/dist/patterns/StripeLoose.js +201 -203
- package/dist/patterns/StripeRegular.js +113 -115
- package/dist/props.d.ts +141 -32
- package/dist/props.js +14 -6
- package/dist/types.js +1 -0
- package/dist/usePatternId.js +5 -8
- package/package.json +17 -30
- package/.svgo.yml +0 -11
- package/CHANGELOG.md +0 -329
- package/LICENSE +0 -21
- package/babel.config.js +0 -5
- package/emotion-plugin.js +0 -46
- package/index-template.js +0 -10
- package/jest.config.js +0 -1
- package/pattern-template.js +0 -30
- package/svgr.config.js +0 -29
- package/tsconfig.json +0 -12
|
@@ -1,57 +1,55 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const GridDense = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Grid Dense',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('GridDense');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
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
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 4,
|
|
26
|
+
height: 4,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
width: 1,
|
|
30
|
+
height: 1,
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
33
|
+
y: 2,
|
|
34
|
+
width: 1,
|
|
35
|
+
height: 1,
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
38
|
+
x: 2,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
x: 2,
|
|
44
|
+
y: 2,
|
|
45
|
+
width: 1,
|
|
46
|
+
height: 1,
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
})]
|
|
49
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
50
|
+
width: "100%",
|
|
51
|
+
height: "100%",
|
|
52
|
+
fill: `url(#${patternId})`
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
57
55
|
});
|
|
@@ -1,57 +1,55 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const GridLoose = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Grid Loose',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('GridLoose');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
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
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 16,
|
|
26
|
+
height: 16,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
width: 1,
|
|
30
|
+
height: 1,
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
33
|
+
y: 8,
|
|
34
|
+
width: 1,
|
|
35
|
+
height: 1,
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
38
|
+
x: 8,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
x: 8,
|
|
44
|
+
y: 8,
|
|
45
|
+
width: 1,
|
|
46
|
+
height: 1,
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
})]
|
|
49
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
50
|
+
width: "100%",
|
|
51
|
+
height: "100%",
|
|
52
|
+
fill: `url(#${patternId})`
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
57
55
|
});
|
|
@@ -1,57 +1,55 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const GridRegular = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Grid Regular',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('GridRegular');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
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
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 8,
|
|
26
|
+
height: 8,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
width: 1,
|
|
30
|
+
height: 1,
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
33
|
+
y: 4,
|
|
34
|
+
width: 1,
|
|
35
|
+
height: 1,
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
38
|
+
x: 4,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
x: 4,
|
|
44
|
+
y: 4,
|
|
45
|
+
width: 1,
|
|
46
|
+
height: 1,
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
})]
|
|
49
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
50
|
+
width: "100%",
|
|
51
|
+
height: "100%",
|
|
52
|
+
fill: `url(#${patternId})`
|
|
53
|
+
})]
|
|
54
|
+
});
|
|
57
55
|
});
|
|
@@ -1,75 +1,73 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const Herringbone = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Herringbone',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('Herringbone');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
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
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 4,
|
|
26
|
+
height: 4,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
y: 1,
|
|
30
|
+
width: 1,
|
|
31
|
+
height: 1,
|
|
32
|
+
fill: "herringbone"
|
|
33
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
34
|
+
x: 1,
|
|
35
|
+
y: 2,
|
|
36
|
+
width: 1,
|
|
37
|
+
height: 1,
|
|
38
|
+
fill: "herringbone"
|
|
39
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
40
|
+
x: 3,
|
|
41
|
+
width: 1,
|
|
42
|
+
height: 1,
|
|
43
|
+
fill: "herringbone"
|
|
44
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
45
|
+
x: 2,
|
|
46
|
+
width: 1,
|
|
47
|
+
height: 1,
|
|
48
|
+
fill: "herringbone"
|
|
49
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
50
|
+
x: 3,
|
|
51
|
+
y: 1,
|
|
52
|
+
width: 1,
|
|
53
|
+
height: 1,
|
|
54
|
+
fill: "herringbone"
|
|
55
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
56
|
+
x: 3,
|
|
57
|
+
y: 3,
|
|
58
|
+
width: 1,
|
|
59
|
+
height: 1,
|
|
60
|
+
fill: "herringbone"
|
|
61
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
62
|
+
y: 3,
|
|
63
|
+
width: 1,
|
|
64
|
+
height: 1,
|
|
65
|
+
fill: "herringbone"
|
|
66
|
+
})]
|
|
67
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
68
|
+
width: "100%",
|
|
69
|
+
height: "100%",
|
|
70
|
+
fill: `url(#${patternId})`
|
|
71
|
+
})]
|
|
72
|
+
});
|
|
75
73
|
});
|
|
@@ -1,47 +1,45 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const RainDense = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Rain Dense',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('RainDense');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 4,
|
|
26
|
+
height: 4,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
width: 1,
|
|
30
|
+
height: 1,
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
33
|
+
x: 1,
|
|
34
|
+
y: 1,
|
|
35
|
+
width: 1,
|
|
36
|
+
height: 1,
|
|
37
|
+
fill: "currentColor"
|
|
38
|
+
})]
|
|
39
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
40
|
+
width: "100%",
|
|
41
|
+
height: "100%",
|
|
42
|
+
fill: `url(#${patternId})`
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
47
45
|
});
|
|
@@ -1,47 +1,45 @@
|
|
|
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); }
|
|
2
|
-
|
|
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
|
-
|
|
7
1
|
import * as React from 'react';
|
|
8
2
|
import { Svg } from '../props';
|
|
9
3
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return /*#__PURE__*/
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
export const RainLoose = /*#__PURE__*/React.forwardRef(({
|
|
6
|
+
title = 'Rain Loose',
|
|
7
|
+
titleId,
|
|
8
|
+
...props
|
|
9
|
+
}, svgRef) => {
|
|
10
|
+
const patternId = usePatternId('RainLoose');
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
18
12
|
fill: "currentColor",
|
|
19
13
|
role: "img",
|
|
20
14
|
"aria-hidden": "true",
|
|
21
15
|
ref: svgRef,
|
|
22
|
-
"aria-labelledby": titleId
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
16
|
+
"aria-labelledby": titleId,
|
|
17
|
+
...props,
|
|
18
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
19
|
+
id: titleId,
|
|
20
|
+
children: title
|
|
21
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
22
|
+
id: patternId,
|
|
23
|
+
x: 0,
|
|
24
|
+
y: 0,
|
|
25
|
+
width: 16,
|
|
26
|
+
height: 16,
|
|
27
|
+
patternUnits: "userSpaceOnUse",
|
|
28
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
29
|
+
width: 1,
|
|
30
|
+
height: 1,
|
|
31
|
+
fill: "currentColor"
|
|
32
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
33
|
+
x: 1,
|
|
34
|
+
y: 1,
|
|
35
|
+
width: 1,
|
|
36
|
+
height: 1,
|
|
37
|
+
fill: "currentColor"
|
|
38
|
+
})]
|
|
39
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
40
|
+
width: "100%",
|
|
41
|
+
height: "100%",
|
|
42
|
+
fill: `url(#${patternId})`
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
47
45
|
});
|