@hai3/uikit 0.1.0-alpha.0 → 0.1.0-alpha.10

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.
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@hai3/uikit",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.10",
4
4
  "description": "HAI3 UI Kit - Reusable React components built on shadcn/ui",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.mjs",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "sideEffects": [
9
10
  "src/styles/**/*.css"
@@ -11,8 +12,8 @@
11
12
  "exports": {
12
13
  ".": {
13
14
  "types": "./dist/index.d.ts",
14
- "import": "./dist/index.mjs",
15
- "require": "./dist/index.js"
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
16
17
  },
17
18
  "./styles": "./src/styles/globals.css"
18
19
  },
@@ -22,8 +23,8 @@
22
23
  "README.md"
23
24
  ],
24
25
  "scripts": {
25
- "build": "tsup src/index.ts --format cjs,esm --dts --clean",
26
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch"
26
+ "build": "tsup",
27
+ "dev": "tsup --watch"
27
28
  },
28
29
  "keywords": [
29
30
  "hai3",
@@ -52,21 +53,49 @@
52
53
  },
53
54
  "dependencies": {
54
55
  "@hai3/uikit-contracts": "*",
56
+ "@hookform/resolvers": "^5.2.2",
57
+ "@radix-ui/react-accordion": "^1.2.2",
58
+ "@radix-ui/react-alert-dialog": "^1.1.6",
59
+ "@radix-ui/react-aspect-ratio": "^1.1.8",
55
60
  "@radix-ui/react-avatar": "^1.1.10",
61
+ "@radix-ui/react-checkbox": "^1.3.3",
62
+ "@radix-ui/react-collapsible": "^1.1.3",
63
+ "@radix-ui/react-context-menu": "^2.2.6",
56
64
  "@radix-ui/react-dialog": "^1.1.15",
57
65
  "@radix-ui/react-dropdown-menu": "^2.1.16",
66
+ "@radix-ui/react-hover-card": "^1.1.4",
67
+ "@radix-ui/react-label": "^2.1.8",
68
+ "@radix-ui/react-menubar": "^1.1.16",
58
69
  "@radix-ui/react-navigation-menu": "^1.2.14",
70
+ "@radix-ui/react-popover": "^1.1.4",
59
71
  "@radix-ui/react-progress": "^1.1.1",
72
+ "@radix-ui/react-radio-group": "^1.2.3",
73
+ "@radix-ui/react-scroll-area": "^1.2.10",
60
74
  "@radix-ui/react-select": "^2.2.6",
75
+ "@radix-ui/react-separator": "^1.1.8",
61
76
  "@radix-ui/react-slider": "^1.2.2",
62
77
  "@radix-ui/react-slot": "^1.2.3",
63
78
  "@radix-ui/react-switch": "^1.2.6",
79
+ "@radix-ui/react-tabs": "^1.1.13",
80
+ "@radix-ui/react-toggle": "^1.1.10",
81
+ "@radix-ui/react-toggle-group": "^1.1.11",
64
82
  "@radix-ui/react-tooltip": "^1.1.5",
83
+ "@tanstack/react-table": "^8.21.3",
65
84
  "class-variance-authority": "^0.7.1",
66
85
  "clsx": "^2.1.1",
86
+ "cmdk": "^1.1.1",
87
+ "date-fns": "^4.1.0",
88
+ "embla-carousel-react": "^8.0.0",
89
+ "input-otp": "^1.4.2",
67
90
  "lodash": "^4.17.21",
68
91
  "lucide-react": "^0.344.0",
69
- "tailwind-merge": "^2.6.0"
92
+ "react-day-picker": "^9.12.0",
93
+ "react-hook-form": "^7.68.0",
94
+ "react-resizable-panels": "^3.0.6",
95
+ "recharts": "^2.15.0",
96
+ "sonner": "^2.0.7",
97
+ "tailwind-merge": "^2.6.0",
98
+ "vaul": "^1.1.2"
70
99
  },
71
100
  "peerDependencies": {
72
101
  "@hai3/uikit-contracts": "*",
@@ -5,7 +5,7 @@
5
5
  * Maps to shadcn CSS variable naming convention
6
6
  */
7
7
 
8
- import type { Theme } from './themeTypes';
8
+ import type { Theme } from '@hai3/uikit-contracts';
9
9
 
10
10
  /**
11
11
  * Normalize color value for CSS variable
@@ -68,6 +68,13 @@ export const applyTheme = (theme: Theme, themeName?: string): void => {
68
68
  root.style.setProperty('--success', hslToVar(theme.colors.success));
69
69
  root.style.setProperty('--info', hslToVar(theme.colors.info));
70
70
 
71
+ // Apply chart colors (OKLCH format - pass as-is)
72
+ root.style.setProperty('--chart-1', theme.colors.chart[1]);
73
+ root.style.setProperty('--chart-2', theme.colors.chart[2]);
74
+ root.style.setProperty('--chart-3', theme.colors.chart[3]);
75
+ root.style.setProperty('--chart-4', theme.colors.chart[4]);
76
+ root.style.setProperty('--chart-5', theme.colors.chart[5]);
77
+
71
78
  // Apply left menu colors
72
79
  root.style.setProperty('--left-menu', hslToVar(theme.colors.mainMenu.DEFAULT));
73
80
  root.style.setProperty('--left-menu-foreground', hslToVar(theme.colors.mainMenu.foreground));
@@ -6,7 +6,7 @@
6
6
  * Theme CSS variables are now generated dynamically from theme objects
7
7
  * See: src/styles/themes/applyTheme.ts
8
8
  * Single source of truth: src/styles/themes/*.ts files
9
- *
9
+ *
10
10
  * Only default values needed for SSR/initial load below
11
11
  */
12
12
 
@@ -47,7 +47,49 @@
47
47
  * {
48
48
  @apply border-border;
49
49
  }
50
+ html {
51
+ @apply overflow-hidden;
52
+ }
50
53
  body {
51
- @apply bg-background text-foreground;
54
+ @apply bg-background text-foreground overflow-hidden;
55
+ }
56
+ #root {
57
+ @apply h-screen w-screen;
52
58
  }
53
59
  }
60
+
61
+ /* Sonner toast styles */
62
+ [data-sonner-toaster] [data-sonner-toast] {
63
+ --normal-bg: hsl(var(--popover));
64
+ --normal-text: hsl(var(--popover-foreground));
65
+ --normal-border: hsl(var(--border));
66
+ }
67
+
68
+ [data-sonner-toaster] [data-sonner-toast] [data-button] {
69
+ background-color: hsl(var(--primary));
70
+ color: hsl(var(--primary-foreground));
71
+ font-weight: 500;
72
+ font-size: 0.875rem;
73
+ height: 2rem;
74
+ padding-left: 0.75rem;
75
+ padding-right: 0.75rem;
76
+ border-radius: calc(var(--radius-lg) - 2px);
77
+ transition: background-color 0.2s;
78
+ }
79
+
80
+ [data-sonner-toaster] [data-sonner-toast] [data-button]:hover {
81
+ background-color: hsl(var(--primary) / 0.9);
82
+ }
83
+
84
+ [data-sonner-toaster] [data-sonner-toast] [data-cancel] {
85
+ background-color: hsl(var(--muted));
86
+ color: hsl(var(--muted-foreground));
87
+ }
88
+
89
+ [data-sonner-toaster] [data-sonner-toast] [data-cancel]:hover {
90
+ background-color: hsl(var(--muted) / 0.8);
91
+ }
92
+
93
+ [data-sonner-toaster] [data-sonner-toast] [data-description] {
94
+ color: hsl(var(--muted-foreground));
95
+ }