@fremtind/jkl-accordion-react
Advanced tools
Comparing version 8.0.15 to 9.0.0
@@ -30,6 +30,6 @@ "use strict"; | ||
module.exports = __toCommonJS(AccordionItem_exports); | ||
var import_jkl_icons_react = require("@fremtind/jkl-icons-react"); | ||
var import_jkl_react_hooks = require("@fremtind/jkl-react-hooks"); | ||
var import_classnames = __toESM(require("classnames")); | ||
var import_react = __toESM(require("react")); | ||
var import_AccordionExpandArrow = require("./AccordionExpandArrow"); | ||
const AccordionItem = ({ | ||
@@ -76,3 +76,11 @@ children, | ||
title, | ||
/* @__PURE__ */ import_react.default.createElement(import_AccordionExpandArrow.AccordionExpandArrow, { expanded: isOpen }) | ||
/* @__PURE__ */ import_react.default.createElement( | ||
import_jkl_icons_react.ArrowVerticalAnimated, | ||
{ | ||
variant: "medium", | ||
className: "jkl-accordion-item__arrow", | ||
pointingDown: !isOpen, | ||
bold: isOpen | ||
} | ||
) | ||
), | ||
@@ -79,0 +87,0 @@ /* @__PURE__ */ import_react.default.createElement( |
@@ -0,5 +1,5 @@ | ||
import { ArrowVerticalAnimated } from "@fremtind/jkl-icons-react"; | ||
import { useAnimatedHeight, useId } from "@fremtind/jkl-react-hooks"; | ||
import cn from "classnames"; | ||
import React, { useState } from "react"; | ||
import { AccordionExpandArrow } from "./AccordionExpandArrow"; | ||
const AccordionItem = ({ | ||
@@ -46,3 +46,11 @@ children, | ||
title, | ||
/* @__PURE__ */ React.createElement(AccordionExpandArrow, { expanded: isOpen }) | ||
/* @__PURE__ */ React.createElement( | ||
ArrowVerticalAnimated, | ||
{ | ||
variant: "medium", | ||
className: "jkl-accordion-item__arrow", | ||
pointingDown: !isOpen, | ||
bold: isOpen | ||
} | ||
) | ||
), | ||
@@ -49,0 +57,0 @@ /* @__PURE__ */ React.createElement( |
{ | ||
"name": "@fremtind/jkl-accordion-react", | ||
"version": "8.0.15", | ||
"version": "9.0.0", | ||
"publishConfig": { | ||
@@ -40,9 +40,10 @@ "access": "public" | ||
"dependencies": { | ||
"@fremtind/jkl-accordion": "^9.0.7", | ||
"@fremtind/jkl-core": "^11.4.0", | ||
"@fremtind/jkl-react-hooks": "^10.2.9", | ||
"@fremtind/jkl-accordion": "^10.0.0", | ||
"@fremtind/jkl-core": "^12.0.0", | ||
"@fremtind/jkl-icons-react": "^7.0.0", | ||
"@fremtind/jkl-react-hooks": "^11.0.0", | ||
"classnames": "^2.3.2" | ||
}, | ||
"devDependencies": { | ||
"@fremtind/jkl-list-react": "^8.0.12" | ||
"@fremtind/jkl-list-react": "^9.0.0" | ||
}, | ||
@@ -62,3 +63,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "ec5d85c9e404fbced0be21140faf4d7d295dbdea" | ||
"gitHead": "f325f04cebd537eaa97ae7b27535c946b6f85ff6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22952
9
18
272
+ Added@fremtind/jkl-accordion@10.0.7(transitive)
+ Added@fremtind/jkl-core@12.2.0(transitive)
+ Added@fremtind/jkl-icons@8.0.3(transitive)
+ Added@fremtind/jkl-icons-react@7.2.9(transitive)
+ Added@fremtind/jkl-react-hooks@11.5.1(transitive)
- Removed@fremtind/jkl-accordion@9.0.7(transitive)
- Removed@fremtind/jkl-core@11.4.0(transitive)
- Removed@fremtind/jkl-react-hooks@10.2.9(transitive)
Updated@fremtind/jkl-core@^12.0.0