Skip to content

Commit

Permalink
Fix for react-native-web
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
Thomas committed Dec 16, 2019
1 parent 9c6ae78 commit ad5bab8
Show file tree
Hide file tree
Showing 56 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion corePlugins/alignContent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('content', 'alignContent', [
export default generator.generate('content', 'alignContent', [
['start', 'flex-start'],
['end', 'flex-end'],
'center',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/alignItems.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('items', 'alignItems', [
export default generator.generate('items', 'alignItems', [
['start', 'flex-start'],
['end', 'flex-end'],
'center',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/alignSelf.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('self', 'alignSelf', [
export default generator.generate('self', 'alignSelf', [
'auto',
['start', 'flex-start'],
['end', 'flex-end'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/backfaceVisibility.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('backface', 'backfaceVisibility', [
export default generator.generate('backface', 'backfaceVisibility', [
'visible',
'hidden',
]);
2 changes: 1 addition & 1 deletion corePlugins/backgroundColor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import colors from '../color';

module.exports = generator.generate('bg', 'backgroundColor', colors);
export default generator.generate('bg', 'backgroundColor', colors);
2 changes: 1 addition & 1 deletion corePlugins/borderColor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import colors from '../color';

module.exports = generator.generate('border', 'borderColor', colors);
export default generator.generate('border', 'borderColor', colors);
2 changes: 1 addition & 1 deletion corePlugins/borderRadius.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('rounded', 'borderRadius', theme.borderRadius, [
export default generator.generate('rounded', 'borderRadius', theme.borderRadius, [
['t', ['borderTopLeftRadius', 'borderTopRightRadius']],
['r', ['borderTopRightRadius', 'borderBottomRightRadius']],
['b', ['borderBottomLeftRadius', 'borderBottomRightRadius']],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/borderRadiusDir.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('rounded-dir', 'borderRadius', theme.borderRadius, [
export default generator.generate('rounded-dir', 'borderRadius', theme.borderRadius, [
['e', ['borderTopEndRadius', 'borderBottomEndRadius']],
['s', ['borderTopStartRadius', 'borderBottomStartRadius']],
['ts', 'borderTopStartRadius'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/borderStyle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('border', 'borderStyle', [
export default generator.generate('border', 'borderStyle', [
'solid',
'dotted',
'dashed',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/borderWidth.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('border', 'borderWidth', theme.borderWidth, [
export default generator.generate('border', 'borderWidth', theme.borderWidth, [
['x', ['borderRightWidth', 'borderLeftWidth']],
['y', ['borderTopWidth', 'borderBottomWidth']],
['t', 'borderTopWidth'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/borderWidthDir.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('border-dir', 'borderWidth', theme.borderWidth, [
export default generator.generate('border-dir', 'borderWidth', theme.borderWidth, [
['x', ['borderEndWidth', 'borderStartWidth']],
['e', 'borderEndWidth'],
['s', 'borderStartWidth'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/bottom.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('bottom', 'bottom', theme.inset);
export default generator.generate('bottom', 'bottom', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/boxShadow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generateShadows('shadow', 'shadow', theme.boxShadow);
export default generator.generateShadows('shadow', 'shadow', theme.boxShadow);
2 changes: 1 addition & 1 deletion corePlugins/direction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('direction', 'direction', [
export default generator.generate('direction', 'direction', [
'inherit',
'ltr',
'rtl',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/display.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('', 'display', [
export default generator.generate('', 'display', [
['hidden', 'none'],
'flex',
]);
2 changes: 1 addition & 1 deletion corePlugins/end.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('end', 'end', theme.inset);
export default generator.generate('end', 'end', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/flex.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('flex', 'flex', theme.flex);
export default generator.generate('flex', 'flex', theme.flex);
2 changes: 1 addition & 1 deletion corePlugins/flexDirection.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('flex', 'flexDirection', [
export default generator.generate('flex', 'flexDirection', [
'row',
'row-reverse',
['col', 'column'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/flexGrow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('flex-grow', 'flexGrow', theme.flexGrow);
export default generator.generate('flex-grow', 'flexGrow', theme.flexGrow);
2 changes: 1 addition & 1 deletion corePlugins/flexShrink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('flex-shrink', 'flexShrink', theme.flexShrink);
export default generator.generate('flex-shrink', 'flexShrink', theme.flexShrink);
2 changes: 1 addition & 1 deletion corePlugins/flexWrap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('flex', 'flexWrap', [
export default generator.generate('flex', 'flexWrap', [
'wrap',
'wrap-reverse',
['no-wrap', 'nowrap'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/fontFamily.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('font', 'fontFamily', theme.fontFamily);
export default generator.generate('font', 'fontFamily', theme.fontFamily);
2 changes: 1 addition & 1 deletion corePlugins/fontSize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('text', 'fontSize', theme.fontSize);
export default generator.generate('text', 'fontSize', theme.fontSize);
2 changes: 1 addition & 1 deletion corePlugins/fontStyle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('', 'fontStyle', [
export default generator.generate('', 'fontStyle', [
['not-italic', 'normal'],
'italic',
]);
2 changes: 1 addition & 1 deletion corePlugins/fontWeight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('font', 'fontWeight', [
export default generator.generate('font', 'fontWeight', [
'normal',
'bold',
['hairline', 100],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/height.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('h', 'height', theme.height);
export default generator.generate('h', 'height', theme.height);
2 changes: 1 addition & 1 deletion corePlugins/inset.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('inset', ['top', 'bottom', 'left', 'right'], theme.inset, [
export default generator.generate('inset', ['top', 'bottom', 'left', 'right'], theme.inset, [
['x', ['left', 'right']],
['y', ['top', 'bottom']],
]);
2 changes: 1 addition & 1 deletion corePlugins/insetDir.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('inset-dir', ['top', 'bottom', 'start', 'end'], theme.inset, [
export default generator.generate('inset-dir', ['top', 'bottom', 'start', 'end'], theme.inset, [
['x', ['start', 'end']],
]);
2 changes: 1 addition & 1 deletion corePlugins/justifyContent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('justify', 'justifyContent', [
export default generator.generate('justify', 'justifyContent', [
['start', 'flex-start'],
['end', 'flex-end'],
'center',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/left.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('left', 'left', theme.inset);
export default generator.generate('left', 'left', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/letterSpacing.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('tracking', 'letterSpacing', theme.letterSpacing);
export default generator.generate('tracking', 'letterSpacing', theme.letterSpacing);
2 changes: 1 addition & 1 deletion corePlugins/lineHeight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('leading', 'lineHeight', theme.lineHeight);
export default generator.generate('leading', 'lineHeight', theme.lineHeight);
2 changes: 1 addition & 1 deletion corePlugins/margin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('m', 'margin', theme.margin, [
export default generator.generate('m', 'margin', theme.margin, [
['x', 'marginHorizontal'],
['y', 'marginVertical'],
['t', 'marginTop'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/maxHeight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('max-h', 'maxHeight', theme.maxHeight);
export default generator.generate('max-h', 'maxHeight', theme.maxHeight);
2 changes: 1 addition & 1 deletion corePlugins/maxWidth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('max-w', 'maxWidth', theme.maxWidth);
export default generator.generate('max-w', 'maxWidth', theme.maxWidth);
2 changes: 1 addition & 1 deletion corePlugins/minHeight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('min-h', 'minHeight', theme.minHeight);
export default generator.generate('min-h', 'minHeight', theme.minHeight);
2 changes: 1 addition & 1 deletion corePlugins/minWidth.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('min-w', 'minWidth', theme.minWidth);
export default generator.generate('min-w', 'minWidth', theme.minWidth);
2 changes: 1 addition & 1 deletion corePlugins/objectFit.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('object', 'resizeMode', ['contain',
export default generator.generate('object', 'resizeMode', ['contain',
'cover',
'stretch',
'center',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/opacity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('opacity', 'opacity', theme.opacity);
export default generator.generate('opacity', 'opacity', theme.opacity);
2 changes: 1 addition & 1 deletion corePlugins/overflow.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('overflow', 'overflow', [
export default generator.generate('overflow', 'overflow', [
'visible',
'hidden',
]);
2 changes: 1 addition & 1 deletion corePlugins/padding.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('p', 'padding', theme.padding, [
export default generator.generate('p', 'padding', theme.padding, [
['x', 'paddingHorizontal'],
['y', 'paddingVertical'],
['t', 'paddingTop'],
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/position.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('', 'position', [
export default generator.generate('', 'position', [
'absolute',
'relative',
]);
2 changes: 1 addition & 1 deletion corePlugins/resize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('resize', 'resizeMode', [
export default generator.generate('resize', 'resizeMode', [
'contain',
'cover',
'stretch',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/right.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('right', 'right', theme.inset);
export default generator.generate('right', 'right', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/start.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('start', 'start', theme.inset);
export default generator.generate('start', 'start', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/textAlign.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('text', 'textAlign', [
export default generator.generate('text', 'textAlign', [
'auto',
'left',
'right',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/textColor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import colors from '../color';

module.exports = generator.generate('text', 'color', colors);
export default generator.generate('text', 'color', colors);
2 changes: 1 addition & 1 deletion corePlugins/textDecoration.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('', 'textDecorationLine', [
export default generator.generate('', 'textDecorationLine', [
['no-underline', 'none'],
'underline',
'line-through',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/textShadow.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generateShadows('text-shadow', 'textShadow', theme.boxShadow);
export default generator.generateShadows('text-shadow', 'textShadow', theme.boxShadow);
2 changes: 1 addition & 1 deletion corePlugins/textTransform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('', 'textTransform', [
export default generator.generate('', 'textTransform', [
['normal-case', 'none'],
'uppercase',
'lowercase',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/tint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import colors from '../color';

module.exports = generator.generate('tint', 'tintColor', colors);
export default generator.generate('tint', 'tintColor', colors);
2 changes: 1 addition & 1 deletion corePlugins/top.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('top', 'top', theme.inset);
export default generator.generate('top', 'top', theme.inset);
2 changes: 1 addition & 1 deletion corePlugins/verticalAlign.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import generator from '../util/generator';

module.exports = generator.generate('align', 'textAlignVertical', [
export default generator.generate('align', 'textAlignVertical', [
'auto',
'top',
'bottom',
Expand Down
2 changes: 1 addition & 1 deletion corePlugins/width.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('w', 'width', theme.width);
export default generator.generate('w', 'width', theme.width);
2 changes: 1 addition & 1 deletion corePlugins/zIndex.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import generator from '../util/generator';
import theme from '../util/configHandler';

module.exports = generator.generate('z', 'zIndex', theme.zIndex);
export default generator.generate('z', 'zIndex', theme.zIndex);
2 changes: 1 addition & 1 deletion util/configHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ try {

const {theme} = resolveConfig(file);

module.exports = theme;
export default theme;

1 comment on commit ad5bab8

@jamesedmonston
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🎉

Please sign in to comment.