@unocss/preset-mini 0.35.2 → 0.36.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.
@@ -1,4 +1,5 @@
1
- import { escapeSelector, createValueHandler, toArray } from '@unocss/core';
1
+ import { toArray } from '@unocss/core';
2
+ import { h as handler, d as directionMap } from './index.mjs';
2
3
 
3
4
  const cssColorFunctions = ["hsl", "hsla", "hwb", "lab", "lch", "oklab", "oklch", "rgb", "rgba"];
4
5
  function hex2rgba(hex = "") {
@@ -219,290 +220,6 @@ function getComponents(str, separator, limit) {
219
220
  return components;
220
221
  }
221
222
 
222
- const directionMap = {
223
- "l": ["-left"],
224
- "r": ["-right"],
225
- "t": ["-top"],
226
- "b": ["-bottom"],
227
- "s": ["-inline-start"],
228
- "e": ["-inline-end"],
229
- "x": ["-left", "-right"],
230
- "y": ["-top", "-bottom"],
231
- "": [""],
232
- "bs": ["-block-start"],
233
- "be": ["-block-end"],
234
- "is": ["-inline-start"],
235
- "ie": ["-inline-end"],
236
- "block": ["-block-start", "-block-end"],
237
- "inline": ["-inline-start", "-inline-end"]
238
- };
239
- const insetMap = {
240
- ...directionMap,
241
- s: ["-inset-inline-start"],
242
- e: ["-inset-inline-end"],
243
- bs: ["-inset-block-start"],
244
- be: ["-inset-block-end"],
245
- is: ["-inset-inline-start"],
246
- ie: ["-inset-inline-end"],
247
- block: ["-inset-block-start", "-inset-block-end"],
248
- inline: ["-inset-inline-start", "-inset-inline-end"]
249
- };
250
- const cornerMap = {
251
- "l": ["-top-left", "-bottom-left"],
252
- "r": ["-top-right", "-bottom-right"],
253
- "t": ["-top-left", "-top-right"],
254
- "b": ["-bottom-left", "-bottom-right"],
255
- "tl": ["-top-left"],
256
- "lt": ["-top-left"],
257
- "tr": ["-top-right"],
258
- "rt": ["-top-right"],
259
- "bl": ["-bottom-left"],
260
- "lb": ["-bottom-left"],
261
- "br": ["-bottom-right"],
262
- "rb": ["-bottom-right"],
263
- "": [""],
264
- "bs": ["-start-start", "-start-end"],
265
- "be": ["-end-start", "-end-end"],
266
- "is": ["-end-start", "-start-start"],
267
- "ie": ["-start-end", "-end-end"],
268
- "bs-is": ["-start-start"],
269
- "is-bs": ["-start-start"],
270
- "bs-ie": ["-start-end"],
271
- "ie-bs": ["-start-end"],
272
- "be-is": ["-end-start"],
273
- "is-be": ["-end-start"],
274
- "be-ie": ["-end-end"],
275
- "ie-be": ["-end-end"]
276
- };
277
- const xyzMap = {
278
- "x": ["-x"],
279
- "y": ["-y"],
280
- "z": ["-z"],
281
- "": ["-x", "-y"]
282
- };
283
- const basePositionMap = [
284
- "top",
285
- "top center",
286
- "top left",
287
- "top right",
288
- "bottom",
289
- "bottom center",
290
- "bottom left",
291
- "bottom right",
292
- "left",
293
- "left center",
294
- "left top",
295
- "left bottom",
296
- "right",
297
- "right center",
298
- "right top",
299
- "right bottom",
300
- "center",
301
- "center top",
302
- "center bottom",
303
- "center left",
304
- "center right",
305
- "center center"
306
- ];
307
- const positionMap = Object.assign({}, ...basePositionMap.map((p) => ({ [p.replace(/ /, "-")]: p })), ...basePositionMap.map((p) => ({ [p.replace(/\b(\w)\w+/g, "$1").replace(/ /, "")]: p })));
308
-
309
- const cssProps = [
310
- "color",
311
- "border-color",
312
- "background-color",
313
- "flex-grow",
314
- "flex",
315
- "flex-shrink",
316
- "caret-color",
317
- "font",
318
- "gap",
319
- "opacity",
320
- "visibility",
321
- "z-index",
322
- "font-weight",
323
- "zoom",
324
- "text-shadow",
325
- "transform",
326
- "box-shadow",
327
- "backround-position",
328
- "left",
329
- "right",
330
- "top",
331
- "bottom",
332
- "object-position",
333
- "max-height",
334
- "min-height",
335
- "max-width",
336
- "min-width",
337
- "height",
338
- "width",
339
- "border-width",
340
- "margin",
341
- "padding",
342
- "outline-width",
343
- "outline-offset",
344
- "font-size",
345
- "line-height",
346
- "text-indent",
347
- "vertical-align",
348
- "border-spacing",
349
- "letter-spacing",
350
- "word-spacing",
351
- "stroke",
352
- "filter",
353
- "backdrop-filter",
354
- "fill",
355
- "mask",
356
- "mask-size",
357
- "mask-border",
358
- "clip-path",
359
- "clip",
360
- "border-radius"
361
- ];
362
- const numberWithUnitRE = /^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i;
363
- const numberRE = /^(-?[0-9.]+)$/i;
364
- const unitOnlyRE = /^(px)$/i;
365
- function round(n) {
366
- return n.toFixed(10).replace(/\.0+$/, "").replace(/(\.\d+?)0+$/, "$1");
367
- }
368
- function numberWithUnit(str) {
369
- const match = str.match(numberWithUnitRE);
370
- if (!match)
371
- return;
372
- const [, n, unit] = match;
373
- const num = parseFloat(n);
374
- if (unit && !Number.isNaN(num))
375
- return `${round(num)}${unit}`;
376
- }
377
- function auto(str) {
378
- if (str === "auto" || str === "a")
379
- return "auto";
380
- }
381
- function rem(str) {
382
- if (str.match(unitOnlyRE))
383
- return `1${str}`;
384
- const match = str.match(numberWithUnitRE);
385
- if (!match)
386
- return;
387
- const [, n, unit] = match;
388
- const num = parseFloat(n);
389
- if (!Number.isNaN(num))
390
- return unit ? `${round(num)}${unit}` : `${round(num / 4)}rem`;
391
- }
392
- function px(str) {
393
- if (str.match(unitOnlyRE))
394
- return `1${str}`;
395
- const match = str.match(numberWithUnitRE);
396
- if (!match)
397
- return;
398
- const [, n, unit] = match;
399
- const num = parseFloat(n);
400
- if (!Number.isNaN(num))
401
- return unit ? `${round(num)}${unit}` : `${round(num)}px`;
402
- }
403
- function number(str) {
404
- if (!numberRE.test(str))
405
- return;
406
- const num = parseFloat(str);
407
- if (!Number.isNaN(num))
408
- return round(num);
409
- }
410
- function percent(str) {
411
- if (str.endsWith("%"))
412
- str = str.slice(0, -1);
413
- const num = parseFloat(str);
414
- if (!Number.isNaN(num))
415
- return `${round(num / 100)}`;
416
- }
417
- function fraction(str) {
418
- if (str === "full")
419
- return "100%";
420
- const [left, right] = str.split("/");
421
- const num = parseFloat(left) / parseFloat(right);
422
- if (!Number.isNaN(num))
423
- return `${round(num * 100)}%`;
424
- }
425
- function bracketWithType(str, type) {
426
- if (str && str.startsWith("[") && str.endsWith("]")) {
427
- let base;
428
- const match = str.match(/^\[(color|length|position):/i);
429
- if (!match)
430
- base = str.slice(1, -1);
431
- else if (type && match[1] === type)
432
- base = str.slice(match[0].length, -1);
433
- if (base !== void 0) {
434
- return base.replace(/(url\(.*?\))/g, (v) => v.replace(/_/g, "\\_")).replace(/([^\\])_/g, "$1 ").replace(/calc\((.*)/g, (v) => {
435
- return v.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g, "$1 $2 ");
436
- });
437
- }
438
- }
439
- }
440
- function bracket(str) {
441
- return bracketWithType(str);
442
- }
443
- function bracketOfColor(str) {
444
- return bracketWithType(str, "color");
445
- }
446
- function bracketOfLength(str) {
447
- return bracketWithType(str, "length");
448
- }
449
- function bracketOfPosition(str) {
450
- return bracketWithType(str, "position");
451
- }
452
- function cssvar(str) {
453
- if (str.match(/^\$\S/))
454
- return `var(--${escapeSelector(str.slice(1))})`;
455
- }
456
- function time(str) {
457
- const match = str.match(/^(-?[0-9.]+)(s|ms)?$/i);
458
- if (!match)
459
- return;
460
- const [, n, unit] = match;
461
- const num = parseFloat(n);
462
- if (!Number.isNaN(num))
463
- return unit ? `${round(num)}${unit}` : `${round(num)}ms`;
464
- }
465
- function degree(str) {
466
- const match = str.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);
467
- if (!match)
468
- return;
469
- const [, n, unit] = match;
470
- const num = parseFloat(n);
471
- if (!Number.isNaN(num))
472
- return unit ? `${round(num)}${unit}` : `${round(num)}deg`;
473
- }
474
- function global(str) {
475
- if (["inherit", "initial", "revert", "unset"].includes(str))
476
- return str;
477
- }
478
- function properties(str) {
479
- if (str.split(",").every((prop) => cssProps.includes(prop)))
480
- return str;
481
- }
482
-
483
- const valueHandlers = {
484
- __proto__: null,
485
- numberWithUnit: numberWithUnit,
486
- auto: auto,
487
- rem: rem,
488
- px: px,
489
- number: number,
490
- percent: percent,
491
- fraction: fraction,
492
- bracket: bracket,
493
- bracketOfColor: bracketOfColor,
494
- bracketOfLength: bracketOfLength,
495
- bracketOfPosition: bracketOfPosition,
496
- cssvar: cssvar,
497
- time: time,
498
- degree: degree,
499
- global: global,
500
- properties: properties
501
- };
502
-
503
- const handler = createValueHandler(valueHandlers);
504
- const h = handler;
505
-
506
223
  const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
507
224
  const directionSize = (propertyPrefix) => ([_, direction, size], { theme }) => {
508
225
  const v = theme.spacing?.[size || "DEFAULT"] ?? handler.bracket.cssvar.auto.fraction.rem(size);
@@ -617,4 +334,4 @@ const resolveVerticalBreakpoints = ({ theme, generator }) => {
617
334
  return verticalBreakpoints;
618
335
  };
619
336
 
620
- export { CONTROL_MINI_NO_NEGATIVE as C, hasParseableColor as a, colorToString as b, colorResolver as c, directionMap as d, cornerMap as e, colorableShadows as f, resolveBreakpoints as g, handler as h, insetMap as i, directionSize as j, positionMap as k, hex2rgba as l, parseCssColor as m, getComponents as n, h as o, parseColor as p, resolveVerticalBreakpoints as r, valueHandlers as v, xyzMap as x };
337
+ export { CONTROL_MINI_NO_NEGATIVE as C, colorToString as a, colorableShadows as b, colorResolver as c, resolveBreakpoints as d, directionSize as e, hex2rgba as f, parseCssColor as g, hasParseableColor as h, getComponents as i, parseColor as p, resolveVerticalBreakpoints as r };
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-f7b2c653.js';
1
+ import { T as Theme } from './types-0f7ef446.js';
2
2
 
3
3
  declare const colors: Theme['colors'];
4
4
 
package/dist/colors.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { c as colors } from './colors-ce2fecb8.js';
2
- import './types-f7b2c653.js';
1
+ export { c as colors } from './colors-5590b862.js';
2
+ import './types-0f7ef446.js';
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './types-f7b2c653.js';
1
+ import { T as Theme } from './types-0f7ef446.js';
2
2
 
3
3
  declare const theme: Theme;
4
4
 
package/dist/index.cjs CHANGED
@@ -2,14 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ const core = require('@unocss/core');
5
6
  const _default = require('./chunks/default.cjs');
6
7
  const _default$1 = require('./chunks/default2.cjs');
7
8
  const _default$2 = require('./chunks/default3.cjs');
8
9
  const colors = require('./chunks/colors.cjs');
9
10
  const utilities = require('./chunks/utilities.cjs');
10
- require('@unocss/core');
11
+ require('./chunks/transform.cjs');
12
+ require('./chunks/index.cjs');
11
13
  require('./chunks/variants.cjs');
12
14
 
15
+ const preflights = [
16
+ {
17
+ layer: "preflights",
18
+ getCSS(ctx) {
19
+ if (ctx.theme.preflightBase)
20
+ return `*,::before,::after{${core.entriesToCss(Object.entries(ctx.theme.preflightBase))}}`;
21
+ }
22
+ }
23
+ ];
24
+
13
25
  const presetMini = (options = {}) => {
14
26
  options.dark = options.dark ?? "class";
15
27
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -19,7 +31,8 @@ const presetMini = (options = {}) => {
19
31
  rules: _default$1.rules,
20
32
  variants: _default$2.variants(options),
21
33
  options,
22
- postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
34
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
35
+ preflights
23
36
  };
24
37
  };
25
38
  function VarPrefixPostprocessor(prefix) {
@@ -36,4 +49,5 @@ exports.theme = _default.theme;
36
49
  exports.colors = colors.colors;
37
50
  exports.parseColor = utilities.parseColor;
38
51
  exports["default"] = presetMini;
52
+ exports.preflights = preflights;
39
53
  exports.presetMini = presetMini;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
- import { PresetOptions, Preset } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
3
- export { T as Theme, a as ThemeAnimation } from './types-f7b2c653.js';
4
- export { t as theme } from './default-e6d1b2e8.js';
5
- export { c as colors } from './colors-ce2fecb8.js';
6
- export { p as parseColor } from './utilities-e7a7f845.js';
1
+ import { Preflight, PresetOptions, Preset } from '@unocss/core';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
+ export { T as Theme, a as ThemeAnimation } from './types-0f7ef446.js';
4
+ export { t as theme } from './default-ee82f36d.js';
5
+ export { c as colors } from './colors-5590b862.js';
6
+ export { p as parseColor } from './utilities-a77178bb.js';
7
+
8
+ declare const preflights: Preflight[];
7
9
 
8
10
  interface PresetMiniOptions extends PresetOptions {
9
11
  /**
@@ -21,4 +23,4 @@ interface PresetMiniOptions extends PresetOptions {
21
23
  }
22
24
  declare const presetMini: (options?: PresetMiniOptions) => Preset<Theme>;
23
25
 
24
- export { PresetMiniOptions, presetMini as default, presetMini };
26
+ export { PresetMiniOptions, presetMini as default, preflights, presetMini };
package/dist/index.mjs CHANGED
@@ -1,12 +1,24 @@
1
+ import { entriesToCss } from '@unocss/core';
1
2
  import { t as theme } from './chunks/default.mjs';
2
3
  export { t as theme } from './chunks/default.mjs';
3
4
  import { r as rules } from './chunks/default2.mjs';
4
5
  import { v as variants } from './chunks/default3.mjs';
5
6
  export { c as colors } from './chunks/colors.mjs';
6
7
  export { p as parseColor } from './chunks/utilities.mjs';
7
- import '@unocss/core';
8
+ import './chunks/transform.mjs';
9
+ import './chunks/index.mjs';
8
10
  import './chunks/variants.mjs';
9
11
 
12
+ const preflights = [
13
+ {
14
+ layer: "preflights",
15
+ getCSS(ctx) {
16
+ if (ctx.theme.preflightBase)
17
+ return `*,::before,::after{${entriesToCss(Object.entries(ctx.theme.preflightBase))}}`;
18
+ }
19
+ }
20
+ ];
21
+
10
22
  const presetMini = (options = {}) => {
11
23
  options.dark = options.dark ?? "class";
12
24
  options.attributifyPseudo = options.attributifyPseudo ?? false;
@@ -16,7 +28,8 @@ const presetMini = (options = {}) => {
16
28
  rules,
17
29
  variants: variants(options),
18
30
  options,
19
- postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0
31
+ postprocess: options.variablePrefix && options.variablePrefix !== "un-" ? VarPrefixPostprocessor(options.variablePrefix) : void 0,
32
+ preflights
20
33
  };
21
34
  };
22
35
  function VarPrefixPostprocessor(prefix) {
@@ -29,4 +42,4 @@ function VarPrefixPostprocessor(prefix) {
29
42
  };
30
43
  }
31
44
 
32
- export { presetMini as default, presetMini };
45
+ export { presetMini as default, preflights, presetMini };
package/dist/rules.cjs CHANGED
@@ -3,8 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const _default = require('./chunks/default2.cjs');
6
- require('./chunks/utilities.cjs');
6
+ const transform = require('./chunks/transform.cjs');
7
+ require('./chunks/index.cjs');
7
8
  require('@unocss/core');
9
+ require('./chunks/utilities.cjs');
8
10
 
9
11
 
10
12
 
@@ -55,7 +57,6 @@ exports.textOverflows = _default.textOverflows;
55
57
  exports.textShadows = _default.textShadows;
56
58
  exports.textStrokes = _default.textStrokes;
57
59
  exports.textTransforms = _default.textTransforms;
58
- exports.transforms = _default.transforms;
59
60
  exports.transitions = _default.transitions;
60
61
  exports.userSelects = _default.userSelects;
61
62
  exports.varEmpty = _default.varEmpty;
@@ -63,3 +64,5 @@ exports.verticalAligns = _default.verticalAligns;
63
64
  exports.whitespaces = _default.whitespaces;
64
65
  exports.willChange = _default.willChange;
65
66
  exports.zIndexes = _default.zIndexes;
67
+ exports.transformBase = transform.transformBase;
68
+ exports.transforms = transform.transforms;
package/dist/rules.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Rule } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
3
 
4
4
  declare const verticalAligns: Rule[];
5
5
  declare const textAligns: Rule[];
@@ -74,6 +74,21 @@ declare const fontSmoothings: Rule[];
74
74
 
75
75
  declare const svgUtilities: Rule<Theme>[];
76
76
 
77
+ declare const transformBase: {
78
+ '--un-rotate': number;
79
+ '--un-rotate-x': number;
80
+ '--un-rotate-y': number;
81
+ '--un-rotate-z': number;
82
+ '--un-scale-x': number;
83
+ '--un-scale-y': number;
84
+ '--un-scale-z': number;
85
+ '--un-skew-x': number;
86
+ '--un-skew-y': number;
87
+ '--un-translate-x': number;
88
+ '--un-translate-y': number;
89
+ '--un-translate-z': number;
90
+ '--un-transform': string;
91
+ };
77
92
  declare const transforms: Rule[];
78
93
 
79
94
  declare const transitions: Rule<Theme>[];
@@ -89,4 +104,4 @@ declare const cssProperty: Rule[];
89
104
 
90
105
  declare const textDecorations: Rule<Theme>[];
91
106
 
92
- export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
107
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borders, boxShadows, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
package/dist/rules.mjs CHANGED
@@ -1,3 +1,5 @@
1
- export { l as alignments, a as appearance, G as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, N as breaks, M as contents, $ as cssProperty, _ as cssVariables, H as cursors, F as displays, f as flex, q as floats, R as fontSmoothings, Q as fontStyles, V as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, I as pointerEvents, p as positions, u as questionMark, J as resizes, x as rings, r as rules, A as sizes, S as svgUtilities, W as tabSizes, t as textAligns, d as textColors, a0 as textDecorations, X as textIndents, O as textOverflows, Z as textShadows, Y as textStrokes, P as textTransforms, T as transforms, U as transitions, K as userSelects, E as varEmpty, v as verticalAligns, L as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
2
- import './chunks/utilities.mjs';
1
+ export { l as alignments, a as appearance, G as appearances, B as aspectRatio, e as bgColors, b as borders, y as boxShadows, s as boxSizing, N as breaks, M as contents, _ as cssProperty, Z as cssVariables, H as cursors, F as displays, f as flex, q as floats, R as fontSmoothings, Q as fontStyles, U as fonts, g as gaps, h as grids, n as insets, j as justifies, D as margins, c as opacity, k as orders, o as outline, i as overflows, C as paddings, m as placements, I as pointerEvents, p as positions, u as questionMark, J as resizes, x as rings, r as rules, A as sizes, S as svgUtilities, V as tabSizes, t as textAligns, d as textColors, $ as textDecorations, W as textIndents, O as textOverflows, Y as textShadows, X as textStrokes, P as textTransforms, T as transitions, K as userSelects, E as varEmpty, v as verticalAligns, L as whitespaces, w as willChange, z as zIndexes } from './chunks/default2.mjs';
2
+ export { t as transformBase, a as transforms } from './chunks/transform.mjs';
3
+ import './chunks/index.mjs';
3
4
  import '@unocss/core';
5
+ import './chunks/utilities.mjs';
package/dist/theme.cjs CHANGED
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const colors = require('./chunks/colors.cjs');
6
6
  const _default = require('./chunks/default.cjs');
7
+ require('./chunks/transform.cjs');
8
+ require('./chunks/index.cjs');
9
+ require('@unocss/core');
7
10
 
8
11
 
9
12
 
@@ -24,6 +27,7 @@ exports.lineHeight = _default.lineHeight;
24
27
  exports.lineWidth = _default.lineWidth;
25
28
  exports.maxHeight = _default.maxHeight;
26
29
  exports.maxWidth = _default.maxWidth;
30
+ exports.preflightBase = _default.preflightBase;
27
31
  exports.ringWidth = _default.ringWidth;
28
32
  exports.spacing = _default.spacing;
29
33
  exports.textIndent = _default.textIndent;
package/dist/theme.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { c as colors } from './colors-ce2fecb8.js';
2
- export { t as theme } from './default-e6d1b2e8.js';
3
- import { T as Theme } from './types-f7b2c653.js';
4
- export { T as Theme, a as ThemeAnimation } from './types-f7b2c653.js';
1
+ export { c as colors } from './colors-5590b862.js';
2
+ export { t as theme } from './default-ee82f36d.js';
3
+ import { T as Theme } from './types-0f7ef446.js';
4
+ export { T as Theme, a as ThemeAnimation } from './types-0f7ef446.js';
5
5
 
6
6
  declare const blur: {
7
7
  DEFAULT: string;
@@ -194,4 +194,20 @@ declare const maxHeight: {
194
194
  none: string;
195
195
  };
196
196
 
197
- export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
197
+ declare const preflightBase: {
198
+ '--un-rotate': number;
199
+ '--un-rotate-x': number;
200
+ '--un-rotate-y': number;
201
+ '--un-rotate-z': number;
202
+ '--un-scale-x': number;
203
+ '--un-scale-y': number;
204
+ '--un-scale-z': number;
205
+ '--un-skew-x': number;
206
+ '--un-skew-y': number;
207
+ '--un-translate-x': number;
208
+ '--un-translate-y': number;
209
+ '--un-translate-z': number;
210
+ '--un-transform': string;
211
+ };
212
+
213
+ export { baseSize, blur, borderRadius, boxShadow, breakpoints, dropShadow, duration, easing, fontFamily, fontSize, height, letterSpacing, lineHeight, lineWidth, maxHeight, maxWidth, preflightBase, ringWidth, spacing, textIndent, textShadow, textStrokeWidth, verticalBreakpoints, width, wordSpacing };
package/dist/theme.mjs CHANGED
@@ -1,2 +1,5 @@
1
1
  export { c as colors } from './chunks/colors.mjs';
2
- export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './chunks/default.mjs';
2
+ export { p as baseSize, b as blur, m as borderRadius, n as boxShadow, i as breakpoints, d as dropShadow, k as duration, o as easing, f as fontFamily, a as fontSize, x as height, h as letterSpacing, l as lineHeight, j as lineWidth, y as maxHeight, u as maxWidth, z as preflightBase, r as ringWidth, s as spacing, c as textIndent, g as textShadow, e as textStrokeWidth, t as theme, v as verticalBreakpoints, q as width, w as wordSpacing } from './chunks/default.mjs';
3
+ import './chunks/transform.mjs';
4
+ import './chunks/index.mjs';
5
+ import '@unocss/core';
@@ -45,6 +45,8 @@ interface Theme {
45
45
  gridRow?: Record<string, string>;
46
46
  gridTemplateColumn?: Record<string, string>;
47
47
  gridTemplateRow?: Record<string, string>;
48
+ /** Used to generate CSS variables placeholder in preflight */
49
+ preflightBase?: Record<string, string | number>;
48
50
  }
49
51
 
50
52
  export { Theme as T, ThemeAnimation as a };
@@ -1,5 +1,5 @@
1
1
  import { RuleContext, CSSEntries, ParsedColorValue, CSSObject, VariantContext } from '@unocss/core';
2
- import { T as Theme } from './types-f7b2c653.js';
2
+ import { T as Theme } from './types-0f7ef446.js';
3
3
 
4
4
  declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
5
5
  /**
package/dist/utils.cjs CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const utilities = require('./chunks/utilities.cjs');
6
+ const index = require('./chunks/index.cjs');
6
7
  const variants = require('./chunks/variants.cjs');
7
8
  require('@unocss/core');
8
9
 
@@ -12,21 +13,22 @@ exports.CONTROL_MINI_NO_NEGATIVE = utilities.CONTROL_MINI_NO_NEGATIVE;
12
13
  exports.colorResolver = utilities.colorResolver;
13
14
  exports.colorToString = utilities.colorToString;
14
15
  exports.colorableShadows = utilities.colorableShadows;
15
- exports.cornerMap = utilities.cornerMap;
16
- exports.directionMap = utilities.directionMap;
17
16
  exports.directionSize = utilities.directionSize;
18
17
  exports.getComponents = utilities.getComponents;
19
- exports.h = utilities.h;
20
- exports.handler = utilities.handler;
21
18
  exports.hasParseableColor = utilities.hasParseableColor;
22
19
  exports.hex2rgba = utilities.hex2rgba;
23
- exports.insetMap = utilities.insetMap;
24
20
  exports.parseColor = utilities.parseColor;
25
21
  exports.parseCssColor = utilities.parseCssColor;
26
- exports.positionMap = utilities.positionMap;
27
22
  exports.resolveBreakpoints = utilities.resolveBreakpoints;
28
23
  exports.resolveVerticalBreakpoints = utilities.resolveVerticalBreakpoints;
29
- exports.valueHandlers = utilities.valueHandlers;
30
- exports.xyzMap = utilities.xyzMap;
24
+ exports.cornerMap = index.cornerMap;
25
+ exports.directionMap = index.directionMap;
26
+ exports.globalKeywords = index.globalKeywords;
27
+ exports.h = index.h;
28
+ exports.handler = index.handler;
29
+ exports.insetMap = index.insetMap;
30
+ exports.positionMap = index.positionMap;
31
+ exports.valueHandlers = index.valueHandlers;
32
+ exports.xyzMap = index.xyzMap;
31
33
  exports.variantMatcher = variants.variantMatcher;
32
34
  exports.variantParentMatcher = variants.variantParentMatcher;