@weapp-tailwindcss/merge 2.1.6 → 2.2.0-next.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.
- package/dist/index.cjs +2 -4
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +1 -3
- package/dist/lite.cjs +21 -0
- package/dist/lite.d.cts +16 -0
- package/dist/lite.d.mts +16 -0
- package/dist/lite.mjs +14 -0
- package/dist/slim.cjs +982 -0
- package/dist/slim.d.cts +33 -0
- package/dist/slim.d.mts +33 -0
- package/dist/slim.mjs +973 -0
- package/package.json +27 -2
package/dist/slim.d.cts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as _$_weapp_tailwindcss_runtime0 from "@weapp-tailwindcss/runtime";
|
|
2
|
+
import { ClassValue, CreateOptions, EscapeConfig, UnescapeConfig, weappTwIgnore } from "@weapp-tailwindcss/runtime";
|
|
3
|
+
import * as _$tailwind_merge0 from "tailwind-merge";
|
|
4
|
+
import { Config, mergeConfigs } from "tailwind-merge";
|
|
5
|
+
|
|
6
|
+
//#region src/slim-config.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 精简版 tailwind-merge 配置,仅包含小程序场景中高频使用的 Tailwind 类冲突分组。
|
|
9
|
+
*
|
|
10
|
+
* 包含类别:布局、Flexbox、Grid、对齐、间距、尺寸、排版、背景、边框、效果、变换、过渡、交互、定位
|
|
11
|
+
* 排除类别:SVG、表格、滚动捕捉、触摸操作、遮罩、透视、容器查询、列、分页、装饰断行、
|
|
12
|
+
* 滚动行为覆盖、屏幕阅读器、宽高比、容器、强制颜色调整、will-change、行截断、
|
|
13
|
+
* 字体变体数字、渐变、滤镜/背景滤镜、强调色、光标颜色、外观
|
|
14
|
+
*/
|
|
15
|
+
declare function getSlimConfig(): Config<string, string>;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/slim.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* 基于 Slim_Config 的 `extendTailwindMerge`。
|
|
20
|
+
*
|
|
21
|
+
* 与上游 `extendTailwindMerge` 行为一致,但使用 `getSlimConfig` 替代 `getDefaultConfig` 作为基础配置。
|
|
22
|
+
*/
|
|
23
|
+
declare function _extendTailwindMerge(configExtension: any, ...createConfig: any[]): (...classLists: _$tailwind_merge0.ClassNameValue[]) => string;
|
|
24
|
+
declare const create: (createOptions?: _$_weapp_tailwindcss_runtime0.CreateOptions) => {
|
|
25
|
+
version: _$_weapp_tailwindcss_runtime0.TailwindMergeVersion;
|
|
26
|
+
twMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime;
|
|
27
|
+
twJoin: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime;
|
|
28
|
+
extendTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<typeof _extendTailwindMerge>;
|
|
29
|
+
createTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<(createConfigFirst: () => _$tailwind_merge0.Config<string, string>, ...createConfigRest: ((config: _$tailwind_merge0.Config<string, string>) => _$tailwind_merge0.Config<string, string>)[]) => (...classLists: _$tailwind_merge0.ClassNameValue[]) => string>;
|
|
30
|
+
};
|
|
31
|
+
declare const tailwindMergeVersion: _$_weapp_tailwindcss_runtime0.TailwindMergeVersion, twMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime, twJoin: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime, extendTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<typeof _extendTailwindMerge>, createTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<(createConfigFirst: () => _$tailwind_merge0.Config<string, string>, ...createConfigRest: ((config: _$tailwind_merge0.Config<string, string>) => _$tailwind_merge0.Config<string, string>)[]) => (...classLists: _$tailwind_merge0.ClassNameValue[]) => string>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { type ClassValue, type CreateOptions, type EscapeConfig, type UnescapeConfig, create, createTailwindMerge, extendTailwindMerge, getSlimConfig, mergeConfigs, tailwindMergeVersion, twJoin, twMerge, weappTwIgnore };
|
package/dist/slim.d.mts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as _$_weapp_tailwindcss_runtime0 from "@weapp-tailwindcss/runtime";
|
|
2
|
+
import { ClassValue, CreateOptions, EscapeConfig, UnescapeConfig, weappTwIgnore } from "@weapp-tailwindcss/runtime";
|
|
3
|
+
import * as _$tailwind_merge0 from "tailwind-merge";
|
|
4
|
+
import { Config, mergeConfigs } from "tailwind-merge";
|
|
5
|
+
|
|
6
|
+
//#region src/slim-config.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* 精简版 tailwind-merge 配置,仅包含小程序场景中高频使用的 Tailwind 类冲突分组。
|
|
9
|
+
*
|
|
10
|
+
* 包含类别:布局、Flexbox、Grid、对齐、间距、尺寸、排版、背景、边框、效果、变换、过渡、交互、定位
|
|
11
|
+
* 排除类别:SVG、表格、滚动捕捉、触摸操作、遮罩、透视、容器查询、列、分页、装饰断行、
|
|
12
|
+
* 滚动行为覆盖、屏幕阅读器、宽高比、容器、强制颜色调整、will-change、行截断、
|
|
13
|
+
* 字体变体数字、渐变、滤镜/背景滤镜、强调色、光标颜色、外观
|
|
14
|
+
*/
|
|
15
|
+
declare function getSlimConfig(): Config<string, string>;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/slim.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* 基于 Slim_Config 的 `extendTailwindMerge`。
|
|
20
|
+
*
|
|
21
|
+
* 与上游 `extendTailwindMerge` 行为一致,但使用 `getSlimConfig` 替代 `getDefaultConfig` 作为基础配置。
|
|
22
|
+
*/
|
|
23
|
+
declare function _extendTailwindMerge(configExtension: any, ...createConfig: any[]): (...classLists: _$tailwind_merge0.ClassNameValue[]) => string;
|
|
24
|
+
declare const create: (createOptions?: _$_weapp_tailwindcss_runtime0.CreateOptions) => {
|
|
25
|
+
version: _$_weapp_tailwindcss_runtime0.TailwindMergeVersion;
|
|
26
|
+
twMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime;
|
|
27
|
+
twJoin: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime;
|
|
28
|
+
extendTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<typeof _extendTailwindMerge>;
|
|
29
|
+
createTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<(createConfigFirst: () => _$tailwind_merge0.Config<string, string>, ...createConfigRest: ((config: _$tailwind_merge0.Config<string, string>) => _$tailwind_merge0.Config<string, string>)[]) => (...classLists: _$tailwind_merge0.ClassNameValue[]) => string>;
|
|
30
|
+
};
|
|
31
|
+
declare const tailwindMergeVersion: _$_weapp_tailwindcss_runtime0.TailwindMergeVersion, twMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime, twJoin: _$_weapp_tailwindcss_runtime0.TailwindMergeRuntime, extendTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<typeof _extendTailwindMerge>, createTailwindMerge: _$_weapp_tailwindcss_runtime0.TailwindMergeFactory<(createConfigFirst: () => _$tailwind_merge0.Config<string, string>, ...createConfigRest: ((config: _$tailwind_merge0.Config<string, string>) => _$tailwind_merge0.Config<string, string>)[]) => (...classLists: _$tailwind_merge0.ClassNameValue[]) => string>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { type ClassValue, type CreateOptions, type EscapeConfig, type UnescapeConfig, create, createTailwindMerge, extendTailwindMerge, getSlimConfig, mergeConfigs, tailwindMergeVersion, twJoin, twMerge, weappTwIgnore };
|