@weapp-tailwindcss/postcss 3.2.8 → 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.
@@ -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;
@@ -1,4 +1,4 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
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") if (selectorFilter && selectorFilter.test(rule.selector)) walkRules(rule);
182
- else walkRules(rule);
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) {
@@ -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") if (selectorFilter && selectorFilter.test(rule.selector)) walkRules(rule);
180
- else walkRules(rule);
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) {