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

@aboutbits/react-ui

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aboutbits/react-ui - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

2

esm/framework/theme/ThemeContext.d.ts

@@ -362,3 +362,3 @@ /// <reference types="react" />

};
}>;
} | undefined>;
export declare function useTheme(): Theme;
import { createContext, useContext } from 'react';
import { defaultTheme } from './theme';
export var ThemeContext = createContext(defaultTheme);
export var ThemeContext = createContext(undefined);
export function useTheme() {
var theme = useContext(ThemeContext);
if (theme === null) {
if (theme === null || theme === undefined) {
throw new Error('No theme available on context');

@@ -8,0 +7,0 @@ }

@@ -362,3 +362,3 @@ /// <reference types="react" />

};
}>;
} | undefined>;
export declare function useTheme(): Theme;

@@ -5,7 +5,6 @@ "use strict";

var react_1 = require("react");
var theme_1 = require("./theme");
exports.ThemeContext = react_1.createContext(theme_1.defaultTheme);
exports.ThemeContext = react_1.createContext(undefined);
function useTheme() {
var theme = react_1.useContext(exports.ThemeContext);
if (theme === null) {
if (theme === null || theme === undefined) {
throw new Error('No theme available on context');

@@ -12,0 +11,0 @@ }

{
"name": "@aboutbits/react-ui",
"version": "0.0.10",
"version": "0.0.11",
"module": "esm/index.js",

@@ -5,0 +5,0 @@ "main": "index.js",

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