@unocss/preset-wind4 66.1.0-beta.1
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/LICENSE +21 -0
- package/colors.d.ts +1 -0
- package/dist/colors.d.mts +318 -0
- package/dist/colors.d.ts +318 -0
- package/dist/colors.mjs +323 -0
- package/dist/index.d.mts +85 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.mjs +123 -0
- package/dist/postprocess.d.mts +13 -0
- package/dist/postprocess.d.ts +13 -0
- package/dist/postprocess.mjs +42 -0
- package/dist/rules.d.mts +209 -0
- package/dist/rules.d.ts +209 -0
- package/dist/rules.mjs +6 -0
- package/dist/shared/preset-wind4.2MnQGJ1R.d.mts +6 -0
- package/dist/shared/preset-wind4.CK_6y38z.mjs +2322 -0
- package/dist/shared/preset-wind4.CegCmYvq.d.ts +6 -0
- package/dist/shared/preset-wind4.CgaZg2nY.mjs +7 -0
- package/dist/shared/preset-wind4.Cie2xZTI.mjs +75 -0
- package/dist/shared/preset-wind4.DRtKeBWc.mjs +3 -0
- package/dist/shared/preset-wind4.LxGeOha5.d.mts +52 -0
- package/dist/shared/preset-wind4.LxGeOha5.d.ts +52 -0
- package/dist/shared/preset-wind4.hRJr-mxL.mjs +918 -0
- package/dist/shared/preset-wind4.pue_BigB.d.mts +886 -0
- package/dist/shared/preset-wind4.pue_BigB.d.ts +886 -0
- package/dist/shared/preset-wind4.vGe3tcGx.mjs +625 -0
- package/dist/shortcuts.d.mts +6 -0
- package/dist/shortcuts.d.ts +6 -0
- package/dist/shortcuts.mjs +5 -0
- package/dist/theme.d.mts +581 -0
- package/dist/theme.d.ts +581 -0
- package/dist/theme.mjs +557 -0
- package/dist/utils.d.mts +129 -0
- package/dist/utils.d.ts +129 -0
- package/dist/utils.mjs +4 -0
- package/dist/variants.d.mts +60 -0
- package/dist/variants.d.ts +60 -0
- package/dist/variants.mjs +4 -0
- package/package.json +77 -0
- package/postprocess.d.ts +1 -0
- package/rules.d.ts +1 -0
- package/shortcuts.d.ts +1 -0
- package/theme.d.ts +1 -0
- package/utils.d.ts +1 -0
- package/variants.d.ts +1 -0
package/dist/utils.d.mts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
|
+
export * from '@unocss/rule-utils';
|
|
3
|
+
import { DynamicMatcher, RuleContext, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
4
|
+
import { T as Theme, C as Colors } from './shared/preset-wind4.LxGeOha5.mjs';
|
|
5
|
+
|
|
6
|
+
/** Keys will not appear in the theme variable. */
|
|
7
|
+
declare const passThemeKey: string[];
|
|
8
|
+
|
|
9
|
+
declare function numberWithUnit(str: string): string | undefined;
|
|
10
|
+
declare function auto(str: string): "auto" | undefined;
|
|
11
|
+
declare function rem(str: string): string | undefined;
|
|
12
|
+
declare function px(str: string): string | undefined;
|
|
13
|
+
declare function number(str: string): number | undefined;
|
|
14
|
+
declare function percent(str: string): string | undefined;
|
|
15
|
+
declare function fraction(str: string): string | undefined;
|
|
16
|
+
declare function bracket(str: string): string | undefined;
|
|
17
|
+
declare function bracketOfColor(str: string): string | undefined;
|
|
18
|
+
declare function bracketOfLength(str: string): string | undefined;
|
|
19
|
+
declare function bracketOfPosition(str: string): string | undefined;
|
|
20
|
+
declare function cssvar(str: string): string | undefined;
|
|
21
|
+
declare function time(str: string): string | undefined;
|
|
22
|
+
declare function degree(str: string): string | undefined;
|
|
23
|
+
declare function global(str: string): string | undefined;
|
|
24
|
+
declare function properties(str: string): string | undefined;
|
|
25
|
+
declare function position(str: string): string | undefined;
|
|
26
|
+
declare function none(str: string): "none" | undefined;
|
|
27
|
+
|
|
28
|
+
declare const handlers_auto: typeof auto;
|
|
29
|
+
declare const handlers_bracket: typeof bracket;
|
|
30
|
+
declare const handlers_bracketOfColor: typeof bracketOfColor;
|
|
31
|
+
declare const handlers_bracketOfLength: typeof bracketOfLength;
|
|
32
|
+
declare const handlers_bracketOfPosition: typeof bracketOfPosition;
|
|
33
|
+
declare const handlers_cssvar: typeof cssvar;
|
|
34
|
+
declare const handlers_degree: typeof degree;
|
|
35
|
+
declare const handlers_fraction: typeof fraction;
|
|
36
|
+
declare const handlers_global: typeof global;
|
|
37
|
+
declare const handlers_none: typeof none;
|
|
38
|
+
declare const handlers_number: typeof number;
|
|
39
|
+
declare const handlers_numberWithUnit: typeof numberWithUnit;
|
|
40
|
+
declare const handlers_percent: typeof percent;
|
|
41
|
+
declare const handlers_position: typeof position;
|
|
42
|
+
declare const handlers_properties: typeof properties;
|
|
43
|
+
declare const handlers_px: typeof px;
|
|
44
|
+
declare const handlers_rem: typeof rem;
|
|
45
|
+
declare const handlers_time: typeof time;
|
|
46
|
+
declare namespace handlers {
|
|
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
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
|
+
|
|
53
|
+
declare const directionMap: Record<string, string[]>;
|
|
54
|
+
declare const insetMap: Record<string, string[]>;
|
|
55
|
+
declare const cornerMap: Record<string, string[]>;
|
|
56
|
+
declare const xyzMap: Record<string, string[]>;
|
|
57
|
+
declare const xyzArray: string[];
|
|
58
|
+
declare const positionMap: Record<string, string>;
|
|
59
|
+
declare const globalKeywords: string[];
|
|
60
|
+
declare const cssMathFnRE: RegExp;
|
|
61
|
+
declare const cssVarFnRE: RegExp;
|
|
62
|
+
|
|
63
|
+
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
64
|
+
declare const SpecialColorKey: {
|
|
65
|
+
transparent: string;
|
|
66
|
+
current: string;
|
|
67
|
+
};
|
|
68
|
+
declare function numberResolver(size: string, defaultValue?: string | number): number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
71
|
+
*
|
|
72
|
+
* @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
|
|
73
|
+
* @see {@link directionMap}
|
|
74
|
+
*/
|
|
75
|
+
declare function directionSize(propertyPrefix: string): DynamicMatcher<Theme>;
|
|
76
|
+
/**
|
|
77
|
+
* Split utility shorthand delimited by / or :
|
|
78
|
+
*/
|
|
79
|
+
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
80
|
+
declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
|
|
81
|
+
declare function colorResolver(property: string, varName: string): ([, body]: string[], { theme, generator }: RuleContext<Theme>) => CSSObject | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
|
|
84
|
+
* See also color.tests.ts for more examples.
|
|
85
|
+
*
|
|
86
|
+
* @example Parseable strings:
|
|
87
|
+
* 'red' // From theme, if 'red' is available
|
|
88
|
+
* 'red-100' // From theme, plus scale
|
|
89
|
+
* 'red-100/20' // From theme, plus scale/opacity
|
|
90
|
+
* '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
|
|
91
|
+
*
|
|
92
|
+
* @param body - Color string to be parsed.
|
|
93
|
+
* @param theme - {@link Theme} object.
|
|
94
|
+
* @return object if string is parseable.
|
|
95
|
+
*/
|
|
96
|
+
declare function parseColor(body: string, theme: Theme): {
|
|
97
|
+
opacity: string;
|
|
98
|
+
name: string;
|
|
99
|
+
no: string | undefined;
|
|
100
|
+
color: string;
|
|
101
|
+
alpha: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Key means the color is from theme object.
|
|
104
|
+
*/
|
|
105
|
+
key: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
declare function parseThemeColor(theme: Theme, keys: string[]): {
|
|
108
|
+
color: string;
|
|
109
|
+
no: string | undefined;
|
|
110
|
+
key: string | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
declare function getThemeColor(theme: Theme, keys: string[]): string | Colors | undefined;
|
|
113
|
+
declare function colorVariable(str: string, varName: string): string;
|
|
114
|
+
declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
|
|
115
|
+
declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoint' | 'verticalBreakpoint'): {
|
|
116
|
+
point: string;
|
|
117
|
+
size: string;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
|
|
120
|
+
point: string;
|
|
121
|
+
size: string;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
124
|
+
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
125
|
+
declare function isSize(str: string): boolean;
|
|
126
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
|
+
declare function camelToHyphen(str: string): string;
|
|
128
|
+
|
|
129
|
+
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import * as _unocss_rule_utils from '@unocss/rule-utils';
|
|
2
|
+
export * from '@unocss/rule-utils';
|
|
3
|
+
import { DynamicMatcher, RuleContext, CSSObject, VariantContext, StaticRule } from '@unocss/core';
|
|
4
|
+
import { T as Theme, C as Colors } from './shared/preset-wind4.LxGeOha5.js';
|
|
5
|
+
|
|
6
|
+
/** Keys will not appear in the theme variable. */
|
|
7
|
+
declare const passThemeKey: string[];
|
|
8
|
+
|
|
9
|
+
declare function numberWithUnit(str: string): string | undefined;
|
|
10
|
+
declare function auto(str: string): "auto" | undefined;
|
|
11
|
+
declare function rem(str: string): string | undefined;
|
|
12
|
+
declare function px(str: string): string | undefined;
|
|
13
|
+
declare function number(str: string): number | undefined;
|
|
14
|
+
declare function percent(str: string): string | undefined;
|
|
15
|
+
declare function fraction(str: string): string | undefined;
|
|
16
|
+
declare function bracket(str: string): string | undefined;
|
|
17
|
+
declare function bracketOfColor(str: string): string | undefined;
|
|
18
|
+
declare function bracketOfLength(str: string): string | undefined;
|
|
19
|
+
declare function bracketOfPosition(str: string): string | undefined;
|
|
20
|
+
declare function cssvar(str: string): string | undefined;
|
|
21
|
+
declare function time(str: string): string | undefined;
|
|
22
|
+
declare function degree(str: string): string | undefined;
|
|
23
|
+
declare function global(str: string): string | undefined;
|
|
24
|
+
declare function properties(str: string): string | undefined;
|
|
25
|
+
declare function position(str: string): string | undefined;
|
|
26
|
+
declare function none(str: string): "none" | undefined;
|
|
27
|
+
|
|
28
|
+
declare const handlers_auto: typeof auto;
|
|
29
|
+
declare const handlers_bracket: typeof bracket;
|
|
30
|
+
declare const handlers_bracketOfColor: typeof bracketOfColor;
|
|
31
|
+
declare const handlers_bracketOfLength: typeof bracketOfLength;
|
|
32
|
+
declare const handlers_bracketOfPosition: typeof bracketOfPosition;
|
|
33
|
+
declare const handlers_cssvar: typeof cssvar;
|
|
34
|
+
declare const handlers_degree: typeof degree;
|
|
35
|
+
declare const handlers_fraction: typeof fraction;
|
|
36
|
+
declare const handlers_global: typeof global;
|
|
37
|
+
declare const handlers_none: typeof none;
|
|
38
|
+
declare const handlers_number: typeof number;
|
|
39
|
+
declare const handlers_numberWithUnit: typeof numberWithUnit;
|
|
40
|
+
declare const handlers_percent: typeof percent;
|
|
41
|
+
declare const handlers_position: typeof position;
|
|
42
|
+
declare const handlers_properties: typeof properties;
|
|
43
|
+
declare const handlers_px: typeof px;
|
|
44
|
+
declare const handlers_rem: typeof rem;
|
|
45
|
+
declare const handlers_time: typeof time;
|
|
46
|
+
declare namespace handlers {
|
|
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
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const handler: _unocss_rule_utils.ValueHandler<"number" | "none" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
51
|
+
declare const h: _unocss_rule_utils.ValueHandler<"number" | "none" | "position" | "global" | "px" | "auto" | "numberWithUnit" | "rem" | "percent" | "fraction" | "bracket" | "bracketOfColor" | "bracketOfLength" | "bracketOfPosition" | "cssvar" | "time" | "degree" | "properties">;
|
|
52
|
+
|
|
53
|
+
declare const directionMap: Record<string, string[]>;
|
|
54
|
+
declare const insetMap: Record<string, string[]>;
|
|
55
|
+
declare const cornerMap: Record<string, string[]>;
|
|
56
|
+
declare const xyzMap: Record<string, string[]>;
|
|
57
|
+
declare const xyzArray: string[];
|
|
58
|
+
declare const positionMap: Record<string, string>;
|
|
59
|
+
declare const globalKeywords: string[];
|
|
60
|
+
declare const cssMathFnRE: RegExp;
|
|
61
|
+
declare const cssVarFnRE: RegExp;
|
|
62
|
+
|
|
63
|
+
declare const CONTROL_MINI_NO_NEGATIVE = "$$mini-no-negative";
|
|
64
|
+
declare const SpecialColorKey: {
|
|
65
|
+
transparent: string;
|
|
66
|
+
current: string;
|
|
67
|
+
};
|
|
68
|
+
declare function numberResolver(size: string, defaultValue?: string | number): number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Provide {@link DynamicMatcher} function returning spacing definition. See spacing rules.
|
|
71
|
+
*
|
|
72
|
+
* @param propertyPrefix - Property for the css value to be created. Postfix will be appended according to direction matched.
|
|
73
|
+
* @see {@link directionMap}
|
|
74
|
+
*/
|
|
75
|
+
declare function directionSize(propertyPrefix: string): DynamicMatcher<Theme>;
|
|
76
|
+
/**
|
|
77
|
+
* Split utility shorthand delimited by / or :
|
|
78
|
+
*/
|
|
79
|
+
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
80
|
+
declare function colorableShadows(shadows: string | string[], colorVar: string): string[];
|
|
81
|
+
declare function colorResolver(property: string, varName: string): ([, body]: string[], { theme, generator }: RuleContext<Theme>) => CSSObject | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Parse color string into {@link ParsedColorValue} (if possible). Color value will first be matched to theme object before parsing.
|
|
84
|
+
* See also color.tests.ts for more examples.
|
|
85
|
+
*
|
|
86
|
+
* @example Parseable strings:
|
|
87
|
+
* 'red' // From theme, if 'red' is available
|
|
88
|
+
* 'red-100' // From theme, plus scale
|
|
89
|
+
* 'red-100/20' // From theme, plus scale/opacity
|
|
90
|
+
* '[rgb(100 2 3)]/[var(--op)]' // Bracket with rgb color and bracket with opacity
|
|
91
|
+
*
|
|
92
|
+
* @param body - Color string to be parsed.
|
|
93
|
+
* @param theme - {@link Theme} object.
|
|
94
|
+
* @return object if string is parseable.
|
|
95
|
+
*/
|
|
96
|
+
declare function parseColor(body: string, theme: Theme): {
|
|
97
|
+
opacity: string;
|
|
98
|
+
name: string;
|
|
99
|
+
no: string | undefined;
|
|
100
|
+
color: string;
|
|
101
|
+
alpha: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Key means the color is from theme object.
|
|
104
|
+
*/
|
|
105
|
+
key: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
declare function parseThemeColor(theme: Theme, keys: string[]): {
|
|
108
|
+
color: string;
|
|
109
|
+
no: string | undefined;
|
|
110
|
+
key: string | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
declare function getThemeColor(theme: Theme, keys: string[]): string | Colors | undefined;
|
|
113
|
+
declare function colorVariable(str: string, varName: string): string;
|
|
114
|
+
declare function hasParseableColor(color: string | undefined, theme: Theme): boolean;
|
|
115
|
+
declare function resolveBreakpoints({ theme, generator }: Readonly<VariantContext<Theme>>, key?: 'breakpoint' | 'verticalBreakpoint'): {
|
|
116
|
+
point: string;
|
|
117
|
+
size: string;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
declare function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>): {
|
|
120
|
+
point: string;
|
|
121
|
+
size: string;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
declare function makeGlobalStaticRules(prefix: string, property?: string): StaticRule[];
|
|
124
|
+
declare function isCSSMathFn(value: string | undefined): boolean;
|
|
125
|
+
declare function isSize(str: string): boolean;
|
|
126
|
+
declare function transformXYZ(d: string, v: string, name: string): [string, string][];
|
|
127
|
+
declare function camelToHyphen(str: string): string;
|
|
128
|
+
|
|
129
|
+
export { CONTROL_MINI_NO_NEGATIVE, SpecialColorKey, camelToHyphen, colorResolver, colorVariable, colorableShadows, cornerMap, cssMathFnRE, cssVarFnRE, directionMap, directionSize, getThemeColor, globalKeywords, h, handler, hasParseableColor, insetMap, isCSSMathFn, isSize, makeGlobalStaticRules, numberResolver, parseColor, parseThemeColor, passThemeKey, positionMap, resolveBreakpoints, resolveVerticalBreakpoints, splitShorthand, transformXYZ, handlers as valueHandlers, xyzArray, xyzMap };
|
package/dist/utils.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { p as passThemeKey } from './shared/preset-wind4.DRtKeBWc.mjs';
|
|
2
|
+
export { C as CONTROL_MINI_NO_NEGATIVE, S as SpecialColorKey, D as camelToHyphen, l as colorResolver, r as colorVariable, k as colorableShadows, c as cornerMap, e as cssMathFnRE, f as cssVarFnRE, d as directionMap, j as directionSize, q as getThemeColor, g as globalKeywords, a as h, h as handler, t as hasParseableColor, i as insetMap, z as isCSSMathFn, A as isSize, y as makeGlobalStaticRules, n as numberResolver, m as parseColor, o as parseThemeColor, p as positionMap, u as resolveBreakpoints, w as resolveVerticalBreakpoints, s as splitShorthand, B as transformXYZ, v as valueHandlers, b as xyzArray, x as xyzMap } from './shared/preset-wind4.vGe3tcGx.mjs';
|
|
3
|
+
export * from '@unocss/rule-utils';
|
|
4
|
+
import '@unocss/core';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { VariantObject, Variant, VariantFunction } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.LxGeOha5.mjs';
|
|
3
|
+
import { PresetWind4Options } from './index.mjs';
|
|
4
|
+
export { variants } from './index.mjs';
|
|
5
|
+
import './shared/preset-wind4.2MnQGJ1R.mjs';
|
|
6
|
+
import './shortcuts.mjs';
|
|
7
|
+
import './shared/preset-wind4.pue_BigB.mjs';
|
|
8
|
+
|
|
9
|
+
declare const variantAria: VariantObject<Theme>;
|
|
10
|
+
declare const variantTaggedAriaAttributes: Variant<Theme>[];
|
|
11
|
+
|
|
12
|
+
declare function calcMaxWidthBySize(size: string): string;
|
|
13
|
+
declare function variantBreakpoints(): VariantObject<Theme>;
|
|
14
|
+
|
|
15
|
+
declare const variantChildren: Variant<Theme>[];
|
|
16
|
+
|
|
17
|
+
declare const variantCombinators: Variant<Theme>[];
|
|
18
|
+
declare const variantSvgCombinators: Variant<Theme>[];
|
|
19
|
+
|
|
20
|
+
declare const variantContainerQuery: VariantObject<Theme>;
|
|
21
|
+
|
|
22
|
+
declare function variantColorsMediaOrClass(options?: PresetWind4Options): Variant<Theme>[];
|
|
23
|
+
declare const variantColorsScheme: Variant<Theme>[];
|
|
24
|
+
|
|
25
|
+
declare const variantDataAttribute: VariantObject<Theme>;
|
|
26
|
+
declare const variantTaggedDataAttributes: Variant<Theme>[];
|
|
27
|
+
|
|
28
|
+
declare const variantLanguageDirections: Variant<Theme>[];
|
|
29
|
+
|
|
30
|
+
declare function variantImportant(): VariantObject<Theme>;
|
|
31
|
+
|
|
32
|
+
declare const variantPrint: VariantObject<Theme>;
|
|
33
|
+
declare const variantCustomMedia: VariantObject<Theme>;
|
|
34
|
+
declare const variantContrasts: Variant<Theme>[];
|
|
35
|
+
declare const variantMotions: Variant<Theme>[];
|
|
36
|
+
declare const variantOrientations: Variant<Theme>[];
|
|
37
|
+
declare const variantForcedColors: Variant<Theme>[];
|
|
38
|
+
|
|
39
|
+
declare const variantSelector: Variant<Theme>;
|
|
40
|
+
declare const variantCssLayer: Variant<Theme>;
|
|
41
|
+
declare const variantInternalLayer: Variant<Theme>;
|
|
42
|
+
declare const variantScope: Variant<Theme>;
|
|
43
|
+
declare const variantVariables: Variant<Theme>;
|
|
44
|
+
declare const variantTheme: Variant<Theme>;
|
|
45
|
+
declare const variantStickyHover: Variant<Theme>[];
|
|
46
|
+
|
|
47
|
+
declare const variantNegative: Variant<Theme>;
|
|
48
|
+
|
|
49
|
+
declare const placeholderModifier: VariantFunction<Theme>;
|
|
50
|
+
|
|
51
|
+
declare function variantPseudoClassesAndElements(): VariantObject<Theme>[];
|
|
52
|
+
declare function variantPseudoClassFunctions(): VariantObject<Theme>;
|
|
53
|
+
declare function variantTaggedPseudoClasses(options?: PresetWind4Options): VariantObject<Theme>[];
|
|
54
|
+
declare const variantPartClasses: VariantObject<Theme>;
|
|
55
|
+
|
|
56
|
+
declare const variantStartingStyle: Variant<Theme>;
|
|
57
|
+
|
|
58
|
+
declare const variantSupports: VariantObject<Theme>;
|
|
59
|
+
|
|
60
|
+
export { calcMaxWidthBySize, placeholderModifier, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantColorsScheme, variantCombinators, variantContainerQuery, variantContrasts, variantCssLayer, variantCustomMedia, variantDataAttribute, variantForcedColors, variantImportant, variantInternalLayer, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantStartingStyle, variantStickyHover, variantSupports, variantSvgCombinators, variantTaggedAriaAttributes, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { VariantObject, Variant, VariantFunction } from '@unocss/core';
|
|
2
|
+
import { T as Theme } from './shared/preset-wind4.LxGeOha5.js';
|
|
3
|
+
import { PresetWind4Options } from './index.js';
|
|
4
|
+
export { variants } from './index.js';
|
|
5
|
+
import './shared/preset-wind4.CegCmYvq.js';
|
|
6
|
+
import './shortcuts.js';
|
|
7
|
+
import './shared/preset-wind4.pue_BigB.js';
|
|
8
|
+
|
|
9
|
+
declare const variantAria: VariantObject<Theme>;
|
|
10
|
+
declare const variantTaggedAriaAttributes: Variant<Theme>[];
|
|
11
|
+
|
|
12
|
+
declare function calcMaxWidthBySize(size: string): string;
|
|
13
|
+
declare function variantBreakpoints(): VariantObject<Theme>;
|
|
14
|
+
|
|
15
|
+
declare const variantChildren: Variant<Theme>[];
|
|
16
|
+
|
|
17
|
+
declare const variantCombinators: Variant<Theme>[];
|
|
18
|
+
declare const variantSvgCombinators: Variant<Theme>[];
|
|
19
|
+
|
|
20
|
+
declare const variantContainerQuery: VariantObject<Theme>;
|
|
21
|
+
|
|
22
|
+
declare function variantColorsMediaOrClass(options?: PresetWind4Options): Variant<Theme>[];
|
|
23
|
+
declare const variantColorsScheme: Variant<Theme>[];
|
|
24
|
+
|
|
25
|
+
declare const variantDataAttribute: VariantObject<Theme>;
|
|
26
|
+
declare const variantTaggedDataAttributes: Variant<Theme>[];
|
|
27
|
+
|
|
28
|
+
declare const variantLanguageDirections: Variant<Theme>[];
|
|
29
|
+
|
|
30
|
+
declare function variantImportant(): VariantObject<Theme>;
|
|
31
|
+
|
|
32
|
+
declare const variantPrint: VariantObject<Theme>;
|
|
33
|
+
declare const variantCustomMedia: VariantObject<Theme>;
|
|
34
|
+
declare const variantContrasts: Variant<Theme>[];
|
|
35
|
+
declare const variantMotions: Variant<Theme>[];
|
|
36
|
+
declare const variantOrientations: Variant<Theme>[];
|
|
37
|
+
declare const variantForcedColors: Variant<Theme>[];
|
|
38
|
+
|
|
39
|
+
declare const variantSelector: Variant<Theme>;
|
|
40
|
+
declare const variantCssLayer: Variant<Theme>;
|
|
41
|
+
declare const variantInternalLayer: Variant<Theme>;
|
|
42
|
+
declare const variantScope: Variant<Theme>;
|
|
43
|
+
declare const variantVariables: Variant<Theme>;
|
|
44
|
+
declare const variantTheme: Variant<Theme>;
|
|
45
|
+
declare const variantStickyHover: Variant<Theme>[];
|
|
46
|
+
|
|
47
|
+
declare const variantNegative: Variant<Theme>;
|
|
48
|
+
|
|
49
|
+
declare const placeholderModifier: VariantFunction<Theme>;
|
|
50
|
+
|
|
51
|
+
declare function variantPseudoClassesAndElements(): VariantObject<Theme>[];
|
|
52
|
+
declare function variantPseudoClassFunctions(): VariantObject<Theme>;
|
|
53
|
+
declare function variantTaggedPseudoClasses(options?: PresetWind4Options): VariantObject<Theme>[];
|
|
54
|
+
declare const variantPartClasses: VariantObject<Theme>;
|
|
55
|
+
|
|
56
|
+
declare const variantStartingStyle: Variant<Theme>;
|
|
57
|
+
|
|
58
|
+
declare const variantSupports: VariantObject<Theme>;
|
|
59
|
+
|
|
60
|
+
export { calcMaxWidthBySize, placeholderModifier, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantColorsScheme, variantCombinators, variantContainerQuery, variantContrasts, variantCssLayer, variantCustomMedia, variantDataAttribute, variantForcedColors, variantImportant, variantInternalLayer, variantLanguageDirections, variantMotions, variantNegative, variantOrientations, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantSelector, variantStartingStyle, variantStickyHover, variantSupports, variantSvgCombinators, variantTaggedAriaAttributes, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables };
|
|
@@ -0,0 +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.hRJr-mxL.mjs';
|
|
2
|
+
import '@unocss/rule-utils';
|
|
3
|
+
import './shared/preset-wind4.vGe3tcGx.mjs';
|
|
4
|
+
import '@unocss/core';
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@unocss/preset-wind4",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "66.1.0-beta.1",
|
|
5
|
+
"description": "Tailwind 4 compact preset for UnoCSS",
|
|
6
|
+
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"funding": "https://github.com/sponsors/antfu",
|
|
9
|
+
"homepage": "https://unocss.dev",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/unocss/unocss",
|
|
13
|
+
"directory": "packages-presets/preset-wind4"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/unocss/unocss/issues"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"unocss",
|
|
20
|
+
"unocss-preset",
|
|
21
|
+
"tailwind4"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.mts",
|
|
27
|
+
"default": "./dist/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"./rules": {
|
|
30
|
+
"types": "./dist/rules.d.mts",
|
|
31
|
+
"default": "./dist/rules.mjs"
|
|
32
|
+
},
|
|
33
|
+
"./theme": {
|
|
34
|
+
"types": "./dist/theme.d.mts",
|
|
35
|
+
"default": "./dist/theme.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./colors": {
|
|
38
|
+
"types": "./dist/colors.d.mts",
|
|
39
|
+
"default": "./dist/colors.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./shortcuts": {
|
|
42
|
+
"types": "./dist/shortcuts.d.mts",
|
|
43
|
+
"default": "./dist/shortcuts.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./variants": {
|
|
46
|
+
"types": "./dist/variants.d.mts",
|
|
47
|
+
"default": "./dist/variants.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./postprocess": {
|
|
50
|
+
"types": "./dist/postprocess.d.mts",
|
|
51
|
+
"default": "./dist/postprocess.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./utils": {
|
|
54
|
+
"types": "./dist/utils.d.mts",
|
|
55
|
+
"default": "./dist/utils.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./*": "./*"
|
|
58
|
+
},
|
|
59
|
+
"main": "dist/index.mjs",
|
|
60
|
+
"module": "dist/index.mjs",
|
|
61
|
+
"types": "dist/index.d.ts",
|
|
62
|
+
"files": [
|
|
63
|
+
"*.css",
|
|
64
|
+
"*.d.ts",
|
|
65
|
+
"dist"
|
|
66
|
+
],
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@unocss/extractor-arbitrary-variants": "66.1.0-beta.1",
|
|
69
|
+
"@unocss/core": "66.1.0-beta.1",
|
|
70
|
+
"@unocss/rule-utils": "66.1.0-beta.1"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"build": "unbuild",
|
|
74
|
+
"stub": "unbuild --stub",
|
|
75
|
+
"test:attw": "attw --pack --config-path ../../.attw-esm-only.json"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/postprocess.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/postprocess'
|
package/rules.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/rules'
|
package/shortcuts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/shortcuts'
|
package/theme.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/theme'
|
package/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/utils'
|
package/variants.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/variants'
|