@cdx-ui/utils 0.0.1-beta.139 → 0.0.1-beta.140
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/lib/commonjs/common/cva.js +13 -0
- package/lib/commonjs/common/cva.js.map +1 -0
- package/lib/commonjs/common/index.js +7 -0
- package/lib/commonjs/common/index.js.map +1 -1
- package/lib/module/common/cva.js +4 -0
- package/lib/module/common/cva.js.map +1 -0
- package/lib/module/common/index.js +1 -0
- package/lib/module/common/index.js.map +1 -1
- package/lib/typescript/common/cva.d.ts +2 -0
- package/lib/typescript/common/cva.d.ts.map +1 -0
- package/lib/typescript/common/index.d.ts +1 -0
- package/lib/typescript/common/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/common/cva.ts +1 -0
- package/src/common/index.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "cva", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _classVarianceAuthority.cva;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _classVarianceAuthority = require("class-variance-authority");
|
|
13
|
+
//# sourceMappingURL=cva.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_classVarianceAuthority","require"],"sourceRoot":"../../../src","sources":["common/cva.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "composeEventHandlers", {
|
|
|
21
21
|
return _composeEventHandlers.composeEventHandlers;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "cva", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _cva.cva;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
Object.defineProperty(exports, "flattenChildren", {
|
|
25
31
|
enumerable: true,
|
|
26
32
|
get: function () {
|
|
@@ -41,6 +47,7 @@ Object.defineProperty(exports, "useControllableState", {
|
|
|
41
47
|
});
|
|
42
48
|
var _accessibilityUtils = require("./accessibilityUtils");
|
|
43
49
|
var _cn = require("./cn");
|
|
50
|
+
var _cva = require("./cva");
|
|
44
51
|
var _composeEventHandlers = require("./composeEventHandlers");
|
|
45
52
|
var _getSpacedChild = require("./getSpacedChild");
|
|
46
53
|
var _mergeRefs = require("./mergeRefs");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_accessibilityUtils","require","_cn","_composeEventHandlers","_getSpacedChild","_mergeRefs","_useControllableState"],"sourceRoot":"../../../src","sources":["common/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_accessibilityUtils","require","_cn","_cva","_composeEventHandlers","_getSpacedChild","_mergeRefs","_useControllableState"],"sourceRoot":"../../../src","sources":["common/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,GAAA,GAAAD,OAAA;AACA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["cva"],"sourceRoot":"../../../src","sources":["common/cva.ts"],"mappings":";;AAAA,SAASA,GAAG,QAA2B,0BAA0B","ignoreList":[]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
export { ariaAttr } from './accessibilityUtils';
|
|
4
4
|
export { cn } from './cn';
|
|
5
|
+
export { cva } from './cva';
|
|
5
6
|
export { composeEventHandlers } from './composeEventHandlers';
|
|
6
7
|
export { flattenChildren } from './getSpacedChild';
|
|
7
8
|
export { mergeRefs } from './mergeRefs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ariaAttr","cn","composeEventHandlers","flattenChildren","mergeRefs","useControllableState"],"sourceRoot":"../../../src","sources":["common/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,EAAE,QAAQ,MAAM;AACzB,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,SAAS,QAAQ,aAAa;AACvC,SAA0CC,oBAAoB,QAAQ,wBAAwB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["ariaAttr","cn","cva","composeEventHandlers","flattenChildren","mergeRefs","useControllableState"],"sourceRoot":"../../../src","sources":["common/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,sBAAsB;AAC/C,SAASC,EAAE,QAAQ,MAAM;AACzB,SAASC,GAAG,QAA2B,OAAO;AAC9C,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,SAAS,QAAQ,aAAa;AACvC,SAA0CC,oBAAoB,QAAQ,wBAAwB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cva.d.ts","sourceRoot":"","sources":["../../../src/common/cva.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ariaAttr } from './accessibilityUtils';
|
|
2
2
|
export { cn } from './cn';
|
|
3
|
+
export { cva, type VariantProps } from './cva';
|
|
3
4
|
export { composeEventHandlers } from './composeEventHandlers';
|
|
4
5
|
export { flattenChildren } from './getSpacedChild';
|
|
5
6
|
export { mergeRefs } from './mergeRefs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdx-ui/utils",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.140",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
+
"class-variance-authority": "^0.7.1",
|
|
34
35
|
"clsx": "2.1.1",
|
|
35
36
|
"tailwind-merge": "3.5.0"
|
|
36
37
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cva, type VariantProps } from 'class-variance-authority';
|
package/src/common/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ariaAttr } from './accessibilityUtils';
|
|
2
2
|
export { cn } from './cn';
|
|
3
|
+
export { cva, type VariantProps } from './cva';
|
|
3
4
|
export { composeEventHandlers } from './composeEventHandlers';
|
|
4
5
|
export { flattenChildren } from './getSpacedChild';
|
|
5
6
|
export { mergeRefs } from './mergeRefs';
|