Skip to content

Commit 69b298a

Browse files
authored
Merge pull request #114 from Xenial-Devil/ss-branch-7
ss-branch-7
2 parents 3090d08 + 9d91db5 commit 69b298a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+27405
-6266
lines changed

bin/cli.js

Lines changed: 927 additions & 200 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 389 additions & 806 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -102,39 +102,40 @@
102102
"react-dom": "^18.0.0 || ^19.0.0"
103103
},
104104
"dependencies": {
105-
"@modelcontextprotocol/sdk": "^1.25.1",
105+
"@modelcontextprotocol/sdk": "^1.25.2",
106106
"@monaco-editor/react": "^4.7.0",
107107
"class-variance-authority": "^0.7.1",
108108
"clsx": "^2.1.1",
109-
"glob": "^12.0.0",
110-
"monaco-editor": "^0.54.0",
111-
"react-resizable-panels": "^3.0.6",
109+
"glob": "^13.0.0",
110+
"monaco-editor": "^0.55.1",
111+
"react-hook-form": "^7.71.0",
112+
"react-resizable-panels": "^4.4.0",
112113
"rechart": "^0.0.1",
113-
"recharts": "^3.4.1",
114+
"recharts": "^3.6.0",
114115
"tailwind-merge": "^3.4.0"
115116
},
116117
"optionalDependencies": {
117-
"lucide-react": "^0.554.0"
118+
"lucide-react": "^0.562.0"
118119
},
119120
"devDependencies": {
120-
"@tailwindcss/postcss": "^4.1.17",
121-
"@types/node": "^24.10.1",
122-
"@types/react": "^19.2.6",
121+
"@tailwindcss/postcss": "^4.1.18",
122+
"@types/node": "^25.0.6",
123+
"@types/react": "^19.2.8",
123124
"@types/react-dom": "^19.2.3",
124-
"@typescript-eslint/eslint-plugin": "^8.47.0",
125-
"@typescript-eslint/parser": "^8.47.0",
125+
"@typescript-eslint/eslint-plugin": "^8.52.0",
126+
"@typescript-eslint/parser": "^8.52.0",
126127
"@vitejs/plugin-react-swc": "^4.2.2",
127-
"autoprefixer": "^10.4.22",
128-
"eslint": "^9.39.1",
128+
"autoprefixer": "^10.4.23",
129+
"eslint": "^9.39.2",
129130
"eslint-plugin-react-hooks": "^7.0.1",
130-
"eslint-plugin-react-refresh": "^0.4.24",
131+
"eslint-plugin-react-refresh": "^0.4.26",
131132
"postcss": "^8.5.6",
132-
"react": "^19.2.0",
133-
"react-dom": "^19.2.0",
134-
"sass": "^1.94.1",
135-
"tailwindcss": "^4.1.17",
133+
"react": "^19.2.3",
134+
"react-dom": "^19.2.3",
135+
"sass": "^1.97.2",
136+
"tailwindcss": "^4.1.18",
136137
"typescript": "^5.9.3",
137-
"vite": "^7.2.2",
138+
"vite": "^7.3.1",
138139
"vite-plugin-dts": "^4.5.4"
139140
}
140141
}

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function App() {
1717
variant="solid"
1818
animation="slide"
1919
>
20-
<div className="min-h-screen transition-colors duration-300">
20+
<div className="min-h-screen transition-colors duration-300 box-border">
2121
{/* Header */}
2222
<header className="glass sticky top-0 z-50 border-b border-border/50">
2323
<div className="container mx-auto px-4 py-4 flex items-center justify-between">

src/components/Accordion/Accordion.styles.ts

Lines changed: 81 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,26 @@ export const accordionVariants = cva(
1818
glass:
1919
"bg-background/30 backdrop-blur-xl border border-white/10 shadow-2xl hover:border-white/20 before:absolute before:inset-0 before:bg-gradient-to-br before:from-white/5 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-500",
2020
},
21+
size: {
22+
sm: "rounded-xl",
23+
md: "rounded-2xl",
24+
lg: "rounded-3xl",
25+
},
26+
orientation: {
27+
vertical: "flex flex-col",
28+
horizontal: "flex flex-row",
29+
},
2130
},
2231
defaultVariants: {
2332
variant: "default",
33+
size: "md",
34+
orientation: "vertical",
2435
},
2536
}
2637
);
2738

2839
export const accordionItemVariants = cva(
29-
"group relative w-full overflow-hidden transition-all duration-300 ease-out border-b border-border/30 last:border-b-0 backdrop-blur-sm shadow-sm hover:shadow-lg transition-shadow isolate before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-primary/5 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300",
40+
"group relative w-full overflow-hidden transition-all duration-300 ease-out backdrop-blur-sm shadow-sm hover:shadow-lg transition-shadow isolate before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-primary/5 before:to-transparent before:opacity-0 hover:before:opacity-100 before:transition-opacity before:duration-300",
3041
{
3142
variants: {
3243
isOpen: {
@@ -37,41 +48,105 @@ export const accordionItemVariants = cva(
3748
true: "opacity-50 cursor-not-allowed pointer-events-none",
3849
false: "",
3950
},
51+
orientation: {
52+
vertical: "border-b border-border/30 last:border-b-0",
53+
horizontal: "border-r border-border/30 last:border-r-0 flex-1",
54+
},
4055
},
4156
defaultVariants: {
4257
isOpen: false,
4358
disabled: false,
59+
orientation: "vertical",
4460
},
4561
}
4662
);
4763

4864
export const accordionHeaderVariants = cva(
49-
"w-full flex justify-between items-center cursor-pointer transition-all duration-300 px-6 py-4 gap-4 relative isolate hover:scale-[1.01] active:scale-[0.99]",
65+
"w-full flex justify-between items-center cursor-pointer transition-all duration-300 gap-4 relative isolate hover:scale-[1.01] active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background",
5066
{
5167
variants: {
5268
isOpen: {
5369
true: "bg-gradient-to-r from-primary/5 via-secondary/5 to-accent/5 border-b border-border/50 shadow-sm before:absolute before:inset-0 before:bg-gradient-to-r before:from-primary/10 before:via-transparent before:to-accent/10 before:opacity-50",
5470
false:
5571
"hover:bg-muted/30 after:absolute after:inset-0 after:bg-gradient-to-r after:from-transparent after:via-muted/20 after:to-transparent after:opacity-0 hover:after:opacity-100 after:transition-opacity after:duration-300",
5672
},
73+
size: {
74+
sm: "px-4 py-2 text-sm",
75+
md: "px-6 py-4 text-base",
76+
lg: "px-8 py-6 text-lg",
77+
},
78+
iconPosition: {
79+
left: "flex-row-reverse",
80+
right: "flex-row",
81+
},
82+
disabled: {
83+
true: "cursor-not-allowed opacity-50",
84+
false: "",
85+
},
5786
},
5887
defaultVariants: {
5988
isOpen: false,
89+
size: "md",
90+
iconPosition: "right",
91+
disabled: false,
6092
},
6193
}
6294
);
6395

6496
export const accordionContentVariants = cva(
65-
"w-full px-6 overflow-hidden transition-all duration-500 ease-in-out bg-card/20",
97+
"w-full overflow-hidden bg-card/20",
98+
{
99+
variants: {
100+
size: {
101+
sm: "text-sm",
102+
md: "text-base",
103+
lg: "text-lg",
104+
},
105+
},
106+
defaultVariants: {
107+
size: "md",
108+
},
109+
}
110+
);
111+
112+
export const accordionContentInnerVariants = cva(
113+
"text-muted-foreground leading-relaxed transition-all duration-300",
114+
{
115+
variants: {
116+
isOpen: {
117+
true: "translate-y-0 opacity-100",
118+
false: "translate-y-2 opacity-0",
119+
},
120+
size: {
121+
sm: "px-4 py-2",
122+
md: "px-6 py-4",
123+
lg: "px-8 py-6",
124+
},
125+
},
126+
defaultVariants: {
127+
isOpen: false,
128+
size: "md",
129+
},
130+
}
131+
);
132+
133+
export const accordionIconVariants = cva(
134+
"relative shrink-0 transition-all duration-500 ease-out",
66135
{
67136
variants: {
68137
isOpen: {
69-
true: "max-h-[500px] opacity-100 py-4",
70-
false: "max-h-0 opacity-0 py-0",
138+
true: "rotate-180 text-primary",
139+
false: "rotate-0 text-muted-foreground group-hover:text-foreground",
140+
},
141+
size: {
142+
sm: "h-4 w-4",
143+
md: "h-5 w-5",
144+
lg: "h-6 w-6",
71145
},
72146
},
73147
defaultVariants: {
74148
isOpen: false,
149+
size: "md",
75150
},
76151
}
77-
);
152+
);

0 commit comments

Comments
 (0)