glyphx 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -28
  3. package/package.json +4 -8
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ashutosh Gupta
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Glyph
1
+ # GlyphX
2
2
 
3
3
  A fast, keyboard-first, Spotlight-style command palette for React.
4
4
 
@@ -18,19 +18,16 @@ Glyph provides a clean, accessible, and native-feeling command menu inspired by
18
18
  ## Installation
19
19
 
20
20
  ```bash
21
- npm install glyph
21
+ npm install glyphx
22
+ ```
22
23
  or
23
- pnpm add glyph
24
-
25
- ---
26
-
27
- ## 4️⃣ Basic Usage
28
-
29
- ```md
24
+ ```bash
25
+ pnpm add glyphx
26
+ ```
30
27
  ## Basic Usage
31
28
 
32
29
  ```tsx
33
- import { Glyph } from "glyph";
30
+ import { GlyphX } from "glyphx";
34
31
 
35
32
  const commands = [
36
33
  {
@@ -44,30 +41,23 @@ const commands = [
44
41
  ];
45
42
 
46
43
  export default function App() {
47
- return <Glyph commands={commands} />;
44
+ return <GlyphX commands={commands} />;
48
45
  }
46
+ ```
49
47
  Press ⌘ + K on macOS or Ctrl + K on Windows/Linux to open the palette.
50
48
 
51
49
  ---
52
50
 
53
- ## 5️⃣ Controlled Usage
54
-
55
- ```md
56
51
  ## Controlled Usage
57
52
 
58
53
  ```tsx
59
- <Glyph
54
+ <GlyphX
60
55
  commands={commands}
61
56
  open={isOpen}
62
57
  onOpenChange={setIsOpen}
63
58
  />
59
+ ```
64
60
 
65
-
66
- ---
67
-
68
- ## 6️⃣ Command Shape
69
-
70
- ```md
71
61
  ## Command Shape
72
62
 
73
63
  ```ts
@@ -77,12 +67,8 @@ type Command = {
77
67
  group?: string;
78
68
  run: () => void;
79
69
  };
70
+ ```
80
71
 
81
- ---
82
-
83
- ## 7️⃣ Design Goals
84
-
85
- ```md
86
72
  ## Design Goals
87
73
 
88
74
  - Minimal visual noise
@@ -91,11 +77,11 @@ type Command = {
91
77
  - Native-feeling motion
92
78
  - Easy to integrate and customize
93
79
 
94
- Glyph is intended as a foundational UI primitive, not a full application.
80
+ GlyphX is intended as a foundational UI primitive, not a full application.
95
81
 
96
82
  ## Status
97
83
 
98
- Glyph is in early development.
84
+ GlyphX is in early development.
99
85
  APIs may change until a stable release is published.
100
86
 
101
87
  ## License
package/package.json CHANGED
@@ -1,32 +1,29 @@
1
1
  {
2
2
  "name": "glyphx",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A fast, keyboard-first, Spotlight-style command palette for React",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
-
8
7
  "main": "dist/index.js",
9
8
  "types": "dist/index.d.ts",
10
- "files": ["dist"],
11
-
9
+ "files": [
10
+ "dist"
11
+ ],
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
16
  }
17
17
  },
18
-
19
18
  "scripts": {
20
19
  "dev": "vite",
21
20
  "build": "vite build",
22
21
  "preview": "vite preview"
23
22
  },
24
-
25
23
  "peerDependencies": {
26
24
  "react": "^18 || ^19",
27
25
  "react-dom": "^18 || ^19"
28
26
  },
29
-
30
27
  "dependencies": {
31
28
  "@radix-ui/react-dialog": "^1.1.15",
32
29
  "@radix-ui/react-visually-hidden": "^1.2.4",
@@ -35,7 +32,6 @@
35
32
  "fuzzysort": "^3.1.0",
36
33
  "zustand": "^5.0.9"
37
34
  },
38
-
39
35
  "devDependencies": {
40
36
  "@eslint/js": "^9.39.1",
41
37
  "@tailwindcss/cli": "^4.1.18",