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

@entur/layout

Package Overview
Dependencies
Maintainers
13
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@entur/layout - npm Package Compare versions

Comparing version 2.1.47 to 2.1.48

3

dist/layout.cjs.development.js

@@ -154,2 +154,3 @@ 'use strict';

var children = _ref.children,
className = _ref.className,
_ref$max = _ref.max,

@@ -177,3 +178,3 @@ max = _ref$max === void 0 ? 99 : _ref$max,

}
var classList = classNames('eds-badge', {
var classList = classNames(className, 'eds-badge', {
'eds-badge--invisible': invisible,

@@ -180,0 +181,0 @@ 'eds-badge--show-zero': showZero

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),a=require("react"),t=require("classnames"),r=require("@entur/typography"),n=require("@entur/icons");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function c(e,a){if(null==e)return{};var t,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)a.indexOf(t=s[r])>=0||(n[t]=e[t]);return n}var i=["className","as"],l=a.forwardRef((function(e,r){var n=e.className,l=e.as,o=c(e,i);return a.createElement(d.Provider,{value:!0},a.createElement(l||"div",s({className:t("eds-contrast",n),ref:r},o)))})),d=a.createContext(!1),o=["children","className","as"],m=function(e){var r=e.children,n=e.className,i=e.as,l=c(e,o),d=i||"div",m=t("eds-base-card",n);return a.createElement(d,s({className:m},l),r)},u=["title","children","titleIcon","compact","className","externalLink","as"],p=["title","description","children","className","category","style","as","wholeCardAsElement"],v=["children","className","max","variant","showZero","invisible","as","type"],g=a.forwardRef((function(e,r){var n,i=e.children,l=e.max,d=void 0===l?99:l,o=e.variant,m=e.showZero,u=void 0!==m&&m,p=e.invisible,g=void 0!==p&&p,f=e.as,h=e.type,E=void 0===h?"status":h,N=c(e,v),_=f||"span",y=g;!1!==g||(0!==i||u)&&null!=i||(y=!0),n="number"==typeof i&&i>d?d+"+":i;var x=t("eds-badge",{"eds-badge--invisible":y,"eds-badge--show-zero":u},"eds-badge--variant-"+o,"eds-badge--type-"+E);return a.createElement(_,s({className:x,ref:r},N),n)})),f=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"bullet"}))})),h=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"notification"}))})),E=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"status"}))})),N=["className","children","compact","as"];e.warnAboutMissingStyles("layout","typography"),exports.Badge=g,exports.BaseCard=m,exports.BulletBadge=f,exports.Contrast=l,exports.ContrastContext=d,exports.MediaCard=function(e){var i=e.title,l=e.description,d=e.children,o=e.className,u=e.category,v=e.style,g=e.as,f=e.wholeCardAsElement,h=c(e,p),E=g||"a",N=t("eds-base-card","eds-media-card",o),_=f?{}:h,y=f?"div":E;return a.createElement(m,s({as:f?E:"div",className:N,style:v},f?h:{}),a.createElement("div",{className:"eds-media-card__media"},d),a.createElement(y,s({className:"eds-media-card__text"},_),u&&a.createElement(r.Label,{className:"eds-media-card__category"},u),a.createElement("div",{className:"eds-media-card__title"},i),a.createElement(r.Paragraph,null,l),a.createElement(n.ForwardIcon,{className:"eds-media-card__arrow-icon","aria-hidden":"true"})))},exports.NavigationCard=function(e){var i=e.title,l=e.children,d=e.titleIcon,o=e.compact,p=void 0!==o&&o,v=e.className,g=e.externalLink,f=void 0!==g&&g,h=e.as,E=c(e,u),N=h||"a",_=t("eds-navigation-card",v,{"eds-base-card--red-line":p,"eds-navigation-card--compact":p});return a.createElement(m,s({as:N,className:_},E),!p&&d&&a.createElement("div",{className:"eds-navigation-card__title-icon","aria-hidden":"true"},d),a.createElement("span",{className:"eds-navigation-card__title"},p&&d&&a.createElement("span",{className:"eds-navigation-card__title-icon-compact","aria-hidden":"true"},d),a.createElement(r.Heading3,{as:"span"},i)),!p&&a.createElement(a.Fragment,null,a.createElement(r.Paragraph,null,l),f&&a.createElement(n.ExternalIcon,{"aria-label":"Ekstern lenke",className:"eds-navigation-card__external--not-compact"})),p&&f&&a.createElement(n.ExternalIcon,{"aria-label":"Ekstern lenke",className:"eds-navigattion-card__icon eds-navigation-card__external--compact"}),p&&!f&&a.createElement(n.ForwardIcon,{className:"eds-navigattion-card__icon eds-navigation-card__arrow-icon","aria-hidden":"true"}))},exports.NotificationBadge=h,exports.StatusBadge=E,exports.Tag=function(e){var r=e.className,n=e.children,i=e.compact,l=e.as,d=c(e,N),o=l||"div",m=a.Children.toArray(n);return a.createElement(o,s({className:t("eds-tag",r,{"eds-tag--leading-icon":m.length>1&&"string"!=typeof m[0],"eds-tag--trailing-icon":m.length>1&&"string"!=typeof m[m.length-1],"eds-tag--compact":i})},d),n)},exports.useContrast=function(){return a.useContext(d)};
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@entur/utils"),a=require("react"),t=require("classnames"),r=require("@entur/typography"),n=require("@entur/icons");function s(){return s=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},s.apply(this,arguments)}function c(e,a){if(null==e)return{};var t,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)a.indexOf(t=s[r])>=0||(n[t]=e[t]);return n}var i=["className","as"],l=a.forwardRef((function(e,r){var n=e.className,l=e.as,o=c(e,i);return a.createElement(d.Provider,{value:!0},a.createElement(l||"div",s({className:t("eds-contrast",n),ref:r},o)))})),d=a.createContext(!1),o=["children","className","as"],m=function(e){var r=e.children,n=e.className,i=e.as,l=c(e,o),d=i||"div",m=t("eds-base-card",n);return a.createElement(d,s({className:m},l),r)},u=["title","children","titleIcon","compact","className","externalLink","as"],p=["title","description","children","className","category","style","as","wholeCardAsElement"],v=["children","className","max","variant","showZero","invisible","as","type"],g=a.forwardRef((function(e,r){var n,i=e.children,l=e.className,d=e.max,o=void 0===d?99:d,m=e.variant,u=e.showZero,p=void 0!==u&&u,g=e.invisible,f=void 0!==g&&g,h=e.as,E=e.type,N=void 0===E?"status":E,_=c(e,v),y=h||"span",x=f;!1!==f||(0!==i||p)&&null!=i||(x=!0),n="number"==typeof i&&i>o?o+"+":i;var b=t(l,"eds-badge",{"eds-badge--invisible":x,"eds-badge--show-zero":p},"eds-badge--variant-"+m,"eds-badge--type-"+N);return a.createElement(y,s({className:b,ref:r},_),n)})),f=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"bullet"}))})),h=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"notification"}))})),E=a.forwardRef((function(e,t){return a.createElement(g,s({as:e.as||"span"},e,{ref:t,type:"status"}))})),N=["className","children","compact","as"];e.warnAboutMissingStyles("layout","typography"),exports.Badge=g,exports.BaseCard=m,exports.BulletBadge=f,exports.Contrast=l,exports.ContrastContext=d,exports.MediaCard=function(e){var i=e.title,l=e.description,d=e.children,o=e.className,u=e.category,v=e.style,g=e.as,f=e.wholeCardAsElement,h=c(e,p),E=g||"a",N=t("eds-base-card","eds-media-card",o),_=f?{}:h,y=f?"div":E;return a.createElement(m,s({as:f?E:"div",className:N,style:v},f?h:{}),a.createElement("div",{className:"eds-media-card__media"},d),a.createElement(y,s({className:"eds-media-card__text"},_),u&&a.createElement(r.Label,{className:"eds-media-card__category"},u),a.createElement("div",{className:"eds-media-card__title"},i),a.createElement(r.Paragraph,null,l),a.createElement(n.ForwardIcon,{className:"eds-media-card__arrow-icon","aria-hidden":"true"})))},exports.NavigationCard=function(e){var i=e.title,l=e.children,d=e.titleIcon,o=e.compact,p=void 0!==o&&o,v=e.className,g=e.externalLink,f=void 0!==g&&g,h=e.as,E=c(e,u),N=h||"a",_=t("eds-navigation-card",v,{"eds-base-card--red-line":p,"eds-navigation-card--compact":p});return a.createElement(m,s({as:N,className:_},E),!p&&d&&a.createElement("div",{className:"eds-navigation-card__title-icon","aria-hidden":"true"},d),a.createElement("span",{className:"eds-navigation-card__title"},p&&d&&a.createElement("span",{className:"eds-navigation-card__title-icon-compact","aria-hidden":"true"},d),a.createElement(r.Heading3,{as:"span"},i)),!p&&a.createElement(a.Fragment,null,a.createElement(r.Paragraph,null,l),f&&a.createElement(n.ExternalIcon,{"aria-label":"Ekstern lenke",className:"eds-navigation-card__external--not-compact"})),p&&f&&a.createElement(n.ExternalIcon,{"aria-label":"Ekstern lenke",className:"eds-navigattion-card__icon eds-navigation-card__external--compact"}),p&&!f&&a.createElement(n.ForwardIcon,{className:"eds-navigattion-card__icon eds-navigation-card__arrow-icon","aria-hidden":"true"}))},exports.NotificationBadge=h,exports.StatusBadge=E,exports.Tag=function(e){var r=e.className,n=e.children,i=e.compact,l=e.as,d=c(e,N),o=l||"div",m=a.Children.toArray(n);return a.createElement(o,s({className:t("eds-tag",r,{"eds-tag--leading-icon":m.length>1&&"string"!=typeof m[0],"eds-tag--trailing-icon":m.length>1&&"string"!=typeof m[m.length-1],"eds-tag--compact":i})},d),n)},exports.useContrast=function(){return a.useContext(d)};
//# sourceMappingURL=layout.cjs.production.min.js.map

@@ -150,2 +150,3 @@ import { warnAboutMissingStyles } from '@entur/utils';

var children = _ref.children,
className = _ref.className,
_ref$max = _ref.max,

@@ -173,3 +174,3 @@ max = _ref$max === void 0 ? 99 : _ref$max,

}
var classList = classNames('eds-badge', {
var classList = classNames(className, 'eds-badge', {
'eds-badge--invisible': invisible,

@@ -176,0 +177,0 @@ 'eds-badge--show-zero': showZero

{
"name": "@entur/layout",
"version": "2.1.47",
"version": "2.1.48",
"license": "EUPL-1.2",

@@ -30,9 +30,9 @@ "main": "dist/index.js",

"dependencies": {
"@entur/icons": "^6.11.1",
"@entur/tokens": "^3.10.0",
"@entur/typography": "^1.8.14",
"@entur/icons": "^6.11.2",
"@entur/tokens": "^3.11.0",
"@entur/typography": "^1.8.15",
"@entur/utils": "^0.9.5",
"classnames": "^2.3.1"
},
"gitHead": "bfcfe0c1a78ad15d2e1a3fffe235ec21f02bae17"
"gitHead": "cd8bd67e916e644093ba1390154ccc96fa6f048f"
}

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

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