@modern-js/plugin-tailwindcss 2.41.0 → 2.42.1

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,8 +1,6 @@
1
1
  import type { LegacyAppTools } from '@modern-js/app-tools';
2
2
  import type { CliPlugin, ModuleTools } from '@modern-js/module-tools';
3
- export declare const tailwindcssPlugin: ({
4
- pluginName
5
- }?: {
6
- pluginName: string;
3
+ export declare const tailwindcssPlugin: ({ pluginName }?: {
4
+ pluginName: string;
7
5
  }) => CliPlugin<LegacyAppTools & ModuleTools>;
8
- export default tailwindcssPlugin;
6
+ export default tailwindcssPlugin;
@@ -4,17 +4,11 @@ export declare function loadConfigFile(appDirectory: string): Promise<any>;
4
4
  * Config priority:
5
5
  * `source.designSystem` > `tools.tailwindcss` (extraConfig) > `tailwind.config.*` (userConfig) > `defaultConfig`
6
6
  */
7
- declare const getTailwindConfig: ({
8
- tailwindVersion,
9
- appDirectory,
10
- userConfig,
11
- extraConfig,
12
- designSystem
13
- }: {
14
- tailwindVersion: '2' | '3';
15
- appDirectory: string;
16
- userConfig: TailwindConfig;
17
- extraConfig?: ExtraTailwindConfig | undefined;
18
- designSystem?: DesignSystem | undefined;
7
+ declare const getTailwindConfig: ({ tailwindVersion, appDirectory, userConfig, extraConfig, designSystem, }: {
8
+ tailwindVersion: '2' | '3';
9
+ appDirectory: string;
10
+ userConfig: TailwindConfig;
11
+ extraConfig?: ExtraTailwindConfig | undefined;
12
+ designSystem?: DesignSystem | undefined;
19
13
  }) => TailwindConfig;
20
- export { getTailwindConfig };
14
+ export { getTailwindConfig };
@@ -1,6 +1,4 @@
1
1
  import type { CliPlugin, LegacyAppTools } from '@modern-js/app-tools';
2
- export declare const designTokenPlugin: ({
3
- pluginName
4
- }?: {
5
- pluginName: string;
6
- }) => CliPlugin<LegacyAppTools>;
2
+ export declare const designTokenPlugin: ({ pluginName }?: {
3
+ pluginName: string;
4
+ }) => CliPlugin<LegacyAppTools>;
@@ -1,2 +1,2 @@
1
1
  export { default } from './runtime';
2
- export * from './runtime';
2
+ export * from './runtime';
@@ -1,10 +1,8 @@
1
1
  import type { Declaration } from 'postcss';
2
- declare const _default: ({
3
- cssVarsHash
4
- }?: {
5
- cssVarsHash?: Record<string, string> | undefined;
2
+ declare const _default: ({ cssVarsHash, }?: {
3
+ cssVarsHash?: Record<string, string> | undefined;
6
4
  }) => {
7
- postcssPlugin: string;
8
- Declaration(decl: Declaration): void;
5
+ postcssPlugin: string;
6
+ Declaration(decl: Declaration): void;
9
7
  };
10
- export default _default;
8
+ export default _default;
@@ -1,3 +1,3 @@
1
1
  import designTokenPlugin from './plugin';
2
2
  export * from './plugin';
3
- export default designTokenPlugin;
3
+ export default designTokenPlugin;
@@ -3,8 +3,8 @@ import React from 'react';
3
3
  export declare const DesignTokenContext: React.Context<any>;
4
4
  export declare const useDesignTokens: () => IDesignTokens;
5
5
  declare const _default: (options?: {
6
- token?: Record<string, any>;
7
- useStyledComponentsThemeProvider?: boolean;
8
- useDesignTokenContext?: boolean;
6
+ token?: Record<string, any>;
7
+ useStyledComponentsThemeProvider?: boolean;
8
+ useDesignTokenContext?: boolean;
9
9
  }) => Plugin;
10
- export default _default;
10
+ export default _default;
@@ -1,3 +1,3 @@
1
1
  import { tailwindcssPlugin } from './cli';
2
2
  export { tailwindcssPlugin };
3
- export default tailwindcssPlugin;
3
+ export default tailwindcssPlugin;
@@ -1,4 +1,4 @@
1
1
  export declare const template: (configPath: string) => string;
2
2
  export declare const checkTwinMacroExist: (appDirectory: string) => Promise<boolean>;
3
3
  export declare const getTwinMacroMajorVersion: (appDirectory: string) => number | null;
4
- export declare const getRandomTwConfigFileName: (internalDirectory: string) => string;
4
+ export declare const getRandomTwConfigFileName: (internalDirectory: string) => string;
@@ -1,5 +1,5 @@
1
1
  export type DesignSystem = TailwindConfig & {
2
- supportStyledComponents?: boolean;
2
+ supportStyledComponents?: boolean;
3
3
  };
4
4
  export type TailwindConfig = Record<string, any>;
5
- export type ExtraTailwindConfig = TailwindConfig | ((options: TailwindConfig) => TailwindConfig | void);
5
+ export type ExtraTailwindConfig = TailwindConfig | ((options: TailwindConfig) => TailwindConfig | void);
@@ -1,2 +1,2 @@
1
1
  export declare function getTailwindPath(appDirectory: string): string;
2
- export declare function getTailwindVersion(appDirectory: string): '2' | '3';
2
+ export declare function getTailwindVersion(appDirectory: string): '2' | '3';
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.41.0",
18
+ "version": "2.42.1",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -49,8 +49,8 @@
49
49
  "babel-plugin-macros": "3.1.0",
50
50
  "hoist-non-react-statics": "^3.3.2",
51
51
  "@swc/helpers": "0.5.3",
52
- "@modern-js/utils": "2.41.0",
53
- "@modern-js/node-bundle-require": "2.41.0"
52
+ "@modern-js/utils": "2.42.1",
53
+ "@modern-js/node-bundle-require": "2.42.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/jest": "^29",
@@ -60,17 +60,17 @@
60
60
  "jest": "^29",
61
61
  "react": "^18",
62
62
  "postcss": "8.4.31",
63
- "@modern-js/core": "2.41.0",
64
- "@modern-js/module-tools": "2.41.0",
65
- "@modern-js/runtime": "2.41.0",
66
- "@modern-js/types": "2.41.0",
67
- "@scripts/build": "2.41.0",
68
- "@modern-js/app-tools": "2.41.0",
69
- "@scripts/jest-config": "2.41.0"
63
+ "@modern-js/core": "2.42.1",
64
+ "@modern-js/module-tools": "2.42.1",
65
+ "@modern-js/types": "2.42.1",
66
+ "@modern-js/runtime": "2.42.1",
67
+ "@modern-js/app-tools": "2.42.1",
68
+ "@scripts/build": "2.42.1",
69
+ "@scripts/jest-config": "2.42.1"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "tailwindcss": ">= 2.0.0 || >= 3.0.0",
73
- "@modern-js/runtime": "^2.41.0"
73
+ "@modern-js/runtime": "^2.42.1"
74
74
  },
75
75
  "peerDependenciesMeta": {
76
76
  "@modern-js/runtime": {