@unocss/preset-wind4 66.1.0-beta.4 → 66.1.0-beta.5
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 +2 -2
- package/dist/rules.mjs +1 -1
- package/dist/shared/{preset-wind4.BxOT-c8M.mjs → preset-wind4.DXynlr0l.mjs} +1 -1
- package/dist/shared/{preset-wind4.BJgjgPep.mjs → preset-wind4.utffEfyI.mjs} +18 -25
- package/dist/utils.d.mts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/variants.mjs +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import { F as compressCSS, E as camelToHyphen, g as globalKeywords } from './sha
|
|
|
4
4
|
import { alphaPlaceholdersRE } from '@unocss/rule-utils';
|
|
5
5
|
import { p as passThemeKey } from './shared/preset-wind4.DRtKeBWc.mjs';
|
|
6
6
|
import { postprocessors } from './postprocess.mjs';
|
|
7
|
-
import { l as variants } from './shared/preset-wind4.
|
|
7
|
+
import { l as variants } from './shared/preset-wind4.DXynlr0l.mjs';
|
|
8
8
|
import { theme as theme$1 } from './theme.mjs';
|
|
9
9
|
import { s as shortcuts } from './shared/preset-wind4.Bv7psfuU.mjs';
|
|
10
|
-
import { r as rules } from './shared/preset-wind4.
|
|
10
|
+
import { r as rules } from './shared/preset-wind4.utffEfyI.mjs';
|
|
11
11
|
import './colors.mjs';
|
|
12
12
|
import './shared/preset-wind4.DRtfClGs.mjs';
|
|
13
13
|
|
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, aB as cssProperty, aA as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, ay as fontVariantNumeric, at 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, az as splitShorthand, an as svgUtilities, au as tabSizes, ao as tables, t as textAligns, q as textDecorations, av as textIndents, a9 as textOverflows, ax as textShadows, aw as textStrokes, aa as textTransforms, a8 as textWraps, ap as touchActions, aq as transformBase, ar as transforms, as as transitions, a3 as userSelects, v as verticalAligns, aC as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.
|
|
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, aB as cssProperty, aA as cssVariables, $ as cursors, Z as displays, u as divides, al as dynamicViewportHeight, x as filters, y as flex, J as flexGridJustifiesAlignments, L as floats, ac as fontSmoothings, ab as fontStyles, ay as fontVariantNumeric, at 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, az as splitShorthand, an as svgUtilities, au as tabSizes, ao as tables, t as textAligns, q as textDecorations, av as textIndents, a9 as textOverflows, ax as textShadows, aw as textStrokes, aa as textTransforms, a8 as textWraps, ap as touchActions, aq as transformBase, ar as transforms, as as transitions, a3 as userSelects, v as verticalAligns, aC as viewTransition, a4 as whitespaces, w as willChange, ae as writingModes, af as writingOrientations, M as zIndexes } from './shared/preset-wind4.utffEfyI.mjs';
|
|
2
2
|
export { a as container, c as containerParent, b as containerShortcuts } from './shared/preset-wind4.DRtfClGs.mjs';
|
|
3
3
|
import './shared/preset-wind4.D40diWvF.mjs';
|
|
4
4
|
import '@unocss/core';
|
|
@@ -70,8 +70,8 @@ const animations = [
|
|
|
70
70
|
}, { autocomplete: "animate-$animation.keyframes" }],
|
|
71
71
|
[/^animate-name-(.+)/, ([, d]) => ({ "animation-name": h.bracket.cssvar(d) ?? d })],
|
|
72
72
|
// timings
|
|
73
|
-
[/^animate-duration-(.+)$/, ([, d], { theme }) => ({ "animation-duration": theme.duration?.[d || "DEFAULT"] ?? h.bracket.cssvar.time(d) }), { autocomplete: ["animate-duration"
|
|
74
|
-
[/^animate-delay-(.+)$/, ([, d], { theme }) => ({ "animation-delay": theme.duration?.[d || "DEFAULT"] ?? h.bracket.cssvar.time(d) }), { autocomplete: ["animate-delay"
|
|
73
|
+
[/^animate-duration-(.+)$/, ([, d], { theme }) => ({ "animation-duration": theme.duration?.[d || "DEFAULT"] ?? h.bracket.cssvar.time(d) }), { autocomplete: ["animate-duration"] }],
|
|
74
|
+
[/^animate-delay-(.+)$/, ([, d], { theme }) => ({ "animation-delay": theme.duration?.[d || "DEFAULT"] ?? h.bracket.cssvar.time(d) }), { autocomplete: ["animate-delay"] }],
|
|
75
75
|
[/^animate-ease(?:-(.+))?$/, ([, d], { theme }) => ({ "animation-timing-function": theme.ease?.[d || "DEFAULT"] ?? h.bracket.cssvar(d) }), { autocomplete: ["animate-ease", "animate-ease-$ease"] }],
|
|
76
76
|
// fill mode
|
|
77
77
|
[/^animate-(fill-mode-|fill-|mode-)?(.+)$/, ([, t, d]) => ["none", "forwards", "backwards", "both", ...[t ? globalKeywords : []]].includes(d) ? { "animation-fill-mode": d } : void 0, {
|
|
@@ -416,7 +416,7 @@ const borders = [
|
|
|
416
416
|
[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/, handlerBorderOpacity],
|
|
417
417
|
[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/, handlerBorderOpacity],
|
|
418
418
|
// radius
|
|
419
|
-
[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/, handlerRounded, { autocomplete: ["(border|b)-(rounded|rd)", "(border|b)-(rounded|rd)-$
|
|
419
|
+
[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/, handlerRounded, { autocomplete: ["(border|b)-(rounded|rd)", "(border|b)-(rounded|rd)-$radius", "(rounded|rd)", "(rounded|rd)-$radius"] }],
|
|
420
420
|
[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/, handlerRounded],
|
|
421
421
|
[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/, handlerRounded],
|
|
422
422
|
[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/, handlerRounded],
|
|
@@ -1198,7 +1198,7 @@ const rings = [
|
|
|
1198
1198
|
Object.values(shadowProperties).join("\n")
|
|
1199
1199
|
];
|
|
1200
1200
|
}
|
|
1201
|
-
}
|
|
1201
|
+
}],
|
|
1202
1202
|
[/^ring-(.+)$/, colorResolver(`--un-ring-color`, "ring"), { autocomplete: "ring-$colors" }],
|
|
1203
1203
|
[/^ring-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-ring-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "ring-(op|opacity)-<percent>" }],
|
|
1204
1204
|
// inset ring
|
|
@@ -1327,10 +1327,10 @@ const sizes = [
|
|
|
1327
1327
|
autocomplete: [
|
|
1328
1328
|
"(w|h)-screen",
|
|
1329
1329
|
"(min|max)-(w|h)-screen",
|
|
1330
|
-
"h-screen-$
|
|
1331
|
-
"(min|max)-h-screen-$
|
|
1332
|
-
"w-screen-$
|
|
1333
|
-
"(min|max)-w-screen-$
|
|
1330
|
+
"h-screen-$breakpoint",
|
|
1331
|
+
"(min|max)-h-screen-$breakpoint",
|
|
1332
|
+
"w-screen-$breakpoint",
|
|
1333
|
+
"(min|max)-w-screen-$breakpoint"
|
|
1334
1334
|
]
|
|
1335
1335
|
}]
|
|
1336
1336
|
];
|
|
@@ -1619,10 +1619,10 @@ const svgUtilities = [
|
|
|
1619
1619
|
[/^fill-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-fill-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "fill-(op|opacity)-<percent>" }],
|
|
1620
1620
|
["fill-none", { fill: "none" }],
|
|
1621
1621
|
// stroke size
|
|
1622
|
-
[/^stroke-(?:width-|size-)?(.+)$/, handleWidth
|
|
1622
|
+
[/^stroke-(?:width-|size-)?(.+)$/, handleWidth],
|
|
1623
1623
|
// stroke dash
|
|
1624
1624
|
[/^stroke-dash-(.+)$/, ([, s]) => ({ "stroke-dasharray": h.bracket.cssvar.number(s) }), { autocomplete: "stroke-dash-<num>" }],
|
|
1625
|
-
[/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": h.bracket.cssvar.px.numberWithUnit(s) })
|
|
1625
|
+
[/^stroke-offset-(.+)$/, ([, s]) => ({ "stroke-dashoffset": h.bracket.cssvar.px.numberWithUnit(s) })],
|
|
1626
1626
|
// stroke colors
|
|
1627
1627
|
[/^stroke-(.+)$/, handleColorOrWidth, { autocomplete: "stroke-$colors" }],
|
|
1628
1628
|
[/^stroke-op(?:acity)?-?(.+)$/, ([, opacity]) => ({ "--un-stroke-opacity": h.bracket.percent.cssvar(opacity) }), { autocomplete: "stroke-(op|opacity)-<percent>" }],
|
|
@@ -1925,9 +1925,6 @@ const transitions = [
|
|
|
1925
1925
|
...defaultTransition
|
|
1926
1926
|
};
|
|
1927
1927
|
}
|
|
1928
|
-
},
|
|
1929
|
-
{
|
|
1930
|
-
autocomplete: "transition-$transitionProperty-$duration"
|
|
1931
1928
|
}
|
|
1932
1929
|
],
|
|
1933
1930
|
// timings
|
|
@@ -1936,13 +1933,11 @@ const transitions = [
|
|
|
1936
1933
|
([, d]) => ({
|
|
1937
1934
|
"--un-duration": h.bracket.cssvar.time(d),
|
|
1938
1935
|
"transition-duration": h.bracket.cssvar.time(d)
|
|
1939
|
-
})
|
|
1940
|
-
{ autocomplete: ["transition-duration-$duration", "duration-$duration"] }
|
|
1936
|
+
})
|
|
1941
1937
|
],
|
|
1942
1938
|
[
|
|
1943
1939
|
/^(?:transition-)?delay-(.+)$/,
|
|
1944
|
-
([, d]) => ({ "transition-delay": h.bracket.cssvar.time(d) })
|
|
1945
|
-
{ autocomplete: ["transition-delay-$duration", "delay-$duration"] }
|
|
1940
|
+
([, d]) => ({ "transition-delay": h.bracket.cssvar.time(d) })
|
|
1946
1941
|
],
|
|
1947
1942
|
[
|
|
1948
1943
|
/^(?:transition-)?ease-(.+)$/,
|
|
@@ -1967,9 +1962,7 @@ const transitions = [
|
|
|
1967
1962
|
return { "transition-property": p };
|
|
1968
1963
|
},
|
|
1969
1964
|
{ autocomplete: [
|
|
1970
|
-
`transition-property-(${[...globalKeywords].join("|")})
|
|
1971
|
-
"transition-property-$transitionProperty",
|
|
1972
|
-
"property-$transitionProperty"
|
|
1965
|
+
`transition-property-(${[...globalKeywords].join("|")})`
|
|
1973
1966
|
] }
|
|
1974
1967
|
],
|
|
1975
1968
|
// none
|
|
@@ -1982,9 +1975,9 @@ const transitions = [
|
|
|
1982
1975
|
|
|
1983
1976
|
const fonts = [
|
|
1984
1977
|
// text
|
|
1985
|
-
[/^text-(.+)$/, handleText, { autocomplete: "text-$
|
|
1978
|
+
[/^text-(.+)$/, handleText, { autocomplete: "text-$text" }],
|
|
1986
1979
|
// // text size
|
|
1987
|
-
[/^(?:text|font)-size-(.+)$/, handleSize, { autocomplete: "text-size-$
|
|
1980
|
+
[/^(?:text|font)-size-(.+)$/, handleSize, { autocomplete: "text-size-$text" }],
|
|
1988
1981
|
// text colors
|
|
1989
1982
|
[/^text-(?:color-)?(.+)$/, handlerColorOrSize, { autocomplete: "text-$colors" }],
|
|
1990
1983
|
// colors
|
|
@@ -2043,7 +2036,7 @@ const fonts = [
|
|
|
2043
2036
|
"letter-spacing": v
|
|
2044
2037
|
};
|
|
2045
2038
|
},
|
|
2046
|
-
{ autocomplete: "tracking-$
|
|
2039
|
+
{ autocomplete: "tracking-$tracking" }
|
|
2047
2040
|
],
|
|
2048
2041
|
// word-spacing
|
|
2049
2042
|
[
|
|
@@ -2055,7 +2048,7 @@ const fonts = [
|
|
|
2055
2048
|
"word-spacing": v
|
|
2056
2049
|
};
|
|
2057
2050
|
},
|
|
2058
|
-
{ autocomplete: "word-spacing-$
|
|
2051
|
+
{ autocomplete: "word-spacing-$spacing" }
|
|
2059
2052
|
],
|
|
2060
2053
|
// stretch
|
|
2061
2054
|
["font-stretch-normal", { "font-stretch": "normal" }],
|
|
@@ -2081,7 +2074,7 @@ const fonts = [
|
|
|
2081
2074
|
"font-family": v
|
|
2082
2075
|
};
|
|
2083
2076
|
},
|
|
2084
|
-
{ autocomplete: "font-$
|
|
2077
|
+
{ autocomplete: "font-$font" }
|
|
2085
2078
|
]
|
|
2086
2079
|
];
|
|
2087
2080
|
const tabSizes = [
|
package/dist/utils.d.mts
CHANGED
|
@@ -47,8 +47,8 @@ declare namespace handlers {
|
|
|
47
47
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, 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 };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
51
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
52
|
|
|
53
53
|
declare const directionMap: Record<string, string[]>;
|
|
54
54
|
declare const insetMap: Record<string, string[]>;
|
package/dist/utils.d.ts
CHANGED
|
@@ -47,8 +47,8 @@ declare namespace handlers {
|
|
|
47
47
|
export { handlers_auto as auto, handlers_bracket as bracket, handlers_bracketOfColor as bracketOfColor, handlers_bracketOfLength as bracketOfLength, 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 };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "
|
|
51
|
-
declare const h: _unocss_rule_utils.ValueHandler<"number" | "
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "global" | "none" | "px" | "auto" | "position" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
52
|
|
|
53
53
|
declare const directionMap: Record<string, string[]>;
|
|
54
54
|
declare const insetMap: Record<string, string[]>;
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as calcMaxWidthBySize, D as placeholderModifier, v as variantAria, b as variantBreakpoints, d as variantChildren, h as variantColorsMediaOrClass, i as variantColorsScheme, e as variantCombinators, g as variantContainerQuery, q as variantContrasts, w as variantCssLayer, p as variantCustomMedia, j as variantDataAttribute, t as variantForcedColors, n as variantImportant, x as variantInternalLayer, m as variantLanguageDirections, r as variantMotions, C as variantNegative, s as variantOrientations, H as variantPartClasses, o as variantPrint, F as variantPseudoClassFunctions, E as variantPseudoClassesAndElements, y as variantScope, u as variantSelector, I as variantStartingStyle, B as variantStickyHover, J as variantSupports, f as variantSvgCombinators, a as variantTaggedAriaAttributes, k as variantTaggedDataAttributes, G as variantTaggedPseudoClasses, A as variantTheme, z as variantVariables, l as variants } from './shared/preset-wind4.
|
|
1
|
+
export { c as calcMaxWidthBySize, D as placeholderModifier, v as variantAria, b as variantBreakpoints, d as variantChildren, h as variantColorsMediaOrClass, i as variantColorsScheme, e as variantCombinators, g as variantContainerQuery, q as variantContrasts, w as variantCssLayer, p as variantCustomMedia, j as variantDataAttribute, t as variantForcedColors, n as variantImportant, x as variantInternalLayer, m as variantLanguageDirections, r as variantMotions, C as variantNegative, s as variantOrientations, H as variantPartClasses, o as variantPrint, F as variantPseudoClassFunctions, E as variantPseudoClassesAndElements, y as variantScope, u as variantSelector, I as variantStartingStyle, B as variantStickyHover, J as variantSupports, f as variantSvgCombinators, a as variantTaggedAriaAttributes, k as variantTaggedDataAttributes, G as variantTaggedPseudoClasses, A as variantTheme, z as variantVariables, l as variants } from './shared/preset-wind4.DXynlr0l.mjs';
|
|
2
2
|
import '@unocss/rule-utils';
|
|
3
3
|
import './shared/preset-wind4.D40diWvF.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.0-beta.
|
|
4
|
+
"version": "66.1.0-beta.5",
|
|
5
5
|
"description": "Tailwind 4 compact preset for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@unocss/core": "66.1.0-beta.
|
|
69
|
-
"@unocss/extractor-arbitrary-variants": "66.1.0-beta.
|
|
70
|
-
"@unocss/rule-utils": "66.1.0-beta.
|
|
68
|
+
"@unocss/core": "66.1.0-beta.5",
|
|
69
|
+
"@unocss/extractor-arbitrary-variants": "66.1.0-beta.5",
|
|
70
|
+
"@unocss/rule-utils": "66.1.0-beta.5"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "unbuild",
|