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

@sanity/color

Package Overview
Dependencies
Maintainers
24
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sanity/color - npm Package Compare versions

Comparing version 2.0.17 to 2.1.0

4

lib/cjs/config.js
var __defProp = Object.defineProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};

@@ -7,0 +7,0 @@ __markAsModule(exports);

import { ColorHueKey, ColorTintKey } from './types';
/**
* @public
*/
export declare const COLOR_HUES: ColorHueKey[];
/**
* @public
*/
export declare const COLOR_TINTS: ColorTintKey[];
//# sourceMappingURL=constants.d.ts.map
var __defProp = Object.defineProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};

@@ -7,0 +7,0 @@ __markAsModule(exports);

import { ColorTints } from './types';
/**
* @public
*/
export declare const gray: ColorTints;
/**
* @public
*/
export declare const blue: ColorTints;
/**
* @public
*/
export declare const purple: ColorTints;
/**
* @public
*/
export declare const magenta: ColorTints;
/**
* @public
*/
export declare const red: ColorTints;
/**
* @public
*/
export declare const orange: ColorTints;
/**
* @public
*/
export declare const yellow: ColorTints;
/**
* @public
*/
export declare const green: ColorTints;
/**
* @public
*/
export declare const cyan: ColorTints;
/**
* @public
*/
export declare const hues: {
gray: ColorTints;
blue: ColorTints;
purple: ColorTints;
magenta: ColorTints;
red: ColorTints;
orange: ColorTints;
yellow: ColorTints;
green: ColorTints;
cyan: ColorTints;
};
//# sourceMappingURL=hues.d.ts.map
var __defProp = Object.defineProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};

@@ -13,2 +13,3 @@ __markAsModule(exports);

green: () => green,
hues: () => hues,
magenta: () => magenta,

@@ -434,1 +435,2 @@ orange: () => orange,

};
const hues = { gray, blue, purple, magenta, red, orange, yellow, green, cyan };

@@ -1,6 +0,7 @@

import * as hues from './hues';
export * from './hues';
export * from './constants';
export * from './types';
export { hues };
/**
* @public
*/
export declare const black: {

@@ -10,2 +11,5 @@ title: string;

};
/**
* @public
*/
export declare const white: {

@@ -12,0 +16,0 @@ title: string;

@@ -7,6 +7,6 @@ var __create = Object.create;

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, {get: all[name], enumerable: true});
__defProp(target, name, { get: all[name], enumerable: true });
};

@@ -17,3 +17,3 @@ var __reExport = (target, module2, desc) => {

if (!__hasOwnProp.call(target, key) && key !== "default")
__defProp(target, key, {get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable});
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
}

@@ -23,3 +23,3 @@ return target;

var __toModule = (module2) => {
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? {get: () => module2.default, enumerable: true} : {value: module2, enumerable: true})), module2);
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
};

@@ -29,11 +29,9 @@ __markAsModule(exports);

black: () => black,
hues: () => hues,
white: () => white
});
var import_config = __toModule(require("./config"));
var hues = __toModule(require("./hues"));
__reExport(exports, __toModule(require("./hues")));
__reExport(exports, __toModule(require("./constants")));
__reExport(exports, __toModule(require("./types")));
const black = {title: "Black", hex: import_config.black};
const white = {title: "White", hex: import_config.white};
const black = { title: "Black", hex: import_config.black };
const white = { title: "White", hex: import_config.white };

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

/**
* @public
*/
export interface ColorHueConfig {

@@ -8,2 +11,5 @@ darkest: string;

}
/**
* @public
*/
export interface ColorValue {

@@ -13,7 +19,19 @@ hex: string;

}
/**
* @public
*/
export declare type ColorTintKey = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
/**
* @public
*/
export declare type ColorTints = {
[key in ColorTintKey]: ColorValue;
};
/**
* @public
*/
export declare type ColorHueKey = 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'cyan' | 'blue' | 'purple' | 'magenta';
/**
* @public
*/
export interface ColorPalette {

@@ -20,0 +38,0 @@ black: ColorValue;

var __defProp = Object.defineProperty;
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
__markAsModule(exports);
import { ColorHueKey, ColorTintKey } from './types';
/**
* @public
*/
export declare const COLOR_HUES: ColorHueKey[];
/**
* @public
*/
export declare const COLOR_TINTS: ColorTintKey[];
//# sourceMappingURL=constants.d.ts.map
import { ColorTints } from './types';
/**
* @public
*/
export declare const gray: ColorTints;
/**
* @public
*/
export declare const blue: ColorTints;
/**
* @public
*/
export declare const purple: ColorTints;
/**
* @public
*/
export declare const magenta: ColorTints;
/**
* @public
*/
export declare const red: ColorTints;
/**
* @public
*/
export declare const orange: ColorTints;
/**
* @public
*/
export declare const yellow: ColorTints;
/**
* @public
*/
export declare const green: ColorTints;
/**
* @public
*/
export declare const cyan: ColorTints;
/**
* @public
*/
export declare const hues: {
gray: ColorTints;
blue: ColorTints;
purple: ColorTints;
magenta: ColorTints;
red: ColorTints;
orange: ColorTints;
yellow: ColorTints;
green: ColorTints;
cyan: ColorTints;
};
//# sourceMappingURL=hues.d.ts.map

@@ -415,2 +415,3 @@ const gray = {

};
const hues = { gray, blue, purple, magenta, red, orange, yellow, green, cyan };
export {

@@ -421,2 +422,3 @@ blue,

green,
hues,
magenta,

@@ -423,0 +425,0 @@ orange,

@@ -1,6 +0,7 @@

import * as hues from './hues';
export * from './hues';
export * from './constants';
export * from './types';
export { hues };
/**
* @public
*/
export declare const black: {

@@ -10,2 +11,5 @@ title: string;

};
/**
* @public
*/
export declare const white: {

@@ -12,0 +16,0 @@ title: string;

@@ -1,12 +0,10 @@

import {black as blackHex, white as whiteHex} from "./config";
import * as hues from "./hues";
import { black as blackHex, white as whiteHex } from "./config";
export * from "./hues";
export * from "./constants";
export * from "./types";
const black = {title: "Black", hex: blackHex};
const white = {title: "White", hex: whiteHex};
const black = { title: "Black", hex: blackHex };
const white = { title: "White", hex: whiteHex };
export {
black,
hues,
white
};

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

/**
* @public
*/
export interface ColorHueConfig {

@@ -8,2 +11,5 @@ darkest: string;

}
/**
* @public
*/
export interface ColorValue {

@@ -13,7 +19,19 @@ hex: string;

}
/**
* @public
*/
export declare type ColorTintKey = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
/**
* @public
*/
export declare type ColorTints = {
[key in ColorTintKey]: ColorValue;
};
/**
* @public
*/
export declare type ColorHueKey = 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'cyan' | 'blue' | 'purple' | 'magenta';
/**
* @public
*/
export interface ColorPalette {

@@ -20,0 +38,0 @@ black: ColorValue;

{
"name": "@sanity/color",
"version": "2.0.17",
"version": "2.1.0",
"description": "The Sanity color palette.",

@@ -48,3 +48,3 @@ "main": "lib/cjs/index.js",

},
"gitHead": "bd81eece0217fd0c1d7fd4292c4af11163d66f7e"
"gitHead": "527a1cea7f67ce5395a8edb96d093624783f44c0"
}

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

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