@solid-primitives/props
Advanced tools
Comparing version 3.0.6 to 3.0.7
@@ -107,3 +107,6 @@ import { $PROXY, createMemo, mergeProps } from 'solid-js'; | ||
const name = key.toLowerCase(); | ||
const callback = typeof v === "function" ? v : Array.isArray(v) ? v.length === 1 ? v[0] : v[0].bind(void 0, v[1]) : void 0; | ||
const callback = typeof v === "function" ? v : ( | ||
// jsx event handlers can be tuples of [callback, arg] | ||
Array.isArray(v) ? v.length === 1 ? v[0] : v[0].bind(void 0, v[1]) : void 0 | ||
); | ||
if (callback) | ||
@@ -110,0 +113,0 @@ listeners[name] ? listeners[name].push(callback) : listeners[name] = [callback]; |
{ | ||
"name": "@solid-primitives/props", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Library of primitives focused around component props.", | ||
@@ -45,3 +45,3 @@ "author": "Damian Tarnawski <gthetarnav@gmail.com>", | ||
"dependencies": { | ||
"@solid-primitives/utils": "^5.0.0" | ||
"@solid-primitives/utils": "^5.2.1" | ||
}, | ||
@@ -48,0 +48,0 @@ "devDependencies": { |
@@ -68,7 +68,7 @@ <p> | ||
onClick: e => {}, | ||
onclick: e => {} | ||
onclick: e => {}, | ||
}, | ||
{ | ||
onClick: [(n, e) => {}, 123] | ||
} | ||
onClick: [(n, e) => {}, 123], | ||
}, | ||
); | ||
@@ -96,3 +96,3 @@ // combined.onClick() will call all 3 of the functions above | ||
margin: "2rem", | ||
padding: "16px" | ||
padding: "16px", | ||
}); | ||
@@ -99,0 +99,0 @@ styles; // { margin: "2rem", border: "1px solid #121212", padding: "16px" } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21049
401