@weapp-tailwindcss/postcss 2.2.0 → 2.2.1-next.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/README.md +4 -5
- package/dist/autoprefixer.d.ts +7 -0
- package/dist/compat/color-mix.d.ts +5 -0
- package/dist/compat/tailwindcss-rpx.d.ts +4 -0
- package/dist/compat/tailwindcss-v4.d.ts +12 -0
- package/dist/compat/uni-app-x-uvue.d.ts +3 -0
- package/dist/compat/uni-app-x.d.ts +9 -0
- package/dist/constants.d.ts +1 -0
- package/dist/content-probe.d.ts +38 -0
- package/dist/cssVarsV3.d.ts +5 -0
- package/dist/cssVarsV4.d.ts +5 -0
- package/dist/defaults.d.ts +2 -0
- package/dist/fingerprint.d.ts +6 -0
- package/dist/handler.d.ts +2 -0
- package/dist/html-transform-DuSRw6IH.js +225 -0
- package/dist/html-transform.d.ts +3 -7
- package/dist/html-transform.js +2 -8
- package/dist/html-transform.mjs +190 -5
- package/dist/index.d.ts +8 -18
- package/dist/index.js +2296 -2727
- package/dist/index.mjs +2274 -2721
- package/dist/mp.d.ts +26 -0
- package/dist/options-resolver.d.ts +5 -0
- package/dist/pipeline.d.ts +44 -0
- package/dist/plugins/colorFunctionalFallback.d.ts +5 -0
- package/dist/plugins/ctx.d.ts +6 -0
- package/dist/plugins/getCalcDuplicateCleaner.d.ts +3 -0
- package/dist/plugins/getCalcPlugin.d.ts +3 -0
- package/dist/plugins/getCustomPropertyCleaner.d.ts +3 -0
- package/dist/plugins/getPxTransformPlugin.d.ts +3 -0
- package/dist/plugins/getRemTransformPlugin.d.ts +3 -0
- package/dist/plugins/getUnitsToPxPlugin.d.ts +3 -0
- package/dist/plugins/index.d.ts +7 -0
- package/dist/plugins/post/decl-dedupe.d.ts +3 -0
- package/dist/plugins/post/specificity-cleaner.d.ts +5 -0
- package/dist/plugins/post.d.ts +6 -0
- package/dist/plugins/pre.d.ts +5 -0
- package/dist/preflight.d.ts +3 -0
- package/dist/preset-env-options.d.ts +14 -0
- package/dist/processor-cache.d.ts +18 -0
- package/dist/selectorParser/before-after.d.ts +2 -0
- package/dist/selectorParser/fallback.d.ts +9 -0
- package/dist/selectorParser/rule-transformer.d.ts +4 -0
- package/dist/selectorParser/spacing.d.ts +6 -0
- package/dist/selectorParser/utils.d.ts +11 -0
- package/dist/selectorParser.d.ts +4 -0
- package/dist/shared.d.ts +3 -0
- package/dist/types.d.ts +86 -8
- package/dist/types.js +0 -1
- package/dist/types.mjs +1 -1
- package/dist/utils/css-vars.d.ts +9 -0
- package/dist/utils/decl-order.d.ts +5 -0
- package/dist/utils/selector-guard.d.ts +8 -0
- package/dist/utils/tw-vars.d.ts +5 -0
- package/package.json +5 -4
- package/dist/chunk-2DNJBRQ3.mjs +0 -64
- package/dist/chunk-2Y3ULRB3.js +0 -64
- package/dist/chunk-GGNOJ77I.js +0 -1
- package/dist/chunk-WAXGOBY2.mjs +0 -0
- package/dist/html-transform.d.mts +0 -13
- package/dist/index.d.mts +0 -18
- package/dist/types-DiOShlJF.d.mts +0 -172
- package/dist/types-DiOShlJF.d.ts +0 -172
- package/dist/types.d.mts +0 -8
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { PostCssCalcOptions } from '@weapp-tailwindcss/postcss-calc';
|
|
2
|
-
import { AcceptedPlugin, Result as Result$1 } from 'postcss';
|
|
3
|
-
import { Result } from 'postcss-load-config';
|
|
4
|
-
import { PxTransformOptions } from 'postcss-pxtrans';
|
|
5
|
-
import { UserDefinedOptions } from 'postcss-rem-to-responsive-pixel';
|
|
6
|
-
import { UserDefinedOptions as UserDefinedOptions$1, UnitMap, GlobalUnitTransform } from 'postcss-rule-unit-converter';
|
|
7
|
-
import autoprefixer from 'autoprefixer';
|
|
8
|
-
|
|
9
|
-
type AutoprefixerOptions = autoprefixer.Options;
|
|
10
|
-
type WeappAutoprefixerOptions = boolean | AutoprefixerOptions;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* CSS 内容特征探测模块
|
|
14
|
-
*
|
|
15
|
-
* 通过正则和字符串匹配快速判断 CSS 是否包含特定特征,
|
|
16
|
-
* 用于在构建流水线前决定哪些插件可以跳过。
|
|
17
|
-
* 仅使用字符串方法和正则表达式,不引入 AST 解析开销。
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* CSS 内容特征信号,表示哪些特征存在于当前 CSS 中
|
|
21
|
-
*/
|
|
22
|
-
interface FeatureSignal {
|
|
23
|
-
/** CSS 中是否包含现代颜色函数语法(如 rgb(r g b / a) 空格分隔写法) */
|
|
24
|
-
hasModernColorFunction: boolean;
|
|
25
|
-
/** CSS 中是否包含需要 postcss-preset-env 处理的特征 */
|
|
26
|
-
hasPresetEnvFeatures: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type PipelineStage = 'pre' | 'normal' | 'post';
|
|
30
|
-
interface PipelineNodeCursor {
|
|
31
|
-
id: string;
|
|
32
|
-
stage: PipelineStage;
|
|
33
|
-
}
|
|
34
|
-
interface PipelineNodeContext {
|
|
35
|
-
stage: PipelineStage;
|
|
36
|
-
/**
|
|
37
|
-
* 整个流水线内的顺序索引(从 0 开始)
|
|
38
|
-
*/
|
|
39
|
-
index: number;
|
|
40
|
-
/**
|
|
41
|
-
* 当前流水线包含的节点总数
|
|
42
|
-
*/
|
|
43
|
-
size: number;
|
|
44
|
-
/**
|
|
45
|
-
* 所在阶段内的顺序索引(从 0 开始)
|
|
46
|
-
*/
|
|
47
|
-
stageIndex: number;
|
|
48
|
-
/**
|
|
49
|
-
* 所在阶段的节点数量
|
|
50
|
-
*/
|
|
51
|
-
stageSize: number;
|
|
52
|
-
/**
|
|
53
|
-
* 指向前一个节点的游标(若存在)
|
|
54
|
-
*/
|
|
55
|
-
previous?: PipelineNodeCursor;
|
|
56
|
-
/**
|
|
57
|
-
* 指向后一个节点的游标(若存在)
|
|
58
|
-
*/
|
|
59
|
-
next?: PipelineNodeCursor;
|
|
60
|
-
}
|
|
61
|
-
interface ResolvedPipelineNode extends PipelineNodeCursor {
|
|
62
|
-
plugin: AcceptedPlugin;
|
|
63
|
-
context: PipelineNodeContext;
|
|
64
|
-
}
|
|
65
|
-
interface StyleProcessingPipeline {
|
|
66
|
-
nodes: ResolvedPipelineNode[];
|
|
67
|
-
plugins: AcceptedPlugin[];
|
|
68
|
-
}
|
|
69
|
-
declare function createStylePipeline(options: IStyleHandlerOptions, signal?: FeatureSignal): StyleProcessingPipeline;
|
|
70
|
-
|
|
71
|
-
declare function createContext(): {
|
|
72
|
-
variablesScopeWeakMap: WeakMap<WeakKey, any>;
|
|
73
|
-
isVariablesScope: (rule: WeakKey) => boolean;
|
|
74
|
-
markVariablesScope: (rule: WeakKey) => void;
|
|
75
|
-
};
|
|
76
|
-
type IContext = ReturnType<typeof createContext>;
|
|
77
|
-
|
|
78
|
-
type InjectPreflight = () => IPropValue[];
|
|
79
|
-
declare function createInjectPreflight(options?: CssPreflightOptions): InjectPreflight;
|
|
80
|
-
|
|
81
|
-
interface PresetEnvOptions {
|
|
82
|
-
stage?: false | 0 | 1 | 2 | 3 | 4;
|
|
83
|
-
minimumVendorImplementations?: number;
|
|
84
|
-
browsers?: string | string[];
|
|
85
|
-
features?: Record<string, boolean | Record<string, unknown>>;
|
|
86
|
-
insertBefore?: Record<string, unknown>;
|
|
87
|
-
insertAfter?: Record<string, unknown>;
|
|
88
|
-
debug?: boolean;
|
|
89
|
-
logical?: {
|
|
90
|
-
inlineDirection?: 'top-to-bottom' | 'bottom-to-top' | 'right-to-left' | 'left-to-right';
|
|
91
|
-
blockDirection?: 'top-to-bottom' | 'bottom-to-top' | 'right-to-left' | 'left-to-right';
|
|
92
|
-
};
|
|
93
|
-
[key: string]: unknown;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type LoadedPostcssOptions = Partial<Omit<Result, 'file'>>;
|
|
97
|
-
interface IPropValue {
|
|
98
|
-
prop: string;
|
|
99
|
-
value: string;
|
|
100
|
-
}
|
|
101
|
-
type UniAppXCssTarget = 'uvue';
|
|
102
|
-
type UniAppXUnsupportedMode = 'error' | 'warn' | 'silent';
|
|
103
|
-
type CssPreflightOptions = {
|
|
104
|
-
[key: string]: string | number | boolean;
|
|
105
|
-
} | false;
|
|
106
|
-
type RequiredStyleHandlerOptions = {
|
|
107
|
-
/**
|
|
108
|
-
* @description 默认为 true,此时会对样式主文件,进行猜测
|
|
109
|
-
*/
|
|
110
|
-
isMainChunk?: boolean;
|
|
111
|
-
cssPreflight?: CssPreflightOptions;
|
|
112
|
-
cssInjectPreflight?: InjectPreflight;
|
|
113
|
-
escapeMap?: Record<string, string>;
|
|
114
|
-
} & Pick<UserDefinedPostcssOptions, 'cssPreflightRange' | 'cssChildCombinatorReplaceValue' | 'injectAdditionalCssVarScope' | 'cssSelectorReplacement' | 'rem2rpx' | 'px2rpx' | 'unitsToPx'>;
|
|
115
|
-
interface InternalCssSelectorReplacerOptions {
|
|
116
|
-
escapeMap?: Record<string, string>;
|
|
117
|
-
}
|
|
118
|
-
interface CssCalcOptions extends PostCssCalcOptions {
|
|
119
|
-
includeCustomProperties?: (string | RegExp)[];
|
|
120
|
-
}
|
|
121
|
-
interface UnitsToPxOptions extends Pick<UserDefinedOptions$1, 'disabled' | 'exclude' | 'mediaQuery' | 'propList' | 'replace' | 'selectorBlackList' | 'unitPrecision'> {
|
|
122
|
-
minValue?: number;
|
|
123
|
-
to?: string;
|
|
124
|
-
unitMap?: UnitMap;
|
|
125
|
-
transform?: GlobalUnitTransform | false;
|
|
126
|
-
}
|
|
127
|
-
type IStyleHandlerOptions = {
|
|
128
|
-
ctx?: IContext;
|
|
129
|
-
postcssOptions?: LoadedPostcssOptions;
|
|
130
|
-
cssRemoveProperty?: boolean;
|
|
131
|
-
cssRemoveHoverPseudoClass?: boolean;
|
|
132
|
-
cssPresetEnv?: PresetEnvOptions;
|
|
133
|
-
autoprefixer?: WeappAutoprefixerOptions;
|
|
134
|
-
cssCalc?: boolean | CssCalcOptions | (string | RegExp)[];
|
|
135
|
-
atRules?: {
|
|
136
|
-
property?: boolean;
|
|
137
|
-
supports?: boolean;
|
|
138
|
-
media?: boolean;
|
|
139
|
-
};
|
|
140
|
-
uniAppX?: boolean;
|
|
141
|
-
uniAppXCssTarget?: UniAppXCssTarget;
|
|
142
|
-
uniAppXUnsupported?: UniAppXUnsupportedMode;
|
|
143
|
-
majorVersion?: number;
|
|
144
|
-
} & RequiredStyleHandlerOptions;
|
|
145
|
-
interface UserDefinedPostcssOptions {
|
|
146
|
-
cssPreflight?: CssPreflightOptions;
|
|
147
|
-
cssPreflightRange?: 'all';
|
|
148
|
-
cssChildCombinatorReplaceValue?: string | string[];
|
|
149
|
-
cssPresetEnv?: PresetEnvOptions;
|
|
150
|
-
autoprefixer?: WeappAutoprefixerOptions;
|
|
151
|
-
injectAdditionalCssVarScope?: boolean;
|
|
152
|
-
cssSelectorReplacement?: {
|
|
153
|
-
root?: string | string[] | false;
|
|
154
|
-
universal?: string | string[] | false;
|
|
155
|
-
};
|
|
156
|
-
rem2rpx?: boolean | UserDefinedOptions;
|
|
157
|
-
px2rpx?: boolean | PxTransformOptions;
|
|
158
|
-
unitsToPx?: boolean | UnitsToPxOptions;
|
|
159
|
-
postcssOptions?: LoadedPostcssOptions;
|
|
160
|
-
cssRemoveHoverPseudoClass?: boolean;
|
|
161
|
-
cssRemoveProperty?: boolean;
|
|
162
|
-
uniAppX?: boolean;
|
|
163
|
-
uniAppXCssTarget?: UniAppXCssTarget;
|
|
164
|
-
uniAppXUnsupported?: UniAppXUnsupportedMode;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface StyleHandler {
|
|
168
|
-
(rawSource: string, opt?: Partial<IStyleHandlerOptions>): Promise<Result$1>;
|
|
169
|
-
getPipeline: (opt?: Partial<IStyleHandlerOptions>) => StyleProcessingPipeline;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export { type CssCalcOptions as C, type IStyleHandlerOptions as I, type LoadedPostcssOptions as L, type PipelineNodeContext as P, type RequiredStyleHandlerOptions as R, type StyleHandler as S, type UniAppXCssTarget as U, type WeappAutoprefixerOptions as W, type InternalCssSelectorReplacerOptions as a, type CssPreflightOptions as b, type IPropValue as c, type PipelineNodeCursor as d, type PipelineStage as e, type PresetEnvOptions as f, type ResolvedPipelineNode as g, type StyleProcessingPipeline as h, type UniAppXUnsupportedMode as i, type UnitsToPxOptions as j, type UserDefinedPostcssOptions as k, createInjectPreflight as l, createStylePipeline as m };
|
package/dist/types-DiOShlJF.d.ts
DELETED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { PostCssCalcOptions } from '@weapp-tailwindcss/postcss-calc';
|
|
2
|
-
import { AcceptedPlugin, Result as Result$1 } from 'postcss';
|
|
3
|
-
import { Result } from 'postcss-load-config';
|
|
4
|
-
import { PxTransformOptions } from 'postcss-pxtrans';
|
|
5
|
-
import { UserDefinedOptions } from 'postcss-rem-to-responsive-pixel';
|
|
6
|
-
import { UserDefinedOptions as UserDefinedOptions$1, UnitMap, GlobalUnitTransform } from 'postcss-rule-unit-converter';
|
|
7
|
-
import autoprefixer from 'autoprefixer';
|
|
8
|
-
|
|
9
|
-
type AutoprefixerOptions = autoprefixer.Options;
|
|
10
|
-
type WeappAutoprefixerOptions = boolean | AutoprefixerOptions;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* CSS 内容特征探测模块
|
|
14
|
-
*
|
|
15
|
-
* 通过正则和字符串匹配快速判断 CSS 是否包含特定特征,
|
|
16
|
-
* 用于在构建流水线前决定哪些插件可以跳过。
|
|
17
|
-
* 仅使用字符串方法和正则表达式,不引入 AST 解析开销。
|
|
18
|
-
*/
|
|
19
|
-
/**
|
|
20
|
-
* CSS 内容特征信号,表示哪些特征存在于当前 CSS 中
|
|
21
|
-
*/
|
|
22
|
-
interface FeatureSignal {
|
|
23
|
-
/** CSS 中是否包含现代颜色函数语法(如 rgb(r g b / a) 空格分隔写法) */
|
|
24
|
-
hasModernColorFunction: boolean;
|
|
25
|
-
/** CSS 中是否包含需要 postcss-preset-env 处理的特征 */
|
|
26
|
-
hasPresetEnvFeatures: boolean;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
type PipelineStage = 'pre' | 'normal' | 'post';
|
|
30
|
-
interface PipelineNodeCursor {
|
|
31
|
-
id: string;
|
|
32
|
-
stage: PipelineStage;
|
|
33
|
-
}
|
|
34
|
-
interface PipelineNodeContext {
|
|
35
|
-
stage: PipelineStage;
|
|
36
|
-
/**
|
|
37
|
-
* 整个流水线内的顺序索引(从 0 开始)
|
|
38
|
-
*/
|
|
39
|
-
index: number;
|
|
40
|
-
/**
|
|
41
|
-
* 当前流水线包含的节点总数
|
|
42
|
-
*/
|
|
43
|
-
size: number;
|
|
44
|
-
/**
|
|
45
|
-
* 所在阶段内的顺序索引(从 0 开始)
|
|
46
|
-
*/
|
|
47
|
-
stageIndex: number;
|
|
48
|
-
/**
|
|
49
|
-
* 所在阶段的节点数量
|
|
50
|
-
*/
|
|
51
|
-
stageSize: number;
|
|
52
|
-
/**
|
|
53
|
-
* 指向前一个节点的游标(若存在)
|
|
54
|
-
*/
|
|
55
|
-
previous?: PipelineNodeCursor;
|
|
56
|
-
/**
|
|
57
|
-
* 指向后一个节点的游标(若存在)
|
|
58
|
-
*/
|
|
59
|
-
next?: PipelineNodeCursor;
|
|
60
|
-
}
|
|
61
|
-
interface ResolvedPipelineNode extends PipelineNodeCursor {
|
|
62
|
-
plugin: AcceptedPlugin;
|
|
63
|
-
context: PipelineNodeContext;
|
|
64
|
-
}
|
|
65
|
-
interface StyleProcessingPipeline {
|
|
66
|
-
nodes: ResolvedPipelineNode[];
|
|
67
|
-
plugins: AcceptedPlugin[];
|
|
68
|
-
}
|
|
69
|
-
declare function createStylePipeline(options: IStyleHandlerOptions, signal?: FeatureSignal): StyleProcessingPipeline;
|
|
70
|
-
|
|
71
|
-
declare function createContext(): {
|
|
72
|
-
variablesScopeWeakMap: WeakMap<WeakKey, any>;
|
|
73
|
-
isVariablesScope: (rule: WeakKey) => boolean;
|
|
74
|
-
markVariablesScope: (rule: WeakKey) => void;
|
|
75
|
-
};
|
|
76
|
-
type IContext = ReturnType<typeof createContext>;
|
|
77
|
-
|
|
78
|
-
type InjectPreflight = () => IPropValue[];
|
|
79
|
-
declare function createInjectPreflight(options?: CssPreflightOptions): InjectPreflight;
|
|
80
|
-
|
|
81
|
-
interface PresetEnvOptions {
|
|
82
|
-
stage?: false | 0 | 1 | 2 | 3 | 4;
|
|
83
|
-
minimumVendorImplementations?: number;
|
|
84
|
-
browsers?: string | string[];
|
|
85
|
-
features?: Record<string, boolean | Record<string, unknown>>;
|
|
86
|
-
insertBefore?: Record<string, unknown>;
|
|
87
|
-
insertAfter?: Record<string, unknown>;
|
|
88
|
-
debug?: boolean;
|
|
89
|
-
logical?: {
|
|
90
|
-
inlineDirection?: 'top-to-bottom' | 'bottom-to-top' | 'right-to-left' | 'left-to-right';
|
|
91
|
-
blockDirection?: 'top-to-bottom' | 'bottom-to-top' | 'right-to-left' | 'left-to-right';
|
|
92
|
-
};
|
|
93
|
-
[key: string]: unknown;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type LoadedPostcssOptions = Partial<Omit<Result, 'file'>>;
|
|
97
|
-
interface IPropValue {
|
|
98
|
-
prop: string;
|
|
99
|
-
value: string;
|
|
100
|
-
}
|
|
101
|
-
type UniAppXCssTarget = 'uvue';
|
|
102
|
-
type UniAppXUnsupportedMode = 'error' | 'warn' | 'silent';
|
|
103
|
-
type CssPreflightOptions = {
|
|
104
|
-
[key: string]: string | number | boolean;
|
|
105
|
-
} | false;
|
|
106
|
-
type RequiredStyleHandlerOptions = {
|
|
107
|
-
/**
|
|
108
|
-
* @description 默认为 true,此时会对样式主文件,进行猜测
|
|
109
|
-
*/
|
|
110
|
-
isMainChunk?: boolean;
|
|
111
|
-
cssPreflight?: CssPreflightOptions;
|
|
112
|
-
cssInjectPreflight?: InjectPreflight;
|
|
113
|
-
escapeMap?: Record<string, string>;
|
|
114
|
-
} & Pick<UserDefinedPostcssOptions, 'cssPreflightRange' | 'cssChildCombinatorReplaceValue' | 'injectAdditionalCssVarScope' | 'cssSelectorReplacement' | 'rem2rpx' | 'px2rpx' | 'unitsToPx'>;
|
|
115
|
-
interface InternalCssSelectorReplacerOptions {
|
|
116
|
-
escapeMap?: Record<string, string>;
|
|
117
|
-
}
|
|
118
|
-
interface CssCalcOptions extends PostCssCalcOptions {
|
|
119
|
-
includeCustomProperties?: (string | RegExp)[];
|
|
120
|
-
}
|
|
121
|
-
interface UnitsToPxOptions extends Pick<UserDefinedOptions$1, 'disabled' | 'exclude' | 'mediaQuery' | 'propList' | 'replace' | 'selectorBlackList' | 'unitPrecision'> {
|
|
122
|
-
minValue?: number;
|
|
123
|
-
to?: string;
|
|
124
|
-
unitMap?: UnitMap;
|
|
125
|
-
transform?: GlobalUnitTransform | false;
|
|
126
|
-
}
|
|
127
|
-
type IStyleHandlerOptions = {
|
|
128
|
-
ctx?: IContext;
|
|
129
|
-
postcssOptions?: LoadedPostcssOptions;
|
|
130
|
-
cssRemoveProperty?: boolean;
|
|
131
|
-
cssRemoveHoverPseudoClass?: boolean;
|
|
132
|
-
cssPresetEnv?: PresetEnvOptions;
|
|
133
|
-
autoprefixer?: WeappAutoprefixerOptions;
|
|
134
|
-
cssCalc?: boolean | CssCalcOptions | (string | RegExp)[];
|
|
135
|
-
atRules?: {
|
|
136
|
-
property?: boolean;
|
|
137
|
-
supports?: boolean;
|
|
138
|
-
media?: boolean;
|
|
139
|
-
};
|
|
140
|
-
uniAppX?: boolean;
|
|
141
|
-
uniAppXCssTarget?: UniAppXCssTarget;
|
|
142
|
-
uniAppXUnsupported?: UniAppXUnsupportedMode;
|
|
143
|
-
majorVersion?: number;
|
|
144
|
-
} & RequiredStyleHandlerOptions;
|
|
145
|
-
interface UserDefinedPostcssOptions {
|
|
146
|
-
cssPreflight?: CssPreflightOptions;
|
|
147
|
-
cssPreflightRange?: 'all';
|
|
148
|
-
cssChildCombinatorReplaceValue?: string | string[];
|
|
149
|
-
cssPresetEnv?: PresetEnvOptions;
|
|
150
|
-
autoprefixer?: WeappAutoprefixerOptions;
|
|
151
|
-
injectAdditionalCssVarScope?: boolean;
|
|
152
|
-
cssSelectorReplacement?: {
|
|
153
|
-
root?: string | string[] | false;
|
|
154
|
-
universal?: string | string[] | false;
|
|
155
|
-
};
|
|
156
|
-
rem2rpx?: boolean | UserDefinedOptions;
|
|
157
|
-
px2rpx?: boolean | PxTransformOptions;
|
|
158
|
-
unitsToPx?: boolean | UnitsToPxOptions;
|
|
159
|
-
postcssOptions?: LoadedPostcssOptions;
|
|
160
|
-
cssRemoveHoverPseudoClass?: boolean;
|
|
161
|
-
cssRemoveProperty?: boolean;
|
|
162
|
-
uniAppX?: boolean;
|
|
163
|
-
uniAppXCssTarget?: UniAppXCssTarget;
|
|
164
|
-
uniAppXUnsupported?: UniAppXUnsupportedMode;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
interface StyleHandler {
|
|
168
|
-
(rawSource: string, opt?: Partial<IStyleHandlerOptions>): Promise<Result$1>;
|
|
169
|
-
getPipeline: (opt?: Partial<IStyleHandlerOptions>) => StyleProcessingPipeline;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export { type CssCalcOptions as C, type IStyleHandlerOptions as I, type LoadedPostcssOptions as L, type PipelineNodeContext as P, type RequiredStyleHandlerOptions as R, type StyleHandler as S, type UniAppXCssTarget as U, type WeappAutoprefixerOptions as W, type InternalCssSelectorReplacerOptions as a, type CssPreflightOptions as b, type IPropValue as c, type PipelineNodeCursor as d, type PipelineStage as e, type PresetEnvOptions as f, type ResolvedPipelineNode as g, type StyleProcessingPipeline as h, type UniAppXUnsupportedMode as i, type UnitsToPxOptions as j, type UserDefinedPostcssOptions as k, createInjectPreflight as l, createStylePipeline as m };
|
package/dist/types.d.mts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@weapp-tailwindcss/postcss-calc';
|
|
2
|
-
import 'postcss';
|
|
3
|
-
import 'postcss-load-config';
|
|
4
|
-
export { PxTransformOptions as Px2rpxOptions } from 'postcss-pxtrans';
|
|
5
|
-
export { UserDefinedOptions as Rem2rpxOptions } from 'postcss-rem-to-responsive-pixel';
|
|
6
|
-
import 'postcss-rule-unit-converter';
|
|
7
|
-
export { C as CssCalcOptions, b as CssPreflightOptions, c as IPropValue, I as IStyleHandlerOptions, a as InternalCssSelectorReplacerOptions, L as LoadedPostcssOptions, f as PresetEnvOptions, R as RequiredStyleHandlerOptions, S as StyleHandler, U as UniAppXCssTarget, i as UniAppXUnsupportedMode, j as UnitsToPxOptions, k as UserDefinedPostcssOptions, W as WeappAutoprefixerOptions } from './types-DiOShlJF.mjs';
|
|
8
|
-
import 'autoprefixer';
|