@codecademy/gamut-patterns 1.0.0-alpha.0f9d49.0 → 1.0.0-alpha.31b187.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/CHANGELOG.md +6 -1
- package/dist/patterns/CheckerDense.d.ts +1 -1
- package/dist/patterns/CheckerDense.js +1 -1
- package/dist/patterns/CheckerLoose.d.ts +1 -1
- package/dist/patterns/CheckerLoose.js +1 -1
- package/dist/patterns/CheckerRegular.d.ts +1 -1
- package/dist/patterns/CheckerRegular.js +1 -1
- package/dist/patterns/DiagonalADense.d.ts +1 -1
- package/dist/patterns/DiagonalADense.js +1 -1
- package/dist/patterns/DiagonalALoose.d.ts +1 -1
- package/dist/patterns/DiagonalALoose.js +1 -1
- package/dist/patterns/DiagonalARegular.d.ts +1 -1
- package/dist/patterns/DiagonalARegular.js +1 -1
- package/dist/patterns/DiagonalBDense.d.ts +1 -1
- package/dist/patterns/DiagonalBDense.js +1 -1
- package/dist/patterns/DiagonalBLoose.d.ts +1 -1
- package/dist/patterns/DiagonalBLoose.js +1 -1
- package/dist/patterns/DiagonalBRegular.d.ts +1 -1
- package/dist/patterns/DiagonalBRegular.js +1 -1
- package/dist/patterns/DotDense.d.ts +1 -1
- package/dist/patterns/DotDense.js +1 -1
- package/dist/patterns/DotLoose.d.ts +1 -1
- package/dist/patterns/DotLoose.js +1 -1
- package/dist/patterns/DotRegular.d.ts +1 -1
- package/dist/patterns/DotRegular.js +1 -1
- package/dist/patterns/ExDense.d.ts +1 -1
- package/dist/patterns/ExDense.js +1 -1
- package/dist/patterns/ExLoose.d.ts +1 -1
- package/dist/patterns/ExLoose.js +1 -1
- package/dist/patterns/ExRegular.d.ts +1 -1
- package/dist/patterns/ExRegular.js +1 -1
- package/dist/patterns/FlowerDense.d.ts +1 -1
- package/dist/patterns/FlowerDense.js +1 -1
- package/dist/patterns/FlowerLoose.d.ts +1 -1
- package/dist/patterns/FlowerLoose.js +1 -1
- package/dist/patterns/FlowerRegular.d.ts +1 -1
- package/dist/patterns/FlowerRegular.js +1 -1
- package/dist/patterns/GridDense.d.ts +1 -1
- package/dist/patterns/GridDense.js +1 -1
- package/dist/patterns/GridLoose.d.ts +1 -1
- package/dist/patterns/GridLoose.js +1 -1
- package/dist/patterns/GridRegular.d.ts +1 -1
- package/dist/patterns/GridRegular.js +1 -1
- package/dist/patterns/Herringbone.d.ts +1 -1
- package/dist/patterns/Herringbone.js +1 -1
- package/dist/patterns/RainDense.d.ts +1 -1
- package/dist/patterns/RainDense.js +1 -1
- package/dist/patterns/RainLoose.d.ts +1 -1
- package/dist/patterns/RainLoose.js +1 -1
- package/dist/patterns/RainRegular.d.ts +1 -1
- package/dist/patterns/RainRegular.js +1 -1
- package/dist/patterns/StripeDense.d.ts +1 -1
- package/dist/patterns/StripeDense.js +1 -1
- package/dist/patterns/StripeLoose.d.ts +1 -1
- package/dist/patterns/StripeLoose.js +1 -1
- package/dist/patterns/StripeRegular.d.ts +1 -1
- package/dist/patterns/StripeRegular.js +1 -1
- package/package.json +4 -4
- package/{icon-template.js → pattern-template.js} +5 -3
- package/svgr.config.js +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const RainRegular: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const RainRegular: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -7,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Svg } from '../props';
|
|
9
9
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
export var RainRegular = /*#__PURE__*/React.forwardRef(function
|
|
10
|
+
export var RainRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
11
|
var _ref$title = _ref.title,
|
|
12
12
|
title = _ref$title === void 0 ? 'Rain Regular' : _ref$title,
|
|
13
13
|
titleId = _ref.titleId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const StripeDense: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const StripeDense: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -7,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Svg } from '../props';
|
|
9
9
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
export var StripeDense = /*#__PURE__*/React.forwardRef(function
|
|
10
|
+
export var StripeDense = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
11
|
var _ref$title = _ref.title,
|
|
12
12
|
title = _ref$title === void 0 ? 'Stripe Dense' : _ref$title,
|
|
13
13
|
titleId = _ref.titleId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const StripeLoose: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const StripeLoose: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -7,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Svg } from '../props';
|
|
9
9
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
export var StripeLoose = /*#__PURE__*/React.forwardRef(function
|
|
10
|
+
export var StripeLoose = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
11
|
var _ref$title = _ref.title,
|
|
12
12
|
title = _ref$title === void 0 ? 'Stripe Loose' : _ref$title,
|
|
13
13
|
titleId = _ref.titleId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PatternProps } from '../props';
|
|
3
|
-
export declare const StripeRegular: React.ForwardRefExoticComponent<
|
|
3
|
+
export declare const StripeRegular: React.ForwardRefExoticComponent<PatternProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -7,7 +7,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import { Svg } from '../props';
|
|
9
9
|
import { usePatternId } from '../usePatternId';
|
|
10
|
-
export var StripeRegular = /*#__PURE__*/React.forwardRef(function
|
|
10
|
+
export var StripeRegular = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
|
|
11
11
|
var _ref$title = _ref.title,
|
|
12
12
|
title = _ref$title === void 0 ? 'Stripe Regular' : _ref$title,
|
|
13
13
|
titleId = _ref.titleId,
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"url": "https://github.com/Codecademy/gamut/issues"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/gamut-styles": "13.0.0-alpha.
|
|
8
|
-
"@codecademy/variance": "1.0.0-alpha.
|
|
7
|
+
"@codecademy/gamut-styles": "13.0.0-alpha.31b187.0",
|
|
8
|
+
"@codecademy/variance": "1.0.0-alpha.31b187.0",
|
|
9
9
|
"classnames": "^2.2.5"
|
|
10
10
|
},
|
|
11
11
|
"description": "Pattern library for Codecademy",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"lernaBuildTask": "yarn build"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
|
-
"version": "1.0.0-alpha.
|
|
47
|
-
"gitHead": "
|
|
46
|
+
"version": "1.0.0-alpha.31b187.0",
|
|
47
|
+
"gitHead": "8a2ac22a7d780e780c6b5e5e1b71793f5b62fffd"
|
|
48
48
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
2
|
const { startCase } = require('lodash');
|
|
3
3
|
|
|
4
|
-
function
|
|
4
|
+
function patternTemplate(api, opts, { jsx }) {
|
|
5
5
|
const template = api.template.smart({ plugins: ['jsx', 'typescript'] });
|
|
6
6
|
const { componentName, filePath } = opts.state;
|
|
7
7
|
const exportName = componentName.replace('Svg', '');
|
|
@@ -22,7 +22,9 @@ function iconTemplate(api, opts, { jsx }) {
|
|
|
22
22
|
const patternId = usePatternId('${exportName}');
|
|
23
23
|
|
|
24
24
|
return ${jsx};
|
|
25
|
-
})
|
|
25
|
+
}) as React.ForwardRefExoticComponent<
|
|
26
|
+
PatternProps & React.RefAttributes<SVGSVGElement>
|
|
27
|
+
>;
|
|
26
28
|
`;
|
|
27
29
|
}
|
|
28
|
-
module.exports =
|
|
30
|
+
module.exports = patternTemplate;
|
package/svgr.config.js
CHANGED