@rip-lang/grid 0.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.
Files changed (3) hide show
  1. package/README.md +32 -0
  2. package/grid.rip +7 -0
  3. package/package.json +45 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ <img src="https://raw.githubusercontent.com/shreeve/rip-lang/main/docs/assets/rip.png" style="width:50px" /> <br>
2
+
3
+ # Rip Grid - @rip-lang/grid
4
+
5
+ > **High-performance, reactive, virtual-scrolling data grid written entirely in Rip.**
6
+
7
+ - 100K+ rows at 60fps scroll
8
+ - Fine-grained reactive updates
9
+ - Zero dependencies — pure Rip, compiled to ES2022
10
+ - Semantic HTML `<table>` with sticky headers
11
+ - Themeable via CSS custom properties
12
+ - Dark mode support
13
+
14
+ ## Development
15
+
16
+ From the repo root:
17
+
18
+ ```bash
19
+ bun packages/grid/grid.rip
20
+ ```
21
+
22
+ Then open http://localhost:3003.
23
+
24
+ ## Status
25
+
26
+ - **Phase 1** — Viewport ✓
27
+ - **Phase 2** — Selection and Navigation ✓
28
+ - **Phase 3** — Editing ✓
29
+ - **Phase 4** — Features (in progress: sorting ✓, resize ✓, freeze, reorder, clipboard, undo/redo)
30
+ - **Phase 5** — Polish and Performance
31
+
32
+ See [GRID.md](GRID.md) for the full specification.
package/grid.rip ADDED
@@ -0,0 +1,7 @@
1
+ import { get, use, start } from '@rip-lang/api'
2
+ import { ripUI } from '@rip-lang/ui/serve'
3
+
4
+ dir = import.meta.dir
5
+ use ripUI dir: dir
6
+ get '/*' -> @send "#{dir}/grid.html", 'text/html; charset=UTF-8'
7
+ start port: 3003
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@rip-lang/grid",
3
+ "version": "0.1.0",
4
+ "description": "High-performance reactive data grid for Rip UI",
5
+ "type": "module",
6
+ "main": "grid.rip",
7
+ "exports": {
8
+ ".": "./grid.rip"
9
+ },
10
+ "scripts": {
11
+ "test": "echo \"Tests coming soon\" && exit 0"
12
+ },
13
+ "keywords": [
14
+ "grid",
15
+ "datagrid",
16
+ "table",
17
+ "virtual-scroll",
18
+ "reactive",
19
+ "rip",
20
+ "rip-lang"
21
+ ],
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/shreeve/rip-lang.git",
25
+ "directory": "packages/grid"
26
+ },
27
+ "homepage": "https://github.com/shreeve/rip-lang/tree/main/packages/grid#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/shreeve/rip-lang/issues"
30
+ },
31
+ "author": "Steve Shreeve <steve.shreeve@gmail.com>",
32
+ "license": "MIT",
33
+ "files": [
34
+ "grid.rip",
35
+ "README.md"
36
+ ],
37
+ "peerDependencies": {
38
+ "@rip-lang/ui": ">=0.3.19"
39
+ },
40
+ "peerDependenciesMeta": {
41
+ "@rip-lang/ui": {
42
+ "optional": false
43
+ }
44
+ }
45
+ }