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

@helsenorge/form

Package Overview
Dependencies
Maintainers
5
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@helsenorge/form - npm Package Compare versions

Comparing version 26.0.0 to 26.0.1

9

components/form/example.js

@@ -5,3 +5,2 @@ import * as React from 'react';

import Pause from '@helsenorge/designsystem-react/components/Icons/Pause';
import { log } from '@helsenorge/core-utils/logger';
import { CheckBox } from '../checkbox';

@@ -130,3 +129,3 @@ import { RadioGroup } from '../radio-group';

this.onSubmit = () => {
log('form has been submitted');
console.log('form has been submitted');
this.setState({

@@ -142,3 +141,3 @@ formSubmitted: true,

this.onDraft = () => {
log('form has been saved as draft');
console.log('form has been saved as draft');
this.setState({

@@ -149,3 +148,3 @@ formSubmitted: true,

this.onCancel = () => {
log('form has been canceled');
console.log('form has been canceled');
};

@@ -242,3 +241,3 @@ this.validateRadioGroup = (value) => {

React.createElement("h3", null, 'Form med checkbox og validering'),
React.createElement(Form, { submitButtonType: "display", action: "#", submitButtonText: 'Opprett digitalt donorkort', errorMessage: '', onSubmit: () => log('sendte inn skjema') },
React.createElement(Form, { submitButtonType: "display", action: "#", submitButtonText: 'Opprett digitalt donorkort', errorMessage: '', onSubmit: () => console.log('sendte inn skjema') },
React.createElement(Validation, null,

@@ -245,0 +244,0 @@ React.createElement(CheckBox, { label: 'Jeg ønsker å gi bort mine organer og vev for transplantasjon ved min bortgang', onChange: this.toggleCheckbox4, id: "savebuttoncheckbox", checked: this.state.checkbox4Checked, isRequired: true, isStyleBlue: true, errorMessage: 'Du må krysse av for å gå videre' })))));

import * as React from 'react';
import * as ReactDOMServer from 'react-dom/server';
import { log } from '@helsenorge/core-utils/logger';
import './styles.scss';

@@ -48,6 +47,2 @@ const ValidationSummary = ({ submitted, components, header }) => {

const el2 = document.getElementById(`${b.props.id}-wrapper`);
if (!el1 || !el2) {
const missingElement = !el1 ? `${a.props.id}-wrapper` : `${b.props.id}-wrapper`;
log(`Validation-summary: could not find element with id ${missingElement}`);
}
if (el1 && el2) {

@@ -54,0 +49,0 @@ const compare = el1.compareDocumentPosition(el2);

{
"name": "@helsenorge/form",
"author": "Helsenorge",
"version": "26.0.0",
"version": "26.0.1",
"main": "./index.js",

@@ -6,0 +6,0 @@ "license": "ISC",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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