native-variants 0.1.32 → 0.1.33

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 ADDED
@@ -0,0 +1,2 @@
1
+ import { StyleProp } from "react-native";
2
+ export declare function cn<T extends object>(...styles: Array<StyleProp<T> | null | undefined | false>): StyleProp<T>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.merge = merge;
4
- function merge(...styles) {
3
+ exports.cn = cn;
4
+ function cn(...styles) {
5
5
  return styles.filter(Boolean);
6
6
  }
7
- //# sourceMappingURL=merge.js.map
7
+ //# sourceMappingURL=cn.js.map
package/dist/cn.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cn.js","sourceRoot":"","sources":["../src/cn.ts"],"names":[],"mappings":";;AAEA,gBAIC;AAJD,SAAgB,EAAE,CAChB,GAAG,MAAsD;IAEzD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAiB,CAAC;AAChD,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./merge.js";
1
+ export * from "./cn.js";
2
2
  export * from "./nv.js";
3
3
  export * from "./props.js";
4
4
  export * from './create-provider.js';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./merge.js"), exports);
17
+ __exportStar(require("./cn.js"), exports);
18
18
  __exportStar(require("./nv.js"), exports);
19
19
  __exportStar(require("./props.js"), exports);
20
20
  __exportStar(require("./create-provider.js"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,uCAAqB;AACrB,0CAAwB;AACxB,oDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uCAAqB;AACrB,uCAAqB;AACrB,0CAAwB;AACxB,oDAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-variants",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "A library for handling variants in React Native components with theme support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "typescript-eslint": "^8.18.0"
41
41
  },
42
42
  "dependencies": {
43
- "react-native": "0.79.3"
43
+ "react-native": "0.78.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": "^19.0.0"
package/dist/merge.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { StyleProp } from "react-native";
2
- export declare function merge<T extends object>(...styles: Array<StyleProp<T> | null | undefined | false>): StyleProp<T>;
package/dist/merge.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"merge.js","sourceRoot":"","sources":["../src/merge.ts"],"names":[],"mappings":";;AAEA,sBAIC;AAJD,SAAgB,KAAK,CACnB,GAAG,MAAsD;IAEzD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAiB,CAAC;AAChD,CAAC"}