@digibib/deichman-ui
Advanced tools
Comparing version 2.5.3 to 2.5.4
@@ -1350,2 +1350,34 @@ import React, { Component } from 'react'; | ||
var Flex = function Flex(_ref) { | ||
var _classNames; | ||
var align = _ref.align, | ||
justify = _ref.justify, | ||
wrap = _ref.wrap, | ||
children = _ref.children; | ||
var flexClass = classnames((_classNames = { | ||
flex: true | ||
}, defineProperty(_classNames, 'flex--align-' + align, align), defineProperty(_classNames, 'flex--justify-' + justify, justify), defineProperty(_classNames, 'flex--wrap', wrap), _classNames)); | ||
return React.createElement( | ||
'div', | ||
{ className: flexClass }, | ||
children | ||
); | ||
}; | ||
Flex.defaultProps = { | ||
align: 'center', | ||
justify: 'flex-start', | ||
wrap: false | ||
}; | ||
Flex.propTypes = { | ||
children: propTypes.node.isRequired, | ||
align: propTypes.string, | ||
justify: propTypes.string, | ||
wrap: propTypes.bool | ||
}; | ||
var Hr = function Hr(_ref) { | ||
@@ -2257,3 +2289,3 @@ var color = _ref.color; | ||
export { Accordion, Block, Burger, Button, Container, Button$1 as Checkbox, Hr, Grid, GridItem, Icon, IconLoader, Input, List, Modal, Overlay, Overflow, Select, ShowMore, Sidebar, Table, Tag, TagList, Text, Textarea }; | ||
export { Accordion, Block, Burger, Button, Container, Button$1 as Checkbox, Hr, Flex, Grid, GridItem, Icon, IconLoader, Input, List, Modal, Overlay, Overflow, Select, ShowMore, Sidebar, Table, Tag, TagList, Text, Textarea }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1357,2 +1357,34 @@ 'use strict'; | ||
var Flex = function Flex(_ref) { | ||
var _classNames; | ||
var align = _ref.align, | ||
justify = _ref.justify, | ||
wrap = _ref.wrap, | ||
children = _ref.children; | ||
var flexClass = classnames((_classNames = { | ||
flex: true | ||
}, defineProperty(_classNames, 'flex--align-' + align, align), defineProperty(_classNames, 'flex--justify-' + justify, justify), defineProperty(_classNames, 'flex--wrap', wrap), _classNames)); | ||
return React__default.createElement( | ||
'div', | ||
{ className: flexClass }, | ||
children | ||
); | ||
}; | ||
Flex.defaultProps = { | ||
align: 'center', | ||
justify: 'flex-start', | ||
wrap: false | ||
}; | ||
Flex.propTypes = { | ||
children: propTypes.node.isRequired, | ||
align: propTypes.string, | ||
justify: propTypes.string, | ||
wrap: propTypes.bool | ||
}; | ||
var Hr = function Hr(_ref) { | ||
@@ -2271,2 +2303,3 @@ var color = _ref.color; | ||
exports.Hr = Hr; | ||
exports.Flex = Flex; | ||
exports.Grid = Grid; | ||
@@ -2273,0 +2306,0 @@ exports.GridItem = GridItem; |
{ | ||
"name": "@digibib/deichman-ui", | ||
"version": "2.5.3", | ||
"version": "2.5.4", | ||
"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
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
528857
4446