@unocss/preset-wind4 66.1.3 → 66.1.4

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
@@ -1,14 +1,14 @@
1
1
  import { toArray, definePreset } from '@unocss/core';
2
2
  import { extractorArbitraryVariants } from '@unocss/extractor-arbitrary-variants';
3
- import { k as themeTracking, K as compressCSS, t as trackedTheme, w as getThemeByKey, g as globalKeywords, P as PRESET_NAME } from './shared/preset-wind4.D7fOjUVe.mjs';
3
+ import { k as themeTracking, K as compressCSS, t as trackedTheme, w as getThemeByKey, g as globalKeywords, P as PRESET_NAME } from './shared/preset-wind4.DyLY6yb-.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.B-PQ1xVa.mjs';
6
+ import { k as variants } from './shared/preset-wind4.wYrEcFuT.mjs';
7
7
  import { theme as theme$1 } from './theme.mjs';
8
- import { s as shortcuts } from './shared/preset-wind4.CKtLkvUz.mjs';
9
- import { r as rules } from './shared/preset-wind4.BicXgfCi.mjs';
8
+ import { s as shortcuts } from './shared/preset-wind4.DBfj437j.mjs';
9
+ import { r as rules } from './shared/preset-wind4.xQf3nzcZ.mjs';
10
10
  import './colors.mjs';
11
- import './shared/preset-wind4.BAz4i9y9.mjs';
11
+ import './shared/preset-wind4.DpwQS2PT.mjs';
12
12
 
13
13
  const resetCSS = `
14
14
  /*
@@ -44,7 +44,7 @@ html,
44
44
  -webkit-text-size-adjust: 100%; /* 2 */
45
45
  tab-size: 4; /* 3 */
46
46
  font-family: var(
47
- --defaults-font-family,
47
+ --default-font-family,
48
48
  ui-sans-serif,
49
49
  system-ui,
50
50
  sans-serif,
@@ -53,8 +53,8 @@ html,
53
53
  'Segoe UI Symbol',
54
54
  'Noto Color Emoji'
55
55
  ); /* 4 */
56
- font-feature-settings: var(--defaults-font-featureSettings, normal); /* 5 */
57
- font-variation-settings: var(--defaults-font-variationSettings, normal); /* 6 */
56
+ font-feature-settings: var(--default-font-featureSettings, normal); /* 5 */
57
+ font-variation-settings: var(--default-font-variationSettings, normal); /* 6 */
58
58
  -webkit-tap-highlight-color: transparent; /* 7 */
59
59
  }
60
60
 
@@ -124,7 +124,7 @@ kbd,
124
124
  samp,
125
125
  pre {
126
126
  font-family: var(
127
- --defaults-monoFont-family,
127
+ --default-monoFont-family,
128
128
  ui-monospace,
129
129
  SFMono-Regular,
130
130
  Menlo,
@@ -134,8 +134,8 @@ pre {
134
134
  'Courier New',
135
135
  monospace
136
136
  ); /* 1 */
137
- font-feature-settings: var(--defaults-monoFont-featureSettings, normal); /* 2 */
138
- font-variation-settings: var(--defaults-monoFont-variationSettings, normal); /* 3 */
137
+ font-feature-settings: var(--default-monoFont-featureSettings, normal); /* 2 */
138
+ font-variation-settings: var(--default-monoFont-variationSettings, normal); /* 3 */
139
139
  font-size: 1em; /* 4 */
140
140
  }
141
141
 
package/dist/rules.mjs CHANGED
@@ -1,5 +1,5 @@
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.BicXgfCi.mjs';
2
- export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.BAz4i9y9.mjs';
3
- import './shared/preset-wind4.D7fOjUVe.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.xQf3nzcZ.mjs';
2
+ export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.DpwQS2PT.mjs';
3
+ import './shared/preset-wind4.DyLY6yb-.mjs';
4
4
  import '@unocss/core';
5
5
  import '@unocss/rule-utils';
@@ -1,4 +1,4 @@
1
- import { b as containerShortcuts } from './preset-wind4.BAz4i9y9.mjs';
1
+ import { b as containerShortcuts } from './preset-wind4.DpwQS2PT.mjs';
2
2
 
3
3
  const shortcuts = [
4
4
  ...containerShortcuts
@@ -1,5 +1,5 @@
1
1
  import { isString } from '@unocss/core';
2
- import { r as resolveBreakpoints } from './preset-wind4.D7fOjUVe.mjs';
2
+ import { r as resolveBreakpoints } from './preset-wind4.DyLY6yb-.mjs';
3
3
 
4
4
  const containerParent = [
5
5
  [/^@container(?:\/(\w+))?(?:-(normal))?$/, ([, l, v]) => {
@@ -5,7 +5,8 @@ const PRESET_NAME = "@unocss/preset-wind4";
5
5
  const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
6
6
  const SpecialColorKey = {
7
7
  transparent: "transparent",
8
- current: "currentColor"
8
+ current: "currentColor",
9
+ inherit: "inherit"
9
10
  };
10
11
 
11
12
  const directionMap = {
@@ -1,5 +1,5 @@
1
1
  import { variantGetParameter, calcMaxWidthBySize, variantMatcher, variantGetBracket, variantParentMatcher, getBracket, hasThemeFn, transformThemeFn, getStringComponent } from '@unocss/rule-utils';
2
- import { b as h, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, f as cssMathFnRE, j as cssVarFnRE, B as hasParseableColor } from './preset-wind4.D7fOjUVe.mjs';
2
+ import { b as h, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, f as cssMathFnRE, j as cssVarFnRE, B as hasParseableColor } from './preset-wind4.DyLY6yb-.mjs';
3
3
  import { toArray, escapeRegExp, escapeSelector } from '@unocss/core';
4
4
 
5
5
  const variantAria = {
@@ -889,6 +889,9 @@ const variantSupports = {
889
889
  if (supports === "")
890
890
  supports = ctx.theme.supports?.[match] ?? "";
891
891
  if (supports) {
892
+ if (!(supports.startsWith("(") && supports.endsWith(")"))) {
893
+ supports = `(${supports})`;
894
+ }
892
895
  return {
893
896
  matcher: rest,
894
897
  handle: (input, next) => next({
@@ -1,6 +1,6 @@
1
- import { g as globalKeywords, b as h, E as makeGlobalStaticRules, p as positionMap, q as parseColor, S as SpecialColorKey, l as generateThemeVariable, F as defineProperty, k as themeTracking, m as detectThemeValue, z as colorResolver, G as isCSSMathFn, d as directionMap, B as hasParseableColor, c as cornerMap, y as colorCSSGenerator, H as isSize, o as directionSize, n as numberResolver, A as colorableShadows, i as insetMap, J as hyphenate, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, L as splitComma, e as xyzArray, M as bracketTypeRe } from './preset-wind4.D7fOjUVe.mjs';
1
+ import { g as globalKeywords, b as h, E as makeGlobalStaticRules, p as positionMap, q as parseColor, S as SpecialColorKey, l as generateThemeVariable, F as defineProperty, k as themeTracking, m as detectThemeValue, z as colorResolver, G as isCSSMathFn, d as directionMap, B as hasParseableColor, c as cornerMap, y as colorCSSGenerator, H as isSize, o as directionSize, n as numberResolver, A as colorableShadows, i as insetMap, J as hyphenate, r as resolveBreakpoints, C as CONTROL_NO_NEGATIVE, x as xyzMap, L as splitComma, e as xyzArray, M as bracketTypeRe } from './preset-wind4.DyLY6yb-.mjs';
2
2
  import { notNull } from '@unocss/core';
3
- import { a as container, c as containerParent } from './preset-wind4.BAz4i9y9.mjs';
3
+ import { a as container, c as containerParent } from './preset-wind4.DpwQS2PT.mjs';
4
4
  import { getStringComponent } from '@unocss/rule-utils';
5
5
 
6
6
  const verticalAlignAlias = {
@@ -1,5 +1,5 @@
1
- export { s as shortcuts } from './shared/preset-wind4.CKtLkvUz.mjs';
2
- import './shared/preset-wind4.BAz4i9y9.mjs';
1
+ export { s as shortcuts } from './shared/preset-wind4.DBfj437j.mjs';
2
+ import './shared/preset-wind4.DpwQS2PT.mjs';
3
3
  import '@unocss/core';
4
- import './shared/preset-wind4.D7fOjUVe.mjs';
4
+ import './shared/preset-wind4.DyLY6yb-.mjs';
5
5
  import '@unocss/rule-utils';
package/dist/utils.d.mts CHANGED
@@ -8,6 +8,7 @@ declare const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
8
8
  declare const SpecialColorKey: {
9
9
  transparent: string;
10
10
  current: string;
11
+ inherit: string;
11
12
  };
12
13
 
13
14
  declare function numberWithUnit(str: string): string | undefined;
package/dist/utils.d.ts CHANGED
@@ -8,6 +8,7 @@ declare const CONTROL_NO_NEGATIVE = "$$mini-no-negative";
8
8
  declare const SpecialColorKey: {
9
9
  transparent: string;
10
10
  current: string;
11
+ inherit: string;
11
12
  };
12
13
 
13
14
  declare function numberWithUnit(str: string): string | undefined;
package/dist/utils.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as remRE } from './shared/preset-wind4.D7fOjUVe.mjs';
2
- export { C as CONTROL_NO_NEGATIVE, P as PRESET_NAME, S as SpecialColorKey, I as camelize, y as colorCSSGenerator, z as colorResolver, A as colorableShadows, K as compressCSS, c as cornerMap, f as cssMathFnRE, j as cssVarFnRE, F as defineProperty, m as detectThemeValue, d as directionMap, o as directionSize, l as generateThemeVariable, w as getThemeByKey, g as globalKeywords, b as h, h as handler, B as hasParseableColor, J as hyphenate, i as insetMap, G as isCSSMathFn, H as isSize, E as makeGlobalStaticRules, n as numberResolver, q as parseColor, u as parseThemeColor, p as positionMap, r as resolveBreakpoints, D as resolveVerticalBreakpoints, s as splitShorthand, k as themeTracking, t as trackedTheme, v as valueHandlers, e as xyzArray, x as xyzMap } from './shared/preset-wind4.D7fOjUVe.mjs';
1
+ import { a as remRE } from './shared/preset-wind4.DyLY6yb-.mjs';
2
+ export { C as CONTROL_NO_NEGATIVE, P as PRESET_NAME, S as SpecialColorKey, I as camelize, y as colorCSSGenerator, z as colorResolver, A as colorableShadows, K as compressCSS, c as cornerMap, f as cssMathFnRE, j as cssVarFnRE, F as defineProperty, m as detectThemeValue, d as directionMap, o as directionSize, l as generateThemeVariable, w as getThemeByKey, g as globalKeywords, b as h, h as handler, B as hasParseableColor, J as hyphenate, i as insetMap, G as isCSSMathFn, H as isSize, E as makeGlobalStaticRules, n as numberResolver, q as parseColor, u as parseThemeColor, p as positionMap, r as resolveBreakpoints, D as resolveVerticalBreakpoints, s as splitShorthand, k as themeTracking, t as trackedTheme, v as valueHandlers, e as xyzArray, x as xyzMap } from './shared/preset-wind4.DyLY6yb-.mjs';
3
3
  export * from '@unocss/rule-utils';
4
4
  import '@unocss/core';
5
5
 
package/dist/variants.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E 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, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, D as variantNegative, n as variantNoscript, t as variantOrientations, I as variantPartClasses, p as variantPrint, G as variantPseudoClassFunctions, F as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, J as variantStartingStyle, C as variantStickyHover, K as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, H as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.B-PQ1xVa.mjs';
1
+ export { E 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, m as variantImportant, y as variantInternalLayer, l as variantLanguageDirections, s as variantMotions, D as variantNegative, n as variantNoscript, t as variantOrientations, I as variantPartClasses, p as variantPrint, G as variantPseudoClassFunctions, F as variantPseudoClassesAndElements, z as variantScope, o as variantScripting, w as variantSelector, J as variantStartingStyle, C as variantStickyHover, K as variantSupports, e as variantSvgCombinators, a as variantTaggedAriaAttributes, j as variantTaggedDataAttributes, H as variantTaggedPseudoClasses, B as variantTheme, A as variantVariables, k as variants } from './shared/preset-wind4.wYrEcFuT.mjs';
2
2
  import '@unocss/rule-utils';
3
- import './shared/preset-wind4.D7fOjUVe.mjs';
3
+ import './shared/preset-wind4.DyLY6yb-.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.1.3",
4
+ "version": "66.1.4",
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.1.3",
78
- "@unocss/rule-utils": "66.1.3",
79
- "@unocss/extractor-arbitrary-variants": "66.1.3"
77
+ "@unocss/core": "66.1.4",
78
+ "@unocss/extractor-arbitrary-variants": "66.1.4",
79
+ "@unocss/rule-utils": "66.1.4"
80
80
  },
81
81
  "scripts": {
82
82
  "build": "unbuild",