@entur-partner/common
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,2 +9,4 @@ 'use strict'; | ||
var React__default = _interopDefault(React); | ||
var typography = require('@entur/typography'); | ||
var cx = _interopDefault(require('classnames')); | ||
@@ -57,6 +59,16 @@ const Stack = ({ | ||
const LinkButton = ({ | ||
children, | ||
className, | ||
...rest | ||
}) => React__default.createElement(typography.Link, Object.assign({}, rest, { | ||
as: "button", | ||
className: cx('eps-link-button', className) | ||
}), children); | ||
exports.ActionBar = ActionBar; | ||
exports.ActionBarLeft = ActionBarLeft; | ||
exports.ActionBarRight = ActionBarRight; | ||
exports.LinkButton = LinkButton; | ||
exports.Stack = Stack; | ||
//# sourceMappingURL=common.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),a=(e=t)&&"object"==typeof e&&"default"in e?e.default:e;exports.ActionBar=({children:e})=>a.createElement(a.Fragment,null,a.createElement("div",{className:"eps-action-bar-padding"}),a.createElement("div",{className:"eps-action-bar"},e)),exports.ActionBarLeft=({children:e})=>a.createElement("div",{className:"eps-action-bar-left"},e),exports.ActionBarRight=({children:e})=>a.createElement("div",{className:"eps-action-bar-right"},e),exports.Stack=({children:e,space:r})=>{const c=t.Children.toArray(e);return c.length<=1?a.createElement(a.Fragment,null,c):a.createElement("div",{className:"eps-stack"},c.map((e,t)=>a.createElement("div",t===c.length-1?{key:t}:{className:"eps-pb-"+r,key:t},e)))}; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react"),a=e(t),r=require("@entur/typography"),n=e(require("classnames"));exports.ActionBar=({children:e})=>a.createElement(a.Fragment,null,a.createElement("div",{className:"eps-action-bar-padding"}),a.createElement("div",{className:"eps-action-bar"},e)),exports.ActionBarLeft=({children:e})=>a.createElement("div",{className:"eps-action-bar-left"},e),exports.ActionBarRight=({children:e})=>a.createElement("div",{className:"eps-action-bar-right"},e),exports.LinkButton=({children:e,className:t,...s})=>a.createElement(r.Link,Object.assign({},s,{as:"button",className:n("eps-link-button",t)}),e),exports.Stack=({children:e,space:r})=>{const n=t.Children.toArray(e);return n.length<=1?a.createElement(a.Fragment,null,n):a.createElement("div",{className:"eps-stack"},n.map((e,t)=>a.createElement("div",t===n.length-1?{key:t}:{className:"eps-pb-"+r,key:t},e)))}; | ||
//# sourceMappingURL=common.cjs.production.min.js.map |
import React, { Children } from 'react'; | ||
import { Link } from '@entur/typography'; | ||
import cx from 'classnames'; | ||
@@ -49,3 +51,12 @@ const Stack = ({ | ||
export { ActionBar, ActionBarLeft, ActionBarRight, Stack }; | ||
const LinkButton = ({ | ||
children, | ||
className, | ||
...rest | ||
}) => React.createElement(Link, Object.assign({}, rest, { | ||
as: "button", | ||
className: cx('eps-link-button', className) | ||
}), children); | ||
export { ActionBar, ActionBarLeft, ActionBarRight, LinkButton, Stack }; | ||
//# sourceMappingURL=common.esm.js.map |
import './index.scss'; | ||
export { Stack } from './Stack'; | ||
export { ActionBar, ActionBarLeft, ActionBarRight } from './ActionBar'; | ||
export { LinkButton } from './LinkButton'; |
{ | ||
"name": "@entur-partner/common", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"license": "EUPL-1.2", | ||
@@ -35,3 +35,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "dcbbc280bf66f8f3cdb7527ce0d2ae57272c2c95" | ||
"gitHead": "01f63a2991739d2303fcdc56efaff4d78da002c9" | ||
} |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
18018
15
243