@pandacss/shared
Advanced tools
Comparing version 0.0.0-dev-20230118124201 to 0.0.0-dev-20230118125053
@@ -1,3 +0,3 @@ | ||
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './merge-e05e5f23.js'; | ||
export { C as CreateCssContext, M as MappedObject, k as WalkObjectOptions, W as WalkObjectStopFn, d as compact, c as createCss, j as deepMerge, f as filterBaseConditions, e as isBaseCondition, a as isFunction, g as isImportant, b as isObject, i as isString, m as mapObject, t as toHash, l as walkObject, w as withoutImportant, h as withoutSpace } from './merge-e05e5f23.js'; | ||
import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from './merge-fe9cd267.js'; | ||
export { C as CreateCssContext, M as MappedObject, k as WalkObjectOptions, W as WalkObjectStopFn, d as compact, c as createCss, j as deepMerge, f as filterBaseConditions, e as isBaseCondition, a as isFunction, g as isImportant, b as isObject, i as isString, m as mapObject, t as toHash, l as walkObject, w as withoutImportant, h as withoutSpace } from './merge-fe9cd267.js'; | ||
@@ -4,0 +4,0 @@ type Operand = string | number | { |
@@ -109,21 +109,9 @@ "use strict"; | ||
// src/hash.ts | ||
function toChar(code) { | ||
return String.fromCharCode(code + (code > 25 ? 39 : 97)); | ||
function toHash(str) { | ||
let value = 5381; | ||
let len = str.length; | ||
while (len--) | ||
value = value * 33 ^ str.charCodeAt(len); | ||
return (value >>> 0).toString(36); | ||
} | ||
function toName(code) { | ||
let name = ""; | ||
let x; | ||
for (x = Math.abs(code); x > 52; x = x / 52 | 0) | ||
name = toChar(x % 52) + name; | ||
return toChar(x % 52) + name; | ||
} | ||
function toPhash(h, x) { | ||
let i = x.length; | ||
while (i) | ||
h = h * 33 ^ x.charCodeAt(--i); | ||
return h; | ||
} | ||
function toHash(value) { | ||
return toName(toPhash(5381, value) >>> 0); | ||
} | ||
@@ -130,0 +118,0 @@ // src/walk-object.ts |
@@ -1,1 +0,1 @@ | ||
export { d as compact, c as createCss, j as deepMerge, f as filterBaseConditions, e as isBaseCondition, b as isObject, m as mapObject, t as toHash, l as walkObject, h as withoutSpace } from './merge-e05e5f23.js'; | ||
export { d as compact, c as createCss, j as deepMerge, f as filterBaseConditions, e as isBaseCondition, b as isObject, m as mapObject, t as toHash, l as walkObject, h as withoutSpace } from './merge-fe9cd267.js'; |
@@ -59,21 +59,9 @@ "use strict"; | ||
// src/hash.ts | ||
function toChar(code) { | ||
return String.fromCharCode(code + (code > 25 ? 39 : 97)); | ||
function toHash(str) { | ||
let value = 5381; | ||
let len = str.length; | ||
while (len--) | ||
value = value * 33 ^ str.charCodeAt(len); | ||
return (value >>> 0).toString(36); | ||
} | ||
function toName(code) { | ||
let name = ""; | ||
let x; | ||
for (x = Math.abs(code); x > 52; x = x / 52 | 0) | ||
name = toChar(x % 52) + name; | ||
return toChar(x % 52) + name; | ||
} | ||
function toPhash(h, x) { | ||
let i = x.length; | ||
while (i) | ||
h = h * 33 ^ x.charCodeAt(--i); | ||
return h; | ||
} | ||
function toHash(value) { | ||
return toName(toPhash(5381, value) >>> 0); | ||
} | ||
@@ -80,0 +68,0 @@ // src/walk-object.ts |
{ | ||
"name": "@pandacss/shared", | ||
"version": "0.0.0-dev-20230118124201", | ||
"version": "0.0.0-dev-20230118125053", | ||
"description": "Shared utilities for css panda", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
38505
1209