@unocss/core 0.65.0-beta.3 → 0.65.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
@@ -249,6 +249,7 @@ declare const SymbolVariants: unique symbol;
249
249
  declare const SymbolParent: unique symbol;
250
250
  declare const SymbolSelector: unique symbol;
251
251
  declare const SymbolLayer: unique symbol;
252
+ declare const SymbolSort: unique symbol;
252
253
  interface ControlSymbols {
253
254
  /**
254
255
  * Prevent merging in shortcuts
@@ -270,6 +271,10 @@ interface ControlSymbols {
270
271
  * Layer modifier
271
272
  */
272
273
  layer: typeof SymbolLayer;
274
+ /**
275
+ * Sort modifier
276
+ */
277
+ sort: typeof SymbolSort;
273
278
  }
274
279
  interface ControlSymbolsValue {
275
280
  [SymbolShortcutsNoMerge]: true;
@@ -277,6 +282,7 @@ interface ControlSymbolsValue {
277
282
  [SymbolParent]: string;
278
283
  [SymbolSelector]: (selector: string) => string;
279
284
  [SymbolLayer]: string;
285
+ [SymbolSort]: number;
280
286
  }
281
287
  type ObjectToEntry<T> = {
282
288
  [K in keyof T]: [K, T[K]];
package/dist/index.d.ts CHANGED
@@ -249,6 +249,7 @@ declare const SymbolVariants: unique symbol;
249
249
  declare const SymbolParent: unique symbol;
250
250
  declare const SymbolSelector: unique symbol;
251
251
  declare const SymbolLayer: unique symbol;
252
+ declare const SymbolSort: unique symbol;
252
253
  interface ControlSymbols {
253
254
  /**
254
255
  * Prevent merging in shortcuts
@@ -270,6 +271,10 @@ interface ControlSymbols {
270
271
  * Layer modifier
271
272
  */
272
273
  layer: typeof SymbolLayer;
274
+ /**
275
+ * Sort modifier
276
+ */
277
+ sort: typeof SymbolSort;
273
278
  }
274
279
  interface ControlSymbolsValue {
275
280
  [SymbolShortcutsNoMerge]: true;
@@ -277,6 +282,7 @@ interface ControlSymbolsValue {
277
282
  [SymbolParent]: string;
278
283
  [SymbolSelector]: (selector: string) => string;
279
284
  [SymbolLayer]: string;
285
+ [SymbolSort]: number;
280
286
  }
281
287
  type ObjectToEntry<T> = {
282
288
  [K in keyof T]: [K, T[K]];
package/dist/index.mjs CHANGED
@@ -653,7 +653,7 @@ function definePreset(preset) {
653
653
  return preset;
654
654
  }
655
655
 
656
- const version = "0.65.0-beta.3";
656
+ const version = "0.65.0";
657
657
 
658
658
  function createNanoEvents() {
659
659
  return {
@@ -679,7 +679,8 @@ const symbols = {
679
679
  variants: "$$symbol-variants",
680
680
  parent: "$$symbol-parent",
681
681
  selector: "$$symbol-selector",
682
- layer: "$$symbol-layer"
682
+ layer: "$$symbol-layer",
683
+ sort: "$$symbol-sort"
683
684
  };
684
685
  class UnoGeneratorInternal {
685
686
  constructor(userConfig = {}, defaults = {}) {
@@ -1123,6 +1124,7 @@ class UnoGeneratorInternal {
1123
1124
  if (isString(css))
1124
1125
  return [index, css, meta];
1125
1126
  let variants = variantHandlers;
1127
+ let entryMeta = meta;
1126
1128
  for (const entry of css) {
1127
1129
  if (entry[0] === symbols.variants) {
1128
1130
  variants = [
@@ -1144,9 +1146,14 @@ class UnoGeneratorInternal {
1144
1146
  { layer: entry[1] },
1145
1147
  ...variants
1146
1148
  ];
1149
+ } else if (entry[0] === symbols.sort) {
1150
+ entryMeta = {
1151
+ ...entryMeta,
1152
+ sort: entry[1]
1153
+ };
1147
1154
  }
1148
1155
  }
1149
- return [index, raw, css, meta, variants];
1156
+ return [index, raw, css, entryMeta, variants];
1150
1157
  });
1151
1158
  }
1152
1159
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/core",
3
3
  "type": "module",
4
- "version": "0.65.0-beta.3",
4
+ "version": "0.65.0",
5
5
  "description": "The instant on-demand Atomic CSS engine.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",