@fremtind/jkl-accordion-react
Advanced tools
Comparing version 11.0.1 to 11.1.0
@@ -6,3 +6,4 @@ import { Density, WithChildren } from "@fremtind/jkl-core"; | ||
density?: Density; | ||
id?: string; | ||
} | ||
export declare const Accordion: FC<AccordionProps>; |
@@ -8,3 +8,4 @@ import { WithChildren } from "@fremtind/jkl-core"; | ||
onClick?: (e: React.MouseEvent, isOpen: boolean) => void; | ||
id?: string; | ||
} | ||
export declare const AccordionItem: FC<AccordionItemProps>; |
@@ -36,3 +36,3 @@ "use strict"; | ||
var import_react = __toESM(require("react")); | ||
const Accordion = ({ className, density, ...rest }) => { | ||
const Accordion = ({ className, density, id, ...rest }) => { | ||
return /* @__PURE__ */ import_react.default.createElement( | ||
@@ -45,2 +45,3 @@ "section", | ||
"data-density": density, | ||
id, | ||
...rest | ||
@@ -47,0 +48,0 @@ } |
@@ -44,2 +44,3 @@ "use strict"; | ||
onClick, | ||
id, | ||
...rest | ||
@@ -64,3 +65,4 @@ }) => { | ||
className: (0, import_classnames.default)("jkl-accordion-item", className), | ||
ref: detailsRef | ||
ref: detailsRef, | ||
id | ||
}, | ||
@@ -67,0 +69,0 @@ /* @__PURE__ */ import_react.default.createElement( |
import cn from "classnames"; | ||
import React from "react"; | ||
const Accordion = ({ className, density, ...rest }) => { | ||
const Accordion = ({ className, density, id, ...rest }) => { | ||
return /* @__PURE__ */ React.createElement( | ||
@@ -11,2 +11,3 @@ "section", | ||
"data-density": density, | ||
id, | ||
...rest | ||
@@ -13,0 +14,0 @@ } |
@@ -11,2 +11,3 @@ import { ArrowVerticalAnimated } from "@fremtind/jkl-icons-react"; | ||
onClick, | ||
id, | ||
...rest | ||
@@ -31,3 +32,4 @@ }) => { | ||
className: cn("jkl-accordion-item", className), | ||
ref: detailsRef | ||
ref: detailsRef, | ||
id | ||
}, | ||
@@ -34,0 +36,0 @@ /* @__PURE__ */ React.createElement( |
{ | ||
"name": "@fremtind/jkl-accordion-react", | ||
"version": "11.0.1", | ||
"version": "11.1.0", | ||
"publishConfig": { | ||
@@ -62,3 +62,3 @@ "access": "public" | ||
}, | ||
"gitHead": "5405759e07ba17a52b3938d7853546b4c5fbfbdf" | ||
"gitHead": "77703ef06a1256b5e8fabae1b234ca3ea6a2358e" | ||
} |
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
24247
322