@unocss/preset-wind4 66.3.2 → 66.3.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
@@ -3,10 +3,10 @@ import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants
3
3
  import { n as trackedProperties, k as themeTracking, M as compressCSS, z as getThemeByKey, m as detectThemeValue, t as trackedTheme, g as globalKeywords, P as PRESET_NAME } from './shared/preset-wind4.B6AdPBSv.mjs';
4
4
  import { alphaPlaceholdersRE } from '@unocss/rule-utils';
5
5
  import { postprocessors } from './postprocess.mjs';
6
- import { k as variants } from './shared/preset-wind4.CSYWJ8rI.mjs';
6
+ import { k as variants } from './shared/preset-wind4.BuC1lQGJ.mjs';
7
7
  import { theme as theme$1 } from './theme.mjs';
8
8
  import { s as shortcuts } from './shared/preset-wind4.9XNkkElt.mjs';
9
- import { r as rules } from './shared/preset-wind4.CfYOwu2f.mjs';
9
+ import { r as rules } from './shared/preset-wind4.9kYTrHxt.mjs';
10
10
  import './colors.mjs';
11
11
  import './shared/preset-wind4.B7G_ZuoA.mjs';
12
12
 
package/dist/rules.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as accents, an as accessibility, I as alignments, a as animations, c as appearance, $ as appearances, V as aspectRatio, ak as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, T as boxShadows, O as boxSizing, a8 as breaks, e as carets, n as colorScheme, p as columns, a1 as contains, a6 as contentVisibility, a7 as contents, aD as cssProperty, aC as cssVariables, a0 as cursors, _ as displays, u as divides, am as dynamicViewportHeight, ao as fieldSizing, x as filters, y as flex, K as flexGridJustifiesAlignments, M as floats, ad as fontSmoothings, ac as fontStyles, aA as fontVariantNumeric, av as fonts, z as gaps, A as grids, j as handlerBorderStyle, ae as hyphens, i as imageRenderings, L as insets, ai as isolations, G as justifies, C as lineClamps, l as listStyle, X as margins, D as masks, al as mixBlendModes, Z as notLastChildSelector, aj as objectPositions, k as opacity, H as orders, o as outline, B as overflows, f as overscrolls, W as paddings, E as placeholders, J as placements, a2 as pointerEvents, F as positions, P as questionMark, a3 as resizes, Q as rings, r as rules, ah as screenReadersAccess, s as scrollBehaviors, R as scrolls, S as shadowProperties, U as sizes, Y as spaces, aB as splitShorthand, ap as svgUtilities, aw as tabSizes, aq as tables, t as textAligns, q as textDecorations, ax as textIndents, aa as textOverflows, az as textShadows, ay as textStrokes, ab as textTransforms, a9 as textWraps, ar as touchActions, as as transformBase, at as transforms, au as transitions, a4 as userSelects, v as verticalAligns, aE as viewTransition, a5 as whitespaces, w as willChange, af as writingModes, ag as writingOrientations, N as zIndexes } from './shared/preset-wind4.CfYOwu2f.mjs';
1
+ export { d as accents, an as accessibility, I as alignments, a as animations, c as appearance, $ as appearances, V as aspectRatio, ak as backgroundBlendModes, b as backgroundStyles, m as bgColors, g as borderStyles, h as borders, T as boxShadows, O as boxSizing, a8 as breaks, e as carets, n as colorScheme, p as columns, a1 as contains, a6 as contentVisibility, a7 as contents, aD as cssProperty, aC as cssVariables, a0 as cursors, _ as displays, u as divides, am as dynamicViewportHeight, ao as fieldSizing, x as filters, y as flex, K as flexGridJustifiesAlignments, M as floats, ad as fontSmoothings, ac as fontStyles, aA as fontVariantNumeric, av as fonts, z as gaps, A as grids, j as handlerBorderStyle, ae as hyphens, i as imageRenderings, L as insets, ai as isolations, G as justifies, C as lineClamps, l as listStyle, X as margins, D as masks, al as mixBlendModes, Z as notLastChildSelector, aj as objectPositions, k as opacity, H as orders, o as outline, B as overflows, f as overscrolls, W as paddings, E as placeholders, J as placements, a2 as pointerEvents, F as positions, P as questionMark, a3 as resizes, Q as rings, r as rules, ah as screenReadersAccess, s as scrollBehaviors, R as scrolls, S as shadowProperties, U as sizes, Y as spaces, aB as splitShorthand, ap as svgUtilities, aw as tabSizes, aq as tables, t as textAligns, q as textDecorations, ax as textIndents, aa as textOverflows, az as textShadows, ay as textStrokes, ab as textTransforms, a9 as textWraps, ar as touchActions, as as transformBase, at as transforms, au as transitions, a4 as userSelects, v as verticalAligns, aE as viewTransition, a5 as whitespaces, w as willChange, af as writingModes, ag as writingOrientations, N as zIndexes } from './shared/preset-wind4.9kYTrHxt.mjs';
2
2
  export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.B7G_ZuoA.mjs';
3
3
  import './shared/preset-wind4.B6AdPBSv.mjs';
4
4
  import '@unocss/core';
@@ -238,6 +238,7 @@ const backgroundStyles = [
238
238
  ["bg-auto", { "background-size": "auto" }],
239
239
  ["bg-cover", { "background-size": "cover" }],
240
240
  ["bg-contain", { "background-size": "contain" }],
241
+ [/^bg-size-(.+)$/, ([, v]) => ({ "background-size": h.bracket.cssvar(v) })],
241
242
  // attachments
242
243
  ["bg-fixed", { "background-attachment": "fixed" }],
243
244
  ["bg-local", { "background-attachment": "local" }],
@@ -1702,7 +1703,10 @@ const breaks = [
1702
1703
  ["break-words", { "overflow-wrap": "break-word" }],
1703
1704
  ["break-all", { "word-break": "break-all" }],
1704
1705
  ["break-keep", { "word-break": "keep-all" }],
1705
- ["break-anywhere", { "overflow-wrap": "anywhere" }]
1706
+ ["break-anywhere", { "overflow-wrap": "anywhere" }],
1707
+ ["wrap-break-word", { "overflow-wrap": "break-word" }],
1708
+ ["wrap-anywhere", { "overflow-wrap": "anywhere" }],
1709
+ ["wrap-normal", { "overflow-wrap": "normal" }]
1706
1710
  ];
1707
1711
  const textWraps = [
1708
1712
  ["text-wrap", { "text-wrap": "wrap" }],
@@ -319,6 +319,11 @@ function variantImportant() {
319
319
  };
320
320
  }
321
321
 
322
+ const variantInert = variantMatcher("inert", (input) => ({
323
+ parent: `${input.parent ? `${input.parent} $$ ` : ""}${input.selector}`,
324
+ selector: "&:is([inert],[inert] *)"
325
+ }));
326
+
322
327
  const variantNoscript = variantParentMatcher("noscript", "@media (scripting: none)");
323
328
  const variantScripting = {
324
329
  name: "scripting",
@@ -707,6 +712,7 @@ function variants(options) {
707
712
  ...variantLanguageDirections,
708
713
  variantScope,
709
714
  ...variantChildren,
715
+ variantInert,
710
716
  variantContainerQuery,
711
717
  variantVariables,
712
718
  ...variantTaggedDataAttributes,
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/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { F as placeholderModifier, v as variantAria, b as variantBreakpoints, c as variantChildren, g as variantColorsMediaOrClass, h as variantColorsScheme, d as variantCombinators, f as variantContainerQuery, r as variantContrasts, x as variantCssLayer, q as variantCustomMedia, i as variantDataAttribute, u as variantForcedColors, D as variantImplicitGroup, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, E as variantNegative, n as variantNoscript, t as variantOrientations, J as variantPartClasses, p as variantPrint, H as variantPseudoClassFunctions, G as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, K as variantStartingStyle, C as variantStickyHover, L as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, I as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.CSYWJ8rI.mjs';
1
+ export { F as placeholderModifier, v as variantAria, b as variantBreakpoints, c as variantChildren, g as variantColorsMediaOrClass, h as variantColorsScheme, d as variantCombinators, f as variantContainerQuery, r as variantContrasts, x as variantCssLayer, q as variantCustomMedia, i as variantDataAttribute, u as variantForcedColors, D as variantImplicitGroup, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, E as variantNegative, n as variantNoscript, t as variantOrientations, J as variantPartClasses, p as variantPrint, H as variantPseudoClassFunctions, G as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, K as variantStartingStyle, C as variantStickyHover, L as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, I as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.BuC1lQGJ.mjs';
2
2
  import '@unocss/rule-utils';
3
3
  import './shared/preset-wind4.B6AdPBSv.mjs';
4
4
  import '@unocss/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/preset-wind4",
3
3
  "type": "module",
4
- "version": "66.3.2",
4
+ "version": "66.3.3",
5
5
  "description": "Tailwind 4 compact preset for UnoCSS",
6
6
  "authors": [
7
7
  {
@@ -18,7 +18,7 @@
18
18
  "homepage": "https://unocss.dev",
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "https://github.com/unocss/unocss",
21
+ "url": "git+https://github.com/unocss/unocss.git",
22
22
  "directory": "packages-presets/preset-wind4"
23
23
  },
24
24
  "bugs": {
@@ -74,9 +74,9 @@
74
74
  "dist"
75
75
  ],
76
76
  "dependencies": {
77
- "@unocss/core": "66.3.2",
78
- "@unocss/extractor-arbitrary-variants": "66.3.2",
79
- "@unocss/rule-utils": "66.3.2"
77
+ "@unocss/core": "66.3.3",
78
+ "@unocss/rule-utils": "66.3.3",
79
+ "@unocss/extractor-arbitrary-variants": "66.3.3"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "unbuild",