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

@fremtind/jkl-breadcrumb-react

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.0.14 to 2.0.0

2

build/browser/index.js
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"
}
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