modern-cmdk 1.3.0 → 1.5.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/LICENSE +1 -1
- package/README.md +76 -172
- package/THIRD-PARTY-NOTICES.md +303 -0
- package/dist/codemod/bin.mjs +14 -0
- package/dist/codemod/chunk-jscodeshift.mjs +36210 -0
- package/dist/codemod/chunk-print-options.mjs +43 -0
- package/dist/codemod/chunk-worker.mjs +476 -0
- package/dist/codemod/cli.mjs +298 -43659
- package/dist/codemod/transforms/data-attrs.mjs +551 -38
- package/dist/codemod/transforms/forward-ref.mjs +197 -32
- package/dist/codemod/transforms/import-rewrite.mjs +389 -30
- package/dist/codemod/transforms/should-filter.mjs +199 -10
- package/dist/codemod/worker.mjs +1 -0
- package/dist/core/index.d.mts +6 -1
- package/dist/core/index.mjs +12 -4
- package/dist/react/chunk-dialog.mjs +237 -0
- package/dist/react/dialog.d.mts +18 -0
- package/dist/react/dialog.mjs +2 -0
- package/dist/react/index.d.mts +26 -334
- package/dist/react/index.mjs +54 -1377
- package/dist/react/styles.css +2 -2
- package/package.json +12 -18
- package/dist/codemod/cli.d.mts +0 -16
- package/dist/codemod/transforms/data-attrs.d.mts +0 -6
- package/dist/codemod/transforms/forward-ref.d.mts +0 -6
- package/dist/codemod/transforms/import-rewrite.d.mts +0 -6
- package/dist/codemod/transforms/should-filter.d.mts +0 -5
package/dist/react/styles.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* modern-cmdk/react —
|
|
1
|
+
/* modern-cmdk/react — tokens, item and list transitions; the dialog and overlay transitions are declared but inert until DT-19 */
|
|
2
2
|
/* All animations respect prefers-reduced-motion */
|
|
3
3
|
/* Spring easing via linear() approximation — perceptually smooth */
|
|
4
4
|
/* Scroll-driven animations via animation-timeline: scroll() */
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/* ─── Dialog Animations ─── */
|
|
344
|
-
/*
|
|
344
|
+
/* Dialog transitions: inert until DT-19 */
|
|
345
345
|
/* Spring easing via linear() approximation */
|
|
346
346
|
|
|
347
347
|
[data-command-dialog][data-state="open"] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "modern-cmdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The definitive command palette engine for the modern web",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,37 +8,37 @@
|
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/ABCrimson/modern-cmdk/issues"
|
|
10
10
|
},
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=26.4.0"
|
|
13
|
-
},
|
|
14
11
|
"publishConfig": {
|
|
15
12
|
"access": "public"
|
|
16
13
|
},
|
|
17
14
|
"exports": {
|
|
18
15
|
".": {
|
|
19
16
|
"types": "./dist/core/index.d.mts",
|
|
20
|
-
"import": "./dist/core/index.mjs",
|
|
21
17
|
"default": "./dist/core/index.mjs"
|
|
22
18
|
},
|
|
23
19
|
"./react": {
|
|
24
20
|
"types": "./dist/react/index.d.mts",
|
|
25
|
-
"import": "./dist/react/index.mjs",
|
|
26
21
|
"default": "./dist/react/index.mjs"
|
|
27
22
|
},
|
|
28
|
-
"./
|
|
23
|
+
"./react/dialog": {
|
|
24
|
+
"types": "./dist/react/dialog.d.mts",
|
|
25
|
+
"default": "./dist/react/dialog.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./styles.css": "./dist/react/styles.css",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"main": "./dist/core/index.mjs",
|
|
31
31
|
"types": "./dist/core/index.d.mts",
|
|
32
32
|
"bin": {
|
|
33
|
-
"modern-cmdk": "./dist/codemod/
|
|
33
|
+
"modern-cmdk": "./dist/codemod/bin.mjs"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist",
|
|
37
|
-
"LICENSE"
|
|
37
|
+
"LICENSE",
|
|
38
|
+
"THIRD-PARTY-NOTICES.md"
|
|
38
39
|
],
|
|
39
40
|
"sideEffects": [
|
|
40
|
-
"./dist/react/styles.css"
|
|
41
|
-
"./dist/react/index.mjs"
|
|
41
|
+
"./dist/react/styles.css"
|
|
42
42
|
],
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=19.0.0 <21.0.0",
|
|
@@ -51,19 +51,13 @@
|
|
|
51
51
|
},
|
|
52
52
|
"react-dom": {
|
|
53
53
|
"optional": true
|
|
54
|
-
},
|
|
55
|
-
"radix-ui": {
|
|
56
|
-
"optional": true
|
|
57
54
|
}
|
|
58
55
|
},
|
|
59
56
|
"dependencies": {
|
|
60
57
|
"idb-keyval": "6.3.0"
|
|
61
58
|
},
|
|
62
59
|
"devDependencies": {
|
|
63
|
-
"
|
|
64
|
-
"jscodeshift": "17.4.0",
|
|
65
|
-
"radix-ui": "1.8.2-rc.1791984254107",
|
|
66
|
-
"@types/jscodeshift": "17.3.0"
|
|
60
|
+
"radix-ui": "1.8.2-rc.1791984254107"
|
|
67
61
|
},
|
|
68
62
|
"keywords": [
|
|
69
63
|
"command-palette",
|
package/dist/codemod/cli.d.mts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { API, FileInfo } from "jscodeshift";
|
|
2
|
-
type TransformFn = (fileInfo: FileInfo, api: API) => string;
|
|
3
|
-
/** The two streams the CLI writes to; `process` satisfies this, tests pass collectors. */
|
|
4
|
-
export interface CliIo {
|
|
5
|
-
readonly stdout: NodeJS.WritableStream;
|
|
6
|
-
readonly stderr: NodeJS.WritableStream;
|
|
7
|
-
}
|
|
8
|
-
/** Test seam: replace how a transform is loaded (the bundled bin imports `./transforms/<name>.mjs`). */
|
|
9
|
-
export interface CliDeps {
|
|
10
|
-
readonly loadTransform?: (name: string) => Promise<TransformFn>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Run the codemod CLI. Resolves to the process exit code; writes only to `io`.
|
|
14
|
-
*/
|
|
15
|
-
export declare function run(argv: readonly string[], io: CliIo, deps?: CliDeps): Promise<number>;
|
|
16
|
-
export {};
|