transform-to-unocss-core 0.0.69 → 0.0.70
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.cjs +2 -0
- package/dist/index.iife.js +2 -0
- package/dist/index.js +2 -0
- package/dist/index.umd.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1316,6 +1316,7 @@ const textMap = [
|
|
|
1316
1316
|
"text-align",
|
|
1317
1317
|
"text-align-last",
|
|
1318
1318
|
"text-decoration-line",
|
|
1319
|
+
"text-decoration",
|
|
1319
1320
|
"text-decoration-style",
|
|
1320
1321
|
"text-decoration-color",
|
|
1321
1322
|
"text-decoration-thickness",
|
|
@@ -1338,6 +1339,7 @@ function text(key, val) {
|
|
|
1338
1339
|
if (value === "none") return `normal-case${important}`;
|
|
1339
1340
|
return `${value}${important}`;
|
|
1340
1341
|
}
|
|
1342
|
+
if (key === "text-decoration") return value;
|
|
1341
1343
|
if (key.startsWith("text-decoration") || key === "text-indent") return `${key.split("-")[1]}${getVal(value)}${important}`;
|
|
1342
1344
|
if (key === "text-underline-offset") return `underline-offset${getVal(value)}${important}`;
|
|
1343
1345
|
if (key === "text-align-last") return `${important}[${key}:${value}]`;
|
package/dist/index.iife.js
CHANGED
|
@@ -1318,6 +1318,7 @@ const textMap = [
|
|
|
1318
1318
|
"text-align",
|
|
1319
1319
|
"text-align-last",
|
|
1320
1320
|
"text-decoration-line",
|
|
1321
|
+
"text-decoration",
|
|
1321
1322
|
"text-decoration-style",
|
|
1322
1323
|
"text-decoration-color",
|
|
1323
1324
|
"text-decoration-thickness",
|
|
@@ -1340,6 +1341,7 @@ function text(key, val) {
|
|
|
1340
1341
|
if (value === "none") return `normal-case${important}`;
|
|
1341
1342
|
return `${value}${important}`;
|
|
1342
1343
|
}
|
|
1344
|
+
if (key === "text-decoration") return value;
|
|
1343
1345
|
if (key.startsWith("text-decoration") || key === "text-indent") return `${key.split("-")[1]}${getVal(value)}${important}`;
|
|
1344
1346
|
if (key === "text-underline-offset") return `underline-offset${getVal(value)}${important}`;
|
|
1345
1347
|
if (key === "text-align-last") return `${important}[${key}:${value}]`;
|
package/dist/index.js
CHANGED
|
@@ -1314,6 +1314,7 @@ const textMap = [
|
|
|
1314
1314
|
"text-align",
|
|
1315
1315
|
"text-align-last",
|
|
1316
1316
|
"text-decoration-line",
|
|
1317
|
+
"text-decoration",
|
|
1317
1318
|
"text-decoration-style",
|
|
1318
1319
|
"text-decoration-color",
|
|
1319
1320
|
"text-decoration-thickness",
|
|
@@ -1336,6 +1337,7 @@ function text(key, val) {
|
|
|
1336
1337
|
if (value === "none") return `normal-case${important}`;
|
|
1337
1338
|
return `${value}${important}`;
|
|
1338
1339
|
}
|
|
1340
|
+
if (key === "text-decoration") return value;
|
|
1339
1341
|
if (key.startsWith("text-decoration") || key === "text-indent") return `${key.split("-")[1]}${getVal(value)}${important}`;
|
|
1340
1342
|
if (key === "text-underline-offset") return `underline-offset${getVal(value)}${important}`;
|
|
1341
1343
|
if (key === "text-align-last") return `${important}[${key}:${value}]`;
|
package/dist/index.umd.js
CHANGED
|
@@ -1321,6 +1321,7 @@ const textMap = [
|
|
|
1321
1321
|
"text-align",
|
|
1322
1322
|
"text-align-last",
|
|
1323
1323
|
"text-decoration-line",
|
|
1324
|
+
"text-decoration",
|
|
1324
1325
|
"text-decoration-style",
|
|
1325
1326
|
"text-decoration-color",
|
|
1326
1327
|
"text-decoration-thickness",
|
|
@@ -1343,6 +1344,7 @@ function text(key, val) {
|
|
|
1343
1344
|
if (value === "none") return `normal-case${important}`;
|
|
1344
1345
|
return `${value}${important}`;
|
|
1345
1346
|
}
|
|
1347
|
+
if (key === "text-decoration") return value;
|
|
1346
1348
|
if (key.startsWith("text-decoration") || key === "text-indent") return `${key.split("-")[1]}${getVal(value)}${important}`;
|
|
1347
1349
|
if (key === "text-underline-offset") return `underline-offset${getVal(value)}${important}`;
|
|
1348
1350
|
if (key === "text-align-last") return `${important}[${key}:${value}]`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "transform-to-unocss-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.70",
|
|
5
5
|
"description": "A utility to transform CSS to UnoCSS syntax. Supports various CSS properties and custom parsing.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|