yummies 3.4.1 → 4.1.0
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/css.d.ts +7 -0
- package/css.d.ts.map +1 -1
- package/css.js +10 -0
- package/package.json +2 -8
- package/index.d.ts +0 -25
- package/index.d.ts.map +0 -1
- package/index.js +0 -24
package/css.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cva as cvaLib } from 'class-variance-authority';
|
|
1
2
|
import clsx from 'clsx';
|
|
2
3
|
/**
|
|
3
4
|
* Перевод значения в пикселях в rem строковое
|
|
@@ -7,4 +8,10 @@ export declare const toRem: (px: number, remValue?: number) => string;
|
|
|
7
8
|
* classNames/clsx но с примесями tailwind-merge
|
|
8
9
|
*/
|
|
9
10
|
export declare const cx: (...args: Parameters<typeof clsx>) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Class Variance Authority но с примесями tailwind-merge
|
|
13
|
+
*
|
|
14
|
+
* https://cva.style/docs
|
|
15
|
+
*/
|
|
16
|
+
export declare const cva: typeof cvaLib;
|
|
10
17
|
//# sourceMappingURL=css.d.ts.map
|
package/css.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/css.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,EAAE,iBAAa,WAA0B,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,UAAU,CAAC,OAAO,IAAI,CAAC,WAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../src/css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,EAAE,iBAAa,WAA0B,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,MAAM,UAAU,CAAC,OAAO,IAAI,CAAC,WAA2B,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,GAAG,EAGH,OAAO,MAAM,CAAC"}
|
package/css.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cva as cvaLib } from 'class-variance-authority';
|
|
1
2
|
import clsx from 'clsx';
|
|
2
3
|
import { twMerge } from 'tailwind-merge';
|
|
3
4
|
/**
|
|
@@ -8,3 +9,12 @@ export const toRem = (px, remValue = 16) => `${px / remValue}rem`;
|
|
|
8
9
|
* classNames/clsx но с примесями tailwind-merge
|
|
9
10
|
*/
|
|
10
11
|
export const cx = (...args) => twMerge(clsx(...args));
|
|
12
|
+
/**
|
|
13
|
+
* Class Variance Authority но с примесями tailwind-merge
|
|
14
|
+
*
|
|
15
|
+
* https://cva.style/docs
|
|
16
|
+
*/
|
|
17
|
+
export const cva = ((...args) => {
|
|
18
|
+
const schema = cvaLib(...args);
|
|
19
|
+
return (...inputArgs) => twMerge(schema(...inputArgs));
|
|
20
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yummies",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": "js2me",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@types/insane": "^1.0.0",
|
|
19
|
+
"class-variance-authority": "^0.7.1",
|
|
19
20
|
"clsx": "^2.1.1",
|
|
20
21
|
"dayjs": "^1.11.13",
|
|
21
22
|
"insane": "^2.6.2",
|
|
@@ -127,11 +128,6 @@
|
|
|
127
128
|
"default": "./imports.js",
|
|
128
129
|
"types": "./imports.d.ts"
|
|
129
130
|
},
|
|
130
|
-
".": {
|
|
131
|
-
"import": "./index.js",
|
|
132
|
-
"default": "./index.js",
|
|
133
|
-
"types": "./index.d.ts"
|
|
134
|
-
},
|
|
135
131
|
"./math": {
|
|
136
132
|
"import": "./math.js",
|
|
137
133
|
"default": "./math.js",
|
|
@@ -208,8 +204,6 @@
|
|
|
208
204
|
"files": [
|
|
209
205
|
"*"
|
|
210
206
|
],
|
|
211
|
-
"main": "./index.js",
|
|
212
|
-
"typings": "./index.d.ts",
|
|
213
207
|
"scripts": {
|
|
214
208
|
"clean": "rimraf dist",
|
|
215
209
|
"lint:check": "eslint . --fix",
|
package/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * from './complex/index.js';
|
|
2
|
-
export * from './type-guard/index.js';
|
|
3
|
-
export * from './utils/types.js';
|
|
4
|
-
export * from './async.js';
|
|
5
|
-
export * from './common.js';
|
|
6
|
-
export * from './cookie.js';
|
|
7
|
-
export * from './css.js';
|
|
8
|
-
export * from './data.js';
|
|
9
|
-
export * from './date-time.js';
|
|
10
|
-
export * from './device.js';
|
|
11
|
-
export * from './encodings.js';
|
|
12
|
-
export * from './file.js';
|
|
13
|
-
export * from './html.js';
|
|
14
|
-
export * from './id.js';
|
|
15
|
-
export * from './imports.js';
|
|
16
|
-
export * from './math.js';
|
|
17
|
-
export * from './media.js';
|
|
18
|
-
export * from './ms.js';
|
|
19
|
-
export * from './price.js';
|
|
20
|
-
export * from './random.js';
|
|
21
|
-
export * from './sound.js';
|
|
22
|
-
export * from './storage.js';
|
|
23
|
-
export * from './text.js';
|
|
24
|
-
export * from './vibrate.js';
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
package/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export * from './complex/index.js';
|
|
2
|
-
export * from './type-guard/index.js';
|
|
3
|
-
export * from './utils/types.js';
|
|
4
|
-
export * from './async.js';
|
|
5
|
-
export * from './common.js';
|
|
6
|
-
export * from './cookie.js';
|
|
7
|
-
export * from './css.js';
|
|
8
|
-
export * from './data.js';
|
|
9
|
-
export * from './date-time.js';
|
|
10
|
-
export * from './device.js';
|
|
11
|
-
export * from './encodings.js';
|
|
12
|
-
export * from './file.js';
|
|
13
|
-
export * from './html.js';
|
|
14
|
-
export * from './id.js';
|
|
15
|
-
export * from './imports.js';
|
|
16
|
-
export * from './math.js';
|
|
17
|
-
export * from './media.js';
|
|
18
|
-
export * from './ms.js';
|
|
19
|
-
export * from './price.js';
|
|
20
|
-
export * from './random.js';
|
|
21
|
-
export * from './sound.js';
|
|
22
|
-
export * from './storage.js';
|
|
23
|
-
export * from './text.js';
|
|
24
|
-
export * from './vibrate.js';
|