modern-cmdk 1.0.1 → 1.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/dist/codemod/cli.mjs +1 -3
- package/dist/codemod/transforms/data-attrs.d.mts +1 -2
- package/dist/codemod/transforms/data-attrs.mjs +0 -2
- package/dist/codemod/transforms/forward-ref.d.mts +1 -2
- package/dist/codemod/transforms/forward-ref.mjs +0 -2
- package/dist/codemod/transforms/import-rewrite.d.mts +1 -2
- package/dist/codemod/transforms/import-rewrite.mjs +0 -2
- package/dist/codemod/transforms/should-filter.d.mts +1 -2
- package/dist/codemod/transforms/should-filter.mjs +0 -2
- package/dist/core/index.d.mts +568 -2
- package/dist/core/index.mjs +1268 -1
- package/dist/react/index.d.mts +369 -4
- package/dist/react/index.mjs +1380 -265
- package/{src → dist}/react/styles.css +1 -3
- package/package.json +28 -12
- package/dist/codemod/cli.mjs.map +0 -1
- package/dist/codemod/transforms/data-attrs.d.mts.map +0 -1
- package/dist/codemod/transforms/data-attrs.mjs.map +0 -1
- package/dist/codemod/transforms/forward-ref.d.mts.map +0 -1
- package/dist/codemod/transforms/forward-ref.mjs.map +0 -1
- package/dist/codemod/transforms/import-rewrite.d.mts.map +0 -1
- package/dist/codemod/transforms/import-rewrite.mjs.map +0 -1
- package/dist/codemod/transforms/should-filter.d.mts.map +0 -1
- package/dist/codemod/transforms/should-filter.mjs.map +0 -1
- package/dist/core-DZT7Vwmo.mjs +0 -1219
- package/dist/core-DZT7Vwmo.mjs.map +0 -1
- package/dist/index-zBlDFopY.d.mts +0 -562
- package/dist/index-zBlDFopY.d.mts.map +0 -1
- package/dist/react/index.d.mts.map +0 -1
- package/dist/react/index.mjs.map +0 -1
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
z-index: 9998;
|
|
133
133
|
background: oklch(0 0 0 / var(--command-overlay-opacity, 0.4));
|
|
134
134
|
backdrop-filter: blur(var(--command-overlay-blur));
|
|
135
|
-
-webkit-backdrop-filter: blur(var(--command-overlay-blur));
|
|
136
135
|
}
|
|
137
136
|
|
|
138
137
|
/* ─── Dialog ─── */
|
|
@@ -202,7 +201,6 @@
|
|
|
202
201
|
[data-command-item] {
|
|
203
202
|
cursor: pointer;
|
|
204
203
|
user-select: none;
|
|
205
|
-
will-change: background-color;
|
|
206
204
|
transition: background-color var(--command-duration-item) linear(0, 0.25, 0.5, 0.75, 1);
|
|
207
205
|
scroll-margin-block: 8px;
|
|
208
206
|
content-visibility: auto;
|
|
@@ -432,7 +430,7 @@
|
|
|
432
430
|
|
|
433
431
|
[data-command-scroll-indicator] {
|
|
434
432
|
block-size: 2px;
|
|
435
|
-
transform-origin:
|
|
433
|
+
transform-origin: left center;
|
|
436
434
|
scale: 0 1;
|
|
437
435
|
animation: scroll-progress linear both;
|
|
438
436
|
animation-timeline: --list-scroll;
|
package/package.json
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modern-cmdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The definitive command palette engine for the modern web",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/ABCrimson/modern-cmdk#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/ABCrimson/modern-cmdk/issues"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=22.0.0"
|
|
13
|
+
},
|
|
7
14
|
"publishConfig": {
|
|
8
15
|
"access": "public"
|
|
9
16
|
},
|
|
10
17
|
"exports": {
|
|
11
18
|
".": {
|
|
12
19
|
"types": "./dist/core/index.d.mts",
|
|
13
|
-
"import": "./dist/core/index.mjs"
|
|
20
|
+
"import": "./dist/core/index.mjs",
|
|
21
|
+
"default": "./dist/core/index.mjs"
|
|
14
22
|
},
|
|
15
23
|
"./react": {
|
|
16
24
|
"types": "./dist/react/index.d.mts",
|
|
17
|
-
"import": "./dist/react/index.mjs"
|
|
25
|
+
"import": "./dist/react/index.mjs",
|
|
26
|
+
"default": "./dist/react/index.mjs"
|
|
18
27
|
},
|
|
19
|
-
"./styles.css": "./
|
|
28
|
+
"./styles.css": "./dist/react/styles.css"
|
|
20
29
|
},
|
|
21
30
|
"main": "./dist/core/index.mjs",
|
|
22
31
|
"types": "./dist/core/index.d.mts",
|
|
@@ -25,12 +34,16 @@
|
|
|
25
34
|
},
|
|
26
35
|
"files": [
|
|
27
36
|
"dist",
|
|
28
|
-
"
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"sideEffects": [
|
|
40
|
+
"./dist/react/styles.css",
|
|
41
|
+
"./dist/react/index.mjs"
|
|
29
42
|
],
|
|
30
|
-
"sideEffects": false,
|
|
31
43
|
"peerDependencies": {
|
|
32
|
-
"react": ">=19.0.0",
|
|
33
|
-
"react-dom": ">=19.0.0"
|
|
44
|
+
"react": ">=19.0.0 <21.0.0",
|
|
45
|
+
"react-dom": ">=19.0.0 <21.0.0",
|
|
46
|
+
"radix-ui": ">=1.4.0 <2.0.0"
|
|
34
47
|
},
|
|
35
48
|
"peerDependenciesMeta": {
|
|
36
49
|
"react": {
|
|
@@ -38,15 +51,18 @@
|
|
|
38
51
|
},
|
|
39
52
|
"react-dom": {
|
|
40
53
|
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"radix-ui": {
|
|
56
|
+
"optional": true
|
|
41
57
|
}
|
|
42
58
|
},
|
|
43
59
|
"dependencies": {
|
|
44
|
-
"idb-keyval": "6.2.2"
|
|
45
|
-
"radix-ui": "1.4.4-rc.1766004502650"
|
|
60
|
+
"idb-keyval": "6.2.2"
|
|
46
61
|
},
|
|
47
62
|
"devDependencies": {
|
|
48
63
|
"globby": "16.1.1",
|
|
49
64
|
"jscodeshift": "17.3.0",
|
|
65
|
+
"radix-ui": "1.4.4-rc.1766004502650",
|
|
50
66
|
"@types/jscodeshift": "^17.3.0"
|
|
51
67
|
},
|
|
52
68
|
"keywords": [
|
|
@@ -60,11 +76,11 @@
|
|
|
60
76
|
],
|
|
61
77
|
"repository": {
|
|
62
78
|
"type": "git",
|
|
63
|
-
"url": "https://github.com/ABCrimson/modern-cmdk",
|
|
79
|
+
"url": "git+https://github.com/ABCrimson/modern-cmdk.git",
|
|
64
80
|
"directory": "packages/modern-cmdk"
|
|
65
81
|
},
|
|
66
82
|
"scripts": {
|
|
67
|
-
"build": "tsdown
|
|
83
|
+
"build": "tsdown --config tsdown.config.ts && node -e \"const fs=require('fs');fs.cpSync('src/react/styles.css','dist/react/styles.css')\"",
|
|
68
84
|
"dev": "tsdown src/core/index.ts src/react/index.ts --format esm --dts --watch",
|
|
69
85
|
"typecheck": "tsc --noEmit"
|
|
70
86
|
}
|