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

tema-design

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tema-design - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

5

js/form.js

@@ -27,1 +27,6 @@ function onFocusAdded(node) {

window.addEventListener('DOMContentLoaded', e => syncFields(document), false);
module.exports = {
syncFields,
onFocusLose
};

2

package.json
{
"name": "tema-design",
"version": "1.0.15",
"version": "1.0.16",
"description": "Design system source used into thinkseg group systems",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -96,3 +96,3 @@ /******/ (function(modules) { // webpackBootstrap

eval("function onFocusAdded(node) {\n if(['input', 'textarea'].indexOf(node.nodeName.toLowerCase()) === -1) {\n return;\n }\n node.parentNode.className += ' active';\n}\n\nfunction onFocusLose(node) {\n if(!node.parentNode) { return; }\n let currentClass = node.parentNode.className;\n node.parentNode.className = currentClass.replace(/\\sactive/gi, '').replace(/\\sfilled/gi, '');\n if(node.value) {\n node.parentNode.className += ' filled';\n }\n}\n\nfunction syncFields(root) {\n if(!root.querySelectorAll) { return; }\n root.querySelectorAll('input').forEach(elm => onFocusLose(elm));\n root.querySelectorAll('textarea').forEach(elm => onFocusLose(elm));\n}\n\nwindow.addEventListener('focus', e => onFocusAdded(document.activeElement), true);\nwindow.addEventListener('blur', e => onFocusLose(e.target), true);\nwindow.addEventListener('DOMNodeInserted', e => syncFields(e.target), false);\nwindow.addEventListener('DOMContentLoaded', e => syncFields(document), false);\n\n\n//# sourceURL=webpack:///../js/form.js?");
eval("function onFocusAdded(node) {\n if(['input', 'textarea'].indexOf(node.nodeName.toLowerCase()) === -1) {\n return;\n }\n node.parentNode.className += ' active';\n}\n\nfunction onFocusLose(node) {\n if(!node.parentNode) { return; }\n let currentClass = node.parentNode.className;\n node.parentNode.className = currentClass.replace(/\\sactive/gi, '').replace(/\\sfilled/gi, '');\n if(node.value) {\n node.parentNode.className += ' filled';\n }\n}\n\nfunction syncFields(root) {\n if(!root.querySelectorAll) { return; }\n root.querySelectorAll('input').forEach(elm => onFocusLose(elm));\n root.querySelectorAll('textarea').forEach(elm => onFocusLose(elm));\n}\n\nwindow.addEventListener('focus', e => onFocusAdded(document.activeElement), true);\nwindow.addEventListener('blur', e => onFocusLose(e.target), true);\nwindow.addEventListener('DOMNodeInserted', e => syncFields(e.target), false);\nwindow.addEventListener('DOMContentLoaded', e => syncFields(document), false);\n\nmodule.exports = {\n syncFields,\n onFocusLose\n};\n\n\n//# sourceURL=webpack:///../js/form.js?");

@@ -99,0 +99,0 @@ /***/ }),

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