@propellerads/ad-format
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -48,2 +48,3 @@ import React from 'react'; | ||
FORMATS.IN_PAGE_PUSH, | ||
FORMATS.NATIVE_WIDGET, | ||
], | ||
@@ -67,2 +68,7 @@ }; | ||
export {FORMATS, SIZES}; | ||
export { | ||
FORMATS, | ||
SVGS, | ||
PREVIEWS, | ||
SIZES, | ||
}; |
{ | ||
"name": "@propellerads/ad-format", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.jsx", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/propellerads/ui-components", |
@@ -13,3 +13,3 @@ # AdFormat | ||
### How to use | ||
* `import AdFormat, {SIZES, FORMATS } from '@propellerads/ad-format';` | ||
* `import AdFormat, {SIZES, FORMATS} from '@propellerads/ad-format';` | ||
* And render `<AdFormat name={FORMATS.INTERSTITIAL} size={SIZES.LARGE} />` |
@@ -9,2 +9,3 @@ import styled, {css} from 'styled-components'; | ||
import PreviewInPagePush from './previews/in-page-push.png'; | ||
import PreviewNativeWidget from './previews/native-widget.png'; | ||
@@ -21,2 +22,3 @@ import AnimationInterstitial from './animations/interstitial.svg'; | ||
import AnimationInPagePush from './animations/in-page-push.svg'; | ||
import AnimationNativeWidget from './animations/native-widget.svg'; | ||
@@ -44,2 +46,3 @@ const item = 210; | ||
IN_PAGE_PUSH: 'in_page_push', | ||
NATIVE_WIDGET: 'native_widget', | ||
}; | ||
@@ -58,2 +61,3 @@ | ||
[FORMATS.IN_PAGE_PUSH]: AnimationInPagePush, | ||
[FORMATS.NATIVE_WIDGET]: AnimationNativeWidget, | ||
}; | ||
@@ -68,2 +72,3 @@ | ||
[FORMATS.IN_PAGE_PUSH]: PreviewInPagePush, | ||
[FORMATS.NATIVE_WIDGET]: PreviewNativeWidget, | ||
}; | ||
@@ -111,7 +116,4 @@ | ||
})` | ||
${(props) => props.size === SIZES.EXTRA_SMALL && extraSmallStyle} | ||
${(props) => props.size === SIZES.SMALL && smallStyle} | ||
${(props) => props.size === SIZES.MEDIUM && mediumStyle} | ||
${(props) => props.size === SIZES.LARGE && largeStyle} | ||
${(props) => props.size === SIZES.EXTRA_LARGE && extraLargeStyle} | ||
width: 210px; | ||
height: 136px; | ||
`; | ||
@@ -118,0 +120,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
102133
24
171
1