Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error dring bundle that i face Flex and Box is not exported by node_… #1131

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions packages/rebass/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import React, { forwardRef } from 'react'
import { Box, Flex } from 'reflexbox'

export { Box, Flex }

export const Text = forwardRef((props, ref) =>
<Box
Expand Down Expand Up @@ -79,3 +76,24 @@ export const Card = forwardRef((props, ref) =>
{...props}
/>
)
export const Flex = forwardRef((props,ref) =>
<Box
ref={ref}
{...props}
__css={{
display:flex
}}
/>
)
export const Box = forwardRef((props ,ref)=>
<Box
ref={ref}
variant='box'
{...props}
__css={{
boxSizing: 'border-box’',
margin: 0,
minWidth: 0,
}}
/>
)