nav-frontend-skjema
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -5,3 +5,3 @@ import * as React from "react"; | ||
label: React.ReactNode; | ||
subtext?: string; | ||
subtext?: React.ReactNode; | ||
feil?: boolean; | ||
@@ -8,0 +8,0 @@ } |
@@ -10,2 +10,3 @@ import * as React from "react"; | ||
feil?: boolean; | ||
subtext?: React.ReactNode; | ||
} | ||
@@ -12,0 +13,0 @@ export interface RadioPanelState { |
@@ -51,3 +51,3 @@ "use strict"; | ||
render() { | ||
const _a = this.props, { id, label, checked, disabled, radioRef, feil } = _a, other = __rest(_a, ["id", "label", "checked", "disabled", "radioRef", "feil"]); | ||
const _a = this.props, { id, label, checked, disabled, radioRef, feil, subtext } = _a, other = __rest(_a, ["id", "label", "checked", "disabled", "radioRef", "feil", "subtext"]); | ||
const { hasFocus } = this.state; | ||
@@ -64,3 +64,4 @@ const inputId = id || (0, nav_frontend_js_utils_1.guid)(); | ||
React.createElement("input", Object.assign({ id: inputId, className: "inputPanel__field", type: "radio", checked: checked, "aria-checked": checked, disabled: disabled, "aria-invalid": !!context.feil, "aria-errormessage": context.feilmeldingId, ref: radioRef }, other, { onFocus: () => this.toggleOutline(), onBlur: () => this.toggleOutline() })), | ||
React.createElement("span", { className: "inputPanel__label" }, label))))); | ||
React.createElement("span", { className: "inputPanel__label" }, label), | ||
subtext && React.createElement("span", { className: "inputPanel__subtext" }, subtext))))); | ||
} | ||
@@ -67,0 +68,0 @@ } |
{ | ||
"name": "nav-frontend-skjema", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"main": "lib/index.js", | ||
@@ -39,3 +39,3 @@ "types": "lib/index.d.ts", | ||
}, | ||
"gitHead": "5fd28b01316ea6651a8983b87aaaf7d29db3e797" | ||
"gitHead": "7a9820ffa6e0c791a3de10e38ba2722ec99e1c46" | ||
} |
Sorry, the diff of this file is not supported yet
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
164499
4307