@servicetitan/anvil-themes
Advanced tools
Comparing version 10.3.2 to 10.3.3
@@ -1,2 +0,3 @@ | ||
export declare const createTheme: (a: theme, b?: theme) => any; | ||
import * as light from '../../build/theme/core/web/light'; | ||
export declare const createTheme: (a: theme, b?: theme) => (typeof light | theme) & theme; | ||
export interface theme { | ||
@@ -3,0 +4,0 @@ colors?: { |
@@ -21,12 +21,15 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createTheme = void 0; | ||
var light = __importStar(require("../../build/theme/core/web/light")); | ||
var _ = require('lodash'); | ||
var merge_1 = __importDefault(require("lodash/merge")); | ||
var createTheme = function (a, b) { | ||
var overrides = b || a; | ||
var base = b ? a : light; | ||
return _.merge(base, overrides); | ||
return (0, merge_1.default)(base, overrides); | ||
}; | ||
exports.createTheme = createTheme; | ||
//# sourceMappingURL=createTheme.js.map |
{ | ||
"name": "@servicetitan/anvil-themes", | ||
"version": "10.3.2", | ||
"version": "10.3.3", | ||
"description": "", | ||
@@ -32,3 +32,4 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@servicetitan/tokens": "^10.3.2", | ||
"@servicetitan/tokens": "^10.3.3", | ||
"@types/lodash": "4.14.175", | ||
"@types/node": "16.9.1", | ||
@@ -46,3 +47,3 @@ "@types/react": "17.0.21", | ||
}, | ||
"gitHead": "647fdbbddbfc73256b150711cc5b353b8d88489a" | ||
"gitHead": "f53cef6805e3119b215c2551552289877422f20a" | ||
} |
Sorry, the diff of this file is not supported yet
28962
471
13