@entur/layout
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -6,2 +6,8 @@ # Change Log | ||
## [1.0.2](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.1...@entur/layout@1.0.2) (2020-01-08) | ||
### Bug Fixes | ||
- warn in development if the developer have forgotten the CSS ([e5c30fc](https://bitbucket.org/enturas/design-system/commits/e5c30fc08624ef22c02773892778abd92205c6b0)) | ||
## [1.0.1](https://bitbucket.org/enturas/design-system/compare/@entur/layout@1.0.0...@entur/layout@1.0.1) (2020-01-06) | ||
@@ -8,0 +14,0 @@ |
@@ -5,2 +5,3 @@ 'use strict'; | ||
var utils = require('@entur/utils'); | ||
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties')); | ||
@@ -64,2 +65,4 @@ var React = _interopDefault(require('react')); | ||
utils.warnAboutMissingStyles('layout', 'typography'); | ||
exports.BaseCard = BaseCard; | ||
@@ -66,0 +69,0 @@ exports.Contrast = Contrast; |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=e(require("@babel/runtime/helpers/objectWithoutProperties")),t=e(require("react")),r=e(require("classnames")),s=require("@entur/typography"),n=require("@entur/icons"),c=function(e){var s=e.as,n=void 0===s?"div":s,c=e.children,i=e.className,o=a(e,["as","children","className"]),l=r("eds-base-card",i);return t.createElement(n,Object.assign({className:l},o),c)};exports.BaseCard=c,exports.Contrast=function(e){var s=e.as,n=void 0===s?"div":s,c=e.className,i=a(e,["as","className"]);return t.createElement(n,Object.assign({className:r("eds-contrast",c)},i))},exports.NavigationCard=function(e){var i=e.as,o=void 0===i?"a":i,l=e.title,d=e.children,m=e.titleIcon,u=e.compact,v=void 0!==u&&u,p=e.className,g=a(e,["as","title","children","titleIcon","compact","className"]),N=r("eds-base-card","eds-navigation-card",p,{"eds-navigation-card--compact":v});return t.createElement(c,Object.assign({as:o,className:N},g),!v&&m&&t.createElement("div",{className:"eds-navigation-card__title-icon"},m),t.createElement(s.Heading3,{as:"span",margin:v?"both":"top"},l),!v&&t.createElement(s.Paragraph,null,d),t.createElement(n.ForwardIcon,{inline:v,className:"eds-navigation-card__arrow-icon"}))}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=require("@entur/utils"),t=e(require("@babel/runtime/helpers/objectWithoutProperties")),r=e(require("react")),s=e(require("classnames")),n=require("@entur/typography"),i=require("@entur/icons"),c=function(e){var a=e.as,n=void 0===a?"div":a,i=e.children,c=e.className,o=t(e,["as","children","className"]),l=s("eds-base-card",c);return r.createElement(n,Object.assign({className:l},o),i)};a.warnAboutMissingStyles("layout","typography"),exports.BaseCard=c,exports.Contrast=function(e){var a=e.as,n=void 0===a?"div":a,i=e.className,c=t(e,["as","className"]);return r.createElement(n,Object.assign({className:s("eds-contrast",i)},c))},exports.NavigationCard=function(e){var a=e.as,o=void 0===a?"a":a,l=e.title,d=e.children,u=e.titleIcon,m=e.compact,p=void 0!==m&&m,v=e.className,g=t(e,["as","title","children","titleIcon","compact","className"]),N=s("eds-base-card","eds-navigation-card",v,{"eds-navigation-card--compact":p});return r.createElement(c,Object.assign({as:o,className:N},g),!p&&u&&r.createElement("div",{className:"eds-navigation-card__title-icon"},u),r.createElement(n.Heading3,{as:"span",margin:p?"both":"top"},l),!p&&r.createElement(n.Paragraph,null,d),r.createElement(i.ForwardIcon,{inline:p,className:"eds-navigation-card__arrow-icon"}))}; | ||
//# sourceMappingURL=layout.cjs.production.min.js.map |
@@ -0,1 +1,2 @@ | ||
import { warnAboutMissingStyles } from '@entur/utils'; | ||
import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties'; | ||
@@ -59,3 +60,5 @@ import React from 'react'; | ||
warnAboutMissingStyles('layout', 'typography'); | ||
export { BaseCard, Contrast, NavigationCard }; | ||
//# sourceMappingURL=layout.esm.js.map |
{ | ||
"name": "@entur/layout", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"license": "EUPL-1.2", | ||
@@ -30,3 +30,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@entur/typography": "^0.7.0", | ||
"@entur/typography": "^0.7.1", | ||
"@entur/utils": "^0.2.0", | ||
"classnames": "^2.2.6" | ||
@@ -37,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "1755d311b4cb5121c90a6abf85c17a9dfc530abe" | ||
"gitHead": "a3e6403fb40b6400fe24cf22b47c00495740a940" | ||
} |
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
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
46395
202
5
+ Added@entur/utils@^0.2.0
Updated@entur/typography@^0.7.1