@weapp-tailwindcss/postcss 3.2.0 → 3.2.2
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/compat/color-mix.d.ts +4 -0
- package/dist/compat/tailwindcss-v4/variables.d.ts +2 -0
- package/dist/compat/tailwindcss-v4.d.ts +1 -1
- package/dist/compat/uni-app-x-uvue/theme.d.ts +4 -0
- package/dist/index.cjs +4282 -2462
- package/dist/index.d.ts +1 -1
- package/dist/index.js +122 -7
- package/package.json +4 -4
|
@@ -10,5 +10,9 @@ export interface ModernColorValueNormalization {
|
|
|
10
10
|
changed: boolean;
|
|
11
11
|
hasUnsupported: boolean;
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* 保护带 fallback 的作者 CSS 变量,避免兼容插件把它错误静态化。
|
|
15
|
+
*/
|
|
16
|
+
export declare function protectDynamicVarFallbacks(css: string): DynamicColorMixAlphaProtection;
|
|
13
17
|
export declare function normalizeModernColorValue(value: string, customPropertyValues?: ReadonlyMap<string, string>): ModernColorValueNormalization;
|
|
14
18
|
export declare function protectDynamicColorMixAlpha(css: string, options?: DynamicColorMixAlphaProtectionOptions): DynamicColorMixAlphaProtection;
|
|
@@ -15,6 +15,7 @@ export declare const GRADIENT_BACKGROUND_RE: RegExp;
|
|
|
15
15
|
export declare const GRADIENT_STOPS_VAR_RE: RegExp;
|
|
16
16
|
export declare const SIMPLE_CLASS_SELECTOR_RE: RegExp;
|
|
17
17
|
export declare const COLOR_VAR_RE: RegExp;
|
|
18
|
+
export declare const TAILWIND_THEME_VARIABLE_RE: RegExp;
|
|
18
19
|
export declare const GRADIENT_DIRECTION_CLASS_RE: RegExp;
|
|
19
20
|
export declare const RADIUS_VALUE_RE: RegExp;
|
|
20
21
|
export declare const SCIENTIFIC_NOTATION_RE: RegExp;
|
|
@@ -22,6 +23,7 @@ export declare const TW_GRADIENT_POSITION_PROPS: Set<string>;
|
|
|
22
23
|
export declare function isTailwindcssV4(options?: {
|
|
23
24
|
majorVersion?: 4;
|
|
24
25
|
}): boolean;
|
|
26
|
+
export declare function isTailwindcssV4ThemeVariable(property: string): boolean;
|
|
25
27
|
export declare function testIfRootHostForV4(node: Rule): boolean;
|
|
26
28
|
export declare const cssVarsV4Nodes: Declaration[];
|
|
27
29
|
export declare function collectUsedTailwindcssV4Variables(root: Root): Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { normalizeTailwindcssV4Declaration } from './tailwindcss-v4/declarations.js';
|
|
2
2
|
export { appendTailwindcssV4MiniProgramGradientRules, mergeTailwindcssV4GradientDirectionRules, normalizeTailwindcssV4GradientPosition, normalizeTailwindcssV4InfinityCalcCss, normalizeTailwindcssV4InfinityCalcValue } from './tailwindcss-v4/gradients.js';
|
|
3
3
|
export { isTailwindcssV4DisplayP3Declaration, isTailwindcssV4DisplayP3Media, isTailwindcssV4DisplayP3Supports, isTailwindcssV4LinearGradientSupports, isTailwindcssV4ModernCheck } from './tailwindcss-v4/modern-syntax.js';
|
|
4
|
-
export { collectUsedTailwindcssV4Variables, createMissingCssVarsV4Nodes, createUsedCssVarsV4Nodes, cssVarsV4Nodes, isTailwindcssV4, testIfRootHostForV4, usesTailwindcssV4ContentVariable } from './tailwindcss-v4/variables.js';
|
|
4
|
+
export { collectUsedTailwindcssV4Variables, createMissingCssVarsV4Nodes, createUsedCssVarsV4Nodes, cssVarsV4Nodes, isTailwindcssV4, isTailwindcssV4ThemeVariable, testIfRootHostForV4, usesTailwindcssV4ContentVariable } from './tailwindcss-v4/variables.js';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { Root, Rule } from 'postcss';
|
|
2
2
|
export declare function isUniAppXSystemRootCarrierRule(rule: Rule): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* HBuilderX 不接受带 fallback 的 var() 声明,拆成静态 fallback 与动态变量两条声明。
|
|
5
|
+
*/
|
|
6
|
+
export declare function splitUnresolvedAuthorVariableFallbacks(root: Root, variables: ReadonlyMap<string, string>): boolean;
|
|
3
7
|
/**
|
|
4
8
|
* UVUE 不支持 Tailwind 的混合根选择器,因此先把根作用域中的静态主题 token
|
|
5
9
|
* 内联到实际 utility,再移除仅用于变量承载的系统规则。
|