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

@fremtind/jkl-checkbox-react

Package Overview
Dependencies
Maintainers
0
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-checkbox-react - npm Package Compare versions

Comparing version 12.0.4 to 12.0.5

50

build/cjs/Checkbox.js

@@ -6,4 +6,30 @@ "use strict";

var __getOwnPropNames = Object.getOwnPropertyNames;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
var __export = (target, all) => {

@@ -40,3 +66,3 @@ for (var name in all)

(props, ref) => {
const {
const _a = props, {
id,

@@ -50,5 +76,14 @@ children,

checked,
indeterminate,
...rest
} = props;
indeterminate
} = _a, rest = __objRest(_a, [
"id",
"children",
"invalid",
"className",
"inline",
"density",
"data-testautoid",
"checked",
"indeterminate"
]);
const inputRef = (0, import_react.useRef)(null);

@@ -78,3 +113,3 @@ (0, import_react.useImperativeHandle)(ref, () => inputRef.current, []);

"input",
{
__spreadValues({
id: inputId,

@@ -87,5 +122,4 @@ ref: inputRef,

"data-testautoid": testAutoId,
checked,
...rest
}
checked
}, rest)
),

@@ -92,0 +126,0 @@ /* @__PURE__ */ import_react.default.createElement("label", { htmlFor: inputId, className: "jkl-checkbox__label" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "jkl-checkbox__mark" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "jkl-checkbox__indeterminate-mark" }), /* @__PURE__ */ import_react.default.createElement("span", { className: "jkl-checkbox__check-mark" })), /* @__PURE__ */ import_react.default.createElement("span", { className: "jkl-checkbox__text" }, children))

@@ -0,1 +1,29 @@

var __defProp = Object.defineProperty;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
if (__getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(b)) {
if (__propIsEnum.call(b, prop))
__defNormalProp(a, prop, b[prop]);
}
return a;
};
var __objRest = (source, exclude) => {
var target = {};
for (var prop in source)
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
target[prop] = source[prop];
if (source != null && __getOwnPropSymbols)
for (var prop of __getOwnPropSymbols(source)) {
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
target[prop] = source[prop];
}
return target;
};
import { useId } from "@fremtind/jkl-react-hooks";

@@ -11,3 +39,3 @@ import cn from "classnames";

(props, ref) => {
const {
const _a = props, {
id,

@@ -21,5 +49,14 @@ children,

checked,
indeterminate,
...rest
} = props;
indeterminate
} = _a, rest = __objRest(_a, [
"id",
"children",
"invalid",
"className",
"inline",
"density",
"data-testautoid",
"checked",
"indeterminate"
]);
const inputRef = useRef(null);

@@ -49,3 +86,3 @@ useImperativeHandle(ref, () => inputRef.current, []);

"input",
{
__spreadValues({
id: inputId,

@@ -58,5 +95,4 @@ ref: inputRef,

"data-testautoid": testAutoId,
checked,
...rest
}
checked
}, rest)
),

@@ -63,0 +99,0 @@ /* @__PURE__ */ React.createElement("label", { htmlFor: inputId, className: "jkl-checkbox__label" }, /* @__PURE__ */ React.createElement("span", { className: "jkl-checkbox__mark" }, /* @__PURE__ */ React.createElement("span", { className: "jkl-checkbox__indeterminate-mark" }), /* @__PURE__ */ React.createElement("span", { className: "jkl-checkbox__check-mark" })), /* @__PURE__ */ React.createElement("span", { className: "jkl-checkbox__text" }, children))

14

package.json
{
"name": "@fremtind/jkl-checkbox-react",
"version": "12.0.4",
"version": "12.0.5",
"publishConfig": {

@@ -41,9 +41,9 @@ "access": "public"

"dependencies": {
"@fremtind/jkl-checkbox": "^11.1.12",
"@fremtind/jkl-core": "^14.8.8",
"@fremtind/jkl-react-hooks": "^12.2.12",
"classnames": "^2.3.2"
"@fremtind/jkl-checkbox": "^11.1.13",
"@fremtind/jkl-core": "^14.8.9",
"@fremtind/jkl-react-hooks": "^12.2.13",
"classnames": "^2.5.1"
},
"devDependencies": {
"@fremtind/jkl-input-group-react": "^4.0.4"
"@fremtind/jkl-input-group-react": "^4.0.5"
},

@@ -63,3 +63,3 @@ "peerDependencies": {

},
"gitHead": "6ccee5218b9cdfd6ccc542d6b9dd9f630422b2ff"
"gitHead": "76fbf2eee70a9b2c2eaa952a65398a70a25688c9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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