@potok/theme
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -1,15 +0,6 @@ | ||
// @flow | ||
import React, { type Node } from 'react'; | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { ThemeProvider } from 'styled-components'; | ||
import { appearances, devices } from '../lib/theme'; | ||
import type { ThemeAppearance, ThemeDevice } from '../lib/types'; | ||
type Props = { | ||
/* Choose your destiny */ | ||
appearance?: ThemeAppearance, | ||
device?: ThemeDevice, | ||
/* Pass theme down to children */ | ||
children: Element, | ||
}; | ||
/** | ||
@@ -30,2 +21,10 @@ * Potok Theme Provider | ||
PotokThemeProvider.propTypes = { | ||
/* Choose your destiny */ | ||
appearance: PropTypes.string, | ||
device: PropTypes.string, | ||
/* Pass theme down to children */ | ||
children: PropTypes.element, | ||
}; | ||
export default PotokThemeProvider; |
@@ -1,6 +0,3 @@ | ||
// @flow | ||
import type { ThemeProps } from './types'; | ||
export default function themed(appearances) { | ||
return (props: ThemeProps) => appearances[props.theme.appearance]; | ||
return props => appearances[props.theme.appearance]; | ||
} |
{ | ||
"name": "@potok/theme", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Potok.io UI Kit Theme package", | ||
"main": "./index.js", | ||
"source": true, | ||
"files": [ | ||
@@ -16,3 +17,4 @@ "index.js", | ||
"styled-components": "^3.2.6" | ||
} | ||
}, | ||
"gitHead": "aa2c0ed24abb0d1fa2cd420ecfeb87bade97daab" | ||
} |
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
4802
124
1