@ant-design/icons-react
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -12,4 +12,7 @@ import { IconDefinition, IconDefinitionGetter } from '@ant-design/icons/lib/types'; | ||
} | ||
export interface TwoToneColorPalette { | ||
export interface TwoToneColorPaletteSetter { | ||
primaryColor: string; | ||
secondaryColor?: string; | ||
} | ||
export interface TwoToneColorPalette extends TwoToneColorPaletteSetter { | ||
secondaryColor: string; | ||
@@ -23,6 +26,6 @@ } | ||
static get(key?: string, colors?: TwoToneColorPalette): IconDefinition | undefined; | ||
static setTwoTonePrimaryColor(primaryColor: string, secondaryColor?: string): void; | ||
static getTwoTonePrimaryColor(): string; | ||
static setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void; | ||
static getTwoToneColors(): TwoToneColorPalette; | ||
render(): any; | ||
} | ||
export default Icon; |
@@ -0,1 +1,2 @@ | ||
import _extends from 'babel-runtime/helpers/extends'; | ||
import _defineProperty from 'babel-runtime/helpers/defineProperty'; | ||
@@ -96,4 +97,7 @@ import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; | ||
}, { | ||
key: 'setTwoTonePrimaryColor', | ||
value: function setTwoTonePrimaryColor(primaryColor, secondaryColor) { | ||
key: 'setTwoToneColors', | ||
value: function setTwoToneColors(_ref) { | ||
var primaryColor = _ref.primaryColor, | ||
secondaryColor = _ref.secondaryColor; | ||
twoToneColorPalette.primaryColor = primaryColor; | ||
@@ -103,5 +107,5 @@ twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor); | ||
}, { | ||
key: 'getTwoTonePrimaryColor', | ||
value: function getTwoTonePrimaryColor() { | ||
return twoToneColorPalette.primaryColor; | ||
key: 'getTwoToneColors', | ||
value: function getTwoToneColors() { | ||
return _extends({}, twoToneColorPalette); | ||
} | ||
@@ -108,0 +112,0 @@ }]); |
@@ -1,1 +0,1 @@ | ||
export { default, IconProps } from './components/Icon'; | ||
export { default, IconProps, TwoToneColorPaletteSetter, TwoToneColorPalette } from './components/Icon'; |
@@ -12,4 +12,7 @@ import { IconDefinition, IconDefinitionGetter } from '@ant-design/icons/lib/types'; | ||
} | ||
export interface TwoToneColorPalette { | ||
export interface TwoToneColorPaletteSetter { | ||
primaryColor: string; | ||
secondaryColor?: string; | ||
} | ||
export interface TwoToneColorPalette extends TwoToneColorPaletteSetter { | ||
secondaryColor: string; | ||
@@ -23,6 +26,6 @@ } | ||
static get(key?: string, colors?: TwoToneColorPalette): IconDefinition | undefined; | ||
static setTwoTonePrimaryColor(primaryColor: string, secondaryColor?: string): void; | ||
static getTwoTonePrimaryColor(): string; | ||
static setTwoToneColors({ primaryColor, secondaryColor }: TwoToneColorPaletteSetter): void; | ||
static getTwoToneColors(): TwoToneColorPalette; | ||
render(): any; | ||
} | ||
export default Icon; |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); | ||
@@ -125,4 +129,7 @@ | ||
}, { | ||
key: 'setTwoTonePrimaryColor', | ||
value: function setTwoTonePrimaryColor(primaryColor, secondaryColor) { | ||
key: 'setTwoToneColors', | ||
value: function setTwoToneColors(_ref) { | ||
var primaryColor = _ref.primaryColor, | ||
secondaryColor = _ref.secondaryColor; | ||
twoToneColorPalette.primaryColor = primaryColor; | ||
@@ -132,5 +139,5 @@ twoToneColorPalette.secondaryColor = secondaryColor || (0, _utils.getSecondaryColor)(primaryColor); | ||
}, { | ||
key: 'getTwoTonePrimaryColor', | ||
value: function getTwoTonePrimaryColor() { | ||
return twoToneColorPalette.primaryColor; | ||
key: 'getTwoToneColors', | ||
value: function getTwoToneColors() { | ||
return (0, _extends3['default'])({}, twoToneColorPalette); | ||
} | ||
@@ -137,0 +144,0 @@ }]); |
@@ -1,1 +0,1 @@ | ||
export { default, IconProps } from './components/Icon'; | ||
export { default, IconProps, TwoToneColorPaletteSetter, TwoToneColorPalette } from './components/Icon'; |
{ | ||
"name": "@ant-design/icons-react", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./es/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25009
546