@unocss/preset-mini 0.45.4 → 0.45.7

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.
@@ -298,6 +298,7 @@ const overflowValues = [
298
298
  "clip",
299
299
  "visible",
300
300
  "scroll",
301
+ "overlay",
301
302
  ...colors.globalKeywords
302
303
  ];
303
304
  const overflows = [
@@ -476,6 +477,13 @@ const whitespaces = [
476
477
  { autocomplete: "(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)" }
477
478
  ]
478
479
  ];
480
+ const contentVisibility = [
481
+ [/^intrinsic-size-(.+)$/, ([, d]) => ({ "contain-intrinsic-size": colors.handler.bracket.cssvar.global.fraction.rem(d) }), { autocomplete: "intrinsic-size-<num>" }],
482
+ ["content-visibility-visible", { "content-visibility": "visible" }],
483
+ ["content-visibility-hidden", { "content-visibility": "hidden" }],
484
+ ["content-visibility-auto", { "content-visibility": "auto" }],
485
+ ...colors.makeGlobalStaticRules("content-visibility")
486
+ ];
479
487
  const contents = [
480
488
  [/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
481
489
  [/^content-(\$.+)]$/, ([, v]) => ({ content: colors.handler.cssvar(v) })],
@@ -732,6 +740,7 @@ exports.boxShadows = boxShadows;
732
740
  exports.boxShadowsBase = boxShadowsBase;
733
741
  exports.boxSizing = boxSizing;
734
742
  exports.breaks = breaks;
743
+ exports.contentVisibility = contentVisibility;
735
744
  exports.contents = contents;
736
745
  exports.cursors = cursors;
737
746
  exports.displays = displays;
@@ -296,6 +296,7 @@ const overflowValues = [
296
296
  "clip",
297
297
  "visible",
298
298
  "scroll",
299
+ "overlay",
299
300
  ...globalKeywords
300
301
  ];
301
302
  const overflows = [
@@ -474,6 +475,13 @@ const whitespaces = [
474
475
  { autocomplete: "(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)" }
475
476
  ]
476
477
  ];
478
+ const contentVisibility = [
479
+ [/^intrinsic-size-(.+)$/, ([, d]) => ({ "contain-intrinsic-size": handler.bracket.cssvar.global.fraction.rem(d) }), { autocomplete: "intrinsic-size-<num>" }],
480
+ ["content-visibility-visible", { "content-visibility": "visible" }],
481
+ ["content-visibility-hidden", { "content-visibility": "hidden" }],
482
+ ["content-visibility-auto", { "content-visibility": "auto" }],
483
+ ...makeGlobalStaticRules("content-visibility")
484
+ ];
477
485
  const contents = [
478
486
  [/^content-\[(.+)\]$/, ([, v]) => ({ content: `"${v}"` })],
479
487
  [/^content-(\$.+)]$/, ([, v]) => ({ content: handler.cssvar(v) })],
@@ -721,4 +729,4 @@ const textDecorations = [
721
729
  ["decoration-none", { "text-decoration": "none" }]
722
730
  ];
723
731
 
724
- export { outline as A, appearance as B, orders as C, justifies as D, alignments as E, placements as F, insets as G, floats as H, zIndexes as I, boxSizing as J, transitions as K, transforms as L, willChange as M, transformBase as N, boxShadowsBase as O, ringBase as P, borderStyles as Q, handlerBorderStyle as R, varEmpty as S, textIndents as a, borders as b, contents as c, displays as d, textOverflows as e, fonts as f, textDecorations as g, textStrokes as h, textShadows as i, textTransforms as j, textAligns as k, fontStyles as l, fontSmoothings as m, boxShadows as n, cursors as o, positions as p, appearances as q, rings as r, pointerEvents as s, tabSizes as t, resizes as u, verticalAligns as v, userSelects as w, whitespaces as x, breaks as y, overflows as z };
732
+ export { overflows as A, outline as B, appearance as C, orders as D, justifies as E, alignments as F, placements as G, insets as H, floats as I, zIndexes as J, boxSizing as K, transitions as L, transforms as M, willChange as N, transformBase as O, boxShadowsBase as P, ringBase as Q, borderStyles as R, handlerBorderStyle as S, varEmpty as T, contents as a, borders as b, contentVisibility as c, displays as d, textIndents as e, fonts as f, textOverflows as g, textDecorations as h, textStrokes as i, textShadows as j, textTransforms as k, textAligns as l, fontStyles as m, fontSmoothings as n, boxShadows as o, positions as p, cursors as q, rings as r, appearances as s, tabSizes as t, pointerEvents as u, resizes as v, verticalAligns as w, userSelects as x, whitespaces as y, breaks as z };
@@ -243,6 +243,7 @@ const rules = [
243
243
  bgColors,
244
244
  svgUtilities,
245
245
  decoration.borders,
246
+ decoration.contentVisibility,
246
247
  decoration.contents,
247
248
  decoration.fonts,
248
249
  decoration.tabSizes,
@@ -1,4 +1,4 @@
1
- import { d as displays, b as borders, c as contents, f as fonts, t as tabSizes, a as textIndents, e as textOverflows, g as textDecorations, h as textStrokes, i as textShadows, j as textTransforms, k as textAligns, l as fontStyles, m as fontSmoothings, n as boxShadows, r as rings, p as positions, o as cursors, q as appearances, s as pointerEvents, u as resizes, v as verticalAligns, w as userSelects, x as whitespaces, y as breaks, z as overflows, A as outline, B as appearance, C as orders, D as justifies, E as alignments, F as placements, G as insets, H as floats, I as zIndexes, J as boxSizing, K as transitions, L as transforms, M as willChange } from './decoration.mjs';
1
+ import { d as displays, b as borders, c as contentVisibility, a as contents, f as fonts, t as tabSizes, e as textIndents, g as textOverflows, h as textDecorations, i as textStrokes, j as textShadows, k as textTransforms, l as textAligns, m as fontStyles, n as fontSmoothings, o as boxShadows, r as rings, p as positions, q as cursors, s as appearances, u as pointerEvents, v as resizes, w as verticalAligns, x as userSelects, y as whitespaces, z as breaks, A as overflows, B as outline, C as appearance, D as orders, E as justifies, F as alignments, G as placements, H as insets, I as floats, J as zIndexes, K as boxSizing, L as transitions, M as transforms, N as willChange } from './decoration.mjs';
2
2
  import { h as handler, c as colorResolver, n as numberWithUnitRE, r as resolveVerticalBreakpoints, l as resolveBreakpoints, o as directionSize } from './colors.mjs';
3
3
  import '@unocss/core';
4
4
 
@@ -241,6 +241,7 @@ const rules = [
241
241
  bgColors,
242
242
  svgUtilities,
243
243
  borders,
244
+ contentVisibility,
244
245
  contents,
245
246
  fonts,
246
247
  tabSizes,
@@ -1,5 +1,5 @@
1
1
  import { c as colors } from './colors2.mjs';
2
- import { N as transformBase, O as boxShadowsBase, P as ringBase } from './decoration.mjs';
2
+ import { O as transformBase, P as boxShadowsBase, Q as ringBase } from './decoration.mjs';
3
3
  import './colors.mjs';
4
4
  import '@unocss/core';
5
5
 
package/dist/rules.cjs CHANGED
@@ -18,6 +18,7 @@ exports.boxShadows = decoration.boxShadows;
18
18
  exports.boxShadowsBase = decoration.boxShadowsBase;
19
19
  exports.boxSizing = decoration.boxSizing;
20
20
  exports.breaks = decoration.breaks;
21
+ exports.contentVisibility = decoration.contentVisibility;
21
22
  exports.contents = decoration.contents;
22
23
  exports.cursors = decoration.cursors;
23
24
  exports.displays = decoration.displays;
package/dist/rules.d.ts CHANGED
@@ -81,6 +81,7 @@ declare const pointerEvents: Rule[];
81
81
  declare const resizes: Rule[];
82
82
  declare const userSelects: Rule[];
83
83
  declare const whitespaces: Rule[];
84
+ declare const contentVisibility: Rule[];
84
85
  declare const contents: Rule[];
85
86
  declare const breaks: Rule[];
86
87
  declare const textOverflows: Rule[];
@@ -119,4 +120,4 @@ declare const cssProperty: Rule[];
119
120
 
120
121
  declare const textDecorations: Rule<Theme>[];
121
122
 
122
- export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, rings, rules, sizes, svgUtilities, tabSizes, textAligns, textColors, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, transformBase, transforms, transitions, userSelects, varEmpty, verticalAligns, whitespaces, willChange, zIndexes };
123
+ export { alignments, appearance, appearances, aspectRatio, bgColors, borderStyles, borders, boxShadows, boxShadowsBase, boxSizing, breaks, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, flex, floats, fontSmoothings, fontStyles, fonts, gaps, grids, handlerBorderStyle, insets, justifies, margins, opacity, orders, outline, overflows, paddings, placements, pointerEvents, positions, questionMark, resizes, ringBase, 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,4 +1,4 @@
1
- export { E as alignments, B as appearance, q as appearances, Q as borderStyles, b as borders, n as boxShadows, O as boxShadowsBase, J as boxSizing, y as breaks, c as contents, o as cursors, d as displays, H as floats, m as fontSmoothings, l as fontStyles, f as fonts, R as handlerBorderStyle, G as insets, D as justifies, C as orders, A as outline, z as overflows, F as placements, s as pointerEvents, p as positions, u as resizes, P as ringBase, r as rings, t as tabSizes, k as textAligns, g as textDecorations, a as textIndents, e as textOverflows, i as textShadows, h as textStrokes, j as textTransforms, N as transformBase, L as transforms, K as transitions, w as userSelects, S as varEmpty, v as verticalAligns, x as whitespaces, M as willChange, I as zIndexes } from './chunks/decoration.mjs';
1
+ export { F as alignments, C as appearance, s as appearances, R as borderStyles, b as borders, o as boxShadows, P as boxShadowsBase, K as boxSizing, z as breaks, c as contentVisibility, a as contents, q as cursors, d as displays, I as floats, n as fontSmoothings, m as fontStyles, f as fonts, S as handlerBorderStyle, H as insets, E as justifies, D as orders, B as outline, A as overflows, G as placements, u as pointerEvents, p as positions, v as resizes, Q as ringBase, r as rings, t as tabSizes, l as textAligns, h as textDecorations, e as textIndents, g as textOverflows, j as textShadows, i as textStrokes, k as textTransforms, O as transformBase, M as transforms, L as transitions, x as userSelects, T as varEmpty, w as verticalAligns, y as whitespaces, N as willChange, J as zIndexes } from './chunks/decoration.mjs';
2
2
  export { c as aspectRatio, b as bgColors, h as cssProperty, e as cssVariables, f as flex, g as gaps, a as grids, m as margins, o as opacity, p as paddings, q as questionMark, r as rules, s as sizes, d as svgUtilities, t as textColors } from './chunks/default.mjs';
3
3
  import './chunks/colors.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-mini",
3
- "version": "0.45.4",
3
+ "version": "0.45.7",
4
4
  "description": "The minimal preset for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -61,7 +61,7 @@
61
61
  "*.css"
62
62
  ],
63
63
  "dependencies": {
64
- "@unocss/core": "0.45.4"
64
+ "@unocss/core": "0.45.7"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "unbuild",