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

formatic

Package Overview
Dependencies
Maintainers
7
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formatic - npm Package Compare versions

Comparing version 0.3.66 to 0.3.67

build/lib/components/helpers/fieldset.js

26

build/lib/components/fields/fields.js

@@ -10,5 +10,3 @@ // # fields component

var React = require('react');
var R = React.DOM;
var _ = require('../../undash');
var cx = require('classnames');

@@ -57,11 +55,13 @@ module.exports = React.createClass({

return config.createElement('field', {
config: config, field: field, plain: isGroup || this.props.plain
}, R.fieldset({ className: cx(classes) }, isGroup ? React.createElement(
var help = !isGroup ? null : config.createElement('help', {
config: config, field: field
});
var legend = !isGroup ? null : React.createElement(
'legend',
null,
config.fieldLabel(field)
) : null, isGroup ? config.createElement('help', {
config: config, field: field
}) : null, fields.map(function (childField, i) {
);
var content = fields.map(function (childField, i) {
var key = childField.key || i;

@@ -73,5 +73,13 @@ return config.createFieldElement({

});
}.bind(this))));
}.bind(this));
return config.createElement('field', {
config: config, field: field, plain: isGroup || this.props.plain
}, config.createElement('fieldset', {
config: config,
field: field,
classes: classes
}, help, legend, content));
}
});

@@ -72,2 +72,4 @@ // # default-config

createElement_Fieldset: React.createFactory(require('./components/helpers/fieldset')),
createElement_Label: React.createFactory(require('./components/helpers/label')),

@@ -267,4 +269,3 @@

// Create an element given a name, props, and children.
createElement: function createElement(name, props, children) {
createElement: function createElement(name, props) {
if (!props.config) {

@@ -276,4 +277,8 @@ props = _.extend({}, props, { config: config });

for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
children[_key - 2] = arguments[_key];
}
if (config['createElement_' + name]) {
return config['createElement_' + name](props, children);
return config['createElement_' + name].apply(config, [props].concat(children));
}

@@ -283,3 +288,3 @@

if (config.hasElementFactory('Unknown')) {
return config.createElement('Unknown', props, children);
return config.createElement.apply(config, ['Unknown', props].concat(children));
}

@@ -512,4 +517,4 @@ }

cssTransitionWrapper: function cssTransitionWrapper() {
for (var _len = arguments.length, children = Array(_len), _key = 0; _key < _len; _key++) {
children[_key] = arguments[_key];
for (var _len2 = arguments.length, children = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
children[_key2] = arguments[_key2];
}

@@ -516,0 +521,0 @@

@@ -40,3 +40,3 @@ // # bootstrap plugin

return {
createElement: function createElement(name, props, children) {
createElement: function createElement(name, props) {

@@ -56,5 +56,9 @@ name = config.elementName(name);

return _createElement(name, props, children);
for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
children[_key - 2] = arguments[_key];
}
return _createElement.apply(undefined, [name, props].concat(children));
}
};
};

@@ -31,3 +31,3 @@ // # element-classes plugin

// Wrap the createElement method.
createElement: function createElement(name, props, children) {
createElement: function createElement(name, props) {

@@ -40,5 +40,9 @@ name = config.elementName(name);

return _createElement(name, props, children);
for (var _len = arguments.length, children = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
children[_key - 2] = arguments[_key];
}
return _createElement.apply(undefined, [name, props].concat(children));
}
};
};
{
"name": "formatic",
"version": "0.3.66",
"version": "0.3.67",
"description": "Automatic, pluggable form generation",

@@ -5,0 +5,0 @@ "main": "./build/lib/formatic",

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