@vinicunca/unocss-preset 1.44.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
@@ -570,7 +570,7 @@ async function resolveTransformers(options) {
570
570
  const transformerMap = {
571
571
  directives: import("unocss").then((m) => m.transformerDirectives),
572
572
  variantGroup: import("unocss").then((m) => m.transformerVariantGroup),
573
- alias: import("./transformer-alias-BwevKlDD.mjs").then((mod) => mod.transformerAlias)
573
+ alias: import("./transformer-alias-DPt4rdJP.mjs").then((mod) => mod.transformerAlias)
574
574
  };
575
575
  for (const [key, transformer] of Object.entries(transformerMap)) {
576
576
  const option = options[key];
@@ -1,4 +1,4 @@
1
- import { expandVariantGroup, isStaticShortcut } from "@unocss/core";
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 Array.from(code.original.matchAll(extraRE))) {
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.44.0",
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.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/core": "66.6.6",
53
- "@unocss/preset-icons": "66.6.6",
54
- "@unocss/preset-mini": "66.6.6",
55
- "@unocss/preset-typography": "66.6.6",
56
- "@unocss/preset-web-fonts": "66.6.6",
57
- "@unocss/preset-wind4": "66.6.6",
58
- "@unocss/transformer-directives": "66.6.6",
59
- "@unocss/transformer-variant-group": "66.6.6",
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.6",
72
+ "unocss": "66.6.8",
74
73
  "vite": "^7.3.1",
75
74
  "vitest": "^4.0.17",
76
- "@vinicunca/unocss-preset": "1.44.0"
75
+ "@vinicunca/unocss-preset": "1.45.0"
77
76
  },
78
77
  "devDependencies": {
79
78
  "culori": "^4.0.2"