qstd 0.3.33 → 0.3.34
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/preset/index.cjs
CHANGED
|
@@ -220,9 +220,9 @@ var preset = {
|
|
|
220
220
|
}
|
|
221
221
|
},
|
|
222
222
|
debug: {
|
|
223
|
-
values: { type: "boolean
|
|
223
|
+
values: { type: "boolean" },
|
|
224
224
|
transform(value) {
|
|
225
|
-
if (value === true) return {
|
|
225
|
+
if (value === true) return { border: "1px solid red" };
|
|
226
226
|
if (typeof value === "string") {
|
|
227
227
|
const parts = value.trim().split(/\s+/);
|
|
228
228
|
let borderWidth = "1px", borderStyle = "solid", borderColor = "red";
|
|
@@ -254,12 +254,12 @@ var preset = {
|
|
|
254
254
|
const shouldWrap = !isKeyword && !isHex && !isFunc && !isVarRef && (looksLikeScaleToken || looksLikeSemanticToken);
|
|
255
255
|
const normalizedBorderColor = shouldWrap ? `var(--colors-${borderColor.replace(/\./g, "-")})` : borderColor;
|
|
256
256
|
return {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
borderWidth,
|
|
258
|
+
borderStyle,
|
|
259
|
+
borderColor: normalizedBorderColor
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
return {
|
|
262
|
+
return { border: "1px solid red" };
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
265
|
cols: {
|
package/dist/preset/index.js
CHANGED
|
@@ -218,9 +218,9 @@ var preset = {
|
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
debug: {
|
|
221
|
-
values: { type: "boolean
|
|
221
|
+
values: { type: "boolean" },
|
|
222
222
|
transform(value) {
|
|
223
|
-
if (value === true) return {
|
|
223
|
+
if (value === true) return { border: "1px solid red" };
|
|
224
224
|
if (typeof value === "string") {
|
|
225
225
|
const parts = value.trim().split(/\s+/);
|
|
226
226
|
let borderWidth = "1px", borderStyle = "solid", borderColor = "red";
|
|
@@ -252,12 +252,12 @@ var preset = {
|
|
|
252
252
|
const shouldWrap = !isKeyword && !isHex && !isFunc && !isVarRef && (looksLikeScaleToken || looksLikeSemanticToken);
|
|
253
253
|
const normalizedBorderColor = shouldWrap ? `var(--colors-${borderColor.replace(/\./g, "-")})` : borderColor;
|
|
254
254
|
return {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
255
|
+
borderWidth,
|
|
256
|
+
borderStyle,
|
|
257
|
+
borderColor: normalizedBorderColor
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
return {
|
|
260
|
+
return { border: "1px solid red" };
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
cols: {
|
package/dist/react/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -205,7 +205,7 @@ export interface UtilityValues {
|
|
|
205
205
|
stroke: Tokens["colors"];
|
|
206
206
|
strokeWidth: number;
|
|
207
207
|
srOnly: boolean;
|
|
208
|
-
debug: boolean
|
|
208
|
+
debug: boolean;
|
|
209
209
|
containerName: CssProperties["containerName"];
|
|
210
210
|
grid: boolean;
|
|
211
211
|
center: boolean | 'x' | 'y';
|