native-variants 0.1.33 → 0.1.35
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/cn.d.ts +2 -1
- package/dist/cn.js +8 -3
- package/dist/cn.js.map +1 -1
- package/package.json +1 -1
package/dist/cn.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { StyleProp } from "react-native";
|
|
2
|
-
|
|
2
|
+
import { Styles } from "./props.js";
|
|
3
|
+
export declare function merge(...styles: StyleProp<Styles | null | undefined | false>[]): Styles;
|
package/dist/cn.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
return styles
|
|
3
|
+
exports.merge = merge;
|
|
4
|
+
function merge(...styles) {
|
|
5
|
+
return styles
|
|
6
|
+
.filter((style) => Boolean(style))
|
|
7
|
+
.reduce((merged, style) => ({
|
|
8
|
+
...merged,
|
|
9
|
+
...style,
|
|
10
|
+
}), {});
|
|
6
11
|
}
|
|
7
12
|
//# sourceMappingURL=cn.js.map
|
package/dist/cn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.js","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cn.js","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":";;AAGA,sBAYC;AAZD,SAAgB,KAAK,CACnB,GAAG,MAAsD;IAEzD,OAAO,MAAM;SACV,MAAM,CAAC,CAAC,KAAK,EAAmB,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;SAClD,MAAM,CACL,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QAClB,GAAG,MAAM;QACT,GAAG,KAAK;KACT,CAAC,EACF,EAAE,CACH,CAAC;AACN,CAAC"}
|