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

@sps-woodland/buttons

Package Overview
Dependencies
Maintainers
0
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sps-woodland/buttons - npm Package Compare versions

Comparing version 8.10.2 to 8.10.3

106

lib/index.es.js

@@ -21,4 +21,3 @@ import * as c from "react";

function Ge(e, t) {
if (e === t)
return e;
if (e === t) return e;
let r = de.get(e);

@@ -32,4 +31,3 @@ if (r)

return (...t) => {
for (let r of e)
typeof r == "function" && r(...t);
for (let r of e) typeof r == "function" && r(...t);
};

@@ -43,17 +41,11 @@ }

var t, r, o = "";
if (typeof e == "string" || typeof e == "number")
o += e;
else if (typeof e == "object")
if (Array.isArray(e)) {
var i = e.length;
for (t = 0; t < i; t++)
e[t] && (r = xe(e[t])) && (o && (o += " "), o += r);
} else
for (r in e)
e[r] && (o && (o += " "), o += r);
if (typeof e == "string" || typeof e == "number") o += e;
else if (typeof e == "object") if (Array.isArray(e)) {
var i = e.length;
for (t = 0; t < i; t++) e[t] && (r = xe(e[t])) && (o && (o += " "), o += r);
} else for (r in e) e[r] && (o && (o += " "), o += r);
return o;
}
function Ve() {
for (var e, t, r = 0, o = "", i = arguments.length; r < i; r++)
(e = arguments[r]) && (t = xe(e)) && (o && (o += " "), o += t);
for (var e, t, r = 0, o = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = xe(e)) && (o && (o += " "), o += t);
return o;

@@ -95,11 +87,9 @@ }

let { labelable: r, isLink: o, propNames: i } = t, d = {};
for (const u in e)
Object.prototype.hasOwnProperty.call(e, u) && (We.has(u) || r && je.has(u) || o && Ye.has(u) || i != null && i.has(u) || ze.test(u)) && (d[u] = e[u]);
for (const u in e) Object.prototype.hasOwnProperty.call(e, u) && (We.has(u) || r && je.has(u) || o && Ye.has(u) || i != null && i.has(u) || ze.test(u)) && (d[u] = e[u]);
return d;
}
function U(e) {
if (qe())
e.focus({
preventScroll: !0
});
if (qe()) e.focus({
preventScroll: !0
});
else {

@@ -199,4 +189,3 @@ let t = Je(e);

function pe() {
if (typeof window > "u")
return;
if (typeof window > "u") return;
function e(o) {

@@ -206,4 +195,3 @@ return "propertyName" in o;

let t = (o) => {
if (!e(o) || !o.target)
return;
if (!e(o) || !o.target) return;
let i = L.get(o.target);

@@ -214,8 +202,6 @@ i || (i = /* @__PURE__ */ new Set(), L.set(o.target, i), o.target.addEventListener("transitioncancel", r, {

}, r = (o) => {
if (!e(o) || !o.target)
return;
if (!e(o) || !o.target) return;
let i = L.get(o.target);
if (i && (i.delete(o.propertyName), i.size === 0 && (o.target.removeEventListener("transitioncancel", r), L.delete(o.target)), L.size === 0)) {
for (let d of ie)
d();
for (let d of ie) d();
ie.clear();

@@ -284,9 +270,7 @@ }

M = "disabled";
} else
(e instanceof HTMLElement || e instanceof SVGElement) && (z.set(e, e.style.userSelect), e.style.userSelect = "none");
} else (e instanceof HTMLElement || e instanceof SVGElement) && (z.set(e, e.style.userSelect), e.style.userSelect = "none");
}
function V(e) {
if (Ne()) {
if (M !== "disabled")
return;
if (M !== "disabled") return;
M = "restoring", setTimeout(() => {

@@ -314,4 +298,3 @@ rt(() => {

function Ce(e, t, r) {
if (!t.has(e))
throw new TypeError("attempted to " + r + " private field on non-instance");
if (!t.has(e)) throw new TypeError("attempted to " + r + " private field on non-instance");
return t.get(e);

@@ -331,4 +314,3 @@ }

function dt(e, t, r) {
if (t.set)
t.set.call(e, r);
if (t.set) t.set.call(e, r);
else {

@@ -395,4 +377,3 @@ if (!t.writable)

let B = T.current;
if (u || B.didFirePressStart)
return !1;
if (u || B.didFirePressStart) return !1;
let l = !0;

@@ -406,4 +387,3 @@ if (B.isTriggeringEvent = !0, o) {

let l = T.current;
if (!l.didFirePressStart)
return !1;
if (!l.didFirePressStart) return !1;
l.ignoreClickAfterPress = !0, l.didFirePressStart = !1, l.isTriggeringEvent = !0;

@@ -422,4 +402,3 @@ let v = !0;

let B = T.current;
if (u)
return !1;
if (u) return !1;
if (d) {

@@ -451,4 +430,3 @@ B.isTriggeringEvent = !0;

s && l.stopPropagation(), l.metaKey && q() && ((v = n.metaKeyEvents) === null || v === void 0 || v.set(l.key, l.nativeEvent));
} else
l.key === "Meta" && (n.metaKeyEvents = /* @__PURE__ */ new Map());
} else l.key === "Meta" && (n.metaKeyEvents = /* @__PURE__ */ new Map());
},

@@ -477,4 +455,3 @@ onClick(l) {

n.metaKeyEvents = void 0;
for (let K of h.values())
(a = n.target) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent("keyup", K));
for (let K of h.values()) (a = n.target) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent("keyup", K));
}

@@ -484,4 +461,3 @@ };

f.onPointerDown = (a) => {
if (a.button !== 0 || !a.currentTarget.contains(a.target))
return;
if (a.button !== 0 || !a.currentTarget.contains(a.target)) return;
if (it(a.nativeEvent)) {

@@ -511,4 +487,3 @@ n.pointerType = "virtual";

f.onMouseDown = (s) => {
if (s.button !== 0 || !s.currentTarget.contains(s.target))
return;
if (s.button !== 0 || !s.currentTarget.contains(s.target)) return;
if (re(s.currentTarget) && s.preventDefault(), n.ignoreEmulatedMouseEvents) {

@@ -520,9 +495,7 @@ s.stopPropagation();

}, f.onMouseEnter = (s) => {
if (!s.currentTarget.contains(s.target))
return;
if (!s.currentTarget.contains(s.target)) return;
let a = !0;
n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !0, a = P(s, n.pointerType)), a && s.stopPropagation();
}, f.onMouseLeave = (s) => {
if (!s.currentTarget.contains(s.target))
return;
if (!s.currentTarget.contains(s.target)) return;
let a = !0;

@@ -543,11 +516,8 @@ n.isPressed && !n.ignoreEmulatedMouseEvents && n.pointerType != null && (n.isOverTarget = !1, a = E(s, n.pointerType, !1), I(s)), a && s.stopPropagation();

f.onTouchStart = (s) => {
if (!s.currentTarget.contains(s.target))
return;
if (!s.currentTarget.contains(s.target)) return;
let a = mt(s.nativeEvent);
if (!a)
return;
if (!a) return;
n.activePointerId = a.identifier, n.ignoreEmulatedMouseEvents = !0, n.isOverTarget = !0, n.isPressed = !0, n.target = s.currentTarget, n.pointerType = "touch", !u && !b && U(s.currentTarget), g || me(n.target), P(s, n.pointerType) && s.stopPropagation(), $(se(s.currentTarget), "scroll", v, !0);
}, f.onTouchMove = (s) => {
if (!s.currentTarget.contains(s.target))
return;
if (!s.currentTarget.contains(s.target)) return;
if (!n.isPressed) {

@@ -560,4 +530,3 @@ s.stopPropagation();

}, f.onTouchEnd = (s) => {
if (!s.currentTarget.contains(s.target))
return;
if (!s.currentTarget.contains(s.target)) return;
if (!n.isPressed) {

@@ -624,4 +593,3 @@ s.stopPropagation();

const i = r[o];
if (i.identifier === t)
return i;
if (i.identifier === t) return i;
}

@@ -700,4 +668,3 @@ return null;

let g = (m, w) => {
if (p.pointerType = w, i || w === "touch" || p.isHovered || !m.currentTarget.contains(m.target))
return;
if (p.pointerType = w, i || w === "touch" || p.isHovered || !m.currentTarget.contains(m.target)) return;
p.isHovered = !0;

@@ -711,4 +678,3 @@ let T = m.currentTarget;

}, D = (m, w) => {
if (p.pointerType = "", p.target = null, w === "touch" || !p.isHovered)
return;
if (p.pointerType = "", p.target = null, w === "touch" || !p.isHovered) return;
p.isHovered = !1;

@@ -715,0 +681,0 @@ let T = m.currentTarget;

{
"name": "@sps-woodland/buttons",
"description": "SPS Woodland Design System button components",
"version": "8.10.2",
"version": "8.10.3",
"author": "SPS Commerce",

@@ -33,4 +33,4 @@ "license": "UNLICENSED",

"react-dom": "^16.9.0",
"@sps-woodland/core": "8.10.2",
"@sps-woodland/tokens": "8.10.2"
"@sps-woodland/core": "8.10.3",
"@sps-woodland/tokens": "8.10.3"
},

@@ -46,4 +46,4 @@ "devDependencies": {

"react-dom": "^16.9.0",
"@sps-woodland/core": "8.10.2",
"@sps-woodland/tokens": "8.10.2"
"@sps-woodland/core": "8.10.3",
"@sps-woodland/tokens": "8.10.3"
},

@@ -50,0 +50,0 @@ "dependencies": {

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