Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react'
// import Axs from 'axs'
import tag from 'clean-tag'
import styled from 'react-emotion'
import tags from 'html-tags'
import { scope } from '@compositor/x0/components'
const Ax = styled(tag)(props => props.css)
tags.forEach(t => {
Ax[t] = props =>
})
const f = [
10, 16, 18, 24, 36, 64
]
const BlockLink = props =>
export const Tag = React.forwardRef(({
is: Tag = 'div',
omitProps = [],
...props
}, ref) => React.createElement(Tag, {
ref,
...omit(props, omitProps)
}))
Tag.displayName = 'Clean.div'
Tag.defaultProps = {
omitProps: omitProps
}
tags.forEach(tag => {
Tag[tag] = React.forwardRef((props, ref) => React.createElement(Tag, { ref, is: tag, ...props }))
Tag[tag].displayName = 'Clean.' + tag
})
export default Tag
const create = styled => {
const H = styled(Tag)([], ({ css }) => css)
tags.forEach(tag => {
const T = cap(tag)
H[tag] = H.withComponent(tag)
H[tag].displayName = 'H.' + tag
H[T] = H.withComponent(tag)
H[T].displayName = 'H.' + T
})
return H
}
const H = require('./dist/index').default
const tags = require('html-tags')
const cap = require('./dist/cap').default
module.exports = H
tags.forEach(key => {
module.exports[cap(key)] = H[cap(key)]
})
const tags = require('html-tags')
const H = require('./dist/emotion').default
const cap = require('./dist/cap').default
module.exports = H
tags.forEach(key => {
module.exports[cap(key)] = H[cap(key)]
})
compose(
space,
color,
layout,
typography,
flexbox,
border,
background,
position,
grid,
shadow,
themed('El')
)
)
tags.forEach(tag => {
module.exports[tag.charAt(0).toUpperCase() + tag.slice(1)] = props =>
})
module.exports['Text'] = props =>
module.exports['Image'] = props =>
module.exports['UL'] = props =>
module.exports['OL'] = props =>
module.exports['LI'] = props =>
module.exports['DL'] = props =>
module.exports['DT'] = props =>
module.exports['THead'] = props =>
module.exports['TBody'] = props =>
module.exports['TH'] = props =>
module.exports['TR'] = props =>
module.exports['TD'] = props =>
module.exports['TextArea'] = props =>