@unocss/preset-wind4 66.2.2 → 66.2.3

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.mjs CHANGED
@@ -6,7 +6,7 @@ import { postprocessors } from './postprocess.mjs';
6
6
  import { k as variants } from './shared/preset-wind4.CgvxUQFi.mjs';
7
7
  import { theme as theme$1 } from './theme.mjs';
8
8
  import { s as shortcuts } from './shared/preset-wind4.CYAfjDEV.mjs';
9
- import { r as rules } from './shared/preset-wind4.og1tZILK.mjs';
9
+ import { r as rules } from './shared/preset-wind4.BgkAsChl.mjs';
10
10
  import './colors.mjs';
11
11
  import './shared/preset-wind4.dDC8WtZ5.mjs';
12
12
 
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as accents, am as accessibility, H as alignments, a as animations, c as appearance, _ as appearances, U as aspectRatio, aj as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, S as boxShadows, N as boxSizing, a7 as breaks, e as carets, n as colorScheme, p as columns, a0 as contains, a5 as contentVisibility, a6 as contents, aC as cssProperty, aB as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, an as fieldSizing, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, az as fontVariantNumeric, au as fonts, z as gaps, A as grids, j as handlerBorderStyle, ad as hyphens, i as imageRenderings, K as insets, ah as isolations, F as justifies, C as lineClamps, l as listStyle, W as margins, ak as mixBlendModes, Y as notLastChildSelector, ai as objectPositions, k as opacity, G as orders, o as outline, B as overflows, f as overscrolls, V as paddings, D as placeholders, I as placements, a1 as pointerEvents, E as positions, O as questionMark, a2 as resizes, P as rings, r as rules, ag as screenReadersAccess, s as scrollBehaviors, Q as scrolls, R as shadowProperties, T as sizes, X as spaces, aA as splitShorthand, ao as svgUtilities, av as tabSizes, ap as tables, t as textAligns, q as textDecorations, aw as textIndents, a9 as textOverflows, ay as textShadows, ax as textStrokes, aa as textTransforms, a8 as textWraps, aq as touchActions, ar as transformBase, as as transforms, at as transitions, a3 as userSelects, v as verticalAligns, aD as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.og1tZILK.mjs';
1
+ export { d as accents, am as accessibility, H as alignments, a as animations, c as appearance, _ as appearances, U as aspectRatio, aj as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, S as boxShadows, N as boxSizing, a7 as breaks, e as carets, n as colorScheme, p as columns, a0 as contains, a5 as contentVisibility, a6 as contents, aC as cssProperty, aB as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, an as fieldSizing, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, az as fontVariantNumeric, au as fonts, z as gaps, A as grids, j as handlerBorderStyle, ad as hyphens, i as imageRenderings, K as insets, ah as isolations, F as justifies, C as lineClamps, l as listStyle, W as margins, ak as mixBlendModes, Y as notLastChildSelector, ai as objectPositions, k as opacity, G as orders, o as outline, B as overflows, f as overscrolls, V as paddings, D as placeholders, I as placements, a1 as pointerEvents, E as positions, O as questionMark, a2 as resizes, P as rings, r as rules, ag as screenReadersAccess, s as scrollBehaviors, Q as scrolls, R as shadowProperties, T as sizes, X as spaces, aA as splitShorthand, ao as svgUtilities, av as tabSizes, ap as tables, t as textAligns, q as textDecorations, aw as textIndents, a9 as textOverflows, ay as textShadows, ax as textStrokes, aa as textTransforms, a8 as textWraps, aq as touchActions, ar as transformBase, as as transforms, at as transitions, a3 as userSelects, v as verticalAligns, aD as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.BgkAsChl.mjs';
2
2
  export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.dDC8WtZ5.mjs';
3
3
  import './shared/preset-wind4.BwwuP5Yw.mjs';
4
4
  import '@unocss/core';
@@ -1,5 +1,5 @@
1
1
  import { g as globalKeywords, b as h, G as makeGlobalStaticRules, p as positionMap, w as parseColor, S as SpecialColorKey, l as generateThemeVariable, H as defineProperty, k as themeTracking, m as detectThemeValue, B as colorResolver, I as isCSSMathFn, d as directionMap, E as hasParseableColor, c as cornerMap, A as colorCSSGenerator, J as isSize, s as directionSize, q as numberResolver, D as colorableShadows, i as insetMap, L as hyphenate, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, N as splitComma, e as xyzArray, O as bracketTypeRe } from './preset-wind4.BwwuP5Yw.mjs';
2
- import { notNull } from '@unocss/core';
2
+ import { symbols, notNull } from '@unocss/core';
3
3
  import { a as container, c as containerParent } from './preset-wind4.dDC8WtZ5.mjs';
4
4
  import { getStringComponent } from '@unocss/rule-utils';
5
5
 
@@ -279,21 +279,21 @@ const outline = [
279
279
  [/^outline-offset-(.+)$/, ([, d]) => ({ "outline-offset": h.bracket.cssvar.global.px(d) }), { autocomplete: "outline-(offset)-<num>" }],
280
280
  ["outline-offset-none", { "outline-offset": "0" }],
281
281
  // style
282
- [/^outline$/, function* () {
283
- yield {
282
+ ["outline", [
283
+ {
284
284
  "outline-style": "var(--un-outline-style)",
285
285
  "outline-width": "1px"
286
- };
287
- yield defineProperty("--un-outline-style", { initialValue: "solid" });
288
- }],
289
- [/^outline-hidden$/, function* (_, { symbols }) {
290
- yield { "outline-style": "none" };
291
- yield {
286
+ },
287
+ defineProperty("--un-outline-style", { initialValue: "solid" })
288
+ ]],
289
+ ["outline-hidden", [
290
+ { "outline-style": "none" },
291
+ {
292
292
  [symbols.parent]: `@media (forced-colors: active)`,
293
293
  "outline": `2px solid transparent`,
294
294
  "outline-offset": `2px`
295
- };
296
- }],
295
+ }
296
+ ]],
297
297
  ["outline-none", { "--un-outline-style": "none", "outline-style": "none" }],
298
298
  ...["auto", "dashed", "dotted", "double", "solid", "groove", "ridge", "inset", "outset", ...globalKeywords].map((v) => [`outline-${v}`, { "--un-outline-style": v, "outline-style": v }])
299
299
  ];
@@ -1299,19 +1299,20 @@ const rings = [
1299
1299
  ];
1300
1300
 
1301
1301
  const scrolls = [
1302
- // snap type
1303
- [/^snap-(x|y|both)$/, function* ([, d]) {
1304
- yield {
1305
- "scroll-snap-type": `${d} var(--un-scroll-snap-strictness)`
1306
- };
1307
- yield defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" });
1308
- }, { autocomplete: "snap-(x|y|both)" }],
1309
- [/^snap-(mandatory|proximity)$/, function* ([, d]) {
1310
- yield {
1311
- "--un-scroll-snap-strictness": d
1312
- };
1313
- yield defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" });
1314
- }, { autocomplete: "snap-(mandatory|proximity)" }],
1302
+ ...["x", "y", "both"].map((d) => [
1303
+ `snap-${d}`,
1304
+ [
1305
+ { "scroll-snap-type": `${d} var(--un-scroll-snap-strictness)` },
1306
+ defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" })
1307
+ ]
1308
+ ]),
1309
+ ...["mandatory", "proximity"].map((d) => [
1310
+ `snap-${d}`,
1311
+ [
1312
+ { "--un-scroll-snap-strictness": d },
1313
+ defineProperty("--un-scroll-snap-strictness", { initialValue: "proximity" })
1314
+ ]
1315
+ ]),
1315
1316
  ["snap-none", { "scroll-snap-type": "none" }],
1316
1317
  // snap align
1317
1318
  ["snap-start", { "scroll-snap-align": "start" }],
package/dist/utils.d.mts CHANGED
@@ -56,8 +56,8 @@ declare namespace handlers {
56
56
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfFamily as bracketOfFamily, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfNumber as bracketOfNumber, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
57
57
  }
58
58
 
59
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
59
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
61
61
 
62
62
  declare const directionMap: Record<string, string[]>;
63
63
  declare const insetMap: Record<string, string[]>;
package/dist/utils.d.ts CHANGED
@@ -56,8 +56,8 @@ declare namespace handlers {
56
56
  export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfFamily as bracketOfFamily, handlers_bracketOfLength as bracketOfLength, handlers_bracketOfNumber as bracketOfNumber, handlers_bracketOfPosition as bracketOfPosition, handlers_cssvar as cssvar, handlers_degree as degree, handlers_fraction as fraction, handlers_global as global, handlers_none as none, handlers_number as number, handlers_numberWithUnit as numberWithUnit, handlers_percent as percent, handlers_position as position, handlers_properties as properties, handlers_px as px, handlers_rem as rem, handlers_time as time };
57
57
  }
58
58
 
59
- declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
- declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "properties" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
59
+ declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
60
+ declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "properties" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "bracketOfFamily" | "bracketOfNumber" | "cssvar" | "time" | "degree">;
61
61
 
62
62
  declare const directionMap: Record<string, string[]>;
63
63
  declare const insetMap: Record<string, string[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind4",
3
3
  "type": "module",
4
- "version": "66.2.2",
4
+ "version": "66.2.3",
5
5
  "description": "Tailwind 4 compact preset for UnoCSS",
6
6
  "authors": [
7
7
  {
@@ -74,9 +74,9 @@
74
74
  "dist"
75
75
  ],
76
76
  "dependencies": {
77
- "@unocss/core": "66.2.2",
78
- "@unocss/extractor-arbitrary-variants": "66.2.2",
79
- "@unocss/rule-utils": "66.2.2"
77
+ "@unocss/core": "66.2.3",
78
+ "@unocss/extractor-arbitrary-variants": "66.2.3",
79
+ "@unocss/rule-utils": "66.2.3"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "unbuild",