@sk-web-gui/theme
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -13,6 +13,6 @@ "use strict"; | ||
(0, _utils.walkObject)(target, function (value, path) { | ||
var _tokenHandlerMap$firs; | ||
var _firstKey; | ||
// firstKey will be e.g. "space" | ||
var firstKey = path[0]; | ||
var handler = (_tokenHandlerMap$firs = tokenHandlerMap[firstKey]) != null ? _tokenHandlerMap$firs : tokenHandlerMap.defaultHandler; | ||
var handler = (_firstKey = tokenHandlerMap[firstKey]) != null ? _firstKey : tokenHandlerMap.defaultHandler; | ||
var _handler = handler(path, value, options), | ||
@@ -19,0 +19,0 @@ cssVars = _handler.cssVars, |
@@ -9,6 +9,6 @@ import { walkObject } from '@sk-web-gui/utils'; | ||
walkObject(target, (value, path) => { | ||
var _tokenHandlerMap$firs; | ||
var _firstKey; | ||
// firstKey will be e.g. "space" | ||
var [firstKey] = path; | ||
var handler = (_tokenHandlerMap$firs = tokenHandlerMap[firstKey]) != null ? _tokenHandlerMap$firs : tokenHandlerMap.defaultHandler; | ||
var handler = (_firstKey = tokenHandlerMap[firstKey]) != null ? _firstKey : tokenHandlerMap.defaultHandler; | ||
var { | ||
@@ -15,0 +15,0 @@ cssVars, |
@@ -0,0 +0,0 @@ export declare const _colors: { |
export declare function createMemoClass(func: (props: any) => string): (args?: any) => string; |
@@ -0,0 +0,0 @@ export type Operand = string | number | { |
@@ -0,0 +0,0 @@ import { Dict } from '@sk-web-gui/utils'; |
@@ -0,0 +0,0 @@ export declare function addPrefix(value: string, prefix?: string): string; |
@@ -0,0 +0,0 @@ export * from './calc'; |
@@ -0,0 +0,0 @@ import { Dict } from '@sk-web-gui/utils'; |
import type { WithCSSVar, Dict } from '@sk-web-gui/utils'; | ||
export declare function toCSSVar<T extends Dict>(rawTheme: T): WithCSSVar<T>; |
@@ -0,0 +0,0 @@ import { GuiTheme, ColorScheme } from './types'; |
@@ -0,0 +0,0 @@ import { WithCSSVar, Dict } from '@sk-web-gui/utils'; |
@@ -0,0 +0,0 @@ export * from './gui-provider'; |
@@ -0,0 +0,0 @@ import { DeepPartial } from '@sk-web-gui/utils'; |
import { useLayoutEffect } from 'react'; | ||
export declare const useSafeEffect: typeof useLayoutEffect; |
export declare const isBrowser: boolean; |
{ | ||
"name": "@sk-web-gui/theme", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"sideEffects": false, | ||
@@ -41,3 +41,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@sk-web-gui/utils": "0.1.4", | ||
"@sk-web-gui/utils": "0.1.5", | ||
"lodash.set": "^4.3.2" | ||
@@ -48,3 +48,3 @@ }, | ||
}, | ||
"gitHead": "bf3806107dcb55bb01ff90098828c57dcc5a8f43" | ||
"gitHead": "3a72018bb2de73c6e1db1a461cbed02b37e4827e" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
138478
0
+ Added@sk-web-gui/utils@0.1.5(transitive)
- Removed@sk-web-gui/utils@0.1.4(transitive)
Updated@sk-web-gui/utils@0.1.5