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

@deriv-com/quill-ui

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deriv-com/quill-ui - npm Package Compare versions

Comparing version 1.0.8 to 1.1.0

18

dist/providers/theme/themeProvider.js
import { jsx as d } from "react/jsx-runtime";
import { useState as f, useLayoutEffect as l, useEffect as h } from "react";
import { useState as f, useLayoutEffect as m, useEffect as h } from "react";
import { ThemeContext as u } from "./themeContext.js";
var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, g = typeof a == "object" && a && a.Object === Object && a, p = typeof self == "object" && self && self.Object === Object && self;
g || p || Function("return this")();
var w = typeof window < "u" ? l : h, b = typeof window > "u";
function v(n, {
var a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, p = typeof a == "object" && a && a.Object === Object && a, w = typeof self == "object" && self && self.Object === Object && self;
p || w || Function("return this")();
var g = typeof window < "u" ? m : h, v = typeof window > "u";
function b(n, {
defaultValue: o = !1,
initializeWithValue: s = !0
} = {}) {
const i = (e) => b ? o : window.matchMedia(e).matches, [r, c] = f(() => s ? i(n) : o);
const i = (e) => v ? o : window.matchMedia(e).matches, [r, c] = f(() => s ? i(n) : o);
function t() {
c(i(n));
}
return w(() => {
return g(() => {
const e = window.matchMedia(n);

@@ -25,3 +25,3 @@ return t(), e.addListener ? e.addListener(t) : e.addEventListener("change", t), () => {

o
), [r, c] = f(o ?? "light"), t = v("(prefers-color-scheme: dark)"), e = () => {
), [r, c] = f(o ?? "light"), t = b("(prefers-color-scheme: dark)"), e = () => {
i(r === "dark" ? "light" : "dark");

@@ -31,3 +31,3 @@ };

c(s || (t ? "dark" : "light"));
}, [s, t]), /* @__PURE__ */ d(u.Provider, { value: { theme: r, toggleTheme: e }, children: /* @__PURE__ */ d("section", { className: `theme--${r} theme-background`, children: n }) });
}, [s, t]), /* @__PURE__ */ d(u.Provider, { value: { theme: r, toggleTheme: e }, children: /* @__PURE__ */ d("section", { className: `theme--${r}`, children: n }) });
};

@@ -34,0 +34,0 @@ export {

{
"name": "@deriv-com/quill-ui",
"private": false,
"version": "1.0.8",
"version": "1.1.0",
"type": "module",

@@ -6,0 +6,0 @@ "main": "dist/main.js",

Sorry, the diff of this file is not supported yet

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