Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fremtind/jkl-accordion-react

Package Overview
Dependencies
Maintainers
2
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-accordion-react - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

4

build/browser/index.js

@@ -14,2 +14,6 @@ import CoreToggle from '@nrk/core-toggle/jsx';

function _iterableToArrayLimit(arr, i) {
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
return;
}
var _arr = [];

@@ -16,0 +20,0 @@ var _n = true;

2

build/browser/index.min.js

@@ -1,1 +0,1 @@

import t from"@nrk/core-toggle/jsx";import e,{useState as r}from"react";import{useAnimatedHeight as n}from"@fremtind/jkl-react-hooks";function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,a=!1,o=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(o){var c=o.children,i=o.title,l=o.startExpanded,d=a(r(void 0!==l&&l),2),m=d[0],s=d[1],u=a(n(m),1)[0],f=m?" jkl-accordion-item--expanded":"";return e.createElement("div",{"data-testid":"jkl-accordion-item",className:"jkl-accordion-item".concat(f)},e.createElement("button",{className:"jkl-accordion-item__title",type:"button"},e.createElement("span",{className:"jkl-accordion-item__title-text"},i),e.createElement("span",{className:"jkl-accordion-item__title-icon"})),e.createElement(t,{ref:u,"data-testid":"jkl-accordion-item__content-wrapper",className:"jkl-accordion-item__content-wrapper",hidden:!m,onToggle:function(){return s(!m)}},e.createElement("div",{className:"jkl-accordion-item__content"},c)))}function c(t){var r=t.children,n=t.className,a=void 0===n?"":n;return e.createElement("div",{"data-testid":"jkl-accordion",className:"jkl-accordion ".concat(a)},r)}export{c as Accordion,o as AccordionItem};
import t from"@nrk/core-toggle/jsx";import e,{useState as r}from"react";import{useAnimatedHeight as n}from"@fremtind/jkl-react-hooks";function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(o){var c=o.children,i=o.title,l=o.startExpanded,d=a(r(void 0!==l&&l),2),m=d[0],s=d[1],u=a(n(m),1)[0],f=m?" jkl-accordion-item--expanded":"";return e.createElement("div",{"data-testid":"jkl-accordion-item",className:"jkl-accordion-item".concat(f)},e.createElement("button",{className:"jkl-accordion-item__title",type:"button"},e.createElement("span",{className:"jkl-accordion-item__title-text"},i),e.createElement("span",{className:"jkl-accordion-item__title-icon"})),e.createElement(t,{ref:u,"data-testid":"jkl-accordion-item__content-wrapper",className:"jkl-accordion-item__content-wrapper",hidden:!m,onToggle:function(){return s(!m)}},e.createElement("div",{className:"jkl-accordion-item__content"},c)))}function c(t){var r=t.children,n=t.className,a=void 0===n?"":n;return e.createElement("div",{"data-testid":"jkl-accordion",className:"jkl-accordion ".concat(a)},r)}export{c as Accordion,o as AccordionItem};

@@ -21,2 +21,6 @@ 'use strict';

function _iterableToArrayLimit(arr, i) {
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
return;
}
var _arr = [];

@@ -23,0 +27,0 @@ var _n = true;

@@ -14,2 +14,6 @@ import CoreToggle from '@nrk/core-toggle/jsx';

function _iterableToArrayLimit(arr, i) {
if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
return;
}
var _arr = [];

@@ -16,0 +20,0 @@ var _n = true;

@@ -1,1 +0,1 @@

import t from"@nrk/core-toggle/jsx";import e,{useState as r}from"react";import{useAnimatedHeight as n}from"@fremtind/jkl-react-hooks";function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,a=!1,o=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(o){var c=o.children,i=o.title,l=o.startExpanded,d=a(r(void 0!==l&&l),2),m=d[0],s=d[1],u=a(n(m),1)[0],f=m?" jkl-accordion-item--expanded":"";return e.createElement("div",{"data-testid":"jkl-accordion-item",className:"jkl-accordion-item".concat(f)},e.createElement("button",{className:"jkl-accordion-item__title",type:"button"},e.createElement("span",{className:"jkl-accordion-item__title-text"},i),e.createElement("span",{className:"jkl-accordion-item__title-icon"})),e.createElement(t,{ref:u,"data-testid":"jkl-accordion-item__content-wrapper",className:"jkl-accordion-item__content-wrapper",hidden:!m,onToggle:function(){return s(!m)}},e.createElement("div",{className:"jkl-accordion-item__content"},c)))}function c(t){var r=t.children,n=t.className,a=void 0===n?"":n;return e.createElement("div",{"data-testid":"jkl-accordion",className:"jkl-accordion ".concat(a)},r)}export{c as Accordion,o as AccordionItem};
import t from"@nrk/core-toggle/jsx";import e,{useState as r}from"react";import{useAnimatedHeight as n}from"@fremtind/jkl-react-hooks";function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)))return;var r=[],n=!0,a=!1,o=void 0;try{for(var c,i=t[Symbol.iterator]();!(n=(c=i.next()).done)&&(r.push(c.value),!e||r.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(o){var c=o.children,i=o.title,l=o.startExpanded,d=a(r(void 0!==l&&l),2),m=d[0],s=d[1],u=a(n(m),1)[0],f=m?" jkl-accordion-item--expanded":"";return e.createElement("div",{"data-testid":"jkl-accordion-item",className:"jkl-accordion-item".concat(f)},e.createElement("button",{className:"jkl-accordion-item__title",type:"button"},e.createElement("span",{className:"jkl-accordion-item__title-text"},i),e.createElement("span",{className:"jkl-accordion-item__title-icon"})),e.createElement(t,{ref:u,"data-testid":"jkl-accordion-item__content-wrapper",className:"jkl-accordion-item__content-wrapper",hidden:!m,onToggle:function(){return s(!m)}},e.createElement("div",{className:"jkl-accordion-item__content"},c)))}function c(t){var r=t.children,n=t.className,a=void 0===n?"":n;return e.createElement("div",{"data-testid":"jkl-accordion",className:"jkl-accordion ".concat(a)},r)}export{c as Accordion,o as AccordionItem};

@@ -6,2 +6,10 @@ # Change Log

## [0.9.4](https://github.com/fremtind/jokul/compare/@fremtind/jkl-accordion-react@0.9.3...@fremtind/jkl-accordion-react@0.9.4) (2019-10-09)
**Note:** Version bump only for package @fremtind/jkl-accordion-react
## [0.9.3](https://github.com/fremtind/jokul/compare/@fremtind/jkl-accordion-react@0.9.2...@fremtind/jkl-accordion-react@0.9.3) (2019-09-26)

@@ -8,0 +16,0 @@

{
"name": "@fremtind/jkl-accordion-react",
"version": "0.9.3",
"version": "0.9.4",
"publishConfig": {

@@ -36,11 +36,11 @@ "access": "public"

"dependencies": {
"@fremtind/jkl-accordion": "^0.8.3",
"@fremtind/jkl-react-hooks": "^0.2.1",
"@fremtind/jkl-accordion": "^0.9.0",
"@fremtind/jkl-react-hooks": "^0.2.2",
"@nrk/core-toggle": "^3.0.4"
},
"devDependencies": {
"@fremtind/browserslist-config-jkl": "^0.3.5"
"@fremtind/browserslist-config-jkl": "^0.4.0"
},
"peerDependencies": {
"@types/react": "^16.8.17",
"@types/react": "^16.9.4",
"@types/react-dom": "^16.8.4",

@@ -60,3 +60,3 @@ "react": "^16.8.6",

],
"gitHead": "d7e02258d7fcaca6f3c26ffbfcd63a1ae855d81f"
"gitHead": "f79916c3cf2d48704066a05a77f7b9b57c7fbf64"
}
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