@ant-design/icons 5.1.0-alpha.0 → 5.1.0-alpha.1

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.
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import styled from 'styled-components';
3
+ import { blue } from '@ant-design/colors';
3
4
 
4
5
  import { setTwoToneColor } from '../../src';
5
6
  import * as AntdIcons from '../../src/icons';
@@ -39,7 +40,7 @@ const Text = styled.span`
39
40
 
40
41
  export default class AllIconDemo extends React.Component {
41
42
  state = {
42
- primaryColor: '#1890ff',
43
+ primaryColor: blue.primary!,
43
44
  };
44
45
 
45
46
  componentWillMount() {
@@ -5,13 +5,14 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
5
5
  var _excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
6
6
  import * as React from 'react';
7
7
  import classNames from 'classnames';
8
+ import { blue } from '@ant-design/colors';
8
9
  import Context from './Context';
9
10
  import ReactIcon from './IconBase';
10
11
  import { getTwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';
11
12
  import { normalizeTwoToneColors } from '../utils';
12
13
  // Initial setting
13
14
  // should move it to antd main repo?
14
- setTwoToneColor('#1890ff');
15
+ setTwoToneColor(blue.primary);
15
16
  var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {
16
17
  var _classNames;
17
18
  var className = props.className,
@@ -12,6 +12,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
12
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
13
  var React = _interopRequireWildcard(require("react"));
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
+ var _colors = require("@ant-design/colors");
15
16
  var _Context = _interopRequireDefault(require("./Context"));
16
17
  var _IconBase = _interopRequireDefault(require("./IconBase"));
17
18
  var _twoTonePrimaryColor = require("./twoTonePrimaryColor");
@@ -21,7 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
23
  // Initial setting
23
24
  // should move it to antd main repo?
24
- (0, _twoTonePrimaryColor.setTwoToneColor)('#1890ff');
25
+ (0, _twoTonePrimaryColor.setTwoToneColor)(_colors.blue.primary);
25
26
  var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {
26
27
  var _classNames;
27
28
  var className = props.className,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ant-design/icons",
3
- "version": "5.1.0-alpha.0",
3
+ "version": "5.1.0-alpha.1",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "unpkg": "./dist/index.umd.js",