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

@yamada-ui/utils

Package Overview
Dependencies
Maintainers
1
Versions
549
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/utils - npm Package Compare versions

Comparing version 0.0.0-dev-20230718011629 to 0.0.0-dev-20230804221203

dist/chunk-XIDDMDVR.mjs

3

dist/color.d.ts
import { Dict } from './index.types.js';
declare const isGray: (colorScheme: string) => boolean;
declare const getColor: (color: string, fallback?: string) => (theme: Dict, colorMode: 'light' | 'dark' | undefined) => string;

@@ -18,2 +19,2 @@ declare const lightenColor: (color: string, amount: number) => (theme: Dict, colorMode: 'light' | 'dark' | undefined) => string;

export { darkenColor, getColor, isDark, isLight, isTone, lightenColor, randomColor, shadeColor, tintColor, toneColor, transparentizeColor };
export { darkenColor, getColor, isDark, isGray, isLight, isTone, lightenColor, randomColor, shadeColor, tintColor, toneColor, transparentizeColor };

@@ -26,2 +26,3 @@ "use strict";

isDark: () => isDark,
isGray: () => isGray,
isLight: () => isLight,

@@ -72,2 +73,3 @@ isTone: () => isTone,

// src/color.ts
var isGray = (colorScheme) => colorScheme === "gray" || colorScheme === "zinc" || colorScheme === "neutral" || colorScheme === "stone";
var getColor = (color, fallback) => (theme, colorMode) => {

@@ -176,2 +178,3 @@ const hex = getMemoizedObject(theme, `colors.${color}`, color);

isDark,
isGray,
isLight,

@@ -178,0 +181,0 @@ isTone,

@@ -9,3 +9,3 @@ export { Dict, DynamicRecord, Length, Path, StringLiteral, Union } from './index.types.js';

export { Operand, calc } from './calc.js';
export { darkenColor, getColor, isDark, isLight, isTone, lightenColor, randomColor, shadeColor, tintColor, toneColor, transparentizeColor } from './color.js';
export { darkenColor, getColor, isDark, isGray, isLight, isTone, lightenColor, randomColor, shadeColor, tintColor, toneColor, transparentizeColor } from './color.js';
export { filterEmpty } from './array.js';

@@ -12,0 +12,0 @@ export { clampNumber, countDecimal, percentToValue, roundNumberToStep, toPrecision, valueToPercent } from './number.js';

@@ -81,2 +81,3 @@ "use strict";

isFunction: () => isFunction,
isGray: () => isGray,
isHTMLElement: () => isHTMLElement,

@@ -582,2 +583,3 @@ isHidden: () => isHidden,

var import_color2k = require("color2k");
var isGray = (colorScheme) => colorScheme === "gray" || colorScheme === "zinc" || colorScheme === "neutral" || colorScheme === "stone";
var getColor = (color, fallback) => (theme, colorMode) => {

@@ -805,2 +807,3 @@ const hex = getMemoizedObject(theme, `colors.${color}`, color);

isFunction,
isGray,
isHTMLElement,

@@ -807,0 +810,0 @@ isHidden,

{
"name": "@yamada-ui/utils",
"version": "0.0.0-dev-20230718011629",
"version": "0.0.0-dev-20230804221203",
"description": "Yamada UI utils",

@@ -5,0 +5,0 @@ "keywords": [

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