@teamix-evo/ui 0.6.0 → 0.6.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.
- package/LICENSE +21 -0
- package/package.json +19 -19
- package/src/components/sidebar/index.tsx +4 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Teamix Evo Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamix-evo/ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Source-injected UI components for Teamix Evo (shadcn-based, antd capabilities)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -9,19 +9,6 @@
|
|
|
9
9
|
"src",
|
|
10
10
|
"README.md"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"validate": "tsx scripts/validate-entries.ts",
|
|
14
|
-
"gen:meta": "tsx scripts/generate-meta.ts",
|
|
15
|
-
"test": "echo 'validate only' && pnpm validate",
|
|
16
|
-
"typecheck": "tsc --noEmit",
|
|
17
|
-
"lint": "eslint .",
|
|
18
|
-
"build": "echo 'pure resource package, no build needed'",
|
|
19
|
-
"gen:theme-overrides": "tsx .storybook/gen-theme-overrides.ts",
|
|
20
|
-
"storybook": "pnpm gen:theme-overrides && tsx .storybook/gen-theme-overrides.ts --watch & storybook dev -p 6006",
|
|
21
|
-
"build-storybook": "pnpm gen:theme-overrides && storybook build",
|
|
22
|
-
"compare": "tsx compare/start.ts",
|
|
23
|
-
"compare:matrix": "tsx compare/scripts/extract-styles-matrix.ts && tsx compare/scripts/generate-style-mapping.ts"
|
|
24
|
-
},
|
|
25
12
|
"peerDependencies": {
|
|
26
13
|
"react": ">=18",
|
|
27
14
|
"react-dom": ">=18"
|
|
@@ -33,9 +20,6 @@
|
|
|
33
20
|
"@storybook/react-vite": "^10.4.1",
|
|
34
21
|
"@tailwindcss/vite": "^4",
|
|
35
22
|
"@tanstack/react-table": "^8",
|
|
36
|
-
"@teamix-evo/eslint-config": "workspace:*",
|
|
37
|
-
"@teamix-evo/registry": "workspace:*",
|
|
38
|
-
"@teamix-evo/tokens": "workspace:^",
|
|
39
23
|
"@types/node": "^20.0.0",
|
|
40
24
|
"@types/react": "^18.3.0",
|
|
41
25
|
"@types/react-dom": "^18.3.0",
|
|
@@ -66,7 +50,10 @@
|
|
|
66
50
|
"vaul": "^1",
|
|
67
51
|
"vite": "^5.4.0",
|
|
68
52
|
"vite-tsconfig-paths": "^6.1.1",
|
|
69
|
-
"zod": "^3"
|
|
53
|
+
"zod": "^3",
|
|
54
|
+
"@teamix-evo/eslint-config": "0.2.3",
|
|
55
|
+
"@teamix-evo/tokens": "^0.7.2",
|
|
56
|
+
"@teamix-evo/registry": "0.12.0"
|
|
70
57
|
},
|
|
71
58
|
"publishConfig": {
|
|
72
59
|
"access": "public",
|
|
@@ -79,5 +66,18 @@
|
|
|
79
66
|
"@dnd-kit/utilities": "^3",
|
|
80
67
|
"@tanstack/react-virtual": "^3.13.26",
|
|
81
68
|
"react-colorful": "^5.7.0"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"validate": "tsx scripts/validate-entries.ts",
|
|
72
|
+
"gen:meta": "tsx scripts/generate-meta.ts",
|
|
73
|
+
"test": "echo 'validate only' && pnpm validate",
|
|
74
|
+
"typecheck": "tsc --noEmit",
|
|
75
|
+
"lint": "eslint .",
|
|
76
|
+
"build": "echo 'pure resource package, no build needed'",
|
|
77
|
+
"gen:theme-overrides": "tsx .storybook/gen-theme-overrides.ts",
|
|
78
|
+
"storybook": "pnpm gen:theme-overrides && tsx .storybook/gen-theme-overrides.ts --watch & storybook dev -p 6006",
|
|
79
|
+
"build-storybook": "pnpm gen:theme-overrides && storybook build",
|
|
80
|
+
"compare": "tsx compare/start.ts",
|
|
81
|
+
"compare:matrix": "tsx compare/scripts/extract-styles-matrix.ts && tsx compare/scripts/generate-style-mapping.ts"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
TooltipProvider,
|
|
34
34
|
TooltipTrigger,
|
|
35
35
|
} from '@/components/tooltip';
|
|
36
|
-
import {
|
|
36
|
+
import { PanelLeftClose, PanelLeftOpen } from 'lucide-react';
|
|
37
37
|
|
|
38
38
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
39
39
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -268,7 +268,7 @@ function SidebarTrigger({
|
|
|
268
268
|
onClick,
|
|
269
269
|
...props
|
|
270
270
|
}: React.ComponentProps<typeof Button>) {
|
|
271
|
-
const { toggleSidebar } = useSidebar();
|
|
271
|
+
const { toggleSidebar, open } = useSidebar();
|
|
272
272
|
|
|
273
273
|
return (
|
|
274
274
|
<Button
|
|
@@ -276,14 +276,14 @@ function SidebarTrigger({
|
|
|
276
276
|
data-slot="sidebar-trigger"
|
|
277
277
|
variant="ghost"
|
|
278
278
|
size="icon"
|
|
279
|
-
className={cn(className)}
|
|
279
|
+
className={cn('text-muted-foreground', className)}
|
|
280
280
|
onClick={(event) => {
|
|
281
281
|
onClick?.(event);
|
|
282
282
|
toggleSidebar();
|
|
283
283
|
}}
|
|
284
284
|
{...props}
|
|
285
285
|
>
|
|
286
|
-
<
|
|
286
|
+
{open ? <PanelLeftClose /> : <PanelLeftOpen />}
|
|
287
287
|
<span className="sr-only">Toggle Sidebar</span>
|
|
288
288
|
</Button>
|
|
289
289
|
);
|