Socket
Socket
Sign inDemoInstall

@jennifersoft/demian-components

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jennifersoft/demian-components - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

1

dist/input/search.d.ts

@@ -11,2 +11,3 @@ import * as React from 'react';

onPressEnter?: (text: string) => void;
onClear?: () => void;
}

@@ -13,0 +14,0 @@ interface SearchStateType {

16

dist/input/search.js

@@ -44,9 +44,17 @@ "use strict";

var _this = this;
this.setState({ searchText: '' }, function () {
if (_this.props.onChange)
_this.props.onChange(_this.state.searchText);
});
if (this.props.onClear) {
this.props.onClear();
}
else {
this.setState({ searchText: '' }, function () {
if (_this.props.onChange)
_this.props.onChange(_this.state.searchText);
});
}
};
Search.prototype.render = function () {
var _this = this;
if (this.props.value != null && this.props.onClear) {
console.error('if value set by props, set onClear also');
}
return (React.createElement(SearchWrapper, { style: this.props.style },

@@ -53,0 +61,0 @@ React.createElement(SearchIconWrapper, { large: this.props.large, xlarge: this.props.xlarge }, this.state.searchText ?

{
"name": "@jennifersoft/demian-components",
"version": "0.2.7",
"version": "0.2.8",
"description": "JENNIFER Front(Demian) Components",

@@ -5,0 +5,0 @@ "scripts": {

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