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

framework7-react

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

framework7-react - npm Package Compare versions

Comparing version 0.8.5-beta.1 to 0.8.5-beta.2

dist/src/components/inputs/SelectableInput.d.ts

2

dist/src/components/Framework7App.js

@@ -22,3 +22,3 @@ "use strict";

function Framework7App() {
var _this = _super.apply(this, arguments) || this;
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.framework7 = null;

@@ -25,0 +25,0 @@ _this.framework7InitCallbacks = [];

@@ -1,9 +0,1 @@

import * as React from 'react';
export interface IManagedFormInputState {
currentValue?: string;
}
export declare class ManagedFormInput extends React.Component<any, IManagedFormInputState> {
constructor(props: any);
render(): JSX.Element;
private onInput(event);
}
export declare const ManagedFormInput: (props: any) => JSX.Element;
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
var React = require("react");
var SelectableInput_1 = require("./SelectableInput");
exports.ManagedFormInput = function (props) {
switch (props.type.toLowerCase()) {
case 'checkbox':
case 'radio':
return React.createElement(SelectableInput_1.SelectableInput, { type: props.type, checked: props.checked, onChange: props.onChange });
default:
return React.createElement("input", { type: props.type, onClick: props.onClick, onChange: props.onChange, value: props.value, placeholder: props.placeholder });
}
return t;
};
var React = require("react");
var ManagedFormInput = (function (_super) {
__extends(ManagedFormInput, _super);
function ManagedFormInput(props) {
var _this = _super.call(this, props) || this;
_this.state = {
currentValue: _this.props.value || ""
};
return _this;
}
ManagedFormInput.prototype.render = function () {
return (React.createElement("input", __assign({}, this.props, { onChange: this.onInput.bind(this), value: this.state.currentValue })));
};
ManagedFormInput.prototype.onInput = function (event) {
if (this.props.type === "radio" || this.props.type === "checkbox") {
this.props.onChange();
}
else {
this.setState({
currentValue: event.target.value
});
}
};
return ManagedFormInput;
}(React.Component));
exports.ManagedFormInput = ManagedFormInput;
;
//# sourceMappingURL=ManagedFormInput.js.map

@@ -0,0 +0,0 @@ export interface IFramework7Params {

@@ -0,0 +0,0 @@ var gulp = require('gulp'),

@@ -0,0 +0,0 @@ import {generateReactComponents} from './framework7-react-component-gen';

{
"name": "framework7-react",
"version": "0.8.5-beta.1",
"version": "0.8.5-beta.2",
"description": "A React version of Framework7",

@@ -5,0 +5,0 @@ "main": "dist/framework7-react/index.js",

@@ -0,0 +0,0 @@ # Framework7 React

@@ -0,0 +0,0 @@ {

@@ -70,2 +70,2 @@ // Generated by typings

export = DOMServer;
}
}

@@ -1,9 +0,3 @@

/// <reference path="globals/bluebird/index.d.ts" />
/// <reference path="globals/classnames/index.d.ts" />
/// <reference path="globals/invariant/index.d.ts" />
/// <reference path="globals/jquery/index.d.ts" />
/// <reference path="globals/react-dom/index.d.ts" />
/// <reference path="globals/react-router/history/index.d.ts" />
/// <reference path="globals/react-router/index.d.ts" />
/// <reference path="globals/react/index.d.ts" />
/// <reference path="modules/camelcase/index.d.ts" />

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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