xertica-ui 2.3.0 → 2.4.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.
Files changed (105) hide show
  1. package/CHANGELOG.md +22 -2
  2. package/README.md +33 -22
  3. package/bin/cli.ts +136 -47
  4. package/bin/language-config.ts +5 -8
  5. package/components/assistant/modern-chat-input/ModernChatInput.tsx +17 -7
  6. package/components/assistant/xertica-assistant/parts/AssistantConversationList.tsx +1 -3
  7. package/components/assistant/xertica-assistant/parts/AssistantFeedbackDialog.tsx +13 -3
  8. package/components/assistant/xertica-assistant/parts/AssistantMessageBubble.tsx +10 -6
  9. package/components/assistant/xertica-assistant/xertica-assistant.tsx +1 -3
  10. package/components/blocks/card-patterns/FeatureCardSkeleton.tsx +1 -6
  11. package/components/blocks/card-patterns/ProfileCard.tsx +1 -3
  12. package/components/blocks/card-patterns/ProjectCardSkeleton.tsx +1 -6
  13. package/components/brand/language-selector/language-selector.stories.tsx +1 -4
  14. package/components/brand/theme-toggle/ThemeToggle.tsx +5 -1
  15. package/components/brand/xertica-provider/XerticaProvider.tsx +1 -4
  16. package/components/index.ts +1 -5
  17. package/components/layout/sidebar/sidebar.tsx +9 -3
  18. package/components/media/audio-player/AudioPlayer.tsx +4 -2
  19. package/components/pages/forgot-password-page/ForgotPasswordPage.tsx +188 -188
  20. package/components/pages/home-content/HomeContent.tsx +55 -55
  21. package/components/pages/home-page/HomePage.tsx +5 -1
  22. package/components/pages/login-page/LoginPage.tsx +4 -2
  23. package/components/pages/reset-password-page/ResetPasswordPage.tsx +7 -3
  24. package/components/pages/template-content/TemplateContent.tsx +268 -149
  25. package/components/pages/verify-email-page/VerifyEmailPage.tsx +9 -9
  26. package/components/shared/error-boundary.stories.tsx +114 -132
  27. package/components/shared/error-boundary.tsx +150 -154
  28. package/components/shared/error-fallbacks.tsx +222 -226
  29. package/components/ui/stats-card/stats-card-skeleton.tsx +1 -3
  30. package/components/ui/stats-card/stats-card.stories.tsx +18 -0
  31. package/components/ui/stats-card/stats-card.tsx +18 -2
  32. package/components.json +512 -892
  33. package/contexts/AuthContext.tsx +121 -118
  34. package/contexts/LanguageContext.tsx +1 -2
  35. package/dist/AssistantChart-BKVtGUKF.js +3383 -0
  36. package/dist/AssistantChart-WeycT5Pd.cjs +3551 -0
  37. package/dist/VerifyEmailPage-Bp1XXl3H.cjs +3305 -0
  38. package/dist/VerifyEmailPage-DGhuIqkb.js +3296 -0
  39. package/dist/XerticaProvider-BErr83Bg.js +42 -0
  40. package/dist/XerticaProvider-CwOkHxiT.cjs +44 -0
  41. package/dist/XerticaXLogo-BX3ueACh.js +255 -0
  42. package/dist/XerticaXLogo-qBPhwK3g.cjs +260 -0
  43. package/dist/assistant.cjs.js +1 -1
  44. package/dist/assistant.es.js +1 -1
  45. package/dist/brand.cjs.js +2 -2
  46. package/dist/brand.es.js +2 -2
  47. package/dist/cli.js +90 -37
  48. package/dist/components/brand/theme-toggle/ThemeToggle.d.ts +1 -1
  49. package/dist/components/index.d.ts +1 -1
  50. package/dist/components/ui/stats-card/stats-card.d.ts +10 -0
  51. package/dist/index.cjs.js +6 -6
  52. package/dist/index.es.js +6 -6
  53. package/dist/layout.cjs.js +1 -1
  54. package/dist/layout.es.js +1 -1
  55. package/dist/pages.cjs.js +1 -1
  56. package/dist/pages.es.js +1 -1
  57. package/dist/sidebar-B4ZWaMrE.js +792 -0
  58. package/dist/sidebar-BS1p2V7t.cjs +795 -0
  59. package/dist/ui.cjs.js +1 -1
  60. package/dist/ui.es.js +1 -1
  61. package/dist/xertica-assistant-B1NaSFFj.js +2173 -0
  62. package/dist/xertica-assistant-CIaUlbIt.cjs +2180 -0
  63. package/dist/xertica-ui.css +1 -1
  64. package/docs/architecture-improvements.md +5 -5
  65. package/docs/architecture.md +16 -10
  66. package/docs/components/card-patterns.md +19 -17
  67. package/docs/components/error-boundary.md +201 -191
  68. package/docs/components/hooks.md +15 -13
  69. package/docs/components/language-selector.md +20 -16
  70. package/docs/components/pages.md +323 -309
  71. package/docs/components/stats-card.md +20 -2
  72. package/docs/doc-audit.md +12 -11
  73. package/docs/getting-started.md +41 -28
  74. package/docs/guidelines.md +14 -12
  75. package/docs/i18n.md +61 -57
  76. package/docs/installation.md +268 -267
  77. package/docs/llms.md +17 -17
  78. package/docs/state-management.md +17 -17
  79. package/guidelines/Guidelines.md +17 -14
  80. package/llms-compact.txt +1 -1
  81. package/llms-full.txt +11553 -7133
  82. package/llms.txt +1 -1
  83. package/package.json +1 -1
  84. package/styles/xertica/base.css +90 -84
  85. package/templates/CLAUDE.md +16 -1
  86. package/templates/guidelines/Guidelines.md +42 -18
  87. package/templates/package.json +3 -3
  88. package/templates/src/app/components/AuthGuard.tsx +131 -82
  89. package/templates/src/features/auth/ui/AuthPageShell.tsx +32 -32
  90. package/templates/src/features/auth/ui/ForgotPasswordContent.tsx +1 -3
  91. package/templates/src/features/auth/ui/ResetPasswordContent.tsx +6 -2
  92. package/templates/src/features/auth/ui/VerifyEmailContent.tsx +2 -6
  93. package/templates/src/features/home/data/mock.ts +41 -35
  94. package/templates/src/features/home/ui/HomeContent.tsx +62 -64
  95. package/templates/src/features/template/ui/CrudTemplate.tsx +1 -4
  96. package/templates/src/features/template/ui/LoginTemplate.tsx +1 -1
  97. package/templates/src/features/template/ui/TemplateContent.tsx +28 -20
  98. package/templates/src/locales/en/pages/templates.json +17 -17
  99. package/templates/src/locales/es/pages/templates.json +17 -17
  100. package/templates/src/locales/pt-BR/pages/templates.json +17 -17
  101. package/templates/src/pages/AssistantPage.tsx +26 -20
  102. package/templates/src/pages/HomePage.tsx +5 -1
  103. package/templates/src/shared/error-boundary.tsx +150 -154
  104. package/templates/src/shared/error-fallbacks.tsx +222 -226
  105. package/templates/vite.config.ts +12 -9
@@ -1,226 +1,222 @@
1
- import React from 'react';
2
- import type { FallbackProps } from './error-boundary';
3
-
4
- // ─────────────────────────────────────────────────────────────────────────────
5
- // error-fallbacks.tsx
6
- //
7
- // Three UI fallbacks for the three ErrorBoundary variants.
8
- // All are intentionally kept dependency-light (no xertica-ui imports) so they
9
- // work even if the library itself fails to load.
10
- // ─────────────────────────────────────────────────────────────────────────────
11
-
12
- // ── Shared helpers ────────────────────────────────────────────────────────────
13
-
14
- function isDev() {
15
- return import.meta.env.DEV;
16
- }
17
-
18
- // ── AppErrorFallback — root crash ─────────────────────────────────────────────
19
-
20
- /**
21
- * Full-screen fallback for root-level crashes.
22
- * Shown when a provider or the app shell itself throws.
23
- */
24
- export function AppErrorFallback({ error, reset }: FallbackProps) {
25
- return (
26
- <div
27
- role="alert"
28
- style={{
29
- display: 'flex',
30
- flexDirection: 'column',
31
- alignItems: 'center',
32
- justifyContent: 'center',
33
- minHeight: '100vh',
34
- padding: '2rem',
35
- background: 'var(--background, #f8f9fa)',
36
- color: 'var(--foreground, #1a1a1a)',
37
- fontFamily: 'system-ui, sans-serif',
38
- textAlign: 'center',
39
- gap: '1rem',
40
- }}
41
- >
42
- {/* Icon */}
43
- <svg
44
- width="48"
45
- height="48"
46
- viewBox="0 0 24 24"
47
- fill="none"
48
- stroke="var(--destructive, #ef4444)"
49
- strokeWidth="2"
50
- strokeLinecap="round"
51
- strokeLinejoin="round"
52
- aria-hidden="true"
53
- >
54
- <circle cx="12" cy="12" r="10" />
55
- <line x1="12" y1="8" x2="12" y2="12" />
56
- <line x1="12" y1="16" x2="12.01" y2="16" />
57
- </svg>
58
-
59
- <h1 style={{ fontSize: '1.5rem', fontWeight: 700, margin: 0 }}>
60
- Algo deu errado
61
- </h1>
62
- <p style={{ color: 'var(--muted-foreground, #6b7280)', maxWidth: 420, margin: 0 }}>
63
- Ocorreu um erro inesperado na aplicação. Tente recarregar a página ou entre em contato
64
- com o suporte se o problema persistir.
65
- </p>
66
-
67
- {isDev() && (
68
- <pre
69
- style={{
70
- background: 'var(--muted, #f3f4f6)',
71
- border: '1px solid var(--border, #e5e7eb)',
72
- borderRadius: 8,
73
- padding: '0.75rem 1rem',
74
- fontSize: '0.75rem',
75
- textAlign: 'left',
76
- maxWidth: 600,
77
- overflowX: 'auto',
78
- whiteSpace: 'pre-wrap',
79
- wordBreak: 'break-word',
80
- }}
81
- >
82
- {error.message}
83
- {error.stack ? `\n\n${error.stack}` : ''}
84
- </pre>
85
- )}
86
-
87
- <div style={{ display: 'flex', gap: '0.75rem', flexWrap: 'wrap', justifyContent: 'center' }}>
88
- <button
89
- onClick={reset}
90
- style={{
91
- padding: '0.5rem 1.25rem',
92
- borderRadius: 6,
93
- border: '1px solid var(--border, #e5e7eb)',
94
- background: 'transparent',
95
- cursor: 'pointer',
96
- fontSize: '0.875rem',
97
- color: 'var(--foreground, #1a1a1a)',
98
- }}
99
- >
100
- Tentar novamente
101
- </button>
102
- <button
103
- onClick={() => window.location.assign('/')}
104
- style={{
105
- padding: '0.5rem 1.25rem',
106
- borderRadius: 6,
107
- border: 'none',
108
- background: 'var(--primary, #2563eb)',
109
- color: 'var(--primary-foreground, #fff)',
110
- cursor: 'pointer',
111
- fontSize: '0.875rem',
112
- }}
113
- >
114
- Ir para o início
115
- </button>
116
- </div>
117
- </div>
118
- );
119
- }
120
-
121
- // ── PageErrorFallback — route-level crash ─────────────────────────────────────
122
-
123
- /**
124
- * Page-area fallback. Shown when a lazy chunk fails to load or a page
125
- * component throws. The app shell (header, sidebar) remains intact.
126
- */
127
- export function PageErrorFallback({ error, reset }: FallbackProps) {
128
- return (
129
- <div
130
- role="alert"
131
- className="flex flex-col items-center justify-center flex-1 min-h-[400px] p-8 gap-4 text-center"
132
- >
133
- <svg
134
- width="40"
135
- height="40"
136
- viewBox="0 0 24 24"
137
- fill="none"
138
- stroke="currentColor"
139
- strokeWidth="2"
140
- strokeLinecap="round"
141
- strokeLinejoin="round"
142
- className="text-destructive"
143
- aria-hidden="true"
144
- >
145
- <path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" />
146
- <line x1="12" y1="9" x2="12" y2="13" />
147
- <line x1="12" y1="17" x2="12.01" y2="17" />
148
- </svg>
149
-
150
- <div className="space-y-1">
151
- <h2 className="text-lg font-semibold">Erro ao carregar página</h2>
152
- <p className="text-sm text-muted-foreground max-w-sm">
153
- Esta página encontrou um problema. Clique em "Tentar novamente" ou navegue para outra
154
- seção.
155
- </p>
156
- </div>
157
-
158
- {isDev() && (
159
- <pre className="text-left text-xs bg-muted border border-border rounded-lg p-3 max-w-lg w-full overflow-x-auto whitespace-pre-wrap break-words">
160
- {error.message}
161
- </pre>
162
- )}
163
-
164
- <div className="flex gap-3 flex-wrap justify-center">
165
- <button
166
- onClick={reset}
167
- className="inline-flex items-center px-4 py-2 text-sm rounded-[var(--radius-button)] border border-border bg-transparent hover:bg-accent hover:text-accent-foreground transition-colors"
168
- >
169
- Tentar novamente
170
- </button>
171
- <button
172
- onClick={() => window.location.assign('/')}
173
- className="inline-flex items-center px-4 py-2 text-sm rounded-[var(--radius-button)] bg-primary text-primary-foreground hover:bg-primary/90 transition-colors"
174
- >
175
- Ir para o início
176
- </button>
177
- </div>
178
- </div>
179
- );
180
- }
181
-
182
- // ── SectionErrorFallback — feature/section-level crash ────────────────────────
183
-
184
- /**
185
- * Compact inline fallback for section-level errors (data tables, charts,
186
- * the assistant panel, etc.). Prevents one broken section from crashing the page.
187
- */
188
- export function SectionErrorFallback({ error, reset }: FallbackProps) {
189
- return (
190
- <div
191
- role="alert"
192
- className="flex flex-col items-center justify-center gap-3 p-6 rounded-[var(--radius-lg)] border border-destructive/30 bg-destructive/5 text-center"
193
- >
194
- <svg
195
- width="24"
196
- height="24"
197
- viewBox="0 0 24 24"
198
- fill="none"
199
- stroke="currentColor"
200
- strokeWidth="2"
201
- strokeLinecap="round"
202
- strokeLinejoin="round"
203
- className="text-destructive shrink-0"
204
- aria-hidden="true"
205
- >
206
- <circle cx="12" cy="12" r="10" />
207
- <line x1="12" y1="8" x2="12" y2="12" />
208
- <line x1="12" y1="16" x2="12.01" y2="16" />
209
- </svg>
210
-
211
- <div className="space-y-1">
212
- <p className="text-sm font-medium">Não foi possível carregar este conteúdo</p>
213
- {isDev() && (
214
- <p className="text-xs text-muted-foreground font-mono">{error.message}</p>
215
- )}
216
- </div>
217
-
218
- <button
219
- onClick={reset}
220
- className="inline-flex items-center px-3 py-1.5 text-xs rounded-[var(--radius-button)] border border-border bg-background hover:bg-accent hover:text-accent-foreground transition-colors"
221
- >
222
- Tentar novamente
223
- </button>
224
- </div>
225
- );
226
- }
1
+ import React from 'react';
2
+ import type { FallbackProps } from './error-boundary';
3
+
4
+ // ─────────────────────────────────────────────────────────────────────────────
5
+ // error-fallbacks.tsx
6
+ //
7
+ // Three UI fallbacks for the three ErrorBoundary variants.
8
+ // All are intentionally kept dependency-light (no xertica-ui imports) so they
9
+ // work even if the library itself fails to load.
10
+ // ─────────────────────────────────────────────────────────────────────────────
11
+
12
+ // ── Shared helpers ────────────────────────────────────────────────────────────
13
+
14
+ function isDev() {
15
+ return import.meta.env.DEV;
16
+ }
17
+
18
+ // ── AppErrorFallback — root crash ─────────────────────────────────────────────
19
+
20
+ /**
21
+ * Full-screen fallback for root-level crashes.
22
+ * Shown when a provider or the app shell itself throws.
23
+ */
24
+ export function AppErrorFallback({ error, reset }: FallbackProps) {
25
+ return (
26
+ <div
27
+ role="alert"
28
+ style={{
29
+ display: 'flex',
30
+ flexDirection: 'column',
31
+ alignItems: 'center',
32
+ justifyContent: 'center',
33
+ minHeight: '100vh',
34
+ padding: '2rem',
35
+ background: 'var(--background, #f8f9fa)',
36
+ color: 'var(--foreground, #1a1a1a)',
37
+ fontFamily: 'system-ui, sans-serif',
38
+ textAlign: 'center',
39
+ gap: '1rem',
40
+ }}
41
+ >
42
+ {/* Icon */}
43
+ <svg
44
+ width="48"
45
+ height="48"
46
+ viewBox="0 0 24 24"
47
+ fill="none"
48
+ stroke="var(--destructive, #ef4444)"
49
+ strokeWidth="2"
50
+ strokeLinecap="round"
51
+ strokeLinejoin="round"
52
+ aria-hidden="true"
53
+ >
54
+ <circle cx="12" cy="12" r="10" />
55
+ <line x1="12" y1="8" x2="12" y2="12" />
56
+ <line x1="12" y1="16" x2="12.01" y2="16" />
57
+ </svg>
58
+
59
+ <h1 style={{ fontSize: '1.5rem', fontWeight: 700, margin: 0 }}>Algo deu errado</h1>
60
+ <p style={{ color: 'var(--muted-foreground, #6b7280)', maxWidth: 420, margin: 0 }}>
61
+ Ocorreu um erro inesperado na aplicação. Tente recarregar a página ou entre em contato com o
62
+ suporte se o problema persistir.
63
+ </p>
64
+
65
+ {isDev() && (
66
+ <pre
67
+ style={{
68
+ background: 'var(--muted, #f3f4f6)',
69
+ border: '1px solid var(--border, #e5e7eb)',
70
+ borderRadius: 8,
71
+ padding: '0.75rem 1rem',
72
+ fontSize: '0.75rem',
73
+ textAlign: 'left',
74
+ maxWidth: 600,
75
+ overflowX: 'auto',
76
+ whiteSpace: 'pre-wrap',
77
+ wordBreak: 'break-word',
78
+ }}
79
+ >
80
+ {error.message}
81
+ {error.stack ? `\n\n${error.stack}` : ''}
82
+ </pre>
83
+ )}
84
+
85
+ <div style={{ display: 'flex', gap: '0.75rem', flexWrap: 'wrap', justifyContent: 'center' }}>
86
+ <button
87
+ onClick={reset}
88
+ style={{
89
+ padding: '0.5rem 1.25rem',
90
+ borderRadius: 6,
91
+ border: '1px solid var(--border, #e5e7eb)',
92
+ background: 'transparent',
93
+ cursor: 'pointer',
94
+ fontSize: '0.875rem',
95
+ color: 'var(--foreground, #1a1a1a)',
96
+ }}
97
+ >
98
+ Tentar novamente
99
+ </button>
100
+ <button
101
+ onClick={() => window.location.assign('/')}
102
+ style={{
103
+ padding: '0.5rem 1.25rem',
104
+ borderRadius: 6,
105
+ border: 'none',
106
+ background: 'var(--primary, #2563eb)',
107
+ color: 'var(--primary-foreground, #fff)',
108
+ cursor: 'pointer',
109
+ fontSize: '0.875rem',
110
+ }}
111
+ >
112
+ Ir para o início
113
+ </button>
114
+ </div>
115
+ </div>
116
+ );
117
+ }
118
+
119
+ // ── PageErrorFallback — route-level crash ─────────────────────────────────────
120
+
121
+ /**
122
+ * Page-area fallback. Shown when a lazy chunk fails to load or a page
123
+ * component throws. The app shell (header, sidebar) remains intact.
124
+ */
125
+ export function PageErrorFallback({ error, reset }: FallbackProps) {
126
+ return (
127
+ <div
128
+ role="alert"
129
+ className="flex flex-col items-center justify-center flex-1 min-h-[400px] p-8 gap-4 text-center"
130
+ >
131
+ <svg
132
+ width="40"
133
+ height="40"
134
+ viewBox="0 0 24 24"
135
+ fill="none"
136
+ stroke="currentColor"
137
+ strokeWidth="2"
138
+ strokeLinecap="round"
139
+ strokeLinejoin="round"
140
+ className="text-destructive"
141
+ aria-hidden="true"
142
+ >
143
+ <path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z" />
144
+ <line x1="12" y1="9" x2="12" y2="13" />
145
+ <line x1="12" y1="17" x2="12.01" y2="17" />
146
+ </svg>
147
+
148
+ <div className="space-y-1">
149
+ <h2 className="text-lg font-semibold">Erro ao carregar página</h2>
150
+ <p className="text-sm text-muted-foreground max-w-sm">
151
+ Esta página encontrou um problema. Clique em "Tentar novamente" ou navegue para outra
152
+ seção.
153
+ </p>
154
+ </div>
155
+
156
+ {isDev() && (
157
+ <pre className="text-left text-xs bg-muted border border-border rounded-lg p-3 max-w-lg w-full overflow-x-auto whitespace-pre-wrap break-words">
158
+ {error.message}
159
+ </pre>
160
+ )}
161
+
162
+ <div className="flex gap-3 flex-wrap justify-center">
163
+ <button
164
+ onClick={reset}
165
+ className="inline-flex items-center px-4 py-2 text-sm rounded-[var(--radius-button)] border border-border bg-transparent hover:bg-accent hover:text-accent-foreground transition-colors"
166
+ >
167
+ Tentar novamente
168
+ </button>
169
+ <button
170
+ onClick={() => window.location.assign('/')}
171
+ className="inline-flex items-center px-4 py-2 text-sm rounded-[var(--radius-button)] bg-primary text-primary-foreground hover:bg-primary/90 transition-colors"
172
+ >
173
+ Ir para o início
174
+ </button>
175
+ </div>
176
+ </div>
177
+ );
178
+ }
179
+
180
+ // ── SectionErrorFallback — feature/section-level crash ────────────────────────
181
+
182
+ /**
183
+ * Compact inline fallback for section-level errors (data tables, charts,
184
+ * the assistant panel, etc.). Prevents one broken section from crashing the page.
185
+ */
186
+ export function SectionErrorFallback({ error, reset }: FallbackProps) {
187
+ return (
188
+ <div
189
+ role="alert"
190
+ className="flex flex-col items-center justify-center gap-3 p-6 rounded-[var(--radius-lg)] border border-destructive/30 bg-destructive/5 text-center"
191
+ >
192
+ <svg
193
+ width="24"
194
+ height="24"
195
+ viewBox="0 0 24 24"
196
+ fill="none"
197
+ stroke="currentColor"
198
+ strokeWidth="2"
199
+ strokeLinecap="round"
200
+ strokeLinejoin="round"
201
+ className="text-destructive shrink-0"
202
+ aria-hidden="true"
203
+ >
204
+ <circle cx="12" cy="12" r="10" />
205
+ <line x1="12" y1="8" x2="12" y2="12" />
206
+ <line x1="12" y1="16" x2="12.01" y2="16" />
207
+ </svg>
208
+
209
+ <div className="space-y-1">
210
+ <p className="text-sm font-medium">Não foi possível carregar este conteúdo</p>
211
+ {isDev() && <p className="text-xs text-muted-foreground font-mono">{error.message}</p>}
212
+ </div>
213
+
214
+ <button
215
+ onClick={reset}
216
+ className="inline-flex items-center px-3 py-1.5 text-xs rounded-[var(--radius-button)] border border-border bg-background hover:bg-accent hover:text-accent-foreground transition-colors"
217
+ >
218
+ Tentar novamente
219
+ </button>
220
+ </div>
221
+ );
222
+ }
@@ -19,16 +19,19 @@ const isMonorepo = fs.existsSync(path.join(LIB_ROOT, 'components', 'index.ts'));
19
19
 
20
20
  const libAliases = isMonorepo
21
21
  ? [
22
- { find: 'xertica-ui/ui', replacement: path.join(LIB_ROOT, 'components/ui/index.ts') },
23
- { find: 'xertica-ui/blocks', replacement: path.join(LIB_ROOT, 'components/blocks/index.ts') },
24
- { find: 'xertica-ui/assistant', replacement: path.join(LIB_ROOT, 'components/assistant/index.ts') },
25
- { find: 'xertica-ui/layout', replacement: path.join(LIB_ROOT, 'components/layout/index.ts') },
26
- { find: 'xertica-ui/brand', replacement: path.join(LIB_ROOT, 'components/brand/index.ts') },
27
- { find: 'xertica-ui/media', replacement: path.join(LIB_ROOT, 'components/media/index.ts') },
28
- { find: 'xertica-ui/hooks', replacement: path.join(LIB_ROOT, 'components/hooks/index.ts') },
29
- { find: 'xertica-ui/pages', replacement: path.join(LIB_ROOT, 'components/pages/index.ts') },
22
+ { find: 'xertica-ui/ui', replacement: path.join(LIB_ROOT, 'components/ui/index.ts') },
23
+ { find: 'xertica-ui/blocks', replacement: path.join(LIB_ROOT, 'components/blocks/index.ts') },
24
+ {
25
+ find: 'xertica-ui/assistant',
26
+ replacement: path.join(LIB_ROOT, 'components/assistant/index.ts'),
27
+ },
28
+ { find: 'xertica-ui/layout', replacement: path.join(LIB_ROOT, 'components/layout/index.ts') },
29
+ { find: 'xertica-ui/brand', replacement: path.join(LIB_ROOT, 'components/brand/index.ts') },
30
+ { find: 'xertica-ui/media', replacement: path.join(LIB_ROOT, 'components/media/index.ts') },
31
+ { find: 'xertica-ui/hooks', replacement: path.join(LIB_ROOT, 'components/hooks/index.ts') },
32
+ { find: 'xertica-ui/pages', replacement: path.join(LIB_ROOT, 'components/pages/index.ts') },
30
33
  // Bare `xertica-ui` must come AFTER subpaths (most-specific first).
31
- { find: 'xertica-ui', replacement: path.join(LIB_ROOT, 'components/index.ts') },
34
+ { find: 'xertica-ui', replacement: path.join(LIB_ROOT, 'components/index.ts') },
32
35
  ]
33
36
  : [];
34
37