@fremtind/jkl-breadcrumb-react
Advanced tools
Comparing version 1.0.14 to 2.0.0
import _extends from '@babel/runtime/helpers/extends'; | ||
import cn from 'classnames'; | ||
import React from 'react'; | ||
import cn from 'classnames'; | ||
@@ -5,0 +5,0 @@ const Breadcrumb = ({ |
@@ -1,1 +0,1 @@ | ||
import e from"@babel/runtime/helpers/extends";import a from"react";import l from"classnames";const r=({className:r,children:t,...m})=>{const n=a.Children.count(t);return a.createElement("nav",e({"aria-label":"Sti",className:l("jkl-breadcrumb",r)},m),a.createElement("ol",{className:"jkl-breadcrumb__list"},a.Children.map(t,((e,l)=>{const r=l+1===n;return a.createElement(a.Fragment,null,a.isValidElement(e)?a.cloneElement(e,{isLastElement:r}):e,!r&&a.createElement("span",{className:"jkl-breadcrumb__item-separator","aria-hidden":"true"},"›"))}))))},t=({className:r,children:t,isLastElement:m,...n})=>a.createElement("li",e({className:l("jkl-breadcrumb__item",r)},n),a.Children.map(t,(e=>a.isValidElement(e)?a.cloneElement(e,{"aria-current":m?"page":void 0,className:m?void 0:"jkl-link"}):e)));export{r as Breadcrumb,t as BreadcrumbItem}; | ||
import e from"@babel/runtime/helpers/extends";import a from"classnames";import l from"react";const r=({className:r,children:t,...m})=>{const n=l.Children.count(t);return l.createElement("nav",e({"aria-label":"Sti",className:a("jkl-breadcrumb",r)},m),l.createElement("ol",{className:"jkl-breadcrumb__list"},l.Children.map(t,((e,a)=>{const r=a+1===n;return l.createElement(l.Fragment,null,l.isValidElement(e)?l.cloneElement(e,{isLastElement:r}):e,!r&&l.createElement("span",{className:"jkl-breadcrumb__item-separator","aria-hidden":"true"},"›"))}))))},t=({className:r,children:t,isLastElement:m,...n})=>l.createElement("li",e({className:a("jkl-breadcrumb__item",r)},n),l.Children.map(t,(e=>l.isValidElement(e)?l.cloneElement(e,{"aria-current":m?"page":void 0,className:m?void 0:"jkl-link"}):e)));export{r as Breadcrumb,t as BreadcrumbItem}; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
var _extends = require('@babel/runtime/helpers/extends'); | ||
var cn = require('classnames'); | ||
var React = require('react'); | ||
var cn = require('classnames'); | ||
@@ -13,4 +13,4 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends); | ||
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn); | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn); | ||
@@ -17,0 +17,0 @@ const Breadcrumb = ({ |
import _extends from '@babel/runtime/helpers/extends'; | ||
import cn from 'classnames'; | ||
import React from 'react'; | ||
import cn from 'classnames'; | ||
@@ -5,0 +5,0 @@ const Breadcrumb = ({ |
@@ -1,1 +0,1 @@ | ||
import e from"@babel/runtime/helpers/extends";import a from"react";import l from"classnames";const r=({className:r,children:t,...m})=>{const n=a.Children.count(t);return a.createElement("nav",e({"aria-label":"Sti",className:l("jkl-breadcrumb",r)},m),a.createElement("ol",{className:"jkl-breadcrumb__list"},a.Children.map(t,((e,l)=>{const r=l+1===n;return a.createElement(a.Fragment,null,a.isValidElement(e)?a.cloneElement(e,{isLastElement:r}):e,!r&&a.createElement("span",{className:"jkl-breadcrumb__item-separator","aria-hidden":"true"},"›"))}))))},t=({className:r,children:t,isLastElement:m,...n})=>a.createElement("li",e({className:l("jkl-breadcrumb__item",r)},n),a.Children.map(t,(e=>a.isValidElement(e)?a.cloneElement(e,{"aria-current":m?"page":void 0,className:m?void 0:"jkl-link"}):e)));export{r as Breadcrumb,t as BreadcrumbItem}; | ||
import e from"@babel/runtime/helpers/extends";import a from"classnames";import l from"react";const r=({className:r,children:t,...m})=>{const n=l.Children.count(t);return l.createElement("nav",e({"aria-label":"Sti",className:a("jkl-breadcrumb",r)},m),l.createElement("ol",{className:"jkl-breadcrumb__list"},l.Children.map(t,((e,a)=>{const r=a+1===n;return l.createElement(l.Fragment,null,l.isValidElement(e)?l.cloneElement(e,{isLastElement:r}):e,!r&&l.createElement("span",{className:"jkl-breadcrumb__item-separator","aria-hidden":"true"},"›"))}))))},t=({className:r,children:t,isLastElement:m,...n})=>l.createElement("li",e({className:a("jkl-breadcrumb__item",r)},n),l.Children.map(t,(e=>l.isValidElement(e)?l.cloneElement(e,{"aria-current":m?"page":void 0,className:m?void 0:"jkl-link"}):e)));export{r as Breadcrumb,t as BreadcrumbItem}; |
{ | ||
"name": "@fremtind/jkl-breadcrumb-react", | ||
"version": "1.0.14", | ||
"version": "2.0.0", | ||
"publishConfig": { | ||
@@ -37,4 +37,4 @@ "access": "public" | ||
"@babel/runtime": "^7.17.8", | ||
"@fremtind/jkl-breadcrumb": "^1.0.14", | ||
"@fremtind/jkl-core": "^9.7.0", | ||
"@fremtind/jkl-breadcrumb": "^2.0.0", | ||
"@fremtind/jkl-core": "^10.0.0", | ||
"classnames": "^2.2.6" | ||
@@ -55,3 +55,3 @@ }, | ||
}, | ||
"gitHead": "bef3e12bbebb1f1fd0e68c3fa88b6a618d418f7a" | ||
"gitHead": "a9ef7e7b8b7b04d90cdc9300aced2e68ea341120" | ||
} |
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
11370
+ Added@fremtind/jkl-breadcrumb@2.0.12(transitive)
+ Added@fremtind/jkl-core@10.1.0(transitive)
- Removed@fremtind/jkl-breadcrumb@1.0.14(transitive)
- Removed@fremtind/jkl-core@9.7.0(transitive)
Updated@fremtind/jkl-core@^10.0.0