Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ant-design/icons-react

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ant-design/icons-react - npm Package Compare versions

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

9

es/components/Icon.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc