tailwindcss 4.0.17 → 4.1.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.
@@ -1 +1 @@
1
- import"./chunk-47VYP36A.mjs";function i(r){let n={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[o,f]of Object.entries(i(t)))n[`${e}${o==="DEFAULT"?"":`-${o}`}`]=f;else n[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))(Number(t)&4)===0&&(n[e]=r[e]);return n}export{i as default};
1
+ import"./chunk-ETYEVOII.mjs";import"./chunk-JT3OR7HW.mjs";import"./chunk-PGUMDM6Y.mjs";function i(r){let n={};for(let[e,t]of Object.entries(r??{}))if(e!=="__CSS_VALUES__")if(typeof t=="object"&&t!==null)for(let[o,f]of Object.entries(i(t)))n[`${e}${o==="DEFAULT"?"":`-${o}`}`]=f;else n[e]=t;if("__CSS_VALUES__"in r)for(let[e,t]of Object.entries(r.__CSS_VALUES__))(Number(t)&4)===0&&(n[e]=r[e]);return n}export{i as default};
package/dist/lib.d.mts CHANGED
@@ -216,8 +216,15 @@ type Rule = StyleRule | AtRule;
216
216
  type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
217
217
 
218
218
  type Config = UserConfig;
219
+ declare const enum Polyfills {
220
+ None = 0,
221
+ AtProperty = 1,
222
+ ColorMix = 2,
223
+ All = 3
224
+ }
219
225
  type CompileOptions = {
220
226
  base?: string;
227
+ polyfills?: Polyfills;
221
228
  loadModule?: (id: string, base: string, resourceHint: 'plugin' | 'config') => Promise<{
222
229
  module: Plugin | Config;
223
230
  base: string;
@@ -241,18 +248,20 @@ declare const enum Features {
241
248
  Variants = 32
242
249
  }
243
250
  declare function compileAst(input: AstNode[], opts?: CompileOptions): Promise<{
244
- globs: {
251
+ sources: {
245
252
  base: string;
246
253
  pattern: string;
254
+ negated: boolean;
247
255
  }[];
248
256
  root: Root;
249
257
  features: Features;
250
258
  build(candidates: string[]): AstNode[];
251
259
  }>;
252
260
  declare function compile(css: string, opts?: CompileOptions): Promise<{
253
- globs: {
261
+ sources: {
254
262
  base: string;
255
263
  pattern: string;
264
+ negated: boolean;
256
265
  }[];
257
266
  root: Root;
258
267
  features: Features;
@@ -261,4 +270,4 @@ declare function compile(css: string, opts?: CompileOptions): Promise<{
261
270
  declare function __unstable__loadDesignSystem(css: string, opts?: CompileOptions): Promise<DesignSystem>;
262
271
  declare function postcssPluginWarning(): void;
263
272
 
264
- export { type Config, Features, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };
273
+ export { type Config, Features, Polyfills, __unstable__loadDesignSystem, compile, compileAst, postcssPluginWarning as default };