UNPKG

smart-react-components

Version:

React UI library, wide variety of editable ready to use Styled and React components.

34 lines (26 loc) 861 B
'use strict'; function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var styled = require('styled-components'); var styled__default = _interopDefault(styled); var Li = require('./element/Li.js'); var Item = styled__default(Li)(({ theme }) => ` flex: 0 0 auto; padding: 0; > a { display: inline-flex; box-sizing: border-box; border: solid 1px; text-decoration: none; transition: ${theme.src.pagination.transition}; transition-property: border, background, color, fill; &:not([href]) { cursor: default; } &[disabled="true"], &[data-disabled="true"] { pointer-events: none; opacity: ${theme.src.pagination.disabledOpacity}; } } `); exports.Item = Item;