@christfellowshipchurch/flat-ui-web
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,2 @@ | ||
import React, { useState } from 'react'; | ||
import { useState } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
@@ -3,0 +3,0 @@ import { includes, uniqueId } from 'lodash'; |
@@ -1,3 +0,3 @@ | ||
import Accordion from './Accordion'; | ||
import Wrapper from './Accordion'; | ||
export default Accordion; | ||
export { Wrapper }; |
@@ -8,3 +8,3 @@ import React from 'react'; | ||
import MediaItem from '../Media'; | ||
import * as Media from '../Media'; | ||
import CallsToAction from '../CallsToAction'; | ||
@@ -48,3 +48,2 @@ | ||
// TODO : refactor... pls | ||
const GeneralContentWrapper = ({ | ||
@@ -74,3 +73,3 @@ layout, imageUrl, imageAlt, videoUrl, ratio, children, margin, padding, actions, target | ||
{ className: classes.mediaCol }, | ||
React.createElement(MediaItem, { | ||
React.createElement(Media.Item, { | ||
imageUrl: imageUrl || defaultProps.imageUrl, | ||
@@ -77,0 +76,0 @@ imageAlt: imageAlt || defaultProps.imageAlt, |
@@ -5,4 +5,2 @@ import Wrapper from './GeneralContentWrapper'; | ||
export default Wrapper; | ||
export const GeneralContentTitle = Title; | ||
export const GeneralContentBody = Body; | ||
export { Wrapper, Title, Body }; |
@@ -1,7 +0,5 @@ | ||
import StandardLoader from './StandardLoader'; | ||
import GeneralContent from './GeneralContentLoading'; | ||
import Accordion from './AccordionLoading'; | ||
import Standard from './StandardLoader'; | ||
import GeneralContent from './GeneralContentLoader'; | ||
import Accordion from './AccordionLoader'; | ||
export default StandardLoader; | ||
export const GeneralContentLoader = GeneralContent; | ||
export const AccordionLoader = Accordion; | ||
export { Standard, GeneralContent, Accordion }; |
@@ -5,3 +5,3 @@ import React from 'react'; | ||
import Img from 'react-image'; | ||
import StandardLoader from '../Loaders'; | ||
import * as Loaders from '../Loaders'; | ||
@@ -12,3 +12,3 @@ const GeneralContentMediaImage = ({ className, source, alt }) => React.createElement(Img, { | ||
className: className, | ||
loader: React.createElement(StandardLoader, null) | ||
loader: React.createElement(Loaders.Standard, null) | ||
}); | ||
@@ -15,0 +15,0 @@ |
@@ -1,7 +0,5 @@ | ||
import MediaItem from './MediaItem'; | ||
import Item from './MediaItem'; | ||
import Image from './Image'; | ||
import Video from './Video'; | ||
export default MediaItem; | ||
export const MediaImage = Image; | ||
export const MediaVideo = Video; | ||
export { Item, Image, Video }; |
{ | ||
"name": "@christfellowshipchurch/flat-ui-web", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Flat UI package for Christ Fellowship web projects", | ||
@@ -10,3 +10,4 @@ "main": "lib/index.js", | ||
"lint": "eslint ./src --ext .js", | ||
"babel-version": "babel --version" | ||
"babel-version": "babel --version", | ||
"fix-react": "yarn link react" | ||
}, | ||
@@ -13,0 +14,0 @@ "files": [ |
21249
501