@times-components/gradient 3.3.6 → 3.4.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 +27 -0
- package/babel.config.js +6 -5
- package/dist/gradient-prop-types-shared.js +29 -1
- package/dist/gradient-prop-types.base.js +29 -1
- package/dist/gradient-prop-types.js +19 -1
- package/dist/gradient.base.js +38 -1
- package/dist/gradient.js +38 -1
- package/dist/overlay-gradient.js +30 -1
- package/dist/styles/index.js +20 -1
- package/dist/utils/index.js +27 -1
- package/package.json +11 -25
- package/rnw.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.4.0](https://github.com/newsuk/times-components/compare/@times-components/gradient@3.3.8...@times-components/gradient@3.4.0) (2022-08-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **TDP-1712:** remove react-native foreverrrrr ([#3064](https://github.com/newsuk/times-components/issues/3064)) ([2a20cb5](https://github.com/newsuk/times-components/commit/2a20cb5abc10a4e7ca2d62487967f8fcf4eccb62)), closes [#3037](https://github.com/newsuk/times-components/issues/3037) [#3045](https://github.com/newsuk/times-components/issues/3045) [#3050](https://github.com/newsuk/times-components/issues/3050) [#3056](https://github.com/newsuk/times-components/issues/3056) [#3057](https://github.com/newsuk/times-components/issues/3057) [#3066](https://github.com/newsuk/times-components/issues/3066) [#3065](https://github.com/newsuk/times-components/issues/3065) [#3037](https://github.com/newsuk/times-components/issues/3037) [#3045](https://github.com/newsuk/times-components/issues/3045) [#3045](https://github.com/newsuk/times-components/issues/3045) [#3056](https://github.com/newsuk/times-components/issues/3056) [#3066](https://github.com/newsuk/times-components/issues/3066) [#3069](https://github.com/newsuk/times-components/issues/3069) [#3068](https://github.com/newsuk/times-components/issues/3068) [#3070](https://github.com/newsuk/times-components/issues/3070) [#3072](https://github.com/newsuk/times-components/issues/3072) [#3073](https://github.com/newsuk/times-components/issues/3073) [#3071](https://github.com/newsuk/times-components/issues/3071) [#3074](https://github.com/newsuk/times-components/issues/3074) [#3076](https://github.com/newsuk/times-components/issues/3076) [#3079](https://github.com/newsuk/times-components/issues/3079) [#3078](https://github.com/newsuk/times-components/issues/3078) [#3083](https://github.com/newsuk/times-components/issues/3083) [#3087](https://github.com/newsuk/times-components/issues/3087) [#3091](https://github.com/newsuk/times-components/issues/3091) [#3096](https://github.com/newsuk/times-components/issues/3096) [#3102](https://github.com/newsuk/times-components/issues/3102) [#3105](https://github.com/newsuk/times-components/issues/3105) [#3108](https://github.com/newsuk/times-components/issues/3108) [#3111](https://github.com/newsuk/times-components/issues/3111) [#3112](https://github.com/newsuk/times-components/issues/3112) [#3113](https://github.com/newsuk/times-components/issues/3113) [#3114](https://github.com/newsuk/times-components/issues/3114) [#3120](https://github.com/newsuk/times-components/issues/3120) [#3119](https://github.com/newsuk/times-components/issues/3119) [#3112](https://github.com/newsuk/times-components/issues/3112) [#3126](https://github.com/newsuk/times-components/issues/3126) [#3112](https://github.com/newsuk/times-components/issues/3112) [#3126](https://github.com/newsuk/times-components/issues/3126) [#3127](https://github.com/newsuk/times-components/issues/3127) [#3116](https://github.com/newsuk/times-components/issues/3116) [#3128](https://github.com/newsuk/times-components/issues/3128) [#3132](https://github.com/newsuk/times-components/issues/3132) [#3133](https://github.com/newsuk/times-components/issues/3133)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.3.8](https://github.com/newsuk/times-components/compare/@times-components/gradient@3.3.7...@times-components/gradient@3.3.8) (2022-08-05)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @times-components/gradient
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.3.7](https://github.com/newsuk/times-components/compare/@times-components/gradient@3.3.6...@times-components/gradient@3.3.7) (2022-07-19)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @times-components/gradient
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## [3.3.6](https://github.com/newsuk/times-components/compare/@times-components/gradient@3.3.5...@times-components/gradient@3.3.6) (2022-07-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @times-components/gradient
|
package/babel.config.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
module.exports = api => {
|
|
2
2
|
api.cache(true);
|
|
3
3
|
return {
|
|
4
|
-
plugins: [
|
|
5
|
-
|
|
6
|
-
"@babel/
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
plugins: ["babel-plugin-styled-components"],
|
|
5
|
+
presets: [
|
|
6
|
+
"@babel/preset-env",
|
|
7
|
+
"@babel/preset-react",
|
|
8
|
+
"@babel/preset-typescript"
|
|
9
|
+
]
|
|
9
10
|
};
|
|
10
11
|
};
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = exports.propTypes = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
|
|
12
|
+
var propTypes = {
|
|
13
|
+
children: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].arrayOf(_propTypes["default"].element)]),
|
|
14
|
+
degrees: _propTypes["default"].number,
|
|
15
|
+
endColour: _propTypes["default"].string,
|
|
16
|
+
endPoint: _propTypes["default"].string,
|
|
17
|
+
startColour: _propTypes["default"].string,
|
|
18
|
+
startPoint: _propTypes["default"].string,
|
|
19
|
+
style: _propTypes["default"].object
|
|
20
|
+
};
|
|
21
|
+
exports.propTypes = propTypes;
|
|
22
|
+
var defaultProps = {
|
|
23
|
+
children: null,
|
|
24
|
+
degrees: 265,
|
|
25
|
+
endPoint: "1",
|
|
26
|
+
startPoint: "0",
|
|
27
|
+
style: null
|
|
28
|
+
};
|
|
29
|
+
exports.defaultProps = defaultProps;
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.defaultProps = exports.propTypes = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _gradientPropTypes = require("./gradient-prop-types");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
+
|
|
18
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
19
|
+
|
|
20
|
+
var propTypes = _objectSpread(_objectSpread({}, _gradientPropTypes.propTypes), {}, {
|
|
21
|
+
endColour: _propTypes["default"].string.isRequired,
|
|
22
|
+
startColour: _propTypes["default"].string.isRequired
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.propTypes = propTypes;
|
|
26
|
+
|
|
27
|
+
var defaultProps = _objectSpread({}, _gradientPropTypes.defaultProps);
|
|
28
|
+
|
|
29
|
+
exports.defaultProps = defaultProps;
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "propTypes", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _gradientPropTypesShared.propTypes;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "defaultProps", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _gradientPropTypesShared.defaultProps;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _gradientPropTypesShared = require("./gradient-prop-types-shared");
|
package/dist/gradient.base.js
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _utils = require("@times-components/utils");
|
|
11
|
+
|
|
12
|
+
var _gradientPropTypes = require("./gradient-prop-types.base");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
+
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
+
|
|
20
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
|
+
|
|
22
|
+
var GradientBase = function GradientBase(_ref) {
|
|
23
|
+
var children = _ref.children,
|
|
24
|
+
degrees = _ref.degrees,
|
|
25
|
+
endColour = _ref.endColour,
|
|
26
|
+
startColour = _ref.startColour,
|
|
27
|
+
style = _ref.style;
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_utils.TcView, {
|
|
29
|
+
style: _objectSpread({
|
|
30
|
+
backgroundImage: "linear-gradient(".concat(degrees, "deg, ").concat(startColour, " 0%, ").concat(endColour, " 100%)")
|
|
31
|
+
}, style)
|
|
32
|
+
}, children);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
GradientBase.propTypes = _gradientPropTypes.propTypes;
|
|
36
|
+
GradientBase.defaultProps = _gradientPropTypes.defaultProps;
|
|
37
|
+
var _default = GradientBase;
|
|
38
|
+
exports["default"] = _default;
|
package/dist/gradient.js
CHANGED
|
@@ -1 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "OverlayGradient", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _overlayGradient["default"];
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
exports["default"] = void 0;
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _tsStyleguide = require("@times-components/ts-styleguide");
|
|
17
|
+
|
|
18
|
+
var _gradientPropTypes = require("./gradient-prop-types");
|
|
19
|
+
|
|
20
|
+
var _gradient = _interopRequireDefault(require("./gradient.base"));
|
|
21
|
+
|
|
22
|
+
var _overlayGradient = _interopRequireDefault(require("./overlay-gradient"));
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
var Gradient = function Gradient(props) {
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_gradient["default"], _extends({
|
|
30
|
+
endColour: _tsStyleguide.colours.functional.backgroundSecondary,
|
|
31
|
+
startColour: _tsStyleguide.colours.functional.backgroundPrimary
|
|
32
|
+
}, props));
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
Gradient.propTypes = _gradientPropTypes.propTypes;
|
|
36
|
+
Gradient.defaultProps = _gradientPropTypes.defaultProps;
|
|
37
|
+
var _default = Gradient;
|
|
38
|
+
exports["default"] = _default;
|
package/dist/overlay-gradient.js
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _tsStyleguide = require("@times-components/ts-styleguide");
|
|
11
|
+
|
|
12
|
+
var _gradientPropTypes = require("./gradient-prop-types");
|
|
13
|
+
|
|
14
|
+
var _gradient = _interopRequireDefault(require("./gradient.base"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
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); }
|
|
19
|
+
|
|
20
|
+
var OverlayGradient = function OverlayGradient(props) {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_gradient["default"], _extends({}, props, {
|
|
22
|
+
endColour: _tsStyleguide.colours.functional.overlayGradientEnd,
|
|
23
|
+
startColour: _tsStyleguide.colours.functional.overlayGradientStart
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
OverlayGradient.propTypes = _gradientPropTypes.propTypes;
|
|
28
|
+
OverlayGradient.defaultProps = _gradientPropTypes.defaultProps;
|
|
29
|
+
var _default = OverlayGradient;
|
|
30
|
+
exports["default"] = _default;
|
package/dist/styles/index.js
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var styles = {
|
|
8
|
+
container: {
|
|
9
|
+
position: "relative"
|
|
10
|
+
},
|
|
11
|
+
surface: {
|
|
12
|
+
bottom: 0,
|
|
13
|
+
left: 0,
|
|
14
|
+
position: "absolute",
|
|
15
|
+
right: 0,
|
|
16
|
+
top: 0
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var _default = styles;
|
|
20
|
+
exports["default"] = _default;
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var angleToPoints = function angleToPoints(angle) {
|
|
9
|
+
var segment = Math.floor(angle / Math.PI * 2) + 2;
|
|
10
|
+
var diagonal = (1 / 2 * segment + 1 / 4) * Math.PI;
|
|
11
|
+
var op = Math.cos(Math.abs(diagonal - angle)) * Math.sqrt(2);
|
|
12
|
+
var x = op * Math.cos(angle);
|
|
13
|
+
var y = op * Math.sin(angle);
|
|
14
|
+
return {
|
|
15
|
+
end: {
|
|
16
|
+
x: x >= 0 ? x : x + 1,
|
|
17
|
+
y: y >= 0 ? y : y + 1
|
|
18
|
+
},
|
|
19
|
+
start: {
|
|
20
|
+
x: x < 0 ? 1 : 0,
|
|
21
|
+
y: y < 0 ? 1 : 0
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var _default = angleToPoints;
|
|
27
|
+
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/gradient",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Renders a gradient background",
|
|
5
5
|
"main": "dist/gradient",
|
|
6
6
|
"dev": "src/gradient",
|
|
@@ -9,24 +9,13 @@
|
|
|
9
9
|
"prettier:diff": "prettier --list-different '**/*.*'",
|
|
10
10
|
"depcheck": "depcheck --ignores='@babel/*,babel-*,depcheck,eslint,jest,prettier,react-art,webpack*' --ignore-bin-package=false --skip-missing",
|
|
11
11
|
"lint": "eslint . && yarn prettier:diff && yarn depcheck",
|
|
12
|
-
"test:web": "jest --config='./__tests__/
|
|
12
|
+
"test:web": "jest --config='./__tests__/jest.config.js'",
|
|
13
13
|
"prepublishOnly": "yarn transpile && yarn bundle",
|
|
14
14
|
"watch": "watch 'yarn bundle' ./src --ignoreDotFiles --ignoreUnreadable",
|
|
15
15
|
"cleanup-dist": "rm -rf dist",
|
|
16
16
|
"transpile": "yarn cleanup-dist && babel src -d dist",
|
|
17
17
|
"bundle": "NODE_ENV=production webpack -p"
|
|
18
18
|
},
|
|
19
|
-
"jest": {
|
|
20
|
-
"preset": "react",
|
|
21
|
-
"rootDir": "../../",
|
|
22
|
-
"coverageDirectory": "<rootDir>/packages/gradient/coverage/",
|
|
23
|
-
"transformIgnorePatterns": [
|
|
24
|
-
"node_modules/(?!(react|@times-components)/)"
|
|
25
|
-
],
|
|
26
|
-
"testMatch": [
|
|
27
|
-
"<rootDir>/packages/gradient/__tests__/*.test.js"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
19
|
"repository": {
|
|
31
20
|
"type": "git",
|
|
32
21
|
"url": "git+https://github.com/newsuk/times-components.git"
|
|
@@ -44,14 +33,12 @@
|
|
|
44
33
|
"devDependencies": {
|
|
45
34
|
"@babel/core": "7.4.4",
|
|
46
35
|
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
47
|
-
"@times-components/jest-configurator": "
|
|
48
|
-
"@times-components/jest-serializer": "3.
|
|
49
|
-
"@times-components/storybook": "4.
|
|
50
|
-
"@times-components/test-utils": "2.
|
|
51
|
-
"@times-components/webpack-configurator": "2.0
|
|
36
|
+
"@times-components/jest-configurator-web": "0.8.0",
|
|
37
|
+
"@times-components/jest-serializer": "3.4.0",
|
|
38
|
+
"@times-components/storybook": "4.5.0",
|
|
39
|
+
"@times-components/test-utils": "2.4.0",
|
|
40
|
+
"@times-components/webpack-configurator": "2.1.0",
|
|
52
41
|
"babel-jest": "24.8.0",
|
|
53
|
-
"babel-plugin-add-react-displayname": "0.0.5",
|
|
54
|
-
"babel-plugin-styled-components": "1.10.6",
|
|
55
42
|
"depcheck": "0.6.9",
|
|
56
43
|
"enzyme": "3.9.0",
|
|
57
44
|
"eslint": "5.9.0",
|
|
@@ -60,12 +47,11 @@
|
|
|
60
47
|
"react": "16.9.0",
|
|
61
48
|
"react-art": "16.6.3",
|
|
62
49
|
"react-dom": "16.9.0",
|
|
63
|
-
"webpack": "4.30.0"
|
|
64
|
-
"webpack-cli": "3.3.1"
|
|
50
|
+
"webpack": "4.30.0"
|
|
65
51
|
},
|
|
66
52
|
"dependencies": {
|
|
67
|
-
"@times-components/ts-styleguide": "1.
|
|
68
|
-
"@times-components/utils": "6.
|
|
53
|
+
"@times-components/ts-styleguide": "1.37.0",
|
|
54
|
+
"@times-components/utils": "6.15.0",
|
|
69
55
|
"prop-types": "15.7.2"
|
|
70
56
|
},
|
|
71
57
|
"resolutions": {
|
|
@@ -79,5 +65,5 @@
|
|
|
79
65
|
"publishConfig": {
|
|
80
66
|
"access": "public"
|
|
81
67
|
},
|
|
82
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "fe2f12b7448a88662c53f840772282cd97756c5c"
|
|
83
69
|
}
|
package/rnw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=
|
|
1
|
+
module.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=4)}([function(e,r){e.exports=require("prop-types")},function(e,r){e.exports=require("react")},function(e,r){e.exports=require("@times-components/ts-styleguide/rnw")},function(e,r){e.exports=require("@times-components/utils/rnw")},function(e,r,t){"use strict";t.r(r);var n=t(1),o=t.n(n),u=t(2),c=t(0),a=t.n(c),i={children:a.a.oneOfType([a.a.element,a.a.arrayOf(a.a.element)]),degrees:a.a.number,endColour:a.a.string,endPoint:a.a.string,startColour:a.a.string,startPoint:a.a.string,style:a.a.object},l={children:null,degrees:265,endPoint:"1",startPoint:"0",style:null},s=t(3);function f(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?f(Object(t),!0).forEach((function(r){b(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function b(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}p(p({},i),{},{endColour:a.a.string.isRequired,startColour:a.a.string.isRequired});var y=p({},l);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function O(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){g(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function g(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var j=function(e){var r=e.children,t=e.degrees,n=e.endColour,u=e.startColour,c=e.style;return o.a.createElement(s.TcView,{style:O({backgroundImage:"linear-gradient(".concat(t,"deg, ").concat(u," 0%, ").concat(n," 100%)")},c)},r)};j.defaultProps=y;var v=j;function P(){return(P=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}var m=function(e){return o.a.createElement(v,P({},e,{endColour:u.colours.functional.overlayGradientEnd,startColour:u.colours.functional.overlayGradientStart}))};m.defaultProps=l;var w=m;function h(){return(h=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}t.d(r,"OverlayGradient",(function(){return w}));var S=function(e){return o.a.createElement(v,h({endColour:u.colours.functional.backgroundSecondary,startColour:u.colours.functional.backgroundPrimary},e))};S.defaultProps=l;r.default=S}]);
|