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

nav-frontend-skjema

Package Overview
Dependencies
Maintainers
2
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nav-frontend-skjema - npm Package Compare versions

Comparing version 1.0.24 to 1.0.25

1

lib/bekreft-checkboks-panel.d.ts

@@ -33,3 +33,2 @@ /// <reference types="react" />

export declare class BekreftCheckboksPanel extends React.Component<BekreftCheckboksPanelProps, State> {
private childrenId;
constructor(props: BekreftCheckboksPanelProps);

@@ -36,0 +35,0 @@ toggleOutline(): () => void;

8

lib/bekreft-checkboks-panel.js

@@ -15,3 +15,2 @@ "use strict";

var PT = require("prop-types");
var nav_frontend_js_utils_1 = require("nav-frontend-js-utils");

@@ -27,5 +26,2 @@ var BekreftCheckboksPanel = function (_React$Component) {

_this.state = { hasFocus: false };
if (_this.props.children) {
_this.childrenId = nav_frontend_js_utils_1.guid();
}
return _this;

@@ -47,3 +43,3 @@ }

var children = this.props.children;
return children ? React.createElement("div", { className: "bekreftCheckboksPanel-innhold", id: this.childrenId }, children) : null;
return children ? React.createElement("div", { className: "bekreftCheckboksPanel-innhold" }, children) : null;
}

@@ -65,3 +61,3 @@ }, {

});
return React.createElement("div", { className: cls }, this.renderChildren(), React.createElement("label", { className: "inputPanel__label" }, React.createElement("input", Object.assign({}, inputProps, { className: "inputPanel__field", type: "checkbox", checked: checked, "aria-checked": checked, onFocus: this.toggleOutline(), onBlur: this.toggleOutline(), onChange: onChange, "aria-labelledby": this.childrenId })), React.createElement("span", { className: "inputPanel__textlabel" }, label)));
return React.createElement("div", { className: cls }, this.renderChildren(), React.createElement("label", { className: "inputPanel__label" }, React.createElement("input", Object.assign({}, inputProps, { className: "inputPanel__field", type: "checkbox", checked: checked, "aria-checked": checked, onFocus: this.toggleOutline(), onBlur: this.toggleOutline(), onChange: onChange })), React.createElement("span", { className: "inputPanel__textlabel" }, label)));
}

@@ -68,0 +64,0 @@ }]);

{
"name": "nav-frontend-skjema",
"version": "1.0.24",
"version": "1.0.25",
"main": "lib/index.js",

@@ -18,3 +18,3 @@ "types": "lib/index.d.ts",

"nav-frontend-js-utils": "^1.0.6",
"nav-frontend-skjema-style": "^1.0.9",
"nav-frontend-skjema-style": "^1.0.10",
"prop-types": "^15.5.10",

@@ -26,3 +26,3 @@ "react": "^15.4.2 || ^16.0.0"

"nav-frontend-js-utils": "^1.0.6",
"nav-frontend-skjema-style": "^1.0.9",
"nav-frontend-skjema-style": "^1.0.10",
"prop-types": "^15.5.10",

@@ -29,0 +29,0 @@ "react": "^15.4.2 || ^16.0.0"

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