New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tenon-io/tenon-ui

Package Overview
Dependencies
Maintainers
7
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tenon-io/tenon-ui - npm Package Compare versions

Comparing version

to
1.0.0-alpha.22

13

es/modules/forms/tenonForm/Form.js

@@ -42,2 +42,6 @@ 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; };

* and their values at the moment of submission.
* @prop {function} onRawSubmit - An optional eventhandler function that gets
* called with every submit attempt of the form with the raw form data
* and validity flag. This can be handy if something had to happen during
* invalid form submit phases.
* @example

@@ -85,3 +89,5 @@ * {

}, _this.onSubmitHandler = function (e) {
var onSubmit = _this.props.onSubmit;
var _this$props = _this.props,
onSubmit = _this$props.onSubmit,
onRawSubmit = _this$props.onRawSubmit;
var _this$state = _this.state,

@@ -97,2 +103,6 @@ validity = _this$state.validity,

if (onRawSubmit) {
onRawSubmit(formControls, validity);
}
if (validity) {

@@ -309,2 +319,3 @@ onSubmit(Object.assign.apply(Object, [{}].concat(Object.keys(formControls).map(function (control) {

onSubmit: PropTypes.func.isRequired,
onRawSubmit: PropTypes.func,
alwaysShowErrors: PropTypes.bool

@@ -311,0 +322,0 @@ } : {};

@@ -59,2 +59,6 @@ 'use strict';

* and their values at the moment of submission.
* @prop {function} onRawSubmit - An optional eventhandler function that gets
* called with every submit attempt of the form with the raw form data
* and validity flag. This can be handy if something had to happen during
* invalid form submit phases.
* @example

@@ -102,3 +106,5 @@ * {

}, _this.onSubmitHandler = function (e) {
var onSubmit = _this.props.onSubmit;
var _this$props = _this.props,
onSubmit = _this$props.onSubmit,
onRawSubmit = _this$props.onRawSubmit;
var _this$state = _this.state,

@@ -114,2 +120,6 @@ validity = _this$state.validity,

if (onRawSubmit) {
onRawSubmit(formControls, validity);
}
if (validity) {

@@ -326,2 +336,3 @@ onSubmit(Object.assign.apply(Object, [{}].concat(Object.keys(formControls).map(function (control) {

onSubmit: _propTypes2.default.func.isRequired,
onRawSubmit: _propTypes2.default.func,
alwaysShowErrors: _propTypes2.default.bool

@@ -328,0 +339,0 @@ } : {};

2

package.json
{
"name": "@tenon-io/tenon-ui",
"version": "1.0.0-alpha.21",
"version": "1.0.0-alpha.22",
"description": "Tenon ui components library",

@@ -5,0 +5,0 @@ "contributors": [