@codecademy/gamut-patterns 1.0.0-alpha.aa37ee.0 → 1.0.0-alpha.b02418.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/LICENSE +1 -1
- package/dist/patterns/CheckerDense.d.ts +1 -1
- package/dist/patterns/CheckerDense.js +40 -33
- package/dist/patterns/CheckerLoose.d.ts +1 -1
- package/dist/patterns/CheckerLoose.js +40 -33
- package/dist/patterns/CheckerRegular.d.ts +1 -1
- package/dist/patterns/CheckerRegular.js +40 -33
- package/dist/patterns/DiagonalADense.d.ts +1 -1
- package/dist/patterns/DiagonalADense.js +74 -67
- package/dist/patterns/DiagonalALoose.d.ts +1 -1
- package/dist/patterns/DiagonalALoose.js +218 -211
- package/dist/patterns/DiagonalARegular.d.ts +1 -1
- package/dist/patterns/DiagonalARegular.js +122 -115
- package/dist/patterns/DiagonalBDense.d.ts +1 -1
- package/dist/patterns/DiagonalBDense.js +56 -49
- package/dist/patterns/DiagonalBLoose.d.ts +1 -1
- package/dist/patterns/DiagonalBLoose.js +124 -117
- package/dist/patterns/DiagonalBRegular.d.ts +1 -1
- package/dist/patterns/DiagonalBRegular.js +80 -73
- package/dist/patterns/DotDense.d.ts +1 -1
- package/dist/patterns/DotDense.js +35 -28
- package/dist/patterns/DotLoose.d.ts +1 -1
- package/dist/patterns/DotLoose.js +78 -71
- package/dist/patterns/DotRegular.d.ts +1 -1
- package/dist/patterns/DotRegular.js +35 -28
- package/dist/patterns/ExDense.d.ts +1 -1
- package/dist/patterns/ExDense.js +57 -50
- package/dist/patterns/ExLoose.d.ts +1 -1
- package/dist/patterns/ExLoose.js +57 -50
- package/dist/patterns/ExRegular.d.ts +1 -1
- package/dist/patterns/ExRegular.js +57 -50
- package/dist/patterns/FlowerDense.d.ts +1 -1
- package/dist/patterns/FlowerDense.js +51 -44
- package/dist/patterns/FlowerLoose.d.ts +1 -1
- package/dist/patterns/FlowerLoose.js +51 -44
- package/dist/patterns/FlowerRegular.d.ts +1 -1
- package/dist/patterns/FlowerRegular.js +51 -44
- package/dist/patterns/GridDense.d.ts +1 -1
- package/dist/patterns/GridDense.js +50 -43
- package/dist/patterns/GridLoose.d.ts +1 -1
- package/dist/patterns/GridLoose.js +50 -43
- package/dist/patterns/GridRegular.d.ts +1 -1
- package/dist/patterns/GridRegular.js +50 -43
- package/dist/patterns/Herringbone.d.ts +1 -1
- package/dist/patterns/Herringbone.js +68 -61
- package/dist/patterns/RainDense.d.ts +1 -1
- package/dist/patterns/RainDense.js +40 -33
- package/dist/patterns/RainLoose.d.ts +1 -1
- package/dist/patterns/RainLoose.js +40 -33
- package/dist/patterns/RainRegular.d.ts +1 -1
- package/dist/patterns/RainRegular.js +40 -33
- package/dist/patterns/StripeDense.d.ts +1 -1
- package/dist/patterns/StripeDense.js +72 -65
- package/dist/patterns/StripeLoose.d.ts +1 -1
- package/dist/patterns/StripeLoose.js +204 -197
- package/dist/patterns/StripeRegular.d.ts +1 -1
- package/dist/patterns/StripeRegular.js +116 -109
- package/dist/props.d.ts +1 -1
- package/dist/svg/DiagonalBDense.svg +2 -2
- package/dist/svg/DiagonalBRegular.svg +2 -2
- package/dist/types.js +1 -0
- package/package.json +16 -17
- package/.svgo.yml +0 -11
- package/CHANGELOG.md +0 -286
- package/babel.config.js +0 -5
- package/emotion-plugin.js +0 -46
- package/icon-template.js +0 -28
- package/index-template.js +0 -10
- package/jest.config.js +0 -1
- package/svgr.config.js +0 -29
- package/tsconfig.json +0 -12
|
@@ -1,131 +1,138 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
|
|
5
8
|
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
9
|
import * as React from 'react';
|
|
8
10
|
import { Svg } from '../props';
|
|
9
11
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var DiagonalBLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
15
|
var _ref$title = _ref.title,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
title = _ref$title === void 0 ? 'Diagonal B Loose' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
16
19
|
var patternId = usePatternId('DiagonalBLoose');
|
|
17
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
18
21
|
fill: "currentColor",
|
|
19
22
|
role: "img",
|
|
20
23
|
"aria-hidden": "true",
|
|
21
24
|
ref: svgRef,
|
|
22
25
|
"aria-labelledby": titleId
|
|
23
|
-
}, props),
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
26
|
+
}, props), {}, {
|
|
27
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
28
|
+
id: titleId,
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
31
|
+
id: patternId,
|
|
32
|
+
x: 0,
|
|
33
|
+
y: 0,
|
|
34
|
+
width: 16,
|
|
35
|
+
height: 16,
|
|
36
|
+
patternUnits: "userSpaceOnUse",
|
|
37
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
38
|
+
y: 15,
|
|
39
|
+
width: 1,
|
|
40
|
+
height: 1,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
43
|
+
x: 1,
|
|
44
|
+
y: 14,
|
|
45
|
+
width: 1,
|
|
46
|
+
height: 1,
|
|
47
|
+
fill: "currentColor"
|
|
48
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
49
|
+
x: 2,
|
|
50
|
+
y: 13,
|
|
51
|
+
width: 1,
|
|
52
|
+
height: 1,
|
|
53
|
+
fill: "currentColor"
|
|
54
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
55
|
+
x: 3,
|
|
56
|
+
y: 12,
|
|
57
|
+
width: 1,
|
|
58
|
+
height: 1,
|
|
59
|
+
fill: "currentColor"
|
|
60
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
61
|
+
x: 4,
|
|
62
|
+
y: 11,
|
|
63
|
+
width: 1,
|
|
64
|
+
height: 1,
|
|
65
|
+
fill: "currentColor"
|
|
66
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
67
|
+
x: 5,
|
|
68
|
+
y: 10,
|
|
69
|
+
width: 1,
|
|
70
|
+
height: 1,
|
|
71
|
+
fill: "currentColor"
|
|
72
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
73
|
+
x: 6,
|
|
74
|
+
y: 9,
|
|
75
|
+
width: 1,
|
|
76
|
+
height: 1,
|
|
77
|
+
fill: "currentColor"
|
|
78
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
79
|
+
x: 7,
|
|
80
|
+
y: 8,
|
|
81
|
+
width: 1,
|
|
82
|
+
height: 1,
|
|
83
|
+
fill: "currentColor"
|
|
84
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
85
|
+
x: 8,
|
|
86
|
+
y: 7,
|
|
87
|
+
width: 1,
|
|
88
|
+
height: 1,
|
|
89
|
+
fill: "currentColor"
|
|
90
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
91
|
+
x: 9,
|
|
92
|
+
y: 6,
|
|
93
|
+
width: 1,
|
|
94
|
+
height: 1,
|
|
95
|
+
fill: "currentColor"
|
|
96
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
97
|
+
x: 10,
|
|
98
|
+
y: 5,
|
|
99
|
+
width: 1,
|
|
100
|
+
height: 1,
|
|
101
|
+
fill: "currentColor"
|
|
102
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
103
|
+
x: 11,
|
|
104
|
+
y: 4,
|
|
105
|
+
width: 1,
|
|
106
|
+
height: 1,
|
|
107
|
+
fill: "currentColor"
|
|
108
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
109
|
+
x: 12,
|
|
110
|
+
y: 3,
|
|
111
|
+
width: 1,
|
|
112
|
+
height: 1,
|
|
113
|
+
fill: "currentColor"
|
|
114
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
115
|
+
x: 13,
|
|
116
|
+
y: 2,
|
|
117
|
+
width: 1,
|
|
118
|
+
height: 1,
|
|
119
|
+
fill: "currentColor"
|
|
120
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
121
|
+
x: 14,
|
|
122
|
+
y: 1,
|
|
123
|
+
width: 1,
|
|
124
|
+
height: 1,
|
|
125
|
+
fill: "currentColor"
|
|
126
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
127
|
+
x: 15,
|
|
128
|
+
width: 1,
|
|
129
|
+
height: 1,
|
|
130
|
+
fill: "currentColor"
|
|
131
|
+
})]
|
|
132
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
133
|
+
width: "100%",
|
|
134
|
+
height: "100%",
|
|
135
|
+
fill: "url(#".concat(patternId, ")")
|
|
136
|
+
})]
|
|
130
137
|
}));
|
|
131
138
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const DiagonalBRegular: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DiagonalBRegular: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,87 +1,94 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
|
|
5
8
|
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
9
|
import * as React from 'react';
|
|
8
10
|
import { Svg } from '../props';
|
|
9
11
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var DiagonalBRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
15
|
var _ref$title = _ref.title,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
title = _ref$title === void 0 ? 'Diagonal B Regular' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
16
19
|
var patternId = usePatternId('DiagonalBRegular');
|
|
17
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
18
21
|
fill: "currentColor",
|
|
19
22
|
role: "img",
|
|
20
23
|
"aria-hidden": "true",
|
|
21
24
|
ref: svgRef,
|
|
22
25
|
"aria-labelledby": titleId
|
|
23
|
-
}, props),
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
26
|
+
}, props), {}, {
|
|
27
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
28
|
+
id: titleId,
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, /*#__PURE__*/_jsxs("pattern", {
|
|
31
|
+
id: patternId,
|
|
32
|
+
x: 0,
|
|
33
|
+
y: 0,
|
|
34
|
+
width: 8,
|
|
35
|
+
height: 8,
|
|
36
|
+
patternUnits: "userSpaceOnUse",
|
|
37
|
+
children: [/*#__PURE__*/_jsx("rect", {
|
|
38
|
+
width: 8,
|
|
39
|
+
height: 8,
|
|
40
|
+
fill: "transparent"
|
|
41
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
42
|
+
y: 7,
|
|
43
|
+
width: 1,
|
|
44
|
+
height: 1,
|
|
45
|
+
fill: "currentColor"
|
|
46
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
47
|
+
x: 1,
|
|
48
|
+
y: 6,
|
|
49
|
+
width: 1,
|
|
50
|
+
height: 1,
|
|
51
|
+
fill: "currentColor"
|
|
52
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
53
|
+
x: 2,
|
|
54
|
+
y: 5,
|
|
55
|
+
width: 1,
|
|
56
|
+
height: 1,
|
|
57
|
+
fill: "currentColor"
|
|
58
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
59
|
+
x: 3,
|
|
60
|
+
y: 4,
|
|
61
|
+
width: 1,
|
|
62
|
+
height: 1,
|
|
63
|
+
fill: "currentColor"
|
|
64
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
65
|
+
x: 4,
|
|
66
|
+
y: 3,
|
|
67
|
+
width: 1,
|
|
68
|
+
height: 1,
|
|
69
|
+
fill: "currentColor"
|
|
70
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
71
|
+
x: 5,
|
|
72
|
+
y: 2,
|
|
73
|
+
width: 1,
|
|
74
|
+
height: 1,
|
|
75
|
+
fill: "currentColor"
|
|
76
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
77
|
+
x: 6,
|
|
78
|
+
y: 1,
|
|
79
|
+
width: 1,
|
|
80
|
+
height: 1,
|
|
81
|
+
fill: "currentColor"
|
|
82
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
83
|
+
x: 7,
|
|
84
|
+
width: 1,
|
|
85
|
+
height: 1,
|
|
86
|
+
fill: "currentColor"
|
|
87
|
+
})]
|
|
88
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
89
|
+
width: "100%",
|
|
90
|
+
height: "100%",
|
|
91
|
+
fill: "url(#".concat(patternId, ")")
|
|
92
|
+
})]
|
|
86
93
|
}));
|
|
87
94
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const DotDense: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DotDense: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,42 +1,49 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
3
7
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
|
|
5
8
|
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
9
|
import * as React from 'react';
|
|
8
10
|
import { Svg } from '../props';
|
|
9
11
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
export var DotDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
15
|
var _ref$title = _ref.title,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
title = _ref$title === void 0 ? 'Dot Dense' : _ref$title,
|
|
17
|
+
titleId = _ref.titleId,
|
|
18
|
+
props = _objectWithoutProperties(_ref, ["title", "titleId"]);
|
|
16
19
|
var patternId = usePatternId('DotDense');
|
|
17
|
-
return /*#__PURE__*/
|
|
20
|
+
return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
|
|
18
21
|
fill: "currentColor",
|
|
19
22
|
role: "img",
|
|
20
23
|
"aria-hidden": "true",
|
|
21
24
|
ref: svgRef,
|
|
22
25
|
"aria-labelledby": titleId
|
|
23
|
-
}, props),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
}, props), {}, {
|
|
27
|
+
children: [title ? /*#__PURE__*/_jsx("title", {
|
|
28
|
+
id: titleId,
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, /*#__PURE__*/_jsx("pattern", {
|
|
31
|
+
id: patternId,
|
|
32
|
+
x: 0,
|
|
33
|
+
y: 0,
|
|
34
|
+
width: 4,
|
|
35
|
+
height: 4,
|
|
36
|
+
patternUnits: "userSpaceOnUse",
|
|
37
|
+
children: /*#__PURE__*/_jsx("circle", {
|
|
38
|
+
cx: 0.5,
|
|
39
|
+
cy: 0.5,
|
|
40
|
+
r: 0.5,
|
|
41
|
+
fill: "currentColor"
|
|
42
|
+
})
|
|
43
|
+
}), /*#__PURE__*/_jsx("rect", {
|
|
44
|
+
width: "100%",
|
|
45
|
+
height: "100%",
|
|
46
|
+
fill: "url(#".concat(patternId, ")")
|
|
47
|
+
})]
|
|
41
48
|
}));
|
|
42
49
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const DotLoose: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const DotLoose: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|