UNPKG

@blockstack/ui

Version:

Blockstack UI components built using React and styled-components with styled-system.

66 lines (62 loc) 1.51 kB
import { objectSpread2 as _objectSpread2 } from '../_virtual/_rollupPluginBabelHelpers.js'; var defaultStyle = { height: 12, border: '1px solid', borderBottomColor: 'inherit', borderLeftColor: 'inherit', borderRightColor: 'inherit', borderTopColor: 'inherit', borderColor: 'inherit', bg: 'white', _hover: { borderBottomColor: 'ink.300', borderLeftColor: 'ink.300', borderRightColor: 'ink.300', borderTopColor: 'ink.300', borderColor: 'ink.300' }, _disabled: { bg: '#f9f9fc', cursor: 'not-allowed', pointerEvents: 'none' }, _focus: { borderBottomColor: 'blue.300', borderLeftColor: 'blue.300', borderRightColor: 'blue.300', borderTopColor: 'blue.300', borderColor: 'blue.300', boxShadow: '0 0 0 1px rgba(170, 179, 255, 0.75)' }, _invalid: { borderBottomColor: 'red', borderLeftColor: 'red', borderRightColor: 'red', borderTopColor: 'red', borderColor: 'red' } }; var baseProps = { display: 'flex', alignItems: 'center', position: 'relative', transition: 'all 0.2s', outline: 'none', borderRadius: '6px', p: '14px 16px' }; var inputSizes = { "default": { fontSize: 'body.small', height: '12', lineHeight: 'base' } }; var useInputStyle = function useInputStyle(props) { return _objectSpread2({ width: props.isFullWidth ? '100%' : undefined }, baseProps, {}, defaultStyle); }; export default useInputStyle; export { inputSizes }; //# sourceMappingURL=styles.esm.js.map