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

nuke-icon

Package Overview
Dependencies
Maintainers
5
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-icon - npm Package Compare versions

Comparing version 2.0.10 to 2.1.1-1

lib/view/icon.jsx

15

lib/index.h5.js

@@ -1,14 +0,1 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _icon = require('./view/icon');
var _icon2 = _interopRequireDefault(_icon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _icon2.default;
module.exports = exports['default'];
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _icon=require('./view/icon'),_icon2=_interopRequireDefault(_icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=_icon2.default,module.exports=exports['default'];

@@ -1,24 +0,1 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _nukeEnv = require('nuke-env');
var _index = require('./index.native');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('./index.h5');
var _index4 = _interopRequireDefault(_index3);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var IconEntry = _index4.default;
if (_nukeEnv.isWeex) {
IconEntry = _index2.default;
}
exports.default = IconEntry;
module.exports = exports['default'];
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _nukeEnv=require('nuke-env'),_index=require('./index.native'),_index2=_interopRequireDefault(_index),_index3=require('./index.h5'),_index4=_interopRequireDefault(_index3);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var IconEntry=_index4.default;_nukeEnv.isWeex&&(IconEntry=_index2.default),exports.default=IconEntry,module.exports=exports['default'];

@@ -1,14 +0,1 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _icon = require('./view/icon');
var _icon2 = _interopRequireDefault(_icon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _icon2.default;
module.exports = exports['default'];
'use strict';Object.defineProperty(exports,'__esModule',{value:!0});var _icon=require('./view/icon'),_icon2=_interopRequireDefault(_icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=_icon2.default,module.exports=exports['default'];

@@ -1,39 +0,1 @@

'use strict';
var _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; };
var _mixin = require('./mixin');
var _variable = require('./variable');
var _variable2 = _interopRequireDefault(_variable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function StyleMix() {
var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var core = theme.Core;
var Variables = (0, _variable2.default)(theme);
return {
Icon: _extends({
'icon-image': {
flexDirection: 'row',
alignSelf: 'center',
alignItems: 'center'
},
'image-xs': (0, _mixin.imageSize)(core['icon-xs']),
'image-small': (0, _mixin.imageSize)(core['icon-s']),
'image-medium': (0, _mixin.imageSize)(core['icon-m']),
'image-large': (0, _mixin.imageSize)(core['icon-l']),
'icon-iconfont': {
fontWeight: 400
},
'iconfont-xs': (0, _mixin.fontSize)(core['icon-xs']),
'iconfont-small': (0, _mixin.fontSize)(core['icon-s']),
'iconfont-medium': (0, _mixin.fontSize)(core['icon-m']),
'iconfont-large': (0, _mixin.fontSize)(core['icon-l'])
}, Variables)
};
}
module.exports = StyleMix;
'use strict';var _extends=Object.assign||function(target){for(var source,i=1;i<arguments.length;i++)for(var key in source=arguments[i],source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},_mixin=require('./mixin'),_variable=require('./variable'),_variable2=_interopRequireDefault(_variable);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function StyleMix(){var theme=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},core=theme.Core,Variables=(0,_variable2.default)(theme);return{Icon:_extends({"icon-image":{flexDirection:'row',alignSelf:'center',alignItems:'center'},"image-xs":(0,_mixin.imageSize)(core['icon-xs']),"image-small":(0,_mixin.imageSize)(core['icon-s']),"image-medium":(0,_mixin.imageSize)(core['icon-m']),"image-large":(0,_mixin.imageSize)(core['icon-l']),"icon-iconfont":{fontWeight:400},"iconfont-xs":(0,_mixin.fontSize)(core['icon-xs']),"iconfont-small":(0,_mixin.fontSize)(core['icon-s']),"iconfont-medium":(0,_mixin.fontSize)(core['icon-m']),"iconfont-large":(0,_mixin.fontSize)(core['icon-l'])},Variables)}}module.exports=StyleMix;

@@ -1,20 +0,1 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var mixin = {
imageSize: function imageSize(size) {
return {
width: size,
height: size
};
},
fontSize: function fontSize(size) {
return {
fontSize: size
};
}
};
exports.default = mixin;
module.exports = exports["default"];
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var mixin={imageSize:function imageSize(size){return{width:size,height:size}},fontSize:function fontSize(size){return{fontSize:size}}};exports.default=mixin,module.exports=exports["default"];

@@ -1,45 +0,1 @@

'use strict';
/**
* @namespace component
* @property name icon
* @property prefix icon-
* @property group Icon
*/
function VariableMix(theme) {
var core = theme.Core;
var ComponentCustomStyle = theme.Icon || {};
var icons = {};
Object.keys(core).map(function (key) {
if (key.indexOf('icon-') > -1 && typeof core[key] === 'string') {
icons[key] = core[key];
}
});
// const iconVariables = {
// /**
// * size
// * @property namespace size/bounding
// */
// 'icon-xs': core['icon-xs'],
// /**
// * size
// * @property namespace size/bounding
// */
// 'icon-s': core['icon-s'],
// /**
// * size
// * @property namespace size/bounding
// */
// 'icon-m': core['icon-m'],
// /**
// * size
// * @property namespace size/bounding
// */
// 'icon-l': core['icon-l'],
// };
var variables = Object.assign(icons, ComponentCustomStyle);
return variables;
}
module.exports = VariableMix;
'use strict';function VariableMix(theme){var core=theme.Core,ComponentCustomStyle=theme.Icon||{},icons={};Object.keys(core).map(function(key){-1<key.indexOf('icon-')&&'string'==typeof core[key]&&(icons[key]=core[key])});var variables=Object.assign(icons,ComponentCustomStyle);return variables}module.exports=VariableMix;
{
"name": "nuke-icon",
"version": "2.0.10",
"version": "2.1.1-1",
"description": "图标",

@@ -26,9 +26,2 @@ "main": "lib/index",

},
"scripts": {
"dev": "nuke-bin server",
"build": "nuke-bin build",
"prepublish": "nuke-bin build",
"test": "nuke-bin test",
"lint": "eslint '@(src|docs)/**/*.@(js|jsx|md)' || true"
},
"engines": {

@@ -49,10 +42,10 @@ "weex": "",

"dependencies": {
"nuke-core": "^2.x.x",
"nuke-env": "^2.x.x",
"nuke-iconfont": "^2.x.x",
"nuke-image": "^2.x.x",
"nuke-text": "^2.x.x",
"nuke-theme-provider": "^2.x.x",
"nuke-touchable": "^2.x.x",
"nuke-view": "^2.x.x"
"nuke-core": "^2.1.1-0",
"nuke-env": "^2.1.1-1",
"nuke-iconfont": "^2.1.1-0",
"nuke-image": "^2.1.1-0",
"nuke-text": "^2.1.1-1",
"nuke-theme-provider": "^2.1.1-1",
"nuke-touchable": "^2.1.1-0",
"nuke-view": "^2.1.1-1"
},

@@ -72,3 +65,4 @@ "devDependencies": {

},
"license": "Apache"
"license": "Apache",
"gitHead": "cec01e455f5e020ef33ebf3a1d4006d33c87914e"
}
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