@weapp-tailwindcss/merge 1.0.0-alpha.3 → 1.0.0-alpha.4
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 +29 -2
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +31 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5,11 +5,38 @@ var _chunkVR7IWN2Zcjs = require('./chunk-VR7IWN2Z.cjs');
|
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
var _clsx = require('clsx');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
8
15
|
var _tailwindmerge = require('tailwind-merge');
|
|
9
|
-
function
|
|
16
|
+
function twMerge(...inputs) {
|
|
10
17
|
return _chunkVR7IWN2Zcjs.replaceWxml.call(void 0, _tailwindmerge.twMerge.call(void 0, _clsx.clsx.call(void 0, inputs)));
|
|
11
18
|
}
|
|
19
|
+
function twJoin(...inputs) {
|
|
20
|
+
return _chunkVR7IWN2Zcjs.replaceWxml.call(void 0, _tailwindmerge.twJoin.call(void 0, _clsx.clsx.call(void 0, inputs)));
|
|
21
|
+
}
|
|
22
|
+
var extendTailwindMerge = (...args) => {
|
|
23
|
+
const customTwMerge = _tailwindmerge.extendTailwindMerge.call(void 0, ...args);
|
|
24
|
+
return function cn(...inputs) {
|
|
25
|
+
return _chunkVR7IWN2Zcjs.replaceWxml.call(void 0, customTwMerge(_clsx.clsx.call(void 0, inputs)));
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
var createTailwindMerge = (...args) => {
|
|
29
|
+
const customTwMerge = _tailwindmerge.createTailwindMerge.call(void 0, ...args);
|
|
30
|
+
return function cn(...inputs) {
|
|
31
|
+
return _chunkVR7IWN2Zcjs.replaceWxml.call(void 0, customTwMerge(_clsx.clsx.call(void 0, inputs)));
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
12
39
|
|
|
13
40
|
|
|
14
41
|
|
|
15
|
-
exports.
|
|
42
|
+
exports.createTailwindMerge = createTailwindMerge; exports.extendTailwindMerge = extendTailwindMerge; exports.getDefaultConfig = _tailwindmerge.getDefaultConfig; exports.mergeConfigs = _tailwindmerge.mergeConfigs; exports.twJoin = twJoin; exports.twMerge = twMerge; exports.weappTwIgnore = _chunkVR7IWN2Zcjs.weappTwIgnore;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
+
export { ClassValue } from 'clsx';
|
|
3
|
+
import { extendTailwindMerge as extendTailwindMerge$1, createTailwindMerge as createTailwindMerge$1 } from 'tailwind-merge';
|
|
4
|
+
export { getDefaultConfig, mergeConfigs } from 'tailwind-merge';
|
|
2
5
|
export { weappTwIgnore } from 'weapp-tailwindcss/escape';
|
|
3
6
|
|
|
4
|
-
declare function
|
|
7
|
+
declare function twMerge(...inputs: ClassValue[]): string;
|
|
8
|
+
declare function twJoin(...inputs: ClassValue[]): string;
|
|
9
|
+
declare const extendTailwindMerge: typeof extendTailwindMerge$1;
|
|
10
|
+
declare const createTailwindMerge: typeof createTailwindMerge$1;
|
|
5
11
|
|
|
6
|
-
export {
|
|
12
|
+
export { createTailwindMerge, extendTailwindMerge, twJoin, twMerge };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
+
export { ClassValue } from 'clsx';
|
|
3
|
+
import { extendTailwindMerge as extendTailwindMerge$1, createTailwindMerge as createTailwindMerge$1 } from 'tailwind-merge';
|
|
4
|
+
export { getDefaultConfig, mergeConfigs } from 'tailwind-merge';
|
|
2
5
|
export { weappTwIgnore } from 'weapp-tailwindcss/escape';
|
|
3
6
|
|
|
4
|
-
declare function
|
|
7
|
+
declare function twMerge(...inputs: ClassValue[]): string;
|
|
8
|
+
declare function twJoin(...inputs: ClassValue[]): string;
|
|
9
|
+
declare const extendTailwindMerge: typeof extendTailwindMerge$1;
|
|
10
|
+
declare const createTailwindMerge: typeof createTailwindMerge$1;
|
|
5
11
|
|
|
6
|
-
export {
|
|
12
|
+
export { createTailwindMerge, extendTailwindMerge, twJoin, twMerge };
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,38 @@ import {
|
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { clsx } from "clsx";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import {
|
|
9
|
+
createTailwindMerge as _createTailwindMerge,
|
|
10
|
+
extendTailwindMerge as _extendTailwindMerge,
|
|
11
|
+
twJoin as _twJoin,
|
|
12
|
+
twMerge as _twMerge,
|
|
13
|
+
getDefaultConfig,
|
|
14
|
+
mergeConfigs
|
|
15
|
+
} from "tailwind-merge";
|
|
16
|
+
function twMerge(...inputs) {
|
|
17
|
+
return replaceWxml(_twMerge(clsx(inputs)));
|
|
18
|
+
}
|
|
19
|
+
function twJoin(...inputs) {
|
|
20
|
+
return replaceWxml(_twJoin(clsx(inputs)));
|
|
11
21
|
}
|
|
22
|
+
var extendTailwindMerge = (...args) => {
|
|
23
|
+
const customTwMerge = _extendTailwindMerge(...args);
|
|
24
|
+
return function cn(...inputs) {
|
|
25
|
+
return replaceWxml(customTwMerge(clsx(inputs)));
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
var createTailwindMerge = (...args) => {
|
|
29
|
+
const customTwMerge = _createTailwindMerge(...args);
|
|
30
|
+
return function cn(...inputs) {
|
|
31
|
+
return replaceWxml(customTwMerge(clsx(inputs)));
|
|
32
|
+
};
|
|
33
|
+
};
|
|
12
34
|
export {
|
|
13
|
-
|
|
35
|
+
createTailwindMerge,
|
|
36
|
+
extendTailwindMerge,
|
|
37
|
+
getDefaultConfig,
|
|
38
|
+
mergeConfigs,
|
|
39
|
+
twJoin,
|
|
40
|
+
twMerge,
|
|
14
41
|
weappTwIgnore
|
|
15
42
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-tailwindcss/merge",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.4",
|
|
5
5
|
"description": "weapp-tailwindcss",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"tailwind-merge": "^2.6.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"weapp-tailwindcss": "4.0.0-alpha.
|
|
39
|
+
"weapp-tailwindcss": "4.0.0-alpha.8"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "tsup --watch --sourcemap",
|