Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@team-griffin/react-dye

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@team-griffin/react-dye - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

14

dist/cjs/react-dye.development.js

@@ -61,3 +61,17 @@ 'use strict';

var useTheme = function useTheme() {
var theme = React.useContext(ThemeContext);
return theme;
};
var withThemeHook = function withThemeHook(props) {
return Object.assign({
theme: useTheme()
}, props);
};
exports.ThemeProvider = ThemeProvider;
exports.withTheme = withTheme;
exports.withThemeHook = withThemeHook;
exports.useTheme = useTheme;

2

dist/cjs/react-dye.production.js

@@ -1,1 +0,1 @@

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),React__default=_interopDefault(React),ThemeContext=React.createContext(null),Provider=ThemeContext.Provider,Consumer=ThemeContext.Consumer,ThemeProvider=function(e){var t=e.theme,r=e.children;return React__default.createElement(Provider,{value:t},r)};ThemeProvider.displayName="ThemeProvider";var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},withTheme=function(e){var t=function(t){return React__default.createElement(Consumer,null,function(r){return React__default.createElement(e,_extends({theme:r},t))})};return t.displayName="WithTheme",t};exports.ThemeProvider=ThemeProvider,exports.withTheme=withTheme;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var React=require("react"),React__default=_interopDefault(React),ThemeContext=React.createContext(null),Provider=ThemeContext.Provider,Consumer=ThemeContext.Consumer,ThemeProvider=function(e){var t=e.theme,r=e.children;return React__default.createElement(Provider,{value:t},r)};ThemeProvider.displayName="ThemeProvider";var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},withTheme=function(e){var t=function(t){return React__default.createElement(Consumer,null,function(r){return React__default.createElement(e,_extends({theme:r},t))})};return t.displayName="WithTheme",t},useTheme=function(){return React.useContext(ThemeContext)},withThemeHook=function(e){return Object.assign({theme:useTheme()},e)};exports.ThemeProvider=ThemeProvider,exports.withTheme=withTheme,exports.withThemeHook=withThemeHook,exports.useTheme=useTheme;

@@ -1,2 +0,2 @@

import React, { createContext } from 'react';
import React, { createContext, useContext } from 'react';

@@ -54,2 +54,14 @@ var ThemeContext = createContext(null);

export { ThemeProvider, withTheme };
var useTheme = function useTheme() {
var theme = useContext(ThemeContext);
return theme;
};
var withThemeHook = function withThemeHook(props) {
return Object.assign({
theme: useTheme()
}, props);
};
export { ThemeProvider, withTheme, withThemeHook, useTheme };

@@ -1,1 +0,1 @@

import React,{createContext}from"react";var ThemeContext=createContext(null),Provider=ThemeContext.Provider,Consumer=ThemeContext.Consumer,ThemeProvider=function(e){var t=e.theme,r=e.children;return React.createElement(Provider,{value:t},r)};ThemeProvider.displayName="ThemeProvider";var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},withTheme=function(e){var t=function(t){return React.createElement(Consumer,null,function(r){return React.createElement(e,_extends({theme:r},t))})};return t.displayName="WithTheme",t};export{ThemeProvider,withTheme};
import React,{createContext,useContext}from"react";var ThemeContext=createContext(null),Provider=ThemeContext.Provider,Consumer=ThemeContext.Consumer,ThemeProvider=function(e){var t=e.theme,r=e.children;return React.createElement(Provider,{value:t},r)};ThemeProvider.displayName="ThemeProvider";var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},withTheme=function(e){var t=function(t){return React.createElement(Consumer,null,function(r){return React.createElement(e,_extends({theme:r},t))})};return t.displayName="WithTheme",t},useTheme=function(){return useContext(ThemeContext)},withThemeHook=function(e){return Object.assign({theme:useTheme()},e)};export{ThemeProvider,withTheme,withThemeHook,useTheme};
{
"name": "@team-griffin/react-dye",
"version": "3.0.0",
"version": "3.0.1",
"main": "dist/cjs/react-dye.js",

@@ -5,0 +5,0 @@ "module": "dist/es/react-dye.js",

import ThemeProvider from './ThemeProvider';
import withTheme from './withTheme';
import useTheme from './useTheme';
import withThemeHook from './withThemeHook';

@@ -7,2 +9,4 @@ export {

withTheme,
withThemeHook,
useTheme,
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc