@hai3/uikit 0.1.0-alpha.2 → 0.1.0-alpha.3
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/dist/index.d.mts +135 -128
- package/dist/index.d.ts +135 -128
- package/dist/index.js +1333 -170
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1071 -150
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -2
- package/src/styles/applyTheme.ts +8 -1
- package/src/styles/themeTypes.ts +0 -114
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hai3/uikit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.3",
|
|
4
4
|
"description": "HAI3 UI Kit - Reusable React components built on shadcn/ui",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -53,26 +53,35 @@
|
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@hai3/uikit-contracts": "*",
|
|
55
55
|
"@radix-ui/react-accordion": "^1.2.2",
|
|
56
|
+
"@radix-ui/react-aspect-ratio": "^1.1.8",
|
|
56
57
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
58
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
57
59
|
"@radix-ui/react-collapsible": "^1.1.3",
|
|
58
60
|
"@radix-ui/react-context-menu": "^2.2.6",
|
|
59
61
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
60
62
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
61
63
|
"@radix-ui/react-hover-card": "^1.1.4",
|
|
64
|
+
"@radix-ui/react-menubar": "^1.1.16",
|
|
62
65
|
"@radix-ui/react-navigation-menu": "^1.2.14",
|
|
63
66
|
"@radix-ui/react-popover": "^1.1.4",
|
|
64
67
|
"@radix-ui/react-progress": "^1.1.1",
|
|
68
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
65
69
|
"@radix-ui/react-select": "^2.2.6",
|
|
70
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
66
71
|
"@radix-ui/react-slider": "^1.2.2",
|
|
67
72
|
"@radix-ui/react-slot": "^1.2.3",
|
|
68
73
|
"@radix-ui/react-switch": "^1.2.6",
|
|
74
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
69
75
|
"@radix-ui/react-tooltip": "^1.1.5",
|
|
70
76
|
"class-variance-authority": "^0.7.1",
|
|
71
77
|
"clsx": "^2.1.1",
|
|
72
78
|
"embla-carousel-react": "^8.0.0",
|
|
73
79
|
"lodash": "^4.17.21",
|
|
74
80
|
"lucide-react": "^0.344.0",
|
|
75
|
-
"
|
|
81
|
+
"react-resizable-panels": "^3.0.6",
|
|
82
|
+
"recharts": "^2.15.0",
|
|
83
|
+
"tailwind-merge": "^2.6.0",
|
|
84
|
+
"vaul": "^1.1.2"
|
|
76
85
|
},
|
|
77
86
|
"peerDependencies": {
|
|
78
87
|
"@hai3/uikit-contracts": "*",
|
package/src/styles/applyTheme.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Maps to shadcn CSS variable naming convention
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { Theme } from '
|
|
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));
|
package/src/styles/themeTypes.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Theme type definitions for HAI3
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export interface Theme {
|
|
6
|
-
name: string;
|
|
7
|
-
colors: {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
accent: string;
|
|
11
|
-
background: string;
|
|
12
|
-
foreground: string;
|
|
13
|
-
muted: string;
|
|
14
|
-
border: string;
|
|
15
|
-
error: string;
|
|
16
|
-
warning: string;
|
|
17
|
-
success: string;
|
|
18
|
-
info: string;
|
|
19
|
-
mainMenu: {
|
|
20
|
-
DEFAULT: string;
|
|
21
|
-
foreground: string;
|
|
22
|
-
hover: string;
|
|
23
|
-
selected: string;
|
|
24
|
-
border: string;
|
|
25
|
-
};
|
|
26
|
-
chat: {
|
|
27
|
-
leftMenu: {
|
|
28
|
-
DEFAULT: string;
|
|
29
|
-
foreground: string;
|
|
30
|
-
hover: string;
|
|
31
|
-
selected: string;
|
|
32
|
-
border: string;
|
|
33
|
-
};
|
|
34
|
-
message: {
|
|
35
|
-
user: {
|
|
36
|
-
background: string;
|
|
37
|
-
foreground: string;
|
|
38
|
-
};
|
|
39
|
-
assistant: {
|
|
40
|
-
background: string;
|
|
41
|
-
foreground: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
input: {
|
|
45
|
-
background: string;
|
|
46
|
-
foreground: string;
|
|
47
|
-
border: string;
|
|
48
|
-
};
|
|
49
|
-
codeBlock: {
|
|
50
|
-
background: string;
|
|
51
|
-
foreground: string;
|
|
52
|
-
border: string;
|
|
53
|
-
headerBackground: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
spacing: {
|
|
58
|
-
xs: string;
|
|
59
|
-
sm: string;
|
|
60
|
-
md: string;
|
|
61
|
-
lg: string;
|
|
62
|
-
xl: string;
|
|
63
|
-
'2xl': string;
|
|
64
|
-
'3xl': string;
|
|
65
|
-
};
|
|
66
|
-
typography: {
|
|
67
|
-
fontFamily: {
|
|
68
|
-
sans: string[];
|
|
69
|
-
mono: string[];
|
|
70
|
-
};
|
|
71
|
-
fontSize: {
|
|
72
|
-
xs: string;
|
|
73
|
-
sm: string;
|
|
74
|
-
base: string;
|
|
75
|
-
lg: string;
|
|
76
|
-
xl: string;
|
|
77
|
-
'2xl': string;
|
|
78
|
-
'3xl': string;
|
|
79
|
-
'4xl': string;
|
|
80
|
-
'5xl': string;
|
|
81
|
-
};
|
|
82
|
-
fontWeight: {
|
|
83
|
-
normal: string;
|
|
84
|
-
medium: string;
|
|
85
|
-
semibold: string;
|
|
86
|
-
bold: string;
|
|
87
|
-
};
|
|
88
|
-
lineHeight: {
|
|
89
|
-
tight: string;
|
|
90
|
-
normal: string;
|
|
91
|
-
relaxed: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
borderRadius: {
|
|
95
|
-
none: string;
|
|
96
|
-
sm: string;
|
|
97
|
-
md: string;
|
|
98
|
-
lg: string;
|
|
99
|
-
xl: string;
|
|
100
|
-
full: string;
|
|
101
|
-
};
|
|
102
|
-
shadows: {
|
|
103
|
-
sm: string;
|
|
104
|
-
md: string;
|
|
105
|
-
lg: string;
|
|
106
|
-
xl: string;
|
|
107
|
-
};
|
|
108
|
-
transitions: {
|
|
109
|
-
fast: string;
|
|
110
|
-
base: string;
|
|
111
|
-
slow: string;
|
|
112
|
-
slower: string;
|
|
113
|
-
};
|
|
114
|
-
}
|