@spear-ai/spectral 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 (38) hide show
  1. package/README.md +91 -0
  2. package/dist/App.d.ts +1 -0
  3. package/dist/components/Accordion/Accordion.d.ts +35 -0
  4. package/dist/components/Button/Button.d.ts +20 -0
  5. package/dist/components/Card/Card.d.ts +9 -0
  6. package/dist/components/Checkbox/Checkbox.d.ts +10 -0
  7. package/dist/components/Input/Input.d.ts +21 -0
  8. package/dist/components/Input/InputUtils.d.ts +10 -0
  9. package/dist/components/InputOtp/InputOtp.d.ts +29 -0
  10. package/dist/components/Label/Label.d.ts +3 -0
  11. package/dist/components/RadioGroup/Label.d.ts +4 -0
  12. package/dist/components/RadioGroup/RadioGroup.d.ts +38 -0
  13. package/dist/components/Select/Select.d.ts +24 -0
  14. package/dist/components/Select/SelectList.d.ts +17 -0
  15. package/dist/components/Sidebar/Sidebar.d.ts +1 -0
  16. package/dist/components/Sidebar/SidebarBase.d.ts +65 -0
  17. package/dist/components/Skeleton/Skeleton.d.ts +3 -0
  18. package/dist/components/Slider/Slider.d.ts +18 -0
  19. package/dist/components/Switch/Switch.d.ts +16 -0
  20. package/dist/components/Textarea/Textarea.d.ts +16 -0
  21. package/dist/components/Textarea/TextareaUtils.d.ts +44 -0
  22. package/dist/favicon-invert.svg +5 -0
  23. package/dist/favicon.svg +5 -0
  24. package/dist/hooks/useAccordionAutoScroll.d.ts +8 -0
  25. package/dist/hooks/useOutsideClick.d.ts +7 -0
  26. package/dist/hooks/useTheme.d.ts +7 -0
  27. package/dist/index.d.ts +22 -0
  28. package/dist/logo/wordmark-dark-side-by-side.svg +6 -0
  29. package/dist/logo/wordmark-light-side-by-side.svg +6 -0
  30. package/dist/main.d.ts +0 -0
  31. package/dist/primitives/button.d.ts +10 -0
  32. package/dist/primitives/input.d.ts +3 -0
  33. package/dist/primitives/tooltip.d.ts +7 -0
  34. package/dist/spectral.cjs.js +60 -0
  35. package/dist/spectral.css +1 -0
  36. package/dist/spectral.es.js +5531 -0
  37. package/dist/utils/twUtils.d.ts +2 -0
  38. package/package.json +103 -0
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
package/package.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "name": "@spear-ai/spectral",
3
+ "version": "0.1.1",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "The offical component library for Spear AI",
7
+ "author": "Spear AI",
8
+ "license": "MIT",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/spear-ai/spectral.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/spear-ai/spectral/issues"
15
+ },
16
+ "homepage": "https://github.com/spear-ai/spectral#readme",
17
+ "main": "./dist/spectral.cjs.js",
18
+ "module": "./dist/spectral.es.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/spectral.es.js",
24
+ "require": "./dist/spectral.cjs.js"
25
+ },
26
+ "./styles": "./dist/style.css"
27
+ },
28
+ "files": [
29
+ "dist"
30
+ ],
31
+ "scripts": {
32
+ "dev": "vite --force",
33
+ "build": "tsc -b && vite build --emptyOutDir",
34
+ "build:lib": "tsc && vite build",
35
+ "release": "semantic-release",
36
+ "commit": "cz",
37
+ "setup:npm": "./scripts/setup-npm.sh",
38
+ "preview": "vite preview",
39
+ "storybook": "storybook dev -p 6006",
40
+ "storybook:build": "storybook build",
41
+ "lint": "oxlint --react-plugin --jsx-a11y-plugin --import-plugin src/",
42
+ "lint:fix": "oxlint --react-plugin --jsx-a11y-plugin --import-plugin --fix src/",
43
+ "format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
44
+ "format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,json,css,md}\"",
45
+ "changeset": "changeset",
46
+ "changeset:version": "changeset version",
47
+ "changeset:publish": "changeset publish",
48
+ "clean": "rm -rf $(find dist -maxdepth 1 ! -name \"node_modules\") && rm package-lock.json"
49
+ },
50
+ "dependencies": {
51
+ "@radix-ui/react-accordion": "^1.2.12",
52
+ "@radix-ui/react-checkbox": "^1.3.3",
53
+ "@radix-ui/react-label": "^2.1.7",
54
+ "@radix-ui/react-radio-group": "^1.3.8",
55
+ "@radix-ui/react-select": "^2.2.6",
56
+ "@radix-ui/react-slider": "^1.3.6",
57
+ "@radix-ui/react-slot": "^1.2.3",
58
+ "@radix-ui/react-switch": "^1.2.6",
59
+ "@radix-ui/react-tooltip": "^1.2.8",
60
+ "cmdk": "^1.1.1",
61
+ "input-otp": "^1.4.2",
62
+ "lucide-react": "^0.542.0",
63
+ "path": "^0.12.7",
64
+ "react-day-picker": "^9.9.0",
65
+ "tailwindcss": "^4.1.11",
66
+ "vaul": "^1.1.2"
67
+ },
68
+ "devDependencies": {
69
+ "@changesets/cli": "^2.29.6",
70
+ "@chromatic-com/storybook": "^4.1.1",
71
+ "@prettier/plugin-oxc": "^0.0.4",
72
+ "@storybook/addon-a11y": "^9.1.3",
73
+ "@storybook/addon-docs": "^9.1.3",
74
+ "@storybook/addon-themes": "^9.1.3",
75
+ "@storybook/addon-vitest": "^9.1.3",
76
+ "@storybook/builder-vite": "^9.1.3",
77
+ "@storybook/react-vite": "^9.1.3",
78
+ "@tailwindcss/vite": "^4.1.12",
79
+ "@types/node": "^24.3.0",
80
+ "@types/react": "^19.1.12",
81
+ "@types/react-dom": "^19.1.9",
82
+ "@vitejs/plugin-react-swc": "^4.0.1",
83
+ "@vitest/browser": "3.2.4",
84
+ "@vitest/coverage-v8": "3.2.4",
85
+ "class-variance-authority": "^0.7.1",
86
+ "clsx": "^2.1.1",
87
+ "husky": "^9.1.7",
88
+ "oxlint": "^1.14.0",
89
+ "playwright": "^1.55.0",
90
+ "prettier": "^3.6.2",
91
+ "storybook": "^9.1.3",
92
+ "tailwind-merge": "^3.3.1",
93
+ "tw-animate-css": "^1.3.7",
94
+ "typescript": "^5.9.2",
95
+ "vite": "^7.1.3",
96
+ "vite-plugin-dts": "^4.5.4",
97
+ "vitest": "^3.2.4"
98
+ },
99
+ "peerDependencies": {
100
+ "react": "^18.0.0 || ^19.0.0",
101
+ "react-dom": "^18.0.0 || ^19.0.0"
102
+ }
103
+ }