xertica-ui 2.5.2 → 2.5.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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/bin/language-config.ts +359 -359
- package/components/layout/sidebar/sidebar.tsx +10 -5
- package/components/pages/home-content/HomeContent.tsx +119 -120
- package/components/pages/template-content/TemplateContent.tsx +1353 -1354
- package/dist/AssistantChart-BW9JK6jw.cjs +3551 -0
- package/dist/AssistantChart-DNdwuS-t.js +3383 -0
- package/dist/VerifyEmailPage-Bci0bA-P.js +3296 -0
- package/dist/VerifyEmailPage-C7KiYXrm.cjs +3305 -0
- package/dist/assistant.cjs.js +1 -1
- package/dist/assistant.es.js +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +6 -6
- package/dist/input-B0_vbA3g.js +65 -0
- package/dist/input-ByYuOv8A.cjs +91 -0
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +1 -1
- package/dist/pages.cjs.js +1 -1
- package/dist/pages.es.js +1 -1
- package/dist/rich-text-editor-DV1SixzE.js +2890 -0
- package/dist/rich-text-editor-DnSDglzW.cjs +2964 -0
- package/dist/sidebar-CQn_rwxP.cjs +1150 -0
- package/dist/sidebar-QwCoeoZ_.js +1147 -0
- package/dist/ui.cjs.js +5 -5
- package/dist/ui.es.js +3 -3
- package/dist/xertica-assistant-BrF9jScR.cjs +2180 -0
- package/dist/xertica-assistant-CsBsxTsI.js +2173 -0
- package/llms-compact.txt +1 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/templates/package.json +2 -2
- package/templates/src/features/home/ui/HomeContent.tsx +116 -117
- package/templates/src/features/template/ui/TemplateContent.tsx +1321 -1322
package/llms-compact.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xertica UI — Compact Reference
|
|
2
2
|
|
|
3
|
-
> 97-component React design system. Tailwind CSS v4 + Radix UI + Lucide Icons. v2.5.
|
|
3
|
+
> 97-component React design system. Tailwind CSS v4 + Radix UI + Lucide Icons. v2.5.3
|
|
4
4
|
> Full docs: llms-full.txt | Component index: llms.txt | Decision guide: docs/decision-tree.md
|
|
5
5
|
|
|
6
6
|
---
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xertica UI
|
|
2
2
|
|
|
3
|
-
> Enterprise-grade React design system — 97 components built on Tailwind CSS v4, Radix UI, and Lucide Icons. Designed to be consumed directly by AI coding agents (LLMs, Cursor, Claude Code, Copilot). v2.5.
|
|
3
|
+
> Enterprise-grade React design system — 97 components built on Tailwind CSS v4, Radix UI, and Lucide Icons. Designed to be consumed directly by AI coding agents (LLMs, Cursor, Claude Code, Copilot). v2.5.3
|
|
4
4
|
|
|
5
5
|
Xertica UI ships with full source, typed declarations, Storybook stories, and structured documentation inside `node_modules/xertica-ui/`. AI agents should read this file first, then follow links for component-specific detail.
|
|
6
6
|
|
package/package.json
CHANGED
package/templates/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xertica-ui-template",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"react-i18next": "^17.0.8",
|
|
25
25
|
"react-router-dom": "^7.1.3",
|
|
26
26
|
"sonner": "^1.7.3",
|
|
27
|
-
"xertica-ui": "^2.5.
|
|
27
|
+
"xertica-ui": "^2.5.3",
|
|
28
28
|
"zustand": "^5.0.13"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -1,117 +1,116 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Card,
|
|
4
|
-
CardContent,
|
|
5
|
-
CardFooter,
|
|
6
|
-
CardHeader,
|
|
7
|
-
CardTitle,
|
|
8
|
-
Button,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from 'xertica-ui/
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const {
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Card,
|
|
4
|
+
CardContent,
|
|
5
|
+
CardFooter,
|
|
6
|
+
CardHeader,
|
|
7
|
+
CardTitle,
|
|
8
|
+
Button,
|
|
9
|
+
Badge,
|
|
10
|
+
} from 'xertica-ui/ui';
|
|
11
|
+
import { Header } from 'xertica-ui/layout';
|
|
12
|
+
import { useLayout } from 'xertica-ui/hooks';
|
|
13
|
+
import { useNavigate, Link } from 'react-router-dom';
|
|
14
|
+
import { useTranslation } from 'react-i18next';
|
|
15
|
+
import { useFeatureCards } from '../hooks/useFeatureCards';
|
|
16
|
+
import { SectionErrorBoundary } from '../../../shared/error-boundary';
|
|
17
|
+
|
|
18
|
+
export function HomeContent() {
|
|
19
|
+
const { t } = useTranslation();
|
|
20
|
+
const { sidebarExpanded, sidebarWidth } = useLayout();
|
|
21
|
+
const navigate = useNavigate();
|
|
22
|
+
|
|
23
|
+
const { data: featureCards = [], isLoading } = useFeatureCards();
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div
|
|
27
|
+
style={{
|
|
28
|
+
paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : '80px',
|
|
29
|
+
}}
|
|
30
|
+
className="flex-1 flex flex-col overflow-hidden transition-all duration-300"
|
|
31
|
+
>
|
|
32
|
+
<Header
|
|
33
|
+
showThemeToggle={true}
|
|
34
|
+
showLanguageSelector={true}
|
|
35
|
+
breadcrumbs={[{ label: t('nav.designSystem'), href: '/home' }, { label: t('nav.home') }]}
|
|
36
|
+
renderLink={(href: string, props: React.AnchorHTMLAttributes<HTMLAnchorElement>) => (
|
|
37
|
+
<Link to={href} {...props} />
|
|
38
|
+
)}
|
|
39
|
+
/>
|
|
40
|
+
|
|
41
|
+
<main className="flex-1 overflow-hidden bg-muted">
|
|
42
|
+
<div className="h-full" style={{ overflowY: 'auto', overflowX: 'hidden' }}>
|
|
43
|
+
<div className="p-5 sm:p-4 md:p-6">
|
|
44
|
+
<div className="max-w-6xl mx-auto space-y-8">
|
|
45
|
+
<div className="space-y-2">
|
|
46
|
+
<h2 className="text-3xl font-bold tracking-tight">{t('home.welcome')}</h2>
|
|
47
|
+
<p className="text-muted-foreground">{t('home.subtitle')}</p>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<SectionErrorBoundary>
|
|
51
|
+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
52
|
+
{isLoading
|
|
53
|
+
? Array.from({ length: 3 }).map((_, i) => (
|
|
54
|
+
<Card key={i} className="flex flex-col h-full animate-pulse">
|
|
55
|
+
<CardHeader>
|
|
56
|
+
<div className="h-4 bg-muted-foreground/20 rounded w-2/3" />
|
|
57
|
+
</CardHeader>
|
|
58
|
+
<CardContent className="flex-1">
|
|
59
|
+
<div className="h-3 bg-muted-foreground/10 rounded w-full" />
|
|
60
|
+
</CardContent>
|
|
61
|
+
<CardFooter>
|
|
62
|
+
<div className="h-9 bg-muted-foreground/10 rounded w-full" />
|
|
63
|
+
</CardFooter>
|
|
64
|
+
</Card>
|
|
65
|
+
))
|
|
66
|
+
: featureCards.map(card => (
|
|
67
|
+
<Card
|
|
68
|
+
key={card.id}
|
|
69
|
+
className="hover:shadow-xl transition-shadow duration-200 flex flex-col h-full"
|
|
70
|
+
>
|
|
71
|
+
<CardHeader>
|
|
72
|
+
<div className="flex items-center gap-3">
|
|
73
|
+
<div
|
|
74
|
+
className="p-2 rounded-[var(--radius)]"
|
|
75
|
+
style={{
|
|
76
|
+
background: `color-mix(in srgb, var(${card.chartColor}) 20%, transparent)`,
|
|
77
|
+
}}
|
|
78
|
+
>
|
|
79
|
+
<card.Icon
|
|
80
|
+
className="w-6 h-6"
|
|
81
|
+
style={{ color: `var(${card.chartColor})` }}
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
<div className="flex items-center gap-2">
|
|
85
|
+
<CardTitle className="text-sm">{card.title}</CardTitle>
|
|
86
|
+
{card.badge && (
|
|
87
|
+
<Badge variant="default" className="text-xs">
|
|
88
|
+
{card.badge}
|
|
89
|
+
</Badge>
|
|
90
|
+
)}
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</CardHeader>
|
|
94
|
+
<CardContent className="flex-1">
|
|
95
|
+
<p className="text-muted-foreground">{card.description}</p>
|
|
96
|
+
</CardContent>
|
|
97
|
+
<CardFooter>
|
|
98
|
+
<Button
|
|
99
|
+
variant="outline"
|
|
100
|
+
className="w-full"
|
|
101
|
+
onClick={() => navigate(card.href)}
|
|
102
|
+
>
|
|
103
|
+
{t('common.view')}
|
|
104
|
+
</Button>
|
|
105
|
+
</CardFooter>
|
|
106
|
+
</Card>
|
|
107
|
+
))}
|
|
108
|
+
</div>
|
|
109
|
+
</SectionErrorBoundary>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</main>
|
|
114
|
+
</div>
|
|
115
|
+
);
|
|
116
|
+
}
|