@weapp-tailwindcss/postcss 3.2.7 → 3.2.9
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/css-macro/auto.d.ts +2 -4
- package/dist/css-macro/conditions.d.ts +6 -0
- package/dist/html-transform.cjs +5 -3
- package/dist/html-transform.js +4 -2
- package/dist/index.cjs +302 -120
- package/dist/index.d.ts +1 -0
- package/dist/index.js +301 -120
- package/dist/{rolldown-runtime-D6vf50IK.cjs → rolldown-runtime-VH7oDXx4.cjs} +1 -1
- package/dist/selectorParser/pseudo.d.ts +1 -0
- package/dist/selectorParser/rule-transformer/types.d.ts +1 -0
- package/dist/selectorParser/rule-transformer/unsupported-pseudos.d.ts +5 -0
- package/dist/selectorParser.d.ts +1 -0
- package/dist/types.d.ts +13 -1
- package/package.json +3 -3
package/dist/css-macro/auto.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import type { IStyleHandlerOptions } from '../types.js';
|
|
2
|
+
import { compileCssMacroConditionalComments, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4InternalAtRules, transformCssMacroTailwindV4Source } from './conditions.js';
|
|
2
3
|
export declare const CSS_MACRO_STYLE_OPTIONS_MARKER = "__weappTailwindcssCssMacroEnabled";
|
|
3
|
-
export declare function compileCssMacroConditionalComments(css: string, options?: Pick<IStyleHandlerOptions, 'platform'>): string;
|
|
4
4
|
export declare function hasCssMacroTailwindV4Directive(css: string | undefined): boolean;
|
|
5
|
-
export declare function hasCssMacroTailwindV4CustomVariantConditionalComments(css: string | undefined): boolean;
|
|
6
|
-
export declare function hasCssMacroTailwindV4InternalAtRules(css: string | undefined): boolean;
|
|
7
5
|
export declare function hasCssMacroTailwindV4Source(css: string | undefined): boolean;
|
|
8
|
-
export declare function transformCssMacroTailwindV4Source(css: string): string;
|
|
9
6
|
export declare function withCssMacroStyleOptions(options: Partial<IStyleHandlerOptions> | undefined): Partial<IStyleHandlerOptions>;
|
|
10
7
|
export declare function hasCssMacroStyleOptions(options: Partial<IStyleHandlerOptions> | undefined): boolean;
|
|
11
8
|
export declare function transformCssMacroCss(css: string, options?: Pick<IStyleHandlerOptions, 'platform'>): Promise<string>;
|
|
9
|
+
export { compileCssMacroConditionalComments, hasCssMacroTailwindV4CustomVariantConditionalComments, hasCssMacroTailwindV4InternalAtRules, transformCssMacroTailwindV4Source, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function compileCssMacroConditionalComments(css: string, options?: {
|
|
2
|
+
platform?: string;
|
|
3
|
+
}): string;
|
|
4
|
+
export declare function transformCssMacroTailwindV4Source(css: string): string;
|
|
5
|
+
export declare function hasCssMacroTailwindV4CustomVariantConditionalComments(css: string | undefined): boolean;
|
|
6
|
+
export declare function hasCssMacroTailwindV4InternalAtRules(css: string | undefined): boolean;
|
package/dist/html-transform.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-VH7oDXx4.cjs");
|
|
2
2
|
let node_process = require("node:process");
|
|
3
3
|
node_process = require_rolldown_runtime.__toESM(node_process, 1);
|
|
4
4
|
let _weapp_tailwindcss_shared = require("@weapp-tailwindcss/shared");
|
|
@@ -178,8 +178,10 @@ const postcssHtmlTransform = (opts = {}) => {
|
|
|
178
178
|
return {
|
|
179
179
|
postcssPlugin: "postcss-html-transform",
|
|
180
180
|
Rule(rule) {
|
|
181
|
-
if (typeof walkRules === "function")
|
|
182
|
-
|
|
181
|
+
if (typeof walkRules === "function") {
|
|
182
|
+
if (selectorFilter && selectorFilter.test(rule.selector)) walkRules(rule);
|
|
183
|
+
else walkRules(rule);
|
|
184
|
+
}
|
|
183
185
|
},
|
|
184
186
|
Declaration(decl) {
|
|
185
187
|
if (options?.removeCursorStyle) {
|
package/dist/html-transform.js
CHANGED
|
@@ -176,8 +176,10 @@ const postcssHtmlTransform = (opts = {}) => {
|
|
|
176
176
|
return {
|
|
177
177
|
postcssPlugin: "postcss-html-transform",
|
|
178
178
|
Rule(rule) {
|
|
179
|
-
if (typeof walkRules === "function")
|
|
180
|
-
|
|
179
|
+
if (typeof walkRules === "function") {
|
|
180
|
+
if (selectorFilter && selectorFilter.test(rule.selector)) walkRules(rule);
|
|
181
|
+
else walkRules(rule);
|
|
182
|
+
}
|
|
181
183
|
},
|
|
182
184
|
Declaration(decl) {
|
|
183
185
|
if (options?.removeCursorStyle) {
|