@fictjs/ui-primitives 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 (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +181 -0
  3. package/dist/index.cjs +5091 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.cts +1123 -0
  6. package/dist/index.d.ts +1123 -0
  7. package/dist/index.js +4907 -0
  8. package/dist/index.js.map +1 -0
  9. package/docs/README.md +39 -0
  10. package/docs/accessibility.md +50 -0
  11. package/docs/api-reference.md +200 -0
  12. package/docs/architecture.md +113 -0
  13. package/docs/components/core/accessible-icon.md +23 -0
  14. package/docs/components/core/id.md +26 -0
  15. package/docs/components/core/portal.md +30 -0
  16. package/docs/components/core/presence.md +27 -0
  17. package/docs/components/core/primitive.md +22 -0
  18. package/docs/components/core/separator.md +25 -0
  19. package/docs/components/core/slot.md +25 -0
  20. package/docs/components/core/visually-hidden.md +21 -0
  21. package/docs/components/disclosure/accordion.md +33 -0
  22. package/docs/components/disclosure/collapsible.md +29 -0
  23. package/docs/components/disclosure/navigation-menu.md +43 -0
  24. package/docs/components/disclosure/tabs.md +35 -0
  25. package/docs/components/feedback/toast.md +60 -0
  26. package/docs/components/form/calendar.md +35 -0
  27. package/docs/components/form/controls.md +52 -0
  28. package/docs/components/form/date-picker.md +44 -0
  29. package/docs/components/form/form-field.md +39 -0
  30. package/docs/components/form/inputs.md +99 -0
  31. package/docs/components/interaction/dismissable-layer.md +28 -0
  32. package/docs/components/interaction/focus-scope.md +27 -0
  33. package/docs/components/interaction/live-region.md +26 -0
  34. package/docs/components/interaction/popper.md +30 -0
  35. package/docs/components/interaction/roving-focus.md +27 -0
  36. package/docs/components/interaction/scroll-lock.md +22 -0
  37. package/docs/components/layout/layout.md +61 -0
  38. package/docs/components/menu/context-menu.md +44 -0
  39. package/docs/components/menu/dropdown-menu.md +62 -0
  40. package/docs/components/menu/menubar.md +38 -0
  41. package/docs/components/overlay/alert-dialog.md +46 -0
  42. package/docs/components/overlay/command-palette.md +54 -0
  43. package/docs/components/overlay/dialog.md +69 -0
  44. package/docs/components/overlay/hover-card.md +25 -0
  45. package/docs/components/overlay/popover.md +36 -0
  46. package/docs/components/overlay/tooltip.md +28 -0
  47. package/docs/examples.md +155 -0
  48. package/docs/release.md +60 -0
  49. package/docs/testing.md +36 -0
  50. package/package.json +89 -0
package/package.json ADDED
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "@fictjs/ui-primitives",
3
+ "version": "0.1.0",
4
+ "description": "Official headless UI primitives for Fict",
5
+ "keywords": [
6
+ "fict",
7
+ "fictjs",
8
+ "ui",
9
+ "headless",
10
+ "primitives",
11
+ "a11y"
12
+ ],
13
+ "license": "MIT",
14
+ "type": "module",
15
+ "packageManager": "pnpm@9.1.1",
16
+ "main": "./dist/index.cjs",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "require": "./dist/index.cjs"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "docs"
29
+ ],
30
+ "sideEffects": false,
31
+ "engines": {
32
+ "node": ">=18"
33
+ },
34
+ "config": {
35
+ "commitizen": {
36
+ "path": "cz-conventional-changelog"
37
+ }
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ },
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/fictjs/ui-primitives.git"
46
+ },
47
+ "scripts": {
48
+ "build": "tsup",
49
+ "dev": "tsup --watch",
50
+ "clean": "rimraf dist coverage examples/dist",
51
+ "typecheck": "tsc --noEmit",
52
+ "lint": "eslint .",
53
+ "lint:fix": "eslint . --fix",
54
+ "format": "prettier --write .",
55
+ "format:check": "prettier --check .",
56
+ "test": "vitest run",
57
+ "test:coverage": "vitest run --coverage",
58
+ "test:watch": "vitest",
59
+ "commit": "git-cz",
60
+ "examples:dev": "vite --config examples/vite.config.ts",
61
+ "examples:build": "vite build --config examples/vite.config.ts",
62
+ "examples:preview": "vite preview --config examples/vite.config.ts",
63
+ "examples:screenshots:install": "playwright install chromium",
64
+ "examples:screenshots": "node scripts/capture-examples.mjs"
65
+ },
66
+ "peerDependencies": {
67
+ "@fictjs/hooks": "^0.3.0",
68
+ "@fictjs/runtime": "^0.10.0"
69
+ },
70
+ "devDependencies": {
71
+ "@eslint/js": "^10.0.1",
72
+ "@fictjs/hooks": "^0.3.0",
73
+ "@fictjs/runtime": "^0.10.0",
74
+ "@testing-library/dom": "^10.4.1",
75
+ "@types/node": "^25.2.2",
76
+ "@vitest/coverage-v8": "^4.0.18",
77
+ "commitizen": "^4.3.1",
78
+ "eslint": "^10.0.0",
79
+ "jsdom": "^28.0.0",
80
+ "playwright": "^1.58.2",
81
+ "prettier": "^3.8.1",
82
+ "rimraf": "^6.1.2",
83
+ "tsup": "^8.5.1",
84
+ "typescript": "^5.9.3",
85
+ "typescript-eslint": "^8.54.0",
86
+ "vite": "^7.3.1",
87
+ "vitest": "^4.0.18"
88
+ }
89
+ }