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/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.2
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.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
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xertica-ui",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Xertica UI — Enterprise-grade React design system with Tailwind CSS v4, Radix UI, and AI-first documentation.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xertica-ui-template",
3
- "version": "2.5.2",
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.2",
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
- ScrollArea,
10
- Badge,
11
- } from 'xertica-ui/ui';
12
- import { Header } from 'xertica-ui/layout';
13
- import { useLayout } from 'xertica-ui/hooks';
14
- import { useNavigate, Link } from 'react-router-dom';
15
- import { useTranslation } from 'react-i18next';
16
- import { useFeatureCards } from '../hooks/useFeatureCards';
17
- import { SectionErrorBoundary } from '../../../shared/error-boundary';
18
-
19
- export function HomeContent() {
20
- const { t } = useTranslation();
21
- const { sidebarExpanded, sidebarWidth } = useLayout();
22
- const navigate = useNavigate();
23
-
24
- const { data: featureCards = [], isLoading } = useFeatureCards();
25
-
26
- return (
27
- <div
28
- style={{
29
- paddingLeft: sidebarExpanded ? `${sidebarWidth}px` : '80px',
30
- }}
31
- className="flex-1 flex flex-col overflow-hidden transition-all duration-300"
32
- >
33
- <Header
34
- showThemeToggle={true}
35
- showLanguageSelector={true}
36
- breadcrumbs={[{ label: t('nav.designSystem'), href: '/home' }, { label: t('nav.home') }]}
37
- renderLink={(href: string, props: React.AnchorHTMLAttributes<HTMLAnchorElement>) => (
38
- <Link to={href} {...props} />
39
- )}
40
- />
41
-
42
- <main className="flex-1 overflow-hidden bg-muted">
43
- <ScrollArea className="h-full">
44
- <div className="p-5 sm:p-4 md:p-6">
45
- <div className="max-w-6xl mx-auto space-y-8">
46
- <div className="space-y-2">
47
- <h2 className="text-3xl font-bold tracking-tight">{t('home.welcome')}</h2>
48
- <p className="text-muted-foreground">{t('home.subtitle')}</p>
49
- </div>
50
-
51
- <SectionErrorBoundary>
52
- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
53
- {isLoading
54
- ? Array.from({ length: 3 }).map((_, i) => (
55
- <Card key={i} className="flex flex-col h-full animate-pulse">
56
- <CardHeader>
57
- <div className="h-4 bg-muted-foreground/20 rounded w-2/3" />
58
- </CardHeader>
59
- <CardContent className="flex-1">
60
- <div className="h-3 bg-muted-foreground/10 rounded w-full" />
61
- </CardContent>
62
- <CardFooter>
63
- <div className="h-9 bg-muted-foreground/10 rounded w-full" />
64
- </CardFooter>
65
- </Card>
66
- ))
67
- : featureCards.map(card => (
68
- <Card
69
- key={card.id}
70
- className="hover:shadow-xl transition-shadow duration-200 flex flex-col h-full"
71
- >
72
- <CardHeader>
73
- <div className="flex items-center gap-3">
74
- <div
75
- className="p-2 rounded-[var(--radius)]"
76
- style={{
77
- background: `color-mix(in srgb, var(${card.chartColor}) 20%, transparent)`,
78
- }}
79
- >
80
- <card.Icon
81
- className="w-6 h-6"
82
- style={{ color: `var(${card.chartColor})` }}
83
- />
84
- </div>
85
- <div className="flex items-center gap-2">
86
- <CardTitle className="text-sm">{card.title}</CardTitle>
87
- {card.badge && (
88
- <Badge variant="default" className="text-xs">
89
- {card.badge}
90
- </Badge>
91
- )}
92
- </div>
93
- </div>
94
- </CardHeader>
95
- <CardContent className="flex-1">
96
- <p className="text-muted-foreground">{card.description}</p>
97
- </CardContent>
98
- <CardFooter>
99
- <Button
100
- variant="outline"
101
- className="w-full"
102
- onClick={() => navigate(card.href)}
103
- >
104
- {t('common.view')}
105
- </Button>
106
- </CardFooter>
107
- </Card>
108
- ))}
109
- </div>
110
- </SectionErrorBoundary>
111
- </div>
112
- </div>
113
- </ScrollArea>
114
- </main>
115
- </div>
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
+ }