@unocss/preset-wind4 66.5.12 → 66.6.0
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-DG4CYhPr.d.mts +226 -0
- package/dist/index.d.mts +2 -1
- package/dist/postprocess.d.mts +2 -1
- package/dist/rules-CWCmuPTy.d.mts +207 -0
- package/dist/rules.d.mts +1 -1
- package/dist/rules.mjs +17 -3
- package/dist/shortcuts.d.mts +2 -1
- package/dist/shortcuts.mjs +0 -1
- package/dist/variants.d.mts +2 -1
- package/dist/variants.mjs +0 -1
- package/package.json +4 -4
- package/dist/index-DgftjMve.d.mts +0 -428
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { C as Theme } from "./theme-BcMDscP8.mjs";
|
|
2
|
+
import * as _unocss_core0 from "@unocss/core";
|
|
3
|
+
import { Arrayable, CSSEntry, Postprocessor, Preflight, PreflightContext, PresetOptions, Variant, VariantFunction, VariantObject } from "@unocss/core";
|
|
4
|
+
|
|
5
|
+
//#region src/postprocess/default.d.ts
|
|
6
|
+
declare function postprocessors(options: PresetWind4Options): Postprocessor[];
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/postprocess/important.d.ts
|
|
9
|
+
declare function important({
|
|
10
|
+
important: option
|
|
11
|
+
}: PresetWind4Options): Postprocessor[];
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/postprocess/varPrefix.d.ts
|
|
14
|
+
declare function varPrefix({
|
|
15
|
+
variablePrefix: prefix
|
|
16
|
+
}: PresetWind4Options): Postprocessor[];
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/preflights/index.d.ts
|
|
19
|
+
declare const preflights: (options: PresetWind4Options) => Preflight<Theme>[];
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/shortcuts/index.d.ts
|
|
22
|
+
declare const shortcuts: _unocss_core0.Shortcut<Theme>[];
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/shorthands.d.ts
|
|
25
|
+
declare const shorthands: {
|
|
26
|
+
position: string[];
|
|
27
|
+
globalKeyword: string[];
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/variants/aria.d.ts
|
|
31
|
+
declare const variantAria: VariantObject<Theme>;
|
|
32
|
+
declare const variantTaggedAriaAttributes: Variant<Theme>[];
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/variants/breakpoints.d.ts
|
|
35
|
+
declare function variantBreakpoints(): VariantObject<Theme>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/variants/children.d.ts
|
|
38
|
+
declare const variantChildren: Variant<Theme>[];
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/variants/combinators.d.ts
|
|
41
|
+
declare const variantCombinators: Variant<Theme>[];
|
|
42
|
+
declare const variantSvgCombinators: Variant<Theme>[];
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/variants/container.d.ts
|
|
45
|
+
declare const variantContainerQuery: VariantObject<Theme>;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/variants/dark.d.ts
|
|
48
|
+
declare function variantColorsMediaOrClass(options?: PresetWind4Options): Variant<Theme>[];
|
|
49
|
+
declare const variantColorsScheme: Variant<Theme>[];
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/variants/data.d.ts
|
|
52
|
+
declare const variantDataAttribute: VariantObject<Theme>;
|
|
53
|
+
declare const variantTaggedDataAttributes: Variant<Theme>[];
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/variants/default.d.ts
|
|
56
|
+
declare function variants(options: PresetWind4Options): Variant<Theme>[];
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/variants/directions.d.ts
|
|
59
|
+
declare const variantLanguageDirections: Variant<Theme>[];
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/variants/important.d.ts
|
|
62
|
+
declare function variantImportant(): VariantObject<Theme>;
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/variants/media.d.ts
|
|
65
|
+
declare const variantNoscript: VariantObject;
|
|
66
|
+
declare const variantScripting: VariantObject<Theme>;
|
|
67
|
+
declare const variantPrint: VariantObject<Theme>;
|
|
68
|
+
declare const variantCustomMedia: VariantObject<Theme>;
|
|
69
|
+
declare const variantContrasts: Variant<Theme>[];
|
|
70
|
+
declare const variantMotions: Variant<Theme>[];
|
|
71
|
+
declare const variantOrientations: Variant<Theme>[];
|
|
72
|
+
declare const variantForcedColors: Variant<Theme>[];
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/variants/misc.d.ts
|
|
75
|
+
declare const variantSelector: Variant<Theme>;
|
|
76
|
+
declare const variantCssLayer: Variant<Theme>;
|
|
77
|
+
declare const variantInternalLayer: Variant<Theme>;
|
|
78
|
+
declare const variantScope: Variant<Theme>;
|
|
79
|
+
declare const variantVariables: Variant<Theme>;
|
|
80
|
+
declare const variantTheme: Variant<Theme>;
|
|
81
|
+
declare const variantStickyHover: Variant<Theme>[];
|
|
82
|
+
declare const variantImplicitGroup: Variant;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/variants/negative.d.ts
|
|
85
|
+
declare const variantNegative: Variant<Theme>;
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/variants/placeholder.d.ts
|
|
88
|
+
declare const placeholderModifier: VariantFunction<Theme>;
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/variants/pseudo.d.ts
|
|
91
|
+
declare function variantPseudoClassesAndElements(): VariantObject<Theme>[];
|
|
92
|
+
declare function variantPseudoClassFunctions(): VariantObject<Theme>;
|
|
93
|
+
declare function variantTaggedPseudoClasses(options?: PresetWind4Options): VariantObject<Theme>[];
|
|
94
|
+
declare const variantPartClasses: VariantObject<Theme>;
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/variants/startingstyle.d.ts
|
|
97
|
+
declare const variantStartingStyle: Variant<Theme>;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/variants/supports.d.ts
|
|
100
|
+
declare const variantSupports: VariantObject<Theme>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/index.d.ts
|
|
103
|
+
interface DarkModeSelectors {
|
|
104
|
+
/**
|
|
105
|
+
* Selector for light variant.
|
|
106
|
+
*
|
|
107
|
+
* @default '.light'
|
|
108
|
+
*/
|
|
109
|
+
light?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Selector for dark variant.
|
|
112
|
+
*
|
|
113
|
+
* @default '.dark'
|
|
114
|
+
*/
|
|
115
|
+
dark?: string;
|
|
116
|
+
}
|
|
117
|
+
interface PreflightsTheme {
|
|
118
|
+
/**
|
|
119
|
+
* Generate theme keys as CSS variables.
|
|
120
|
+
*
|
|
121
|
+
* - `true`: Generate theme keys fully.
|
|
122
|
+
* - `false`: Disable theme keys. (Not recommended ⚠️)
|
|
123
|
+
* - `'on-demand'`: Generate theme keys only when used.
|
|
124
|
+
*
|
|
125
|
+
* @default 'on-demand'
|
|
126
|
+
*/
|
|
127
|
+
mode?: boolean | 'on-demand';
|
|
128
|
+
/**
|
|
129
|
+
* Process the theme keys.
|
|
130
|
+
*/
|
|
131
|
+
process?: Arrayable<(entry: CSSEntry, ctx: PreflightContext<Theme>) => void>;
|
|
132
|
+
}
|
|
133
|
+
interface PresetWind4Options extends PresetOptions {
|
|
134
|
+
/**
|
|
135
|
+
* Dark mode options
|
|
136
|
+
*
|
|
137
|
+
* @default 'class'
|
|
138
|
+
*/
|
|
139
|
+
dark?: 'class' | 'media' | DarkModeSelectors;
|
|
140
|
+
/**
|
|
141
|
+
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
|
|
142
|
+
*
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
attributifyPseudo?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Prefix for CSS variables.
|
|
148
|
+
*
|
|
149
|
+
* @default 'un-'
|
|
150
|
+
*/
|
|
151
|
+
variablePrefix?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
|
|
154
|
+
*
|
|
155
|
+
* @default undefined
|
|
156
|
+
*/
|
|
157
|
+
prefix?: string | string[];
|
|
158
|
+
/**
|
|
159
|
+
* Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
|
|
160
|
+
*
|
|
161
|
+
* Disable this might slightly improve the performance.
|
|
162
|
+
*
|
|
163
|
+
* @default true
|
|
164
|
+
*/
|
|
165
|
+
arbitraryVariants?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* The important option lets you control whether UnoCSS’s utilities should be marked with `!important`.
|
|
168
|
+
*
|
|
169
|
+
* This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
|
|
170
|
+
*
|
|
171
|
+
* You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
|
|
172
|
+
*
|
|
173
|
+
* Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
|
|
174
|
+
*
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
important?: boolean | string;
|
|
178
|
+
/**
|
|
179
|
+
* Control the preflight styles.
|
|
180
|
+
*/
|
|
181
|
+
preflights?: {
|
|
182
|
+
/**
|
|
183
|
+
* Reset the default preflight styles.
|
|
184
|
+
*
|
|
185
|
+
* @default true
|
|
186
|
+
*/
|
|
187
|
+
reset?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Theme configuration for preflight styles.
|
|
190
|
+
*
|
|
191
|
+
* This can either be a specific mode from `PreflightsTheme['mode']` or a full `PreflightsTheme` object.
|
|
192
|
+
*
|
|
193
|
+
* The theme defines the base styles applied to elements and can be customized
|
|
194
|
+
* to match the design system or requirements of your project.
|
|
195
|
+
*/
|
|
196
|
+
theme?: PreflightsTheme['mode'] | PreflightsTheme;
|
|
197
|
+
/**
|
|
198
|
+
* Configuration for property preflight generation.
|
|
199
|
+
*
|
|
200
|
+
* - `false`: Disable property preflight
|
|
201
|
+
* - `true` or `undefined`: Enable with default configuration
|
|
202
|
+
* - `object`: Enable with custom configuration
|
|
203
|
+
*/
|
|
204
|
+
property?: boolean | {
|
|
205
|
+
/**
|
|
206
|
+
* Custom parent selector (e.g., @supports query or @layer).
|
|
207
|
+
*
|
|
208
|
+
* - `string`: Use custom parent selector
|
|
209
|
+
* - `false`: No parent wrapper, apply properties directly to selector
|
|
210
|
+
* - `undefined`: Use default @supports query
|
|
211
|
+
*
|
|
212
|
+
* @default '@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))'
|
|
213
|
+
*/
|
|
214
|
+
parent?: string | false;
|
|
215
|
+
/**
|
|
216
|
+
* Custom selector for applying properties.
|
|
217
|
+
*
|
|
218
|
+
* @default '*, ::before, ::after, ::backdrop'
|
|
219
|
+
*/
|
|
220
|
+
selector?: string;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
declare const presetWind4: _unocss_core0.PresetFactory<Theme, PresetWind4Options>;
|
|
225
|
+
//#endregion
|
|
226
|
+
export { variantLanguageDirections as A, variantBreakpoints as B, variantForcedColors as C, variantPrint as D, variantOrientations as E, variantColorsScheme as F, preflights as G, variantTaggedAriaAttributes as H, variantContainerQuery as I, postprocessors as J, varPrefix as K, variantCombinators as L, variantDataAttribute as M, variantTaggedDataAttributes as N, variantScripting as O, variantColorsMediaOrClass as P, variantSvgCombinators as R, variantCustomMedia as S, variantNoscript as T, shorthands as U, variantAria as V, shortcuts as W, variantSelector as _, variantSupports as a, variantVariables as b, variantPseudoClassFunctions as c, placeholderModifier as d, variantNegative as f, variantScope as g, variantInternalLayer as h, presetWind4 as i, variants as j, variantImportant as k, variantPseudoClassesAndElements as l, variantImplicitGroup as m, PreflightsTheme as n, variantStartingStyle as o, variantCssLayer as p, important as q, PresetWind4Options as r, variantPartClasses as s, DarkModeSelectors as t, variantTaggedPseudoClasses as u, variantStickyHover as v, variantMotions as w, variantContrasts as x, variantTheme as y, variantChildren as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { C as Theme, E as theme } from "./theme-BcMDscP8.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { G as preflights, J as postprocessors, U as shorthands, W as shortcuts, i as presetWind4, j as variants, n as PreflightsTheme, r as PresetWind4Options, t as DarkModeSelectors } from "./index-DG4CYhPr.mjs";
|
|
3
|
+
import { bt as rules } from "./rules-CWCmuPTy.mjs";
|
|
3
4
|
export { DarkModeSelectors, PreflightsTheme, PresetWind4Options, Theme, presetWind4 as default, presetWind4, postprocessors, preflights, rules, shortcuts, shorthands, theme, variants };
|
package/dist/postprocess.d.mts
CHANGED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { C as Theme$1 } from "./theme-BcMDscP8.mjs";
|
|
2
|
+
import { CSSEntries, CSSValueInput, Rule, Shortcut, StaticRule, VariantHandler } from "@unocss/core";
|
|
3
|
+
import { Theme } from "@unocss/preset-wind4";
|
|
4
|
+
|
|
5
|
+
//#region src/rules/align.d.ts
|
|
6
|
+
declare const verticalAligns: Rule<Theme$1>[];
|
|
7
|
+
declare const textAligns: Rule<Theme$1>[];
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/rules/animation.d.ts
|
|
10
|
+
declare const animations: Rule<Theme$1>[];
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/rules/background.d.ts
|
|
13
|
+
declare const backgroundStyles: Rule<Theme$1>[];
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/rules/behaviors.d.ts
|
|
16
|
+
declare const outline: Rule<Theme$1>[];
|
|
17
|
+
declare const appearance: Rule<Theme$1>[];
|
|
18
|
+
declare const willChange: Rule<Theme$1>[];
|
|
19
|
+
declare const listStyle: Rule<Theme$1>[];
|
|
20
|
+
declare const accents: Rule<Theme$1>[];
|
|
21
|
+
declare const carets: Rule<Theme$1>[];
|
|
22
|
+
declare const imageRenderings: Rule<Theme$1>[];
|
|
23
|
+
declare const overscrolls: Rule<Theme$1>[];
|
|
24
|
+
declare const scrollBehaviors: Rule<Theme$1>[];
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/rules/border.d.ts
|
|
27
|
+
declare const borderStyles: string[];
|
|
28
|
+
declare const borders: Rule<Theme$1>[];
|
|
29
|
+
declare function handlerBorderStyle([, a, s]: string[]): CSSEntries | undefined;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/rules/color.d.ts
|
|
32
|
+
/**
|
|
33
|
+
* @example op10 op-30 opacity-100
|
|
34
|
+
*/
|
|
35
|
+
declare const opacity: Rule<Theme$1>[];
|
|
36
|
+
declare const bgColors: Rule<Theme$1>[];
|
|
37
|
+
declare const colorScheme: Rule<Theme$1>[];
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/rules/columns.d.ts
|
|
40
|
+
declare const columns: Rule<Theme$1>[];
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/rules/container.d.ts
|
|
43
|
+
declare const containerParent: Rule<Theme$1>[];
|
|
44
|
+
declare const container: Rule<Theme$1>[];
|
|
45
|
+
declare const containerShortcuts: Shortcut<Theme$1>[];
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/rules/decoration.d.ts
|
|
48
|
+
declare const textDecorations: Rule<Theme$1>[];
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/rules/default.d.ts
|
|
51
|
+
declare const rules: Rule<Theme$1>[];
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/rules/divide.d.ts
|
|
54
|
+
declare const divides: Rule<Theme$1>[];
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/rules/filters.d.ts
|
|
57
|
+
declare const filters: Rule<Theme$1>[];
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/rules/flex.d.ts
|
|
60
|
+
declare const flex: Rule<Theme$1>[];
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/rules/gap.d.ts
|
|
63
|
+
declare const gaps: Rule<Theme$1>[];
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/rules/grid.d.ts
|
|
66
|
+
declare const grids: Rule<Theme$1>[];
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/rules/layout.d.ts
|
|
69
|
+
declare const overflows: Rule<Theme$1>[];
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/rules/line-clamp.d.ts
|
|
72
|
+
declare const lineClamps: Rule<Theme$1>[];
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/rules/mask.d.ts
|
|
75
|
+
declare const masks: Rule<Theme>[];
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/rules/placeholder.d.ts
|
|
78
|
+
declare const placeholders: Rule<Theme$1>[];
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/rules/position.d.ts
|
|
81
|
+
declare const positions: Rule<Theme$1>[];
|
|
82
|
+
declare const justifies: StaticRule[];
|
|
83
|
+
declare const orders: Rule<Theme$1>[];
|
|
84
|
+
declare const alignments: StaticRule[];
|
|
85
|
+
declare const placements: StaticRule[];
|
|
86
|
+
/**
|
|
87
|
+
* This is to add `flex-` and `grid-` prefix to the alignment rules,
|
|
88
|
+
* supporting `flex="~ items-center"` in attributify mode.
|
|
89
|
+
*/
|
|
90
|
+
declare const flexGridJustifiesAlignments: StaticRule[];
|
|
91
|
+
declare const insets: Rule<Theme$1>[];
|
|
92
|
+
declare const floats: Rule<Theme$1>[];
|
|
93
|
+
declare const zIndexes: Rule<Theme$1>[];
|
|
94
|
+
declare const boxSizing: Rule<Theme$1>[];
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/rules/question-mark.d.ts
|
|
97
|
+
/**
|
|
98
|
+
* Used for debugging, only available in development mode.
|
|
99
|
+
*
|
|
100
|
+
* @example `?` / `where`
|
|
101
|
+
*/
|
|
102
|
+
declare const questionMark: Rule<Theme$1>[];
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region src/rules/ring.d.ts
|
|
105
|
+
declare const rings: Rule<Theme$1>[];
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/rules/scrolls.d.ts
|
|
108
|
+
declare const scrolls: Rule<Theme$1>[];
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/rules/shadow.d.ts
|
|
111
|
+
declare const shadowProperties: {
|
|
112
|
+
shadow: CSSValueInput;
|
|
113
|
+
shadowColor: CSSValueInput;
|
|
114
|
+
insetShadow: CSSValueInput;
|
|
115
|
+
insetShadowColor: CSSValueInput;
|
|
116
|
+
ringColor: CSSValueInput;
|
|
117
|
+
ringShadow: CSSValueInput;
|
|
118
|
+
insetRingColor: CSSValueInput;
|
|
119
|
+
insetRingShadow: CSSValueInput;
|
|
120
|
+
ringInset: CSSValueInput;
|
|
121
|
+
ringOffsetWidth: CSSValueInput;
|
|
122
|
+
ringOffsetColor: CSSValueInput;
|
|
123
|
+
ringOffsetShadow: CSSValueInput;
|
|
124
|
+
};
|
|
125
|
+
declare const boxShadows: Rule<Theme$1>[];
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/rules/size.d.ts
|
|
128
|
+
declare const sizes: Rule<Theme$1>[];
|
|
129
|
+
declare const aspectRatio: Rule<Theme$1>[];
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region src/rules/spacing.d.ts
|
|
132
|
+
declare const paddings: Rule<Theme$1>[];
|
|
133
|
+
declare const margins: Rule<Theme$1>[];
|
|
134
|
+
declare const spaces: Rule<Theme$1>[];
|
|
135
|
+
declare function notLastChildSelectorVariant(s: string): VariantHandler;
|
|
136
|
+
//#endregion
|
|
137
|
+
//#region src/rules/static.d.ts
|
|
138
|
+
declare const displays: Rule<Theme$1>[];
|
|
139
|
+
declare const appearances: Rule<Theme$1>[];
|
|
140
|
+
declare const cursors: Rule<Theme$1>[];
|
|
141
|
+
declare const contains: Rule<Theme$1>[];
|
|
142
|
+
declare const pointerEvents: Rule<Theme$1>[];
|
|
143
|
+
declare const resizes: Rule<Theme$1>[];
|
|
144
|
+
declare const userSelects: Rule<Theme$1>[];
|
|
145
|
+
declare const whitespaces: Rule<Theme$1>[];
|
|
146
|
+
declare const contentVisibility: Rule<Theme$1>[];
|
|
147
|
+
declare const contents: Rule<Theme$1>[];
|
|
148
|
+
declare const breaks: Rule<Theme$1>[];
|
|
149
|
+
declare const textWraps: Rule<Theme$1>[];
|
|
150
|
+
declare const textOverflows: Rule<Theme$1>[];
|
|
151
|
+
declare const textTransforms: Rule<Theme$1>[];
|
|
152
|
+
declare const fontStyles: Rule<Theme$1>[];
|
|
153
|
+
declare const fontSmoothings: Rule<Theme$1>[];
|
|
154
|
+
declare const hyphens: Rule<Theme$1>[];
|
|
155
|
+
declare const writingModes: Rule<Theme$1>[];
|
|
156
|
+
declare const writingOrientations: Rule<Theme$1>[];
|
|
157
|
+
declare const screenReadersAccess: Rule<Theme$1>[];
|
|
158
|
+
declare const isolations: Rule<Theme$1>[];
|
|
159
|
+
declare const objectPositions: Rule<Theme$1>[];
|
|
160
|
+
declare const backgroundBlendModes: Rule<Theme$1>[];
|
|
161
|
+
declare const mixBlendModes: Rule<Theme$1>[];
|
|
162
|
+
declare const dynamicViewportHeight: Rule<Theme$1>[];
|
|
163
|
+
declare const accessibility: Rule<Theme$1>[];
|
|
164
|
+
declare const fieldSizing: Rule<Theme$1>[];
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/rules/svg.d.ts
|
|
167
|
+
declare const svgUtilities: Rule<Theme$1>[];
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/rules/table.d.ts
|
|
170
|
+
declare const tables: Rule<Theme$1>[];
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region src/rules/touch-actions.d.ts
|
|
173
|
+
declare const touchActions: Rule<Theme$1>[];
|
|
174
|
+
//#endregion
|
|
175
|
+
//#region src/rules/transform.d.ts
|
|
176
|
+
declare const transformBase: {
|
|
177
|
+
'--un-rotate-x': string;
|
|
178
|
+
'--un-rotate-y': string;
|
|
179
|
+
'--un-rotate-z': string;
|
|
180
|
+
'--un-skew-x': string;
|
|
181
|
+
'--un-skew-y': string;
|
|
182
|
+
'--un-translate-x': number;
|
|
183
|
+
'--un-translate-y': number;
|
|
184
|
+
'--un-translate-z': number;
|
|
185
|
+
};
|
|
186
|
+
declare const transforms: Rule<Theme$1>[];
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/rules/transition.d.ts
|
|
189
|
+
declare const transitions: Rule<Theme$1>[];
|
|
190
|
+
//#endregion
|
|
191
|
+
//#region src/rules/typography.d.ts
|
|
192
|
+
declare const fonts: Rule<Theme$1>[];
|
|
193
|
+
declare const tabSizes: Rule<Theme$1>[];
|
|
194
|
+
declare const textIndents: Rule<Theme$1>[];
|
|
195
|
+
declare const textStrokes: Rule<Theme$1>[];
|
|
196
|
+
declare const textShadows: Rule<Theme$1>[];
|
|
197
|
+
declare const fontVariantNumeric: Rule<Theme$1>[];
|
|
198
|
+
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/rules/variables.d.ts
|
|
201
|
+
declare const cssVariables: Rule<Theme$1>[];
|
|
202
|
+
declare const cssProperty: Rule<Theme$1>[];
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region src/rules/view-transition.d.ts
|
|
205
|
+
declare const viewTransition: Rule<Theme$1>[];
|
|
206
|
+
//#endregion
|
|
207
|
+
export { rings as $, hyphens as A, borders as At, userSelects as B, willChange as Bt, contents as C, containerParent as Ct, fieldSizing as D, colorScheme as Dt, dynamicViewportHeight as E, bgColors as Et, resizes as F, imageRenderings as Ft, notLastChildSelectorVariant as G, writingModes as H, animations as Ht, screenReadersAccess as I, listStyle as It, aspectRatio as J, paddings as K, textOverflows as L, outline as Lt, mixBlendModes as M, accents as Mt, objectPositions as N, appearance as Nt, fontSmoothings as O, opacity as Ot, pointerEvents as P, carets as Pt, scrolls as Q, textTransforms as R, overscrolls as Rt, contentVisibility as S, container as St, displays as T, columns as Tt, writingOrientations as U, textAligns as Ut, whitespaces as V, backgroundStyles as Vt, margins as W, verticalAligns as Wt, boxShadows as X, sizes as Y, shadowProperties as Z, accessibility as _, flex as _t, fonts as a, insets as at, breaks as b, rules as bt, textIndents as c, placements as ct, transitions as d, placeholders as dt, questionMark as et, transformBase as f, masks as ft, svgUtilities as g, gaps as gt, tables as h, grids as ht, fontVariantNumeric as i, floats as it, isolations as j, handlerBorderStyle as jt, fontStyles as k, borderStyles as kt, textShadows as l, positions as lt, touchActions as m, overflows as mt, cssProperty as n, boxSizing as nt, splitShorthand as o, justifies as ot, transforms as p, lineClamps as pt, spaces as q, cssVariables as r, flexGridJustifiesAlignments as rt, tabSizes as s, orders as st, viewTransition as t, alignments as tt, textStrokes as u, zIndexes as ut, appearances as v, filters as vt, cursors as w, containerShortcuts as wt, contains as x, textDecorations as xt, backgroundBlendModes as y, divides as yt, textWraps as z, scrollBehaviors as zt };
|
package/dist/rules.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as rings, A as hyphens, At as borders, B as userSelects, Bt as willChange, C as contents, Ct as containerParent, D as fieldSizing, Dt as colorScheme, E as dynamicViewportHeight, Et as bgColors, F as resizes, Ft as imageRenderings, G as notLastChildSelectorVariant, H as writingModes, Ht as animations, I as screenReadersAccess, It as listStyle, J as aspectRatio, K as paddings, L as textOverflows, Lt as outline, M as mixBlendModes, Mt as accents, N as objectPositions, Nt as appearance, O as fontSmoothings, Ot as opacity, P as pointerEvents, Pt as carets, Q as scrolls, R as textTransforms, Rt as overscrolls, S as contentVisibility, St as container, T as displays, Tt as columns, U as writingOrientations, Ut as textAligns, V as whitespaces, Vt as backgroundStyles, W as margins, Wt as verticalAligns, X as boxShadows, Y as sizes, Z as shadowProperties, _ as accessibility, _t as flex, a as fonts, at as insets, b as breaks, bt as rules, c as textIndents, ct as placements, d as transitions, dt as placeholders, et as questionMark, f as transformBase, ft as masks, g as svgUtilities, gt as gaps, h as tables, ht as grids, i as fontVariantNumeric, it as floats, j as isolations, jt as handlerBorderStyle, k as fontStyles, kt as borderStyles, l as textShadows, lt as positions, m as touchActions, mt as overflows, n as cssProperty, nt as boxSizing, o as splitShorthand, ot as justifies, p as transforms, pt as lineClamps, q as spaces, r as cssVariables, rt as flexGridJustifiesAlignments, s as tabSizes, st as orders, t as viewTransition, tt as alignments, u as textStrokes, ut as zIndexes, v as appearances, vt as filters, w as cursors, wt as containerShortcuts, x as contains, xt as textDecorations, y as backgroundBlendModes, yt as divides, z as textWraps, zt as scrollBehaviors } from "./rules-CWCmuPTy.mjs";
|
|
2
2
|
export { accents, accessibility, alignments, animations, appearance, appearances, aspectRatio, backgroundBlendModes, backgroundStyles, bgColors, borderStyles, borders, boxShadows, boxSizing, breaks, carets, colorScheme, columns, container, containerParent, containerShortcuts, contains, contentVisibility, contents, cssProperty, cssVariables, cursors, displays, divides, dynamicViewportHeight, fieldSizing, filters, flex, flexGridJustifiesAlignments, floats, fontSmoothings, fontStyles, fontVariantNumeric, fonts, gaps, grids, handlerBorderStyle, hyphens, imageRenderings, insets, isolations, justifies, lineClamps, listStyle, margins, masks, mixBlendModes, notLastChildSelectorVariant, objectPositions, opacity, orders, outline, overflows, overscrolls, paddings, placeholders, placements, pointerEvents, positions, questionMark, resizes, rings, rules, screenReadersAccess, scrollBehaviors, scrolls, shadowProperties, sizes, spaces, splitShorthand, svgUtilities, tabSizes, tables, textAligns, textDecorations, textIndents, textOverflows, textShadows, textStrokes, textTransforms, textWraps, touchActions, transformBase, transforms, transitions, userSelects, verticalAligns, viewTransition, whitespaces, willChange, writingModes, writingOrientations, zIndexes };
|
package/dist/rules.mjs
CHANGED
|
@@ -1830,6 +1830,9 @@ function getSizeValue(theme, hw, prop) {
|
|
|
1830
1830
|
case "min":
|
|
1831
1831
|
v = `${prop}-content`;
|
|
1832
1832
|
break;
|
|
1833
|
+
case "stretch":
|
|
1834
|
+
v = "stretch";
|
|
1835
|
+
break;
|
|
1833
1836
|
case "screen":
|
|
1834
1837
|
v = hw === "w" ? "100vw" : "100vh";
|
|
1835
1838
|
break;
|
|
@@ -2016,9 +2019,20 @@ const whitespaces = [[
|
|
|
2016
2019
|
]];
|
|
2017
2020
|
const contentVisibility = [
|
|
2018
2021
|
[
|
|
2019
|
-
/^intrinsic
|
|
2020
|
-
([, d]) =>
|
|
2021
|
-
|
|
2022
|
+
/^intrinsic(?:-(block|inline|w|h))?(?:-size)?-(.+)$/,
|
|
2023
|
+
([, d, s]) => {
|
|
2024
|
+
return { [`contain-intrinsic-${{
|
|
2025
|
+
block: "block-size",
|
|
2026
|
+
inline: "inline-size",
|
|
2027
|
+
w: "width",
|
|
2028
|
+
h: "height"
|
|
2029
|
+
}[d] ?? "size"}`]: h.bracket.cssvar.global.fraction.rem(s) };
|
|
2030
|
+
},
|
|
2031
|
+
{ autocomplete: [
|
|
2032
|
+
"intrinsic-size-<num>",
|
|
2033
|
+
"intrinsic-<num>",
|
|
2034
|
+
"intrinsic-(block|inline|w|h)-<num>"
|
|
2035
|
+
] }
|
|
2022
2036
|
],
|
|
2023
2037
|
["content-visibility-visible", { "content-visibility": "visible" }],
|
|
2024
2038
|
["content-visibility-hidden", { "content-visibility": "hidden" }],
|
package/dist/shortcuts.d.mts
CHANGED
package/dist/shortcuts.mjs
CHANGED
package/dist/variants.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { A as variantLanguageDirections, B as variantBreakpoints, C as variantForcedColors, D as variantPrint, E as variantOrientations, F as variantColorsScheme, H as variantTaggedAriaAttributes, I as variantContainerQuery, L as variantCombinators, M as variantDataAttribute, N as variantTaggedDataAttributes, O as variantScripting, P as variantColorsMediaOrClass, R as variantSvgCombinators, S as variantCustomMedia, T as variantNoscript, V as variantAria, _ as variantSelector, a as variantSupports, b as variantVariables, c as variantPseudoClassFunctions, d as placeholderModifier, f as variantNegative, g as variantScope, h as variantInternalLayer, j as variants, k as variantImportant, l as variantPseudoClassesAndElements, m as variantImplicitGroup, o as variantStartingStyle, p as variantCssLayer, s as variantPartClasses, u as variantTaggedPseudoClasses, v as variantStickyHover, w as variantMotions, x as variantContrasts, y as variantTheme, z as variantChildren } from "./index-
|
|
1
|
+
import { A as variantLanguageDirections, B as variantBreakpoints, C as variantForcedColors, D as variantPrint, E as variantOrientations, F as variantColorsScheme, H as variantTaggedAriaAttributes, I as variantContainerQuery, L as variantCombinators, M as variantDataAttribute, N as variantTaggedDataAttributes, O as variantScripting, P as variantColorsMediaOrClass, R as variantSvgCombinators, S as variantCustomMedia, T as variantNoscript, V as variantAria, _ as variantSelector, a as variantSupports, b as variantVariables, c as variantPseudoClassFunctions, d as placeholderModifier, f as variantNegative, g as variantScope, h as variantInternalLayer, j as variants, k as variantImportant, l as variantPseudoClassesAndElements, m as variantImplicitGroup, o as variantStartingStyle, p as variantCssLayer, s as variantPartClasses, u as variantTaggedPseudoClasses, v as variantStickyHover, w as variantMotions, x as variantContrasts, y as variantTheme, z as variantChildren } from "./index-DG4CYhPr.mjs";
|
|
2
|
+
import "./rules-CWCmuPTy.mjs";
|
|
2
3
|
export { placeholderModifier, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantColorsScheme, variantCombinators, variantContainerQuery, variantContrasts, variantCssLayer, variantCustomMedia, variantDataAttribute, variantForcedColors, variantImplicitGroup, variantImportant, variantInternalLayer, variantLanguageDirections, variantMotions, variantNegative, variantNoscript, variantOrientations, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantScripting, variantSelector, variantStartingStyle, variantStickyHover, variantSupports, variantSvgCombinators, variantTaggedAriaAttributes, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/dist/variants.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import "./utils-BiCtQrPC.mjs";
|
|
2
1
|
import { A as variantColorsMediaOrClass, C as variantOrientations, D as variantLanguageDirections, E as variantImportant, F as variantChildren, I as variantBreakpoints, L as variantAria, M as variantContainerQuery, N as variantCombinators, O as variantDataAttribute, P as variantSvgCombinators, R as variantTaggedAriaAttributes, S as variantNoscript, T as variantScripting, _ as variantVariables, a as variantPseudoClassFunctions, b as variantForcedColors, c as placeholderModifier, d as variantImplicitGroup, f as variantInternalLayer, g as variantTheme, h as variantStickyHover, i as variantPartClasses, j as variantColorsScheme, k as variantTaggedDataAttributes, l as variantNegative, m as variantSelector, n as variantSupports, o as variantPseudoClassesAndElements, p as variantScope, r as variantStartingStyle, s as variantTaggedPseudoClasses, t as variants, u as variantCssLayer, v as variantContrasts, w as variantPrint, x as variantMotions, y as variantCustomMedia } from "./variants-jhZqwv4U.mjs";
|
|
3
2
|
|
|
4
3
|
export { placeholderModifier, variantAria, variantBreakpoints, variantChildren, variantColorsMediaOrClass, variantColorsScheme, variantCombinators, variantContainerQuery, variantContrasts, variantCssLayer, variantCustomMedia, variantDataAttribute, variantForcedColors, variantImplicitGroup, variantImportant, variantInternalLayer, variantLanguageDirections, variantMotions, variantNegative, variantNoscript, variantOrientations, variantPartClasses, variantPrint, variantPseudoClassFunctions, variantPseudoClassesAndElements, variantScope, variantScripting, variantSelector, variantStartingStyle, variantStickyHover, variantSupports, variantSvgCombinators, variantTaggedAriaAttributes, variantTaggedDataAttributes, variantTaggedPseudoClasses, variantTheme, variantVariables, variants };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-wind4",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.
|
|
4
|
+
"version": "66.6.0",
|
|
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.
|
|
78
|
-
"@unocss/rule-utils": "66.
|
|
79
|
-
"@unocss/extractor-arbitrary-variants": "66.
|
|
77
|
+
"@unocss/core": "66.6.0",
|
|
78
|
+
"@unocss/rule-utils": "66.6.0",
|
|
79
|
+
"@unocss/extractor-arbitrary-variants": "66.6.0"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build": "tsdown --config-loader unrun",
|
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
import { C as Theme } from "./theme-BcMDscP8.mjs";
|
|
2
|
-
import * as _unocss_core0 from "@unocss/core";
|
|
3
|
-
import { Arrayable, CSSEntries, CSSEntry, CSSValueInput, Postprocessor, Preflight, PreflightContext, PresetOptions, Rule, Shortcut, StaticRule, Variant, VariantFunction, VariantHandler, VariantObject } from "@unocss/core";
|
|
4
|
-
|
|
5
|
-
//#region src/postprocess/default.d.ts
|
|
6
|
-
declare function postprocessors(options: PresetWind4Options): Postprocessor[];
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/postprocess/important.d.ts
|
|
9
|
-
declare function important({
|
|
10
|
-
important: option
|
|
11
|
-
}: PresetWind4Options): Postprocessor[];
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/postprocess/varPrefix.d.ts
|
|
14
|
-
declare function varPrefix({
|
|
15
|
-
variablePrefix: prefix
|
|
16
|
-
}: PresetWind4Options): Postprocessor[];
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region src/preflights/index.d.ts
|
|
19
|
-
declare const preflights: (options: PresetWind4Options) => Preflight<Theme>[];
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region src/rules/align.d.ts
|
|
22
|
-
declare const verticalAligns: Rule<Theme>[];
|
|
23
|
-
declare const textAligns: Rule<Theme>[];
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/rules/animation.d.ts
|
|
26
|
-
declare const animations: Rule<Theme>[];
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/rules/background.d.ts
|
|
29
|
-
declare const backgroundStyles: Rule<Theme>[];
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/rules/behaviors.d.ts
|
|
32
|
-
declare const outline: Rule<Theme>[];
|
|
33
|
-
declare const appearance: Rule<Theme>[];
|
|
34
|
-
declare const willChange: Rule<Theme>[];
|
|
35
|
-
declare const listStyle: Rule<Theme>[];
|
|
36
|
-
declare const accents: Rule<Theme>[];
|
|
37
|
-
declare const carets: Rule<Theme>[];
|
|
38
|
-
declare const imageRenderings: Rule<Theme>[];
|
|
39
|
-
declare const overscrolls: Rule<Theme>[];
|
|
40
|
-
declare const scrollBehaviors: Rule<Theme>[];
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/rules/border.d.ts
|
|
43
|
-
declare const borderStyles: string[];
|
|
44
|
-
declare const borders: Rule<Theme>[];
|
|
45
|
-
declare function handlerBorderStyle([, a, s]: string[]): CSSEntries | undefined;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/rules/color.d.ts
|
|
48
|
-
/**
|
|
49
|
-
* @example op10 op-30 opacity-100
|
|
50
|
-
*/
|
|
51
|
-
declare const opacity: Rule<Theme>[];
|
|
52
|
-
declare const bgColors: Rule<Theme>[];
|
|
53
|
-
declare const colorScheme: Rule<Theme>[];
|
|
54
|
-
//#endregion
|
|
55
|
-
//#region src/rules/columns.d.ts
|
|
56
|
-
declare const columns: Rule<Theme>[];
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region src/rules/container.d.ts
|
|
59
|
-
declare const containerParent: Rule<Theme>[];
|
|
60
|
-
declare const container: Rule<Theme>[];
|
|
61
|
-
declare const containerShortcuts: Shortcut<Theme>[];
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/rules/decoration.d.ts
|
|
64
|
-
declare const textDecorations: Rule<Theme>[];
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/rules/default.d.ts
|
|
67
|
-
declare const rules: Rule<Theme>[];
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/rules/divide.d.ts
|
|
70
|
-
declare const divides: Rule<Theme>[];
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region src/rules/filters.d.ts
|
|
73
|
-
declare const filters: Rule<Theme>[];
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region src/rules/flex.d.ts
|
|
76
|
-
declare const flex: Rule<Theme>[];
|
|
77
|
-
//#endregion
|
|
78
|
-
//#region src/rules/gap.d.ts
|
|
79
|
-
declare const gaps: Rule<Theme>[];
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region src/rules/grid.d.ts
|
|
82
|
-
declare const grids: Rule<Theme>[];
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/rules/layout.d.ts
|
|
85
|
-
declare const overflows: Rule<Theme>[];
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region src/rules/line-clamp.d.ts
|
|
88
|
-
declare const lineClamps: Rule<Theme>[];
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/rules/mask.d.ts
|
|
91
|
-
declare const masks: Rule<Theme>[];
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region src/rules/placeholder.d.ts
|
|
94
|
-
declare const placeholders: Rule<Theme>[];
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/rules/position.d.ts
|
|
97
|
-
declare const positions: Rule<Theme>[];
|
|
98
|
-
declare const justifies: StaticRule[];
|
|
99
|
-
declare const orders: Rule<Theme>[];
|
|
100
|
-
declare const alignments: StaticRule[];
|
|
101
|
-
declare const placements: StaticRule[];
|
|
102
|
-
/**
|
|
103
|
-
* This is to add `flex-` and `grid-` prefix to the alignment rules,
|
|
104
|
-
* supporting `flex="~ items-center"` in attributify mode.
|
|
105
|
-
*/
|
|
106
|
-
declare const flexGridJustifiesAlignments: StaticRule[];
|
|
107
|
-
declare const insets: Rule<Theme>[];
|
|
108
|
-
declare const floats: Rule<Theme>[];
|
|
109
|
-
declare const zIndexes: Rule<Theme>[];
|
|
110
|
-
declare const boxSizing: Rule<Theme>[];
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region src/rules/question-mark.d.ts
|
|
113
|
-
/**
|
|
114
|
-
* Used for debugging, only available in development mode.
|
|
115
|
-
*
|
|
116
|
-
* @example `?` / `where`
|
|
117
|
-
*/
|
|
118
|
-
declare const questionMark: Rule<Theme>[];
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/rules/ring.d.ts
|
|
121
|
-
declare const rings: Rule<Theme>[];
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region src/rules/scrolls.d.ts
|
|
124
|
-
declare const scrolls: Rule<Theme>[];
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/rules/shadow.d.ts
|
|
127
|
-
declare const shadowProperties: {
|
|
128
|
-
shadow: CSSValueInput;
|
|
129
|
-
shadowColor: CSSValueInput;
|
|
130
|
-
insetShadow: CSSValueInput;
|
|
131
|
-
insetShadowColor: CSSValueInput;
|
|
132
|
-
ringColor: CSSValueInput;
|
|
133
|
-
ringShadow: CSSValueInput;
|
|
134
|
-
insetRingColor: CSSValueInput;
|
|
135
|
-
insetRingShadow: CSSValueInput;
|
|
136
|
-
ringInset: CSSValueInput;
|
|
137
|
-
ringOffsetWidth: CSSValueInput;
|
|
138
|
-
ringOffsetColor: CSSValueInput;
|
|
139
|
-
ringOffsetShadow: CSSValueInput;
|
|
140
|
-
};
|
|
141
|
-
declare const boxShadows: Rule<Theme>[];
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region src/rules/size.d.ts
|
|
144
|
-
declare const sizes: Rule<Theme>[];
|
|
145
|
-
declare const aspectRatio: Rule<Theme>[];
|
|
146
|
-
//#endregion
|
|
147
|
-
//#region src/rules/spacing.d.ts
|
|
148
|
-
declare const paddings: Rule<Theme>[];
|
|
149
|
-
declare const margins: Rule<Theme>[];
|
|
150
|
-
declare const spaces: Rule<Theme>[];
|
|
151
|
-
declare function notLastChildSelectorVariant(s: string): VariantHandler;
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/rules/static.d.ts
|
|
154
|
-
declare const displays: Rule<Theme>[];
|
|
155
|
-
declare const appearances: Rule<Theme>[];
|
|
156
|
-
declare const cursors: Rule<Theme>[];
|
|
157
|
-
declare const contains: Rule<Theme>[];
|
|
158
|
-
declare const pointerEvents: Rule<Theme>[];
|
|
159
|
-
declare const resizes: Rule<Theme>[];
|
|
160
|
-
declare const userSelects: Rule<Theme>[];
|
|
161
|
-
declare const whitespaces: Rule<Theme>[];
|
|
162
|
-
declare const contentVisibility: Rule<Theme>[];
|
|
163
|
-
declare const contents: Rule<Theme>[];
|
|
164
|
-
declare const breaks: Rule<Theme>[];
|
|
165
|
-
declare const textWraps: Rule<Theme>[];
|
|
166
|
-
declare const textOverflows: Rule<Theme>[];
|
|
167
|
-
declare const textTransforms: Rule<Theme>[];
|
|
168
|
-
declare const fontStyles: Rule<Theme>[];
|
|
169
|
-
declare const fontSmoothings: Rule<Theme>[];
|
|
170
|
-
declare const hyphens: Rule<Theme>[];
|
|
171
|
-
declare const writingModes: Rule<Theme>[];
|
|
172
|
-
declare const writingOrientations: Rule<Theme>[];
|
|
173
|
-
declare const screenReadersAccess: Rule<Theme>[];
|
|
174
|
-
declare const isolations: Rule<Theme>[];
|
|
175
|
-
declare const objectPositions: Rule<Theme>[];
|
|
176
|
-
declare const backgroundBlendModes: Rule<Theme>[];
|
|
177
|
-
declare const mixBlendModes: Rule<Theme>[];
|
|
178
|
-
declare const dynamicViewportHeight: Rule<Theme>[];
|
|
179
|
-
declare const accessibility: Rule<Theme>[];
|
|
180
|
-
declare const fieldSizing: Rule<Theme>[];
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region src/rules/svg.d.ts
|
|
183
|
-
declare const svgUtilities: Rule<Theme>[];
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region src/rules/table.d.ts
|
|
186
|
-
declare const tables: Rule<Theme>[];
|
|
187
|
-
//#endregion
|
|
188
|
-
//#region src/rules/touch-actions.d.ts
|
|
189
|
-
declare const touchActions: Rule<Theme>[];
|
|
190
|
-
//#endregion
|
|
191
|
-
//#region src/rules/transform.d.ts
|
|
192
|
-
declare const transformBase: {
|
|
193
|
-
'--un-rotate-x': string;
|
|
194
|
-
'--un-rotate-y': string;
|
|
195
|
-
'--un-rotate-z': string;
|
|
196
|
-
'--un-skew-x': string;
|
|
197
|
-
'--un-skew-y': string;
|
|
198
|
-
'--un-translate-x': number;
|
|
199
|
-
'--un-translate-y': number;
|
|
200
|
-
'--un-translate-z': number;
|
|
201
|
-
};
|
|
202
|
-
declare const transforms: Rule<Theme>[];
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/rules/transition.d.ts
|
|
205
|
-
declare const transitions: Rule<Theme>[];
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/rules/typography.d.ts
|
|
208
|
-
declare const fonts: Rule<Theme>[];
|
|
209
|
-
declare const tabSizes: Rule<Theme>[];
|
|
210
|
-
declare const textIndents: Rule<Theme>[];
|
|
211
|
-
declare const textStrokes: Rule<Theme>[];
|
|
212
|
-
declare const textShadows: Rule<Theme>[];
|
|
213
|
-
declare const fontVariantNumeric: Rule<Theme>[];
|
|
214
|
-
declare function splitShorthand(body: string, type: string): string[] | undefined;
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region src/rules/variables.d.ts
|
|
217
|
-
declare const cssVariables: Rule<Theme>[];
|
|
218
|
-
declare const cssProperty: Rule<Theme>[];
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/rules/view-transition.d.ts
|
|
221
|
-
declare const viewTransition: Rule<Theme>[];
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/shortcuts/index.d.ts
|
|
224
|
-
declare const shortcuts: _unocss_core0.Shortcut<Theme>[];
|
|
225
|
-
//#endregion
|
|
226
|
-
//#region src/shorthands.d.ts
|
|
227
|
-
declare const shorthands: {
|
|
228
|
-
position: string[];
|
|
229
|
-
globalKeyword: string[];
|
|
230
|
-
};
|
|
231
|
-
//#endregion
|
|
232
|
-
//#region src/variants/aria.d.ts
|
|
233
|
-
declare const variantAria: VariantObject<Theme>;
|
|
234
|
-
declare const variantTaggedAriaAttributes: Variant<Theme>[];
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region src/variants/breakpoints.d.ts
|
|
237
|
-
declare function variantBreakpoints(): VariantObject<Theme>;
|
|
238
|
-
//#endregion
|
|
239
|
-
//#region src/variants/children.d.ts
|
|
240
|
-
declare const variantChildren: Variant<Theme>[];
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region src/variants/combinators.d.ts
|
|
243
|
-
declare const variantCombinators: Variant<Theme>[];
|
|
244
|
-
declare const variantSvgCombinators: Variant<Theme>[];
|
|
245
|
-
//#endregion
|
|
246
|
-
//#region src/variants/container.d.ts
|
|
247
|
-
declare const variantContainerQuery: VariantObject<Theme>;
|
|
248
|
-
//#endregion
|
|
249
|
-
//#region src/variants/dark.d.ts
|
|
250
|
-
declare function variantColorsMediaOrClass(options?: PresetWind4Options): Variant<Theme>[];
|
|
251
|
-
declare const variantColorsScheme: Variant<Theme>[];
|
|
252
|
-
//#endregion
|
|
253
|
-
//#region src/variants/data.d.ts
|
|
254
|
-
declare const variantDataAttribute: VariantObject<Theme>;
|
|
255
|
-
declare const variantTaggedDataAttributes: Variant<Theme>[];
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/variants/default.d.ts
|
|
258
|
-
declare function variants(options: PresetWind4Options): Variant<Theme>[];
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/variants/directions.d.ts
|
|
261
|
-
declare const variantLanguageDirections: Variant<Theme>[];
|
|
262
|
-
//#endregion
|
|
263
|
-
//#region src/variants/important.d.ts
|
|
264
|
-
declare function variantImportant(): VariantObject<Theme>;
|
|
265
|
-
//#endregion
|
|
266
|
-
//#region src/variants/media.d.ts
|
|
267
|
-
declare const variantNoscript: VariantObject;
|
|
268
|
-
declare const variantScripting: VariantObject<Theme>;
|
|
269
|
-
declare const variantPrint: VariantObject<Theme>;
|
|
270
|
-
declare const variantCustomMedia: VariantObject<Theme>;
|
|
271
|
-
declare const variantContrasts: Variant<Theme>[];
|
|
272
|
-
declare const variantMotions: Variant<Theme>[];
|
|
273
|
-
declare const variantOrientations: Variant<Theme>[];
|
|
274
|
-
declare const variantForcedColors: Variant<Theme>[];
|
|
275
|
-
//#endregion
|
|
276
|
-
//#region src/variants/misc.d.ts
|
|
277
|
-
declare const variantSelector: Variant<Theme>;
|
|
278
|
-
declare const variantCssLayer: Variant<Theme>;
|
|
279
|
-
declare const variantInternalLayer: Variant<Theme>;
|
|
280
|
-
declare const variantScope: Variant<Theme>;
|
|
281
|
-
declare const variantVariables: Variant<Theme>;
|
|
282
|
-
declare const variantTheme: Variant<Theme>;
|
|
283
|
-
declare const variantStickyHover: Variant<Theme>[];
|
|
284
|
-
declare const variantImplicitGroup: Variant;
|
|
285
|
-
//#endregion
|
|
286
|
-
//#region src/variants/negative.d.ts
|
|
287
|
-
declare const variantNegative: Variant<Theme>;
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/variants/placeholder.d.ts
|
|
290
|
-
declare const placeholderModifier: VariantFunction<Theme>;
|
|
291
|
-
//#endregion
|
|
292
|
-
//#region src/variants/pseudo.d.ts
|
|
293
|
-
declare function variantPseudoClassesAndElements(): VariantObject<Theme>[];
|
|
294
|
-
declare function variantPseudoClassFunctions(): VariantObject<Theme>;
|
|
295
|
-
declare function variantTaggedPseudoClasses(options?: PresetWind4Options): VariantObject<Theme>[];
|
|
296
|
-
declare const variantPartClasses: VariantObject<Theme>;
|
|
297
|
-
//#endregion
|
|
298
|
-
//#region src/variants/startingstyle.d.ts
|
|
299
|
-
declare const variantStartingStyle: Variant<Theme>;
|
|
300
|
-
//#endregion
|
|
301
|
-
//#region src/variants/supports.d.ts
|
|
302
|
-
declare const variantSupports: VariantObject<Theme>;
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/index.d.ts
|
|
305
|
-
interface DarkModeSelectors {
|
|
306
|
-
/**
|
|
307
|
-
* Selector for light variant.
|
|
308
|
-
*
|
|
309
|
-
* @default '.light'
|
|
310
|
-
*/
|
|
311
|
-
light?: string;
|
|
312
|
-
/**
|
|
313
|
-
* Selector for dark variant.
|
|
314
|
-
*
|
|
315
|
-
* @default '.dark'
|
|
316
|
-
*/
|
|
317
|
-
dark?: string;
|
|
318
|
-
}
|
|
319
|
-
interface PreflightsTheme {
|
|
320
|
-
/**
|
|
321
|
-
* Generate theme keys as CSS variables.
|
|
322
|
-
*
|
|
323
|
-
* - `true`: Generate theme keys fully.
|
|
324
|
-
* - `false`: Disable theme keys. (Not recommended ⚠️)
|
|
325
|
-
* - `'on-demand'`: Generate theme keys only when used.
|
|
326
|
-
*
|
|
327
|
-
* @default 'on-demand'
|
|
328
|
-
*/
|
|
329
|
-
mode?: boolean | 'on-demand';
|
|
330
|
-
/**
|
|
331
|
-
* Process the theme keys.
|
|
332
|
-
*/
|
|
333
|
-
process?: Arrayable<(entry: CSSEntry, ctx: PreflightContext<Theme>) => void>;
|
|
334
|
-
}
|
|
335
|
-
interface PresetWind4Options extends PresetOptions {
|
|
336
|
-
/**
|
|
337
|
-
* Dark mode options
|
|
338
|
-
*
|
|
339
|
-
* @default 'class'
|
|
340
|
-
*/
|
|
341
|
-
dark?: 'class' | 'media' | DarkModeSelectors;
|
|
342
|
-
/**
|
|
343
|
-
* Generate tagged pseudo selector as `[group=""]` instead of `.group`
|
|
344
|
-
*
|
|
345
|
-
* @default false
|
|
346
|
-
*/
|
|
347
|
-
attributifyPseudo?: boolean;
|
|
348
|
-
/**
|
|
349
|
-
* Prefix for CSS variables.
|
|
350
|
-
*
|
|
351
|
-
* @default 'un-'
|
|
352
|
-
*/
|
|
353
|
-
variablePrefix?: string;
|
|
354
|
-
/**
|
|
355
|
-
* Utils prefix. When using tagged pseudo selector, only the first truthy prefix will be used.
|
|
356
|
-
*
|
|
357
|
-
* @default undefined
|
|
358
|
-
*/
|
|
359
|
-
prefix?: string | string[];
|
|
360
|
-
/**
|
|
361
|
-
* Enable arbitrary variants, for example `<div class="[&>*]:m-1 [&[open]]:p-2"></div>`.
|
|
362
|
-
*
|
|
363
|
-
* Disable this might slightly improve the performance.
|
|
364
|
-
*
|
|
365
|
-
* @default true
|
|
366
|
-
*/
|
|
367
|
-
arbitraryVariants?: boolean;
|
|
368
|
-
/**
|
|
369
|
-
* The important option lets you control whether UnoCSS’s utilities should be marked with `!important`.
|
|
370
|
-
*
|
|
371
|
-
* This can be really useful when using UnoCSS with existing CSS that has high specificity selectors.
|
|
372
|
-
*
|
|
373
|
-
* You can also set `important` to a selector like `#app` instead, which will generate `#app :is(.m-1) { ... }`
|
|
374
|
-
*
|
|
375
|
-
* Also check out the compatibility with [:is()](https://caniuse.com/?search=%3Ais())
|
|
376
|
-
*
|
|
377
|
-
* @default false
|
|
378
|
-
*/
|
|
379
|
-
important?: boolean | string;
|
|
380
|
-
/**
|
|
381
|
-
* Control the preflight styles.
|
|
382
|
-
*/
|
|
383
|
-
preflights?: {
|
|
384
|
-
/**
|
|
385
|
-
* Reset the default preflight styles.
|
|
386
|
-
*
|
|
387
|
-
* @default true
|
|
388
|
-
*/
|
|
389
|
-
reset?: boolean;
|
|
390
|
-
/**
|
|
391
|
-
* Theme configuration for preflight styles.
|
|
392
|
-
*
|
|
393
|
-
* This can either be a specific mode from `PreflightsTheme['mode']` or a full `PreflightsTheme` object.
|
|
394
|
-
*
|
|
395
|
-
* The theme defines the base styles applied to elements and can be customized
|
|
396
|
-
* to match the design system or requirements of your project.
|
|
397
|
-
*/
|
|
398
|
-
theme?: PreflightsTheme['mode'] | PreflightsTheme;
|
|
399
|
-
/**
|
|
400
|
-
* Configuration for property preflight generation.
|
|
401
|
-
*
|
|
402
|
-
* - `false`: Disable property preflight
|
|
403
|
-
* - `true` or `undefined`: Enable with default configuration
|
|
404
|
-
* - `object`: Enable with custom configuration
|
|
405
|
-
*/
|
|
406
|
-
property?: boolean | {
|
|
407
|
-
/**
|
|
408
|
-
* Custom parent selector (e.g., @supports query or @layer).
|
|
409
|
-
*
|
|
410
|
-
* - `string`: Use custom parent selector
|
|
411
|
-
* - `false`: No parent wrapper, apply properties directly to selector
|
|
412
|
-
* - `undefined`: Use default @supports query
|
|
413
|
-
*
|
|
414
|
-
* @default '@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b))))'
|
|
415
|
-
*/
|
|
416
|
-
parent?: string | false;
|
|
417
|
-
/**
|
|
418
|
-
* Custom selector for applying properties.
|
|
419
|
-
*
|
|
420
|
-
* @default '*, ::before, ::after, ::backdrop'
|
|
421
|
-
*/
|
|
422
|
-
selector?: string;
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
declare const presetWind4: _unocss_core0.PresetFactory<Theme, PresetWind4Options>;
|
|
427
|
-
//#endregion
|
|
428
|
-
export { textShadows as $, positions as $t, variantLanguageDirections as A, willChange as An, userSelects as At, variantBreakpoints as B, boxShadows as Bt, variantForcedColors as C, appearance as Cn, objectPositions as Ct, variantPrint as D, outline as Dn, textOverflows as Dt, variantOrientations as E, listStyle as En, screenReadersAccess as Et, variantColorsScheme as F, preflights as Fn, notLastChildSelectorVariant as Ft, viewTransition as G, alignments as Gt, variantTaggedAriaAttributes as H, scrolls as Ht, variantContainerQuery as I, varPrefix as In, paddings as It, fontVariantNumeric as J, floats as Jt, cssProperty as K, boxSizing as Kt, variantCombinators as L, important as Ln, spaces as Lt, variantDataAttribute as M, animations as Mn, writingModes as Mt, variantTaggedDataAttributes as N, textAligns as Nn, writingOrientations as Nt, variantScripting as O, overscrolls as On, textTransforms as Ot, variantColorsMediaOrClass as P, verticalAligns as Pn, margins as Pt, textIndents as Q, placements as Qt, variantSvgCombinators as R, postprocessors as Rn, aspectRatio as Rt, variantCustomMedia as S, accents as Sn, mixBlendModes as St, variantNoscript as T, imageRenderings as Tn, resizes as Tt, shorthands as U, rings as Ut, variantAria as V, shadowProperties as Vt, shortcuts as W, questionMark as Wt, splitShorthand as X, justifies as Xt, fonts as Y, insets as Yt, tabSizes as Z, orders as Zt, variantSelector as _, colorScheme as _n, fieldSizing as _t, variantSupports as a, grids as an, tables as at, variantVariables as b, borders as bn, hyphens as bt, variantPseudoClassFunctions as c, filters as cn, appearances as ct, placeholderModifier as d, textDecorations as dn, contains as dt, zIndexes as en, textStrokes as et, variantNegative as f, container as fn, contentVisibility as ft, variantScope as g, bgColors as gn, dynamicViewportHeight as gt, variantInternalLayer as h, columns as hn, displays as ht, presetWind4 as i, overflows as in, touchActions as it, variants as j, backgroundStyles as jn, whitespaces as jt, variantImportant as k, scrollBehaviors as kn, textWraps as kt, variantPseudoClassesAndElements as l, divides as ln, backgroundBlendModes as lt, variantImplicitGroup as m, containerShortcuts as mn, cursors as mt, PreflightsTheme as n, masks as nn, transformBase as nt, variantStartingStyle as o, gaps as on, svgUtilities as ot, variantCssLayer as p, containerParent as pn, contents as pt, cssVariables as q, flexGridJustifiesAlignments as qt, PresetWind4Options as r, lineClamps as rn, transforms as rt, variantPartClasses as s, flex as sn, accessibility as st, DarkModeSelectors as t, placeholders as tn, transitions as tt, variantTaggedPseudoClasses as u, rules as un, breaks as ut, variantStickyHover as v, opacity as vn, fontSmoothings as vt, variantMotions as w, carets as wn, pointerEvents as wt, variantContrasts as x, handlerBorderStyle as xn, isolations as xt, variantTheme as y, borderStyles as yn, fontStyles as yt, variantChildren as z, sizes as zt };
|