@vasf/ragnar-core 1.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 (77) hide show
  1. package/dist/components/accordion.d.ts +7 -0
  2. package/dist/components/alert-dialog.d.ts +20 -0
  3. package/dist/components/alert.d.ts +8 -0
  4. package/dist/components/aspect-ratio.d.ts +3 -0
  5. package/dist/components/avatar.d.ts +6 -0
  6. package/dist/components/badge.d.ts +9 -0
  7. package/dist/components/banner.d.ts +14 -0
  8. package/dist/components/breadcrumb.d.ts +19 -0
  9. package/dist/components/button.d.ts +11 -0
  10. package/dist/components/calendar.d.ts +8 -0
  11. package/dist/components/card.d.ts +8 -0
  12. package/dist/components/carousel.d.ts +18 -0
  13. package/dist/components/checkbox.d.ts +4 -0
  14. package/dist/components/code-block.d.ts +26 -0
  15. package/dist/components/collapsible.d.ts +5 -0
  16. package/dist/components/command.d.ts +80 -0
  17. package/dist/components/context-menu.d.ts +27 -0
  18. package/dist/components/credit-card-input.d.ts +28 -0
  19. package/dist/components/date-picker.d.ts +26 -0
  20. package/dist/components/datetime-picker.d.ts +12 -0
  21. package/dist/components/decimal-input.d.ts +41 -0
  22. package/dist/components/dialog.d.ts +19 -0
  23. package/dist/components/drawer.d.ts +33 -0
  24. package/dist/components/dropdown-menu.d.ts +27 -0
  25. package/dist/components/email-input.d.ts +7 -0
  26. package/dist/components/fieldset.d.ts +5 -0
  27. package/dist/components/file-input.d.ts +30 -0
  28. package/dist/components/form-label.d.ts +15 -0
  29. package/dist/components/hover-card.d.ts +6 -0
  30. package/dist/components/input-otp.d.ts +23 -0
  31. package/dist/components/input.d.ts +5 -0
  32. package/dist/components/kbd.d.ts +24 -0
  33. package/dist/components/link.d.ts +13 -0
  34. package/dist/components/media.d.ts +15 -0
  35. package/dist/components/menubar.d.ts +28 -0
  36. package/dist/components/multi-select.d.ts +19 -0
  37. package/dist/components/navigation-drawer.d.ts +29 -0
  38. package/dist/components/navigation-menu.d.ts +12 -0
  39. package/dist/components/number-input.d.ts +13 -0
  40. package/dist/components/pagination.d.ts +28 -0
  41. package/dist/components/password-input.d.ts +14 -0
  42. package/dist/components/phone-input.d.ts +17 -0
  43. package/dist/components/pill.d.ts +12 -0
  44. package/dist/components/popover.d.ts +6 -0
  45. package/dist/components/progress.d.ts +4 -0
  46. package/dist/components/radio-group.d.ts +5 -0
  47. package/dist/components/rating.d.ts +12 -0
  48. package/dist/components/resizable.d.ts +29 -0
  49. package/dist/components/rich-text.d.ts +16 -0
  50. package/dist/components/scroll-area.d.ts +5 -0
  51. package/dist/components/search-input.d.ts +44 -0
  52. package/dist/components/select.d.ts +13 -0
  53. package/dist/components/separator.d.ts +4 -0
  54. package/dist/components/sheet.d.ts +25 -0
  55. package/dist/components/sidebar.d.ts +51 -0
  56. package/dist/components/skeleton.d.ts +2 -0
  57. package/dist/components/slider.d.ts +4 -0
  58. package/dist/components/sonner.d.ts +4 -0
  59. package/dist/components/spinner.d.ts +9 -0
  60. package/dist/components/stepper.d.ts +21 -0
  61. package/dist/components/switch.d.ts +4 -0
  62. package/dist/components/table.d.ts +10 -0
  63. package/dist/components/tabs.d.ts +7 -0
  64. package/dist/components/textarea.d.ts +3 -0
  65. package/dist/components/time-picker.d.ts +18 -0
  66. package/dist/components/timeline.d.ts +37 -0
  67. package/dist/components/toggle-group.d.ts +12 -0
  68. package/dist/components/toggle.d.ts +12 -0
  69. package/dist/components/tooltip.d.ts +7 -0
  70. package/dist/components/tree-view.d.ts +19 -0
  71. package/dist/index.cjs +2 -0
  72. package/dist/index.d.ts +71 -0
  73. package/dist/index.js +7537 -0
  74. package/dist/lib/utils.d.ts +2 -0
  75. package/dist/styles.css +90 -0
  76. package/dist/test/setup.d.ts +1 -0
  77. package/package.json +108 -0
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,90 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @import "@vasf/ragnar-tokens/css";
6
+
7
+ @layer base {
8
+ :root {
9
+ --background: 0 0% 100%;
10
+ --foreground: 222.2 84% 4.9%;
11
+
12
+ --card: 0 0% 100%;
13
+ --card-foreground: 222.2 84% 4.9%;
14
+
15
+ --popover: 0 0% 100%;
16
+ --popover-foreground: 222.2 84% 4.9%;
17
+
18
+ --primary: 222.2 47.4% 11.2%;
19
+ --primary-foreground: 210 40% 98%;
20
+
21
+ --secondary: 210 40% 96.1%;
22
+ --secondary-foreground: 222.2 47.4% 11.2%;
23
+
24
+ --muted: 210 40% 96.1%;
25
+ --muted-foreground: 215.4 16.3% 46.9%;
26
+
27
+ --accent: 210 40% 96.1%;
28
+ --accent-foreground: 222.2 47.4% 11.2%;
29
+
30
+ --destructive: 0 84.2% 60.2%;
31
+ --destructive-foreground: 210 40% 98%;
32
+
33
+ --border: 214.3 31.8% 91.4%;
34
+ --input: 214.3 31.8% 91.4%;
35
+ --ring: 222.2 84% 4.9%;
36
+
37
+ --radius: 0.5rem;
38
+
39
+ --chart-1: 12 76% 61%;
40
+ --chart-2: 173 58% 39%;
41
+ --chart-3: 197 37% 24%;
42
+ --chart-4: 43 74% 66%;
43
+ --chart-5: 27 87% 67%;
44
+ }
45
+
46
+ .dark {
47
+ --background: 222.2 84% 4.9%;
48
+ --foreground: 210 40% 98%;
49
+
50
+ --card: 222.2 84% 4.9%;
51
+ --card-foreground: 210 40% 98%;
52
+
53
+ --popover: 222.2 84% 4.9%;
54
+ --popover-foreground: 210 40% 98%;
55
+
56
+ --primary: 210 40% 98%;
57
+ --primary-foreground: 222.2 47.4% 11.2%;
58
+
59
+ --secondary: 217.2 32.6% 17.5%;
60
+ --secondary-foreground: 210 40% 98%;
61
+
62
+ --muted: 217.2 32.6% 17.5%;
63
+ --muted-foreground: 215 20.2% 65.1%;
64
+
65
+ --accent: 217.2 32.6% 17.5%;
66
+ --accent-foreground: 210 40% 98%;
67
+
68
+ --destructive: 0 62.8% 30.6%;
69
+ --destructive-foreground: 210 40% 98%;
70
+
71
+ --border: 217.2 32.6% 17.5%;
72
+ --input: 217.2 32.6% 17.5%;
73
+ --ring: 212.7 26.8% 83.9%;
74
+
75
+ --chart-1: 220 70% 50%;
76
+ --chart-2: 160 60% 45%;
77
+ --chart-3: 30 80% 55%;
78
+ --chart-4: 280 65% 60%;
79
+ --chart-5: 340 75% 55%;
80
+ }
81
+ }
82
+
83
+ @layer base {
84
+ * {
85
+ @apply border-border;
86
+ }
87
+ body {
88
+ @apply bg-background text-foreground;
89
+ }
90
+ }
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@vasf/ragnar-core",
3
+ "version": "1.0.1",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./styles.css": "./dist/styles.css"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "sideEffects": [
20
+ "**/*.css"
21
+ ],
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "scripts": {
26
+ "dev": "vite build --watch",
27
+ "build": "rm -rf dist && vite build && tsc -p tsconfig.build.json && cp src/styles.css dist/styles.css",
28
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
29
+ "storybook": "storybook dev -p 6006",
30
+ "build-storybook": "storybook build",
31
+ "test": "vitest run",
32
+ "test:watch": "vitest",
33
+ "test:coverage": "vitest run --coverage"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^18.0.0",
37
+ "react-dom": "^18.0.0"
38
+ },
39
+ "dependencies": {
40
+ "@radix-ui/react-accordion": "^1.2.0",
41
+ "@radix-ui/react-alert-dialog": "^1.1.4",
42
+ "@radix-ui/react-aspect-ratio": "^1.1.1",
43
+ "@radix-ui/react-avatar": "^1.1.11",
44
+ "@radix-ui/react-checkbox": "^1.3.3",
45
+ "@radix-ui/react-collapsible": "^1.1.12",
46
+ "@radix-ui/react-context-menu": "^2.2.4",
47
+ "@radix-ui/react-dialog": "^1.1.15",
48
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
49
+ "@radix-ui/react-hover-card": "^1.1.4",
50
+ "@radix-ui/react-menubar": "^1.1.4",
51
+ "@radix-ui/react-navigation-menu": "^1.2.3",
52
+ "@radix-ui/react-popover": "^1.1.15",
53
+ "@radix-ui/react-progress": "^1.1.8",
54
+ "@radix-ui/react-radio-group": "^1.2.8",
55
+ "@radix-ui/react-scroll-area": "^1.2.2",
56
+ "@radix-ui/react-select": "^2.2.6",
57
+ "@radix-ui/react-separator": "^1.1.8",
58
+ "@radix-ui/react-slider": "^1.3.6",
59
+ "@radix-ui/react-slot": "^1.1.0",
60
+ "@radix-ui/react-switch": "^1.2.6",
61
+ "@radix-ui/react-tabs": "^1.1.13",
62
+ "@radix-ui/react-toggle": "^1.1.10",
63
+ "@radix-ui/react-toggle-group": "^1.1.11",
64
+ "@radix-ui/react-tooltip": "^1.2.8",
65
+ "@vasf/ragnar-tokens": "workspace:*",
66
+ "@tiptap/extension-placeholder": "^3.19.0",
67
+ "@tiptap/react": "^3.19.0",
68
+ "@tiptap/starter-kit": "^3.19.0",
69
+ "class-variance-authority": "^0.7.0",
70
+ "clsx": "^2.1.1",
71
+ "cmdk": "^1.1.1",
72
+ "date-fns": "^4.1.0",
73
+ "embla-carousel-react": "^8.6.0",
74
+ "lucide-react": "^0.395.0",
75
+ "prismjs": "^1.30.0",
76
+ "react-day-picker": "^9.13.0",
77
+ "sonner": "^2.0.7",
78
+ "tailwind-merge": "^2.3.0"
79
+ },
80
+ "devDependencies": {
81
+ "@storybook/addon-essentials": "^8.1.10",
82
+ "@storybook/addon-interactions": "^8.1.10",
83
+ "@storybook/addon-links": "^8.1.10",
84
+ "@storybook/blocks": "^8.1.10",
85
+ "@storybook/react": "^8.1.10",
86
+ "@storybook/react-vite": "^8.1.10",
87
+ "@storybook/test": "^8.1.10",
88
+ "@testing-library/jest-dom": "^6.9.1",
89
+ "@testing-library/react": "^16.3.2",
90
+ "@testing-library/user-event": "^14.6.1",
91
+ "@types/node": "^20.14.2",
92
+ "@types/prismjs": "^1.26.5",
93
+ "@types/react": "^18.3.3",
94
+ "@types/react-dom": "^18.3.0",
95
+ "@vitejs/plugin-react": "^4.3.1",
96
+ "@vitest/coverage-v8": "^4.0.18",
97
+ "autoprefixer": "^10.4.19",
98
+ "jsdom": "^28.1.0",
99
+ "postcss": "^8.4.38",
100
+ "storybook": "^8.1.10",
101
+ "tailwindcss": "^3.4.4",
102
+ "tailwindcss-animate": "^1.0.7",
103
+ "typescript": "^5.4.5",
104
+ "vite": "^5.3.1",
105
+ "vite-plugin-dts": "^3.9.1",
106
+ "vitest": "^4.0.18"
107
+ }
108
+ }