classix 0.0.1 → 0.0.2

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.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  declare type Argument = string | boolean | number;
2
- export declare function cx(...args: Argument[]): string;
2
+ declare function cx(...args: Argument[]): string;
3
+ export { cx };
3
4
  export default cx;
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
- export function cx(...args) {
2
- let str = "", i = 0, arg, val;
3
- while (i < args.length) {
4
- if ((arg = args[i++])) {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cx = void 0;
4
+ function cx() {
5
+ var str = "", i = 0, arg, val;
6
+ while (i < arguments.length) {
7
+ if ((arg = arguments[i++])) {
5
8
  if ((val = typeof arg === "string" || typeof arg === "number" ? arg : "")) {
6
9
  str && (str += " ");
7
10
  str += val;
@@ -10,4 +13,5 @@ export function cx(...args) {
10
13
  }
11
14
  return str;
12
15
  }
13
- export default cx;
16
+ exports.cx = cx;
17
+ exports.default = cx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classix",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A tiny utility for conditionally joining classNames.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",