@weapp-tailwindcss/postcss 3.0.0-next.9 → 3.0.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.
|
@@ -3,6 +3,7 @@ import postcss from 'postcss';
|
|
|
3
3
|
export interface FinalizeMiniProgramCssOptions {
|
|
4
4
|
cssPreflight?: CssPreflightOptions | undefined;
|
|
5
5
|
preservePseudoContentInit?: boolean;
|
|
6
|
+
isTailwindcssV4?: boolean | undefined;
|
|
6
7
|
}
|
|
7
8
|
export declare function collectPreflightRules(root: postcss.Root, options?: {
|
|
8
9
|
preservePseudoContentInit?: boolean;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type postcss from 'postcss';
|
|
2
2
|
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTOR = ":host,page,.tw-root,wx-root-portal-content";
|
|
3
|
+
export declare const MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR = "view,text,:after,:before";
|
|
4
|
+
export declare const MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS: Set<string>;
|
|
3
5
|
export declare const MINI_PROGRAM_PREFLIGHT_SELECTORS: Set<string>;
|
|
4
6
|
export declare const MINI_PROGRAM_THEME_SCOPE_SELECTORS: Set<string>;
|
|
5
7
|
export declare const SPECIFICITY_PLACEHOLDER_SUFFIXES: string[];
|
|
6
8
|
export declare function normalizeSelector(selector: string): string;
|
|
7
9
|
export declare function getRuleSelectors(rule: postcss.Rule): string[];
|
|
10
|
+
export declare function getSortedRuleSelectorKey(rule: postcss.Rule): string;
|
|
8
11
|
export declare function isUnsupportedBrowserSelector(selector: string): boolean;
|
|
9
12
|
export declare function isMiniProgramPreflightSelector(selectors: string[]): boolean;
|
|
10
13
|
export declare function isMiniProgramThemeScopeSelector(selectors: string[]): boolean;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { AtRule, Root, Rule } from 'postcss';
|
|
1
|
+
import type { AtRule, Declaration as PostcssDeclaration, Root, Rule } from 'postcss';
|
|
2
2
|
import { Declaration } from 'postcss';
|
|
3
3
|
export declare function isTailwindcssV4(options?: {
|
|
4
4
|
majorVersion?: number;
|
|
5
5
|
}): boolean;
|
|
6
6
|
export declare function testIfRootHostForV4(node: Rule): boolean;
|
|
7
|
-
export declare const cssVarsV4Nodes:
|
|
7
|
+
export declare const cssVarsV4Nodes: PostcssDeclaration[];
|
|
8
8
|
export declare function collectUsedTailwindcssV4Variables(root: Root): Set<string>;
|
|
9
9
|
export declare function usesTailwindcssV4ContentVariable(root: Root): boolean;
|
|
10
|
-
export declare function createUsedCssVarsV4Nodes(usedProps: ReadonlySet<string>):
|
|
10
|
+
export declare function createUsedCssVarsV4Nodes(usedProps: ReadonlySet<string>): PostcssDeclaration[];
|
|
11
|
+
export declare function createMissingCssVarsV4Nodes(root: Root, usedProps: ReadonlySet<string>): PostcssDeclaration[];
|
|
11
12
|
export declare function isTailwindcssV4ModernCheck(atRule: AtRule): boolean;
|
|
12
13
|
export declare function isTailwindcssV4LinearGradientSupports(atRule: AtRule): boolean;
|
|
13
14
|
export declare function isTailwindcssV4DisplayP3Supports(atRule: AtRule): boolean;
|