@code-hike/utils
Advanced tools
Comparing version 0.3.0-next.22 to 0.3.0-next.23
@@ -320,2 +320,3 @@ 'use strict'; | ||
ColorName[ColorName["InputBorder"] = 15] = "InputBorder"; | ||
ColorName[ColorName["SelectionBackground"] = 16] = "SelectionBackground"; | ||
})(exports.ColorName || (exports.ColorName = {})); | ||
@@ -423,2 +424,9 @@ var contrastBorder = "#6FC3DF"; | ||
})); | ||
case exports.ColorName.SelectionBackground: | ||
return (colors["editor.selectionBackground"] || | ||
getDefault(theme, { | ||
light: "#ADD6FF", | ||
dark: "#264F78", | ||
hc: "#f3f518", | ||
})); | ||
default: | ||
@@ -425,0 +433,0 @@ return "#f00"; |
@@ -316,2 +316,3 @@ function map(tween, fn) { | ||
ColorName[ColorName["InputBorder"] = 15] = "InputBorder"; | ||
ColorName[ColorName["SelectionBackground"] = 16] = "SelectionBackground"; | ||
})(ColorName || (ColorName = {})); | ||
@@ -419,2 +420,9 @@ var contrastBorder = "#6FC3DF"; | ||
})); | ||
case ColorName.SelectionBackground: | ||
return (colors["editor.selectionBackground"] || | ||
getDefault(theme, { | ||
light: "#ADD6FF", | ||
dark: "#264F78", | ||
hc: "#f3f518", | ||
})); | ||
default: | ||
@@ -421,0 +429,0 @@ return "#f00"; |
@@ -41,3 +41,4 @@ /** | ||
InputBackground = 14, | ||
InputBorder = 15 | ||
InputBorder = 15, | ||
SelectionBackground = 16 | ||
} | ||
@@ -44,0 +45,0 @@ declare type Color = string | undefined; |
{ | ||
"name": "@code-hike/utils", | ||
"version": "0.3.0-next.22", | ||
"version": "0.3.0-next.23", | ||
"main": "dist/index.cjs.js", | ||
@@ -16,3 +16,3 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0-next.22", | ||
"@code-hike/script": "0.3.0-next.23", | ||
"@types/jest": "^24.0.15", | ||
@@ -41,3 +41,3 @@ "@types/react": "^17.0.2", | ||
}, | ||
"gitHead": "4c01ec74b88457f115f3fd8bbd3a75122fe90a2e" | ||
"gitHead": "84e96ac2e51b18452011b97878026260a7740158" | ||
} |
40735
1033