@pandacss/shared 0.27.2 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from
|
|
|
2
2
|
export { r as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, x as mapObject, m as markImportant, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, w as withoutImportant, k as withoutSpace } from './shared-MIujjRlg.mjs';
|
|
3
3
|
export { astish } from './astish.mjs';
|
|
4
4
|
|
|
5
|
-
declare const getArbitraryValue: (
|
|
5
|
+
declare const getArbitraryValue: (_value: string) => string;
|
|
6
6
|
|
|
7
7
|
type Operand = string | number | {
|
|
8
8
|
ref: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { W as WalkObjectStopFn, M as MappedObject, C as CreateCssContext } from
|
|
|
2
2
|
export { r as WalkObjectOptions, f as compact, d as createCss, e as createMergeCss, h as filterBaseConditions, q as getSlotCompoundVariant, p as getSlotRecipes, l as hypenateProperty, g as isBaseCondition, a as isBoolean, b as isFunction, j as isImportant, c as isObject, i as isString, x as mapObject, m as markImportant, n as memo, o as mergeProps, s as splitProps, t as toHash, u as uniq, v as walkObject, w as withoutImportant, k as withoutSpace } from './shared-MIujjRlg.js';
|
|
3
3
|
export { astish } from './astish.js';
|
|
4
4
|
|
|
5
|
-
declare const getArbitraryValue: (
|
|
5
|
+
declare const getArbitraryValue: (_value: string) => string;
|
|
6
6
|
|
|
7
7
|
type Operand = string | number | {
|
|
8
8
|
ref: string;
|
package/dist/index.js
CHANGED
|
@@ -80,9 +80,10 @@ __export(src_exports, {
|
|
|
80
80
|
module.exports = __toCommonJS(src_exports);
|
|
81
81
|
|
|
82
82
|
// src/arbitrary-value.ts
|
|
83
|
-
var getArbitraryValue = (
|
|
84
|
-
if (!
|
|
85
|
-
return
|
|
83
|
+
var getArbitraryValue = (_value) => {
|
|
84
|
+
if (!_value || typeof _value !== "string")
|
|
85
|
+
return _value;
|
|
86
|
+
const value = _value.trim();
|
|
86
87
|
if (value[0] === "[" && value[value.length - 1] === "]") {
|
|
87
88
|
const innerValue = value.slice(1, -1);
|
|
88
89
|
let bracketCount = 0;
|
|
@@ -97,7 +98,7 @@ var getArbitraryValue = (value) => {
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
if (bracketCount === 0) {
|
|
100
|
-
return innerValue;
|
|
101
|
+
return innerValue.trim();
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
return value;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// src/arbitrary-value.ts
|
|
2
|
-
var getArbitraryValue = (
|
|
3
|
-
if (!
|
|
4
|
-
return
|
|
2
|
+
var getArbitraryValue = (_value) => {
|
|
3
|
+
if (!_value || typeof _value !== "string")
|
|
4
|
+
return _value;
|
|
5
|
+
const value = _value.trim();
|
|
5
6
|
if (value[0] === "[" && value[value.length - 1] === "]") {
|
|
6
7
|
const innerValue = value.slice(1, -1);
|
|
7
8
|
let bracketCount = 0;
|
|
@@ -16,7 +17,7 @@ var getArbitraryValue = (value) => {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
if (bracketCount === 0) {
|
|
19
|
-
return innerValue;
|
|
20
|
+
return innerValue.trim();
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
return value;
|