virtualized-ui 0.0.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/CLAUDE.MD +54 -0
  2. package/LICENSE +21 -0
  3. package/package.json +18 -0
package/CLAUDE.MD ADDED
@@ -0,0 +1,54 @@
1
+ # CLAUDE.md
2
+
3
+ ## Project Overview
4
+
5
+ virtual-ui is a component library providing virtualized table and select primitives for React. Headless by design — logic and structure, no styles.
6
+
7
+ ## Architecture
8
+
9
+ ```
10
+ packages/core/ # npm package (@virtual-ui/core)
11
+ docs/ # Astro docs site
12
+ .storybook/ # Storybook config (stories live in packages/core/src/)
13
+ ```
14
+
15
+ ## Key Dependencies
16
+
17
+ - **VirtualTable**: TanStack Table + TanStack Virtual
18
+ - **VirtualSelect**: react-select + TanStack Virtual
19
+ - **Docs**: Astro + Tailwind + daisyUI
20
+
21
+ ## Commands
22
+
23
+ ```bash
24
+ pnpm dev # Storybook (development)
25
+ pnpm build # Build package
26
+ pnpm build:docs # Build docs site
27
+ cd docs && pnpm dev # Run docs locally
28
+ ```
29
+
30
+ ## Component Guidelines
31
+
32
+ - Single component per feature, props enable variants (no separate AsyncSelect, etc.)
33
+ - All features opt-in via props
34
+ - No default styles — render semantic HTML, let users style
35
+ - Export types alongside components
36
+
37
+ ## File Conventions
38
+
39
+ - `ComponentName.tsx` — component implementation
40
+ - `ComponentName.stories.tsx` — Storybook stories
41
+ - `types.ts` — TypeScript types per component folder
42
+
43
+ ## Testing Changes
44
+
45
+ 1. Run Storybook (`pnpm dev`)
46
+ 2. Check relevant stories
47
+ 3. Test with 10k items to verify virtualization works
48
+
49
+ ## Publishing
50
+
51
+ ```bash
52
+ pnpm build
53
+ cd packages/core && npm publish --access public
54
+ ```
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Greg Levine-Rozenvayn
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/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "virtualized-ui",
3
+ "version": "0.0.1",
4
+ "description": "Headless virtualized table and select components for React",
5
+ "keywords": [
6
+ "react",
7
+ "virtual",
8
+ "table",
9
+ "select",
10
+ "headless",
11
+ "tanstack"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/grishalr/virtualized-ui.git"
17
+ }
18
+ }