@vinicunca/unocss-preset 1.43.0 → 1.45.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
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSObject } from "@unocss/core";
|
|
2
1
|
import * as unocss0 from "unocss";
|
|
2
|
+
import { CSSObject } from "unocss";
|
|
3
3
|
import { IconsOptions } from "@unocss/preset-icons";
|
|
4
4
|
import { TypographyOptions } from "@unocss/preset-typography";
|
|
5
5
|
import { WebFontsOptions } from "@unocss/preset-web-fonts";
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as cssObj2StrSync, i as compressCSS, n as DEFAULT_OPTIONS, o as resolveAnimation, r as DEFAULT_PRESET_OPTIONS, t as DEFAULT_AKAR_OPTIONS } from "./constants-D0-2LDV-.mjs";
|
|
2
2
|
import { t as PRESET_NAME } from "./meta-C6h3diDY.mjs";
|
|
3
|
-
import { definePreset } from "@unocss/core";
|
|
4
3
|
import { defu } from "defu";
|
|
4
|
+
import { definePreset } from "unocss";
|
|
5
5
|
import { isBoolean, isObjectType, isPlainObject, isString, mergeDeep } from "@vinicunca/perkakas";
|
|
6
6
|
|
|
7
7
|
//#region src/core/postprocess.ts
|
|
@@ -57,6 +57,7 @@ const resetCSS = `
|
|
|
57
57
|
5. Use the user's configured \`sans\` font-feature-settings by default.
|
|
58
58
|
6. Use the user's configured \`sans\` font-variation-settings by default.
|
|
59
59
|
7. Disable tap highlights on iOS.
|
|
60
|
+
8. Improve text rendering.
|
|
60
61
|
*/
|
|
61
62
|
|
|
62
63
|
html,
|
|
@@ -78,6 +79,7 @@ html,
|
|
|
78
79
|
font-feature-settings: var(--defaults-font-feature-settings, normal); /* 5 */
|
|
79
80
|
font-variation-settings: var(--defaults-font-variation-settings, normal); /* 6 */
|
|
80
81
|
-webkit-tap-highlight-color: transparent; /* 7 */
|
|
82
|
+
-webkit-font-smoothing: antialiased; /* 8 */
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
/*
|
|
@@ -123,6 +125,23 @@ h6 {
|
|
|
123
125
|
font-weight: inherit;
|
|
124
126
|
}
|
|
125
127
|
|
|
128
|
+
/*
|
|
129
|
+
Avoid text overflows
|
|
130
|
+
*/
|
|
131
|
+
p, h1, h2, h3, h4, h5, h6 {
|
|
132
|
+
overflow-wrap: break-word;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/*
|
|
136
|
+
Improve line wrapping
|
|
137
|
+
*/
|
|
138
|
+
p {
|
|
139
|
+
text-wrap: pretty;
|
|
140
|
+
}
|
|
141
|
+
h1, h2, h3, h4, h5, h6 {
|
|
142
|
+
text-wrap: balance;
|
|
143
|
+
}
|
|
144
|
+
|
|
126
145
|
/*
|
|
127
146
|
Reset links to optimize for opt-in styling instead of opt-out.
|
|
128
147
|
*/
|
|
@@ -248,7 +267,6 @@ menu {
|
|
|
248
267
|
2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
|
|
249
268
|
This can trigger a poorly considered lint error in some tools but is included by design.
|
|
250
269
|
*/
|
|
251
|
-
|
|
252
270
|
img,
|
|
253
271
|
svg,
|
|
254
272
|
video,
|
|
@@ -264,9 +282,7 @@ object {
|
|
|
264
282
|
/*
|
|
265
283
|
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
|
|
266
284
|
*/
|
|
267
|
-
|
|
268
|
-
img,
|
|
269
|
-
video {
|
|
285
|
+
img, picture, video, canvas, svg {
|
|
270
286
|
max-width: 100%;
|
|
271
287
|
height: auto;
|
|
272
288
|
}
|
|
@@ -277,7 +293,6 @@ video {
|
|
|
277
293
|
3. Remove background color in all browsers.
|
|
278
294
|
4. Ensure consistent opacity for disabled states in all browsers.
|
|
279
295
|
*/
|
|
280
|
-
|
|
281
296
|
button,
|
|
282
297
|
input,
|
|
283
298
|
optgroup,
|
|
@@ -555,7 +570,7 @@ async function resolveTransformers(options) {
|
|
|
555
570
|
const transformerMap = {
|
|
556
571
|
directives: import("unocss").then((m) => m.transformerDirectives),
|
|
557
572
|
variantGroup: import("unocss").then((m) => m.transformerVariantGroup),
|
|
558
|
-
alias: import("./transformer-alias-
|
|
573
|
+
alias: import("./transformer-alias-DPt4rdJP.mjs").then((mod) => mod.transformerAlias)
|
|
559
574
|
};
|
|
560
575
|
for (const [key, transformer] of Object.entries(transformerMap)) {
|
|
561
576
|
const option = options[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { expandVariantGroup, isStaticShortcut } from "
|
|
1
|
+
import { expandVariantGroup, isStaticShortcut } from "unocss";
|
|
2
2
|
import { isString } from "@vinicunca/perkakas";
|
|
3
3
|
|
|
4
4
|
//#region src/transformer-alias.ts
|
|
@@ -23,7 +23,7 @@ async function transformAlias({ code, uno, options = {} }) {
|
|
|
23
23
|
};
|
|
24
24
|
const extraRE = new RegExp(`(${escapeRegExp(prefix)}|${escapeRegExp(keep.prefix)})([\\w-:]+)`, "g");
|
|
25
25
|
const map = /* @__PURE__ */ new Map();
|
|
26
|
-
for (const item of
|
|
26
|
+
for (const item of [...code.original.matchAll(extraRE)]) {
|
|
27
27
|
let result = map.get(item[0]);
|
|
28
28
|
if (result === false) continue;
|
|
29
29
|
else if (!result) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vinicunca/unocss-preset",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.45.0",
|
|
5
5
|
"description": "Opinionated UnoCSS preset",
|
|
6
6
|
"author": "praburangki<https://github.com/praburangki>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -42,22 +42,21 @@
|
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@vinicunca/perkakas": "^1.13.2",
|
|
45
|
-
"unocss": "66.6.
|
|
45
|
+
"unocss": "66.6.8"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"registry": "https://registry.npmjs.org/"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@types/node": "^24.10.8",
|
|
52
|
-
"@unocss/
|
|
53
|
-
"@unocss/preset-
|
|
54
|
-
"@unocss/preset-
|
|
55
|
-
"@unocss/preset-
|
|
56
|
-
"@unocss/preset-
|
|
57
|
-
"@unocss/
|
|
58
|
-
"@unocss/transformer-
|
|
59
|
-
"@
|
|
60
|
-
"@vinicunca/eslint-config": "4.9.0",
|
|
52
|
+
"@unocss/preset-icons": "66.6.8",
|
|
53
|
+
"@unocss/preset-mini": "66.6.8",
|
|
54
|
+
"@unocss/preset-typography": "66.6.8",
|
|
55
|
+
"@unocss/preset-web-fonts": "66.6.8",
|
|
56
|
+
"@unocss/preset-wind4": "66.6.8",
|
|
57
|
+
"@unocss/transformer-directives": "66.6.8",
|
|
58
|
+
"@unocss/transformer-variant-group": "66.6.8",
|
|
59
|
+
"@vinicunca/eslint-config": "5.0.0",
|
|
61
60
|
"@vinicunca/perkakas": "^1.13.2",
|
|
62
61
|
"bumpp": "^10.4.1",
|
|
63
62
|
"defu": "^6.1.4",
|
|
@@ -70,10 +69,10 @@
|
|
|
70
69
|
"simple-git-hooks": "^2.13.1",
|
|
71
70
|
"tsdown": "^0.18.4",
|
|
72
71
|
"typescript": "^5.9.3",
|
|
73
|
-
"unocss": "66.6.
|
|
72
|
+
"unocss": "66.6.8",
|
|
74
73
|
"vite": "^7.3.1",
|
|
75
74
|
"vitest": "^4.0.17",
|
|
76
|
-
"@vinicunca/unocss-preset": "1.
|
|
75
|
+
"@vinicunca/unocss-preset": "1.45.0"
|
|
77
76
|
},
|
|
78
77
|
"devDependencies": {
|
|
79
78
|
"culori": "^4.0.2"
|