@fremtind/jkl-core
Advanced tools
Comparing version 10.0.5 to 10.0.6
@@ -36,3 +36,4 @@ "use strict"; | ||
htmlFor, | ||
className = "" | ||
className = "", | ||
...rest | ||
}) => { | ||
@@ -52,2 +53,3 @@ const labelClassNames = (0, import_classnames.default)("jkl-label", className, { | ||
return /* @__PURE__ */ import_react.default.createElement(C, { | ||
...rest, | ||
className: labelClassNames, | ||
@@ -54,0 +56,0 @@ htmlFor |
@@ -29,3 +29,4 @@ "use strict"; | ||
var import_react = __toESM(require("react")); | ||
const ScreenReaderOnly = ({ children, showOnFocus }) => /* @__PURE__ */ import_react.default.createElement("span", { | ||
const ScreenReaderOnly = ({ children, showOnFocus, ...rest }) => /* @__PURE__ */ import_react.default.createElement("span", { | ||
...rest, | ||
className: `jkl-sr-only ${showOnFocus ? "jkl-sr-only--focusable" : ""}` | ||
@@ -32,0 +33,0 @@ }, children); |
@@ -10,3 +10,4 @@ import classNames from "classnames"; | ||
htmlFor, | ||
className = "" | ||
className = "", | ||
...rest | ||
}) => { | ||
@@ -26,2 +27,3 @@ const labelClassNames = classNames("jkl-label", className, { | ||
return /* @__PURE__ */ React.createElement(C, { | ||
...rest, | ||
className: labelClassNames, | ||
@@ -28,0 +30,0 @@ htmlFor |
import React from "react"; | ||
const ScreenReaderOnly = ({ children, showOnFocus }) => /* @__PURE__ */ React.createElement("span", { | ||
const ScreenReaderOnly = ({ children, showOnFocus, ...rest }) => /* @__PURE__ */ React.createElement("span", { | ||
...rest, | ||
className: `jkl-sr-only ${showOnFocus ? "jkl-sr-only--focusable" : ""}` | ||
@@ -4,0 +5,0 @@ }, children); |
{ | ||
"name": "@fremtind/jkl-core", | ||
"version": "10.0.5", | ||
"version": "10.0.6", | ||
"publishConfig": { | ||
@@ -66,3 +66,3 @@ "access": "public" | ||
}, | ||
"gitHead": "2c8ffd497736bea3920721f7452e2f08dabb1493" | ||
"gitHead": "80f85c41bdae6bd2d0e1321431f47b7037d9f2fe" | ||
} |
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
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
172442
2184