@digibib/deichman-ui
Advanced tools
Comparing version 6.4.0 to 6.4.1
@@ -367,2 +367,31 @@ import React, { Component, Fragment } from 'react'; | ||
var Badge = function Badge(_ref) { | ||
var text = _ref.text, | ||
theme = _ref.theme; | ||
var badgeClass = classNames(defineProperty({ | ||
badge: true | ||
}, 'col-' + theme, true)); | ||
return React.createElement( | ||
'div', | ||
{ className: badgeClass }, | ||
React.createElement( | ||
'span', | ||
{ className: 'badge__inner' }, | ||
text | ||
) | ||
); | ||
}; | ||
Badge.defaultProps = { | ||
text: '', | ||
theme: 'ok-1' | ||
}; | ||
Badge.propTypes = { | ||
text: PropTypes.string, | ||
theme: PropTypes.string | ||
}; | ||
var Icon = function Icon(_ref) { | ||
@@ -1805,3 +1834,3 @@ var size = _ref.size, | ||
export { Accordion, Banner, Block, Breakpoint, Burger, Button, Button$1 as Checkbox, CircleButton, Container, Hr, Flex, Grid, GridItem, Icon, IconLoader, Input, List, Loader, Modal, Overlay, Overflow, Select, ShowMore, Sidebar, Sorter, Table, Tag, TagList, Text, Textarea }; | ||
export { Accordion, Badge, Banner, Block, Breakpoint, Burger, Button, Button$1 as Checkbox, CircleButton, Container, Hr, Flex, Grid, GridItem, Icon, IconLoader, Input, List, Loader, Modal, Overlay, Overflow, Select, ShowMore, Sidebar, Sorter, Table, Tag, TagList, Text, Textarea }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -374,2 +374,31 @@ 'use strict'; | ||
var Badge = function Badge(_ref) { | ||
var text = _ref.text, | ||
theme = _ref.theme; | ||
var badgeClass = classNames(defineProperty({ | ||
badge: true | ||
}, 'col-' + theme, true)); | ||
return React__default.createElement( | ||
'div', | ||
{ className: badgeClass }, | ||
React__default.createElement( | ||
'span', | ||
{ className: 'badge__inner' }, | ||
text | ||
) | ||
); | ||
}; | ||
Badge.defaultProps = { | ||
text: '', | ||
theme: 'ok-1' | ||
}; | ||
Badge.propTypes = { | ||
text: PropTypes.string, | ||
theme: PropTypes.string | ||
}; | ||
var Icon = function Icon(_ref) { | ||
@@ -1813,2 +1842,3 @@ var size = _ref.size, | ||
exports.Accordion = Accordion; | ||
exports.Badge = Badge; | ||
exports.Banner = Banner; | ||
@@ -1815,0 +1845,0 @@ exports.Block = Block; |
{ | ||
"name": "@digibib/deichman-ui", | ||
"version": "6.4.0", | ||
"version": "6.4.1", | ||
"description": "Deichman style-guide and component library", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Sorry, the diff of this file is not supported yet
753437
24
3994